diff --git a/.github/ISSUE_TEMPLATE/release-free-plugin.md b/.github/ISSUE_TEMPLATE/release-free-plugin.md
index 49bee843a..e1f52d462 100644
--- a/.github/ISSUE_TEMPLATE/release-free-plugin.md
+++ b/.github/ISSUE_TEMPLATE/release-free-plugin.md
@@ -18,8 +18,7 @@ To release the Free plugin, ensure you complete all the tasks below.
- [ ] Review updated packages and mention any production library updates in the changelog.
- [ ] Inspect GitHub’s Dependabot warnings or Pull Requests. Resolve any false positives, then fix and commit the remaining issues.
- [ ] If needed, build JS files for production using `composer build:js` and commit changes.
-- [ ] Run `composer build:dir` to prepare the plugin for quality checks.
-- [ ] Run a WP VIP scan with `composer check:phpcs` to ensure no warnings or errors greater than 5 exist.
+- [ ] Run a code quality check with `composer check` and fix the highlighted issues.
- [ ] Update the language files with `composer gen:lang` and note this in the changelog.
- [ ] For minor and patch releases, maintain backward compatibility (e.g., renamed or moved classes, namespaces, functions). Include deprecation comments and note this in the changelog. Major releases may remove deprecated code; always note this in the changelog.
- [ ] Update the changelog in `/CHANGELOG.md` with a user-friendly description and correct release date.
diff --git a/.github/ISSUE_TEMPLATE/release-pro-plugin.md b/.github/ISSUE_TEMPLATE/release-pro-plugin.md
index dd8c13dad..8aa6e335b 100644
--- a/.github/ISSUE_TEMPLATE/release-pro-plugin.md
+++ b/.github/ISSUE_TEMPLATE/release-pro-plugin.md
@@ -21,8 +21,7 @@ To release the Pro plugin, ensure you complete all the tasks below.
- [ ] Check if the free plugin uses Composer's autoload and copy the autoload definition from the free plugin to the pro plugin refactoring the relative paths, on `/lib/composer.json`. Execute `composer dumpautoload` to update the autoload files. Commit the changes.
- [ ] Inspect GitHub’s Dependabot warnings or Pull Requests. Resolve any false positives, then fix and commit the remaining issues.
- [ ] If needed, build JS files for production using `composer build:js` and commit changes.
-- [ ] Run `composer build:dir` to prepare the plugin for quality checks.
-- [ ] Run a WP VIP scan with `composer check:phpcs` to ensure no warnings or errors greater than 5 exist.
+- [ ] Run a code quality check with `composer check` and fix the highlighted issues.
- [ ] Update the language files with `composer gen:lang` and note this in the changelog.
- [ ] For minor and patch releases, maintain backward compatibility (e.g., renamed or moved classes, namespaces, functions). Include deprecation comments and note this in the changelog. Major releases may remove deprecated code; always note this in the changelog.
- [ ] Update the changelog in `/CHANGELOG.md` with a user-friendly description and correct release date.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8915176f..ca6cb0d86 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,26 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
+## [3.4.4] - 21 Aug, 2024
+
+### Fixed
+
+- Improve notice message when scheduled action runs after pressing "run" (PR #896).
+- Fixed support for the Event Espresso plugin (PR #900).
+- Fixed React warning about createRoot being deprecated.
+- Fixed empty fieldset displayed when the bos is disabled for the post type (Issue #792).
+- Update language files.
+
+### Changed
+
+- Add tabs for post types in the post types settings page (PR #895).
+
+### Added
+
+- Added computed date preview to the general settings page (PR #897).
+- Added option to hide the calendar by default in the future action panel (PR #899).
+- Added new filter `publishpressfuture_posts_future_action_column_output` to the Future Action column.
+
## [3.4.3] - 06 Aug, 2024
### Changed
diff --git a/assets/css/edit.css b/assets/css/edit.css
index d510e52c1..e39326c36 100644
--- a/assets/css/edit.css
+++ b/assets/css/edit.css
@@ -153,3 +153,16 @@ body.branch-6-6.edit-php .components-checkbox-control__input-container {
padding-top: 9px;
line-height: 2.2em;
}
+
+/* Fix style on Event Espresso plugin */
+body.espresso-admin #publishpress-future-classic-editor .components-checkbox-control__input-container svg,
+body.espresso-admin #publishpress-future-classic-editor .components-input-control__suffix
+{
+ visibility: hidden;
+}
+
+body.espresso-admin #publishpress-future-classic-editor .components-input-control__container .components-input-control__input {
+ border: 0;
+ min-width: 30px;
+ padding: 0 4px;
+}
diff --git a/assets/js/block-editor.js b/assets/js/block-editor.js
index 4a11164e0..9649651f0 100644
--- a/assets/js/block-editor.js
+++ b/assets/js/block-editor.js
@@ -1,2 +1,2 @@
-(()=>{"use strict";var e={442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(386),r=n(214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(39),r=n(214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(409),i=n(873),l=n(986),u=n(214),c=n(61),s=n(625),m=wp.components,d=m.PanelRow,f=m.CheckboxControl,p=m.SelectControl,y=m.FormTokenField,g=m.Spinner,b=m.BaseControl,v=wp.element,E=v.Fragment,S=v.useEffect,h=v.useState,_=wp.htmlEntities.decodeEntities,T=wp.url.addQueryArgs,x=wp.data,N=x.useSelect,R=x.useDispatch,A=wp.apiFetch;t.FutureActionPanel=function(e){var t=N((function(t){return t(e.storeName).getAction()}),[]),n=N((function(t){return t(e.storeName).getDate()}),[]),m=N((function(t){return t(e.storeName).getEnabled()}),[]),v=N((function(t){return t(e.storeName).getTerms()}),[]),x=N((function(t){return t(e.storeName).getTaxonomy()}),[]),C=N((function(t){return t(e.storeName).getTaxonomyName()}),[]),P=N((function(t){return t(e.storeName).getTermsListByName()}),[]),w=N((function(t){return t(e.storeName).getTermsListById()}),[]),O=N((function(t){return t(e.storeName).getIsFetchingTerms()}),[]),D=N((function(t){return t(e.storeName).getCalendarIsVisible()}),[]),F=N((function(t){return t(e.storeName).getHasValidData()}),[]),k=N((function(t){return t(e.storeName).getNewStatus()}),[]),I=h(""),j=r(I,2),B=j[0],M=j[1],L=R(e.storeName),V=L.setAction,H=L.setDate,W=L.setEnabled,U=L.setTerms,Q=L.setTaxonomy,Y=L.setTermsListByName,q=L.setTermsListById,X=L.setTaxonomyName,z=L.setIsFetchingTerms,G=L.setCalendarIsVisible,J=L.setHasValidData,K=L.setNewStatus,Z=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:x},w[e]=e,Y(P),q(w),U([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&w&&(ae=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return w[e]}))}(v)),"string"==typeof ae&&(ae=[]));var re=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(re=Object.keys(P));var oe,ie=D?"future-action-panel":"future-action-panel hidden-calendar",le=D?"future-action-panel-content":"future-action-panel-content hidden-calendar",ue=D?"future-action-date-panel":"future-action-date-panel hidden-calendar";oe="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ce=e.actionsSelectOptions;e.taxonomy||(ce=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var se=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,u=void 0;try{for(var c,s=a[Symbol.iterator]();!(i=(c=s.next()).done);i=!0){var m=c.value.split("}"),d=r(m,2),f=d[0],p=d[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},f)),o.push(p)}}catch(e){l=!0,u=e}finally{try{!i&&s.return&&s.return()}finally{if(l)throw u}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(t).includes("category")&&"category-remove-all"!==t,de=C;switch(t){case"category":de=e.strings.newTerms.replace("%s",C);break;case"category-remove":de=e.strings.removeTerms.replace("%s",C);break;case"category-add":de=e.strings.addTerms.replace("%s",C)}return S((function(){if(!m)return J(!0),void M("");J(function(){var a=!0;if(!m)return M(""),!0;t||(M(e.strings.errorActionRequired),a=!1),n||(M(e.strings.errorDateRequired),a=!1),n&&new Date(n){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,u=i("core/editor").getEditedPostAttribute("publishpress_future_action"),c=o("core/editor"),s=c.lockPostSaving,m=c.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:u.enabled,calendarIsVisible:!0,action:u.action,newStatus:u.newStatus,date:u.date,terms:u.terms,taxonomy:u.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,u=Object.entries(e)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var c=i.value,s=a(c,2),m=s[0],d=s[1];t.publishpress_future_action[m]=d}}catch(e){r=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){m("future-action")},onDataIsInvalid:function(){s("future-action")}})))}},94:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,u=wp.element.useEffect,c=n((function(t){return t(e.storeName).getDate()}),[]),s=n((function(t){return t(e.storeName).getEnabled()}),[]),m=n((function(t){return t(e.storeName).getAction()}),[]),d=n((function(t){return t(e.storeName).getNewStatus()}),[]),f=n((function(t){return t(e.storeName).getTerms()}),[]),p=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),g=n((function(t){return t(e.storeName).getHasValidData()}),[]),b=i(e.storeName).setChangeAction,v=f;"object"===(void 0===f?"undefined":a(f))&&(v=f.join(","));var E=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return u((function(){g||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[g,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:E,onChange:function(e){b(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:m,newStatus:d,date:c,terms:f,taxonomy:p,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:s?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:c}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:v}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:p}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(57),r=n(562);n(386),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(562);n(386),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),u=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),c=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),s=l;return"object"===(void 0===l?"undefined":a(l))&&(s=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:c,date:t,terms:l,taxonomy:u,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(386);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57),o=n(386),i=n(11),l=n(566),u=n(244),c=wp.components,s=c.PanelRow;c.BaseControl,t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,o.useState)(e.settings.taxonomy),c=a(n,2),m=c[0],d=c[1],f=(0,o.useState)([]),p=a(f,2),y=p[0],g=p[1],b=(0,o.useState)(!1),v=a(b,2),E=v[0],S=v[1],h=(0,o.useState)([]),_=a(h,2),T=_[0],x=_[1],N=(0,o.useState)(e.settings.howToExpire),R=a(N,2),A=R[0],C=R[1],P=(0,o.useState)(e.settings.active),w=a(P,2),O=w[0],D=w[1],F=(0,o.useState)(e.settings.defaultExpireOffset),k=a(F,2),I=k[0],j=k[1],B=(0,o.useState)(e.settings.emailNotification),M=a(B,2),L=M[0],V=M[1],H=(0,o.useState)(e.settings.autoEnabled),W=a(H,2),U=W[0],Q=W[1],Y=(0,o.useState)(!1),q=a(Y,2),X=q[0],z=q[1],G=(0,o.useState)(""),J=a(G,2),K=J[0],Z=J[1],$=(0,o.useState)(""),ee=a($,2),te=ee[0],ne=ee[1],ae=(0,o.useState)(t),re=a(ae,2),oe=re[0],ie=re[1],le=(0,o.useState)(e.settings.newStatus),ue=a(le,2),ce=ue[0],se=ue[1],me=(0,o.useState)(!1),de=a(me,2),fe=de[0],pe=de[1],ye=(0,o.useState)(""),ge=a(ye,2),be=ge[0],ve=ge[1],Ee=(0,o.useState)(),Se=a(Ee,2),he=Se[0],_e=Se[1],Te=(0,o.useRef)(new AbortController),xe=["category","category-add","category-remove","category-remove-all"];(0,o.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=oe.filter((function(e){return-1===xe.indexOf(e.value)})),ie(t))}),[]),(0,o.useEffect)((function(){m&&e.taxonomiesList&&(S(!0),(0,u.apiFetch)({path:(0,i.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),g(n),x(a),S(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ne(e.label)})))}),[m]),(0,o.useEffect)((function(){z(function(){if(!O)return Z(""),!0;var t=I||e.settings.globalDefaultExpireOffset;if(t){var n=Te.current;n&&n.abort(),Te.current=new AbortController;var a=Te.current.signal;pe(!0),(0,u.apiFetch)({path:(0,i.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:a}).then((function(e){pe(!1),z(e.isValid),Z(e.message),e.isValid?(ve(e.preview),_e(e.currentTime)):ve("")})).catch((function(e){"AbortError"!==e.name&&(pe(!1),z(!1),Z(e.message),ve(""))}))}return Z(""),!0}())}),[O,I]),(0,o.useEffect)((function(){if(te){var e=[];t.forEach((function(t){var n=t.label;-1!==xe.indexOf(t.value)&&(n=n.replace("%s",te.toLowerCase())),e.push({value:t.value,label:n})})),ie(e)}}),[te]),(0,o.useEffect)((function(){X&&e.onDataIsValid&&e.onDataIsValid(e.postType),!X&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[X]),(0,o.useEffect)((function(){fe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!fe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[fe]);var Ne=y.map((function(e){return e.label})),Re=[React.createElement(r.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(r.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:O||!1,label:e.text.fieldActiveLabel,onChange:function(e){D(e)}}))];return O&&(Re.push(React.createElement(r.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(r.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:U||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){Q(e)}}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(r.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){d(e)}}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(r.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:oe,description:e.text.fieldHowToExpireDescription,selected:A,onChange:function(e){C(e)}}),"change-status"===A&&React.createElement(r.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ce,onChange:se}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(A)>-1&&React.createElement(r.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:Ne,value:T,isLoading:E,onChange:function(e){x(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(r.TextControl,{name:"expired-custom-date-"+e.postType,value:I,loading:fe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){j(e)}}),be&&React.createElement(o.Fragment,null,React.createElement("h4",null,e.text.datePreview),React.createElement("div",null,React.createElement("div",null,React.createElement("span",null,e.text.datePreviewCurrent,": "),React.createElement("span",null,React.createElement("code",null,he))),React.createElement("div",null,React.createElement("span",null,e.text.datePreviewComputed,": "),React.createElement("span",null,React.createElement("code",null,be))))))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(r.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){V(e)}})))),Re=(0,l.applyFilters)("expirationdate_settings_posttype",Re,e,O,o.useState),React.createElement(r.SettingsFieldset,{legend:e.legend},React.createElement(r.SettingsTable,{bodyChildren:Re}),!X&&React.createElement(s,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",K)))}},138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.PostTypesSettingsPanels=function(e){var t=[],n=!0,o=!1,i=void 0;try{for(var l,u=Object.entries(e.settings)[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){var c=l.value,s=a(c,2),m=s[0],d=s[1];t.push(React.createElement(r.PostTypeSettingsPanel,{legend:d.label,text:e.text,postType:m,settings:d,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[m],statusesList:e.statusesList[m],key:m+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished}))}}catch(e){o=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return t}},858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(386),r=n(214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},5:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(386),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",null,React.createElement("legend",null,e.legend),e.children)}},892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(386);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(386),r=n(214),o=n(57);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(190),r=n(620),o=n(386);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,u=e.onChangeDate,c=e.is12Hour,s=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:u,__nextRemoveHelpButton:!0,is12Hour:c,startOfWeek:s}))}},948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(386),o=n(214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var u=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:u,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},57:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var u=n(94);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return u.FutureActionPanelBulkEdit}});var c=n(239);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return c.PostTypeSettingsPanel}});var s=n(138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return s.PostTypesSettingsPanels}});var m=n(5);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return m.SettingRow}});var d=n(786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return d.SettingsFieldset}});var f=n(892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return f.SettingsForm}});var p=n(681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return p.SettingsSection}});var y=n(772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var g=n(438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return g.SubmitButton}});var b=n(311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return b.CheckboxControl}});var v=n(858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return v.SelectControl}});var E=n(301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return E.TextControl}});var S=n(948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return S.TokensControl}});var h=n(13);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return h.NonceControl}});var _=n(225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return _.TrueFalseControl}});var T=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return T.Spinner}})},480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,u=arguments[1];switch(u.type){case"SET_ACTION":return a({},l,{action:u.action});case"SET_NEW_STATUS":return a({},l,{newStatus:u.newStatus});case"SET_DATE":return"number"!=typeof u.date&&(0,o.isNumber)(u.date)&&(u.date=parseInt(u.date)),"string"==typeof u.date&&(u.date=new Date(u.date).getTime()),u.date=(0,r.normalizeUnixTimeToSeconds)(u.date),u.date=(0,r.formatUnixTimeToTimestamp)(u.date),a({},l,{date:u.date});case"SET_ENABLED":return a({},l,{enabled:u.enabled});case"SET_TERMS":return a({},l,{terms:u.terms});case"SET_TAXONOMY":return a({},l,{taxonomy:u.taxonomy});case"SET_TERMS_LIST_BY_NAME":return a({},l,{termsListByName:u.termsListByName});case"SET_TERMS_LIST_BY_ID":return a({},l,{termsListById:u.termsListById});case"SET_TAXONOMY_NAME":return a({},l,{taxonomyName:u.taxonomyName});case"SET_CHANGE_ACTION":return a({},l,{changeAction:u.changeAction});case"SET_CALENDAR_IS_VISIBLE":return a({},l,{calendarIsVisible:u.calendarIsVisible});case"SET_HAS_VALID_DATA":return a({},l,{hasValidData:u.hasValidData});case"SET_EXTRA_DATA":return a({},l,{extraData:a({},u.extraData)});case"SET_EXTRA_DATA_BY_NAME":var c=a({},l.extraData,(e={},n=u.name,i=u.value,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return a({},l,{extraData:a({},c)})}return l},actions:{setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});return(0,i.register)(n),n}},39:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{e.exports=publishpressFutureBlockEditorConfig},244:e=>{e.exports=wp},214:e=>{e.exports=wp.components},562:e=>{e.exports=wp.data},386:e=>{e.exports=wp.element},566:e=>{e.exports=wp.hooks},986:e=>{e.exports=wp.plugins},11:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}var a=n(480),r=n(57),o=n(562),i=n(986),l=n(788),u="publishpress-future/future-action";(0,a.createStore)({name:u,defaultState:{autoEnable:l.postTypeDefaultConfig.autoEnable,action:l.postTypeDefaultConfig.expireType,newStatus:l.postTypeDefaultConfig.newStatus,date:l.defaultDate,taxonomy:l.postTypeDefaultConfig.taxonomy,terms:l.postTypeDefaultConfig.terms}}),(0,i.registerPlugin)("publishpress-future-action",{render:function(){return React.createElement(r.FutureActionPanelBlockEditor,{postType:(0,o.select)("core/editor").getCurrentPostType(),isCleanNewPost:(0,o.select)("core/editor").isCleanNewPost(),actionsSelectOptions:l.actionsSelectOptions,statusesSelectOptions:l.statusesSelectOptions,is12Hour:l.is12Hour,timeFormat:l.timeFormat,startOfWeek:l.startOfWeek,storeName:u,strings:l.strings,taxonomyName:l.taxonomyName,postTypeDefaultConfig:l.postTypeDefaultConfig})}})})();
+(()=>{"use strict";var e={442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(386),r=n(214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateOffsetPreview=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(386),o=n(11),i=n(244);n(922);var l=t.DateOffsetPreview=function(e){var t=e.offset,n=e.label,l=e.labelDatePreview,s=e.labelOffsetPreview,u=e.setValidationErrorCallback,c=e.setHasPendingValidationCallback,d=e.setHasValidDataCallback,m=e.compactView,p=void 0!==m&&m,f=(0,r.useState)(""),y=a(f,2),g=y[0],v=y[1],b=(0,r.useState)(),h=a(b,2),E=h[0],S=h[1],_=(0,r.useRef)(new AbortController);(0,r.useEffect)((function(){!function(){if(t){var e=_.current;e&&e.abort(),_.current=new AbortController;var n=_.current.signal;c(!0),(0,i.apiFetch)({path:(0,o.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:n}).then((function(e){c(!1),d(e.isValid),u(e.message),e.isValid?(v(e.preview),S(e.currentTime)):v("")})).catch((function(e){"AbortError"!==e.name&&(c(!1),d(!1),u(e.message),v(""))}))}}()}),[t]);var x=p?" compact":"";return React.createElement(r.Fragment,null,t&&React.createElement("div",{className:"publishpress-future-date-preview"+x},React.createElement("h4",null,n),React.createElement("div",{className:"publishpress-future-date-preview-body"},React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},l,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},E)),React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},s,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},g)))))};t.default=l},620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(39),r=n(214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(409),i=n(873),l=n(986),s=n(214),u=n(61),c=n(625),d=wp.components,m=d.PanelRow,p=d.CheckboxControl,f=d.SelectControl,y=d.FormTokenField,g=d.Spinner,v=d.BaseControl,b=wp.element,h=b.Fragment,E=b.useEffect,S=b.useState,_=wp.htmlEntities.decodeEntities,x=wp.url.addQueryArgs,T=wp.data,A=T.useSelect,N=T.useDispatch,C=wp.apiFetch;t.FutureActionPanel=function(e){var t=A((function(t){return{action:t(e.storeName).getAction(),date:t(e.storeName).getDate(),enabled:t(e.storeName).getEnabled(),terms:t(e.storeName).getTerms(),taxonomy:t(e.storeName).getTaxonomy(),taxonomyName:t(e.storeName).getTaxonomyName(),termsListByName:t(e.storeName).getTermsListByName(),termsListById:t(e.storeName).getTermsListById(),isFetchingTerms:t(e.storeName).getIsFetchingTerms(),calendarIsVisible:t(e.storeName).getCalendarIsVisible(),hasValidData:t(e.storeName).getHasValidData(),newStatus:t(e.storeName).getNewStatus()}})),n=t.action,d=t.date,b=t.enabled,T=t.terms,w=t.taxonomy,R=t.taxonomyName,P=t.termsListByName,O=t.termsListById,D=t.isFetchingTerms,I=t.calendarIsVisible,k=t.hasValidData,F=t.newStatus,B=S(""),j=r(B,2),M=j[0],V=j[1],L=N(e.storeName),H=L.setAction,U=L.setDate,W=L.setEnabled,Q=L.setTerms,Y=L.setTaxonomy,q=L.setTermsListByName,z=L.setTermsListById,X=L.setTaxonomyName,G=L.setIsFetchingTerms,J=L.setCalendarIsVisible,Z=L.setHasValidData,K=L.setNewStatus,$=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:w},O[e]=e,q(P),z(O),Q([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&O&&(re=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return O[e]}))}(T)),"string"==typeof re&&(re=[]));var oe=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(oe=Object.keys(P));var ie,le=I?"future-action-panel":"future-action-panel hidden-calendar",se=I?"future-action-panel-content":"future-action-panel-content hidden-calendar",ue=I?"future-action-date-panel":"future-action-date-panel hidden-calendar";ie="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ce=e.actionsSelectOptions;e.taxonomy||(ce=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var de=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,s=void 0;try{for(var u,c=a[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value.split("}"),m=r(d,2),p=m[0],f=m[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},p)),o.push(f)}}catch(e){l=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(l)throw s}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(n).includes("category")&&"category-remove-all"!==n,pe=R;switch(n){case"category":pe=e.strings.newTerms.replace("%s",R);break;case"category-remove":pe=e.strings.removeTerms.replace("%s",R);break;case"category-add":pe=e.strings.addTerms.replace("%s",R)}return E((function(){if(!b)return Z(!0),void V("");Z(function(){var t=!0;if(!b)return V(""),!0;n||(V(e.strings.errorActionRequired),t=!1),d||(V(e.strings.errorDateRequired),t=!1),d&&new Date(d){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,s=i("core/editor").getEditedPostAttribute("publishpress_future_action"),u=o("core/editor"),c=u.lockPostSaving,d=u.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:s.enabled,calendarIsVisible:!0,action:s.action,newStatus:s.newStatus,date:s.date,terms:s.terms,taxonomy:s.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,s=Object.entries(e)[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value,c=a(u,2),d=c[0],m=c[1];t.publishpress_future_action[d]=m}}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){d("future-action")},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){c("future-action")}})))}},94:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,s=wp.element.useEffect,u=n((function(t){return t(e.storeName).getDate()}),[]),c=n((function(t){return t(e.storeName).getEnabled()}),[]),d=n((function(t){return t(e.storeName).getAction()}),[]),m=n((function(t){return t(e.storeName).getNewStatus()}),[]),p=n((function(t){return t(e.storeName).getTerms()}),[]),f=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),g=n((function(t){return t(e.storeName).getHasValidData()}),[]),v=i(e.storeName).setChangeAction,b=p;"object"===(void 0===p?"undefined":a(p))&&(b=p.join(","));var h=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return s((function(){g||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[g,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:h,onChange:function(e){v(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:d,newStatus:m,date:u,terms:p,taxonomy:f,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,hideCalendarByDefault:e.hideCalendarByDefault,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:c?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:u}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:b}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:f}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(57),r=n(562);n(386),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(562);n(386),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),s=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),u=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),c=l;return"object"===(void 0===l?"undefined":a(l))&&(c=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:u,date:t,terms:l,taxonomy:s,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(386);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(57),i=n(386),l=n(11),s=n(566),u=n(244),c=(a=n(470))&&a.__esModule?a:{default:a},d=wp.components.PanelRow;t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,i.useState)(e.settings.taxonomy),a=r(n,2),m=a[0],p=a[1],f=(0,i.useState)([]),y=r(f,2),g=y[0],v=y[1],b=(0,i.useState)(!1),h=r(b,2),E=h[0],S=h[1],_=(0,i.useState)([]),x=r(_,2),T=x[0],A=x[1],N=(0,i.useState)(e.settings.howToExpire),C=r(N,2),w=C[0],R=C[1],P=(0,i.useState)(e.settings.active),O=r(P,2),D=O[0],I=O[1],k=(0,i.useState)(e.settings.defaultExpireOffset),F=r(k,2),B=F[0],j=F[1],M=(0,i.useState)(e.settings.emailNotification),V=r(M,2),L=V[0],H=V[1],U=(0,i.useState)(e.settings.autoEnabled),W=r(U,2),Q=W[0],Y=W[1],q=(0,i.useState)(!0),z=r(q,2),X=z[0],G=z[1],J=(0,i.useState)(""),Z=r(J,2),K=Z[0],$=Z[1],ee=(0,i.useState)(""),te=r(ee,2),ne=te[0],ae=te[1],re=(0,i.useState)(t),oe=r(re,2),ie=oe[0],le=oe[1],se=(0,i.useState)(e.settings.newStatus),ue=r(se,2),ce=ue[0],de=ue[1],me=(0,i.useState)(!1),pe=r(me,2),fe=pe[0],ye=pe[1],ge=B||e.settings.globalDefaultExpireOffset,ve=["category","category-add","category-remove","category-remove-all"];(0,i.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=ie.filter((function(e){return-1===ve.indexOf(e.value)})),le(t))}),[]),(0,i.useEffect)((function(){m&&e.taxonomiesList&&(S(!0),(0,u.apiFetch)({path:(0,l.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),v(n),A(a),S(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ae(e.label)})))}),[m]),(0,i.useEffect)((function(){if(ne){var e=[];t.forEach((function(t){var n=t.label;-1!==ve.indexOf(t.value)&&(n=n.replace("%s",ne.toLowerCase())),e.push({value:t.value,label:n})})),le(e)}}),[ne]),(0,i.useEffect)((function(){X&&e.onDataIsValid&&e.onDataIsValid(e.postType),!X&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[X]),(0,i.useEffect)((function(){fe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!fe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[fe]);var be=g.map((function(e){return e.label})),he=[React.createElement(o.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:D||!1,label:e.text.fieldActiveLabel,onChange:function(e){I(e)}}))];D&&(he.push(React.createElement(o.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:Q||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){Y(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){p(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:ie,description:e.text.fieldHowToExpireDescription,selected:w,onChange:function(e){R(e)}}),"change-status"===w&&React.createElement(o.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ce,onChange:de}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(w)>-1&&React.createElement(o.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:be,value:T,isLoading:E,onChange:function(e){A(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(o.TextControl,{name:"expired-custom-date-"+e.postType,value:B,loading:fe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){j(e)}}),React.createElement(c.default,{offset:ge,label:e.text.datePreview,labelDatePreview:e.text.datePreviewCurrent,labelOffsetPreview:e.text.datePreviewComputed,setValidationErrorCallback:$,setHasPendingValidationCallback:ye,setHasValidDataCallback:G}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(o.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){H(e)}})))),he=(0,s.applyFilters)("expirationdate_settings_posttype",he,e,D,i.useState);var Ee=e.isVisible?"pe-settings-fieldset":"pe-settings-fieldset hidden";return React.createElement("div",{className:Ee},React.createElement(o.SettingsTable,{bodyChildren:he}),!X&&React.createElement(d,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",K)))}},138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57),o=n(386);t.PostTypesSettingsPanels=function(e){var t=(0,o.useState)(Object.keys(e.settings)[0]),n=a(t,2),i=n[0],l=n[1],s=[],u=!0,c=!1,d=void 0;try{for(var m,p=Object.entries(e.settings)[Symbol.iterator]();!(u=(m=p.next()).done);u=!0){var f=m.value,y=a(f,2),g=y[0],v=y[1];s.push(React.createElement(r.PostTypeSettingsPanel,{legend:v.label,text:e.text,postType:g,settings:v,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[g],statusesList:e.statusesList[g],key:g+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished,isVisible:i===g}))}}catch(e){c=!0,d=e}finally{try{!u&&p.return&&p.return()}finally{if(c)throw d}}var b=function(e){e.preventDefault(),l(e.target.hash.replace("#","").replace("-panel",""))},h=[],E=!1,S=!0,_=!1,x=void 0;try{for(var T,A=Object.entries(e.settings)[Symbol.iterator]();!(S=(T=A.next()).done);S=!0){var N=T.value,C=a(N,2),w=C[0],R=C[1];E=i===w,h.push(React.createElement("a",{href:"#"+w+"-panel",className:"nav-tab "+(E?"nav-tab-active":""),key:w+"-tab",onClick:b},R.label))}}catch(e){_=!0,x=e}finally{try{!S&&A.return&&A.return()}finally{if(_)throw x}}return React.createElement("div",null,React.createElement("nav",{className:"nav-tab-wrapper"},h),s)}},858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(386),r=n(214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},5:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(386),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",{className:e.className},React.createElement("legend",null,e.legend),e.children)}},892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(386);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(386),r=n(214),o=n(57);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(190),r=n(620),o=n(386);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,s=e.onChangeDate,u=e.is12Hour,c=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:s,__nextRemoveHelpButton:!0,is12Hour:u,startOfWeek:c}))}},948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(386),o=n(214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var s=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:s,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},57:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var s=n(94);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return s.FutureActionPanelBulkEdit}});var u=n(239);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return u.PostTypeSettingsPanel}});var c=n(138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return c.PostTypesSettingsPanels}});var d=n(5);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return d.SettingRow}});var m=n(786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return m.SettingsFieldset}});var p=n(892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return p.SettingsForm}});var f=n(681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return f.SettingsSection}});var y=n(772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var g=n(438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return g.SubmitButton}});var v=n(311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return v.CheckboxControl}});var b=n(858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return b.SelectControl}});var h=n(301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return h.TextControl}});var E=n(948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return E.TokensControl}});var S=n(13);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return S.NonceControl}});var _=n(225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return _.TrueFalseControl}});var x=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return x.Spinner}});var T=n(470);Object.defineProperty(t,"DateOffsetPreview",{enumerable:!0,get:function(){return T.DateOffsetPreview}})},480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,s=arguments[1];switch(s.type){case"SET_ACTION":return a({},l,{action:s.action});case"SET_NEW_STATUS":return a({},l,{newStatus:s.newStatus});case"SET_DATE":return"number"!=typeof s.date&&(0,o.isNumber)(s.date)&&(s.date=parseInt(s.date)),"string"==typeof s.date&&(s.date=new Date(s.date).getTime()),s.date=(0,r.normalizeUnixTimeToSeconds)(s.date),s.date=(0,r.formatUnixTimeToTimestamp)(s.date),a({},l,{date:s.date});case"SET_ENABLED":return a({},l,{enabled:s.enabled});case"SET_TERMS":return a({},l,{terms:s.terms});case"SET_TAXONOMY":return a({},l,{taxonomy:s.taxonomy});case"SET_TERMS_LIST_BY_NAME":return a({},l,{termsListByName:s.termsListByName});case"SET_TERMS_LIST_BY_ID":return a({},l,{termsListById:s.termsListById});case"SET_TAXONOMY_NAME":return a({},l,{taxonomyName:s.taxonomyName});case"SET_CHANGE_ACTION":return a({},l,{changeAction:s.changeAction});case"SET_CALENDAR_IS_VISIBLE":return a({},l,{calendarIsVisible:s.calendarIsVisible});case"SET_HAS_VALID_DATA":return a({},l,{hasValidData:s.hasValidData});case"SET_EXTRA_DATA":return a({},l,{extraData:a({},s.extraData)});case"SET_EXTRA_DATA_BY_NAME":var u=a({},l.extraData,(e={},n=s.name,i=s.value,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return a({},l,{extraData:a({},u)})}return l},actions:{setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});return(0,i.register)(n),n}},39:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{n.d(t,{A:()=>l});var a=n(354),r=n.n(a),o=n(314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n","",{version:3,sources:["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],names:[],mappings:"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB",sourcesContent:[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],sourceRoot:""}]);const l=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},354:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),o="/*# ".concat(r," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var a=n(72),r=n.n(a),o=n(825),i=n.n(o),l=n(659),s=n.n(l),u=n(56),c=n.n(u),d=n(540),m=n.n(d),p=n(113),f=n.n(p),y=n(461),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=m(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},72:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},788:e=>{e.exports=publishpressFutureBlockEditorConfig},244:e=>{e.exports=wp},214:e=>{e.exports=wp.components},562:e=>{e.exports=wp.data},386:e=>{e.exports=wp.element},566:e=>{e.exports=wp.hooks},986:e=>{e.exports=wp.plugins},11:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var a=n(480),r=n(57),o=n(562),i=n(986),l=n(788),s="publishpress-future/future-action";(0,a.createStore)({name:s,defaultState:{autoEnable:l.postTypeDefaultConfig.autoEnable,action:l.postTypeDefaultConfig.expireType,newStatus:l.postTypeDefaultConfig.newStatus,date:l.defaultDate,taxonomy:l.postTypeDefaultConfig.taxonomy,terms:l.postTypeDefaultConfig.terms}}),(0,i.registerPlugin)("publishpress-future-action",{render:function(){return React.createElement(r.FutureActionPanelBlockEditor,{postType:(0,o.select)("core/editor").getCurrentPostType(),isCleanNewPost:(0,o.select)("core/editor").isCleanNewPost(),actionsSelectOptions:l.actionsSelectOptions,statusesSelectOptions:l.statusesSelectOptions,is12Hour:l.is12Hour,timeFormat:l.timeFormat,startOfWeek:l.startOfWeek,storeName:s,strings:l.strings,taxonomyName:l.taxonomyName,postTypeDefaultConfig:l.postTypeDefaultConfig,hideCalendarByDefault:l.hideCalendarByDefault})}})})();
//# sourceMappingURL=block-editor.js.map
\ No newline at end of file
diff --git a/assets/js/block-editor.js.map b/assets/js/block-editor.js.map
index f05e93b13..2d7f52b5c 100644
--- a/assets/js/block-editor.js.map
+++ b/assets/js/block-editor.js.map
@@ -1 +1 @@
-{"version":3,"file":"block-editor.js","mappings":"uFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,8FCPD,SACA,SAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,UAASJ,EAAMK,UAAW,GADZ,GACrCA,EADqC,KAC5BC,EAD4B,KAoB5C,OAbIH,EAFAH,EAAMO,qBAEQ,yBAAGC,UAAU,cAAcC,wBAAyB,CAAEC,OAAQV,EAAMG,eAEpE,yBAAGK,UAAU,eAAeR,EAAMG,aAYhD,oBAAC,EAAAQ,SAAD,KACI,oBAAC,kBAAD,CACIC,MAAOZ,EAAMY,MACbC,KAAMb,EAAMa,KACZC,GAAId,EAAMa,KACVL,UAAWR,EAAMQ,UACjBH,QAASA,IAAW,EACpBU,SAhBK,SAAUC,GACvBV,EAAWU,GAEPhB,EAAMe,UACNf,EAAMe,SAASC,EAEtB,IAaQb,EAGZ,C,y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GAAY,CAGjDN,QAAS,CAAC,GAOX,OAHAS,EAAoBH,GAAUP,EAAQA,EAAOC,QAASK,GAG/CN,EAAOC,OACf,CCtBA,aACA,QACA,SACA,SACA,SAYMxX,EAAY,qCAElB,IAAA2T,aAAY,CACRzV,KAAM8B,EACN4T,aAAc,CACVtK,WAAYD,EAAAA,sBAAsBC,WAClCxJ,OAAQuJ,EAAAA,sBAAsB0F,WAC9BzN,UAAW+H,EAAAA,sBAAsB/H,UACjCpB,KAAMgY,EAAAA,YACN1X,SAAU6I,EAAAA,sBAAsB7I,SAChCF,MAAO+I,EAAAA,sBAAsB/I,UAqBrC,IAAA6X,gBAAe,6BAA8B,CACzCC,OAlBkC,WAClC,OACI,oBAAC,EAAAxP,6BAAD,CACIW,UAAU,IAAAxJ,QAAO,eAAesY,qBAChC3U,gBAAgB,IAAA3D,QAAO,eAAe2D,iBACtCiB,qBAAsBA,EAAAA,qBACtB2C,sBAAuBA,EAAAA,sBACvB9I,SAAUA,EAAAA,SACVkG,WAAYA,EAAAA,WACZjG,YAAaA,EAAAA,YACbuB,UAAWA,EACX2F,QAASA,EAAAA,QACTjF,aAAcA,EAAAA,aACd2I,sBAAuBA,EAAAA,uBAElC,G","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/data.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/external var \"publishpressFutureBlockEditorConfig\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/./assets/jsx/block-editor.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n setChecked(value);\n\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n return (\n \n \n\n {description}\n \n )\n}\n","import { normalizeUnixTimeToMilliseconds } from \"../time\";\nimport { DateTimePicker as WPDateTimePicker } from \"@wordpress/components\";\n\n\nexport const DateTimePicker = ({currentDate, onChange, is12Hour, startOfWeek}) => {\n if (typeof currentDate === 'number') {\n currentDate = normalizeUnixTimeToMilliseconds(currentDate);\n }\n\n return (\n \n )\n}\n","import { compact } from '../utils';\nimport { ToggleCalendarDatePicker } from './ToggleCalendarDatePicker';\nimport { PluginArea } from '@wordpress/plugins';\nimport { Fill, Slot, SlotFillProvider } from '@wordpress/components';\nimport { FutureActionPanelAfterActionField } from './FutureActionPanelAfterActionField';\nimport { FutureActionPanelTop } from './FutureActionPanelTop';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect, useState } = wp.element;\nconst { decodeEntities } = wp.htmlEntities;\nconst { addQueryArgs } = wp.url;\nconst {\n useSelect,\n useDispatch\n} = wp.data;\nconst { apiFetch } = wp;\n\nexport const FutureActionPanel = (props) => {\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const taxonomyName = useSelect((select) => select(props.storeName).getTaxonomyName(), []);\n const termsListByName = useSelect((select) => select(props.storeName).getTermsListByName(), []);\n const termsListById = useSelect((select) => select(props.storeName).getTermsListById(), []);\n const isFetchingTerms = useSelect((select) => select(props.storeName).getIsFetchingTerms(), []);\n const calendarIsVisible = useSelect((select) => select(props.storeName).getCalendarIsVisible(), []);\n const hasValidData = useSelect((select) => select(props.storeName).getHasValidData(), []);\n const newStatus = useSelect((select) => select(props.storeName).getNewStatus(), []);\n\n const [validationError, setValidationError] = useState('');\n\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible,\n setHasValidData,\n setNewStatus\n } = useDispatch(props.storeName);\n\n const mapTermsListById = (terms) => {\n if (typeof terms !== 'object' || terms === null) {\n return {};\n }\n\n return terms.map((term) => {\n return termsListById[term];\n });\n }\n\n const insertTerm = (term) => {\n termsListByName[term] = { id: term, count: 0, description: \"\", link: \"\", name: term, slug: term, taxonomy: taxonomy };\n termsListById[term] = term;\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTerms([...terms, term]);\n\n }\n\n const mapTermsListByName = (terms) => {\n if (typeof terms !== 'object' || terms === null) {\n return {};\n }\n\n return terms.map((term) => {\n if (termsListByName[term]) {\n return termsListByName[term].id;\n }\n\n insertTerm(term);\n\n return term;\n });\n }\n\n const callOnChangeData = (attribute, value) => {\n if (typeof props.onChangeData === 'function') {\n props.onChangeData(attribute, value);\n }\n }\n\n const handleEnabledChange = (isChecked) => {\n setEnabled(isChecked);\n\n if (isChecked) {\n setAction(props.action);\n setDate(props.date);\n setNewStatus(props.newStatus);\n setTerms(props.terms);\n setTaxonomy(props.taxonomy);\n\n fetchTerms();\n }\n\n callOnChangeData('enabled', isChecked);\n }\n\n const handleActionChange = (value) => {\n setAction(value);\n\n callOnChangeData('action', value);\n }\n\n const handleNewStatusChange = (value) => {\n setNewStatus(value);\n\n callOnChangeData('newStatus', value);\n }\n\n const handleDateChange = (value) => {\n setDate(value);\n\n callOnChangeData('date', value);\n }\n\n const handleTermsChange = (value) => {\n value = mapTermsListByName(value);\n\n setTerms(value);\n\n callOnChangeData('terms', value);\n }\n\n const fetchTerms = () => {\n let termsListByName = {};\n let termsListById = {};\n\n if (!taxonomy) {\n return;\n }\n\n setIsFetchingTerms(true);\n\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/terms/${taxonomy}`),\n }).then((result) => {\n result.terms.forEach(term => {\n termsListByName[decodeEntities(term.name)] = term;\n termsListById[term.id] = decodeEntities(term.name);\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(decodeEntities(result.taxonomyName));\n setIsFetchingTerms(false);\n });\n }\n\n const storeCalendarIsVisibleOnStorage = (value) => {\n localStorage.setItem('FUTURE_ACTION_CALENDAR_IS_VISIBLE_' + props.context, value ? '1' : '0');\n }\n\n const getCalendarIsVisibleFromStorage = () => {\n return localStorage.getItem('FUTURE_ACTION_CALENDAR_IS_VISIBLE_' + props.context);\n }\n\n useEffect(() => {\n if (props.autoEnableAndHideCheckbox) {\n setEnabled(true);\n } else {\n setEnabled(props.enabled);\n }\n\n setAction(props.action);\n setNewStatus(props.newStatus);\n setDate(props.date);\n setTerms(props.terms);\n setTaxonomy(props.taxonomy);\n\n if (getCalendarIsVisibleFromStorage() === null) {\n setCalendarIsVisible(props.calendarIsVisible);\n } else {\n setCalendarIsVisible(getCalendarIsVisibleFromStorage() === '1');\n }\n\n // We need to get the value directly from the props because the value from the store is not updated yet\n if (props.enabled) {\n if (props.isCleanNewPost) {\n // Force populate the default values\n handleEnabledChange(true);\n }\n\n fetchTerms();\n }\n }, []);\n\n useEffect(() => {\n storeCalendarIsVisibleOnStorage(calendarIsVisible);\n }, [calendarIsVisible]);\n\n useEffect(() => {\n if (hasValidData && props.onDataIsValid) {\n props.onDataIsValid();\n }\n\n if (!hasValidData && props.onDataIsInvalid) {\n props.onDataIsInvalid();\n }\n }, [hasValidData]);\n\n let selectedTerms = [];\n if (terms && terms.length > 0 && termsListById) {\n selectedTerms = compact(mapTermsListById(terms));\n\n if (typeof selectedTerms === 'string') {\n selectedTerms = [];\n }\n }\n\n let termsListByNameKeys = [];\n if (typeof termsListByName === 'object' && termsListByName !== null) {\n termsListByNameKeys = Object.keys(termsListByName);\n }\n\n const panelClass = calendarIsVisible ? 'future-action-panel' : 'future-action-panel hidden-calendar';\n const contentPanelClass = calendarIsVisible ? 'future-action-panel-content' : 'future-action-panel-content hidden-calendar';\n const datePanelClass = calendarIsVisible ? 'future-action-date-panel' : 'future-action-date-panel hidden-calendar';\n\n let is24hour;\n if (props.timeFormat === 'inherited') {\n is24hour = !props.is12Hour;\n } else {\n is24hour = props.timeFormat === '24h';\n }\n\n const replaceCurlyBracketsWithLink = (string, href, target) => {\n const parts = string.split('{');\n const result = [];\n\n result.push(parts.shift());\n\n for (const part of parts) {\n const [before, after] = part.split('}');\n\n result.push(\n {before}\n );\n\n result.push(after);\n }\n\n return result;\n };\n\n // Remove items from actions list if related to taxonomies and there is no taxonmoy for the post type\n let actionsSelectOptions = props.actionsSelectOptions;\n if (!props.taxonomy) {\n actionsSelectOptions = props.actionsSelectOptions.filter((item) => {\n return ['category', 'category-add', 'category-remove', 'category-remove-all'].indexOf(item.value) === -1;\n });\n }\n\n const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n const displayTaxonomyField = String(action).includes('category') && action !== 'category-remove-all';\n\n let termsFieldLabel = taxonomyName;\n switch (action) {\n case 'category':\n termsFieldLabel = props.strings.newTerms.replace('%s', taxonomyName);\n break;\n case 'category-remove':\n termsFieldLabel = props.strings.removeTerms.replace('%s', taxonomyName);\n break;\n case 'category-add':\n termsFieldLabel = props.strings.addTerms.replace('%s', taxonomyName);\n break;\n }\n\n const validateData = () => {\n let valid = true;\n\n if (!enabled) {\n setValidationError('');\n return true;\n }\n\n if (!action) {\n setValidationError(props.strings.errorActionRequired);\n valid = false;\n }\n\n if (!date) {\n setValidationError(props.strings.errorDateRequired);\n valid = false;\n }\n\n // Check if the date is in the past\n if (date && new Date(date) < new Date()) {\n setValidationError(props.strings.errorDateInPast);\n valid = false;\n }\n\n const isTermRequired = ['category', 'category-add', 'category-remove'].includes(action);\n const noTermIsSelected = terms.length === 0 || (terms.length === 1 && (terms[0] === '' || terms[0] === '0'));\n\n if (isTermRequired && noTermIsSelected) {\n setValidationError(props.strings.errorTermsRequired);\n valid = false;\n }\n\n if (valid) {\n setValidationError('');\n }\n\n return valid;\n }\n\n useEffect(() => {\n if (!enabled) {\n setHasValidData(true);\n setValidationError('');\n\n return;\n }\n\n setHasValidData(validateData());\n }, [action, date, enabled, terms, taxonomy]);\n\n // This adds a 'cancel' class to the input when the user clicks on the\n // field to prevent the form from being submitted. This is a workaround\n // for the issue on the quick-edit form where the form is submitted when\n // the user presses the 'Enter' key trying to add a term to the field.\n const forceIgnoreAutoSubmitOnEnter = (e) => {\n jQuery(e.target).addClass('cancel');\n }\n\n return (\n \n
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '@wordpress/data';\n\nexport const createStore = (props) => {\n if (props.defaultState.terms && typeof props.defaultState.terms === 'string') {\n props.defaultState.terms = props.defaultState.terms.split(',').map(term => parseInt(term));\n }\n\n let defaultState = {\n action: props.defaultState.action,\n date: props.defaultState.date ? props.defaultState.date : getCurrentTimeAsTimestamp(),\n enabled: props.defaultState.autoEnable,\n terms: props.defaultState.terms ? props.defaultState.terms : [],\n taxonomy: props.defaultState.taxonomy ? props.defaultState.taxonomy : null,\n newStatus: props.defaultState.newStatus ? props.defaultState.newStatus : 'draft',\n termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\n hasValidData: true,\n extraData: props.defaultState.extraData ? props.defaultState.extraData : {},\n }\n\n const store = createReduxStore(props.name, {\n reducer(state = defaultState, action) {\n switch (action.type) {\n case 'SET_ACTION':\n return {\n ...state,\n action: action.action,\n };\n case 'SET_NEW_STATUS':\n return {\n ...state,\n newStatus: action.newStatus,\n };\n case 'SET_DATE':\n // Make sure the date is a number, if it is a string with only numbers\n if (typeof action.date !== 'number' && isNumber(action.date)) {\n action.date = parseInt(action.date);\n }\n\n // If string, convert to unix time\n if (typeof action.date === 'string') {\n action.date = new Date(action.date).getTime();\n }\n\n // Make sure the time is always in seconds\n action.date = normalizeUnixTimeToSeconds(action.date);\n\n // Convert to formated string format, considering it is in the site's timezone\n action.date = formatUnixTimeToTimestamp(action.date);\n\n return {\n ...state,\n date: action.date,\n }\n case 'SET_ENABLED':\n return {\n ...state,\n enabled: action.enabled,\n }\n case 'SET_TERMS':\n return {\n ...state,\n terms: action.terms,\n }\n case 'SET_TAXONOMY':\n return {\n ...state,\n taxonomy: action.taxonomy,\n }\n case 'SET_TERMS_LIST_BY_NAME':\n return {\n ...state,\n termsListByName: action.termsListByName,\n }\n case 'SET_TERMS_LIST_BY_ID':\n return {\n ...state,\n termsListById: action.termsListById,\n }\n case 'SET_TAXONOMY_NAME':\n return {\n ...state,\n taxonomyName: action.taxonomyName,\n }\n case 'SET_CHANGE_ACTION':\n return {\n ...state,\n changeAction: action.changeAction,\n }\n case 'SET_CALENDAR_IS_VISIBLE':\n return {\n ...state,\n calendarIsVisible: action.calendarIsVisible,\n }\n case 'SET_HAS_VALID_DATA':\n return {\n ...state,\n hasValidData: action.hasValidData,\n }\n\n case 'SET_EXTRA_DATA':\n return {\n ...state,\n extraData: {\n ...action.extraData,\n }\n }\n\n case 'SET_EXTRA_DATA_BY_NAME':\n const extraData = {\n ...state.extraData,\n [action.name]: action.value\n };\n\n return {\n ...state,\n extraData: {...extraData}\n }\n }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\n };\n },\n setNewStatus(newStatus) {\n return {\n type: 'SET_NEW_STATUS',\n newStatus: newStatus\n };\n },\n setDate(date) {\n return {\n type: 'SET_DATE',\n date: date\n };\n },\n setEnabled(enabled) {\n return {\n type: 'SET_ENABLED',\n enabled: enabled\n };\n },\n setTerms(terms) {\n return {\n type: 'SET_TERMS',\n terms: terms\n };\n },\n setTaxonomy(taxonomy) {\n return {\n type: 'SET_TAXONOMY',\n taxonomy: taxonomy\n };\n },\n setTermsListByName(termsListByName) {\n return {\n type: 'SET_TERMS_LIST_BY_NAME',\n termsListByName: termsListByName\n };\n },\n setTermsListById(termsListById) {\n return {\n type: 'SET_TERMS_LIST_BY_ID',\n termsListById: termsListById\n };\n },\n setTaxonomyName(taxonomyName) {\n return {\n type: 'SET_TAXONOMY_NAME',\n taxonomyName: taxonomyName\n };\n },\n setIsFetchingTerms(isFetchingTerms) {\n return {\n type: 'SET_IS_FETCHING_TERMS',\n isFetchingTerms: isFetchingTerms\n }\n },\n setChangeAction(changeAction) {\n return {\n type: 'SET_CHANGE_ACTION',\n changeAction: changeAction\n }\n },\n setCalendarIsVisible(calendarIsVisible) {\n return {\n type: 'SET_CALENDAR_IS_VISIBLE',\n calendarIsVisible: calendarIsVisible\n }\n },\n setHasValidData(hasValidData) {\n return {\n type: 'SET_HAS_VALID_DATA',\n hasValidData: hasValidData\n }\n },\n setExtraData(extraData) {\n return {\n type: 'SET_EXTRA_DATA',\n extraData: extraData\n }\n },\n setExtraDataByName(name, value) {\n return {\n type: 'SET_EXTRA_DATA_BY_NAME',\n name: name,\n value: value\n }\n }\n },\n selectors: {\n getAction(state) {\n return state.action;\n },\n getNewStatus(state) {\n return state.newStatus;\n },\n getDate(state) {\n return state.date;\n },\n getEnabled(state) {\n return state.enabled;\n },\n getTerms(state) {\n return state.terms;\n },\n getTaxonomy(state) {\n return state.taxonomy;\n },\n getTermsListByName(state) {\n return state.termsListByName;\n },\n getTermsListById(state) {\n return state.termsListById;\n },\n getTaxonomyName(state) {\n return state.taxonomyName;\n },\n getIsFetchingTerms(state) {\n return state.isFetchingTerms;\n },\n getChangeAction(state) {\n return state.changeAction;\n },\n getCalendarIsVisible(state) {\n return state.calendarIsVisible;\n },\n getHasValidData(state) {\n return state.hasValidData;\n },\n getExtraData(state) {\n return state.extraData;\n },\n getExtraDataByName(state, name) {\n return state.extraData[name] || null;\n }\n }\n });\n\n register(store);\n\n return store;\n}\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","module.exports = publishpressFutureBlockEditorConfig;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import { createStore } from './data';\nimport { FutureActionPanelBlockEditor } from './components';\nimport { select } from '@wordpress/data';\nimport { registerPlugin } from '@wordpress/plugins';\nimport {\n actionsSelectOptions,\n is12Hour,\n timeFormat,\n startOfWeek,\n strings,\n taxonomyName,\n postTypeDefaultConfig,\n defaultDate,\n statusesSelectOptions\n} from \"&config.block-editor\";\n\nconst storeName = 'publishpress-future/future-action';\n\ncreateStore({\n name: storeName,\n defaultState: {\n autoEnable: postTypeDefaultConfig.autoEnable,\n action: postTypeDefaultConfig.expireType,\n newStatus: postTypeDefaultConfig.newStatus,\n date: defaultDate,\n taxonomy: postTypeDefaultConfig.taxonomy,\n terms: postTypeDefaultConfig.terms,\n }\n});\n\nconst BlockEditorFutureActionPlugin = () => {\n return (\n \n );\n}\n\nregisterPlugin('publishpress-future-action', {\n render: BlockEditorFutureActionPlugin\n});\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","useEffect","decodeEntities","htmlEntities","addQueryArgs","url","data","useSelect","useDispatch","apiFetch","FutureActionPanel","action","select","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","path","then","result","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","offset","globalDefaultExpireOffset","controller","current","abort","signal","method","isValid","message","preview","catch","error","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","SettingsFieldset","legend","SettingsTable","bodyChildren","PostTypesSettingsPanels","panels","postTypeSettings","valign","htmlFor","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","onClick","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","createStore","defaultState","getCurrentTimeAsTimestamp","extraData","createReduxStore","reducer","state","isNumber","getTime","normalizeUnixTimeToSeconds","formatUnixTimeToTimestamp","actions","setExtraData","setExtraDataByName","selectors","getExtraDataByName","register","getCurrentTimeInSeconds","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNaN","module","exports","publishpressFutureBlockEditorConfig","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","defaultDate","registerPlugin","render","getCurrentPostType"],"sourceRoot":""}
+{"version":3,"file":"block-editor.js","mappings":"uFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACK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ACA,SACA,SAaM3X,EAAY,qCAElB,IAAAgT,aAAY,CACR7W,KAAM6D,EACNiT,aAAc,CACV7J,WAAYD,EAAAA,sBAAsBC,WAClCrJ,OAAQoJ,EAAAA,sBAAsBwE,WAC9BrM,UAAW6H,EAAAA,sBAAsB7H,UACjCpB,KAAMod,EAAAA,YACN9c,SAAU2I,EAAAA,sBAAsB3I,SAChCF,MAAO6I,EAAAA,sBAAsB7I,UAuBrC,IAAAid,gBAAe,6BAA8B,CACzCC,OApBkC,WAClC,OACI,oBAAC,EAAA9U,6BAAD,CACIW,UAAU,IAAAvJ,QAAO,eAAe2d,qBAChCja,gBAAgB,IAAA1D,QAAO,eAAe0D,iBACtCiB,qBAAsBA,EAAAA,qBACtB2C,sBAAuBA,EAAAA,sBACvBxI,SAAUA,EAAAA,SACV4F,WAAYA,EAAAA,WACZ3F,YAAaA,EAAAA,YACbmB,UAAWA,EACXyF,QAASA,EAAAA,QACT/E,aAAcA,EAAAA,aACdyI,sBAAuBA,EAAAA,sBACvB5F,sBAAuBA,EAAAA,uBAGlC,G","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateOffsetPreview.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/data.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css","webpack://post-expirator/./node_modules/css-loader/dist/runtime/api.js","webpack://post-expirator/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css?541a","webpack://post-expirator/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://post-expirator/external var \"publishpressFutureBlockEditorConfig\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/webpack/runtime/compat get default export","webpack://post-expirator/webpack/runtime/define property getters","webpack://post-expirator/webpack/runtime/hasOwnProperty shorthand","webpack://post-expirator/webpack/runtime/make namespace object","webpack://post-expirator/webpack/runtime/nonce","webpack://post-expirator/./assets/jsx/block-editor.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\nexport { DateOffsetPreview } from \"./DateOffsetPreview\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '@wordpress/data';\n\nexport const createStore = (props) => {\n if (props.defaultState.terms && typeof props.defaultState.terms === 'string') {\n props.defaultState.terms = props.defaultState.terms.split(',').map(term => parseInt(term));\n }\n\n let defaultState = {\n action: props.defaultState.action,\n date: props.defaultState.date ? props.defaultState.date : getCurrentTimeAsTimestamp(),\n enabled: props.defaultState.autoEnable,\n terms: props.defaultState.terms ? props.defaultState.terms : [],\n taxonomy: props.defaultState.taxonomy ? props.defaultState.taxonomy : null,\n newStatus: props.defaultState.newStatus ? props.defaultState.newStatus : 'draft',\n termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\n hasValidData: true,\n extraData: props.defaultState.extraData ? props.defaultState.extraData : {},\n }\n\n const store = createReduxStore(props.name, {\n reducer(state = defaultState, action) {\n switch (action.type) {\n case 'SET_ACTION':\n return {\n ...state,\n action: action.action,\n };\n case 'SET_NEW_STATUS':\n return {\n ...state,\n newStatus: action.newStatus,\n };\n case 'SET_DATE':\n // Make sure the date is a number, if it is a string with only numbers\n if (typeof action.date !== 'number' && isNumber(action.date)) {\n action.date = parseInt(action.date);\n }\n\n // If string, convert to unix time\n if (typeof action.date === 'string') {\n action.date = new Date(action.date).getTime();\n }\n\n // Make sure the time is always in seconds\n action.date = normalizeUnixTimeToSeconds(action.date);\n\n // Convert to formated string format, considering it is in the site's timezone\n action.date = formatUnixTimeToTimestamp(action.date);\n\n return {\n ...state,\n date: action.date,\n }\n case 'SET_ENABLED':\n return {\n ...state,\n enabled: action.enabled,\n }\n case 'SET_TERMS':\n return {\n ...state,\n terms: action.terms,\n }\n case 'SET_TAXONOMY':\n return {\n ...state,\n taxonomy: action.taxonomy,\n }\n case 'SET_TERMS_LIST_BY_NAME':\n return {\n ...state,\n termsListByName: action.termsListByName,\n }\n case 'SET_TERMS_LIST_BY_ID':\n return {\n ...state,\n termsListById: action.termsListById,\n }\n case 'SET_TAXONOMY_NAME':\n return {\n ...state,\n taxonomyName: action.taxonomyName,\n }\n case 'SET_CHANGE_ACTION':\n return {\n ...state,\n changeAction: action.changeAction,\n }\n case 'SET_CALENDAR_IS_VISIBLE':\n return {\n ...state,\n calendarIsVisible: action.calendarIsVisible,\n }\n case 'SET_HAS_VALID_DATA':\n return {\n ...state,\n hasValidData: action.hasValidData,\n }\n\n case 'SET_EXTRA_DATA':\n return {\n ...state,\n extraData: {\n ...action.extraData,\n }\n }\n\n case 'SET_EXTRA_DATA_BY_NAME':\n const extraData = {\n ...state.extraData,\n [action.name]: action.value\n };\n\n return {\n ...state,\n extraData: {...extraData}\n }\n }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\n };\n },\n setNewStatus(newStatus) {\n return {\n type: 'SET_NEW_STATUS',\n newStatus: newStatus\n };\n },\n setDate(date) {\n return {\n type: 'SET_DATE',\n date: date\n };\n },\n setEnabled(enabled) {\n return {\n type: 'SET_ENABLED',\n enabled: enabled\n };\n },\n setTerms(terms) {\n return {\n type: 'SET_TERMS',\n terms: terms\n };\n },\n setTaxonomy(taxonomy) {\n return {\n type: 'SET_TAXONOMY',\n taxonomy: taxonomy\n };\n },\n setTermsListByName(termsListByName) {\n return {\n type: 'SET_TERMS_LIST_BY_NAME',\n termsListByName: termsListByName\n };\n },\n setTermsListById(termsListById) {\n return {\n type: 'SET_TERMS_LIST_BY_ID',\n termsListById: termsListById\n };\n },\n setTaxonomyName(taxonomyName) {\n return {\n type: 'SET_TAXONOMY_NAME',\n taxonomyName: taxonomyName\n };\n },\n setIsFetchingTerms(isFetchingTerms) {\n return {\n type: 'SET_IS_FETCHING_TERMS',\n isFetchingTerms: isFetchingTerms\n }\n },\n setChangeAction(changeAction) {\n return {\n type: 'SET_CHANGE_ACTION',\n changeAction: changeAction\n }\n },\n setCalendarIsVisible(calendarIsVisible) {\n return {\n type: 'SET_CALENDAR_IS_VISIBLE',\n calendarIsVisible: calendarIsVisible\n }\n },\n setHasValidData(hasValidData) {\n return {\n type: 'SET_HAS_VALID_DATA',\n hasValidData: hasValidData\n }\n },\n setExtraData(extraData) {\n return {\n type: 'SET_EXTRA_DATA',\n extraData: extraData\n }\n },\n setExtraDataByName(name, value) {\n return {\n type: 'SET_EXTRA_DATA_BY_NAME',\n name: name,\n value: value\n }\n }\n },\n selectors: {\n getAction(state) {\n return state.action;\n },\n getNewStatus(state) {\n return state.newStatus;\n },\n getDate(state) {\n return state.date;\n },\n getEnabled(state) {\n return state.enabled;\n },\n getTerms(state) {\n return state.terms;\n },\n getTaxonomy(state) {\n return state.taxonomy;\n },\n getTermsListByName(state) {\n return state.termsListByName;\n },\n getTermsListById(state) {\n return state.termsListById;\n },\n getTaxonomyName(state) {\n return state.taxonomyName;\n },\n getIsFetchingTerms(state) {\n return state.isFetchingTerms;\n },\n getChangeAction(state) {\n return state.changeAction;\n },\n getCalendarIsVisible(state) {\n return state.calendarIsVisible;\n },\n getHasValidData(state) {\n return state.hasValidData;\n },\n getExtraData(state) {\n return state.extraData;\n },\n getExtraDataByName(state, name) {\n return state.extraData[name] || null;\n }\n }\n });\n\n register(store);\n\n return store;\n}\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./assets/jsx/components/css/dateOffsetPreview.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB\",\"sourcesContent\":[\".publishpress-future-date-preview .publishpress-future-date-preview-value {\\n font-family: monospace;\\n background-color: #e7e7e7;\\n padding: 2px 4px;\\n}\\n\\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\\n display: block;\\n}\\n\\n.publishpress-future-date-preview.compact {\\n margin-bottom: 8px;\\n}\\n\\n.publishpress-future-date-preview.compact h4 {\\n font-size: 11px;\\n font-weight: 500;\\n line-height: 1.4;\\n text-transform: uppercase;\\n display: inline-block;\\n margin-bottom: calc(8px);\\n padding: 0px;\\n flex-shrink: 0;\\n margin-right: 12px;\\n max-width: 75%;\\n margin-top: 0;\\n}\\n\\n.publishpress-future-notice.publishpress-future-notice-error {\\n color: #dc3232;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","module.exports = publishpressFutureBlockEditorConfig;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","import { createStore } from './data';\nimport { FutureActionPanelBlockEditor } from './components';\nimport { select } from '@wordpress/data';\nimport { registerPlugin } from '@wordpress/plugins';\nimport {\n actionsSelectOptions,\n is12Hour,\n timeFormat,\n startOfWeek,\n strings,\n taxonomyName,\n postTypeDefaultConfig,\n defaultDate,\n statusesSelectOptions,\n hideCalendarByDefault\n} from \"&config.block-editor\";\n\nconst storeName = 'publishpress-future/future-action';\n\ncreateStore({\n name: storeName,\n defaultState: {\n autoEnable: postTypeDefaultConfig.autoEnable,\n action: postTypeDefaultConfig.expireType,\n newStatus: postTypeDefaultConfig.newStatus,\n date: defaultDate,\n taxonomy: postTypeDefaultConfig.taxonomy,\n terms: postTypeDefaultConfig.terms,\n }\n});\n\nconst BlockEditorFutureActionPlugin = () => {\n return (\n \n );\n}\n\nregisterPlugin('publishpress-future-action', {\n render: BlockEditorFutureActionPlugin\n});\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","require","DateOffsetPreview","offset","labelDatePreview","labelOffsetPreview","setValidationErrorCallback","setHasPendingValidationCallback","setHasValidDataCallback","compactView","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","useEffect","controller","current","abort","signal","apiFetch","path","addQueryArgs","method","data","then","result","isValid","message","preview","catch","error","validateDateOffset","compactClass","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","decodeEntities","htmlEntities","url","useSelect","useDispatch","FutureActionPanel","select","action","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","hideCalendarByDefault","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","globalDefaultExpireOffset","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","fieldSetClassNames","isVisible","SettingsTable","bodyChildren","PostTypesSettingsPanels","currentTab","setCurrentTab","panels","postTypeSettings","legend","onSelectTab","event","preventDefault","hash","tabs","onClick","valign","htmlFor","SettingsFieldset","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","createStore","defaultState","getCurrentTimeAsTimestamp","extraData","createReduxStore","reducer","state","isNumber","getTime","normalizeUnixTimeToSeconds","formatUnixTimeToTimestamp","actions","setExtraData","setExtraDataByName","selectors","getExtraDataByName","register","getCurrentTimeInSeconds","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNaN","___CSS_LOADER_EXPORT___","module","exports","cssWithMappingToString","list","this","content","needLayer","concat","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","sourceMapping","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","stylesInDOM","getIndexByIdentifier","identifier","modulesToDom","idCountMap","identifiers","base","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","style","styleTarget","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","createElement","attributes","styleElement","setAttribute","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","publishpressFutureBlockEditorConfig","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","prototype","hasOwnProperty","call","r","Symbol","toStringTag","nc","defaultDate","registerPlugin","render","getCurrentPostType"],"sourceRoot":""}
\ No newline at end of file
diff --git a/assets/js/bulk-edit.js b/assets/js/bulk-edit.js
index bf6deb72d..0556df2a3 100644
--- a/assets/js/bulk-edit.js
+++ b/assets/js/bulk-edit.js
@@ -1,2 +1,2 @@
-(()=>{"use strict";var e={442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(386),r=n(214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(39),r=n(214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(409),i=n(873),l=n(986),u=n(214),c=n(61),s=n(625),m=wp.components,d=m.PanelRow,p=m.CheckboxControl,f=m.SelectControl,y=m.FormTokenField,g=m.Spinner,v=m.BaseControl,b=wp.element,E=b.Fragment,S=b.useEffect,h=b.useState,_=wp.htmlEntities.decodeEntities,T=wp.url.addQueryArgs,x=wp.data,N=x.useSelect,R=x.useDispatch,A=wp.apiFetch;t.FutureActionPanel=function(e){var t=N((function(t){return t(e.storeName).getAction()}),[]),n=N((function(t){return t(e.storeName).getDate()}),[]),m=N((function(t){return t(e.storeName).getEnabled()}),[]),b=N((function(t){return t(e.storeName).getTerms()}),[]),x=N((function(t){return t(e.storeName).getTaxonomy()}),[]),C=N((function(t){return t(e.storeName).getTaxonomyName()}),[]),P=N((function(t){return t(e.storeName).getTermsListByName()}),[]),w=N((function(t){return t(e.storeName).getTermsListById()}),[]),O=N((function(t){return t(e.storeName).getIsFetchingTerms()}),[]),D=N((function(t){return t(e.storeName).getCalendarIsVisible()}),[]),F=N((function(t){return t(e.storeName).getHasValidData()}),[]),k=N((function(t){return t(e.storeName).getNewStatus()}),[]),I=h(""),j=r(I,2),B=j[0],M=j[1],L=R(e.storeName),V=L.setAction,H=L.setDate,W=L.setEnabled,U=L.setTerms,Q=L.setTaxonomy,Y=L.setTermsListByName,q=L.setTermsListById,X=L.setTaxonomyName,z=L.setIsFetchingTerms,G=L.setCalendarIsVisible,J=L.setHasValidData,K=L.setNewStatus,Z=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:x},w[e]=e,Y(P),q(w),U([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&w&&(ae=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return w[e]}))}(b)),"string"==typeof ae&&(ae=[]));var re=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(re=Object.keys(P));var oe,ie=D?"future-action-panel":"future-action-panel hidden-calendar",le=D?"future-action-panel-content":"future-action-panel-content hidden-calendar",ue=D?"future-action-date-panel":"future-action-date-panel hidden-calendar";oe="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ce=e.actionsSelectOptions;e.taxonomy||(ce=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var se=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,u=void 0;try{for(var c,s=a[Symbol.iterator]();!(i=(c=s.next()).done);i=!0){var m=c.value.split("}"),d=r(m,2),p=d[0],f=d[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},p)),o.push(f)}}catch(e){l=!0,u=e}finally{try{!i&&s.return&&s.return()}finally{if(l)throw u}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(t).includes("category")&&"category-remove-all"!==t,de=C;switch(t){case"category":de=e.strings.newTerms.replace("%s",C);break;case"category-remove":de=e.strings.removeTerms.replace("%s",C);break;case"category-add":de=e.strings.addTerms.replace("%s",C)}return S((function(){if(!m)return J(!0),void M("");J(function(){var a=!0;if(!m)return M(""),!0;t||(M(e.strings.errorActionRequired),a=!1),n||(M(e.strings.errorDateRequired),a=!1),n&&new Date(n){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,u=i("core/editor").getEditedPostAttribute("publishpress_future_action"),c=o("core/editor"),s=c.lockPostSaving,m=c.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:u.enabled,calendarIsVisible:!0,action:u.action,newStatus:u.newStatus,date:u.date,terms:u.terms,taxonomy:u.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,u=Object.entries(e)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var c=i.value,s=a(c,2),m=s[0],d=s[1];t.publishpress_future_action[m]=d}}catch(e){r=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){m("future-action")},onDataIsInvalid:function(){s("future-action")}})))}},94:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,u=wp.element.useEffect,c=n((function(t){return t(e.storeName).getDate()}),[]),s=n((function(t){return t(e.storeName).getEnabled()}),[]),m=n((function(t){return t(e.storeName).getAction()}),[]),d=n((function(t){return t(e.storeName).getNewStatus()}),[]),p=n((function(t){return t(e.storeName).getTerms()}),[]),f=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),g=n((function(t){return t(e.storeName).getHasValidData()}),[]),v=i(e.storeName).setChangeAction,b=p;"object"===(void 0===p?"undefined":a(p))&&(b=p.join(","));var E=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return u((function(){g||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[g,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:E,onChange:function(e){v(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:m,newStatus:d,date:c,terms:p,taxonomy:f,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:s?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:c}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:b}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:f}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(57),r=n(562);n(386),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(562);n(386),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),u=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),c=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),s=l;return"object"===(void 0===l?"undefined":a(l))&&(s=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:c,date:t,terms:l,taxonomy:u,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(386);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57),o=n(386),i=n(11),l=n(566),u=n(244),c=wp.components,s=c.PanelRow;c.BaseControl,t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,o.useState)(e.settings.taxonomy),c=a(n,2),m=c[0],d=c[1],p=(0,o.useState)([]),f=a(p,2),y=f[0],g=f[1],v=(0,o.useState)(!1),b=a(v,2),E=b[0],S=b[1],h=(0,o.useState)([]),_=a(h,2),T=_[0],x=_[1],N=(0,o.useState)(e.settings.howToExpire),R=a(N,2),A=R[0],C=R[1],P=(0,o.useState)(e.settings.active),w=a(P,2),O=w[0],D=w[1],F=(0,o.useState)(e.settings.defaultExpireOffset),k=a(F,2),I=k[0],j=k[1],B=(0,o.useState)(e.settings.emailNotification),M=a(B,2),L=M[0],V=M[1],H=(0,o.useState)(e.settings.autoEnabled),W=a(H,2),U=W[0],Q=W[1],Y=(0,o.useState)(!1),q=a(Y,2),X=q[0],z=q[1],G=(0,o.useState)(""),J=a(G,2),K=J[0],Z=J[1],$=(0,o.useState)(""),ee=a($,2),te=ee[0],ne=ee[1],ae=(0,o.useState)(t),re=a(ae,2),oe=re[0],ie=re[1],le=(0,o.useState)(e.settings.newStatus),ue=a(le,2),ce=ue[0],se=ue[1],me=(0,o.useState)(!1),de=a(me,2),pe=de[0],fe=de[1],ye=(0,o.useState)(""),ge=a(ye,2),ve=ge[0],be=ge[1],Ee=(0,o.useState)(),Se=a(Ee,2),he=Se[0],_e=Se[1],Te=(0,o.useRef)(new AbortController),xe=["category","category-add","category-remove","category-remove-all"];(0,o.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=oe.filter((function(e){return-1===xe.indexOf(e.value)})),ie(t))}),[]),(0,o.useEffect)((function(){m&&e.taxonomiesList&&(S(!0),(0,u.apiFetch)({path:(0,i.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),g(n),x(a),S(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ne(e.label)})))}),[m]),(0,o.useEffect)((function(){z(function(){if(!O)return Z(""),!0;var t=I||e.settings.globalDefaultExpireOffset;if(t){var n=Te.current;n&&n.abort(),Te.current=new AbortController;var a=Te.current.signal;fe(!0),(0,u.apiFetch)({path:(0,i.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:a}).then((function(e){fe(!1),z(e.isValid),Z(e.message),e.isValid?(be(e.preview),_e(e.currentTime)):be("")})).catch((function(e){"AbortError"!==e.name&&(fe(!1),z(!1),Z(e.message),be(""))}))}return Z(""),!0}())}),[O,I]),(0,o.useEffect)((function(){if(te){var e=[];t.forEach((function(t){var n=t.label;-1!==xe.indexOf(t.value)&&(n=n.replace("%s",te.toLowerCase())),e.push({value:t.value,label:n})})),ie(e)}}),[te]),(0,o.useEffect)((function(){X&&e.onDataIsValid&&e.onDataIsValid(e.postType),!X&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[X]),(0,o.useEffect)((function(){pe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!pe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[pe]);var Ne=y.map((function(e){return e.label})),Re=[React.createElement(r.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(r.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:O||!1,label:e.text.fieldActiveLabel,onChange:function(e){D(e)}}))];return O&&(Re.push(React.createElement(r.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(r.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:U||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){Q(e)}}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(r.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){d(e)}}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(r.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:oe,description:e.text.fieldHowToExpireDescription,selected:A,onChange:function(e){C(e)}}),"change-status"===A&&React.createElement(r.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ce,onChange:se}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(A)>-1&&React.createElement(r.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:Ne,value:T,isLoading:E,onChange:function(e){x(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(r.TextControl,{name:"expired-custom-date-"+e.postType,value:I,loading:pe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){j(e)}}),ve&&React.createElement(o.Fragment,null,React.createElement("h4",null,e.text.datePreview),React.createElement("div",null,React.createElement("div",null,React.createElement("span",null,e.text.datePreviewCurrent,": "),React.createElement("span",null,React.createElement("code",null,he))),React.createElement("div",null,React.createElement("span",null,e.text.datePreviewComputed,": "),React.createElement("span",null,React.createElement("code",null,ve))))))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(r.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){V(e)}})))),Re=(0,l.applyFilters)("expirationdate_settings_posttype",Re,e,O,o.useState),React.createElement(r.SettingsFieldset,{legend:e.legend},React.createElement(r.SettingsTable,{bodyChildren:Re}),!X&&React.createElement(s,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",K)))}},138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.PostTypesSettingsPanels=function(e){var t=[],n=!0,o=!1,i=void 0;try{for(var l,u=Object.entries(e.settings)[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){var c=l.value,s=a(c,2),m=s[0],d=s[1];t.push(React.createElement(r.PostTypeSettingsPanel,{legend:d.label,text:e.text,postType:m,settings:d,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[m],statusesList:e.statusesList[m],key:m+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished}))}}catch(e){o=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return t}},858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(386),r=n(214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},5:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(386),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",null,React.createElement("legend",null,e.legend),e.children)}},892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(386);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(386),r=n(214),o=n(57);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(190),r=n(620),o=n(386);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,u=e.onChangeDate,c=e.is12Hour,s=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:u,__nextRemoveHelpButton:!0,is12Hour:c,startOfWeek:s}))}},948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(386),o=n(214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var u=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:u,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},57:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var u=n(94);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return u.FutureActionPanelBulkEdit}});var c=n(239);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return c.PostTypeSettingsPanel}});var s=n(138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return s.PostTypesSettingsPanels}});var m=n(5);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return m.SettingRow}});var d=n(786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return d.SettingsFieldset}});var p=n(892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return p.SettingsForm}});var f=n(681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return f.SettingsSection}});var y=n(772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var g=n(438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return g.SubmitButton}});var v=n(311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return v.CheckboxControl}});var b=n(858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return b.SelectControl}});var E=n(301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return E.TextControl}});var S=n(948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return S.TokensControl}});var h=n(13);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return h.NonceControl}});var _=n(225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return _.TrueFalseControl}});var T=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return T.Spinner}})},480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,u=arguments[1];switch(u.type){case"SET_ACTION":return a({},l,{action:u.action});case"SET_NEW_STATUS":return a({},l,{newStatus:u.newStatus});case"SET_DATE":return"number"!=typeof u.date&&(0,o.isNumber)(u.date)&&(u.date=parseInt(u.date)),"string"==typeof u.date&&(u.date=new Date(u.date).getTime()),u.date=(0,r.normalizeUnixTimeToSeconds)(u.date),u.date=(0,r.formatUnixTimeToTimestamp)(u.date),a({},l,{date:u.date});case"SET_ENABLED":return a({},l,{enabled:u.enabled});case"SET_TERMS":return a({},l,{terms:u.terms});case"SET_TAXONOMY":return a({},l,{taxonomy:u.taxonomy});case"SET_TERMS_LIST_BY_NAME":return a({},l,{termsListByName:u.termsListByName});case"SET_TERMS_LIST_BY_ID":return a({},l,{termsListById:u.termsListById});case"SET_TAXONOMY_NAME":return a({},l,{taxonomyName:u.taxonomyName});case"SET_CHANGE_ACTION":return a({},l,{changeAction:u.changeAction});case"SET_CALENDAR_IS_VISIBLE":return a({},l,{calendarIsVisible:u.calendarIsVisible});case"SET_HAS_VALID_DATA":return a({},l,{hasValidData:u.hasValidData});case"SET_EXTRA_DATA":return a({},l,{extraData:a({},u.extraData)});case"SET_EXTRA_DATA_BY_NAME":var c=a({},l.extraData,(e={},n=u.name,i=u.value,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return a({},l,{extraData:a({},c)})}return l},actions:{setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});return(0,i.register)(n),n}},39:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{e.exports=publishpressFutureBulkEditConfig},643:e=>{e.exports=window},244:e=>{e.exports=wp},214:e=>{e.exports=wp.components},562:e=>{e.exports=wp.data},386:e=>{e.exports=wp.element},566:e=>{e.exports=wp.hooks},986:e=>{e.exports=wp.plugins},11:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}var a=n(57),r=n(480),o=n(386),i=n(562),l=n(643),u=n(384),c="publishpress-future/future-action-bulk-edit",s=l.inlineEditPost.setBulk,m=l.inlineEditPost.revert;l.inlineEditPost.setBulk=function(e){s.apply(this,arguments),(0,i.select)(c)?((0,i.dispatch)(c).setAction(u.postTypeDefaultConfig.expireType),(0,i.dispatch)(c).setDate(u.postTypeDefaultConfig.defaultDate),(0,i.dispatch)(c).setTaxonomy(u.postTypeDefaultConfig.taxonomy),(0,i.dispatch)(c).setTerms(u.postTypeDefaultConfig.terms),(0,i.dispatch)(c).setChangeAction("no-change")):(0,r.createStore)({name:c,defaultState:{action:u.postTypeDefaultConfig.expireType,newStatus:u.postTypeDefaultConfig.newStatus,date:u.defaultDate,taxonomy:u.postTypeDefaultConfig.taxonomy,terms:u.postTypeDefaultConfig.terms,changeAction:"no-change"}});var t=document.getElementById("publishpress-future-bulk-edit"),n=(0,o.createRoot)(t),d=document.querySelector("#bulk_edit");d&&(d.onclick=function(){setTimeout((function(){n.unmount()}),1e3)});var p=React.createElement(a.FutureActionPanelBulkEdit,{storeName:c,postType:u.postType,isNewPost:u.isNewPost,actionsSelectOptions:u.actionsSelectOptions,statusesSelectOptions:u.statusesSelectOptions,is12Hour:u.is12Hour,timeFormat:u.timeFormat,startOfWeek:u.startOfWeek,strings:u.strings,taxonomyName:u.taxonomyName,nonce:u.nonce});n.render(p),l.inlineEditPost.revert=function(){n.unmount(),m.apply(this,arguments)}}})();
+(()=>{"use strict";var e={5442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},4311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(1386),r=n(2214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},5470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateOffsetPreview=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(1386),o=n(4011),i=n(3244);n(9922);var l=t.DateOffsetPreview=function(e){var t=e.offset,n=e.label,l=e.labelDatePreview,s=e.labelOffsetPreview,u=e.setValidationErrorCallback,c=e.setHasPendingValidationCallback,d=e.setHasValidDataCallback,m=e.compactView,p=void 0!==m&&m,f=(0,r.useState)(""),y=a(f,2),g=y[0],v=y[1],b=(0,r.useState)(),h=a(b,2),E=h[0],S=h[1],_=(0,r.useRef)(new AbortController);(0,r.useEffect)((function(){!function(){if(t){var e=_.current;e&&e.abort(),_.current=new AbortController;var n=_.current.signal;c(!0),(0,i.apiFetch)({path:(0,o.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:n}).then((function(e){c(!1),d(e.isValid),u(e.message),e.isValid?(v(e.preview),S(e.currentTime)):v("")})).catch((function(e){"AbortError"!==e.name&&(c(!1),d(!1),u(e.message),v(""))}))}}()}),[t]);var x=p?" compact":"";return React.createElement(r.Fragment,null,t&&React.createElement("div",{className:"publishpress-future-date-preview"+x},React.createElement("h4",null,n),React.createElement("div",{className:"publishpress-future-date-preview-body"},React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},l,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},E)),React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},s,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},g)))))};t.default=l},4620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(7039),r=n(2214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},8418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(8409),i=n(4873),l=n(9986),s=n(2214),u=n(1442),c=n(6625),d=wp.components,m=d.PanelRow,p=d.CheckboxControl,f=d.SelectControl,y=d.FormTokenField,g=d.Spinner,v=d.BaseControl,b=wp.element,h=b.Fragment,E=b.useEffect,S=b.useState,_=wp.htmlEntities.decodeEntities,x=wp.url.addQueryArgs,T=wp.data,A=T.useSelect,N=T.useDispatch,C=wp.apiFetch;t.FutureActionPanel=function(e){var t=A((function(t){return{action:t(e.storeName).getAction(),date:t(e.storeName).getDate(),enabled:t(e.storeName).getEnabled(),terms:t(e.storeName).getTerms(),taxonomy:t(e.storeName).getTaxonomy(),taxonomyName:t(e.storeName).getTaxonomyName(),termsListByName:t(e.storeName).getTermsListByName(),termsListById:t(e.storeName).getTermsListById(),isFetchingTerms:t(e.storeName).getIsFetchingTerms(),calendarIsVisible:t(e.storeName).getCalendarIsVisible(),hasValidData:t(e.storeName).getHasValidData(),newStatus:t(e.storeName).getNewStatus()}})),n=t.action,d=t.date,b=t.enabled,T=t.terms,R=t.taxonomy,w=t.taxonomyName,P=t.termsListByName,O=t.termsListById,D=t.isFetchingTerms,I=t.calendarIsVisible,k=t.hasValidData,F=t.newStatus,B=S(""),j=r(B,2),M=j[0],V=j[1],L=N(e.storeName),H=L.setAction,U=L.setDate,W=L.setEnabled,Q=L.setTerms,q=L.setTaxonomy,Y=L.setTermsListByName,z=L.setTermsListById,X=L.setTaxonomyName,G=L.setIsFetchingTerms,J=L.setCalendarIsVisible,Z=L.setHasValidData,K=L.setNewStatus,$=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:R},O[e]=e,Y(P),z(O),Q([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&O&&(re=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return O[e]}))}(T)),"string"==typeof re&&(re=[]));var oe=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(oe=Object.keys(P));var ie,le=I?"future-action-panel":"future-action-panel hidden-calendar",se=I?"future-action-panel-content":"future-action-panel-content hidden-calendar",ue=I?"future-action-date-panel":"future-action-date-panel hidden-calendar";ie="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ce=e.actionsSelectOptions;e.taxonomy||(ce=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var de=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,s=void 0;try{for(var u,c=a[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value.split("}"),m=r(d,2),p=m[0],f=m[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},p)),o.push(f)}}catch(e){l=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(l)throw s}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(n).includes("category")&&"category-remove-all"!==n,pe=w;switch(n){case"category":pe=e.strings.newTerms.replace("%s",w);break;case"category-remove":pe=e.strings.removeTerms.replace("%s",w);break;case"category-add":pe=e.strings.addTerms.replace("%s",w)}return E((function(){if(!b)return Z(!0),void V("");Z(function(){var t=!0;if(!b)return V(""),!0;n||(V(e.strings.errorActionRequired),t=!1),d||(V(e.strings.errorDateRequired),t=!1),d&&new Date(d){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,s=i("core/editor").getEditedPostAttribute("publishpress_future_action"),u=o("core/editor"),c=u.lockPostSaving,d=u.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:s.enabled,calendarIsVisible:!0,action:s.action,newStatus:s.newStatus,date:s.date,terms:s.terms,taxonomy:s.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,s=Object.entries(e)[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value,c=a(u,2),d=c[0],m=c[1];t.publishpress_future_action[d]=m}}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){d("future-action")},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){c("future-action")}})))}},2094:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2057),o=n(8409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,s=wp.element.useEffect,u=n((function(t){return t(e.storeName).getDate()}),[]),c=n((function(t){return t(e.storeName).getEnabled()}),[]),d=n((function(t){return t(e.storeName).getAction()}),[]),m=n((function(t){return t(e.storeName).getNewStatus()}),[]),p=n((function(t){return t(e.storeName).getTerms()}),[]),f=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),g=n((function(t){return t(e.storeName).getHasValidData()}),[]),v=i(e.storeName).setChangeAction,b=p;"object"===(void 0===p?"undefined":a(p))&&(b=p.join(","));var h=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return s((function(){g||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[g,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:h,onChange:function(e){v(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:d,newStatus:m,date:u,terms:p,taxonomy:f,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,hideCalendarByDefault:e.hideCalendarByDefault,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:c?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:u}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:b}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:f}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},3571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(2057),r=n(7562);n(1386),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},5437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2057),o=n(7562);n(1386),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),s=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),u=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),c=l;return"object"===(void 0===l?"undefined":a(l))&&(c=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:u,date:t,terms:l,taxonomy:s,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},6625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(1386);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},1620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(2057),i=n(1386),l=n(4011),s=n(8566),u=n(3244),c=(a=n(5470))&&a.__esModule?a:{default:a},d=wp.components.PanelRow;t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,i.useState)(e.settings.taxonomy),a=r(n,2),m=a[0],p=a[1],f=(0,i.useState)([]),y=r(f,2),g=y[0],v=y[1],b=(0,i.useState)(!1),h=r(b,2),E=h[0],S=h[1],_=(0,i.useState)([]),x=r(_,2),T=x[0],A=x[1],N=(0,i.useState)(e.settings.howToExpire),C=r(N,2),R=C[0],w=C[1],P=(0,i.useState)(e.settings.active),O=r(P,2),D=O[0],I=O[1],k=(0,i.useState)(e.settings.defaultExpireOffset),F=r(k,2),B=F[0],j=F[1],M=(0,i.useState)(e.settings.emailNotification),V=r(M,2),L=V[0],H=V[1],U=(0,i.useState)(e.settings.autoEnabled),W=r(U,2),Q=W[0],q=W[1],Y=(0,i.useState)(!0),z=r(Y,2),X=z[0],G=z[1],J=(0,i.useState)(""),Z=r(J,2),K=Z[0],$=Z[1],ee=(0,i.useState)(""),te=r(ee,2),ne=te[0],ae=te[1],re=(0,i.useState)(t),oe=r(re,2),ie=oe[0],le=oe[1],se=(0,i.useState)(e.settings.newStatus),ue=r(se,2),ce=ue[0],de=ue[1],me=(0,i.useState)(!1),pe=r(me,2),fe=pe[0],ye=pe[1],ge=B||e.settings.globalDefaultExpireOffset,ve=["category","category-add","category-remove","category-remove-all"];(0,i.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=ie.filter((function(e){return-1===ve.indexOf(e.value)})),le(t))}),[]),(0,i.useEffect)((function(){m&&e.taxonomiesList&&(S(!0),(0,u.apiFetch)({path:(0,l.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),v(n),A(a),S(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ae(e.label)})))}),[m]),(0,i.useEffect)((function(){if(ne){var e=[];t.forEach((function(t){var n=t.label;-1!==ve.indexOf(t.value)&&(n=n.replace("%s",ne.toLowerCase())),e.push({value:t.value,label:n})})),le(e)}}),[ne]),(0,i.useEffect)((function(){X&&e.onDataIsValid&&e.onDataIsValid(e.postType),!X&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[X]),(0,i.useEffect)((function(){fe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!fe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[fe]);var be=g.map((function(e){return e.label})),he=[React.createElement(o.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:D||!1,label:e.text.fieldActiveLabel,onChange:function(e){I(e)}}))];D&&(he.push(React.createElement(o.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:Q||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){q(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){p(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:ie,description:e.text.fieldHowToExpireDescription,selected:R,onChange:function(e){w(e)}}),"change-status"===R&&React.createElement(o.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ce,onChange:de}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(R)>-1&&React.createElement(o.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:be,value:T,isLoading:E,onChange:function(e){A(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(o.TextControl,{name:"expired-custom-date-"+e.postType,value:B,loading:fe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){j(e)}}),React.createElement(c.default,{offset:ge,label:e.text.datePreview,labelDatePreview:e.text.datePreviewCurrent,labelOffsetPreview:e.text.datePreviewComputed,setValidationErrorCallback:$,setHasPendingValidationCallback:ye,setHasValidDataCallback:G}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(o.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){H(e)}})))),he=(0,s.applyFilters)("expirationdate_settings_posttype",he,e,D,i.useState);var Ee=e.isVisible?"pe-settings-fieldset":"pe-settings-fieldset hidden";return React.createElement("div",{className:Ee},React.createElement(o.SettingsTable,{bodyChildren:he}),!X&&React.createElement(d,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",K)))}},8138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057),o=n(1386);t.PostTypesSettingsPanels=function(e){var t=(0,o.useState)(Object.keys(e.settings)[0]),n=a(t,2),i=n[0],l=n[1],s=[],u=!0,c=!1,d=void 0;try{for(var m,p=Object.entries(e.settings)[Symbol.iterator]();!(u=(m=p.next()).done);u=!0){var f=m.value,y=a(f,2),g=y[0],v=y[1];s.push(React.createElement(r.PostTypeSettingsPanel,{legend:v.label,text:e.text,postType:g,settings:v,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[g],statusesList:e.statusesList[g],key:g+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished,isVisible:i===g}))}}catch(e){c=!0,d=e}finally{try{!u&&p.return&&p.return()}finally{if(c)throw d}}var b=function(e){e.preventDefault(),l(e.target.hash.replace("#","").replace("-panel",""))},h=[],E=!1,S=!0,_=!1,x=void 0;try{for(var T,A=Object.entries(e.settings)[Symbol.iterator]();!(S=(T=A.next()).done);S=!0){var N=T.value,C=a(N,2),R=C[0],w=C[1];E=i===R,h.push(React.createElement("a",{href:"#"+R+"-panel",className:"nav-tab "+(E?"nav-tab-active":""),key:R+"-tab",onClick:b},w.label))}}catch(e){_=!0,x=e}finally{try{!S&&A.return&&A.return()}finally{if(_)throw x}}return React.createElement("div",null,React.createElement("nav",{className:"nav-tab-wrapper"},h),s)}},2858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(1386),r=n(2214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},9005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(1386),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},5786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",{className:e.className},React.createElement("legend",null,e.legend),e.children)}},9892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},5681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(1386);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},6772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},4438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},6301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(1386),r=n(2214),o=n(2057);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},3190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(2214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},4873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(3190),r=n(4620),o=n(1386);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,s=e.onChangeDate,u=e.is12Hour,c=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:s,__nextRemoveHelpButton:!0,is12Hour:u,startOfWeek:c}))}},3948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(1386),o=n(2214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var s=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:s,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},8225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},2057:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(5442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(8418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(2864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(3571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(5437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var s=n(2094);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return s.FutureActionPanelBulkEdit}});var u=n(1620);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return u.PostTypeSettingsPanel}});var c=n(8138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return c.PostTypesSettingsPanels}});var d=n(9005);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return d.SettingRow}});var m=n(5786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return m.SettingsFieldset}});var p=n(9892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return p.SettingsForm}});var f=n(5681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return f.SettingsSection}});var y=n(6772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var g=n(4438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return g.SubmitButton}});var v=n(4311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return v.CheckboxControl}});var b=n(2858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return b.SelectControl}});var h=n(6301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return h.TextControl}});var E=n(3948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return E.TokensControl}});var S=n(1013);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return S.NonceControl}});var _=n(8225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return _.TrueFalseControl}});var x=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return x.Spinner}});var T=n(5470);Object.defineProperty(t,"DateOffsetPreview",{enumerable:!0,get:function(){return T.DateOffsetPreview}})},4480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,s=arguments[1];switch(s.type){case"SET_ACTION":return a({},l,{action:s.action});case"SET_NEW_STATUS":return a({},l,{newStatus:s.newStatus});case"SET_DATE":return"number"!=typeof s.date&&(0,o.isNumber)(s.date)&&(s.date=parseInt(s.date)),"string"==typeof s.date&&(s.date=new Date(s.date).getTime()),s.date=(0,r.normalizeUnixTimeToSeconds)(s.date),s.date=(0,r.formatUnixTimeToTimestamp)(s.date),a({},l,{date:s.date});case"SET_ENABLED":return a({},l,{enabled:s.enabled});case"SET_TERMS":return a({},l,{terms:s.terms});case"SET_TAXONOMY":return a({},l,{taxonomy:s.taxonomy});case"SET_TERMS_LIST_BY_NAME":return a({},l,{termsListByName:s.termsListByName});case"SET_TERMS_LIST_BY_ID":return a({},l,{termsListById:s.termsListById});case"SET_TAXONOMY_NAME":return a({},l,{taxonomyName:s.taxonomyName});case"SET_CHANGE_ACTION":return a({},l,{changeAction:s.changeAction});case"SET_CALENDAR_IS_VISIBLE":return a({},l,{calendarIsVisible:s.calendarIsVisible});case"SET_HAS_VALID_DATA":return a({},l,{hasValidData:s.hasValidData});case"SET_EXTRA_DATA":return a({},l,{extraData:a({},s.extraData)});case"SET_EXTRA_DATA_BY_NAME":var u=a({},l.extraData,(e={},n=s.name,i=s.value,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return a({},l,{extraData:a({},u)})}return l},actions:{setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});return(0,i.register)(n),n}},7039:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},8409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{n.d(t,{A:()=>l});var a=n(1354),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n","",{version:3,sources:["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],names:[],mappings:"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB",sourcesContent:[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],sourceRoot:""}]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},1354:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),o="/*# ".concat(r," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},5338:(e,t,n)=>{var a=n(5206);t.createRoot=a.createRoot,t.hydrateRoot=a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),l=n(7659),s=n.n(l),u=n(5056),c=n.n(u),d=n(540),m=n.n(d),p=n(1113),f=n.n(p),y=n(1461),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=m(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM},9384:e=>{e.exports=publishpressFutureBulkEditConfig},8643:e=>{e.exports=window},3244:e=>{e.exports=wp},2214:e=>{e.exports=wp.components},7562:e=>{e.exports=wp.data},1386:e=>{e.exports=wp.element},8566:e=>{e.exports=wp.hooks},9986:e=>{e.exports=wp.plugins},4011:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var a=n(2057),r=n(4480),o=n(5338),i=n(7562),l=n(8643),s=n(9384),u="publishpress-future/future-action-bulk-edit",c=l.inlineEditPost.setBulk,d=l.inlineEditPost.revert;l.inlineEditPost.setBulk=function(e){c.apply(this,arguments),(0,i.select)(u)?((0,i.dispatch)(u).setAction(s.postTypeDefaultConfig.expireType),(0,i.dispatch)(u).setDate(s.postTypeDefaultConfig.defaultDate),(0,i.dispatch)(u).setTaxonomy(s.postTypeDefaultConfig.taxonomy),(0,i.dispatch)(u).setTerms(s.postTypeDefaultConfig.terms),(0,i.dispatch)(u).setChangeAction("no-change")):(0,r.createStore)({name:u,defaultState:{action:s.postTypeDefaultConfig.expireType,newStatus:s.postTypeDefaultConfig.newStatus,date:s.defaultDate,taxonomy:s.postTypeDefaultConfig.taxonomy,terms:s.postTypeDefaultConfig.terms,changeAction:"no-change"}});var t=document.getElementById("publishpress-future-bulk-edit"),n=(0,o.createRoot)(t),m=document.querySelector("#bulk_edit");m&&(m.onclick=function(){setTimeout((function(){n.unmount()}),1e3)});var p=React.createElement(a.FutureActionPanelBulkEdit,{storeName:u,postType:s.postType,isNewPost:s.isNewPost,actionsSelectOptions:s.actionsSelectOptions,statusesSelectOptions:s.statusesSelectOptions,is12Hour:s.is12Hour,timeFormat:s.timeFormat,startOfWeek:s.startOfWeek,strings:s.strings,taxonomyName:s.taxonomyName,nonce:s.nonce,hideCalendarByDefault:s.hideCalendarByDefault});n.render(p),l.inlineEditPost.revert=function(){n.unmount(),d.apply(this,arguments)}}})();
//# sourceMappingURL=bulk-edit.js.map
\ No newline at end of file
diff --git a/assets/js/bulk-edit.js.map b/assets/js/bulk-edit.js.map
index 04e506cdb..b069e0cb4 100644
--- a/assets/js/bulk-edit.js.map
+++ b/assets/js/bulk-edit.js.map
@@ -1 +1 @@
-{"version":3,"file":"bulk-edit.js","mappings":"uFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,8FCPD,SACA,SAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,UAASJ,EAAMK,UAAW,GADZ,GACrCA,EADqC,KAC5BC,EAD4B,KAoB5C,OAbIH,EAFAH,EAAMO,qBAEQ,yBAAGC,UAAU,cAAcC,wBAAyB,CAAEC,OAAQV,EAAMG,eAEpE,yBAAGK,UAAU,eAAeR,EAAMG,aAYhD,oBAAC,EAAAQ,SAAD,KACI,oBAAC,kBAAD,CACIC,MAAOZ,EAAMY,MACbC,KAAMb,EAAMa,KACZC,GAAId,EAAMa,KACVL,UAAWR,EAAMQ,UACjBH,QAASA,IAAW,EACpBU,SAhBK,SAAUC,GACvBV,EAAWU,GAEPhB,EAAMe,UACNf,EAAMe,SAASC,EAEtB,IAaQb,EAGZ,C,yFCxCD,YACA,SAG8Bc,EAAAA,eAAA,SAAC,GAAmD,IAAlDC,EAAkD,EAAlDA,YAAaH,EAAqC,EAArCA,SAAUI,EAA2B,EAA3BA,SAAUC,EAAiB,EAAjBA,YAK7D,MAJ2B,iBAAhBF,IACPA,GAAc,IAAAG,iCAAgCH,IAI9C,oBAAC,iBAAD,CACIA,YAAaA,EACbH,SAAUA,EACVO,wBAAwB,EACxBH,SAAUA,EACVC,YAAaA,GAGxB,C,0rBClBD,SACA,SACA,SACA,SACA,QACA,S,EAE2FG,GAAGC,WAAtFC,EAAAA,EAAAA,SAAUvB,EAAAA,EAAAA,gBAAiBwB,EAAAA,EAAAA,cAAeC,EAAAA,EAAAA,eAAgBC,EAAAA,EAAAA,QAASC,EAAAA,EAA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YuH,EAAAA,sBAAsB7I,WACtD,IAAAmY,UAAS3Y,GAAW6B,SAASwH,EAAAA,sBAAsB/I,QACnD,IAAAqY,UAAS3Y,GAAWiK,gBAAgB,eAEpC,IAAA0J,aAAY,CACRzV,KAAM8B,EACN4T,aAAc,CACV9T,OAAQuJ,EAAAA,sBAAsB0F,WAC9BzN,UAAW+H,EAAAA,sBAAsB/H,UACjCpB,KAAM0Y,EAAAA,YACNpY,SAAU6I,EAAAA,sBAAsB7I,SAChCF,MAAO+I,EAAAA,sBAAsB/I,MAC7ByJ,aAAc,eAK1B,IAAM8O,EAAY7N,SAAS8N,eAAe,iCACpCC,GAAO,IAAAC,YAAWH,GAElBI,EAAajO,SAASyH,cAAc,cACtCwG,IACAA,EAAWC,QAAU,WACjBC,YAAW,WACPJ,EAAKK,SACR,GAxDqB,IAyDzB,GAGL,IAAMC,EACF,oBAAC,EAAAvP,0BAAD,CACI9J,UAAWA,EACXuJ,SAAUA,EAAAA,SACVoB,UAAWA,EAAAA,UACXhG,qBAAsBA,EAAAA,qBACtB2C,sBAAuBA,EAAAA,sBACvB9I,SAAUA,EAAAA,SACVkG,WAAYA,EAAAA,WACZjG,YAAaA,EAAAA,YACbkH,QAASA,EAAAA,QACTjF,aAAcA,EAAAA,aACdmK,MAAOA,EAAAA,QAIfkO,EAAKO,OAAOD,GAEZjB,EAAAA,eAAeG,OAAS,WACpBQ,EAAKK,UAGLd,EAAmBE,MAAMC,KAAMC,UAClC,CACJ,C","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/data.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/external var \"publishpressFutureBulkEditConfig\"","webpack://post-expirator/external var \"window\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/./assets/jsx/bulk-edit.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n setChecked(value);\n\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n return (\n \n \n\n {description}\n \n )\n}\n","import { normalizeUnixTimeToMilliseconds } from \"../time\";\nimport { DateTimePicker as WPDateTimePicker } from \"@wordpress/components\";\n\n\nexport const DateTimePicker = ({currentDate, onChange, is12Hour, startOfWeek}) => {\n if (typeof currentDate === 'number') {\n currentDate = normalizeUnixTimeToMilliseconds(currentDate);\n }\n\n return (\n \n )\n}\n","import { compact } from '../utils';\nimport { ToggleCalendarDatePicker } from './ToggleCalendarDatePicker';\nimport { PluginArea } from '@wordpress/plugins';\nimport { Fill, Slot, SlotFillProvider } from '@wordpress/components';\nimport { FutureActionPanelAfterActionField } from './FutureActionPanelAfterActionField';\nimport { FutureActionPanelTop } from './FutureActionPanelTop';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect, useState } = wp.element;\nconst { decodeEntities } = wp.htmlEntities;\nconst { addQueryArgs } = wp.url;\nconst {\n useSelect,\n useDispatch\n} = wp.data;\nconst { apiFetch } = wp;\n\nexport const FutureActionPanel = (props) => {\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const taxonomyName = useSelect((select) => select(props.storeName).getTaxonomyName(), []);\n const termsListByName = useSelect((select) => select(props.storeName).getTermsListByName(), []);\n const termsListById = useSelect((select) => select(props.storeName).getTermsListById(), []);\n const isFetchingTerms = useSelect((select) => select(props.storeName).getIsFetchingTerms(), []);\n const calendarIsVisible = useSelect((select) => select(props.storeName).getCalendarIsVisible(), []);\n const hasValidData = useSelect((select) => select(props.storeName).getHasValidData(), []);\n const newStatus = useSelect((select) => select(props.storeName).getNewStatus(), []);\n\n const [validationError, setValidationError] = useState('');\n\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible,\n setHasValidData,\n setNewStatus\n } = useDispatch(props.storeName);\n\n const mapTermsListById = (terms) => {\n if (typeof terms !== 'object' || terms === null) {\n return {};\n }\n\n return terms.map((term) => {\n return termsListById[term];\n });\n }\n\n const insertTerm = (term) => {\n termsListByName[term] = { id: term, count: 0, description: \"\", link: \"\", name: term, slug: term, taxonomy: taxonomy };\n termsListById[term] = term;\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTerms([...terms, term]);\n\n }\n\n const mapTermsListByName = (terms) => {\n if (typeof terms !== 'object' || terms === null) {\n return {};\n }\n\n return terms.map((term) => {\n if (termsListByName[term]) {\n return termsListByName[term].id;\n }\n\n insertTerm(term);\n\n return term;\n });\n }\n\n const callOnChangeData = (attribute, value) => {\n if (typeof props.onChangeData === 'function') {\n props.onChangeData(attribute, value);\n }\n }\n\n const handleEnabledChange = (isChecked) => {\n setEnabled(isChecked);\n\n if (isChecked) {\n setAction(props.action);\n setDate(props.date);\n setNewStatus(props.newStatus);\n setTerms(props.terms);\n setTaxonomy(props.taxonomy);\n\n fetchTerms();\n }\n\n callOnChangeData('enabled', isChecked);\n }\n\n const handleActionChange = (value) => {\n setAction(value);\n\n callOnChangeData('action', value);\n }\n\n const handleNewStatusChange = (value) => {\n setNewStatus(value);\n\n callOnChangeData('newStatus', value);\n }\n\n const handleDateChange = (value) => {\n setDate(value);\n\n callOnChangeData('date', value);\n }\n\n const handleTermsChange = (value) => {\n value = mapTermsListByName(value);\n\n setTerms(value);\n\n callOnChangeData('terms', value);\n }\n\n const fetchTerms = () => {\n let termsListByName = {};\n let termsListById = {};\n\n if (!taxonomy) {\n return;\n }\n\n setIsFetchingTerms(true);\n\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/terms/${taxonomy}`),\n }).then((result) => {\n result.terms.forEach(term => {\n termsListByName[decodeEntities(term.name)] = term;\n termsListById[term.id] = decodeEntities(term.name);\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(decodeEntities(result.taxonomyName));\n setIsFetchingTerms(false);\n });\n }\n\n const storeCalendarIsVisibleOnStorage = (value) => {\n localStorage.setItem('FUTURE_ACTION_CALENDAR_IS_VISIBLE_' + props.context, value ? '1' : '0');\n }\n\n const getCalendarIsVisibleFromStorage = () => {\n return localStorage.getItem('FUTURE_ACTION_CALENDAR_IS_VISIBLE_' + props.context);\n }\n\n useEffect(() => {\n if (props.autoEnableAndHideCheckbox) {\n setEnabled(true);\n } else {\n setEnabled(props.enabled);\n }\n\n setAction(props.action);\n setNewStatus(props.newStatus);\n setDate(props.date);\n setTerms(props.terms);\n setTaxonomy(props.taxonomy);\n\n if (getCalendarIsVisibleFromStorage() === null) {\n setCalendarIsVisible(props.calendarIsVisible);\n } else {\n setCalendarIsVisible(getCalendarIsVisibleFromStorage() === '1');\n }\n\n // We need to get the value directly from the props because the value from the store is not updated yet\n if (props.enabled) {\n if (props.isCleanNewPost) {\n // Force populate the default values\n handleEnabledChange(true);\n }\n\n fetchTerms();\n }\n }, []);\n\n useEffect(() => {\n storeCalendarIsVisibleOnStorage(calendarIsVisible);\n }, [calendarIsVisible]);\n\n useEffect(() => {\n if (hasValidData && props.onDataIsValid) {\n props.onDataIsValid();\n }\n\n if (!hasValidData && props.onDataIsInvalid) {\n props.onDataIsInvalid();\n }\n }, [hasValidData]);\n\n let selectedTerms = [];\n if (terms && terms.length > 0 && termsListById) {\n selectedTerms = compact(mapTermsListById(terms));\n\n if (typeof selectedTerms === 'string') {\n selectedTerms = [];\n }\n }\n\n let termsListByNameKeys = [];\n if (typeof termsListByName === 'object' && termsListByName !== null) {\n termsListByNameKeys = Object.keys(termsListByName);\n }\n\n const panelClass = calendarIsVisible ? 'future-action-panel' : 'future-action-panel hidden-calendar';\n const contentPanelClass = calendarIsVisible ? 'future-action-panel-content' : 'future-action-panel-content hidden-calendar';\n const datePanelClass = calendarIsVisible ? 'future-action-date-panel' : 'future-action-date-panel hidden-calendar';\n\n let is24hour;\n if (props.timeFormat === 'inherited') {\n is24hour = !props.is12Hour;\n } else {\n is24hour = props.timeFormat === '24h';\n }\n\n const replaceCurlyBracketsWithLink = (string, href, target) => {\n const parts = string.split('{');\n const result = [];\n\n result.push(parts.shift());\n\n for (const part of parts) {\n const [before, after] = part.split('}');\n\n result.push(\n {before}\n );\n\n result.push(after);\n }\n\n return result;\n };\n\n // Remove items from actions list if related to taxonomies and there is no taxonmoy for the post type\n let actionsSelectOptions = props.actionsSelectOptions;\n if (!props.taxonomy) {\n actionsSelectOptions = props.actionsSelectOptions.filter((item) => {\n return ['category', 'category-add', 'category-remove', 'category-remove-all'].indexOf(item.value) === -1;\n });\n }\n\n const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n const displayTaxonomyField = String(action).includes('category') && action !== 'category-remove-all';\n\n let termsFieldLabel = taxonomyName;\n switch (action) {\n case 'category':\n termsFieldLabel = props.strings.newTerms.replace('%s', taxonomyName);\n break;\n case 'category-remove':\n termsFieldLabel = props.strings.removeTerms.replace('%s', taxonomyName);\n break;\n case 'category-add':\n termsFieldLabel = props.strings.addTerms.replace('%s', taxonomyName);\n break;\n }\n\n const validateData = () => {\n let valid = true;\n\n if (!enabled) {\n setValidationError('');\n return true;\n }\n\n if (!action) {\n setValidationError(props.strings.errorActionRequired);\n valid = false;\n }\n\n if (!date) {\n setValidationError(props.strings.errorDateRequired);\n valid = false;\n }\n\n // Check if the date is in the past\n if (date && new Date(date) < new Date()) {\n setValidationError(props.strings.errorDateInPast);\n valid = false;\n }\n\n const isTermRequired = ['category', 'category-add', 'category-remove'].includes(action);\n const noTermIsSelected = terms.length === 0 || (terms.length === 1 && (terms[0] === '' || terms[0] === '0'));\n\n if (isTermRequired && noTermIsSelected) {\n setValidationError(props.strings.errorTermsRequired);\n valid = false;\n }\n\n if (valid) {\n setValidationError('');\n }\n\n return valid;\n }\n\n useEffect(() => {\n if (!enabled) {\n setHasValidData(true);\n setValidationError('');\n\n return;\n }\n\n setHasValidData(validateData());\n }, [action, date, enabled, terms, taxonomy]);\n\n // This adds a 'cancel' class to the input when the user clicks on the\n // field to prevent the form from being submitted. This is a workaround\n // for the issue on the quick-edit form where the form is submitted when\n // the user presses the 'Enter' key trying to add a term to the field.\n const forceIgnoreAutoSubmitOnEnter = (e) => {\n jQuery(e.target).addClass('cancel');\n }\n\n return (\n \n
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '@wordpress/data';\n\nexport const createStore = (props) => {\n if (props.defaultState.terms && typeof props.defaultState.terms === 'string') {\n props.defaultState.terms = props.defaultState.terms.split(',').map(term => parseInt(term));\n }\n\n let defaultState = {\n action: props.defaultState.action,\n date: props.defaultState.date ? props.defaultState.date : getCurrentTimeAsTimestamp(),\n enabled: props.defaultState.autoEnable,\n terms: props.defaultState.terms ? props.defaultState.terms : [],\n taxonomy: props.defaultState.taxonomy ? props.defaultState.taxonomy : null,\n newStatus: props.defaultState.newStatus ? props.defaultState.newStatus : 'draft',\n termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\n hasValidData: true,\n extraData: props.defaultState.extraData ? props.defaultState.extraData : {},\n }\n\n const store = createReduxStore(props.name, {\n reducer(state = defaultState, action) {\n switch (action.type) {\n case 'SET_ACTION':\n return {\n ...state,\n action: action.action,\n };\n case 'SET_NEW_STATUS':\n return {\n ...state,\n newStatus: action.newStatus,\n };\n case 'SET_DATE':\n // Make sure the date is a number, if it is a string with only numbers\n if (typeof action.date !== 'number' && isNumber(action.date)) {\n action.date = parseInt(action.date);\n }\n\n // If string, convert to unix time\n if (typeof action.date === 'string') {\n action.date = new Date(action.date).getTime();\n }\n\n // Make sure the time is always in seconds\n action.date = normalizeUnixTimeToSeconds(action.date);\n\n // Convert to formated string format, considering it is in the site's timezone\n action.date = formatUnixTimeToTimestamp(action.date);\n\n return {\n ...state,\n date: action.date,\n }\n case 'SET_ENABLED':\n return {\n ...state,\n enabled: action.enabled,\n }\n case 'SET_TERMS':\n return {\n ...state,\n terms: action.terms,\n }\n case 'SET_TAXONOMY':\n return {\n ...state,\n taxonomy: action.taxonomy,\n }\n case 'SET_TERMS_LIST_BY_NAME':\n return {\n ...state,\n termsListByName: action.termsListByName,\n }\n case 'SET_TERMS_LIST_BY_ID':\n return {\n ...state,\n termsListById: action.termsListById,\n }\n case 'SET_TAXONOMY_NAME':\n return {\n ...state,\n taxonomyName: action.taxonomyName,\n }\n case 'SET_CHANGE_ACTION':\n return {\n ...state,\n changeAction: action.changeAction,\n }\n case 'SET_CALENDAR_IS_VISIBLE':\n return {\n ...state,\n calendarIsVisible: action.calendarIsVisible,\n }\n case 'SET_HAS_VALID_DATA':\n return {\n ...state,\n hasValidData: action.hasValidData,\n }\n\n case 'SET_EXTRA_DATA':\n return {\n ...state,\n extraData: {\n ...action.extraData,\n }\n }\n\n case 'SET_EXTRA_DATA_BY_NAME':\n const extraData = {\n ...state.extraData,\n [action.name]: action.value\n };\n\n return {\n ...state,\n extraData: {...extraData}\n }\n }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\n };\n },\n setNewStatus(newStatus) {\n return {\n type: 'SET_NEW_STATUS',\n newStatus: newStatus\n };\n },\n setDate(date) {\n return {\n type: 'SET_DATE',\n date: date\n };\n },\n setEnabled(enabled) {\n return {\n type: 'SET_ENABLED',\n enabled: enabled\n };\n },\n setTerms(terms) {\n return {\n type: 'SET_TERMS',\n terms: terms\n };\n },\n setTaxonomy(taxonomy) {\n return {\n type: 'SET_TAXONOMY',\n taxonomy: taxonomy\n };\n },\n setTermsListByName(termsListByName) {\n return {\n type: 'SET_TERMS_LIST_BY_NAME',\n termsListByName: termsListByName\n };\n },\n setTermsListById(termsListById) {\n return {\n type: 'SET_TERMS_LIST_BY_ID',\n termsListById: termsListById\n };\n },\n setTaxonomyName(taxonomyName) {\n return {\n type: 'SET_TAXONOMY_NAME',\n taxonomyName: taxonomyName\n };\n },\n setIsFetchingTerms(isFetchingTerms) {\n return {\n type: 'SET_IS_FETCHING_TERMS',\n isFetchingTerms: isFetchingTerms\n }\n },\n setChangeAction(changeAction) {\n return {\n type: 'SET_CHANGE_ACTION',\n changeAction: changeAction\n }\n },\n setCalendarIsVisible(calendarIsVisible) {\n return {\n type: 'SET_CALENDAR_IS_VISIBLE',\n calendarIsVisible: calendarIsVisible\n }\n },\n setHasValidData(hasValidData) {\n return {\n type: 'SET_HAS_VALID_DATA',\n hasValidData: hasValidData\n }\n },\n setExtraData(extraData) {\n return {\n type: 'SET_EXTRA_DATA',\n extraData: extraData\n }\n },\n setExtraDataByName(name, value) {\n return {\n type: 'SET_EXTRA_DATA_BY_NAME',\n name: name,\n value: value\n }\n }\n },\n selectors: {\n getAction(state) {\n return state.action;\n },\n getNewStatus(state) {\n return state.newStatus;\n },\n getDate(state) {\n return state.date;\n },\n getEnabled(state) {\n return state.enabled;\n },\n getTerms(state) {\n return state.terms;\n },\n getTaxonomy(state) {\n return state.taxonomy;\n },\n getTermsListByName(state) {\n return state.termsListByName;\n },\n getTermsListById(state) {\n return state.termsListById;\n },\n getTaxonomyName(state) {\n return state.taxonomyName;\n },\n getIsFetchingTerms(state) {\n return state.isFetchingTerms;\n },\n getChangeAction(state) {\n return state.changeAction;\n },\n getCalendarIsVisible(state) {\n return state.calendarIsVisible;\n },\n getHasValidData(state) {\n return state.hasValidData;\n },\n getExtraData(state) {\n return state.extraData;\n },\n getExtraDataByName(state, name) {\n return state.extraData[name] || null;\n }\n }\n });\n\n register(store);\n\n return store;\n}\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","module.exports = publishpressFutureBulkEditConfig;","module.exports = window;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import { FutureActionPanelBulkEdit } from './components';\nimport { createStore } from './data';\nimport { createRoot } from '@wordpress/element';\nimport { select, dispatch } from '@wordpress/data';\nimport { inlineEditPost } from \"&window\";\nimport {\n postTypeDefaultConfig,\n defaultDate,\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n timeFormat,\n startOfWeek,\n strings,\n taxonomyName,\n nonce,\n statusesSelectOptions\n} from \"&config.bulk-edit\";\n\nconst storeName = 'publishpress-future/future-action-bulk-edit';\nconst delayToUnmountAfterSaving = 1000;\n\n// We create a copy of the WP inline set bulk function\nconst wpInlineSetBulk = inlineEditPost.setBulk;\nconst wpInlineEditRevert = inlineEditPost.revert;\n\nconst getPostId = (id) => {\n // If id is a string or a number, return it directly\n if (typeof id === 'string' || typeof id === 'number') {\n return id;\n }\n\n // Otherwise, assume it's an HTML element and extract the post ID\n const trElement = id.closest('tr');\n const trId = trElement.id;\n const postId = trId.split('-')[1];\n\n return postId;\n}\n\n/**\n * We override the function with our own code so we can detect when\n * the inline edit row is displayed to recreate the React component.\n */\ninlineEditPost.setBulk = function (id) {\n // Call the original WP edit function.\n wpInlineSetBulk.apply(this, arguments);\n\n if (select(storeName)) {\n dispatch(storeName).setAction(postTypeDefaultConfig.expireType);\n dispatch(storeName).setDate(postTypeDefaultConfig.defaultDate);\n dispatch(storeName).setTaxonomy(postTypeDefaultConfig.taxonomy);\n dispatch(storeName).setTerms(postTypeDefaultConfig.terms);\n dispatch(storeName).setChangeAction('no-change');\n } else {\n createStore({\n name: storeName,\n defaultState: {\n action: postTypeDefaultConfig.expireType,\n newStatus: postTypeDefaultConfig.newStatus,\n date: defaultDate,\n taxonomy: postTypeDefaultConfig.taxonomy,\n terms: postTypeDefaultConfig.terms,\n changeAction: 'no-change',\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-bulk-edit\");\n const root = createRoot(container);\n\n const saveButton = document.querySelector('#bulk_edit');\n if (saveButton) {\n saveButton.onclick = function() {\n setTimeout(() => {\n root.unmount();\n }, delayToUnmountAfterSaving);\n };\n }\n\n const component = (\n \n );\n\n root.render(component);\n\n inlineEditPost.revert = function () {\n root.unmount();\n\n // Call the original WP revert function.\n wpInlineEditRevert.apply(this, arguments);\n };\n};\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","useEffect","decodeEntities","htmlEntities","addQueryArgs","url","data","useSelect","useDispatch","apiFetch","FutureActionPanel","action","select","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","path","then","result","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","offset","globalDefaultExpireOffset","controller","current","abort","signal","method","isValid","message","preview","catch","error","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","SettingsFieldset","legend","SettingsTable","bodyChildren","PostTypesSettingsPanels","panels","postTypeSettings","valign","htmlFor","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","onClick","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","createStore","defaultState","getCurrentTimeAsTimestamp","extraData","createReduxStore","reducer","state","isNumber","getTime","normalizeUnixTimeToSeconds","formatUnixTimeToTimestamp","actions","setExtraData","setExtraDataByName","selectors","getExtraDataByName","register","getCurrentTimeInSeconds","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNaN","module","exports","publishpressFutureBulkEditConfig","window","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","wpInlineSetBulk","inlineEditPost","setBulk","wpInlineEditRevert","revert","apply","this","arguments","dispatch","defaultDate","container","getElementById","root","createRoot","saveButton","onclick","setTimeout","unmount","component","render"],"sourceRoot":""}
+{"version":3,"file":"bulk-edit.js","mappings":"wFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,+FCPD,UACA,UAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,U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AAOD,GAEZd,EAAAA,eAAeG,OAAS,WACpBM,EAAKI,UAGLX,EAAmBrC,MAAMvE,KAAM8G,UAClC,CACJ,C","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateOffsetPreview.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/data.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css","webpack://post-expirator/./node_modules/css-loader/dist/runtime/api.js","webpack://post-expirator/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://post-expirator/./node_modules/react-dom/client.js","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css?541a","webpack://post-expirator/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://post-expirator/external var \"ReactDOM\"","webpack://post-expirator/external var \"publishpressFutureBulkEditConfig\"","webpack://post-expirator/external var \"window\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/webpack/runtime/compat get default export","webpack://post-expirator/webpack/runtime/define property getters","webpack://post-expirator/webpack/runtime/hasOwnProperty shorthand","webpack://post-expirator/webpack/runtime/make namespace object","webpack://post-expirator/webpack/runtime/nonce","webpack://post-expirator/./assets/jsx/bulk-edit.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\nexport { DateOffsetPreview } from \"./DateOffsetPreview\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '@wordpress/data';\n\nexport const createStore = (props) => {\n if (props.defaultState.terms && typeof props.defaultState.terms === 'string') {\n props.defaultState.terms = props.defaultState.terms.split(',').map(term => parseInt(term));\n }\n\n let defaultState = {\n action: props.defaultState.action,\n date: props.defaultState.date ? props.defaultState.date : getCurrentTimeAsTimestamp(),\n enabled: props.defaultState.autoEnable,\n terms: props.defaultState.terms ? props.defaultState.terms : [],\n taxonomy: props.defaultState.taxonomy ? props.defaultState.taxonomy : null,\n newStatus: props.defaultState.newStatus ? props.defaultState.newStatus : 'draft',\n termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\n hasValidData: true,\n extraData: props.defaultState.extraData ? props.defaultState.extraData : {},\n }\n\n const store = createReduxStore(props.name, {\n reducer(state = defaultState, action) {\n switch (action.type) {\n case 'SET_ACTION':\n return {\n ...state,\n action: action.action,\n };\n case 'SET_NEW_STATUS':\n return {\n ...state,\n newStatus: action.newStatus,\n };\n case 'SET_DATE':\n // Make sure the date is a number, if it is a string with only numbers\n if (typeof action.date !== 'number' && isNumber(action.date)) {\n action.date = parseInt(action.date);\n }\n\n // If string, convert to unix time\n if (typeof action.date === 'string') {\n action.date = new Date(action.date).getTime();\n }\n\n // Make sure the time is always in seconds\n action.date = normalizeUnixTimeToSeconds(action.date);\n\n // Convert to formated string format, considering it is in the site's timezone\n action.date = formatUnixTimeToTimestamp(action.date);\n\n return {\n ...state,\n date: action.date,\n }\n case 'SET_ENABLED':\n return {\n ...state,\n enabled: action.enabled,\n }\n case 'SET_TERMS':\n return {\n ...state,\n terms: action.terms,\n }\n case 'SET_TAXONOMY':\n return {\n ...state,\n taxonomy: action.taxonomy,\n }\n case 'SET_TERMS_LIST_BY_NAME':\n return {\n ...state,\n termsListByName: action.termsListByName,\n }\n case 'SET_TERMS_LIST_BY_ID':\n return {\n ...state,\n termsListById: action.termsListById,\n }\n case 'SET_TAXONOMY_NAME':\n return {\n ...state,\n taxonomyName: action.taxonomyName,\n }\n case 'SET_CHANGE_ACTION':\n return {\n ...state,\n changeAction: action.changeAction,\n }\n case 'SET_CALENDAR_IS_VISIBLE':\n return {\n ...state,\n calendarIsVisible: action.calendarIsVisible,\n }\n case 'SET_HAS_VALID_DATA':\n return {\n ...state,\n hasValidData: action.hasValidData,\n }\n\n case 'SET_EXTRA_DATA':\n return {\n ...state,\n extraData: {\n ...action.extraData,\n }\n }\n\n case 'SET_EXTRA_DATA_BY_NAME':\n const extraData = {\n ...state.extraData,\n [action.name]: action.value\n };\n\n return {\n ...state,\n extraData: {...extraData}\n }\n }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\n };\n },\n setNewStatus(newStatus) {\n return {\n type: 'SET_NEW_STATUS',\n newStatus: newStatus\n };\n },\n setDate(date) {\n return {\n type: 'SET_DATE',\n date: date\n };\n },\n setEnabled(enabled) {\n return {\n type: 'SET_ENABLED',\n enabled: enabled\n };\n },\n setTerms(terms) {\n return {\n type: 'SET_TERMS',\n terms: terms\n };\n },\n setTaxonomy(taxonomy) {\n return {\n type: 'SET_TAXONOMY',\n taxonomy: taxonomy\n };\n },\n setTermsListByName(termsListByName) {\n return {\n type: 'SET_TERMS_LIST_BY_NAME',\n termsListByName: termsListByName\n };\n },\n setTermsListById(termsListById) {\n return {\n type: 'SET_TERMS_LIST_BY_ID',\n termsListById: termsListById\n };\n },\n setTaxonomyName(taxonomyName) {\n return {\n type: 'SET_TAXONOMY_NAME',\n taxonomyName: taxonomyName\n };\n },\n setIsFetchingTerms(isFetchingTerms) {\n return {\n type: 'SET_IS_FETCHING_TERMS',\n isFetchingTerms: isFetchingTerms\n }\n },\n setChangeAction(changeAction) {\n return {\n type: 'SET_CHANGE_ACTION',\n changeAction: changeAction\n }\n },\n setCalendarIsVisible(calendarIsVisible) {\n return {\n type: 'SET_CALENDAR_IS_VISIBLE',\n calendarIsVisible: calendarIsVisible\n }\n },\n setHasValidData(hasValidData) {\n return {\n type: 'SET_HAS_VALID_DATA',\n hasValidData: hasValidData\n }\n },\n setExtraData(extraData) {\n return {\n type: 'SET_EXTRA_DATA',\n extraData: extraData\n }\n },\n setExtraDataByName(name, value) {\n return {\n type: 'SET_EXTRA_DATA_BY_NAME',\n name: name,\n value: value\n }\n }\n },\n selectors: {\n getAction(state) {\n return state.action;\n },\n getNewStatus(state) {\n return state.newStatus;\n },\n getDate(state) {\n return state.date;\n },\n getEnabled(state) {\n return state.enabled;\n },\n getTerms(state) {\n return state.terms;\n },\n getTaxonomy(state) {\n return state.taxonomy;\n },\n getTermsListByName(state) {\n return state.termsListByName;\n },\n getTermsListById(state) {\n return state.termsListById;\n },\n getTaxonomyName(state) {\n return state.taxonomyName;\n },\n getIsFetchingTerms(state) {\n return state.isFetchingTerms;\n },\n getChangeAction(state) {\n return state.changeAction;\n },\n getCalendarIsVisible(state) {\n return state.calendarIsVisible;\n },\n getHasValidData(state) {\n return state.hasValidData;\n },\n getExtraData(state) {\n return state.extraData;\n },\n getExtraDataByName(state, name) {\n return state.extraData[name] || null;\n }\n }\n });\n\n register(store);\n\n return store;\n}\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./assets/jsx/components/css/dateOffsetPreview.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB\",\"sourcesContent\":[\".publishpress-future-date-preview .publishpress-future-date-preview-value {\\n font-family: monospace;\\n background-color: #e7e7e7;\\n padding: 2px 4px;\\n}\\n\\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\\n display: block;\\n}\\n\\n.publishpress-future-date-preview.compact {\\n margin-bottom: 8px;\\n}\\n\\n.publishpress-future-date-preview.compact h4 {\\n font-size: 11px;\\n font-weight: 500;\\n line-height: 1.4;\\n text-transform: uppercase;\\n display: inline-block;\\n margin-bottom: calc(8px);\\n padding: 0px;\\n flex-shrink: 0;\\n margin-right: 12px;\\n max-width: 75%;\\n margin-top: 0;\\n}\\n\\n.publishpress-future-notice.publishpress-future-notice-error {\\n color: #dc3232;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","module.exports = ReactDOM;","module.exports = publishpressFutureBulkEditConfig;","module.exports = window;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","import { FutureActionPanelBulkEdit } from './components';\nimport { createStore } from './data';\nimport { createRoot } from 'react-dom/client';\nimport { select, dispatch } from '@wordpress/data';\nimport { inlineEditPost } from \"&window\";\nimport {\n postTypeDefaultConfig,\n defaultDate,\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n timeFormat,\n startOfWeek,\n strings,\n taxonomyName,\n nonce,\n statusesSelectOptions,\n hideCalendarByDefault\n} from \"&config.bulk-edit\";\n\nconst storeName = 'publishpress-future/future-action-bulk-edit';\nconst delayToUnmountAfterSaving = 1000;\n\n// We create a copy of the WP inline set bulk function\nconst wpInlineSetBulk = inlineEditPost.setBulk;\nconst wpInlineEditRevert = inlineEditPost.revert;\n\nconst getPostId = (id) => {\n // If id is a string or a number, return it directly\n if (typeof id === 'string' || typeof id === 'number') {\n return id;\n }\n\n // Otherwise, assume it's an HTML element and extract the post ID\n const trElement = id.closest('tr');\n const trId = trElement.id;\n const postId = trId.split('-')[1];\n\n return postId;\n}\n\n/**\n * We override the function with our own code so we can detect when\n * the inline edit row is displayed to recreate the React component.\n */\ninlineEditPost.setBulk = function (id) {\n // Call the original WP edit function.\n wpInlineSetBulk.apply(this, arguments);\n\n if (select(storeName)) {\n dispatch(storeName).setAction(postTypeDefaultConfig.expireType);\n dispatch(storeName).setDate(postTypeDefaultConfig.defaultDate);\n dispatch(storeName).setTaxonomy(postTypeDefaultConfig.taxonomy);\n dispatch(storeName).setTerms(postTypeDefaultConfig.terms);\n dispatch(storeName).setChangeAction('no-change');\n } else {\n createStore({\n name: storeName,\n defaultState: {\n action: postTypeDefaultConfig.expireType,\n newStatus: postTypeDefaultConfig.newStatus,\n date: defaultDate,\n taxonomy: postTypeDefaultConfig.taxonomy,\n terms: postTypeDefaultConfig.terms,\n changeAction: 'no-change',\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-bulk-edit\");\n const root = createRoot(container);\n\n const saveButton = document.querySelector('#bulk_edit');\n if (saveButton) {\n saveButton.onclick = function() {\n setTimeout(() => {\n root.unmount();\n }, delayToUnmountAfterSaving);\n };\n }\n\n const component = (\n \n );\n\n root.render(component);\n\n inlineEditPost.revert = function () {\n root.unmount();\n\n // Call the original WP revert function.\n wpInlineEditRevert.apply(this, arguments);\n };\n};\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","require","DateOffsetPreview","offset","labelDatePreview","labelOffsetPreview","setValidationErrorCallback","setHasPendingValidationCallback","setHasValidDataCallback","compactView","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","useEffect","controller","current","abort","signal","apiFetch","path","addQueryArgs","method","data","then","result","isValid","message","preview","catch","error","validateDateOffset","compactClass","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","decodeEntities","htmlEntities","url","useSelect","useDispatch","FutureActionPanel","select","action","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","hideCalendarByDefault","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","globalDefaultExpireOffset","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","fieldSetClassNames","isVisible","SettingsTable","bodyChildren","PostTypesSettingsPanels","currentTab","setCurrentTab","panels","postTypeSettings","legend","onSelectTab","event","preventDefault","hash","tabs","onClick","valign","htmlFor","SettingsFieldset","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","createStore","defaultState","getCurrentTimeAsTimestamp","extraData","createReduxStore","reducer","state","isNumber","getTime","normalizeUnixTimeToSeconds","formatUnixTimeToTimestamp","actions","setExtraData","setExtraDataByName","selectors","getExtraDataByName","register","getCurrentTimeInSeconds","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNaN","___CSS_LOADER_EXPORT___","module","exports","cssWithMappingToString","list","this","content","needLayer","concat","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","sourceMapping","m","createRoot","hydrateRoot","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","stylesInDOM","getIndexByIdentifier","identifier","modulesToDom","idCountMap","identifiers","base","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","style","styleTarget","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","createElement","attributes","styleElement","setAttribute","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","ReactDOM","publishpressFutureBulkEditConfig","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","prototype","hasOwnProperty","call","r","Symbol","toStringTag","nc","wpInlineSetBulk","inlineEditPost","setBulk","wpInlineEditRevert","revert","arguments","dispatch","defaultDate","container","getElementById","root","saveButton","onclick","setTimeout","unmount","component","render"],"sourceRoot":""}
\ No newline at end of file
diff --git a/assets/js/classic-editor.js b/assets/js/classic-editor.js
index e280c78bb..ba2681913 100644
--- a/assets/js/classic-editor.js
+++ b/assets/js/classic-editor.js
@@ -1,2 +1,2 @@
-(()=>{"use strict";var e={442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(386),r=n(214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(39),r=n(214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(409),i=n(873),l=n(986),u=n(214),c=n(61),s=n(625),m=wp.components,d=m.PanelRow,p=m.CheckboxControl,f=m.SelectControl,y=m.FormTokenField,g=m.Spinner,b=m.BaseControl,v=wp.element,E=v.Fragment,S=v.useEffect,h=v.useState,_=wp.htmlEntities.decodeEntities,T=wp.url.addQueryArgs,x=wp.data,N=x.useSelect,R=x.useDispatch,A=wp.apiFetch;t.FutureActionPanel=function(e){var t=N((function(t){return t(e.storeName).getAction()}),[]),n=N((function(t){return t(e.storeName).getDate()}),[]),m=N((function(t){return t(e.storeName).getEnabled()}),[]),v=N((function(t){return t(e.storeName).getTerms()}),[]),x=N((function(t){return t(e.storeName).getTaxonomy()}),[]),C=N((function(t){return t(e.storeName).getTaxonomyName()}),[]),P=N((function(t){return t(e.storeName).getTermsListByName()}),[]),w=N((function(t){return t(e.storeName).getTermsListById()}),[]),O=N((function(t){return t(e.storeName).getIsFetchingTerms()}),[]),D=N((function(t){return t(e.storeName).getCalendarIsVisible()}),[]),F=N((function(t){return t(e.storeName).getHasValidData()}),[]),I=N((function(t){return t(e.storeName).getNewStatus()}),[]),k=h(""),j=r(k,2),B=j[0],M=j[1],L=R(e.storeName),V=L.setAction,H=L.setDate,W=L.setEnabled,U=L.setTerms,Q=L.setTaxonomy,Y=L.setTermsListByName,q=L.setTermsListById,X=L.setTaxonomyName,z=L.setIsFetchingTerms,G=L.setCalendarIsVisible,J=L.setHasValidData,K=L.setNewStatus,Z=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:x},w[e]=e,Y(P),q(w),U([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&w&&(ae=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return w[e]}))}(v)),"string"==typeof ae&&(ae=[]));var re=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(re=Object.keys(P));var oe,ie=D?"future-action-panel":"future-action-panel hidden-calendar",le=D?"future-action-panel-content":"future-action-panel-content hidden-calendar",ue=D?"future-action-date-panel":"future-action-date-panel hidden-calendar";oe="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ce=e.actionsSelectOptions;e.taxonomy||(ce=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var se=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,u=void 0;try{for(var c,s=a[Symbol.iterator]();!(i=(c=s.next()).done);i=!0){var m=c.value.split("}"),d=r(m,2),p=d[0],f=d[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},p)),o.push(f)}}catch(e){l=!0,u=e}finally{try{!i&&s.return&&s.return()}finally{if(l)throw u}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(t).includes("category")&&"category-remove-all"!==t,de=C;switch(t){case"category":de=e.strings.newTerms.replace("%s",C);break;case"category-remove":de=e.strings.removeTerms.replace("%s",C);break;case"category-add":de=e.strings.addTerms.replace("%s",C)}return S((function(){if(!m)return J(!0),void M("");J(function(){var a=!0;if(!m)return M(""),!0;t||(M(e.strings.errorActionRequired),a=!1),n||(M(e.strings.errorDateRequired),a=!1),n&&new Date(n){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,u=i("core/editor").getEditedPostAttribute("publishpress_future_action"),c=o("core/editor"),s=c.lockPostSaving,m=c.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:u.enabled,calendarIsVisible:!0,action:u.action,newStatus:u.newStatus,date:u.date,terms:u.terms,taxonomy:u.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,u=Object.entries(e)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var c=i.value,s=a(c,2),m=s[0],d=s[1];t.publishpress_future_action[m]=d}}catch(e){r=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){m("future-action")},onDataIsInvalid:function(){s("future-action")}})))}},94:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,u=wp.element.useEffect,c=n((function(t){return t(e.storeName).getDate()}),[]),s=n((function(t){return t(e.storeName).getEnabled()}),[]),m=n((function(t){return t(e.storeName).getAction()}),[]),d=n((function(t){return t(e.storeName).getNewStatus()}),[]),p=n((function(t){return t(e.storeName).getTerms()}),[]),f=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),g=n((function(t){return t(e.storeName).getHasValidData()}),[]),b=i(e.storeName).setChangeAction,v=p;"object"===(void 0===p?"undefined":a(p))&&(v=p.join(","));var E=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return u((function(){g||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[g,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:E,onChange:function(e){b(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:m,newStatus:d,date:c,terms:p,taxonomy:f,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:s?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:c}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:v}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:f}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(57),r=n(562);n(386),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(562);n(386),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),u=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),c=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),s=l;return"object"===(void 0===l?"undefined":a(l))&&(s=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:c,date:t,terms:l,taxonomy:u,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(386);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57),o=n(386),i=n(11),l=n(566),u=n(244),c=wp.components,s=c.PanelRow;c.BaseControl,t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,o.useState)(e.settings.taxonomy),c=a(n,2),m=c[0],d=c[1],p=(0,o.useState)([]),f=a(p,2),y=f[0],g=f[1],b=(0,o.useState)(!1),v=a(b,2),E=v[0],S=v[1],h=(0,o.useState)([]),_=a(h,2),T=_[0],x=_[1],N=(0,o.useState)(e.settings.howToExpire),R=a(N,2),A=R[0],C=R[1],P=(0,o.useState)(e.settings.active),w=a(P,2),O=w[0],D=w[1],F=(0,o.useState)(e.settings.defaultExpireOffset),I=a(F,2),k=I[0],j=I[1],B=(0,o.useState)(e.settings.emailNotification),M=a(B,2),L=M[0],V=M[1],H=(0,o.useState)(e.settings.autoEnabled),W=a(H,2),U=W[0],Q=W[1],Y=(0,o.useState)(!1),q=a(Y,2),X=q[0],z=q[1],G=(0,o.useState)(""),J=a(G,2),K=J[0],Z=J[1],$=(0,o.useState)(""),ee=a($,2),te=ee[0],ne=ee[1],ae=(0,o.useState)(t),re=a(ae,2),oe=re[0],ie=re[1],le=(0,o.useState)(e.settings.newStatus),ue=a(le,2),ce=ue[0],se=ue[1],me=(0,o.useState)(!1),de=a(me,2),pe=de[0],fe=de[1],ye=(0,o.useState)(""),ge=a(ye,2),be=ge[0],ve=ge[1],Ee=(0,o.useState)(),Se=a(Ee,2),he=Se[0],_e=Se[1],Te=(0,o.useRef)(new AbortController),xe=["category","category-add","category-remove","category-remove-all"];(0,o.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=oe.filter((function(e){return-1===xe.indexOf(e.value)})),ie(t))}),[]),(0,o.useEffect)((function(){m&&e.taxonomiesList&&(S(!0),(0,u.apiFetch)({path:(0,i.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),g(n),x(a),S(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ne(e.label)})))}),[m]),(0,o.useEffect)((function(){z(function(){if(!O)return Z(""),!0;var t=k||e.settings.globalDefaultExpireOffset;if(t){var n=Te.current;n&&n.abort(),Te.current=new AbortController;var a=Te.current.signal;fe(!0),(0,u.apiFetch)({path:(0,i.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:a}).then((function(e){fe(!1),z(e.isValid),Z(e.message),e.isValid?(ve(e.preview),_e(e.currentTime)):ve("")})).catch((function(e){"AbortError"!==e.name&&(fe(!1),z(!1),Z(e.message),ve(""))}))}return Z(""),!0}())}),[O,k]),(0,o.useEffect)((function(){if(te){var e=[];t.forEach((function(t){var n=t.label;-1!==xe.indexOf(t.value)&&(n=n.replace("%s",te.toLowerCase())),e.push({value:t.value,label:n})})),ie(e)}}),[te]),(0,o.useEffect)((function(){X&&e.onDataIsValid&&e.onDataIsValid(e.postType),!X&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[X]),(0,o.useEffect)((function(){pe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!pe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[pe]);var Ne=y.map((function(e){return e.label})),Re=[React.createElement(r.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(r.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:O||!1,label:e.text.fieldActiveLabel,onChange:function(e){D(e)}}))];return O&&(Re.push(React.createElement(r.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(r.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:U||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){Q(e)}}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(r.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){d(e)}}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(r.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:oe,description:e.text.fieldHowToExpireDescription,selected:A,onChange:function(e){C(e)}}),"change-status"===A&&React.createElement(r.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ce,onChange:se}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(A)>-1&&React.createElement(r.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:Ne,value:T,isLoading:E,onChange:function(e){x(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(r.TextControl,{name:"expired-custom-date-"+e.postType,value:k,loading:pe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){j(e)}}),be&&React.createElement(o.Fragment,null,React.createElement("h4",null,e.text.datePreview),React.createElement("div",null,React.createElement("div",null,React.createElement("span",null,e.text.datePreviewCurrent,": "),React.createElement("span",null,React.createElement("code",null,he))),React.createElement("div",null,React.createElement("span",null,e.text.datePreviewComputed,": "),React.createElement("span",null,React.createElement("code",null,be))))))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(r.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){V(e)}})))),Re=(0,l.applyFilters)("expirationdate_settings_posttype",Re,e,O,o.useState),React.createElement(r.SettingsFieldset,{legend:e.legend},React.createElement(r.SettingsTable,{bodyChildren:Re}),!X&&React.createElement(s,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",K)))}},138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.PostTypesSettingsPanels=function(e){var t=[],n=!0,o=!1,i=void 0;try{for(var l,u=Object.entries(e.settings)[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){var c=l.value,s=a(c,2),m=s[0],d=s[1];t.push(React.createElement(r.PostTypeSettingsPanel,{legend:d.label,text:e.text,postType:m,settings:d,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[m],statusesList:e.statusesList[m],key:m+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished}))}}catch(e){o=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return t}},858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(386),r=n(214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},5:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(386),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",null,React.createElement("legend",null,e.legend),e.children)}},892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(386);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(386),r=n(214),o=n(57);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(190),r=n(620),o=n(386);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,u=e.onChangeDate,c=e.is12Hour,s=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:u,__nextRemoveHelpButton:!0,is12Hour:c,startOfWeek:s}))}},948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(386),o=n(214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var u=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:u,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},57:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var u=n(94);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return u.FutureActionPanelBulkEdit}});var c=n(239);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return c.PostTypeSettingsPanel}});var s=n(138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return s.PostTypesSettingsPanels}});var m=n(5);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return m.SettingRow}});var d=n(786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return d.SettingsFieldset}});var p=n(892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return p.SettingsForm}});var f=n(681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return f.SettingsSection}});var y=n(772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var g=n(438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return g.SubmitButton}});var b=n(311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return b.CheckboxControl}});var v=n(858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return v.SelectControl}});var E=n(301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return E.TextControl}});var S=n(948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return S.TokensControl}});var h=n(13);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return h.NonceControl}});var _=n(225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return _.TrueFalseControl}});var T=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return T.Spinner}})},480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,u=arguments[1];switch(u.type){case"SET_ACTION":return a({},l,{action:u.action});case"SET_NEW_STATUS":return a({},l,{newStatus:u.newStatus});case"SET_DATE":return"number"!=typeof u.date&&(0,o.isNumber)(u.date)&&(u.date=parseInt(u.date)),"string"==typeof u.date&&(u.date=new Date(u.date).getTime()),u.date=(0,r.normalizeUnixTimeToSeconds)(u.date),u.date=(0,r.formatUnixTimeToTimestamp)(u.date),a({},l,{date:u.date});case"SET_ENABLED":return a({},l,{enabled:u.enabled});case"SET_TERMS":return a({},l,{terms:u.terms});case"SET_TAXONOMY":return a({},l,{taxonomy:u.taxonomy});case"SET_TERMS_LIST_BY_NAME":return a({},l,{termsListByName:u.termsListByName});case"SET_TERMS_LIST_BY_ID":return a({},l,{termsListById:u.termsListById});case"SET_TAXONOMY_NAME":return a({},l,{taxonomyName:u.taxonomyName});case"SET_CHANGE_ACTION":return a({},l,{changeAction:u.changeAction});case"SET_CALENDAR_IS_VISIBLE":return a({},l,{calendarIsVisible:u.calendarIsVisible});case"SET_HAS_VALID_DATA":return a({},l,{hasValidData:u.hasValidData});case"SET_EXTRA_DATA":return a({},l,{extraData:a({},u.extraData)});case"SET_EXTRA_DATA_BY_NAME":var c=a({},l.extraData,(e={},n=u.name,i=u.value,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return a({},l,{extraData:a({},c)})}return l},actions:{setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});return(0,i.register)(n),n}},39:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{e.exports=ReactDOM},477:e=>{e.exports=publishpressFutureClassicEditorConfig},244:e=>{e.exports=wp},214:e=>{e.exports=wp.components},562:e=>{e.exports=wp.data},386:e=>{e.exports=wp.element},566:e=>{e.exports=wp.hooks},986:e=>{e.exports=wp.plugins},11:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}var a=n(57),r=n(480),o=n(409),i=n(386),l=n(562),u=n(477);if(n(206),!(0,o.isGutenbergEnabled)()){var c="publishpress-future/future-action";(0,l.select)(c)||(0,r.createStore)({name:c,defaultState:{autoEnable:u.postTypeDefaultConfig.autoEnable,action:u.postTypeDefaultConfig.expireType,newStatus:u.postTypeDefaultConfig.newStatus,date:u.defaultDate,taxonomy:u.postTypeDefaultConfig.taxonomy,terms:u.postTypeDefaultConfig.terms}});var s=document.getElementById("publishpress-future-classic-editor"),m=React.createElement(a.FutureActionPanelClassicEditor,{storeName:c,postType:u.postType,isNewPost:u.isNewPost,actionsSelectOptions:u.actionsSelectOptions,statusesSelectOptions:u.statusesSelectOptions,is12Hour:u.is12Hour,timeFormat:u.timeFormat,startOfWeek:u.startOfWeek,strings:u.strings,taxonomyName:u.taxonomyName});(0,i.createRoot)(s).render(m)}})();
+(()=>{"use strict";var e={5442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},4311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(1386),r=n(2214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},5470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateOffsetPreview=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(1386),o=n(4011),i=n(3244);n(9922);var l=t.DateOffsetPreview=function(e){var t=e.offset,n=e.label,l=e.labelDatePreview,s=e.labelOffsetPreview,u=e.setValidationErrorCallback,c=e.setHasPendingValidationCallback,d=e.setHasValidDataCallback,m=e.compactView,p=void 0!==m&&m,f=(0,r.useState)(""),y=a(f,2),g=y[0],v=y[1],b=(0,r.useState)(),h=a(b,2),E=h[0],S=h[1],_=(0,r.useRef)(new AbortController);(0,r.useEffect)((function(){!function(){if(t){var e=_.current;e&&e.abort(),_.current=new AbortController;var n=_.current.signal;c(!0),(0,i.apiFetch)({path:(0,o.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:n}).then((function(e){c(!1),d(e.isValid),u(e.message),e.isValid?(v(e.preview),S(e.currentTime)):v("")})).catch((function(e){"AbortError"!==e.name&&(c(!1),d(!1),u(e.message),v(""))}))}}()}),[t]);var x=p?" compact":"";return React.createElement(r.Fragment,null,t&&React.createElement("div",{className:"publishpress-future-date-preview"+x},React.createElement("h4",null,n),React.createElement("div",{className:"publishpress-future-date-preview-body"},React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},l,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},E)),React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},s,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},g)))))};t.default=l},4620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(7039),r=n(2214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},8418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(8409),i=n(4873),l=n(9986),s=n(2214),u=n(1442),c=n(6625),d=wp.components,m=d.PanelRow,p=d.CheckboxControl,f=d.SelectControl,y=d.FormTokenField,g=d.Spinner,v=d.BaseControl,b=wp.element,h=b.Fragment,E=b.useEffect,S=b.useState,_=wp.htmlEntities.decodeEntities,x=wp.url.addQueryArgs,T=wp.data,A=T.useSelect,N=T.useDispatch,C=wp.apiFetch;t.FutureActionPanel=function(e){var t=A((function(t){return{action:t(e.storeName).getAction(),date:t(e.storeName).getDate(),enabled:t(e.storeName).getEnabled(),terms:t(e.storeName).getTerms(),taxonomy:t(e.storeName).getTaxonomy(),taxonomyName:t(e.storeName).getTaxonomyName(),termsListByName:t(e.storeName).getTermsListByName(),termsListById:t(e.storeName).getTermsListById(),isFetchingTerms:t(e.storeName).getIsFetchingTerms(),calendarIsVisible:t(e.storeName).getCalendarIsVisible(),hasValidData:t(e.storeName).getHasValidData(),newStatus:t(e.storeName).getNewStatus()}})),n=t.action,d=t.date,b=t.enabled,T=t.terms,R=t.taxonomy,w=t.taxonomyName,P=t.termsListByName,O=t.termsListById,D=t.isFetchingTerms,I=t.calendarIsVisible,k=t.hasValidData,F=t.newStatus,B=S(""),j=r(B,2),M=j[0],V=j[1],L=N(e.storeName),H=L.setAction,U=L.setDate,W=L.setEnabled,Q=L.setTerms,Y=L.setTaxonomy,q=L.setTermsListByName,z=L.setTermsListById,X=L.setTaxonomyName,G=L.setIsFetchingTerms,J=L.setCalendarIsVisible,Z=L.setHasValidData,K=L.setNewStatus,$=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:R},O[e]=e,q(P),z(O),Q([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&O&&(re=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return O[e]}))}(T)),"string"==typeof re&&(re=[]));var oe=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(oe=Object.keys(P));var ie,le=I?"future-action-panel":"future-action-panel hidden-calendar",se=I?"future-action-panel-content":"future-action-panel-content hidden-calendar",ue=I?"future-action-date-panel":"future-action-date-panel hidden-calendar";ie="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ce=e.actionsSelectOptions;e.taxonomy||(ce=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var de=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,s=void 0;try{for(var u,c=a[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value.split("}"),m=r(d,2),p=m[0],f=m[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},p)),o.push(f)}}catch(e){l=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(l)throw s}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(n).includes("category")&&"category-remove-all"!==n,pe=w;switch(n){case"category":pe=e.strings.newTerms.replace("%s",w);break;case"category-remove":pe=e.strings.removeTerms.replace("%s",w);break;case"category-add":pe=e.strings.addTerms.replace("%s",w)}return E((function(){if(!b)return Z(!0),void V("");Z(function(){var t=!0;if(!b)return V(""),!0;n||(V(e.strings.errorActionRequired),t=!1),d||(V(e.strings.errorDateRequired),t=!1),d&&new Date(d){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,s=i("core/editor").getEditedPostAttribute("publishpress_future_action"),u=o("core/editor"),c=u.lockPostSaving,d=u.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:s.enabled,calendarIsVisible:!0,action:s.action,newStatus:s.newStatus,date:s.date,terms:s.terms,taxonomy:s.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,s=Object.entries(e)[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value,c=a(u,2),d=c[0],m=c[1];t.publishpress_future_action[d]=m}}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){d("future-action")},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){c("future-action")}})))}},2094:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2057),o=n(8409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,s=wp.element.useEffect,u=n((function(t){return t(e.storeName).getDate()}),[]),c=n((function(t){return t(e.storeName).getEnabled()}),[]),d=n((function(t){return t(e.storeName).getAction()}),[]),m=n((function(t){return t(e.storeName).getNewStatus()}),[]),p=n((function(t){return t(e.storeName).getTerms()}),[]),f=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),g=n((function(t){return t(e.storeName).getHasValidData()}),[]),v=i(e.storeName).setChangeAction,b=p;"object"===(void 0===p?"undefined":a(p))&&(b=p.join(","));var h=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return s((function(){g||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[g,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:h,onChange:function(e){v(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:d,newStatus:m,date:u,terms:p,taxonomy:f,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,hideCalendarByDefault:e.hideCalendarByDefault,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:c?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:u}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:b}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:f}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},3571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(2057),r=n(7562);n(1386),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},5437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2057),o=n(7562);n(1386),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),s=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),u=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),c=l;return"object"===(void 0===l?"undefined":a(l))&&(c=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:u,date:t,terms:l,taxonomy:s,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},6625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(1386);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},1620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(2057),i=n(1386),l=n(4011),s=n(8566),u=n(3244),c=(a=n(5470))&&a.__esModule?a:{default:a},d=wp.components.PanelRow;t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,i.useState)(e.settings.taxonomy),a=r(n,2),m=a[0],p=a[1],f=(0,i.useState)([]),y=r(f,2),g=y[0],v=y[1],b=(0,i.useState)(!1),h=r(b,2),E=h[0],S=h[1],_=(0,i.useState)([]),x=r(_,2),T=x[0],A=x[1],N=(0,i.useState)(e.settings.howToExpire),C=r(N,2),R=C[0],w=C[1],P=(0,i.useState)(e.settings.active),O=r(P,2),D=O[0],I=O[1],k=(0,i.useState)(e.settings.defaultExpireOffset),F=r(k,2),B=F[0],j=F[1],M=(0,i.useState)(e.settings.emailNotification),V=r(M,2),L=V[0],H=V[1],U=(0,i.useState)(e.settings.autoEnabled),W=r(U,2),Q=W[0],Y=W[1],q=(0,i.useState)(!0),z=r(q,2),X=z[0],G=z[1],J=(0,i.useState)(""),Z=r(J,2),K=Z[0],$=Z[1],ee=(0,i.useState)(""),te=r(ee,2),ne=te[0],ae=te[1],re=(0,i.useState)(t),oe=r(re,2),ie=oe[0],le=oe[1],se=(0,i.useState)(e.settings.newStatus),ue=r(se,2),ce=ue[0],de=ue[1],me=(0,i.useState)(!1),pe=r(me,2),fe=pe[0],ye=pe[1],ge=B||e.settings.globalDefaultExpireOffset,ve=["category","category-add","category-remove","category-remove-all"];(0,i.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=ie.filter((function(e){return-1===ve.indexOf(e.value)})),le(t))}),[]),(0,i.useEffect)((function(){m&&e.taxonomiesList&&(S(!0),(0,u.apiFetch)({path:(0,l.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),v(n),A(a),S(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ae(e.label)})))}),[m]),(0,i.useEffect)((function(){if(ne){var e=[];t.forEach((function(t){var n=t.label;-1!==ve.indexOf(t.value)&&(n=n.replace("%s",ne.toLowerCase())),e.push({value:t.value,label:n})})),le(e)}}),[ne]),(0,i.useEffect)((function(){X&&e.onDataIsValid&&e.onDataIsValid(e.postType),!X&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[X]),(0,i.useEffect)((function(){fe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!fe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[fe]);var be=g.map((function(e){return e.label})),he=[React.createElement(o.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:D||!1,label:e.text.fieldActiveLabel,onChange:function(e){I(e)}}))];D&&(he.push(React.createElement(o.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:Q||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){Y(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){p(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:ie,description:e.text.fieldHowToExpireDescription,selected:R,onChange:function(e){w(e)}}),"change-status"===R&&React.createElement(o.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ce,onChange:de}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(R)>-1&&React.createElement(o.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:be,value:T,isLoading:E,onChange:function(e){A(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(o.TextControl,{name:"expired-custom-date-"+e.postType,value:B,loading:fe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){j(e)}}),React.createElement(c.default,{offset:ge,label:e.text.datePreview,labelDatePreview:e.text.datePreviewCurrent,labelOffsetPreview:e.text.datePreviewComputed,setValidationErrorCallback:$,setHasPendingValidationCallback:ye,setHasValidDataCallback:G}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(o.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){H(e)}})))),he=(0,s.applyFilters)("expirationdate_settings_posttype",he,e,D,i.useState);var Ee=e.isVisible?"pe-settings-fieldset":"pe-settings-fieldset hidden";return React.createElement("div",{className:Ee},React.createElement(o.SettingsTable,{bodyChildren:he}),!X&&React.createElement(d,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",K)))}},8138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057),o=n(1386);t.PostTypesSettingsPanels=function(e){var t=(0,o.useState)(Object.keys(e.settings)[0]),n=a(t,2),i=n[0],l=n[1],s=[],u=!0,c=!1,d=void 0;try{for(var m,p=Object.entries(e.settings)[Symbol.iterator]();!(u=(m=p.next()).done);u=!0){var f=m.value,y=a(f,2),g=y[0],v=y[1];s.push(React.createElement(r.PostTypeSettingsPanel,{legend:v.label,text:e.text,postType:g,settings:v,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[g],statusesList:e.statusesList[g],key:g+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished,isVisible:i===g}))}}catch(e){c=!0,d=e}finally{try{!u&&p.return&&p.return()}finally{if(c)throw d}}var b=function(e){e.preventDefault(),l(e.target.hash.replace("#","").replace("-panel",""))},h=[],E=!1,S=!0,_=!1,x=void 0;try{for(var T,A=Object.entries(e.settings)[Symbol.iterator]();!(S=(T=A.next()).done);S=!0){var N=T.value,C=a(N,2),R=C[0],w=C[1];E=i===R,h.push(React.createElement("a",{href:"#"+R+"-panel",className:"nav-tab "+(E?"nav-tab-active":""),key:R+"-tab",onClick:b},w.label))}}catch(e){_=!0,x=e}finally{try{!S&&A.return&&A.return()}finally{if(_)throw x}}return React.createElement("div",null,React.createElement("nav",{className:"nav-tab-wrapper"},h),s)}},2858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(1386),r=n(2214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},9005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(1386),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},5786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",{className:e.className},React.createElement("legend",null,e.legend),e.children)}},9892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},5681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(1386);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},6772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},4438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},6301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(1386),r=n(2214),o=n(2057);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},3190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(2214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},4873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(3190),r=n(4620),o=n(1386);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,s=e.onChangeDate,u=e.is12Hour,c=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:s,__nextRemoveHelpButton:!0,is12Hour:u,startOfWeek:c}))}},3948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(1386),o=n(2214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var s=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:s,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},8225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},2057:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(5442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(8418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(2864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(3571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(5437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var s=n(2094);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return s.FutureActionPanelBulkEdit}});var u=n(1620);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return u.PostTypeSettingsPanel}});var c=n(8138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return c.PostTypesSettingsPanels}});var d=n(9005);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return d.SettingRow}});var m=n(5786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return m.SettingsFieldset}});var p=n(9892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return p.SettingsForm}});var f=n(5681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return f.SettingsSection}});var y=n(6772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var g=n(4438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return g.SubmitButton}});var v=n(4311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return v.CheckboxControl}});var b=n(2858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return b.SelectControl}});var h=n(6301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return h.TextControl}});var E=n(3948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return E.TokensControl}});var S=n(1013);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return S.NonceControl}});var _=n(8225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return _.TrueFalseControl}});var x=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return x.Spinner}});var T=n(5470);Object.defineProperty(t,"DateOffsetPreview",{enumerable:!0,get:function(){return T.DateOffsetPreview}})},4480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,s=arguments[1];switch(s.type){case"SET_ACTION":return a({},l,{action:s.action});case"SET_NEW_STATUS":return a({},l,{newStatus:s.newStatus});case"SET_DATE":return"number"!=typeof s.date&&(0,o.isNumber)(s.date)&&(s.date=parseInt(s.date)),"string"==typeof s.date&&(s.date=new Date(s.date).getTime()),s.date=(0,r.normalizeUnixTimeToSeconds)(s.date),s.date=(0,r.formatUnixTimeToTimestamp)(s.date),a({},l,{date:s.date});case"SET_ENABLED":return a({},l,{enabled:s.enabled});case"SET_TERMS":return a({},l,{terms:s.terms});case"SET_TAXONOMY":return a({},l,{taxonomy:s.taxonomy});case"SET_TERMS_LIST_BY_NAME":return a({},l,{termsListByName:s.termsListByName});case"SET_TERMS_LIST_BY_ID":return a({},l,{termsListById:s.termsListById});case"SET_TAXONOMY_NAME":return a({},l,{taxonomyName:s.taxonomyName});case"SET_CHANGE_ACTION":return a({},l,{changeAction:s.changeAction});case"SET_CALENDAR_IS_VISIBLE":return a({},l,{calendarIsVisible:s.calendarIsVisible});case"SET_HAS_VALID_DATA":return a({},l,{hasValidData:s.hasValidData});case"SET_EXTRA_DATA":return a({},l,{extraData:a({},s.extraData)});case"SET_EXTRA_DATA_BY_NAME":var u=a({},l.extraData,(e={},n=s.name,i=s.value,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return a({},l,{extraData:a({},u)})}return l},actions:{setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});return(0,i.register)(n),n}},7039:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},8409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{n.d(t,{A:()=>l});var a=n(1354),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n","",{version:3,sources:["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],names:[],mappings:"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB",sourcesContent:[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],sourceRoot:""}]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},1354:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),o="/*# ".concat(r," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},5338:(e,t,n)=>{var a=n(5206);t.createRoot=a.createRoot,t.hydrateRoot=a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),l=n(7659),s=n.n(l),u=n(5056),c=n.n(u),d=n(540),m=n.n(d),p=n(1113),f=n.n(p),y=n(1461),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=m(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM},6477:e=>{e.exports=publishpressFutureClassicEditorConfig},3244:e=>{e.exports=wp},2214:e=>{e.exports=wp.components},7562:e=>{e.exports=wp.data},1386:e=>{e.exports=wp.element},8566:e=>{e.exports=wp.hooks},9986:e=>{e.exports=wp.plugins},4011:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var a=n(2057),r=n(4480),o=n(8409),i=n(7562),l=n(5338),s=n(6477);if(!(0,o.isGutenbergEnabled)()){var u="publishpress-future/future-action";(0,i.select)(u)||(0,r.createStore)({name:u,defaultState:{autoEnable:s.postTypeDefaultConfig.autoEnable,action:s.postTypeDefaultConfig.expireType,newStatus:s.postTypeDefaultConfig.newStatus,date:s.defaultDate,taxonomy:s.postTypeDefaultConfig.taxonomy,terms:s.postTypeDefaultConfig.terms}});var c=document.getElementById("publishpress-future-classic-editor"),d=React.createElement(a.FutureActionPanelClassicEditor,{storeName:u,postType:s.postType,isNewPost:s.isNewPost,actionsSelectOptions:s.actionsSelectOptions,statusesSelectOptions:s.statusesSelectOptions,is12Hour:s.is12Hour,timeFormat:s.timeFormat,startOfWeek:s.startOfWeek,strings:s.strings,taxonomyName:s.taxonomyName,hideCalendarByDefault:s.hideCalendarByDefault});(0,l.createRoot)(c).render(d)}})();
//# sourceMappingURL=classic-editor.js.map
\ No newline at end of file
diff --git a/assets/js/classic-editor.js.map b/assets/js/classic-editor.js.map
index 2e2f23d1e..970759053 100644
--- a/assets/js/classic-editor.js.map
+++ b/assets/js/classic-editor.js.map
@@ -1 +1 @@
-{"version":3,"file":"classic-editor.js","mappings":"uFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,8FCPD,SACA,SAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,UAASJ,EAAMK,UAAW,GADZ,GACrCA,EADqC,KAC5BC,EAD4B,KAoB5C,OAbIH,EAFAH,EAAMO,qBAEQ,yBAAGC,UAAU,cAAcC,wBAAyB,CAAEC,OAAQV,EAAMG,eAEpE,yBAAGK,UAAU,eAAeR,EAAMG,aAYhD,oBAAC,EAAAQ,SAAD,KACI,oBAAC,kBAAD,CACIC,MAAOZ,EAAMY,MACbC,KAAMb,EAAMa,KACZC,GAAId,EAAMa,KACVL,UAAWR,EAAMQ,UACjBH,QAASA,IAAW,EACpBU,SAhBK,SAAUC,GACvBV,EAAWU,GAEPhB,EAAMe,UACNf,EAAMe,SAASC,EAEtB,IAaQb,EAGZ,C,yFCxCD,YACA,SAG8Bc,EAAAA,eAAA,SAAC,GAAmD,IAAlDC,EAAkD,EAAlDA,YAAaH,EAAqC,EAArCA,SAAUI,EAA2B,EAA3BA,SAAUC,EAAiB,EAAjBA,YAK7D,MAJ2B,iBAAhBF,IACPA,GAAc,IAAAG,iCAAgCH,IAI9C,oBAAC,iBAAD,CACIA,YAAaA,EACbH,SAAUA,EACVO,wBAAwB,EACxBH,SAAUA,EACVC,YAAaA,GAGxB,C,0rBClBD,SACA,SACA,SACA,SACA,QACA,S,EAE2FG,GAAGC,WAAtFC,EAAAA,EAAAA,SAAUvB,EAAAA,EA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ACjCpB,KAAMiY,EAAAA,YACN3X,SAAU6I,EAAAA,sBAAsB7I,SAChCF,MAAO+I,EAAAA,sBAAsB/I,SAKzC,IAAM8X,EAAYpN,SAASqN,eAAe,sCACpCC,EACF,oBAAC,EAAAxN,+BAAD,CACI9K,UAAWA,EACXuJ,SAAUA,EAAAA,SACVoB,UAAWA,EAAAA,UACXhG,qBAAsBA,EAAAA,qBACtB2C,sBAAuBA,EAAAA,sBACvB9I,SAAUA,EAAAA,SACVkG,WAAYA,EAAAA,WACZjG,YAAaA,EAAAA,YACbkH,QAASA,EAAAA,QACTjF,aAAcA,EAAAA,gBAItB,IAAA6X,YAAWH,GAAWI,OAAOF,EAChC,C","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/data.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/external var \"ReactDOM\"","webpack://post-expirator/external var \"publishpressFutureClassicEditorConfig\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/./assets/jsx/classic-editor.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n setChecked(value);\n\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n return (\n \n \n\n {description}\n \n )\n}\n","import { normalizeUnixTimeToMilliseconds } from \"../time\";\nimport { DateTimePicker as WPDateTimePicker } from \"@wordpress/components\";\n\n\nexport const DateTimePicker = ({currentDate, onChange, is12Hour, startOfWeek}) => {\n if (typeof currentDate === 'number') {\n currentDate = normalizeUnixTimeToMilliseconds(currentDate);\n }\n\n return (\n \n )\n}\n","import { compact } from '../utils';\nimport { ToggleCalendarDatePicker } from './ToggleCalendarDatePicker';\nimport { PluginArea } from '@wordpress/plugins';\nimport { Fill, Slot, SlotFillProvider } from '@wordpress/components';\nimport { FutureActionPanelAfterActionField } from './FutureActionPanelAfterActionField';\nimport { FutureActionPanelTop } from './FutureActionPanelTop';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect, useState } = wp.element;\nconst { decodeEntities } = wp.htmlEntities;\nconst { addQueryArgs } = wp.url;\nconst {\n useSelect,\n useDispatch\n} = wp.data;\nconst { apiFetch } = wp;\n\nexport const FutureActionPanel = (props) => {\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const taxonomyName = useSelect((select) => select(props.storeName).getTaxonomyName(), []);\n const termsListByName = useSelect((select) => select(props.storeName).getTermsListByName(), []);\n const termsListById = useSelect((select) => select(props.storeName).getTermsListById(), []);\n const isFetchingTerms = useSelect((select) => select(props.storeName).getIsFetchingTerms(), []);\n const calendarIsVisible = useSelect((select) => select(props.storeName).getCalendarIsVisible(), []);\n const hasValidData = useSelect((select) => select(props.storeName).getHasValidData(), []);\n const newStatus = useSelect((select) => select(props.storeName).getNewStatus(), []);\n\n const [validationError, setValidationError] = useState('');\n\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible,\n setHasValidData,\n setNewStatus\n } = useDispatch(props.storeName);\n\n const mapTermsListById = (terms) => {\n if (typeof terms !== 'object' || terms === null) {\n return {};\n }\n\n return terms.map((term) => {\n return termsListById[term];\n });\n }\n\n const insertTerm = (term) => {\n termsListByName[term] = { id: term, count: 0, description: \"\", link: \"\", name: term, slug: term, taxonomy: taxonomy };\n termsListById[term] = term;\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTerms([...terms, term]);\n\n }\n\n const mapTermsListByName = (terms) => {\n if (typeof terms !== 'object' || terms === null) {\n return {};\n }\n\n return terms.map((term) => {\n if (termsListByName[term]) {\n return termsListByName[term].id;\n }\n\n insertTerm(term);\n\n return term;\n });\n }\n\n const callOnChangeData = (attribute, value) => {\n if (typeof props.onChangeData === 'function') {\n props.onChangeData(attribute, value);\n }\n }\n\n const handleEnabledChange = (isChecked) => {\n setEnabled(isChecked);\n\n if (isChecked) {\n setAction(props.action);\n setDate(props.date);\n setNewStatus(props.newStatus);\n setTerms(props.terms);\n setTaxonomy(props.taxonomy);\n\n fetchTerms();\n }\n\n callOnChangeData('enabled', isChecked);\n }\n\n const handleActionChange = (value) => {\n setAction(value);\n\n callOnChangeData('action', value);\n }\n\n const handleNewStatusChange = (value) => {\n setNewStatus(value);\n\n callOnChangeData('newStatus', value);\n }\n\n const handleDateChange = (value) => {\n setDate(value);\n\n callOnChangeData('date', value);\n }\n\n const handleTermsChange = (value) => {\n value = mapTermsListByName(value);\n\n setTerms(value);\n\n callOnChangeData('terms', value);\n }\n\n const fetchTerms = () => {\n let termsListByName = {};\n let termsListById = {};\n\n if (!taxonomy) {\n return;\n }\n\n setIsFetchingTerms(true);\n\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/terms/${taxonomy}`),\n }).then((result) => {\n result.terms.forEach(term => {\n termsListByName[decodeEntities(term.name)] = term;\n termsListById[term.id] = decodeEntities(term.name);\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(decodeEntities(result.taxonomyName));\n setIsFetchingTerms(false);\n });\n }\n\n const storeCalendarIsVisibleOnStorage = (value) => {\n localStorage.setItem('FUTURE_ACTION_CALENDAR_IS_VISIBLE_' + props.context, value ? '1' : '0');\n }\n\n const getCalendarIsVisibleFromStorage = () => {\n return localStorage.getItem('FUTURE_ACTION_CALENDAR_IS_VISIBLE_' + props.context);\n }\n\n useEffect(() => {\n if (props.autoEnableAndHideCheckbox) {\n setEnabled(true);\n } else {\n setEnabled(props.enabled);\n }\n\n setAction(props.action);\n setNewStatus(props.newStatus);\n setDate(props.date);\n setTerms(props.terms);\n setTaxonomy(props.taxonomy);\n\n if (getCalendarIsVisibleFromStorage() === null) {\n setCalendarIsVisible(props.calendarIsVisible);\n } else {\n setCalendarIsVisible(getCalendarIsVisibleFromStorage() === '1');\n }\n\n // We need to get the value directly from the props because the value from the store is not updated yet\n if (props.enabled) {\n if (props.isCleanNewPost) {\n // Force populate the default values\n handleEnabledChange(true);\n }\n\n fetchTerms();\n }\n }, []);\n\n useEffect(() => {\n storeCalendarIsVisibleOnStorage(calendarIsVisible);\n }, [calendarIsVisible]);\n\n useEffect(() => {\n if (hasValidData && props.onDataIsValid) {\n props.onDataIsValid();\n }\n\n if (!hasValidData && props.onDataIsInvalid) {\n props.onDataIsInvalid();\n }\n }, [hasValidData]);\n\n let selectedTerms = [];\n if (terms && terms.length > 0 && termsListById) {\n selectedTerms = compact(mapTermsListById(terms));\n\n if (typeof selectedTerms === 'string') {\n selectedTerms = [];\n }\n }\n\n let termsListByNameKeys = [];\n if (typeof termsListByName === 'object' && termsListByName !== null) {\n termsListByNameKeys = Object.keys(termsListByName);\n }\n\n const panelClass = calendarIsVisible ? 'future-action-panel' : 'future-action-panel hidden-calendar';\n const contentPanelClass = calendarIsVisible ? 'future-action-panel-content' : 'future-action-panel-content hidden-calendar';\n const datePanelClass = calendarIsVisible ? 'future-action-date-panel' : 'future-action-date-panel hidden-calendar';\n\n let is24hour;\n if (props.timeFormat === 'inherited') {\n is24hour = !props.is12Hour;\n } else {\n is24hour = props.timeFormat === '24h';\n }\n\n const replaceCurlyBracketsWithLink = (string, href, target) => {\n const parts = string.split('{');\n const result = [];\n\n result.push(parts.shift());\n\n for (const part of parts) {\n const [before, after] = part.split('}');\n\n result.push(\n {before}\n );\n\n result.push(after);\n }\n\n return result;\n };\n\n // Remove items from actions list if related to taxonomies and there is no taxonmoy for the post type\n let actionsSelectOptions = props.actionsSelectOptions;\n if (!props.taxonomy) {\n actionsSelectOptions = props.actionsSelectOptions.filter((item) => {\n return ['category', 'category-add', 'category-remove', 'category-remove-all'].indexOf(item.value) === -1;\n });\n }\n\n const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n const displayTaxonomyField = String(action).includes('category') && action !== 'category-remove-all';\n\n let termsFieldLabel = taxonomyName;\n switch (action) {\n case 'category':\n termsFieldLabel = props.strings.newTerms.replace('%s', taxonomyName);\n break;\n case 'category-remove':\n termsFieldLabel = props.strings.removeTerms.replace('%s', taxonomyName);\n break;\n case 'category-add':\n termsFieldLabel = props.strings.addTerms.replace('%s', taxonomyName);\n break;\n }\n\n const validateData = () => {\n let valid = true;\n\n if (!enabled) {\n setValidationError('');\n return true;\n }\n\n if (!action) {\n setValidationError(props.strings.errorActionRequired);\n valid = false;\n }\n\n if (!date) {\n setValidationError(props.strings.errorDateRequired);\n valid = false;\n }\n\n // Check if the date is in the past\n if (date && new Date(date) < new Date()) {\n setValidationError(props.strings.errorDateInPast);\n valid = false;\n }\n\n const isTermRequired = ['category', 'category-add', 'category-remove'].includes(action);\n const noTermIsSelected = terms.length === 0 || (terms.length === 1 && (terms[0] === '' || terms[0] === '0'));\n\n if (isTermRequired && noTermIsSelected) {\n setValidationError(props.strings.errorTermsRequired);\n valid = false;\n }\n\n if (valid) {\n setValidationError('');\n }\n\n return valid;\n }\n\n useEffect(() => {\n if (!enabled) {\n setHasValidData(true);\n setValidationError('');\n\n return;\n }\n\n setHasValidData(validateData());\n }, [action, date, enabled, terms, taxonomy]);\n\n // This adds a 'cancel' class to the input when the user clicks on the\n // field to prevent the form from being submitted. This is a workaround\n // for the issue on the quick-edit form where the form is submitted when\n // the user presses the 'Enter' key trying to add a term to the field.\n const forceIgnoreAutoSubmitOnEnter = (e) => {\n jQuery(e.target).addClass('cancel');\n }\n\n return (\n \n
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '@wordpress/data';\n\nexport const createStore = (props) => {\n if (props.defaultState.terms && typeof props.defaultState.terms === 'string') {\n props.defaultState.terms = props.defaultState.terms.split(',').map(term => parseInt(term));\n }\n\n let defaultState = {\n action: props.defaultState.action,\n date: props.defaultState.date ? props.defaultState.date : getCurrentTimeAsTimestamp(),\n enabled: props.defaultState.autoEnable,\n terms: props.defaultState.terms ? props.defaultState.terms : [],\n taxonomy: props.defaultState.taxonomy ? props.defaultState.taxonomy : null,\n newStatus: props.defaultState.newStatus ? props.defaultState.newStatus : 'draft',\n termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\n hasValidData: true,\n extraData: props.defaultState.extraData ? props.defaultState.extraData : {},\n }\n\n const store = createReduxStore(props.name, {\n reducer(state = defaultState, action) {\n switch (action.type) {\n case 'SET_ACTION':\n return {\n ...state,\n action: action.action,\n };\n case 'SET_NEW_STATUS':\n return {\n ...state,\n newStatus: action.newStatus,\n };\n case 'SET_DATE':\n // Make sure the date is a number, if it is a string with only numbers\n if (typeof action.date !== 'number' && isNumber(action.date)) {\n action.date = parseInt(action.date);\n }\n\n // If string, convert to unix time\n if (typeof action.date === 'string') {\n action.date = new Date(action.date).getTime();\n }\n\n // Make sure the time is always in seconds\n action.date = normalizeUnixTimeToSeconds(action.date);\n\n // Convert to formated string format, considering it is in the site's timezone\n action.date = formatUnixTimeToTimestamp(action.date);\n\n return {\n ...state,\n date: action.date,\n }\n case 'SET_ENABLED':\n return {\n ...state,\n enabled: action.enabled,\n }\n case 'SET_TERMS':\n return {\n ...state,\n terms: action.terms,\n }\n case 'SET_TAXONOMY':\n return {\n ...state,\n taxonomy: action.taxonomy,\n }\n case 'SET_TERMS_LIST_BY_NAME':\n return {\n ...state,\n termsListByName: action.termsListByName,\n }\n case 'SET_TERMS_LIST_BY_ID':\n return {\n ...state,\n termsListById: action.termsListById,\n }\n case 'SET_TAXONOMY_NAME':\n return {\n ...state,\n taxonomyName: action.taxonomyName,\n }\n case 'SET_CHANGE_ACTION':\n return {\n ...state,\n changeAction: action.changeAction,\n }\n case 'SET_CALENDAR_IS_VISIBLE':\n return {\n ...state,\n calendarIsVisible: action.calendarIsVisible,\n }\n case 'SET_HAS_VALID_DATA':\n return {\n ...state,\n hasValidData: action.hasValidData,\n }\n\n case 'SET_EXTRA_DATA':\n return {\n ...state,\n extraData: {\n ...action.extraData,\n }\n }\n\n case 'SET_EXTRA_DATA_BY_NAME':\n const extraData = {\n ...state.extraData,\n [action.name]: action.value\n };\n\n return {\n ...state,\n extraData: {...extraData}\n }\n }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\n };\n },\n setNewStatus(newStatus) {\n return {\n type: 'SET_NEW_STATUS',\n newStatus: newStatus\n };\n },\n setDate(date) {\n return {\n type: 'SET_DATE',\n date: date\n };\n },\n setEnabled(enabled) {\n return {\n type: 'SET_ENABLED',\n enabled: enabled\n };\n },\n setTerms(terms) {\n return {\n type: 'SET_TERMS',\n terms: terms\n };\n },\n setTaxonomy(taxonomy) {\n return {\n type: 'SET_TAXONOMY',\n taxonomy: taxonomy\n };\n },\n setTermsListByName(termsListByName) {\n return {\n type: 'SET_TERMS_LIST_BY_NAME',\n termsListByName: termsListByName\n };\n },\n setTermsListById(termsListById) {\n return {\n type: 'SET_TERMS_LIST_BY_ID',\n termsListById: termsListById\n };\n },\n setTaxonomyName(taxonomyName) {\n return {\n type: 'SET_TAXONOMY_NAME',\n taxonomyName: taxonomyName\n };\n },\n setIsFetchingTerms(isFetchingTerms) {\n return {\n type: 'SET_IS_FETCHING_TERMS',\n isFetchingTerms: isFetchingTerms\n }\n },\n setChangeAction(changeAction) {\n return {\n type: 'SET_CHANGE_ACTION',\n changeAction: changeAction\n }\n },\n setCalendarIsVisible(calendarIsVisible) {\n return {\n type: 'SET_CALENDAR_IS_VISIBLE',\n calendarIsVisible: calendarIsVisible\n }\n },\n setHasValidData(hasValidData) {\n return {\n type: 'SET_HAS_VALID_DATA',\n hasValidData: hasValidData\n }\n },\n setExtraData(extraData) {\n return {\n type: 'SET_EXTRA_DATA',\n extraData: extraData\n }\n },\n setExtraDataByName(name, value) {\n return {\n type: 'SET_EXTRA_DATA_BY_NAME',\n name: name,\n value: value\n }\n }\n },\n selectors: {\n getAction(state) {\n return state.action;\n },\n getNewStatus(state) {\n return state.newStatus;\n },\n getDate(state) {\n return state.date;\n },\n getEnabled(state) {\n return state.enabled;\n },\n getTerms(state) {\n return state.terms;\n },\n getTaxonomy(state) {\n return state.taxonomy;\n },\n getTermsListByName(state) {\n return state.termsListByName;\n },\n getTermsListById(state) {\n return state.termsListById;\n },\n getTaxonomyName(state) {\n return state.taxonomyName;\n },\n getIsFetchingTerms(state) {\n return state.isFetchingTerms;\n },\n getChangeAction(state) {\n return state.changeAction;\n },\n getCalendarIsVisible(state) {\n return state.calendarIsVisible;\n },\n getHasValidData(state) {\n return state.hasValidData;\n },\n getExtraData(state) {\n return state.extraData;\n },\n getExtraDataByName(state, name) {\n return state.extraData[name] || null;\n }\n }\n });\n\n register(store);\n\n return store;\n}\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","module.exports = ReactDOM;","module.exports = publishpressFutureClassicEditorConfig;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import { FutureActionPanelClassicEditor } from './components';\nimport { createStore } from './data';\nimport { isGutenbergEnabled } from './utils';\nimport { createRoot } from '@wordpress/element';\nimport { select } from '@wordpress/data';\nimport {\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n timeFormat,\n startOfWeek,\n strings,\n taxonomyName,\n postTypeDefaultConfig,\n defaultDate,\n statusesSelectOptions\n} from \"&config.classic-editor\";\nimport { render } from \"react-dom\";\n\nif (! isGutenbergEnabled()) {\n const storeName = 'publishpress-future/future-action';\n\n if (!select(storeName)) {\n createStore({\n name: storeName,\n defaultState: {\n autoEnable: postTypeDefaultConfig.autoEnable,\n action: postTypeDefaultConfig.expireType,\n newStatus: postTypeDefaultConfig.newStatus,\n date: defaultDate,\n taxonomy: postTypeDefaultConfig.taxonomy,\n terms: postTypeDefaultConfig.terms,\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-classic-editor\");\n const component = (\n \n );\n\n createRoot(container).render(component);\n}\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","useEffect","decodeEntities","htmlEntities","addQueryArgs","url","data","useSelect","useDispatch","apiFetch","FutureActionPanel","action","select","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","path","then","result","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","offset","globalDefaultExpireOffset","controller","current","abort","signal","method","isValid","message","preview","catch","error","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","SettingsFieldset","legend","SettingsTable","bodyChildren","PostTypesSettingsPanels","panels","postTypeSettings","valign","htmlFor","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","onClick","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","createStore","defaultState","getCurrentTimeAsTimestamp","extraData","createReduxStore","reducer","state","isNumber","getTime","normalizeUnixTimeToSeconds","formatUnixTimeToTimestamp","actions","setExtraData","setExtraDataByName","selectors","getExtraDataByName","register","getCurrentTimeInSeconds","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNaN","module","exports","ReactDOM","publishpressFutureClassicEditorConfig","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","defaultDate","container","getElementById","component","createRoot","render"],"sourceRoot":""}
+{"version":3,"file":"classic-editor.js","mappings":"wFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,+FCPD,UACA,UAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,UAASJ,EAAMK,UAAW,GADZ,GACrCA,EADqC,KAC5BC,EAD4B,KAoB5C,OAbIH,EAFAH,EAAMO,qBAEQ,yBAAG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F,QAAOE,KACR,IAAAgT,aAAY,CACR7W,KAAM6D,EACNiT,aAAc,CACV7J,WAAYD,EAAAA,sBAAsBC,WAClCrJ,OAAQoJ,EAAAA,sBAAsBwE,WAC9BrM,UAAW6H,EAAAA,sBAAsB7H,UACjCpB,KAAMwd,EAAAA,YACNld,SAAU2I,EAAAA,sBAAsB3I,SAChCF,MAAO6I,EAAAA,sBAAsB7I,SAKzC,IAAMqd,EAAY7S,SAAS8S,eAAe,sCACpCC,EACF,oBAAC,EAAAjT,+BAAD,CACI5K,UAAWA,EACXqJ,SAAUA,EAAAA,SACVoB,UAAWA,EAAAA,UACXhG,qBAAsBA,EAAAA,qBACtB2C,sBAAuBA,EAAAA,sBACvBxI,SAAUA,EAAAA,SACV4F,WAAYA,EAAAA,WACZ3F,YAAaA,EAAAA,YACb4G,QAASA,EAAAA,QACT/E,aAAcA,EAAAA,aACd6C,sBAAuBA,EAAAA,yBAI/B,IAAAiV,YAAWmF,GAAWG,OAAOD,EAChC,C","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateOffsetPreview.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/data.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css","webpack://post-expirator/./node_modules/css-loader/dist/runtime/api.js","webpack://post-expirator/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://post-expirator/./node_modules/react-dom/client.js","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css?541a","webpack://post-expirator/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://post-expirator/external var \"ReactDOM\"","webpack://post-expirator/external var \"publishpressFutureClassicEditorConfig\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/webpack/runtime/compat get default export","webpack://post-expirator/webpack/runtime/define property getters","webpack://post-expirator/webpack/runtime/hasOwnProperty shorthand","webpack://post-expirator/webpack/runtime/make namespace object","webpack://post-expirator/webpack/runtime/nonce","webpack://post-expirator/./assets/jsx/classic-editor.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\nexport { DateOffsetPreview } from \"./DateOffsetPreview\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '@wordpress/data';\n\nexport const createStore = (props) => {\n if (props.defaultState.terms && typeof props.defaultState.terms === 'string') {\n props.defaultState.terms = props.defaultState.terms.split(',').map(term => parseInt(term));\n }\n\n let defaultState = {\n action: props.defaultState.action,\n date: props.defaultState.date ? props.defaultState.date : getCurrentTimeAsTimestamp(),\n enabled: props.defaultState.autoEnable,\n terms: props.defaultState.terms ? props.defaultState.terms : [],\n taxonomy: props.defaultState.taxonomy ? props.defaultState.taxonomy : null,\n newStatus: props.defaultState.newStatus ? props.defaultState.newStatus : 'draft',\n termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\n hasValidData: true,\n extraData: props.defaultState.extraData ? props.defaultState.extraData : {},\n }\n\n const store = createReduxStore(props.name, {\n reducer(state = defaultState, action) {\n switch (action.type) {\n case 'SET_ACTION':\n return {\n ...state,\n action: action.action,\n };\n case 'SET_NEW_STATUS':\n return {\n ...state,\n newStatus: action.newStatus,\n };\n case 'SET_DATE':\n // Make sure the date is a number, if it is a string with only numbers\n if (typeof action.date !== 'number' && isNumber(action.date)) {\n action.date = parseInt(action.date);\n }\n\n // If string, convert to unix time\n if (typeof action.date === 'string') {\n action.date = new Date(action.date).getTime();\n }\n\n // Make sure the time is always in seconds\n action.date = normalizeUnixTimeToSeconds(action.date);\n\n // Convert to formated string format, considering it is in the site's timezone\n action.date = formatUnixTimeToTimestamp(action.date);\n\n return {\n ...state,\n date: action.date,\n }\n case 'SET_ENABLED':\n return {\n ...state,\n enabled: action.enabled,\n }\n case 'SET_TERMS':\n return {\n ...state,\n terms: action.terms,\n }\n case 'SET_TAXONOMY':\n return {\n ...state,\n taxonomy: action.taxonomy,\n }\n case 'SET_TERMS_LIST_BY_NAME':\n return {\n ...state,\n termsListByName: action.termsListByName,\n }\n case 'SET_TERMS_LIST_BY_ID':\n return {\n ...state,\n termsListById: action.termsListById,\n }\n case 'SET_TAXONOMY_NAME':\n return {\n ...state,\n taxonomyName: action.taxonomyName,\n }\n case 'SET_CHANGE_ACTION':\n return {\n ...state,\n changeAction: action.changeAction,\n }\n case 'SET_CALENDAR_IS_VISIBLE':\n return {\n ...state,\n calendarIsVisible: action.calendarIsVisible,\n }\n case 'SET_HAS_VALID_DATA':\n return {\n ...state,\n hasValidData: action.hasValidData,\n }\n\n case 'SET_EXTRA_DATA':\n return {\n ...state,\n extraData: {\n ...action.extraData,\n }\n }\n\n case 'SET_EXTRA_DATA_BY_NAME':\n const extraData = {\n ...state.extraData,\n [action.name]: action.value\n };\n\n return {\n ...state,\n extraData: {...extraData}\n }\n }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\n };\n },\n setNewStatus(newStatus) {\n return {\n type: 'SET_NEW_STATUS',\n newStatus: newStatus\n };\n },\n setDate(date) {\n return {\n type: 'SET_DATE',\n date: date\n };\n },\n setEnabled(enabled) {\n return {\n type: 'SET_ENABLED',\n enabled: enabled\n };\n },\n setTerms(terms) {\n return {\n type: 'SET_TERMS',\n terms: terms\n };\n },\n setTaxonomy(taxonomy) {\n return {\n type: 'SET_TAXONOMY',\n taxonomy: taxonomy\n };\n },\n setTermsListByName(termsListByName) {\n return {\n type: 'SET_TERMS_LIST_BY_NAME',\n termsListByName: termsListByName\n };\n },\n setTermsListById(termsListById) {\n return {\n type: 'SET_TERMS_LIST_BY_ID',\n termsListById: termsListById\n };\n },\n setTaxonomyName(taxonomyName) {\n return {\n type: 'SET_TAXONOMY_NAME',\n taxonomyName: taxonomyName\n };\n },\n setIsFetchingTerms(isFetchingTerms) {\n return {\n type: 'SET_IS_FETCHING_TERMS',\n isFetchingTerms: isFetchingTerms\n }\n },\n setChangeAction(changeAction) {\n return {\n type: 'SET_CHANGE_ACTION',\n changeAction: changeAction\n }\n },\n setCalendarIsVisible(calendarIsVisible) {\n return {\n type: 'SET_CALENDAR_IS_VISIBLE',\n calendarIsVisible: calendarIsVisible\n }\n },\n setHasValidData(hasValidData) {\n return {\n type: 'SET_HAS_VALID_DATA',\n hasValidData: hasValidData\n }\n },\n setExtraData(extraData) {\n return {\n type: 'SET_EXTRA_DATA',\n extraData: extraData\n }\n },\n setExtraDataByName(name, value) {\n return {\n type: 'SET_EXTRA_DATA_BY_NAME',\n name: name,\n value: value\n }\n }\n },\n selectors: {\n getAction(state) {\n return state.action;\n },\n getNewStatus(state) {\n return state.newStatus;\n },\n getDate(state) {\n return state.date;\n },\n getEnabled(state) {\n return state.enabled;\n },\n getTerms(state) {\n return state.terms;\n },\n getTaxonomy(state) {\n return state.taxonomy;\n },\n getTermsListByName(state) {\n return state.termsListByName;\n },\n getTermsListById(state) {\n return state.termsListById;\n },\n getTaxonomyName(state) {\n return state.taxonomyName;\n },\n getIsFetchingTerms(state) {\n return state.isFetchingTerms;\n },\n getChangeAction(state) {\n return state.changeAction;\n },\n getCalendarIsVisible(state) {\n return state.calendarIsVisible;\n },\n getHasValidData(state) {\n return state.hasValidData;\n },\n getExtraData(state) {\n return state.extraData;\n },\n getExtraDataByName(state, name) {\n return state.extraData[name] || null;\n }\n }\n });\n\n register(store);\n\n return store;\n}\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./assets/jsx/components/css/dateOffsetPreview.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB\",\"sourcesContent\":[\".publishpress-future-date-preview .publishpress-future-date-preview-value {\\n font-family: monospace;\\n background-color: #e7e7e7;\\n padding: 2px 4px;\\n}\\n\\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\\n display: block;\\n}\\n\\n.publishpress-future-date-preview.compact {\\n margin-bottom: 8px;\\n}\\n\\n.publishpress-future-date-preview.compact h4 {\\n font-size: 11px;\\n font-weight: 500;\\n line-height: 1.4;\\n text-transform: uppercase;\\n display: inline-block;\\n margin-bottom: calc(8px);\\n padding: 0px;\\n flex-shrink: 0;\\n margin-right: 12px;\\n max-width: 75%;\\n margin-top: 0;\\n}\\n\\n.publishpress-future-notice.publishpress-future-notice-error {\\n color: #dc3232;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","module.exports = ReactDOM;","module.exports = publishpressFutureClassicEditorConfig;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","import { FutureActionPanelClassicEditor } from './components';\nimport { createStore } from './data';\nimport { isGutenbergEnabled } from './utils';\nimport { select } from '@wordpress/data';\nimport { createRoot } from 'react-dom/client';\nimport {\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n timeFormat,\n startOfWeek,\n strings,\n taxonomyName,\n postTypeDefaultConfig,\n defaultDate,\n statusesSelectOptions,\n hideCalendarByDefault\n} from \"&config.classic-editor\";\n\nif (! isGutenbergEnabled()) {\n const storeName = 'publishpress-future/future-action';\n\n if (!select(storeName)) {\n createStore({\n name: storeName,\n defaultState: {\n autoEnable: postTypeDefaultConfig.autoEnable,\n action: postTypeDefaultConfig.expireType,\n newStatus: postTypeDefaultConfig.newStatus,\n date: defaultDate,\n taxonomy: postTypeDefaultConfig.taxonomy,\n terms: postTypeDefaultConfig.terms,\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-classic-editor\");\n const component = (\n \n );\n\n createRoot(container).render(component);\n}\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","require","DateOffsetPreview","offset","labelDatePreview","labelOffsetPreview","setValidationErrorCallback","setHasPendingValidationCallback","setHasValidDataCallback","compactView","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","useEffect","controller","current","abort","signal","apiFetch","path","addQueryArgs","method","data","then","result","isValid","message","preview","catch","error","validateDateOffset","compactClass","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","decodeEntities","htmlEntities","url","useSelect","useDispatch","FutureActionPanel","select","action","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","hideCalendarByDefault","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","globalDefaultExpireOffset","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","fieldSetClassNames","isVisible","SettingsTable","bodyChildren","PostTypesSettingsPanels","currentTab","setCurrentTab","panels","postTypeSettings","legend","onSelectTab","event","preventDefault","hash","tabs","onClick","valign","htmlFor","SettingsFieldset","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","createStore","defaultState","getCurrentTimeAsTimestamp","extraData","createReduxStore","reducer","state","isNumber","getTime","normalizeUnixTimeToSeconds","formatUnixTimeToTimestamp","actions","setExtraData","setExtraDataByName","selectors","getExtraDataByName","register","getCurrentTimeInSeconds","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNaN","___CSS_LOADER_EXPORT___","module","exports","cssWithMappingToString","list","this","content","needLayer","concat","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","sourceMapping","m","createRoot","hydrateRoot","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","stylesInDOM","getIndexByIdentifier","identifier","modulesToDom","idCountMap","identifiers","base","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","style","styleTarget","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","createElement","attributes","styleElement","setAttribute","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","ReactDOM","publishpressFutureClassicEditorConfig","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","prototype","hasOwnProperty","call","r","Symbol","toStringTag","nc","defaultDate","container","getElementById","component","render"],"sourceRoot":""}
\ No newline at end of file
diff --git a/assets/js/quick-edit.js b/assets/js/quick-edit.js
index 6ca0c4b88..ee8f5839e 100644
--- a/assets/js/quick-edit.js
+++ b/assets/js/quick-edit.js
@@ -1,2 +1,2 @@
-(()=>{"use strict";var e={442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(5),r=n(214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(39),r=n(214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(409),i=n(873),l=n(986),u=n(214),c=n(61),s=n(625),m=wp.components,d=m.PanelRow,p=m.CheckboxControl,f=m.SelectControl,y=m.FormTokenField,g=m.Spinner,v=m.BaseControl,b=wp.element,E=b.Fragment,S=b.useEffect,h=b.useState,_=wp.htmlEntities.decodeEntities,T=wp.url.addQueryArgs,x=wp.data,N=x.useSelect,R=x.useDispatch,A=wp.apiFetch;t.FutureActionPanel=function(e){var t=N((function(t){return t(e.storeName).getAction()}),[]),n=N((function(t){return t(e.storeName).getDate()}),[]),m=N((function(t){return t(e.storeName).getEnabled()}),[]),b=N((function(t){return t(e.storeName).getTerms()}),[]),x=N((function(t){return t(e.storeName).getTaxonomy()}),[]),C=N((function(t){return t(e.storeName).getTaxonomyName()}),[]),P=N((function(t){return t(e.storeName).getTermsListByName()}),[]),w=N((function(t){return t(e.storeName).getTermsListById()}),[]),O=N((function(t){return t(e.storeName).getIsFetchingTerms()}),[]),D=N((function(t){return t(e.storeName).getCalendarIsVisible()}),[]),F=N((function(t){return t(e.storeName).getHasValidData()}),[]),k=N((function(t){return t(e.storeName).getNewStatus()}),[]),I=h(""),j=r(I,2),B=j[0],M=j[1],L=R(e.storeName),V=L.setAction,H=L.setDate,W=L.setEnabled,Q=L.setTerms,U=L.setTaxonomy,q=L.setTermsListByName,Y=L.setTermsListById,X=L.setTaxonomyName,z=L.setIsFetchingTerms,G=L.setCalendarIsVisible,J=L.setHasValidData,K=L.setNewStatus,Z=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:x},w[e]=e,q(P),Y(w),Q([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&w&&(ae=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return w[e]}))}(b)),"string"==typeof ae&&(ae=[]));var re=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(re=Object.keys(P));var oe,ie=D?"future-action-panel":"future-action-panel hidden-calendar",le=D?"future-action-panel-content":"future-action-panel-content hidden-calendar",ue=D?"future-action-date-panel":"future-action-date-panel hidden-calendar";oe="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ce=e.actionsSelectOptions;e.taxonomy||(ce=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var se=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,u=void 0;try{for(var c,s=a[Symbol.iterator]();!(i=(c=s.next()).done);i=!0){var m=c.value.split("}"),d=r(m,2),p=d[0],f=d[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},p)),o.push(f)}}catch(e){l=!0,u=e}finally{try{!i&&s.return&&s.return()}finally{if(l)throw u}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(t).includes("category")&&"category-remove-all"!==t,de=C;switch(t){case"category":de=e.strings.newTerms.replace("%s",C);break;case"category-remove":de=e.strings.removeTerms.replace("%s",C);break;case"category-add":de=e.strings.addTerms.replace("%s",C)}return S((function(){if(!m)return J(!0),void M("");J(function(){var a=!0;if(!m)return M(""),!0;t||(M(e.strings.errorActionRequired),a=!1),n||(M(e.strings.errorDateRequired),a=!1),n&&new Date(n){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,u=i("core/editor").getEditedPostAttribute("publishpress_future_action"),c=o("core/editor"),s=c.lockPostSaving,m=c.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:u.enabled,calendarIsVisible:!0,action:u.action,newStatus:u.newStatus,date:u.date,terms:u.terms,taxonomy:u.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,u=Object.entries(e)[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var c=i.value,s=a(c,2),m=s[0],d=s[1];t.publishpress_future_action[m]=d}}catch(e){r=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){m("future-action")},onDataIsInvalid:function(){s("future-action")}})))}},94:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,u=wp.element.useEffect,c=n((function(t){return t(e.storeName).getDate()}),[]),s=n((function(t){return t(e.storeName).getEnabled()}),[]),m=n((function(t){return t(e.storeName).getAction()}),[]),d=n((function(t){return t(e.storeName).getNewStatus()}),[]),p=n((function(t){return t(e.storeName).getTerms()}),[]),f=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),g=n((function(t){return t(e.storeName).getHasValidData()}),[]),v=i(e.storeName).setChangeAction,b=p;"object"===(void 0===p?"undefined":a(p))&&(b=p.join(","));var E=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return u((function(){g||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[g,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:E,onChange:function(e){v(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:m,newStatus:d,date:c,terms:p,taxonomy:f,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:s?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:c}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:b}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:f}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(57),r=n(562);n(5),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(57),o=n(562);n(5),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),u=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),c=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),s=l;return"object"===(void 0===l?"undefined":a(l))&&(s=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:c,date:t,terms:l,taxonomy:u,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(5);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57),o=n(5),i=n(11),l=n(566),u=n(244),c=wp.components,s=c.PanelRow;c.BaseControl,t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,o.useState)(e.settings.taxonomy),c=a(n,2),m=c[0],d=c[1],p=(0,o.useState)([]),f=a(p,2),y=f[0],g=f[1],v=(0,o.useState)(!1),b=a(v,2),E=b[0],S=b[1],h=(0,o.useState)([]),_=a(h,2),T=_[0],x=_[1],N=(0,o.useState)(e.settings.howToExpire),R=a(N,2),A=R[0],C=R[1],P=(0,o.useState)(e.settings.active),w=a(P,2),O=w[0],D=w[1],F=(0,o.useState)(e.settings.defaultExpireOffset),k=a(F,2),I=k[0],j=k[1],B=(0,o.useState)(e.settings.emailNotification),M=a(B,2),L=M[0],V=M[1],H=(0,o.useState)(e.settings.autoEnabled),W=a(H,2),Q=W[0],U=W[1],q=(0,o.useState)(!1),Y=a(q,2),X=Y[0],z=Y[1],G=(0,o.useState)(""),J=a(G,2),K=J[0],Z=J[1],$=(0,o.useState)(""),ee=a($,2),te=ee[0],ne=ee[1],ae=(0,o.useState)(t),re=a(ae,2),oe=re[0],ie=re[1],le=(0,o.useState)(e.settings.newStatus),ue=a(le,2),ce=ue[0],se=ue[1],me=(0,o.useState)(!1),de=a(me,2),pe=de[0],fe=de[1],ye=(0,o.useState)(""),ge=a(ye,2),ve=ge[0],be=ge[1],Ee=(0,o.useState)(),Se=a(Ee,2),he=Se[0],_e=Se[1],Te=(0,o.useRef)(new AbortController),xe=["category","category-add","category-remove","category-remove-all"];(0,o.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=oe.filter((function(e){return-1===xe.indexOf(e.value)})),ie(t))}),[]),(0,o.useEffect)((function(){m&&e.taxonomiesList&&(S(!0),(0,u.apiFetch)({path:(0,i.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),g(n),x(a),S(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ne(e.label)})))}),[m]),(0,o.useEffect)((function(){z(function(){if(!O)return Z(""),!0;var t=I||e.settings.globalDefaultExpireOffset;if(t){var n=Te.current;n&&n.abort(),Te.current=new AbortController;var a=Te.current.signal;fe(!0),(0,u.apiFetch)({path:(0,i.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:a}).then((function(e){fe(!1),z(e.isValid),Z(e.message),e.isValid?(be(e.preview),_e(e.currentTime)):be("")})).catch((function(e){"AbortError"!==e.name&&(fe(!1),z(!1),Z(e.message),be(""))}))}return Z(""),!0}())}),[O,I]),(0,o.useEffect)((function(){if(te){var e=[];t.forEach((function(t){var n=t.label;-1!==xe.indexOf(t.value)&&(n=n.replace("%s",te.toLowerCase())),e.push({value:t.value,label:n})})),ie(e)}}),[te]),(0,o.useEffect)((function(){X&&e.onDataIsValid&&e.onDataIsValid(e.postType),!X&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[X]),(0,o.useEffect)((function(){pe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!pe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[pe]);var Ne=y.map((function(e){return e.label})),Re=[React.createElement(r.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(r.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:O||!1,label:e.text.fieldActiveLabel,onChange:function(e){D(e)}}))];return O&&(Re.push(React.createElement(r.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(r.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:Q||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){U(e)}}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(r.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){d(e)}}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(r.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:oe,description:e.text.fieldHowToExpireDescription,selected:A,onChange:function(e){C(e)}}),"change-status"===A&&React.createElement(r.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ce,onChange:se}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(A)>-1&&React.createElement(r.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:Ne,value:T,isLoading:E,onChange:function(e){x(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(r.TextControl,{name:"expired-custom-date-"+e.postType,value:I,loading:pe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){j(e)}}),ve&&React.createElement(o.Fragment,null,React.createElement("h4",null,e.text.datePreview),React.createElement("div",null,React.createElement("div",null,React.createElement("span",null,e.text.datePreviewCurrent,": "),React.createElement("span",null,React.createElement("code",null,he))),React.createElement("div",null,React.createElement("span",null,e.text.datePreviewComputed,": "),React.createElement("span",null,React.createElement("code",null,ve))))))),Re.push(React.createElement(r.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(r.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){V(e)}})))),Re=(0,l.applyFilters)("expirationdate_settings_posttype",Re,e,O,o.useState),React.createElement(r.SettingsFieldset,{legend:e.legend},React.createElement(r.SettingsTable,{bodyChildren:Re}),!X&&React.createElement(s,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",K)))}},138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(57);t.PostTypesSettingsPanels=function(e){var t=[],n=!0,o=!1,i=void 0;try{for(var l,u=Object.entries(e.settings)[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){var c=l.value,s=a(c,2),m=s[0],d=s[1];t.push(React.createElement(r.PostTypeSettingsPanel,{legend:d.label,text:e.text,postType:m,settings:d,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[m],statusesList:e.statusesList[m],key:m+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished}))}}catch(e){o=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return t}},858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(5),r=n(214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},767:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(5),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",null,React.createElement("legend",null,e.legend),e.children)}},892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(5);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(5),r=n(214),o=n(57);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(190),r=n(620),o=n(5);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,u=e.onChangeDate,c=e.is12Hour,s=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:u,__nextRemoveHelpButton:!0,is12Hour:c,startOfWeek:s}))}},948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(5),o=n(214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var u=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:u,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},57:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var u=n(94);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return u.FutureActionPanelBulkEdit}});var c=n(239);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return c.PostTypeSettingsPanel}});var s=n(138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return s.PostTypesSettingsPanels}});var m=n(767);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return m.SettingRow}});var d=n(786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return d.SettingsFieldset}});var p=n(892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return p.SettingsForm}});var f=n(681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return f.SettingsSection}});var y=n(772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var g=n(438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return g.SubmitButton}});var v=n(311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return v.CheckboxControl}});var b=n(858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return b.SelectControl}});var E=n(301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return E.TextControl}});var S=n(948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return S.TokensControl}});var h=n(13);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return h.NonceControl}});var _=n(225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return _.TrueFalseControl}});var T=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return T.Spinner}})},480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,u=arguments[1];switch(u.type){case"SET_ACTION":return a({},l,{action:u.action});case"SET_NEW_STATUS":return a({},l,{newStatus:u.newStatus});case"SET_DATE":return"number"!=typeof u.date&&(0,o.isNumber)(u.date)&&(u.date=parseInt(u.date)),"string"==typeof u.date&&(u.date=new Date(u.date).getTime()),u.date=(0,r.normalizeUnixTimeToSeconds)(u.date),u.date=(0,r.formatUnixTimeToTimestamp)(u.date),a({},l,{date:u.date});case"SET_ENABLED":return a({},l,{enabled:u.enabled});case"SET_TERMS":return a({},l,{terms:u.terms});case"SET_TAXONOMY":return a({},l,{taxonomy:u.taxonomy});case"SET_TERMS_LIST_BY_NAME":return a({},l,{termsListByName:u.termsListByName});case"SET_TERMS_LIST_BY_ID":return a({},l,{termsListById:u.termsListById});case"SET_TAXONOMY_NAME":return a({},l,{taxonomyName:u.taxonomyName});case"SET_CHANGE_ACTION":return a({},l,{changeAction:u.changeAction});case"SET_CALENDAR_IS_VISIBLE":return a({},l,{calendarIsVisible:u.calendarIsVisible});case"SET_HAS_VALID_DATA":return a({},l,{hasValidData:u.hasValidData});case"SET_EXTRA_DATA":return a({},l,{extraData:a({},u.extraData)});case"SET_EXTRA_DATA_BY_NAME":var c=a({},l.extraData,(e={},n=u.name,i=u.value,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return a({},l,{extraData:a({},c)})}return l},actions:{setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});return(0,i.register)(n),n}},39:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{e.exports=publishpressFutureQuickEditConfig},643:e=>{e.exports=window},244:e=>{e.exports=wp},214:e=>{e.exports=wp.components},562:e=>{e.exports=wp.data},5:e=>{e.exports=wp.element},566:e=>{e.exports=wp.hooks},986:e=>{e.exports=wp.plugins},11:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}var a=n(57),r=n(480),o=n(409),i=n(5),l=n(562),u=n(643),c=n(47),s="publishpress-future/future-action-quick-edit",m=u.inlineEditPost.edit,d=u.inlineEditPost.revert;u.inlineEditPost.edit=function(e,t){m.apply(this,arguments);var n=function(e){return"string"==typeof e||"number"==typeof e?e:e.closest("tr").id.split("-")[1]}(e),p=(0,o.getActionSettingsFromColumnData)(n);if(p){var f=p.enabled,y=p.action,g=p.date,v=p.taxonomy,b=p.newStatus,E=p.terms;"string"==typeof E&&(E=E.split(",")),(0,l.select)(s)?((0,l.dispatch)(s).setEnabled(f),(0,l.dispatch)(s).setAction(y),(0,l.dispatch)(s).setDate(g),(0,l.dispatch)(s).setTaxonomy(v),(0,l.dispatch)(s).setTerms(E),(0,l.dispatch)(s).setNewStatus(b)):(0,r.createStore)({name:s,defaultState:{autoEnable:f,action:y,date:g,taxonomy:v,terms:E,newStatus:b}});var S=document.getElementById("publishpress-future-quick-edit");if(S){var h=(0,i.createRoot)(S),_=document.querySelector(".inline-edit-save .save");_&&(_.onclick=function(){setTimeout((function(){h.unmount()}),1e3)});var T=React.createElement(a.FutureActionPanelQuickEdit,{storeName:s,postType:c.postType,isNewPost:c.isNewPost,actionsSelectOptions:c.actionsSelectOptions,statusesSelectOptions:c.statusesSelectOptions,is12Hour:c.is12Hour,timeFormat:c.timeFormat,startOfWeek:c.startOfWeek,strings:c.strings,taxonomyName:c.taxonomyName,nonce:c.nonce});h.render(T),u.inlineEditPost.revert=function(){h.unmount(),d.apply(this,arguments)}}}}})();
+(()=>{"use strict";var e={5442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},4311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(1386),r=n(2214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},5470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateOffsetPreview=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(1386),o=n(4011),i=n(3244);n(9922);var l=t.DateOffsetPreview=function(e){var t=e.offset,n=e.label,l=e.labelDatePreview,s=e.labelOffsetPreview,u=e.setValidationErrorCallback,c=e.setHasPendingValidationCallback,d=e.setHasValidDataCallback,m=e.compactView,p=void 0!==m&&m,f=(0,r.useState)(""),y=a(f,2),g=y[0],v=y[1],b=(0,r.useState)(),h=a(b,2),E=h[0],S=h[1],_=(0,r.useRef)(new AbortController);(0,r.useEffect)((function(){!function(){if(t){var e=_.current;e&&e.abort(),_.current=new AbortController;var n=_.current.signal;c(!0),(0,i.apiFetch)({path:(0,o.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:n}).then((function(e){c(!1),d(e.isValid),u(e.message),e.isValid?(v(e.preview),S(e.currentTime)):v("")})).catch((function(e){"AbortError"!==e.name&&(c(!1),d(!1),u(e.message),v(""))}))}}()}),[t]);var x=p?" compact":"";return React.createElement(r.Fragment,null,t&&React.createElement("div",{className:"publishpress-future-date-preview"+x},React.createElement("h4",null,n),React.createElement("div",{className:"publishpress-future-date-preview-body"},React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},l,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},E)),React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},s,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},g)))))};t.default=l},4620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(7039),r=n(2214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},8418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(8409),i=n(4873),l=n(9986),s=n(2214),u=n(1442),c=n(6625),d=wp.components,m=d.PanelRow,p=d.CheckboxControl,f=d.SelectControl,y=d.FormTokenField,g=d.Spinner,v=d.BaseControl,b=wp.element,h=b.Fragment,E=b.useEffect,S=b.useState,_=wp.htmlEntities.decodeEntities,x=wp.url.addQueryArgs,T=wp.data,A=T.useSelect,N=T.useDispatch,C=wp.apiFetch;t.FutureActionPanel=function(e){var t=A((function(t){return{action:t(e.storeName).getAction(),date:t(e.storeName).getDate(),enabled:t(e.storeName).getEnabled(),terms:t(e.storeName).getTerms(),taxonomy:t(e.storeName).getTaxonomy(),taxonomyName:t(e.storeName).getTaxonomyName(),termsListByName:t(e.storeName).getTermsListByName(),termsListById:t(e.storeName).getTermsListById(),isFetchingTerms:t(e.storeName).getIsFetchingTerms(),calendarIsVisible:t(e.storeName).getCalendarIsVisible(),hasValidData:t(e.storeName).getHasValidData(),newStatus:t(e.storeName).getNewStatus()}})),n=t.action,d=t.date,b=t.enabled,T=t.terms,w=t.taxonomy,R=t.taxonomyName,P=t.termsListByName,O=t.termsListById,D=t.isFetchingTerms,I=t.calendarIsVisible,k=t.hasValidData,F=t.newStatus,B=S(""),j=r(B,2),M=j[0],V=j[1],L=N(e.storeName),H=L.setAction,U=L.setDate,W=L.setEnabled,Q=L.setTerms,q=L.setTaxonomy,Y=L.setTermsListByName,z=L.setTermsListById,X=L.setTaxonomyName,G=L.setIsFetchingTerms,J=L.setCalendarIsVisible,Z=L.setHasValidData,K=L.setNewStatus,$=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:w},O[e]=e,Y(P),z(O),Q([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&O&&(re=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return O[e]}))}(T)),"string"==typeof re&&(re=[]));var oe=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(oe=Object.keys(P));var ie,le=I?"future-action-panel":"future-action-panel hidden-calendar",se=I?"future-action-panel-content":"future-action-panel-content hidden-calendar",ue=I?"future-action-date-panel":"future-action-date-panel hidden-calendar";ie="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ce=e.actionsSelectOptions;e.taxonomy||(ce=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var de=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,s=void 0;try{for(var u,c=a[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value.split("}"),m=r(d,2),p=m[0],f=m[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},p)),o.push(f)}}catch(e){l=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(l)throw s}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(n).includes("category")&&"category-remove-all"!==n,pe=R;switch(n){case"category":pe=e.strings.newTerms.replace("%s",R);break;case"category-remove":pe=e.strings.removeTerms.replace("%s",R);break;case"category-add":pe=e.strings.addTerms.replace("%s",R)}return E((function(){if(!b)return Z(!0),void V("");Z(function(){var t=!0;if(!b)return V(""),!0;n||(V(e.strings.errorActionRequired),t=!1),d||(V(e.strings.errorDateRequired),t=!1),d&&new Date(d){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,s=i("core/editor").getEditedPostAttribute("publishpress_future_action"),u=o("core/editor"),c=u.lockPostSaving,d=u.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:s.enabled,calendarIsVisible:!0,action:s.action,newStatus:s.newStatus,date:s.date,terms:s.terms,taxonomy:s.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,s=Object.entries(e)[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value,c=a(u,2),d=c[0],m=c[1];t.publishpress_future_action[d]=m}}catch(e){r=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){d("future-action")},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){c("future-action")}})))}},2094:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2057),o=n(8409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,s=wp.element.useEffect,u=n((function(t){return t(e.storeName).getDate()}),[]),c=n((function(t){return t(e.storeName).getEnabled()}),[]),d=n((function(t){return t(e.storeName).getAction()}),[]),m=n((function(t){return t(e.storeName).getNewStatus()}),[]),p=n((function(t){return t(e.storeName).getTerms()}),[]),f=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),g=n((function(t){return t(e.storeName).getHasValidData()}),[]),v=i(e.storeName).setChangeAction,b=p;"object"===(void 0===p?"undefined":a(p))&&(b=p.join(","));var h=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return s((function(){g||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[g,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:h,onChange:function(e){v(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:d,newStatus:m,date:u,terms:p,taxonomy:f,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,hideCalendarByDefault:e.hideCalendarByDefault,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:c?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:u}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:b}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:f}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},3571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(2057),r=n(7562);n(1386),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},5437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2057),o=n(7562);n(1386),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),s=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),u=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),c=l;return"object"===(void 0===l?"undefined":a(l))&&(c=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:u,date:t,terms:l,taxonomy:s,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},6625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(1386);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},1620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(2057),i=n(1386),l=n(4011),s=n(8566),u=n(3244),c=(a=n(5470))&&a.__esModule?a:{default:a},d=wp.components.PanelRow;t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,i.useState)(e.settings.taxonomy),a=r(n,2),m=a[0],p=a[1],f=(0,i.useState)([]),y=r(f,2),g=y[0],v=y[1],b=(0,i.useState)(!1),h=r(b,2),E=h[0],S=h[1],_=(0,i.useState)([]),x=r(_,2),T=x[0],A=x[1],N=(0,i.useState)(e.settings.howToExpire),C=r(N,2),w=C[0],R=C[1],P=(0,i.useState)(e.settings.active),O=r(P,2),D=O[0],I=O[1],k=(0,i.useState)(e.settings.defaultExpireOffset),F=r(k,2),B=F[0],j=F[1],M=(0,i.useState)(e.settings.emailNotification),V=r(M,2),L=V[0],H=V[1],U=(0,i.useState)(e.settings.autoEnabled),W=r(U,2),Q=W[0],q=W[1],Y=(0,i.useState)(!0),z=r(Y,2),X=z[0],G=z[1],J=(0,i.useState)(""),Z=r(J,2),K=Z[0],$=Z[1],ee=(0,i.useState)(""),te=r(ee,2),ne=te[0],ae=te[1],re=(0,i.useState)(t),oe=r(re,2),ie=oe[0],le=oe[1],se=(0,i.useState)(e.settings.newStatus),ue=r(se,2),ce=ue[0],de=ue[1],me=(0,i.useState)(!1),pe=r(me,2),fe=pe[0],ye=pe[1],ge=B||e.settings.globalDefaultExpireOffset,ve=["category","category-add","category-remove","category-remove-all"];(0,i.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=ie.filter((function(e){return-1===ve.indexOf(e.value)})),le(t))}),[]),(0,i.useEffect)((function(){m&&e.taxonomiesList&&(S(!0),(0,u.apiFetch)({path:(0,l.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),v(n),A(a),S(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ae(e.label)})))}),[m]),(0,i.useEffect)((function(){if(ne){var e=[];t.forEach((function(t){var n=t.label;-1!==ve.indexOf(t.value)&&(n=n.replace("%s",ne.toLowerCase())),e.push({value:t.value,label:n})})),le(e)}}),[ne]),(0,i.useEffect)((function(){X&&e.onDataIsValid&&e.onDataIsValid(e.postType),!X&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[X]),(0,i.useEffect)((function(){fe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!fe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[fe]);var be=g.map((function(e){return e.label})),he=[React.createElement(o.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:D||!1,label:e.text.fieldActiveLabel,onChange:function(e){I(e)}}))];D&&(he.push(React.createElement(o.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:Q||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){q(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){p(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:ie,description:e.text.fieldHowToExpireDescription,selected:w,onChange:function(e){R(e)}}),"change-status"===w&&React.createElement(o.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ce,onChange:de}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(w)>-1&&React.createElement(o.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:be,value:T,isLoading:E,onChange:function(e){A(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(o.TextControl,{name:"expired-custom-date-"+e.postType,value:B,loading:fe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){j(e)}}),React.createElement(c.default,{offset:ge,label:e.text.datePreview,labelDatePreview:e.text.datePreviewCurrent,labelOffsetPreview:e.text.datePreviewComputed,setValidationErrorCallback:$,setHasPendingValidationCallback:ye,setHasValidDataCallback:G}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(o.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){H(e)}})))),he=(0,s.applyFilters)("expirationdate_settings_posttype",he,e,D,i.useState);var Ee=e.isVisible?"pe-settings-fieldset":"pe-settings-fieldset hidden";return React.createElement("div",{className:Ee},React.createElement(o.SettingsTable,{bodyChildren:he}),!X&&React.createElement(d,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",K)))}},8138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057),o=n(1386);t.PostTypesSettingsPanels=function(e){var t=(0,o.useState)(Object.keys(e.settings)[0]),n=a(t,2),i=n[0],l=n[1],s=[],u=!0,c=!1,d=void 0;try{for(var m,p=Object.entries(e.settings)[Symbol.iterator]();!(u=(m=p.next()).done);u=!0){var f=m.value,y=a(f,2),g=y[0],v=y[1];s.push(React.createElement(r.PostTypeSettingsPanel,{legend:v.label,text:e.text,postType:g,settings:v,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[g],statusesList:e.statusesList[g],key:g+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished,isVisible:i===g}))}}catch(e){c=!0,d=e}finally{try{!u&&p.return&&p.return()}finally{if(c)throw d}}var b=function(e){e.preventDefault(),l(e.target.hash.replace("#","").replace("-panel",""))},h=[],E=!1,S=!0,_=!1,x=void 0;try{for(var T,A=Object.entries(e.settings)[Symbol.iterator]();!(S=(T=A.next()).done);S=!0){var N=T.value,C=a(N,2),w=C[0],R=C[1];E=i===w,h.push(React.createElement("a",{href:"#"+w+"-panel",className:"nav-tab "+(E?"nav-tab-active":""),key:w+"-tab",onClick:b},R.label))}}catch(e){_=!0,x=e}finally{try{!S&&A.return&&A.return()}finally{if(_)throw x}}return React.createElement("div",null,React.createElement("nav",{className:"nav-tab-wrapper"},h),s)}},2858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(1386),r=n(2214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},9005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(1386),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},5786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",{className:e.className},React.createElement("legend",null,e.legend),e.children)}},9892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},5681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(1386);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},6772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},4438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},6301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(1386),r=n(2214),o=n(2057);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},3190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(2214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},4873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(3190),r=n(4620),o=n(1386);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,s=e.onChangeDate,u=e.is12Hour,c=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:s,__nextRemoveHelpButton:!0,is12Hour:u,startOfWeek:c}))}},3948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(1386),o=n(2214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var s=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:s,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},8225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},2057:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(5442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(8418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(2864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(3571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(5437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var s=n(2094);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return s.FutureActionPanelBulkEdit}});var u=n(1620);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return u.PostTypeSettingsPanel}});var c=n(8138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return c.PostTypesSettingsPanels}});var d=n(9005);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return d.SettingRow}});var m=n(5786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return m.SettingsFieldset}});var p=n(9892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return p.SettingsForm}});var f=n(5681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return f.SettingsSection}});var y=n(6772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var g=n(4438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return g.SubmitButton}});var v=n(4311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return v.CheckboxControl}});var b=n(2858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return b.SelectControl}});var h=n(6301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return h.TextControl}});var E=n(3948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return E.TokensControl}});var S=n(1013);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return S.NonceControl}});var _=n(8225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return _.TrueFalseControl}});var x=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return x.Spinner}});var T=n(5470);Object.defineProperty(t,"DateOffsetPreview",{enumerable:!0,get:function(){return T.DateOffsetPreview}})},4480:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createStore=void 0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,s=arguments[1];switch(s.type){case"SET_ACTION":return a({},l,{action:s.action});case"SET_NEW_STATUS":return a({},l,{newStatus:s.newStatus});case"SET_DATE":return"number"!=typeof s.date&&(0,o.isNumber)(s.date)&&(s.date=parseInt(s.date)),"string"==typeof s.date&&(s.date=new Date(s.date).getTime()),s.date=(0,r.normalizeUnixTimeToSeconds)(s.date),s.date=(0,r.formatUnixTimeToTimestamp)(s.date),a({},l,{date:s.date});case"SET_ENABLED":return a({},l,{enabled:s.enabled});case"SET_TERMS":return a({},l,{terms:s.terms});case"SET_TAXONOMY":return a({},l,{taxonomy:s.taxonomy});case"SET_TERMS_LIST_BY_NAME":return a({},l,{termsListByName:s.termsListByName});case"SET_TERMS_LIST_BY_ID":return a({},l,{termsListById:s.termsListById});case"SET_TAXONOMY_NAME":return a({},l,{taxonomyName:s.taxonomyName});case"SET_CHANGE_ACTION":return a({},l,{changeAction:s.changeAction});case"SET_CALENDAR_IS_VISIBLE":return a({},l,{calendarIsVisible:s.calendarIsVisible});case"SET_HAS_VALID_DATA":return a({},l,{hasValidData:s.hasValidData});case"SET_EXTRA_DATA":return a({},l,{extraData:a({},s.extraData)});case"SET_EXTRA_DATA_BY_NAME":var u=a({},l.extraData,(e={},n=s.name,i=s.value,n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e));return a({},l,{extraData:a({},u)})}return l},actions:{setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});return(0,i.register)(n),n}},7039:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},8409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{n.d(t,{A:()=>l});var a=n(1354),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n","",{version:3,sources:["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],names:[],mappings:"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB",sourcesContent:[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],sourceRoot:""}]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},1354:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),o="/*# ".concat(r," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},5338:(e,t,n)=>{var a=n(5206);t.createRoot=a.createRoot,t.hydrateRoot=a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),l=n(7659),s=n.n(l),u=n(5056),c=n.n(u),d=n(540),m=n.n(d),p=n(1113),f=n.n(p),y=n(1461),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=m(),r()(y.A,g);const v=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM},3047:e=>{e.exports=publishpressFutureQuickEditConfig},8643:e=>{e.exports=window},3244:e=>{e.exports=wp},2214:e=>{e.exports=wp.components},7562:e=>{e.exports=wp.data},1386:e=>{e.exports=wp.element},8566:e=>{e.exports=wp.hooks},9986:e=>{e.exports=wp.plugins},4011:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var a=n(2057),r=n(4480),o=n(8409),i=n(5338),l=n(7562),s=n(8643),u=n(3047),c="publishpress-future/future-action-quick-edit",d=s.inlineEditPost.edit,m=s.inlineEditPost.revert;s.inlineEditPost.edit=function(e,t){d.apply(this,arguments);var n=function(e){return"string"==typeof e||"number"==typeof e?e:e.closest("tr").id.split("-")[1]}(e),p=(0,o.getActionSettingsFromColumnData)(n);if(p){var f=p.enabled,y=p.action,g=p.date,v=p.taxonomy,b=p.newStatus,h=p.terms;"string"==typeof h&&(h=h.split(",")),(0,l.select)(c)?((0,l.dispatch)(c).setEnabled(f),(0,l.dispatch)(c).setAction(y),(0,l.dispatch)(c).setDate(g),(0,l.dispatch)(c).setTaxonomy(v),(0,l.dispatch)(c).setTerms(h),(0,l.dispatch)(c).setNewStatus(b)):(0,r.createStore)({name:c,defaultState:{autoEnable:f,action:y,date:g,taxonomy:v,terms:h,newStatus:b}});var E=document.getElementById("publishpress-future-quick-edit");if(E){var S=(0,i.createRoot)(E),_=document.querySelector(".inline-edit-save .save");_&&(_.onclick=function(){setTimeout((function(){S.unmount()}),1e3)});var x=React.createElement(a.FutureActionPanelQuickEdit,{storeName:c,postType:u.postType,isNewPost:u.isNewPost,actionsSelectOptions:u.actionsSelectOptions,statusesSelectOptions:u.statusesSelectOptions,is12Hour:u.is12Hour,timeFormat:u.timeFormat,startOfWeek:u.startOfWeek,strings:u.strings,taxonomyName:u.taxonomyName,nonce:u.nonce,hideCalendarByDefault:u.hideCalendarByDefault});S.render(x),s.inlineEditPost.revert=function(){S.unmount(),m.apply(this,arguments)}}}}})();
//# sourceMappingURL=quick-edit.js.map
\ No newline at end of file
diff --git a/assets/js/quick-edit.js.map b/assets/js/quick-edit.js.map
index a74498af8..cf796b5e1 100644
--- a/assets/js/quick-edit.js.map
+++ b/assets/js/quick-edit.js.map
@@ -1 +1 @@
-{"version":3,"file":"quick-edit.js","mappings":"uFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,8FCPD,OACA,SAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,UAASJ,EAAMK,UAAW,GADZ,GACrCA,EADqC,KAC5BC,EAD4B,KAoB5C,OAbIH,EAFAH,EAAMO,qBAEQ,yBAAGC,UAAU,cAAcC,wBAAyB,CAAEC,OAAQV,EAAMG,eAEpE,yBAAGK,UAAU,eAAeR,EAAMG,aAYhD,oBAAC,EAAAQ,SAAD,KACI,oBAAC,kBAAD,CACIC,MAAOZ,EAAMY,MACbC,KAAMb,EAAMa,KACZC,GAAId,EAAMa,KACVL,UAAWR,EAAMQ,UACjBH,QAASA,IAAW,EACpBU,SAhBK,SAAUC,GACvBV,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,IAAME,GAAO,IAAAC,YAAWH,GAElBI,EAAanO,SAASyH,cAAc,2BACtC0G,IACAA,EAAWC,QAAU,WACjBC,YAAW,WACPJ,EAAKK,SACR,GAhFqB,IAiFzB,GAGL,IAAMC,EACF,oBAAC,EAAAlO,2BAAD,CACIrL,UAAWA,EACXuJ,SAAUA,EAAAA,SACVoB,UAAWA,EAAAA,UACXhG,qBAAsBA,EAAAA,qBACtB2C,sBAAuBA,EAAAA,sBACvB9I,SAAUA,EAAAA,SACVkG,WAAYA,EAAAA,WACZjG,YAAaA,EAAAA,YACbkH,QAASA,EAAAA,QACTjF,aAAcA,EAAAA,aACdmK,MAAOA,EAAAA,QAIfoO,EAAKO,OAAOD,GAEZnB,EAAAA,eAAeG,OAAS,WACpBU,EAAKK,UAGLhB,EAAmBG,MAAMC,KAAMC,UAClC,CAnCA,CAvCA,CA2EJ,C","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/data.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/external var \"publishpressFutureQuickEditConfig\"","webpack://post-expirator/external var \"window\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/./assets/jsx/quick-edit.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n setChecked(value);\n\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n return (\n \n \n\n {description}\n \n )\n}\n","import { normalizeUnixTimeToMilliseconds } from \"../time\";\nimport { DateTimePicker as WPDateTimePicker } from \"@wordpress/components\";\n\n\nexport const DateTimePicker = ({currentDate, onChange, is12Hour, startOfWeek}) => {\n if (typeof currentDate === 'number') {\n currentDate = normalizeUnixTimeToMilliseconds(currentDate);\n }\n\n return (\n \n )\n}\n","import { compact } from '../utils';\nimport { ToggleCalendarDatePicker } from './ToggleCalendarDatePicker';\nimport { PluginArea } from '@wordpress/plugins';\nimport { Fill, Slot, SlotFillProvider } from '@wordpress/components';\nimport { FutureActionPanelAfterActionField } from './FutureActionPanelAfterActionField';\nimport { FutureActionPanelTop } from './FutureActionPanelTop';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect, useState } = wp.element;\nconst { decodeEntities } = wp.htmlEntities;\nconst { addQueryArgs } = wp.url;\nconst {\n useSelect,\n useDispatch\n} = wp.data;\nconst { apiFetch } = wp;\n\nexport const FutureActionPanel = (props) => {\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const taxonomyName = useSelect((select) => select(props.storeName).getTaxonomyName(), []);\n const termsListByName = useSelect((select) => select(props.storeName).getTermsListByName(), []);\n const termsListById = useSelect((select) => select(props.storeName).getTermsListById(), []);\n const isFetchingTerms = useSelect((select) => select(props.storeName).getIsFetchingTerms(), []);\n const calendarIsVisible = useSelect((select) => select(props.storeName).getCalendarIsVisible(), []);\n const hasValidData = useSelect((select) => select(props.storeName).getHasValidData(), []);\n const newStatus = useSelect((select) => select(props.storeName).getNewStatus(), []);\n\n const [validationError, setValidationError] = useState('');\n\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible,\n setHasValidData,\n setNewStatus\n } = useDispatch(props.storeName);\n\n const mapTermsListById = (terms) => {\n if (typeof terms !== 'object' || terms === null) {\n return {};\n }\n\n return terms.map((term) => {\n return termsListById[term];\n });\n }\n\n const insertTerm = (term) => {\n termsListByName[term] = { id: term, count: 0, description: \"\", link: \"\", name: term, slug: term, taxonomy: taxonomy };\n termsListById[term] = term;\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTerms([...terms, term]);\n\n }\n\n const mapTermsListByName = (terms) => {\n if (typeof terms !== 'object' || terms === null) {\n return {};\n }\n\n return terms.map((term) => {\n if (termsListByName[term]) {\n return termsListByName[term].id;\n }\n\n insertTerm(term);\n\n return term;\n });\n }\n\n const callOnChangeData = (attribute, value) => {\n if (typeof props.onChangeData === 'function') {\n props.onChangeData(attribute, value);\n }\n }\n\n const handleEnabledChange = (isChecked) => {\n setEnabled(isChecked);\n\n if (isChecked) {\n setAction(props.action);\n setDate(props.date);\n setNewStatus(props.newStatus);\n setTerms(props.terms);\n setTaxonomy(props.taxonomy);\n\n fetchTerms();\n }\n\n callOnChangeData('enabled', isChecked);\n }\n\n const handleActionChange = (value) => {\n setAction(value);\n\n callOnChangeData('action', value);\n }\n\n const handleNewStatusChange = (value) => {\n setNewStatus(value);\n\n callOnChangeData('newStatus', value);\n }\n\n const handleDateChange = (value) => {\n setDate(value);\n\n callOnChangeData('date', value);\n }\n\n const handleTermsChange = (value) => {\n value = mapTermsListByName(value);\n\n setTerms(value);\n\n callOnChangeData('terms', value);\n }\n\n const fetchTerms = () => {\n let termsListByName = {};\n let termsListById = {};\n\n if (!taxonomy) {\n return;\n }\n\n setIsFetchingTerms(true);\n\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/terms/${taxonomy}`),\n }).then((result) => {\n result.terms.forEach(term => {\n termsListByName[decodeEntities(term.name)] = term;\n termsListById[term.id] = decodeEntities(term.name);\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(decodeEntities(result.taxonomyName));\n setIsFetchingTerms(false);\n });\n }\n\n const storeCalendarIsVisibleOnStorage = (value) => {\n localStorage.setItem('FUTURE_ACTION_CALENDAR_IS_VISIBLE_' + props.context, value ? '1' : '0');\n }\n\n const getCalendarIsVisibleFromStorage = () => {\n return localStorage.getItem('FUTURE_ACTION_CALENDAR_IS_VISIBLE_' + props.context);\n }\n\n useEffect(() => {\n if (props.autoEnableAndHideCheckbox) {\n setEnabled(true);\n } else {\n setEnabled(props.enabled);\n }\n\n setAction(props.action);\n setNewStatus(props.newStatus);\n setDate(props.date);\n setTerms(props.terms);\n setTaxonomy(props.taxonomy);\n\n if (getCalendarIsVisibleFromStorage() === null) {\n setCalendarIsVisible(props.calendarIsVisible);\n } else {\n setCalendarIsVisible(getCalendarIsVisibleFromStorage() === '1');\n }\n\n // We need to get the value directly from the props because the value from the store is not updated yet\n if (props.enabled) {\n if (props.isCleanNewPost) {\n // Force populate the default values\n handleEnabledChange(true);\n }\n\n fetchTerms();\n }\n }, []);\n\n useEffect(() => {\n storeCalendarIsVisibleOnStorage(calendarIsVisible);\n }, [calendarIsVisible]);\n\n useEffect(() => {\n if (hasValidData && props.onDataIsValid) {\n props.onDataIsValid();\n }\n\n if (!hasValidData && props.onDataIsInvalid) {\n props.onDataIsInvalid();\n }\n }, [hasValidData]);\n\n let selectedTerms = [];\n if (terms && terms.length > 0 && termsListById) {\n selectedTerms = compact(mapTermsListById(terms));\n\n if (typeof selectedTerms === 'string') {\n selectedTerms = [];\n }\n }\n\n let termsListByNameKeys = [];\n if (typeof termsListByName === 'object' && termsListByName !== null) {\n termsListByNameKeys = Object.keys(termsListByName);\n }\n\n const panelClass = calendarIsVisible ? 'future-action-panel' : 'future-action-panel hidden-calendar';\n const contentPanelClass = calendarIsVisible ? 'future-action-panel-content' : 'future-action-panel-content hidden-calendar';\n const datePanelClass = calendarIsVisible ? 'future-action-date-panel' : 'future-action-date-panel hidden-calendar';\n\n let is24hour;\n if (props.timeFormat === 'inherited') {\n is24hour = !props.is12Hour;\n } else {\n is24hour = props.timeFormat === '24h';\n }\n\n const replaceCurlyBracketsWithLink = (string, href, target) => {\n const parts = string.split('{');\n const result = [];\n\n result.push(parts.shift());\n\n for (const part of parts) {\n const [before, after] = part.split('}');\n\n result.push(\n {before}\n );\n\n result.push(after);\n }\n\n return result;\n };\n\n // Remove items from actions list if related to taxonomies and there is no taxonmoy for the post type\n let actionsSelectOptions = props.actionsSelectOptions;\n if (!props.taxonomy) {\n actionsSelectOptions = props.actionsSelectOptions.filter((item) => {\n return ['category', 'category-add', 'category-remove', 'category-remove-all'].indexOf(item.value) === -1;\n });\n }\n\n const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n const displayTaxonomyField = String(action).includes('category') && action !== 'category-remove-all';\n\n let termsFieldLabel = taxonomyName;\n switch (action) {\n case 'category':\n termsFieldLabel = props.strings.newTerms.replace('%s', taxonomyName);\n break;\n case 'category-remove':\n termsFieldLabel = props.strings.removeTerms.replace('%s', taxonomyName);\n break;\n case 'category-add':\n termsFieldLabel = props.strings.addTerms.replace('%s', taxonomyName);\n break;\n }\n\n const validateData = () => {\n let valid = true;\n\n if (!enabled) {\n setValidationError('');\n return true;\n }\n\n if (!action) {\n setValidationError(props.strings.errorActionRequired);\n valid = false;\n }\n\n if (!date) {\n setValidationError(props.strings.errorDateRequired);\n valid = false;\n }\n\n // Check if the date is in the past\n if (date && new Date(date) < new Date()) {\n setValidationError(props.strings.errorDateInPast);\n valid = false;\n }\n\n const isTermRequired = ['category', 'category-add', 'category-remove'].includes(action);\n const noTermIsSelected = terms.length === 0 || (terms.length === 1 && (terms[0] === '' || terms[0] === '0'));\n\n if (isTermRequired && noTermIsSelected) {\n setValidationError(props.strings.errorTermsRequired);\n valid = false;\n }\n\n if (valid) {\n setValidationError('');\n }\n\n return valid;\n }\n\n useEffect(() => {\n if (!enabled) {\n setHasValidData(true);\n setValidationError('');\n\n return;\n }\n\n setHasValidData(validateData());\n }, [action, date, enabled, terms, taxonomy]);\n\n // This adds a 'cancel' class to the input when the user clicks on the\n // field to prevent the form from being submitted. This is a workaround\n // for the issue on the quick-edit form where the form is submitted when\n // the user presses the 'Enter' key trying to add a term to the field.\n const forceIgnoreAutoSubmitOnEnter = (e) => {\n jQuery(e.target).addClass('cancel');\n }\n\n return (\n \n
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '@wordpress/data';\n\nexport const createStore = (props) => {\n if (props.defaultState.terms && typeof props.defaultState.terms === 'string') {\n props.defaultState.terms = props.defaultState.terms.split(',').map(term => parseInt(term));\n }\n\n let defaultState = {\n action: props.defaultState.action,\n date: props.defaultState.date ? props.defaultState.date : getCurrentTimeAsTimestamp(),\n enabled: props.defaultState.autoEnable,\n terms: props.defaultState.terms ? props.defaultState.terms : [],\n taxonomy: props.defaultState.taxonomy ? props.defaultState.taxonomy : null,\n newStatus: props.defaultState.newStatus ? props.defaultState.newStatus : 'draft',\n termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\n hasValidData: true,\n extraData: props.defaultState.extraData ? props.defaultState.extraData : {},\n }\n\n const store = createReduxStore(props.name, {\n reducer(state = defaultState, action) {\n switch (action.type) {\n case 'SET_ACTION':\n return {\n ...state,\n action: action.action,\n };\n case 'SET_NEW_STATUS':\n return {\n ...state,\n newStatus: action.newStatus,\n };\n case 'SET_DATE':\n // Make sure the date is a number, if it is a string with only numbers\n if (typeof action.date !== 'number' && isNumber(action.date)) {\n action.date = parseInt(action.date);\n }\n\n // If string, convert to unix time\n if (typeof action.date === 'string') {\n action.date = new Date(action.date).getTime();\n }\n\n // Make sure the time is always in seconds\n action.date = normalizeUnixTimeToSeconds(action.date);\n\n // Convert to formated string format, considering it is in the site's timezone\n action.date = formatUnixTimeToTimestamp(action.date);\n\n return {\n ...state,\n date: action.date,\n }\n case 'SET_ENABLED':\n return {\n ...state,\n enabled: action.enabled,\n }\n case 'SET_TERMS':\n return {\n ...state,\n terms: action.terms,\n }\n case 'SET_TAXONOMY':\n return {\n ...state,\n taxonomy: action.taxonomy,\n }\n case 'SET_TERMS_LIST_BY_NAME':\n return {\n ...state,\n termsListByName: action.termsListByName,\n }\n case 'SET_TERMS_LIST_BY_ID':\n return {\n ...state,\n termsListById: action.termsListById,\n }\n case 'SET_TAXONOMY_NAME':\n return {\n ...state,\n taxonomyName: action.taxonomyName,\n }\n case 'SET_CHANGE_ACTION':\n return {\n ...state,\n changeAction: action.changeAction,\n }\n case 'SET_CALENDAR_IS_VISIBLE':\n return {\n ...state,\n calendarIsVisible: action.calendarIsVisible,\n }\n case 'SET_HAS_VALID_DATA':\n return {\n ...state,\n hasValidData: action.hasValidData,\n }\n\n case 'SET_EXTRA_DATA':\n return {\n ...state,\n extraData: {\n ...action.extraData,\n }\n }\n\n case 'SET_EXTRA_DATA_BY_NAME':\n const extraData = {\n ...state.extraData,\n [action.name]: action.value\n };\n\n return {\n ...state,\n extraData: {...extraData}\n }\n }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\n };\n },\n setNewStatus(newStatus) {\n return {\n type: 'SET_NEW_STATUS',\n newStatus: newStatus\n };\n },\n setDate(date) {\n return {\n type: 'SET_DATE',\n date: date\n };\n },\n setEnabled(enabled) {\n return {\n type: 'SET_ENABLED',\n enabled: enabled\n };\n },\n setTerms(terms) {\n return {\n type: 'SET_TERMS',\n terms: terms\n };\n },\n setTaxonomy(taxonomy) {\n return {\n type: 'SET_TAXONOMY',\n taxonomy: taxonomy\n };\n },\n setTermsListByName(termsListByName) {\n return {\n type: 'SET_TERMS_LIST_BY_NAME',\n termsListByName: termsListByName\n };\n },\n setTermsListById(termsListById) {\n return {\n type: 'SET_TERMS_LIST_BY_ID',\n termsListById: termsListById\n };\n },\n setTaxonomyName(taxonomyName) {\n return {\n type: 'SET_TAXONOMY_NAME',\n taxonomyName: taxonomyName\n };\n },\n setIsFetchingTerms(isFetchingTerms) {\n return {\n type: 'SET_IS_FETCHING_TERMS',\n isFetchingTerms: isFetchingTerms\n }\n },\n setChangeAction(changeAction) {\n return {\n type: 'SET_CHANGE_ACTION',\n changeAction: changeAction\n }\n },\n setCalendarIsVisible(calendarIsVisible) {\n return {\n type: 'SET_CALENDAR_IS_VISIBLE',\n calendarIsVisible: calendarIsVisible\n }\n },\n setHasValidData(hasValidData) {\n return {\n type: 'SET_HAS_VALID_DATA',\n hasValidData: hasValidData\n }\n },\n setExtraData(extraData) {\n return {\n type: 'SET_EXTRA_DATA',\n extraData: extraData\n }\n },\n setExtraDataByName(name, value) {\n return {\n type: 'SET_EXTRA_DATA_BY_NAME',\n name: name,\n value: value\n }\n }\n },\n selectors: {\n getAction(state) {\n return state.action;\n },\n getNewStatus(state) {\n return state.newStatus;\n },\n getDate(state) {\n return state.date;\n },\n getEnabled(state) {\n return state.enabled;\n },\n getTerms(state) {\n return state.terms;\n },\n getTaxonomy(state) {\n return state.taxonomy;\n },\n getTermsListByName(state) {\n return state.termsListByName;\n },\n getTermsListById(state) {\n return state.termsListById;\n },\n getTaxonomyName(state) {\n return state.taxonomyName;\n },\n getIsFetchingTerms(state) {\n return state.isFetchingTerms;\n },\n getChangeAction(state) {\n return state.changeAction;\n },\n getCalendarIsVisible(state) {\n return state.calendarIsVisible;\n },\n getHasValidData(state) {\n return state.hasValidData;\n },\n getExtraData(state) {\n return state.extraData;\n },\n getExtraDataByName(state, name) {\n return state.extraData[name] || null;\n }\n }\n });\n\n register(store);\n\n return store;\n}\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","module.exports = publishpressFutureQuickEditConfig;","module.exports = window;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","import { FutureActionPanelQuickEdit } from './components';\nimport { createStore } from './data';\nimport { getActionSettingsFromColumnData } from './utils';\nimport { createRoot } from '@wordpress/element';\nimport { select, dispatch } from '@wordpress/data';\nimport { inlineEditPost } from \"&window\";\nimport {\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n timeFormat,\n startOfWeek,\n strings,\n taxonomyName,\n nonce,\n statusesSelectOptions\n} from \"&config.quick-edit\";\n\nconst storeName = 'publishpress-future/future-action-quick-edit';\nconst delayToUnmountAfterSaving = 1000;\n\n// We create a copy of the WP inline edit post function\nconst wpInlineEdit = inlineEditPost.edit;\nconst wpInlineEditRevert = inlineEditPost.revert;\n\nconst getPostIdFromButton = (id) => {\n // If id is a string or a number, return it directly\n if (typeof id === 'string' || typeof id === 'number') {\n return id;\n }\n\n // Otherwise, assume it's an HTML element and extract the post ID\n const trElement = id.closest('tr');\n const trId = trElement.id;\n const postId = trId.split('-')[1];\n\n return postId;\n}\n\n/**\n * We override the function with our own code so we can detect when\n * the inline edit row is displayed to recreate the React component.\n */\ninlineEditPost.edit = function (button, id) {\n // Call the original WP edit function.\n wpInlineEdit.apply(this, arguments);\n\n const postId = getPostIdFromButton(button);\n const data = getActionSettingsFromColumnData(postId);\n\n if (!data) {\n return;\n }\n\n const enabled = data.enabled;\n const action = data.action;\n const date = data.date;\n const taxonomy = data.taxonomy;\n const newStatus = data.newStatus;\n\n let terms = data.terms;\n\n if (typeof terms === 'string'){\n terms = terms.split(',');\n }\n\n // if store exists, update the state. Otherwise, create it.\n if (select(storeName)) {\n dispatch(storeName).setEnabled(enabled);\n dispatch(storeName).setAction(action);\n dispatch(storeName).setDate(date);\n dispatch(storeName).setTaxonomy(taxonomy);\n dispatch(storeName).setTerms(terms);\n dispatch(storeName).setNewStatus(newStatus);\n } else {\n createStore({\n name: storeName,\n defaultState: {\n autoEnable: enabled,\n action: action,\n date: date,\n taxonomy: taxonomy,\n terms: terms,\n newStatus: newStatus,\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-quick-edit\");\n if (!container) {\n return;\n }\n const root = createRoot(container);\n\n const saveButton = document.querySelector('.inline-edit-save .save');\n if (saveButton) {\n saveButton.onclick = function() {\n setTimeout(() => {\n root.unmount();\n }, delayToUnmountAfterSaving);\n };\n }\n\n const component = (\n \n );\n\n root.render(component);\n\n inlineEditPost.revert = function () {\n root.unmount();\n\n // Call the original WP revert function.\n wpInlineEditRevert.apply(this, arguments);\n };\n};\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","useEffect","decodeEntities","htmlEntities","addQueryArgs","url","data","useSelect","useDispatch","apiFetch","FutureActionPanel","action","select","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","path","then","result","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","offset","globalDefaultExpireOffset","controller","current","abort","signal","method","isValid","message","preview","catch","error","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","SettingsFieldset","legend","SettingsTable","bodyChildren","PostTypesSettingsPanels","panels","postTypeSettings","valign","htmlFor","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","onClick","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","createStore","defaultState","getCurrentTimeAsTimestamp","extraData","createReduxStore","reducer","state","isNumber","getTime","normalizeUnixTimeToSeconds","formatUnixTimeToTimestamp","actions","setExtraData","setExtraDataByName","selectors","getExtraDataByName","register","getCurrentTimeInSeconds","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNaN","module","exports","publishpressFutureQuickEditConfig","window","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","wpInlineEdit","inlineEditPost","edit","wpInlineEditRevert","revert","button","apply","this","arguments","closest","getPostIdFromButton","dispatch","container","getElementById","root","createRoot","saveButton","onclick","setTimeout","unmount","component","render"],"sourceRoot":""}
+{"version":3,"file":"quick-edit.js","mappings":"wFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,+FCPD,UACA,UAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,UAASJ,EAAMK,UAAW,GADZ,GACrCA,EADqC,KAC5BC,EAD4B,KAoB5C,OAbIH,EAFAH,EAAMO,qBAEQ,yBAAGC,UAAU,cAAcC,wBAAyB,CAAEC,OAAQV,EAAMG,eAEpE,yBAAGK,UAAU,eAAeR,EAAMG,aAYhD,oBAAC,EAAAQ,SAAD,KACI,oBAAC,kBAAD,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AAcA,EAAAA,aACdiK,MAAOA,EAAAA,MACPpH,sBAAuBA,EAAAA,wBAI/B+a,EAAKM,OAAOD,GAEZhB,EAAAA,eAAeG,OAAS,WACpBQ,EAAKI,UAGLb,EAAmBrC,MAAMvE,KAAM+G,UAClC,CApCA,CAvCA,CA4EJ,C","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateOffsetPreview.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/data.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css","webpack://post-expirator/./node_modules/css-loader/dist/runtime/api.js","webpack://post-expirator/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://post-expirator/./node_modules/react-dom/client.js","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css?541a","webpack://post-expirator/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://post-expirator/external var \"ReactDOM\"","webpack://post-expirator/external var \"publishpressFutureQuickEditConfig\"","webpack://post-expirator/external var \"window\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/webpack/runtime/compat get default export","webpack://post-expirator/webpack/runtime/define property getters","webpack://post-expirator/webpack/runtime/hasOwnProperty shorthand","webpack://post-expirator/webpack/runtime/make namespace object","webpack://post-expirator/webpack/runtime/nonce","webpack://post-expirator/./assets/jsx/quick-edit.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\nexport { DateOffsetPreview } from \"./DateOffsetPreview\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '@wordpress/data';\n\nexport const createStore = (props) => {\n if (props.defaultState.terms && typeof props.defaultState.terms === 'string') {\n props.defaultState.terms = props.defaultState.terms.split(',').map(term => parseInt(term));\n }\n\n let defaultState = {\n action: props.defaultState.action,\n date: props.defaultState.date ? props.defaultState.date : getCurrentTimeAsTimestamp(),\n enabled: props.defaultState.autoEnable,\n terms: props.defaultState.terms ? props.defaultState.terms : [],\n taxonomy: props.defaultState.taxonomy ? props.defaultState.taxonomy : null,\n newStatus: props.defaultState.newStatus ? props.defaultState.newStatus : 'draft',\n termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\n hasValidData: true,\n extraData: props.defaultState.extraData ? props.defaultState.extraData : {},\n }\n\n const store = createReduxStore(props.name, {\n reducer(state = defaultState, action) {\n switch (action.type) {\n case 'SET_ACTION':\n return {\n ...state,\n action: action.action,\n };\n case 'SET_NEW_STATUS':\n return {\n ...state,\n newStatus: action.newStatus,\n };\n case 'SET_DATE':\n // Make sure the date is a number, if it is a string with only numbers\n if (typeof action.date !== 'number' && isNumber(action.date)) {\n action.date = parseInt(action.date);\n }\n\n // If string, convert to unix time\n if (typeof action.date === 'string') {\n action.date = new Date(action.date).getTime();\n }\n\n // Make sure the time is always in seconds\n action.date = normalizeUnixTimeToSeconds(action.date);\n\n // Convert to formated string format, considering it is in the site's timezone\n action.date = formatUnixTimeToTimestamp(action.date);\n\n return {\n ...state,\n date: action.date,\n }\n case 'SET_ENABLED':\n return {\n ...state,\n enabled: action.enabled,\n }\n case 'SET_TERMS':\n return {\n ...state,\n terms: action.terms,\n }\n case 'SET_TAXONOMY':\n return {\n ...state,\n taxonomy: action.taxonomy,\n }\n case 'SET_TERMS_LIST_BY_NAME':\n return {\n ...state,\n termsListByName: action.termsListByName,\n }\n case 'SET_TERMS_LIST_BY_ID':\n return {\n ...state,\n termsListById: action.termsListById,\n }\n case 'SET_TAXONOMY_NAME':\n return {\n ...state,\n taxonomyName: action.taxonomyName,\n }\n case 'SET_CHANGE_ACTION':\n return {\n ...state,\n changeAction: action.changeAction,\n }\n case 'SET_CALENDAR_IS_VISIBLE':\n return {\n ...state,\n calendarIsVisible: action.calendarIsVisible,\n }\n case 'SET_HAS_VALID_DATA':\n return {\n ...state,\n hasValidData: action.hasValidData,\n }\n\n case 'SET_EXTRA_DATA':\n return {\n ...state,\n extraData: {\n ...action.extraData,\n }\n }\n\n case 'SET_EXTRA_DATA_BY_NAME':\n const extraData = {\n ...state.extraData,\n [action.name]: action.value\n };\n\n return {\n ...state,\n extraData: {...extraData}\n }\n }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\n };\n },\n setNewStatus(newStatus) {\n return {\n type: 'SET_NEW_STATUS',\n newStatus: newStatus\n };\n },\n setDate(date) {\n return {\n type: 'SET_DATE',\n date: date\n };\n },\n setEnabled(enabled) {\n return {\n type: 'SET_ENABLED',\n enabled: enabled\n };\n },\n setTerms(terms) {\n return {\n type: 'SET_TERMS',\n terms: terms\n };\n },\n setTaxonomy(taxonomy) {\n return {\n type: 'SET_TAXONOMY',\n taxonomy: taxonomy\n };\n },\n setTermsListByName(termsListByName) {\n return {\n type: 'SET_TERMS_LIST_BY_NAME',\n termsListByName: termsListByName\n };\n },\n setTermsListById(termsListById) {\n return {\n type: 'SET_TERMS_LIST_BY_ID',\n termsListById: termsListById\n };\n },\n setTaxonomyName(taxonomyName) {\n return {\n type: 'SET_TAXONOMY_NAME',\n taxonomyName: taxonomyName\n };\n },\n setIsFetchingTerms(isFetchingTerms) {\n return {\n type: 'SET_IS_FETCHING_TERMS',\n isFetchingTerms: isFetchingTerms\n }\n },\n setChangeAction(changeAction) {\n return {\n type: 'SET_CHANGE_ACTION',\n changeAction: changeAction\n }\n },\n setCalendarIsVisible(calendarIsVisible) {\n return {\n type: 'SET_CALENDAR_IS_VISIBLE',\n calendarIsVisible: calendarIsVisible\n }\n },\n setHasValidData(hasValidData) {\n return {\n type: 'SET_HAS_VALID_DATA',\n hasValidData: hasValidData\n }\n },\n setExtraData(extraData) {\n return {\n type: 'SET_EXTRA_DATA',\n extraData: extraData\n }\n },\n setExtraDataByName(name, value) {\n return {\n type: 'SET_EXTRA_DATA_BY_NAME',\n name: name,\n value: value\n }\n }\n },\n selectors: {\n getAction(state) {\n return state.action;\n },\n getNewStatus(state) {\n return state.newStatus;\n },\n getDate(state) {\n return state.date;\n },\n getEnabled(state) {\n return state.enabled;\n },\n getTerms(state) {\n return state.terms;\n },\n getTaxonomy(state) {\n return state.taxonomy;\n },\n getTermsListByName(state) {\n return state.termsListByName;\n },\n getTermsListById(state) {\n return state.termsListById;\n },\n getTaxonomyName(state) {\n return state.taxonomyName;\n },\n getIsFetchingTerms(state) {\n return state.isFetchingTerms;\n },\n getChangeAction(state) {\n return state.changeAction;\n },\n getCalendarIsVisible(state) {\n return state.calendarIsVisible;\n },\n getHasValidData(state) {\n return state.hasValidData;\n },\n getExtraData(state) {\n return state.extraData;\n },\n getExtraDataByName(state, name) {\n return state.extraData[name] || null;\n }\n }\n });\n\n register(store);\n\n return store;\n}\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./assets/jsx/components/css/dateOffsetPreview.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB\",\"sourcesContent\":[\".publishpress-future-date-preview .publishpress-future-date-preview-value {\\n font-family: monospace;\\n background-color: #e7e7e7;\\n padding: 2px 4px;\\n}\\n\\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\\n display: block;\\n}\\n\\n.publishpress-future-date-preview.compact {\\n margin-bottom: 8px;\\n}\\n\\n.publishpress-future-date-preview.compact h4 {\\n font-size: 11px;\\n font-weight: 500;\\n line-height: 1.4;\\n text-transform: uppercase;\\n display: inline-block;\\n margin-bottom: calc(8px);\\n padding: 0px;\\n flex-shrink: 0;\\n margin-right: 12px;\\n max-width: 75%;\\n margin-top: 0;\\n}\\n\\n.publishpress-future-notice.publishpress-future-notice-error {\\n color: #dc3232;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","module.exports = ReactDOM;","module.exports = publishpressFutureQuickEditConfig;","module.exports = window;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","import { FutureActionPanelQuickEdit } from './components';\nimport { createStore } from './data';\nimport { getActionSettingsFromColumnData } from './utils';\nimport { createRoot } from 'react-dom/client';\nimport { select, dispatch } from '@wordpress/data';\nimport { inlineEditPost } from \"&window\";\nimport {\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n timeFormat,\n startOfWeek,\n strings,\n taxonomyName,\n nonce,\n statusesSelectOptions,\n hideCalendarByDefault\n} from \"&config.quick-edit\";\n\nconst storeName = 'publishpress-future/future-action-quick-edit';\nconst delayToUnmountAfterSaving = 1000;\n\n// We create a copy of the WP inline edit post function\nconst wpInlineEdit = inlineEditPost.edit;\nconst wpInlineEditRevert = inlineEditPost.revert;\n\nconst getPostIdFromButton = (id) => {\n // If id is a string or a number, return it directly\n if (typeof id === 'string' || typeof id === 'number') {\n return id;\n }\n\n // Otherwise, assume it's an HTML element and extract the post ID\n const trElement = id.closest('tr');\n const trId = trElement.id;\n const postId = trId.split('-')[1];\n\n return postId;\n}\n\n/**\n * We override the function with our own code so we can detect when\n * the inline edit row is displayed to recreate the React component.\n */\ninlineEditPost.edit = function (button, id) {\n // Call the original WP edit function.\n wpInlineEdit.apply(this, arguments);\n\n const postId = getPostIdFromButton(button);\n const data = getActionSettingsFromColumnData(postId);\n\n if (!data) {\n return;\n }\n\n const enabled = data.enabled;\n const action = data.action;\n const date = data.date;\n const taxonomy = data.taxonomy;\n const newStatus = data.newStatus;\n\n let terms = data.terms;\n\n if (typeof terms === 'string'){\n terms = terms.split(',');\n }\n\n // if store exists, update the state. Otherwise, create it.\n if (select(storeName)) {\n dispatch(storeName).setEnabled(enabled);\n dispatch(storeName).setAction(action);\n dispatch(storeName).setDate(date);\n dispatch(storeName).setTaxonomy(taxonomy);\n dispatch(storeName).setTerms(terms);\n dispatch(storeName).setNewStatus(newStatus);\n } else {\n createStore({\n name: storeName,\n defaultState: {\n autoEnable: enabled,\n action: action,\n date: date,\n taxonomy: taxonomy,\n terms: terms,\n newStatus: newStatus,\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-quick-edit\");\n if (!container) {\n return;\n }\n const root = createRoot(container);\n\n const saveButton = document.querySelector('.inline-edit-save .save');\n if (saveButton) {\n saveButton.onclick = function() {\n setTimeout(() => {\n root.unmount();\n }, delayToUnmountAfterSaving);\n };\n }\n\n const component = (\n \n );\n\n root.render(component);\n\n inlineEditPost.revert = function () {\n root.unmount();\n\n // Call the original WP revert function.\n wpInlineEditRevert.apply(this, arguments);\n };\n};\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","require","DateOffsetPreview","offset","labelDatePreview","labelOffsetPreview","setValidationErrorCallback","setHasPendingValidationCallback","setHasValidDataCallback","compactView","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","useEffect","controller","current","abort","signal","apiFetch","path","addQueryArgs","method","data","then","result","isValid","message","preview","catch","error","validateDateOffset","compactClass","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","decodeEntities","htmlEntities","url","useSelect","useDispatch","FutureActionPanel","select","action","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","hideCalendarByDefault","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","globalDefaultExpireOffset","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","fieldSetClassNames","isVisible","SettingsTable","bodyChildren","PostTypesSettingsPanels","currentTab","setCurrentTab","panels","postTypeSettings","legend","onSelectTab","event","preventDefault","hash","tabs","onClick","valign","htmlFor","SettingsFieldset","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","createStore","defaultState","getCurrentTimeAsTimestamp","extraData","createReduxStore","reducer","state","isNumber","getTime","normalizeUnixTimeToSeconds","formatUnixTimeToTimestamp","actions","setExtraData","setExtraDataByName","selectors","getExtraDataByName","register","getCurrentTimeInSeconds","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNaN","___CSS_LOADER_EXPORT___","module","exports","cssWithMappingToString","list","this","content","needLayer","concat","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","sourceMapping","m","createRoot","hydrateRoot","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","stylesInDOM","getIndexByIdentifier","identifier","modulesToDom","idCountMap","identifiers","base","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","style","styleTarget","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","createElement","attributes","styleElement","setAttribute","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","ReactDOM","publishpressFutureQuickEditConfig","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","prototype","hasOwnProperty","call","r","Symbol","toStringTag","nc","wpInlineEdit","inlineEditPost","edit","wpInlineEditRevert","revert","button","arguments","closest","getPostIdFromButton","dispatch","container","getElementById","root","saveButton","onclick","setTimeout","unmount","component","render"],"sourceRoot":""}
\ No newline at end of file
diff --git a/assets/js/settings-general.js b/assets/js/settings-general.js
new file mode 100644
index 000000000..27c914ac9
--- /dev/null
+++ b/assets/js/settings-general.js
@@ -0,0 +1,2 @@
+(()=>{"use strict";var e={5442:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonsPanel=function(e){return React.createElement("div",null,e.children)}},4311:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CheckboxControl=void 0;var a=n(1386),r=n(2214);t.CheckboxControl=function(e){var t,n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,a.useState)(e.checked||!1),2),o=n[0],i=n[1];return t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description),React.createElement(a.Fragment,null,React.createElement(r.CheckboxControl,{label:e.label,name:e.name,id:e.name,className:e.className,checked:o||!1,onChange:function(t){i(t),e.onChange&&e.onChange(t)}}),t)}},5470:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateOffsetPreview=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(1386),o=n(4011),i=n(3244);n(9922);var l=t.DateOffsetPreview=function(e){var t=e.offset,n=e.label,l=e.labelDatePreview,c=e.labelOffsetPreview,s=e.setValidationErrorCallback,u=e.setHasPendingValidationCallback,d=e.setHasValidDataCallback,m=e.compactView,p=void 0!==m&&m,f=(0,r.useState)(""),y=a(f,2),v=y[0],b=y[1],g=(0,r.useState)(),h=a(g,2),E=h[0],x=h[1],S=(0,r.useRef)(new AbortController);(0,r.useEffect)((function(){!function(){if(t){var e=S.current;e&&e.abort(),S.current=new AbortController;var n=S.current.signal;u(!0),(0,i.apiFetch)({path:(0,o.addQueryArgs)("publishpress-future/v1/settings/validate-expire-offset"),method:"POST",data:{offset:t},signal:n}).then((function(e){u(!1),d(e.isValid),s(e.message),e.isValid?(b(e.preview),x(e.currentTime)):b("")})).catch((function(e){"AbortError"!==e.name&&(u(!1),d(!1),s(e.message),b(""))}))}}()}),[t]);var _=p?" compact":"";return React.createElement(r.Fragment,null,t&&React.createElement("div",{className:"publishpress-future-date-preview"+_},React.createElement("h4",null,n),React.createElement("div",{className:"publishpress-future-date-preview-body"},React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},l,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},E)),React.createElement("div",null,React.createElement("span",{className:"publishpress-future-date-preview-label"},c,": "),React.createElement("span",{className:"publishpress-future-date-preview-value"},v)))))};t.default=l},4620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimePicker=void 0;var a=n(7039),r=n(2214);t.DateTimePicker=function(e){var t=e.currentDate,n=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof t&&(t=(0,a.normalizeUnixTimeToMilliseconds)(t)),React.createElement(r.DateTimePicker,{currentDate:t,onChange:n,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})}},8418:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanel=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(8409),i=n(4873),l=n(9986),c=n(2214),s=n(1442),u=n(6625),d=wp.components,m=d.PanelRow,p=d.CheckboxControl,f=d.SelectControl,y=d.FormTokenField,v=d.Spinner,b=d.BaseControl,g=wp.element,h=g.Fragment,E=g.useEffect,x=g.useState,S=wp.htmlEntities.decodeEntities,_=wp.url.addQueryArgs,A=wp.data,C=A.useSelect,w=A.useDispatch,R=wp.apiFetch;t.FutureActionPanel=function(e){var t=C((function(t){return{action:t(e.storeName).getAction(),date:t(e.storeName).getDate(),enabled:t(e.storeName).getEnabled(),terms:t(e.storeName).getTerms(),taxonomy:t(e.storeName).getTaxonomy(),taxonomyName:t(e.storeName).getTaxonomyName(),termsListByName:t(e.storeName).getTermsListByName(),termsListById:t(e.storeName).getTermsListById(),isFetchingTerms:t(e.storeName).getIsFetchingTerms(),calendarIsVisible:t(e.storeName).getCalendarIsVisible(),hasValidData:t(e.storeName).getHasValidData(),newStatus:t(e.storeName).getNewStatus()}})),n=t.action,d=t.date,g=t.enabled,A=t.terms,N=t.taxonomy,T=t.taxonomyName,P=t.termsListByName,O=t.termsListById,k=t.isFetchingTerms,F=t.calendarIsVisible,D=t.hasValidData,I=t.newStatus,j=x(""),B=r(j,2),M=B[0],V=B[1],L=w(e.storeName),H=L.setAction,Q=L.setDate,U=L.setEnabled,W=L.setTerms,q=L.setTaxonomy,z=L.setTermsListByName,Y=L.setTermsListById,G=L.setTaxonomyName,J=L.setIsFetchingTerms,Z=L.setCalendarIsVisible,K=L.setHasValidData,X=L.setNewStatus,$=function(e){P[e]={id:e,count:0,description:"",link:"",name:e,slug:e,taxonomy:N},O[e]=e,z(P),Y(O),W([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&O&&(re=(0,o.compact)(function(e){return"object"!==(void 0===e?"undefined":a(e))||null===e?{}:e.map((function(e){return O[e]}))}(A)),"string"==typeof re&&(re=[]));var oe=[];"object"===(void 0===P?"undefined":a(P))&&null!==P&&(oe=Object.keys(P));var ie,le=F?"future-action-panel":"future-action-panel hidden-calendar",ce=F?"future-action-panel-content":"future-action-panel-content hidden-calendar",se=F?"future-action-date-panel":"future-action-date-panel hidden-calendar";ie="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var ue=e.actionsSelectOptions;e.taxonomy||(ue=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var de=function(e,t,n){var a=e.split("{"),o=[];o.push(a.shift());var i=!0,l=!1,c=void 0;try{for(var s,u=a[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var d=s.value.split("}"),m=r(d,2),p=m[0],f=m[1];o.push(React.createElement("a",{href:t,target:"_blank",key:t},p)),o.push(f)}}catch(e){l=!0,c=e}finally{try{!i&&u.return&&u.return()}finally{if(l)throw c}}return o}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),me=String(n).includes("category")&&"category-remove-all"!==n,pe=T;switch(n){case"category":pe=e.strings.newTerms.replace("%s",T);break;case"category-remove":pe=e.strings.removeTerms.replace("%s",T);break;case"category-add":pe=e.strings.addTerms.replace("%s",T)}return E((function(){if(!g)return K(!0),void V("");K(function(){var t=!0;if(!g)return V(""),!0;n||(V(e.strings.errorActionRequired),t=!1),d||(V(e.strings.errorDateRequired),t=!1),d&&new Date(d){Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelAfterActionField=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBlockEditor=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057);t.FutureActionPanelBlockEditor=function(e){var t=wp.editPost.PluginDocumentSettingPanel,n=wp.data,o=n.useDispatch,i=n.select,l=o("core/editor").editPost,c=i("core/editor").getEditedPostAttribute("publishpress_future_action"),s=o("core/editor"),u=s.lockPostSaving,d=s.unlockPostSaving;return React.createElement(t,{name:"publishpress-future-action-panel",title:e.strings.panelTitle,initialOpen:e.postTypeDefaultConfig.autoEnable,className:"post-expirator-panel"},React.createElement("div",{id:"publishpress-future-block-editor"},React.createElement(r.FutureActionPanel,{context:"block-editor",postType:e.postType,isCleanNewPost:e.isCleanNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:c.enabled,calendarIsVisible:!0,action:c.action,newStatus:c.newStatus,date:c.date,terms:c.terms,taxonomy:c.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(t,n){var r=i(e.storeName),o={enabled:r.getEnabled()};o.enabled&&(o.action=r.getAction(),o.newStatus=r.getNewStatus(),o.date=r.getDate(),o.terms=r.getTerms(),o.taxonomy=r.getTaxonomy(),o.extraData=r.getExtraData()),function(e){var t={publishpress_future_action:{}},n=!0,r=!1,o=void 0;try{for(var i,c=Object.entries(e)[Symbol.iterator]();!(n=(i=c.next()).done);n=!0){var s=i.value,u=a(s,2),d=u[0],m=u[1];t.publishpress_future_action[d]=m}}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}l(t)}(o)},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){d("future-action")},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){u("future-action")}})))}},2094:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelBulkEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2057),o=n(8409);t.FutureActionPanelBulkEdit=function(e){var t=wp.data,n=t.useSelect,i=t.useDispatch,l=t.select,c=wp.element.useEffect,s=n((function(t){return t(e.storeName).getDate()}),[]),u=n((function(t){return t(e.storeName).getEnabled()}),[]),d=n((function(t){return t(e.storeName).getAction()}),[]),m=n((function(t){return t(e.storeName).getNewStatus()}),[]),p=n((function(t){return t(e.storeName).getTerms()}),[]),f=n((function(t){return t(e.storeName).getTaxonomy()}),[]),y=n((function(t){return t(e.storeName).getChangeAction()}),[]),v=n((function(t){return t(e.storeName).getHasValidData()}),[]),b=i(e.storeName).setChangeAction,g=p;"object"===(void 0===p?"undefined":a(p))&&(g=p.join(","));var h=[{value:"no-change",label:e.strings.noChange},{value:"change-add",label:e.strings.changeAdd},{value:"add-only",label:e.strings.addOnly},{value:"change-only",label:e.strings.changeOnly},{value:"remove-only",label:e.strings.removeOnly}];return c((function(){v||"no-change"===y?jQuery("#bulk_edit").prop("disabled",!1):jQuery("#bulk_edit").prop("disabled",!0)}),[v,y]),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.SelectControl,{label:e.strings.futureActionUpdate,name:"future_action_bulk_change_action",value:y,options:h,onChange:function(e){b(e)}}),["change-add","add-only","change-only"].includes(y)&&React.createElement(r.FutureActionPanel,{context:"bulk-edit",autoEnableAndHideCheckbox:!0,postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:!0,calendarIsVisible:!1,action:d,newStatus:m,date:s,terms:p,taxonomy:f,taxonomyName:e.taxonomyName,onChangeData:function(t,n){(0,o.getElementByName)("future_action_bulk_enabled").value=l(e.storeName).getEnabled()?1:0,(0,o.getElementByName)("future_action_bulk_action").value=l(e.storeName).getAction(),(0,o.getElementByName)("future_action_bulk_new_status").value=l(e.storeName).getNewStatus(),(0,o.getElementByName)("future_action_bulk_date").value=l(e.storeName).getDate(),(0,o.getElementByName)("future_action_bulk_terms").value=l(e.storeName).getTerms().join(","),(0,o.getElementByName)("future_action_bulk_taxonomy").value=l(e.storeName).getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,hideCalendarByDefault:e.hideCalendarByDefault,strings:e.strings}),React.createElement("input",{type:"hidden",name:"future_action_bulk_enabled",value:u?1:0}),React.createElement("input",{type:"hidden",name:"future_action_bulk_action",value:d}),React.createElement("input",{type:"hidden",name:"future_action_bulk_new_status",value:m}),React.createElement("input",{type:"hidden",name:"future_action_bulk_date",value:s}),React.createElement("input",{type:"hidden",name:"future_action_bulk_terms",value:g}),React.createElement("input",{type:"hidden",name:"future_action_bulk_taxonomy",value:f}),React.createElement("input",{type:"hidden",name:"future_action_bulk_view",value:"bulk-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},3571:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelClassicEditor=void 0;var a=n(2057),r=n(7562);n(1386),t.FutureActionPanelClassicEditor=function(e){(new Date).getTimezoneOffset();var t=function(e){return document.getElementsByName(e)[0]},n=function(e){var n=t(e);return n?n.value:""},o={enabled:"1"===n("future_action_enabled"),action:n("future_action_action"),newStatus:n("future_action_new_status"),date:n("future_action_date"),terms:function(e){var n=t("future_action_terms");if(!n)return[];var a=n.value.split(",");return 1===a.length&&""===a[0]&&(a=[]),a.map((function(e){return parseInt(e)}))}(),taxonomy:n("future_action_taxonomy")};return React.createElement("div",{className:"post-expirator-panel"},React.createElement(a.FutureActionPanel,{context:"classic-editor",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:o.enabled,calendarIsVisible:!0,action:o.action,newStatus:o.newStatus,date:o.date,terms:o.terms,taxonomy:o.taxonomy,taxonomyName:e.taxonomyName,onChangeData:function(n,a){var o=(0,r.select)(e.storeName);t("future_action_enabled").value=o.getEnabled()?1:0,t("future_action_action").value=o.getAction(),t("future_action_new_status").value=o.getNewStatus(),t("future_action_date").value=o.getDate(),t("future_action_terms").value=o.getTerms().join(","),t("future_action_taxonomy").value=o.getTaxonomy()},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery("#publish").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery("#publish").prop("disabled",!0)}}))}},5437:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelQuickEdit=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(2057),o=n(7562);n(1386),t.FutureActionPanelQuickEdit=function(e){var t=(0,o.useSelect)((function(t){return t(e.storeName).getDate()}),[]),n=(0,o.useSelect)((function(t){return t(e.storeName).getEnabled()}),[]),i=(0,o.useSelect)((function(t){return t(e.storeName).getAction()}),[]),l=(0,o.useSelect)((function(t){return t(e.storeName).getTerms()}),[]),c=(0,o.useSelect)((function(t){return t(e.storeName).getTaxonomy()}),[]),s=((0,o.useSelect)((function(t){return t(e.storeName).getHasValidData()}),[]),(0,o.useSelect)((function(t){return t(e.storeName).getNewStatus()}),[])),u=l;return"object"===(void 0===l?"undefined":a(l))&&(u=l.join(",")),React.createElement("div",{className:"post-expirator-panel"},React.createElement(r.FutureActionPanel,{context:"quick-edit",postType:e.postType,isCleanNewPost:e.isNewPost,actionsSelectOptions:e.actionsSelectOptions,statusesSelectOptions:e.statusesSelectOptions,enabled:n,calendarIsVisible:!1,action:i,newStatus:s,date:t,terms:l,taxonomy:c,taxonomyName:e.taxonomyName,onChangeData:function(e,t){},is12Hour:e.is12Hour,timeFormat:e.timeFormat,startOfWeek:e.startOfWeek,storeName:e.storeName,strings:e.strings,onDataIsValid:function(){jQuery(".button-primary.save").prop("disabled",!1)},hideCalendarByDefault:e.hideCalendarByDefault,onDataIsInvalid:function(){jQuery(".button-primary.save").prop("disabled",!0)}}),React.createElement("input",{type:"hidden",name:"future_action_enabled",value:n?1:0}),React.createElement("input",{type:"hidden",name:"future_action_action",value:i||""}),React.createElement("input",{type:"hidden",name:"future_action_new_status",value:s||""}),React.createElement("input",{type:"hidden",name:"future_action_date",value:t||""}),React.createElement("input",{type:"hidden",name:"future_action_terms",value:u||""}),React.createElement("input",{type:"hidden",name:"future_action_taxonomy",value:c||""}),React.createElement("input",{type:"hidden",name:"future_action_view",value:"quick-edit"}),React.createElement("input",{type:"hidden",name:"_future_action_nonce",value:e.nonce}))}},6625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FutureActionPanelTop=void 0;var a=Object.assign||function(e){for(var t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.NonceControl=void 0;var a=n(1386);t.NonceControl=function(e){return e.name||(e.name="_wpnonce"),e.referrer||(e.referrer=!0),React.createElement(a.Fragment,null,React.createElement("input",{type:"hidden",name:e.name,id:e.name,value:e.nonce}),e.referrer&&React.createElement("input",{type:"hidden",name:"_wp_http_referer",value:e.referrer}))}},1620:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypeSettingsPanel=void 0;var a,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n(2057),i=n(1386),l=n(4011),c=n(8566),s=n(3244),u=(a=n(5470))&&a.__esModule?a:{default:a},d=wp.components.PanelRow;t.PostTypeSettingsPanel=function(e){var t=e.expireTypeList[e.postType],n=(0,i.useState)(e.settings.taxonomy),a=r(n,2),m=a[0],p=a[1],f=(0,i.useState)([]),y=r(f,2),v=y[0],b=y[1],g=(0,i.useState)(!1),h=r(g,2),E=h[0],x=h[1],S=(0,i.useState)([]),_=r(S,2),A=_[0],C=_[1],w=(0,i.useState)(e.settings.howToExpire),R=r(w,2),N=R[0],T=R[1],P=(0,i.useState)(e.settings.active),O=r(P,2),k=O[0],F=O[1],D=(0,i.useState)(e.settings.defaultExpireOffset),I=r(D,2),j=I[0],B=I[1],M=(0,i.useState)(e.settings.emailNotification),V=r(M,2),L=V[0],H=V[1],Q=(0,i.useState)(e.settings.autoEnabled),U=r(Q,2),W=U[0],q=U[1],z=(0,i.useState)(!0),Y=r(z,2),G=Y[0],J=Y[1],Z=(0,i.useState)(""),K=r(Z,2),X=K[0],$=K[1],ee=(0,i.useState)(""),te=r(ee,2),ne=te[0],ae=te[1],re=(0,i.useState)(t),oe=r(re,2),ie=oe[0],le=oe[1],ce=(0,i.useState)(e.settings.newStatus),se=r(ce,2),ue=se[0],de=se[1],me=(0,i.useState)(!1),pe=r(me,2),fe=pe[0],ye=pe[1],ve=j||e.settings.globalDefaultExpireOffset,be=["category","category-add","category-remove","category-remove-all"];(0,i.useEffect)((function(){var t;0===e.taxonomiesList.length&&(t=ie.filter((function(e){return-1===be.indexOf(e.value)})),le(t))}),[]),(0,i.useEffect)((function(){m&&e.taxonomiesList&&(x(!0),(0,s.apiFetch)({path:(0,l.addQueryArgs)("publishpress-future/v1/terms/"+m)}).then((function(t){var n=[],a=null,r=void 0;t.terms.forEach((function(t){r={value:t.id,label:t.name},n.push(r),m===e.settings.taxonomy&&e.settings.terms.includes(t.id)&&(null===a&&(a=[]),a.push(r.label))})),b(n),C(a),x(!1)})),e.taxonomiesList.forEach((function(e){e.value===m&&ae(e.label)})))}),[m]),(0,i.useEffect)((function(){if(ne){var e=[];t.forEach((function(t){var n=t.label;-1!==be.indexOf(t.value)&&(n=n.replace("%s",ne.toLowerCase())),e.push({value:t.value,label:n})})),le(e)}}),[ne]),(0,i.useEffect)((function(){G&&e.onDataIsValid&&e.onDataIsValid(e.postType),!G&&e.onDataIsInvalid&&e.onDataIsInvalid(e.postType)}),[G]),(0,i.useEffect)((function(){fe&&e.onValidationStarted&&e.onValidationStarted(e.postType),!fe&&e.onValidationFinished&&e.onValidationFinished(e.postType)}),[fe]);var ge=v.map((function(e){return e.label})),he=[React.createElement(o.SettingRow,{label:e.text.fieldActive,key:"expirationdate_activemeta-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_activemeta-"+e.postType,checked:k||!1,label:e.text.fieldActiveLabel,onChange:function(e){F(e)}}))];k&&(he.push(React.createElement(o.SettingRow,{label:e.text.fieldAutoEnable,key:"expirationdate_autoenable-"+e.postType},React.createElement(o.CheckboxControl,{name:"expirationdate_autoenable-"+e.postType,checked:W||!1,label:e.text.fieldAutoEnableLabel,onChange:function(e){q(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldTaxonomy,key:"expirationdate_taxonomy-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_taxonomy-"+e.postType,options:e.taxonomiesList,selected:m,noItemFoundMessage:e.text.noItemsfound,description:e.text.fieldTaxonomyDescription,data:e.postType,onChange:function(e){p(e)}}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldHowToExpire,key:"expirationdate_expiretype-"+e.postType},React.createElement(o.SelectControl,{name:"expirationdate_expiretype-"+e.postType,className:"pe-howtoexpire",options:ie,description:e.text.fieldHowToExpireDescription,selected:N,onChange:function(e){T(e)}}),"change-status"===N&&React.createElement(o.SelectControl,{name:"expirationdate_newstatus-"+e.postType,options:e.statusesList,selected:ue,onChange:de}),e.taxonomiesList.length>0&&["category","category-add","category-remove"].indexOf(N)>-1&&React.createElement(o.TokensControl,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:ge,value:A,isLoading:E,onChange:function(e){C(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(o.TextControl,{name:"expired-custom-date-"+e.postType,value:j,loading:fe,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){B(e)}}),React.createElement(u.default,{offset:ve,label:e.text.datePreview,labelDatePreview:e.text.datePreviewCurrent,labelOffsetPreview:e.text.datePreviewComputed,setValidationErrorCallback:$,setHasPendingValidationCallback:ye,setHasValidDataCallback:J}))),he.push(React.createElement(o.SettingRow,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(o.TextControl,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){H(e)}})))),he=(0,c.applyFilters)("expirationdate_settings_posttype",he,e,k,i.useState);var Ee=e.isVisible?"pe-settings-fieldset":"pe-settings-fieldset hidden";return React.createElement("div",{className:Ee},React.createElement(o.SettingsTable,{bodyChildren:he}),!G&&React.createElement(d,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",X)))}},8138:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypesSettingsPanels=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057),o=n(1386);t.PostTypesSettingsPanels=function(e){var t=(0,o.useState)(Object.keys(e.settings)[0]),n=a(t,2),i=n[0],l=n[1],c=[],s=!0,u=!1,d=void 0;try{for(var m,p=Object.entries(e.settings)[Symbol.iterator]();!(s=(m=p.next()).done);s=!0){var f=m.value,y=a(f,2),v=y[0],b=y[1];c.push(React.createElement(r.PostTypeSettingsPanel,{legend:b.label,text:e.text,postType:v,settings:b,expireTypeList:e.expireTypeList,taxonomiesList:e.taxonomiesList[v],statusesList:e.statusesList[v],key:v+"-panel",onDataIsValid:e.onDataIsValid,onDataIsInvalid:e.onDataIsInvalid,onValidationStarted:e.onValidationStarted,onValidationFinished:e.onValidationFinished,isVisible:i===v}))}}catch(e){u=!0,d=e}finally{try{!s&&p.return&&p.return()}finally{if(u)throw d}}var g=function(e){e.preventDefault(),l(e.target.hash.replace("#","").replace("-panel",""))},h=[],E=!1,x=!0,S=!1,_=void 0;try{for(var A,C=Object.entries(e.settings)[Symbol.iterator]();!(x=(A=C.next()).done);x=!0){var w=A.value,R=a(w,2),N=R[0],T=R[1];E=i===N,h.push(React.createElement("a",{href:"#"+N+"-panel",className:"nav-tab "+(E?"nav-tab-active":""),key:N+"-tab",onClick:g},T.label))}}catch(e){S=!0,_=e}finally{try{!x&&C.return&&C.return()}finally{if(S)throw _}}return React.createElement("div",null,React.createElement("nav",{className:"nav-tab-wrapper"},h),c)}},2858:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectControl=void 0;var a=n(1386),r=n(2214);t.SelectControl=function(e){return React.createElement(a.Fragment,null,0===e.options.length&&React.createElement("div",null,e.noItemFoundMessage),e.options.length>0&&React.createElement(r.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))}},9005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingRow=void 0,n(1386),t.SettingRow=function(e){return React.createElement("tr",{valign:"top"},React.createElement("th",{scope:"row"},React.createElement("label",{htmlFor:""},e.label)),React.createElement("td",null,e.children))}},5786:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFieldset=function(e){return React.createElement("fieldset",{className:e.className},React.createElement("legend",null,e.legend),e.children)}},9892:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsForm=function(e){return React.createElement("form",{method:"post"},e.children)}},5681:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsSection=void 0;var a=n(1386);t.SettingsSection=function(e){return React.createElement(a.Fragment,null,React.createElement("h2",null,e.title),React.createElement("p",null,e.description),e.children)}},6772:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsTable=function(e){return React.createElement("table",{className:"form-table"},React.createElement("tbody",null,e.bodyChildren))}},242:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=function(e){return React.createElement("span",{className:"publishpress-future-spinner"},React.createElement("div",null),React.createElement("div",null),React.createElement("div",null),React.createElement("div",null))}},4438:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubmitButton=function(e){return React.createElement("input",{type:"submit",name:e.name,value:e.text,disabled:e.disabled,className:"button-primary"})}},6301:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextControl=void 0;var a=n(1386),r=n(2214),o=n(2057);t.TextControl=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(a.Fragment,null,React.createElement("div",{className:n},React.createElement(r.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(o.Spinner,null),t))}},3190:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleArrowButton=void 0;var a=n(2214);t.ToggleArrowButton=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",r=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(a.Button,{isSmall:!0,title:o,icon:r,onClick:function(){e.onClick&&e.onClick()},className:e.className})}},4873:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToggleCalendarDatePicker=void 0;var a=n(3190),r=n(4620),o=n(1386);t.ToggleCalendarDatePicker=function(e){var t=e.isExpanded,n=e.strings,i=e.onToggleCalendar,l=e.currentDate,c=e.onChangeDate,s=e.is12Hour,u=e.startOfWeek;return(0,o.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(o.Fragment,null,React.createElement(a.ToggleArrowButton,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:i}),React.createElement(r.DateTimePicker,{currentDate:l,onChange:c,__nextRemoveHelpButton:!0,is12Hour:s,startOfWeek:u}))}},3948:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokensControl=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(1386),o=n(2214);t.TokensControl=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(""),2),n=t[0],i=t[1];(0,r.useEffect)((function(){e.value&&i(e.value.join(","))}),[e.value]);var l=void 0;e.description&&(l=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description));var c=e.value?e.value:[];return React.createElement(r.Fragment,null,React.createElement(o.FormTokenField,{label:e.label,value:c,suggestions:e.options,onChange:function(t){e.onChange&&e.onChange(t),"object"===(void 0===t?"undefined":a(t))?i(t.join(",")):i("")},maxSuggestions:e.maxSuggestions,className:"publishpres-future-token-field",__experimentalExpandOnFocus:e.expandOnFocus,__experimentalAutoSelectFirstMatch:e.autoSelectFirstMatch}),React.createElement("input",{type:"hidden",name:e.name,value:n}),l)}},8225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TrueFalseControl=function(e){var t=wp.element.Fragment,n=function(t){e.onChange&&e.onChange(t.target.value===e.trueValue&&jQuery(t.target).is(":checked"))};return React.createElement(t,null,React.createElement("input",{type:"radio",name:e.name,id:e.name+"-true",value:e.trueValue,defaultChecked:e.selected,onChange:n}),React.createElement("label",{htmlFor:e.name+"-true"},e.trueLabel)," ",React.createElement("input",{type:"radio",name:e.name,defaultChecked:!e.selected,id:e.name+"-false",value:e.falseValue,onChange:n}),React.createElement("label",{htmlFor:e.name+"-false"},e.falseLabel),React.createElement("p",{className:"description"},e.description))}},2057:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var a=n(5442);Object.defineProperty(t,"ButtonsPanel",{enumerable:!0,get:function(){return a.ButtonsPanel}});var r=n(8418);Object.defineProperty(t,"FutureActionPanel",{enumerable:!0,get:function(){return r.FutureActionPanel}});var o=n(2864);Object.defineProperty(t,"FutureActionPanelBlockEditor",{enumerable:!0,get:function(){return o.FutureActionPanelBlockEditor}});var i=n(3571);Object.defineProperty(t,"FutureActionPanelClassicEditor",{enumerable:!0,get:function(){return i.FutureActionPanelClassicEditor}});var l=n(5437);Object.defineProperty(t,"FutureActionPanelQuickEdit",{enumerable:!0,get:function(){return l.FutureActionPanelQuickEdit}});var c=n(2094);Object.defineProperty(t,"FutureActionPanelBulkEdit",{enumerable:!0,get:function(){return c.FutureActionPanelBulkEdit}});var s=n(1620);Object.defineProperty(t,"PostTypeSettingsPanel",{enumerable:!0,get:function(){return s.PostTypeSettingsPanel}});var u=n(8138);Object.defineProperty(t,"PostTypesSettingsPanels",{enumerable:!0,get:function(){return u.PostTypesSettingsPanels}});var d=n(9005);Object.defineProperty(t,"SettingRow",{enumerable:!0,get:function(){return d.SettingRow}});var m=n(5786);Object.defineProperty(t,"SettingsFieldset",{enumerable:!0,get:function(){return m.SettingsFieldset}});var p=n(9892);Object.defineProperty(t,"SettingsForm",{enumerable:!0,get:function(){return p.SettingsForm}});var f=n(5681);Object.defineProperty(t,"SettingsSection",{enumerable:!0,get:function(){return f.SettingsSection}});var y=n(6772);Object.defineProperty(t,"SettingsTable",{enumerable:!0,get:function(){return y.SettingsTable}});var v=n(4438);Object.defineProperty(t,"SubmitButton",{enumerable:!0,get:function(){return v.SubmitButton}});var b=n(4311);Object.defineProperty(t,"CheckboxControl",{enumerable:!0,get:function(){return b.CheckboxControl}});var g=n(2858);Object.defineProperty(t,"SelectControl",{enumerable:!0,get:function(){return g.SelectControl}});var h=n(6301);Object.defineProperty(t,"TextControl",{enumerable:!0,get:function(){return h.TextControl}});var E=n(3948);Object.defineProperty(t,"TokensControl",{enumerable:!0,get:function(){return E.TokensControl}});var x=n(1013);Object.defineProperty(t,"NonceControl",{enumerable:!0,get:function(){return x.NonceControl}});var S=n(8225);Object.defineProperty(t,"TrueFalseControl",{enumerable:!0,get:function(){return S.TrueFalseControl}});var _=n(242);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return _.Spinner}});var A=n(5470);Object.defineProperty(t,"DateOffsetPreview",{enumerable:!0,get:function(){return A.DateOffsetPreview}})},7039:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=t.getCurrentTimeInSeconds=function(){return o((new Date).getTime())},a=(t.getCurrentTimeAsTimestamp=function(){return a(n())},t.formatUnixTimeToTimestamp=function(e){var t=new Date(o(e));return t.getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)}),r=(t.formatTimestampToUnixTime=function(e){var t=new Date(e);return o(t.getTime())},t.timeIsInSeconds=function(e){return parseInt(e).toString().length<=10}),o=t.normalizeUnixTimeToSeconds=function(e){return e=parseInt(e),r()?e:e/1e3};t.normalizeUnixTimeToMilliseconds=function(e){return e=parseInt(e),r()?1e3*e:e}},8409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=(t.compact=function(e){return e?(Array.isArray(e)||"object"!==(void 0===e?"undefined":n(e))||(e=Object.values(e)),e.filter((function(e){return null!=e&&""!==e}))):[]},t.debugLogFactory=function(e){return function(t){for(var n=arguments.length,a=Array(n>1?n-1:0),r=1;r{n.d(t,{A:()=>l});var a=n(1354),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n","",{version:3,sources:["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],names:[],mappings:"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB",sourcesContent:[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],sourceRoot:""}]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var l=0;l0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},1354:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),o="/*# ".concat(r," */");return[t].concat([o]).join("\n")}return[t].join("\n")}},5338:(e,t,n)=>{var a=n(5206);t.createRoot=a.createRoot,t.hydrateRoot=a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),l=n(7659),c=n.n(l),s=n(5056),u=n.n(s),d=n(540),m=n.n(d),p=n(1113),f=n.n(p),y=n(1461),v={};v.styleTagTransform=f(),v.setAttributes=u(),v.insert=c().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=m(),r()(y.A,v);const b=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM},6319:e=>{e.exports=publishpressFutureSettingsGeneralConfig},3244:e=>{e.exports=wp},2214:e=>{e.exports=wp.components},7562:e=>{e.exports=wp.data},1386:e=>{e.exports=wp.element},8566:e=>{e.exports=wp.hooks},9986:e=>{e.exports=wp.plugins},4011:e=>{e.exports=wp.url}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(a=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&l.return&&l.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=n(2057),o=n(1386),i=n(5338),l=n(6319),c=document.getElementById("expiration-date-preview"),s=React.createElement((function(e){var t=(0,o.useState)(!0),n=a(t,2),i=n[0],c=n[1],s=(0,o.useState)(""),u=a(s,2),d=u[0],m=u[1],p=(0,o.useState)(!1),f=a(p,2),y=(f[0],f[1]),v=(0,o.useState)(""),b=a(v,2),g=b[0],h=b[1];return(0,o.useEffect)((function(){jQuery("#expired-custom-expiration-date").on("keyup",(function(){h(jQuery(this).val())})),h(jQuery("#expired-custom-expiration-date").val())}),[]),React.createElement(o.StrictMode,null,React.createElement(r.DateOffsetPreview,{offset:g,label:l.text.datePreview,labelDatePreview:l.text.datePreviewCurrent,labelOffsetPreview:l.text.datePreviewComputed,setValidationErrorCallback:function(e){e?(c(!1),m(e)):(c(!0),m(""))},setHasPendingValidationCallback:function(e){y(e)},setHasValidDataCallback:function(e){y(!1),c(e)}}),!i&&d&&React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("p",null,l.text.error,": ",d)))}),null);(0,i.createRoot)(c).render(s)})();
+//# sourceMappingURL=settings-general.js.map
\ No newline at end of file
diff --git a/assets/js/settings-general.js.map b/assets/js/settings-general.js.map
new file mode 100644
index 000000000..190a11cc7
--- /dev/null
+++ b/assets/js/settings-general.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"settings-general.js","mappings":"wFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,+FCPD,UACA,UAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,UAASJ,EAAMK,UAAW,GADZ,GACrCA,EADqC,KAC5BC,EAD4B,KAoB5C,OAbIH,EAFAH,EAAMO,qBAEQ,yBAAGC,UAAU,cAAcC,wBAAyB,CAAEC,OAAQV,EAAMG,eAEpE,yBAAGK,UAAU,eAAeR,EAAMG,aAYhD,oBAAC,EAAAQ,SAAD,KACI,oBAAC,kBAAD,CACIC,MAAOZ,EAAMY,MACbC,KAAMb,EAAMa,KACZC,GAAId,EAAMa,KACVL,UAAWR,EAAMQ,UACjBH,QAASA,IAAW,EACpBU,SAhBK,SAAUC,GACvBV,EAAWU,GAEPhB,EAAMe,UACNf,EAAMe,SAASC,EAEtB,IAaQb,EAGZ,C,+eCxCD,UAMA,UACA,UAEAc,EAAQ,MAED,IAAMC,EAAoBA,EAAAA,kBAAA,SAAC,GAS5B,IARFC,EAQE,EARFA,OACAP,EAOE,EAPFA,MACAQ,EAME,EANFA,iBACAC,EAKE,EALFA,mBACAC,EAIE,EAJFA,2BACAC,EAGE,EAHFA,gCACAC,EAEE,EAFFA,wBAEE,IADFC,YAAAA,OACE,YACwC,IAAArB,UAAS,IADjD,SACKsB,EADL,KACoBC,EADpB,QAEoC,I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sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateOffsetPreview.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css","webpack://post-expirator/./node_modules/css-loader/dist/runtime/api.js","webpack://post-expirator/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://post-expirator/./node_modules/react-dom/client.js","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css?541a","webpack://post-expirator/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://post-expirator/external var \"ReactDOM\"","webpack://post-expirator/external var \"publishpressFutureSettingsGeneralConfig\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/webpack/runtime/compat get default export","webpack://post-expirator/webpack/runtime/define property getters","webpack://post-expirator/webpack/runtime/hasOwnProperty shorthand","webpack://post-expirator/webpack/runtime/make namespace object","webpack://post-expirator/webpack/runtime/nonce","webpack://post-expirator/./assets/jsx/settings-general.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\nexport { DateOffsetPreview } from \"./DateOffsetPreview\";\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./assets/jsx/components/css/dateOffsetPreview.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB\",\"sourcesContent\":[\".publishpress-future-date-preview .publishpress-future-date-preview-value {\\n font-family: monospace;\\n background-color: #e7e7e7;\\n padding: 2px 4px;\\n}\\n\\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\\n display: block;\\n}\\n\\n.publishpress-future-date-preview.compact {\\n margin-bottom: 8px;\\n}\\n\\n.publishpress-future-date-preview.compact h4 {\\n font-size: 11px;\\n font-weight: 500;\\n line-height: 1.4;\\n text-transform: uppercase;\\n display: inline-block;\\n margin-bottom: calc(8px);\\n padding: 0px;\\n flex-shrink: 0;\\n margin-right: 12px;\\n max-width: 75%;\\n margin-top: 0;\\n}\\n\\n.publishpress-future-notice.publishpress-future-notice-error {\\n color: #dc3232;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","module.exports = ReactDOM;","module.exports = publishpressFutureSettingsGeneralConfig;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport { DateOffsetPreview } from \"./components\";\n\nimport {\n StrictMode,\n useState,\n useEffect\n} from \"@wordpress/element\";\n\nimport { createRoot } from 'react-dom/client';\n\nimport {\n text,\n} from \"&config.settings-general\";\n\nconst SettingsFormPanel = (props) => {\n const [isValidForm, setIsValidForm] = useState(true);\n const [validationError, setValidationError] = useState('');\n const [hasPendingValidation, setHasPendingValidation] = useState(false);\n const [offset, setOffset] = useState('');\n\n const onHasValidationError = (errorMessage) => {\n if (errorMessage) {\n setIsValidForm(false);\n setValidationError(errorMessage);\n } else {\n setIsValidForm(true);\n setValidationError('');\n }\n }\n\n const onValidationStarted = (inProgress) => {\n setHasPendingValidation(inProgress);\n }\n\n const onValidationFinished = (isValid) => {\n setHasPendingValidation(false);\n setIsValidForm(isValid);\n }\n\n useEffect(() => {\n jQuery('#expired-custom-expiration-date').on('keyup', function () {\n setOffset(jQuery(this).val());\n });\n\n setOffset(jQuery('#expired-custom-expiration-date').val());\n }, []);\n\n return (\n \n \n\n {! isValidForm && validationError && (\n
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","module.exports = ReactDOM;","module.exports = publishpressFutureSettingsConfig;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport {\n SettingsForm,\n SettingsSection,\n PostTypesSettingsPanels,\n SubmitButton,\n ButtonsPanel,\n NonceControl\n} from \"./components\";\n\nimport { StrictMode, createRoot, useState, useEffect } from \"@wordpress/element\";\n\nimport {\n nonce,\n referrer,\n settings,\n expireTypeList,\n taxonomiesList,\n text,\n statusesList\n} from \"&config.settings-post-types\";\nimport { render } from \"react-dom\";\n\nconst SettingsFormPanel = (props) => {\n const [formValidationStatusPerPostType, setFormValidationStatusPerPostType] = useState({});\n const [pendingValidationPerPostType, setPendingValidationPerPostType] = useState({});\n const [allValid, setAllValid] = useState(true);\n const [hasNoPendingValidation, setHasNoPendingValidation] = useState(true);\n\n useEffect(() => {\n let allFormsAreValid = true;\n\n for (const [postType, isValidForPostType] of Object.entries(formValidationStatusPerPostType)) {\n if (!isValidForPostType) {\n allFormsAreValid = false;\n break;\n }\n }\n\n setAllValid(allFormsAreValid);\n }, [formValidationStatusPerPostType]);\n\n useEffect(() => {\n let hasNoPendingValidation = true;\n\n for (const [postType, hasPending] of Object.entries(pendingValidationPerPostType)) {\n if (hasPending) {\n hasNoPendingValidation = false;\n break;\n }\n }\n\n setHasNoPendingValidation(hasNoPendingValidation);\n }, [pendingValidationPerPostType]);\n\n const onDataIsValid = (postType) => {\n formValidationStatusPerPostType[postType] = true;\n setFormValidationStatusPerPostType({...formValidationStatusPerPostType});\n }\n\n const onDataIsInvalid = (postType) => {\n formValidationStatusPerPostType[postType] = false;\n setFormValidationStatusPerPostType({...formValidationStatusPerPostType});\n }\n\n const onValidationStarted = (postType) => {\n pendingValidationPerPostType[postType] = true;\n setPendingValidationPerPostType({...pendingValidationPerPostType});\n }\n\n const onValidationFinished = (postType) => {\n pendingValidationPerPostType[postType] = false;\n setPendingValidationPerPostType({...pendingValidationPerPostType});\n }\n\n const saveButtonText = hasNoPendingValidation ? text.saveChanges : text.saveChangesPendingValidation;\n\n return (\n \n \n \n \n \n \n\n \n \n \n \n \n )\n};\n\nconst container = document.getElementById(\"publishpress-future-settings-post-types\");\nconst component = ();\n\ncreateRoot(container).render(component);\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","useEffect","decodeEntities","htmlEntities","addQueryArgs","url","data","useSelect","useDispatch","apiFetch","FutureActionPanel","action","select","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","path","then","result","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","offset","globalDefaultExpireOffset","controller","current","abort","signal","method","isValid","message","preview","catch","error","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","SettingsFieldset","legend","SettingsTable","bodyChildren","PostTypesSettingsPanels","panels","postTypeSettings","valign","htmlFor","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","onClick","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","getCurrentTimeInSeconds","normalizeUnixTimeToSeconds","getTime","formatUnixTimeToTimestamp","getCurrentTimeAsTimestamp","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNumber","isNaN","module","exports","ReactDOM","publishpressFutureSettingsConfig","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","container","getElementById","component","formValidationStatusPerPostType","setFormValidationStatusPerPostType","pendingValidationPerPostType","setPendingValidationPerPostType","allValid","setAllValid","hasNoPendingValidation","setHasNoPendingValidation","allFormsAreValid","saveButtonText","saveChanges","saveChangesPendingValidation","StrictMode","settingsSectionTitle","settingsSectionDescription","createRoot","render"],"sourceRoot":""}
+{"version":3,"file":"settings-post-types.js","mappings":"wFAI4BA,EAAAA,aAAA,SAAUC,GAClC,OACI,+BACKA,EAAMC,SAGlB,C,+FCPD,UACA,UAE+BC,EAAAA,gBAAA,SAAUF,GAAO,IAGxCG,EAHwC,E,2YAAA,EACd,IAAAC,UAASJ,EAAMK,UAAW,GADZ,GACrCA,EADqC,KAC5BC,EAD4B,KAoB5C,OAbIH,EAFAH,EAAMO,qBAEQ,yBAAGC,UAAU,cAAcC,wBAAyB,CAAEC,OAAQV,EAAMG,eAEpE,yBAAGK,UAAU,eAAeR,EAAMG,aAYhD,oBAAC,EAAAQ,SAAD,KACI,oBAAC,kBAAD,CACIC,MAAOZ,EAAMY,MACbC,KAAMb,EAAMa,KACZC,GAAId,EAAMa,KACVL,UAAWR,EAAMQ,UACjBH,QAASA,IAAW,EACpBU,SAhBK,SAAUC,GACvBV,EAAWU,GAEPhB,EAAMe,UACNf,EAAMe,SAASC,EAEtB,IAaQb,EAGZ,C,+eCxCD,UAMA,UACA,UAEAc,EAAQ,MAED,IAAMC,EAAoBA,EAAAA,kBAAA,SAAC,GAS5B,IARFC,EAQE,EARFA,OACAP,EAOE,EAPFA,MACAQ,EAME,EANFA,iBACAC,EAKE,EALFA,mBACAC,EAIE,EAJFA,2BACAC,EAGE,EAHFA,gCACAC,EAEE,EAFFA,wBAEE,IADFC,YAAAA,OACE,YACwC,IAAArB,UAAS,IADjD,SACKsB,EADL,KACoBC,EADpB,QAEoC,I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,MAAOkF,EAAAA,KAAK4P,qBACZriB,YAAayS,EAAAA,KAAK6P,4BAClB,oBAAC,EAAA7N,wBAAD,CACIzE,SAAUA,EAAAA,SACVyC,KAAMA,EAAAA,KACN1C,eAAgBA,EAAAA,eAChBgC,eAAgBA,EAAAA,eAChBsB,aAAcA,EAAAA,aACdpL,cAvCE,SAAC2F,GACnB4T,EAAgC5T,IAAY,EAC5C6T,EAAAA,EAAAA,CAAAA,EAAuCD,GAC1C,EAqCmBtZ,gBAnCI,SAAC0F,GACrB4T,EAAgC5T,IAAY,EAC5C6T,EAAAA,EAAAA,CAAAA,EAAuCD,GAC1C,EAiCmBpP,oBA/BQ,SAACxE,GACzB8T,EAA6B9T,IAAY,EACzC+T,EAAAA,EAAAA,CAAAA,EAAoCD,GACvC,EA6BmBrP,qBA3BS,SAACzE,GAC1B8T,EAA6B9T,IAAY,EACzC+T,EAAAA,EAAAA,CAAAA,EAAoCD,GACvC,KA4BW,oBAAC,EAAA9hB,aAAD,KACI,oBAAC,EAAA8V,aAAD,CACI/U,GAAG,6BACHD,KAAK,6BACLiV,UAAWiM,IAAaE,EACxBrP,KAAMwP,MAM7B,GAGkB,OAEnB,IAAA9F,YAAWkF,GAAWkB,OAAOhB,E","sources":["webpack://post-expirator/./assets/jsx/components/ButtonsPanel.jsx","webpack://post-expirator/./assets/jsx/components/CheckboxControl.jsx","webpack://post-expirator/./assets/jsx/components/DateOffsetPreview.jsx","webpack://post-expirator/./assets/jsx/components/DateTimePicker.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanel.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelAfterActionField.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBlockEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelBulkEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelClassicEditor.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelQuickEdit.jsx","webpack://post-expirator/./assets/jsx/components/FutureActionPanelTop.jsx","webpack://post-expirator/./assets/jsx/components/NonceControl.jsx","webpack://post-expirator/./assets/jsx/components/PostTypeSettingsPanel.jsx","webpack://post-expirator/./assets/jsx/components/PostTypesSettingsPanels.jsx","webpack://post-expirator/./assets/jsx/components/SelectControl.jsx","webpack://post-expirator/./assets/jsx/components/SettingRow.jsx","webpack://post-expirator/./assets/jsx/components/SettingsFieldset.jsx","webpack://post-expirator/./assets/jsx/components/SettingsForm.jsx","webpack://post-expirator/./assets/jsx/components/SettingsSection.jsx","webpack://post-expirator/./assets/jsx/components/SettingsTable.jsx","webpack://post-expirator/./assets/jsx/components/Spinner.jsx","webpack://post-expirator/./assets/jsx/components/SubmitButton.jsx","webpack://post-expirator/./assets/jsx/components/TextControl.jsx","webpack://post-expirator/./assets/jsx/components/ToggleArrowButton.jsx","webpack://post-expirator/./assets/jsx/components/ToggleCalendarDatePicker.jsx","webpack://post-expirator/./assets/jsx/components/TokensControl.jsx","webpack://post-expirator/./assets/jsx/components/TrueFalseControl.jsx","webpack://post-expirator/./assets/jsx/components/index.jsx","webpack://post-expirator/./assets/jsx/time.jsx","webpack://post-expirator/./assets/jsx/utils.jsx","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css","webpack://post-expirator/./node_modules/css-loader/dist/runtime/api.js","webpack://post-expirator/./node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://post-expirator/./node_modules/react-dom/client.js","webpack://post-expirator/./assets/jsx/components/css/dateOffsetPreview.css?541a","webpack://post-expirator/./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://post-expirator/./node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://post-expirator/external var \"ReactDOM\"","webpack://post-expirator/external var \"publishpressFutureSettingsConfig\"","webpack://post-expirator/external var \"wp\"","webpack://post-expirator/external var \"wp.components\"","webpack://post-expirator/external var \"wp.data\"","webpack://post-expirator/external var \"wp.element\"","webpack://post-expirator/external var \"wp.hooks\"","webpack://post-expirator/external var \"wp.plugins\"","webpack://post-expirator/external var \"wp.url\"","webpack://post-expirator/webpack/bootstrap","webpack://post-expirator/webpack/runtime/compat get default export","webpack://post-expirator/webpack/runtime/define property getters","webpack://post-expirator/webpack/runtime/hasOwnProperty shorthand","webpack://post-expirator/webpack/runtime/make namespace object","webpack://post-expirator/webpack/runtime/nonce","webpack://post-expirator/./assets/jsx/settings-post-types.jsx"],"sourcesContent":["/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const ButtonsPanel = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState } from \"@wordpress/element\";\nimport { CheckboxControl as WPCheckboxControl } from \"@wordpress/components\";\n\nexport const CheckboxControl = function (props) {\n const [checked, setChecked] = useState(props.checked || false);\n\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingRow = function (props) {\n return (\n
\n
\n \n
\n
\n {props.children}\n
\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsFieldset = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\n\nexport const SettingsSection = function (props) {\n return (\n \n
{props.title}
\n
{props.description}
\n {props.children}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsTable = function (props) {\n return (\n
\n \n {props.bodyChildren}\n \n
\n )\n}\n","/*\n * Copyright (c) 2024. PublishPress, All rights reserved.\n */\nexport const Spinner = function (props) {\n return (\n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SubmitButton = function (props) {\n return (\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"@wordpress/element\";\nimport { TextControl as WPTextControl } from \"@wordpress/components\";\nimport { Spinner } from \"./\";\n\nexport const TextControl = function (props) {\n let description;\n\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n\n const onChange = function (value) {\n if (props.onChange) {\n props.onChange(value);\n }\n };\n\n let className = props.className ? props.className : '';\n\n if (props.loading) {\n className += ' publishpress-future-loading publishpress-future-loading-input';\n }\n\n return (\n \n
\n \n\n {props.loading && }\n\n {description}\n
\n \n )\n}\n","import { Button } from '@wordpress/components';\n\nexport const ToggleArrowButton = function (props) {\n const onClick = function () {\n if (props.onClick) {\n props.onClick();\n }\n };\n\n const iconExpanded = props.iconExpanded ? props.iconExpanded : 'arrow-up-alt2';\n const iconCollapsed = props.iconCollapsed ? props.iconCollapsed : 'arrow-down-alt2';\n\n const icon = props.isExpanded ? iconExpanded : iconCollapsed;\n\n const title = props.isExpanded ? props.titleExpanded : props.titleCollapsed;\n\n return (\n \n )\n}\n","import { ToggleArrowButton } from \"./ToggleArrowButton\";\nimport { DateTimePicker } from \"./DateTimePicker\";\nimport { Fragment, useEffect } from \"@wordpress/element\";\n\nexport const ToggleCalendarDatePicker = (\n {\n isExpanded,\n strings,\n onToggleCalendar,\n currentDate,\n onChangeDate,\n is12Hour,\n startOfWeek\n }\n) => {\n useEffect(() => {\n // Move the element of the toggle button to between the time and date elements.\n const toggleButtonElement = document.querySelector('.future-action-calendar-toggle');\n\n if (! toggleButtonElement) {\n return;\n }\n\n const dateTimeElement = toggleButtonElement.nextElementSibling;\n\n if (! dateTimeElement) {\n return;\n }\n\n const timeElement = dateTimeElement.querySelector('.components-datetime__time');\n\n if (! timeElement) {\n return;\n }\n\n const dateElement = timeElement.nextSibling;\n\n if (! dateElement) {\n return;\n }\n\n dateTimeElement.insertBefore(toggleButtonElement, dateElement)\n });\n\n return (\n \n \n\n \n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment, useState, useEffect } from \"@wordpress/element\";\nimport { FormTokenField } from \"@wordpress/components\";\n\nexport const TokensControl = (props) => {\n const [stringValue, setStringValue] = useState('');\n\n useEffect(() => {\n if (props.value) {\n setStringValue(props.value.join(','));\n }\n }, [props.value]);\n\n let description;\n\n if (props.description) {\n if (props.unescapedDescription) {\n // If using this option, the HTML has to be escaped before injected into the JS interface.\n description = ;\n } else {\n description =
{props.description}
;\n }\n }\n\n const onChange = (value) => {\n if (props.onChange) {\n props.onChange(value);\n }\n\n if (typeof value === 'object') {\n setStringValue(value.join(','));\n } else {\n setStringValue('');\n }\n }\n\n const value = props.value ? props.value : [];\n \n return (\n \n \n \n\n {description}\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const TrueFalseControl = function (props) {\n const { Fragment } = wp.element;\n\n const onChange = (e) => {\n if (props.onChange) {\n props.onChange(\n e.target.value === props.trueValue && jQuery(e.target).is(':checked')\n );\n // Check only the true radio... using the field name? or directly the ID\n }\n };\n\n return (\n \n \n\n \n \n \n \n\n
{props.description}
\n \n )\n}\n","export { ButtonsPanel } from \"./ButtonsPanel\";\nexport { FutureActionPanel } from \"./FutureActionPanel\";\nexport { FutureActionPanelBlockEditor } from \"./FutureActionPanelBlockEditor\";\nexport { FutureActionPanelClassicEditor } from \"./FutureActionPanelClassicEditor\";\nexport { FutureActionPanelQuickEdit } from \"./FutureActionPanelQuickEdit\";\nexport { FutureActionPanelBulkEdit } from \"./FutureActionPanelBulkEdit\";\nexport { PostTypeSettingsPanel } from \"./PostTypeSettingsPanel\";\nexport { PostTypesSettingsPanels } from \"./PostTypesSettingsPanels\";\nexport { SettingRow } from \"./SettingRow\";\nexport { SettingsFieldset } from \"./SettingsFieldset\";\nexport { SettingsForm } from \"./SettingsForm\";\nexport { SettingsSection } from \"./SettingsSection\";\nexport { SettingsTable } from \"./SettingsTable\";\nexport { SubmitButton } from \"./SubmitButton\";\nexport { CheckboxControl } from \"./CheckboxControl\";\nexport { SelectControl } from \"./SelectControl\";\nexport { TextControl } from \"./TextControl\";\nexport { TokensControl } from \"./TokensControl\";\nexport { NonceControl } from \"./NonceControl\";\nexport { TrueFalseControl } from \"./TrueFalseControl\";\nexport { Spinner } from \"./Spinner\";\nexport { DateOffsetPreview } from \"./DateOffsetPreview\";\n","export const getCurrentTimeInSeconds = () => {\n return normalizeUnixTimeToSeconds(new Date().getTime());\n}\n\nexport const getCurrentTimeAsTimestamp = () => {\n return formatUnixTimeToTimestamp(getCurrentTimeInSeconds());\n}\n\nexport const formatUnixTimeToTimestamp = (unixTimestamp) => {\n const date = new Date(\n normalizeUnixTimeToSeconds(unixTimestamp)\n );\n\n const year = date.getFullYear();\n const month = (\"0\" + (date.getMonth() + 1)).slice(-2); // Months are zero-based\n const day = (\"0\" + date.getDate()).slice(-2);\n const hours = (\"0\" + date.getHours()).slice(-2);\n const minutes = (\"0\" + date.getMinutes()).slice(-2);\n const seconds = (\"0\" + date.getSeconds()).slice(-2);\n\n return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;\n}\n\nexport const formatTimestampToUnixTime = (time) => {\n const date = new Date(time);\n\n return normalizeUnixTimeToSeconds(date.getTime());\n}\n\nexport const timeIsInSeconds = (time) => {\n return parseInt(time).toString().length <= 10;\n}\n\nexport const normalizeUnixTimeToSeconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time : time / 1000;\n}\n\nexport const normalizeUnixTimeToMilliseconds = (time) => {\n time = parseInt(time);\n\n return timeIsInSeconds() ? time * 1000 : time;\n}\n","export const compact = (array) => {\n if (!array) {\n return [];\n }\n\n if (! Array.isArray(array) && typeof array === 'object') {\n array = Object.values(array);\n }\n\n return array.filter((item) => {\n return item !== null && item !== undefined && item !== '';\n });\n}\n\nexport const debugLogFactory = (config) => {\n return (description, ...message) => {\n if (console && config.isDebugEnabled) {\n console.debug('[Future]', description, ...message);\n }\n }\n}\n\nexport const isGutenbergEnabled = () => {\n return document.body.classList.contains('block-editor-page');\n}\n\nexport const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n}\n\nexport const getFieldByName = (name, postId) => {\n return document.querySelector(`#the-list tr#post-${postId} .column-expirationdate input#future_action_${name}-${postId}`);\n}\n\nexport const getFieldValueByName = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return null;\n }\n\n return field.value;\n};\n\nexport const getFieldValueByNameAsArrayOfInt = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field || !field.value) {\n return [];\n }\n\n if (typeof field.value === 'number') {\n field.value = field.value.toString();\n }\n\n return field.value.split(',').map(term => parseInt(term));\n};\n\nexport const getFieldValueByNameAsBool = (name, postId) => {\n const field = getFieldByName(name, postId);\n\n if (!field) {\n return false;\n }\n\n return field.value === '1' || field.value === 'true';\n}\n\nexport const getActionSettingsFromColumnData = (postId) => {\n const columnData = document.querySelector(`#post-expire-column-${postId}`);\n\n if (!columnData) {\n return {};\n }\n\n return {\n enabled: columnData.dataset.actionEnabled === '1',\n action: columnData.dataset.actionType,\n date: columnData.dataset.actionDate,\n dateUnix: columnData.dataset.actionDateUnix,\n taxonomy: columnData.dataset.actionTaxonomy,\n terms: columnData.dataset.actionTerms,\n newStatus: columnData.dataset.actionNewStatus,\n };\n}\n\n/**\n * This function is used to determine if a value is a number, including strings.\n *\n * @param {*} value\n * @returns\n */\nexport const isNumber = (value) => {\n return !isNaN(value);\n}\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./assets/jsx/components/css/dateOffsetPreview.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB\",\"sourcesContent\":[\".publishpress-future-date-preview .publishpress-future-date-preview-value {\\n font-family: monospace;\\n background-color: #e7e7e7;\\n padding: 2px 4px;\\n}\\n\\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\\n display: block;\\n}\\n\\n.publishpress-future-date-preview.compact {\\n margin-bottom: 8px;\\n}\\n\\n.publishpress-future-date-preview.compact h4 {\\n font-size: 11px;\\n font-weight: 500;\\n line-height: 1.4;\\n text-transform: uppercase;\\n display: inline-block;\\n margin-bottom: calc(8px);\\n padding: 0px;\\n flex-shrink: 0;\\n margin-right: 12px;\\n max-width: 75%;\\n margin-top: 0;\\n}\\n\\n.publishpress-future-notice.publishpress-future-notice-error {\\n color: #dc3232;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./dateOffsetPreview.css\";\n export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","module.exports = ReactDOM;","module.exports = publishpressFutureSettingsConfig;","module.exports = wp;","module.exports = wp.components;","module.exports = wp.data;","module.exports = wp.element;","module.exports = wp.hooks;","module.exports = wp.plugins;","module.exports = wp.url;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nc = undefined;","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport {\n SettingsForm,\n SettingsSection,\n PostTypesSettingsPanels,\n SubmitButton,\n ButtonsPanel,\n NonceControl\n} from \"./components\";\n\nimport { StrictMode, useState, useEffect } from \"@wordpress/element\";\n\nimport { createRoot } from 'react-dom/client';\n\nimport {\n nonce,\n referrer,\n settings,\n expireTypeList,\n taxonomiesList,\n text,\n statusesList\n} from \"&config.settings-post-types\";\nimport { render } from \"react-dom\";\n\nconst SettingsFormPanel = (props) => {\n const [formValidationStatusPerPostType, setFormValidationStatusPerPostType] = useState({});\n const [pendingValidationPerPostType, setPendingValidationPerPostType] = useState({});\n const [allValid, setAllValid] = useState(true);\n const [hasNoPendingValidation, setHasNoPendingValidation] = useState(true);\n\n useEffect(() => {\n let allFormsAreValid = true;\n\n for (const [postType, isValidForPostType] of Object.entries(formValidationStatusPerPostType)) {\n if (!isValidForPostType) {\n allFormsAreValid = false;\n break;\n }\n }\n\n setAllValid(allFormsAreValid);\n }, [formValidationStatusPerPostType]);\n\n useEffect(() => {\n let hasNoPendingValidation = true;\n\n for (const [postType, hasPending] of Object.entries(pendingValidationPerPostType)) {\n if (hasPending) {\n hasNoPendingValidation = false;\n break;\n }\n }\n\n setHasNoPendingValidation(hasNoPendingValidation);\n }, [pendingValidationPerPostType]);\n\n const onDataIsValid = (postType) => {\n formValidationStatusPerPostType[postType] = true;\n setFormValidationStatusPerPostType({...formValidationStatusPerPostType});\n }\n\n const onDataIsInvalid = (postType) => {\n formValidationStatusPerPostType[postType] = false;\n setFormValidationStatusPerPostType({...formValidationStatusPerPostType});\n }\n\n const onValidationStarted = (postType) => {\n pendingValidationPerPostType[postType] = true;\n setPendingValidationPerPostType({...pendingValidationPerPostType});\n }\n\n const onValidationFinished = (postType) => {\n pendingValidationPerPostType[postType] = false;\n setPendingValidationPerPostType({...pendingValidationPerPostType});\n }\n\n const saveButtonText = hasNoPendingValidation ? text.saveChanges : text.saveChangesPendingValidation;\n\n return (\n \n \n \n \n \n \n\n \n \n \n \n \n )\n};\n\nconst container = document.getElementById(\"publishpress-future-settings-post-types\");\nconst component = ();\n\ncreateRoot(container).render(component);\n"],"names":["ButtonsPanel","props","children","CheckboxControl","description","useState","checked","setChecked","unescapedDescription","className","dangerouslySetInnerHTML","__html","Fragment","label","name","id","onChange","value","require","DateOffsetPreview","offset","labelDatePreview","labelOffsetPreview","setValidationErrorCallback","setHasPendingValidationCallback","setHasValidDataCallback","compactView","offsetPreview","setOffsetPreview","currentTime","setCurrentTime","apiRequestControllerRef","useRef","AbortController","useEffect","controller","current","abort","signal","apiFetch","path","addQueryArgs","method","data","then","result","isValid","message","preview","catch","error","validateDateOffset","compactClass","DateTimePicker","currentDate","is12Hour","startOfWeek","normalizeUnixTimeToMilliseconds","__nextRemoveHelpButton","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","decodeEntities","htmlEntities","url","useSelect","useDispatch","FutureActionPanel","select","action","storeName","getAction","date","getDate","enabled","getEnabled","terms","getTerms","taxonomy","getTaxonomy","taxonomyName","getTaxonomyName","termsListByName","getTermsListByName","termsListById","getTermsListById","isFetchingTerms","getIsFetchingTerms","calendarIsVisible","getCalendarIsVisible","hasValidData","getHasValidData","newStatus","getNewStatus","validationError","setValidationError","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","setHasValidData","setNewStatus","insertTerm","term","count","link","slug","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","forEach","getCalendarIsVisibleFromStorage","localStorage","getItem","context","autoEnableAndHideCheckbox","hideCalendarByDefault","isCleanNewPost","setItem","onDataIsValid","onDataIsInvalid","selectedTerms","length","compact","map","mapTermsListById","termsListByNameKeys","Object","keys","is24hour","panelClass","contentPanelClass","datePanelClass","timeFormat","actionsSelectOptions","filter","item","indexOf","HelpText","string","href","target","parts","split","push","shift","before","after","key","replaceCurlyBracketsWithLink","strings","timezoneSettingsHelp","displayTaxonomyField","String","includes","termsFieldLabel","newTerms","replace","removeTerms","addTerms","valid","errorActionRequired","errorDateRequired","Date","errorDateInPast","isTermRequired","noTermIsSelected","errorTermsRequired","validateData","SlotFillProvider","type","FutureActionPanelTop","Slot","fillProps","enablePostExpiration","options","FutureActionPanelAfterActionField","statusesSelectOptions","loading","noTaxonomyFound","noTermsFound","suggestions","mapTermsListByName","placeholder","addTermsPlaceholder","maxSuggestions","onFocus","e","jQuery","addClass","__experimentalExpandOnFocus","__experimentalAutoSelectFirstMatch","ToggleCalendarDatePicker","onChangeDate","onToggleCalendar","isExpanded","PluginArea","scope","Fill","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","getEditedPostAttribute","lockPostSaving","unlockPostSaving","title","panelTitle","initialOpen","postTypeDefaultConfig","autoEnable","postType","store","newAttribute","getExtraData","publishpress_future_action","entries","editPostAttribute","FutureActionPanelBulkEdit","changeAction","getChangeAction","setChangeAction","termsString","join","noChange","changeAdd","addOnly","changeOnly","removeOnly","prop","futureActionUpdate","isNewPost","getElementByName","nonce","FutureActionPanelClassicEditor","getTimezoneOffset","document","getElementsByName","getElementValueByName","parseInt","getTermsFromElementByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","originalExpireTypeList","expireTypeList","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","taxonomyLabel","setTaxonomyLabel","howToExpireList","setHowToExpireList","hasPendingValidation","setHasPendingValidation","globalDefaultExpireOffset","taxonomyRelatedActions","newExpireTypeList","taxonomiesList","settingsTermsOptions","option","expireType","toLowerCase","onValidationStarted","onValidationFinished","termOptionsLabels","settingsRows","SettingRow","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","selected","noItemFoundMessage","noItemsfound","fieldTaxonomyDescription","fieldHowToExpire","fieldHowToExpireDescription","statusesList","TokensControl","fieldTerm","isLoading","fieldTermDescription","expandOnFocus","autoSelectFirstMatch","fieldDefaultDateTimeOffset","TextControl","fieldDefaultDateTimeOffsetDescription","datePreview","datePreviewCurrent","datePreviewComputed","fieldWhoToNotify","fieldWhoToNotifyDescription","applyFilters","fieldSetClassNames","isVisible","SettingsTable","bodyChildren","PostTypesSettingsPanels","currentTab","setCurrentTab","panels","postTypeSettings","legend","onSelectTab","event","preventDefault","hash","tabs","onClick","valign","htmlFor","SettingsFieldset","SettingsForm","SettingsSection","SubmitButton","disabled","ToggleArrowButton","iconExpanded","iconCollapsed","icon","titleExpanded","titleCollapsed","Button","isSmall","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","stringValue","setStringValue","TrueFalseControl","trueValue","is","defaultChecked","trueLabel","falseValue","falseLabel","getCurrentTimeInSeconds","normalizeUnixTimeToSeconds","getTime","formatUnixTimeToTimestamp","getCurrentTimeAsTimestamp","unixTimestamp","getFullYear","getMonth","slice","getHours","getMinutes","getSeconds","timeIsInSeconds","formatTimestampToUnixTime","time","toString","getFieldByName","array","Array","isArray","values","debugLogFactory","config","console","isDebugEnabled","debug","isGutenbergEnabled","body","classList","contains","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","actionNewStatus","isNumber","isNaN","___CSS_LOADER_EXPORT___","module","exports","cssWithMappingToString","list","this","content","needLayer","concat","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","sourceMapping","m","createRoot","hydrateRoot","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","stylesInDOM","getIndexByIdentifier","identifier","modulesToDom","idCountMap","identifiers","base","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","style","styleTarget","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","createElement","attributes","styleElement","setAttribute","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","ReactDOM","publishpressFutureSettingsConfig","hooks","plugins","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","prototype","hasOwnProperty","call","r","Symbol","toStringTag","nc","container","getElementById","component","formValidationStatusPerPostType","setFormValidationStatusPerPostType","pendingValidationPerPostType","setPendingValidationPerPostType","allValid","setAllValid","hasNoPendingValidation","setHasNoPendingValidation","allFormsAreValid","saveButtonText","saveChanges","saveChangesPendingValidation","StrictMode","settingsSectionTitle","settingsSectionDescription","render"],"sourceRoot":""}
\ No newline at end of file
diff --git a/assets/jsx/block-editor.jsx b/assets/jsx/block-editor.jsx
index 5c412066e..5140e19db 100644
--- a/assets/jsx/block-editor.jsx
+++ b/assets/jsx/block-editor.jsx
@@ -11,7 +11,8 @@ import {
taxonomyName,
postTypeDefaultConfig,
defaultDate,
- statusesSelectOptions
+ statusesSelectOptions,
+ hideCalendarByDefault
} from "&config.block-editor";
const storeName = 'publishpress-future/future-action';
@@ -41,7 +42,9 @@ const BlockEditorFutureActionPlugin = () => {
storeName={storeName}
strings={strings}
taxonomyName={taxonomyName}
- postTypeDefaultConfig={postTypeDefaultConfig} />
+ postTypeDefaultConfig={postTypeDefaultConfig}
+ hideCalendarByDefault={hideCalendarByDefault}
+ />
);
}
diff --git a/assets/jsx/bulk-edit.jsx b/assets/jsx/bulk-edit.jsx
index 9de4a8df9..0f14dd1f1 100644
--- a/assets/jsx/bulk-edit.jsx
+++ b/assets/jsx/bulk-edit.jsx
@@ -1,6 +1,6 @@
import { FutureActionPanelBulkEdit } from './components';
import { createStore } from './data';
-import { createRoot } from '@wordpress/element';
+import { createRoot } from 'react-dom/client';
import { select, dispatch } from '@wordpress/data';
import { inlineEditPost } from "&window";
import {
@@ -15,7 +15,8 @@ import {
strings,
taxonomyName,
nonce,
- statusesSelectOptions
+ statusesSelectOptions,
+ hideCalendarByDefault
} from "&config.bulk-edit";
const storeName = 'publishpress-future/future-action-bulk-edit';
@@ -92,6 +93,7 @@ inlineEditPost.setBulk = function (id) {
strings={strings}
taxonomyName={taxonomyName}
nonce={nonce}
+ hideCalendarByDefault={hideCalendarByDefault}
/>
);
diff --git a/assets/jsx/classic-editor.jsx b/assets/jsx/classic-editor.jsx
index d0d6b9b53..677754ed7 100644
--- a/assets/jsx/classic-editor.jsx
+++ b/assets/jsx/classic-editor.jsx
@@ -1,8 +1,8 @@
import { FutureActionPanelClassicEditor } from './components';
import { createStore } from './data';
import { isGutenbergEnabled } from './utils';
-import { createRoot } from '@wordpress/element';
import { select } from '@wordpress/data';
+import { createRoot } from 'react-dom/client';
import {
postType,
isNewPost,
@@ -14,9 +14,9 @@ import {
taxonomyName,
postTypeDefaultConfig,
defaultDate,
- statusesSelectOptions
+ statusesSelectOptions,
+ hideCalendarByDefault
} from "&config.classic-editor";
-import { render } from "react-dom";
if (! isGutenbergEnabled()) {
const storeName = 'publishpress-future/future-action';
@@ -48,6 +48,7 @@ if (! isGutenbergEnabled()) {
startOfWeek={startOfWeek}
strings={strings}
taxonomyName={taxonomyName}
+ hideCalendarByDefault={hideCalendarByDefault}
/>
);
diff --git a/assets/jsx/components/DateOffsetPreview.jsx b/assets/jsx/components/DateOffsetPreview.jsx
new file mode 100644
index 000000000..a39135c2f
--- /dev/null
+++ b/assets/jsx/components/DateOffsetPreview.jsx
@@ -0,0 +1,99 @@
+import {
+ useState,
+ useEffect,
+ useRef,
+ Fragment
+} from '@wordpress/element';
+import { addQueryArgs } from '@wordpress/url';
+import { apiFetch } from '&wp';
+
+require('./css/dateOffsetPreview.css');
+
+export const DateOffsetPreview = ({
+ offset,
+ label,
+ labelDatePreview,
+ labelOffsetPreview,
+ setValidationErrorCallback,
+ setHasPendingValidationCallback,
+ setHasValidDataCallback,
+ compactView = false
+}) => {
+ const [offsetPreview, setOffsetPreview] = useState('');
+ const [currentTime, setCurrentTime] = useState();
+
+ const apiRequestControllerRef = useRef(new AbortController());
+
+ const validateDateOffset = () => {
+ if (offset) {
+ const controller = apiRequestControllerRef.current;
+
+ if (controller) {
+ controller.abort();
+ }
+
+ apiRequestControllerRef.current = new AbortController();
+ const { signal } = apiRequestControllerRef.current;
+
+ setHasPendingValidationCallback(true);
+
+ apiFetch({
+ path: addQueryArgs(`publishpress-future/v1/settings/validate-expire-offset`),
+ method: 'POST',
+ data: {
+ offset
+ },
+ signal,
+ }).then((result) => {
+ setHasPendingValidationCallback(false);
+
+ setHasValidDataCallback(result.isValid);
+ setValidationErrorCallback(result.message);
+
+ if (result.isValid) {
+ setOffsetPreview(result.preview);
+ setCurrentTime(result.currentTime);
+ } else {
+ setOffsetPreview('');
+ }
+ }).catch((error) => {
+ if (error.name === 'AbortError') {
+ return;
+ }
+
+ setHasPendingValidationCallback(false);
+ setHasValidDataCallback(false);
+ setValidationErrorCallback(error.message);
+ setOffsetPreview('');
+ });
+ }
+ }
+
+ useEffect(() => {
+ validateDateOffset();
+ }, [offset]);
+
+ const compactClass = compactView ? ' compact' : '';
+
+ return (
+
+ { offset && (
+