From 170eadd84f67828896809d3b93e583ab5fb6fb2c Mon Sep 17 00:00:00 2001 From: Anderson Martins Date: Fri, 15 Dec 2023 16:07:53 -0300 Subject: [PATCH] Improve solution for #625 --- assets/js/classic-editor.js.map | 2 +- assets/js/quick-edit.js | 35 +++++-------- assets/js/quick-edit.js.map | 2 +- assets/js/settings-post-types.js | 6 +-- assets/js/settings-post-types.js.map | 2 +- assets/jsx/bulk-edit.jsx | 76 ++++++++++++---------------- assets/jsx/classic-editor.jsx | 39 +++++--------- assets/jsx/quick-edit.jsx | 42 ++++++--------- assets/jsx/settings-post-types.jsx | 6 +-- readme.txt | 1 + 10 files changed, 85 insertions(+), 126 deletions(-) diff --git a/assets/js/classic-editor.js.map b/assets/js/classic-editor.js.map index 477129d83..242c9ab4c 100644 --- a/assets/js/classic-editor.js.map +++ b/assets/js/classic-editor.js.map @@ -1 +1 @@ -{"version":3,"file":"classic-editor.js","mappings":";;;;;;;;;;;;;;;AAAA;;;;AAIO,IAAMA,eAAeA,oBAAAA,GAAA,SAAfA,YAAe,CAAUC,KAAV,EAAiB;AACzC,WACI;AAAA;AAAA;AACKA,cAAMC;AADX,KADJ;AAKH,CANM;;;;;;;;;;;;;;;;;ypBCJP;;;;;AAGA;;AACA;;AAEO,IAAMC,kBAAkBA,uBAAAA,GAAA,SAAlBA,eAAkB,CAAUF,KAAV,EAAiB;AAAA,oBACd,kBAASA,MAAMG,OAAN,IAAiB,KAA1B,CADc;AAAA;AAAA,QACrCA,OADqC;AAAA,QAC5BC,UAD4B;;AAG5C,QAAIC,oBAAJ;;AAEA,QAAIL,MAAMM,oBAAV,EAAgC;AAC5B;AACAD,sBAAc,2BAAG,WAAU,aAAb,EAA2B,yBAAyB,EAAEE,QAAQP,MAAMK,WAAhB,EAApD,GAAd;AACH,KAHD,MAGO;AACHA,sBAAc;AAAA;AAAA,cAAG,WAAU,aAAb;AAA4BL,kBAAMK;AAAlC,SAAd;AACH;;AAED,QAAMG,WAAW,SAAXA,QAAW,CAA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AEI,sBAAUgD,uBAFd;AAGI,uBAAW6E,wBAHf;AAII,kCAAsBjC,mCAJ1B;AAKI,sBAAUnH,uBALd;AAMI,yBAAaC,0BANjB;AAOI,qBAAS6E,sBAPb;AAQI,0BAAc7C;AARlB,UADJ;AAYH,KAbD,MAaO;AACH,8BACI,oBAAC,0CAAD;AACI,uBAAWV,SADf;AAEI,sBAAUgD,uBAFd;AAGI,uBAAW6E,wBAHf;AAII,kCAAsBjC,mCAJ1B;AAKI,sBAAUnH,uBALd;AAMI,yBAAaC,0BANjB;AAOI,qBAAS6E,sBAPb;AAQI,0BAAc7C;AARlB,UADJ,EAWI6S,SAXJ;AAaH;AACJ,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/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/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/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.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 \"&wp.element\";\nimport { CheckboxControl as WPCheckboxControl } from \"&wp.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 \"&wp.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';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect } = 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\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible\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 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 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 setIsFetchingTerms(true);\n\n if ((!taxonomy && props.postType === 'post') || taxonomy === 'category') {\n apiFetch({\n path: addQueryArgs('wp/v2/categories', { per_page: -1 }),\n }).then((list) => {\n list.forEach(cat => {\n termsListByName[cat.name] = cat;\n termsListById[cat.id] = cat.name;\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(props.strings.category);\n setIsFetchingTerms(false);\n });\n } else {\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/taxonomies/` + props.postType),\n }).then((response) => {\n if (parseInt(response.count) > 0) {\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${taxonomy}`, { context: 'edit', per_page: -1 }),\n }).then((taxonomyAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxonomyAttributes.rest_base}`, { context: 'edit', per_page: -1 }),\n }).then((terms) => {\n 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(taxonomyAttributes.name));\n setIsFetchingTerms(false);\n });\n });\n }\n });\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 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 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\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 const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n\n return (\n
\n {props.autoEnableAndHideCheckbox && (\n \n )}\n\n {! props.autoEnableAndHideCheckbox && (\n \n \n \n )}\n\n {enabled && (\n \n \n \n \n\n {\n String(action).includes('category') && (\n isFetchingTerms && (\n \n \n {`${props.strings.loading} (${taxonomyName})`}\n \n \n \n )\n || (!taxonomy && (\n \n \n {props.strings.noTaxonomyFound}\n \n \n )\n || (\n termsListByNameKeys.length === 0 && (\n \n \n {props.strings.noTermsFound}\n \n \n )\n || (\n \n \n \n \n \n )\n )\n )\n )\n }\n\n \n setCalendarIsVisible(!calendarIsVisible)}\n is12Hour={props.is12Hour}\n startOfWeek={props.startOfWeek}\n isExpanded={calendarIsVisible}\n strings={props.strings}\n />\n \n\n \n
\n
\n\n {HelpText}\n
\n
\n
\n )}\n
\n );\n};\n","import { FutureActionPanel } from './';\n\nexport const FutureActionPanelBlockEditor = (props) => {\n const { PluginDocumentSettingPanel } = wp.editPost;\n const { useDispatch, select } = wp.data;\n\n const { editPost } = useDispatch('core/editor');\n\n const editPostAttribute = (newAttribute) => {\n const attribute = {\n publishpress_future_action: {}\n };\n\n // For each property on newAttribute, set the value on attribute\n for (const [name, value] of Object.entries(newAttribute)) {\n attribute.publishpress_future_action[name] = value;\n }\n\n editPost(attribute);\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n const newAttribute = {\n 'enabled': store.getEnabled()\n }\n\n if (newAttribute.enabled) {\n newAttribute['action'] = store.getAction();\n newAttribute['date'] = store.getDate();\n newAttribute['terms'] = store.getTerms();\n newAttribute['taxonomy'] = store.getTaxonomy();\n }\n\n editPostAttribute(newAttribute);\n }\n\n const data = select('core/editor').getEditedPostAttribute('publishpress_future_action');\n\n return (\n \n
\n \n
\n \n );\n};\n","import { FutureActionPanel, SelectControl } from '.';\nimport { getElementByName } from '../utils';\n\nexport const FutureActionPanelBulkEdit = (props) => {\n const { useSelect, useDispatch, select } = wp.data;\n\n const onChangeData = (attribute, value) => {\n getElementByName('future_action_bulk_enabled').value = select(props.storeName).getEnabled() ? 1 : 0;\n getElementByName('future_action_bulk_action').value = select(props.storeName).getAction();\n getElementByName('future_action_bulk_date').value = select(props.storeName).getDate();\n getElementByName('future_action_bulk_terms').value = select(props.storeName).getTerms().join(',');\n getElementByName('future_action_bulk_taxonomy').value = select(props.storeName).getTaxonomy();\n }\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const changeAction = useSelect((select) => select(props.storeName).getChangeAction(), []);\n\n const {\n setChangeAction\n } = useDispatch(props.storeName);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n const handleStrategyChange = (value) => {\n setChangeAction(value);\n };\n\n const options = [\n { value: 'no-change', label: props.strings.noChange },\n { value: 'change-add', label: props.strings.changeAdd },\n { value: 'add-only', label: props.strings.addOnly },\n { value: 'change-only', label: props.strings.changeOnly },\n { value: 'remove-only', label: props.strings.removeOnly },\n ];\n\n const optionsToDisplayPanel = ['change-add', 'add-only', 'change-only'];\n\n return (\n
\n \n\n {optionsToDisplayPanel.includes(changeAction) && (\n \n )}\n\n {/* Bulk edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","import { FutureActionPanel } from \"./\";\nimport { select } from \"&wp.data\";\n\nexport const FutureActionPanelClassicEditor = (props) => {\n const browserTimezoneOffset = new Date().getTimezoneOffset();\n\n const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n getElementByName('future_action_enabled').value = store.getEnabled() ? 1 : 0;\n getElementByName('future_action_action').value = store.getAction();\n getElementByName('future_action_date').value = store.getDate();\n getElementByName('future_action_terms').value = store.getTerms().join(',');\n getElementByName('future_action_taxonomy').value = store.getTaxonomy();\n }\n\n const data = {\n enabled: getElementByName('future_action_enabled').value === '1',\n action: getElementByName('future_action_action').value,\n date: getElementByName('future_action_date').value,\n terms: getElementByName('future_action_terms').value.split(',').map(term => parseInt(term)),\n taxonomy: getElementByName('future_action_taxonomy').value,\n };\n\n return (\n
\n \n
\n );\n};\n","import { FutureActionPanel } from './';\nimport { useSelect } from '&wp.data';\n\nexport const FutureActionPanelQuickEdit = (props) => {\n const onChangeData = (attribute, value) => {};\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n return (\n
\n \n\n {/* Quick edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\n\nexport const NonceControl = function (props) {\n if (! props.name) {\n props.name = '_wpnonce';\n }\n\n if (! props.referrer) {\n props.referrer = true;\n }\n\n return (\n \n \n\n {props.referrer &&\n \n }\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport {\n SettingRow,\n SettingsFieldset,\n SettingsTable,\n SelectControl,\n TextControl,\n TokensControl,\n CheckboxControl\n} from './';\nimport { useEffect, useState } from '&wp.element';\nimport { addQueryArgs } from '&wp.url';\nimport { applyFilters } from '&wp.hooks';\nimport { apiFetch } from '&wp';\n\nexport const PostTypeSettingsPanel = function (props) {\n const [postTypeTaxonomy, setPostTypeTaxonomy] = useState(props.settings.taxonomy);\n const [termOptions, setTermOptions] = useState([]);\n const [termsSelectIsLoading, setTermsSelectIsLoading] = useState(false);\n const [selectedTerms, setSelectedTerms] = useState([]);\n const [settingHowToExpire, setSettingHowToExpire] = useState(props.settings.howToExpire);\n const [isActive, setIsActive] = useState(props.settings.active);\n const [expireOffset, setExpireOffset] = useState(props.settings.defaultExpireOffset);\n const [emailNotification, setEmailNotification] = useState(props.settings.emailNotification);\n const [isAutoEnabled, setIsAutoEnabled] = useState(props.settings.autoEnabled);\n\n const onChangeTaxonomy = function (value) {\n setPostTypeTaxonomy(value);\n };\n\n const onChangeTerms = (value) => {\n setSelectedTerms(value);\n };\n\n const onChangeHowToExpire = (value) => {\n setSettingHowToExpire(value);\n }\n\n const onChangeActive = (value) => {\n setIsActive(value);\n }\n\n const onChangeExpireOffset = (value) => {\n setExpireOffset(value);\n }\n\n const onChangeEmailNotification = (value) => {\n setEmailNotification(value);\n }\n\n const onChangeAutoEnabled = (value) => {\n setIsAutoEnabled(value);\n }\n\n useEffect(() => {\n const updateTermsOptionsState = (list) => {\n let options = [];\n\n let settingsTermsOptions = null;\n let option;\n list.forEach(term => {\n option = { value: term.id, label: term.name };\n options.push(option);\n\n if (postTypeTaxonomy === props.settings.taxonomy && props.settings.terms.includes(term.id)) {\n if (settingsTermsOptions === null) {\n settingsTermsOptions = [];\n }\n\n settingsTermsOptions.push(option.label);\n }\n });\n\n setTermOptions(options);\n setTermsSelectIsLoading(false);\n setSelectedTerms(settingsTermsOptions);\n };\n\n if ((!postTypeTaxonomy && props.postType === 'post') || postTypeTaxonomy === 'category') {\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/categories`, { per_page: -1 }),\n }).then(updateTermsOptionsState);\n } else {\n if (!postTypeTaxonomy || !props.taxonomiesList) {\n return;\n }\n\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${postTypeTaxonomy}`),\n }).then((taxAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxAttributes.rest_base}`),\n }).then(updateTermsOptionsState);\n }).catch((error) => {\n console.debug('Taxonomy terms error', error);\n setTermsSelectIsLoading(false);\n });\n }\n }, [postTypeTaxonomy]);\n\n const termOptionsLabels = termOptions.map((term) => term.label);\n\n let settingsRows = [\n \n \n \n ];\n\n if (isActive) {\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n \n );\n\n // Remove items from expireTypeList if related to taxonomies and there is no taxonmoy for the post type\n if (props.taxonomiesList.length === 0) {\n props.expireTypeList[props.postType] = props.expireTypeList[props.postType].filter((item) => {\n return ['category', 'category-add', 'category-remove'].indexOf(item.value) === -1;\n });\n }\n\n settingsRows.push(\n \n \n\n {(props.taxonomiesList.length > 0 && (['category', 'category-add', 'category-remove'].indexOf(settingHowToExpire) > -1)) &&\n \n }\n \n );\n\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n );\n }\n\n settingsRows = applyFilters('expirationdate_settings_posttype', settingsRows, props, isActive, useState);\n\n return (\n \n \n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport { PostTypeSettingsPanel } from \"./\";\n\nexport const PostTypesSettingsPanels = function (props) {\n let panels = [];\n\n for (const [postType, postTypeSettings] of Object.entries(props.settings)) {\n panels.push(\n \n );\n }\n\n return (panels);\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\nimport { SelectControl as WPSelectControl } from \"&wp.components\";\n\nexport const SelectControl = function (props) {\n const onChange = (value) => {\n props.onChange(value);\n };\n\n return (\n \n {props.options.length === 0 && (\n
{props.noItemFoundMessage}
\n )}\n\n {props.options.length > 0 && (\n \n )}\n\n {props.children}\n\n

{props.description}

\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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 {props.legend}\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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) 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 \"&wp.element\";\nimport { TextControl as WPTextControl } from \"&wp.components\";\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 return (\n \n \n\n {description}\n \n )\n}\n","import { Button } from '&wp.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 \"&wp.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 \"&wp.element\";\nimport { FormTokenField } from \"&wp.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 {props.falseLabel}\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\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '&wp.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 termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\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_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 }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\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 },\n selectors: {\n getAction(state) {\n return state.action;\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 }\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 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 };\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.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 '&wp.element';\nimport { select } from '&wp.data';\nimport {\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n startOfWeek,\n strings,\n taxonomyName,\n postTypeDefaultConfig,\n defaultDate\n} from \"&config/classic-editor\";\nimport { render } from \"&ReactDOM\";\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 date: defaultDate,\n taxonomy: postTypeDefaultConfig.taxonomy,\n terms: postTypeDefaultConfig.terms,\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-classic-editor\");\n\n if (createRoot) {\n createRoot(container).render(\n \n );\n } else {\n render(\n ,\n container\n );\n }\n}\n"],"names":["ButtonsPanel","props","children","CheckboxControl","checked","setChecked","description","unescapedDescription","__html","onChange","value","label","name","className","DateTimePicker","currentDate","is12Hour","startOfWeek","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","Fragment","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","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","mapTermsListById","map","term","insertTerm","id","count","link","slug","mapTermsListByName","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","handleActionChange","handleDateChange","handleTermsChange","postType","path","per_page","then","list","forEach","cat","strings","category","response","parseInt","context","taxonomyAttributes","rest_base","storeCalendarIsVisibleOnStorage","localStorage","setItem","getCalendarIsVisibleFromStorage","getItem","autoEnableAndHideCheckbox","isCleanNewPost","selectedTerms","length","termsListByNameKeys","Object","keys","panelClass","contentPanelClass","datePanelClass","replaceCurlyBracketsWithLink","string","href","target","parts","split","result","push","shift","part","before","after","HelpText","timezoneSettingsHelp","enablePostExpiration","actionsSelectOptions","String","includes","loading","noTaxonomyFound","noTermsFound","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","editPostAttribute","newAttribute","publishpress_future_action","entries","store","getEditedPostAttribute","panelTitle","postTypeDefaultConfig","autoEnable","FutureActionPanelBulkEdit","join","changeAction","getChangeAction","setChangeAction","termsString","handleStrategyChange","options","noChange","changeAdd","addOnly","changeOnly","removeOnly","optionsToDisplayPanel","futureActionUpdate","isNewPost","nonce","FutureActionPanelClassicEditor","browserTimezoneOffset","Date","getTimezoneOffset","getElementByName","document","getElementsByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","onChangeTaxonomy","onChangeTerms","onChangeHowToExpire","onChangeActive","onChangeExpireOffset","onChangeEmailNotification","onChangeAutoEnabled","updateTermsOptionsState","settingsTermsOptions","option","taxonomiesList","taxAttributes","catch","error","console","debug","termOptionsLabels","settingsRows","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","noItemsfound","expireTypeList","filter","item","indexOf","fieldHowToExpire","fieldHowToExpireDescription","fieldTerm","fieldTermDescription","fieldDefaultDateTimeOffset","globalDefaultExpireOffset","fieldDefaultDateTimeOffsetDescription","fieldWhoToNotify","fieldWhoToNotifyDescription","useState","legend","PostTypesSettingsPanels","panels","postTypeSettings","noItemFoundMessage","selected","SettingRow","SettingsFieldset","SettingsForm","SettingsSection","title","SettingsTable","bodyChildren","SubmitButton","TextControl","placeholder","ToggleArrowButton","onClick","iconExpanded","iconCollapsed","icon","isExpanded","titleExpanded","titleCollapsed","ToggleCalendarDatePicker","onToggleCalendar","onChangeDate","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","TokensControl","stringValue","setStringValue","TrueFalseControl","e","trueValue","jQuery","is","trueLabel","falseValue","falseLabel","createStore","defaultState","reducer","state","type","getTime","actions","selectors","getCurrentTimeInSeconds","normalizeUnixTimeToSeconds","getCurrentTimeAsTimestamp","formatUnixTimeToTimestamp","unixTimestamp","year","getFullYear","month","getMonth","slice","day","hours","getHours","minutes","getMinutes","seconds","getSeconds","formatTimestampToUnixTime","time","timeIsInSeconds","toString","normalizeUnixTimeToMilliseconds","compact","array","Array","isArray","values","undefined","debugLogFactory","config","message","isDebugEnabled","isGutenbergEnabled","body","classList","contains","getFieldByName","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","isNumber","isNaN","expireType","defaultDate","container","getElementById","createRoot","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"classic-editor.js","mappings":";;;;;;;;;;;;;;;AAAA;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A;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;;;ACtBA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAWA;;AAEA,IAAI,CAAE,gCAAN,EAA4B;AACxB,QAAM6B,YAAY,mCAAlB;;AAEA,QAAI,CAAC,iBAAOA,SAAP,CAAL,EAAwB;AACpB,+BAAY;AACR3B,kBAAM2B,SADE;AAERwP,0BAAc;AACV3I,4BAAYD,qCAAsBC,UADxB;AAEV/G,wBAAQ8G,qCAAsByM,UAFpB;AAGVnT,sBAAMoT,0BAHI;AAIV9S,0BAAUoG,qCAAsBpG,QAJtB;AAKVF,uBAAOsG,qCAAsBtG;AALnB;AAFN,SAAZ;AAUH;;AAED,QAAMiT,YAAYnL,SAASoL,cAAT,CAAwB,oCAAxB,CAAlB;AACA,QAAMC,YACF,oBAAC,0CAAD;AACI,mBAAWzT,SADf;AAEI,kBAAUgD,uBAFd;AAGI,mBAAW6E,wBAHf;AAII,8BAAsBjC,mCAJ1B;AAKI,kBAAUnH,uBALd;AAMI,qBAAaC,0BANjB;AAOI,iBAAS6E,sBAPb;AAQI,sBAAc7C;AARlB,MADJ;;AAaA,QAAIgT,cAAJ,EAAgB;AACZ,4BAAWH,SAAX,EAAsBI,MAAtB,CAA6BF,SAA7B;AACH,KAFD,MAEO;AACH,8BAAOA,SAAP,EAAkBF,SAAlB;AACH;AACJ,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/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/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/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.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 \"&wp.element\";\nimport { CheckboxControl as WPCheckboxControl } from \"&wp.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 \"&wp.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';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect } = 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\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible\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 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 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 setIsFetchingTerms(true);\n\n if ((!taxonomy && props.postType === 'post') || taxonomy === 'category') {\n apiFetch({\n path: addQueryArgs('wp/v2/categories', { per_page: -1 }),\n }).then((list) => {\n list.forEach(cat => {\n termsListByName[cat.name] = cat;\n termsListById[cat.id] = cat.name;\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(props.strings.category);\n setIsFetchingTerms(false);\n });\n } else {\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/taxonomies/` + props.postType),\n }).then((response) => {\n if (parseInt(response.count) > 0) {\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${taxonomy}`, { context: 'edit', per_page: -1 }),\n }).then((taxonomyAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxonomyAttributes.rest_base}`, { context: 'edit', per_page: -1 }),\n }).then((terms) => {\n 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(taxonomyAttributes.name));\n setIsFetchingTerms(false);\n });\n });\n }\n });\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 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 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\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 const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n\n return (\n
\n {props.autoEnableAndHideCheckbox && (\n \n )}\n\n {! props.autoEnableAndHideCheckbox && (\n \n \n \n )}\n\n {enabled && (\n \n \n \n \n\n {\n String(action).includes('category') && (\n isFetchingTerms && (\n \n \n {`${props.strings.loading} (${taxonomyName})`}\n \n \n \n )\n || (!taxonomy && (\n \n \n {props.strings.noTaxonomyFound}\n \n \n )\n || (\n termsListByNameKeys.length === 0 && (\n \n \n {props.strings.noTermsFound}\n \n \n )\n || (\n \n \n \n \n \n )\n )\n )\n )\n }\n\n \n setCalendarIsVisible(!calendarIsVisible)}\n is12Hour={props.is12Hour}\n startOfWeek={props.startOfWeek}\n isExpanded={calendarIsVisible}\n strings={props.strings}\n />\n \n\n \n
\n
\n\n {HelpText}\n
\n
\n
\n )}\n
\n );\n};\n","import { FutureActionPanel } from './';\n\nexport const FutureActionPanelBlockEditor = (props) => {\n const { PluginDocumentSettingPanel } = wp.editPost;\n const { useDispatch, select } = wp.data;\n\n const { editPost } = useDispatch('core/editor');\n\n const editPostAttribute = (newAttribute) => {\n const attribute = {\n publishpress_future_action: {}\n };\n\n // For each property on newAttribute, set the value on attribute\n for (const [name, value] of Object.entries(newAttribute)) {\n attribute.publishpress_future_action[name] = value;\n }\n\n editPost(attribute);\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n const newAttribute = {\n 'enabled': store.getEnabled()\n }\n\n if (newAttribute.enabled) {\n newAttribute['action'] = store.getAction();\n newAttribute['date'] = store.getDate();\n newAttribute['terms'] = store.getTerms();\n newAttribute['taxonomy'] = store.getTaxonomy();\n }\n\n editPostAttribute(newAttribute);\n }\n\n const data = select('core/editor').getEditedPostAttribute('publishpress_future_action');\n\n return (\n \n
\n \n
\n \n );\n};\n","import { FutureActionPanel, SelectControl } from '.';\nimport { getElementByName } from '../utils';\n\nexport const FutureActionPanelBulkEdit = (props) => {\n const { useSelect, useDispatch, select } = wp.data;\n\n const onChangeData = (attribute, value) => {\n getElementByName('future_action_bulk_enabled').value = select(props.storeName).getEnabled() ? 1 : 0;\n getElementByName('future_action_bulk_action').value = select(props.storeName).getAction();\n getElementByName('future_action_bulk_date').value = select(props.storeName).getDate();\n getElementByName('future_action_bulk_terms').value = select(props.storeName).getTerms().join(',');\n getElementByName('future_action_bulk_taxonomy').value = select(props.storeName).getTaxonomy();\n }\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const changeAction = useSelect((select) => select(props.storeName).getChangeAction(), []);\n\n const {\n setChangeAction\n } = useDispatch(props.storeName);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n const handleStrategyChange = (value) => {\n setChangeAction(value);\n };\n\n const options = [\n { value: 'no-change', label: props.strings.noChange },\n { value: 'change-add', label: props.strings.changeAdd },\n { value: 'add-only', label: props.strings.addOnly },\n { value: 'change-only', label: props.strings.changeOnly },\n { value: 'remove-only', label: props.strings.removeOnly },\n ];\n\n const optionsToDisplayPanel = ['change-add', 'add-only', 'change-only'];\n\n return (\n
\n \n\n {optionsToDisplayPanel.includes(changeAction) && (\n \n )}\n\n {/* Bulk edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","import { FutureActionPanel } from \"./\";\nimport { select } from \"&wp.data\";\n\nexport const FutureActionPanelClassicEditor = (props) => {\n const browserTimezoneOffset = new Date().getTimezoneOffset();\n\n const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n getElementByName('future_action_enabled').value = store.getEnabled() ? 1 : 0;\n getElementByName('future_action_action').value = store.getAction();\n getElementByName('future_action_date').value = store.getDate();\n getElementByName('future_action_terms').value = store.getTerms().join(',');\n getElementByName('future_action_taxonomy').value = store.getTaxonomy();\n }\n\n const data = {\n enabled: getElementByName('future_action_enabled').value === '1',\n action: getElementByName('future_action_action').value,\n date: getElementByName('future_action_date').value,\n terms: getElementByName('future_action_terms').value.split(',').map(term => parseInt(term)),\n taxonomy: getElementByName('future_action_taxonomy').value,\n };\n\n return (\n
\n \n
\n );\n};\n","import { FutureActionPanel } from './';\nimport { useSelect } from '&wp.data';\n\nexport const FutureActionPanelQuickEdit = (props) => {\n const onChangeData = (attribute, value) => {};\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n return (\n
\n \n\n {/* Quick edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\n\nexport const NonceControl = function (props) {\n if (! props.name) {\n props.name = '_wpnonce';\n }\n\n if (! props.referrer) {\n props.referrer = true;\n }\n\n return (\n \n \n\n {props.referrer &&\n \n }\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport {\n SettingRow,\n SettingsFieldset,\n SettingsTable,\n SelectControl,\n TextControl,\n TokensControl,\n CheckboxControl\n} from './';\nimport { useEffect, useState } from '&wp.element';\nimport { addQueryArgs } from '&wp.url';\nimport { applyFilters } from '&wp.hooks';\nimport { apiFetch } from '&wp';\n\nexport const PostTypeSettingsPanel = function (props) {\n const [postTypeTaxonomy, setPostTypeTaxonomy] = useState(props.settings.taxonomy);\n const [termOptions, setTermOptions] = useState([]);\n const [termsSelectIsLoading, setTermsSelectIsLoading] = useState(false);\n const [selectedTerms, setSelectedTerms] = useState([]);\n const [settingHowToExpire, setSettingHowToExpire] = useState(props.settings.howToExpire);\n const [isActive, setIsActive] = useState(props.settings.active);\n const [expireOffset, setExpireOffset] = useState(props.settings.defaultExpireOffset);\n const [emailNotification, setEmailNotification] = useState(props.settings.emailNotification);\n const [isAutoEnabled, setIsAutoEnabled] = useState(props.settings.autoEnabled);\n\n const onChangeTaxonomy = function (value) {\n setPostTypeTaxonomy(value);\n };\n\n const onChangeTerms = (value) => {\n setSelectedTerms(value);\n };\n\n const onChangeHowToExpire = (value) => {\n setSettingHowToExpire(value);\n }\n\n const onChangeActive = (value) => {\n setIsActive(value);\n }\n\n const onChangeExpireOffset = (value) => {\n setExpireOffset(value);\n }\n\n const onChangeEmailNotification = (value) => {\n setEmailNotification(value);\n }\n\n const onChangeAutoEnabled = (value) => {\n setIsAutoEnabled(value);\n }\n\n useEffect(() => {\n const updateTermsOptionsState = (list) => {\n let options = [];\n\n let settingsTermsOptions = null;\n let option;\n list.forEach(term => {\n option = { value: term.id, label: term.name };\n options.push(option);\n\n if (postTypeTaxonomy === props.settings.taxonomy && props.settings.terms.includes(term.id)) {\n if (settingsTermsOptions === null) {\n settingsTermsOptions = [];\n }\n\n settingsTermsOptions.push(option.label);\n }\n });\n\n setTermOptions(options);\n setTermsSelectIsLoading(false);\n setSelectedTerms(settingsTermsOptions);\n };\n\n if ((!postTypeTaxonomy && props.postType === 'post') || postTypeTaxonomy === 'category') {\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/categories`, { per_page: -1 }),\n }).then(updateTermsOptionsState);\n } else {\n if (!postTypeTaxonomy || !props.taxonomiesList) {\n return;\n }\n\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${postTypeTaxonomy}`),\n }).then((taxAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxAttributes.rest_base}`),\n }).then(updateTermsOptionsState);\n }).catch((error) => {\n console.debug('Taxonomy terms error', error);\n setTermsSelectIsLoading(false);\n });\n }\n }, [postTypeTaxonomy]);\n\n const termOptionsLabels = termOptions.map((term) => term.label);\n\n let settingsRows = [\n \n \n \n ];\n\n if (isActive) {\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n \n );\n\n // Remove items from expireTypeList if related to taxonomies and there is no taxonmoy for the post type\n if (props.taxonomiesList.length === 0) {\n props.expireTypeList[props.postType] = props.expireTypeList[props.postType].filter((item) => {\n return ['category', 'category-add', 'category-remove'].indexOf(item.value) === -1;\n });\n }\n\n settingsRows.push(\n \n \n\n {(props.taxonomiesList.length > 0 && (['category', 'category-add', 'category-remove'].indexOf(settingHowToExpire) > -1)) &&\n \n }\n \n );\n\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n );\n }\n\n settingsRows = applyFilters('expirationdate_settings_posttype', settingsRows, props, isActive, useState);\n\n return (\n \n \n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport { PostTypeSettingsPanel } from \"./\";\n\nexport const PostTypesSettingsPanels = function (props) {\n let panels = [];\n\n for (const [postType, postTypeSettings] of Object.entries(props.settings)) {\n panels.push(\n \n );\n }\n\n return (panels);\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\nimport { SelectControl as WPSelectControl } from \"&wp.components\";\n\nexport const SelectControl = function (props) {\n const onChange = (value) => {\n props.onChange(value);\n };\n\n return (\n \n {props.options.length === 0 && (\n
{props.noItemFoundMessage}
\n )}\n\n {props.options.length > 0 && (\n \n )}\n\n {props.children}\n\n

{props.description}

\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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 {props.legend}\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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) 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 \"&wp.element\";\nimport { TextControl as WPTextControl } from \"&wp.components\";\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 return (\n \n \n\n {description}\n \n )\n}\n","import { Button } from '&wp.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 \"&wp.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 \"&wp.element\";\nimport { FormTokenField } from \"&wp.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 {props.falseLabel}\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\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '&wp.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 termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\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_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 }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\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 },\n selectors: {\n getAction(state) {\n return state.action;\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 }\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 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 };\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.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 '&wp.element';\nimport { select } from '&wp.data';\nimport {\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n startOfWeek,\n strings,\n taxonomyName,\n postTypeDefaultConfig,\n defaultDate\n} from \"&config/classic-editor\";\nimport { render } from \"&ReactDOM\";\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 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 if (createRoot) {\n createRoot(container).render(component);\n } else {\n render(component, container);\n }\n}\n"],"names":["ButtonsPanel","props","children","CheckboxControl","checked","setChecked","description","unescapedDescription","__html","onChange","value","label","name","className","DateTimePicker","currentDate","is12Hour","startOfWeek","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","Fragment","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","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","mapTermsListById","map","term","insertTerm","id","count","link","slug","mapTermsListByName","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","handleActionChange","handleDateChange","handleTermsChange","postType","path","per_page","then","list","forEach","cat","strings","category","response","parseInt","context","taxonomyAttributes","rest_base","storeCalendarIsVisibleOnStorage","localStorage","setItem","getCalendarIsVisibleFromStorage","getItem","autoEnableAndHideCheckbox","isCleanNewPost","selectedTerms","length","termsListByNameKeys","Object","keys","panelClass","contentPanelClass","datePanelClass","replaceCurlyBracketsWithLink","string","href","target","parts","split","result","push","shift","part","before","after","HelpText","timezoneSettingsHelp","enablePostExpiration","actionsSelectOptions","String","includes","loading","noTaxonomyFound","noTermsFound","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","editPostAttribute","newAttribute","publishpress_future_action","entries","store","getEditedPostAttribute","panelTitle","postTypeDefaultConfig","autoEnable","FutureActionPanelBulkEdit","join","changeAction","getChangeAction","setChangeAction","termsString","handleStrategyChange","options","noChange","changeAdd","addOnly","changeOnly","removeOnly","optionsToDisplayPanel","futureActionUpdate","isNewPost","nonce","FutureActionPanelClassicEditor","browserTimezoneOffset","Date","getTimezoneOffset","getElementByName","document","getElementsByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","onChangeTaxonomy","onChangeTerms","onChangeHowToExpire","onChangeActive","onChangeExpireOffset","onChangeEmailNotification","onChangeAutoEnabled","updateTermsOptionsState","settingsTermsOptions","option","taxonomiesList","taxAttributes","catch","error","console","debug","termOptionsLabels","settingsRows","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","noItemsfound","expireTypeList","filter","item","indexOf","fieldHowToExpire","fieldHowToExpireDescription","fieldTerm","fieldTermDescription","fieldDefaultDateTimeOffset","globalDefaultExpireOffset","fieldDefaultDateTimeOffsetDescription","fieldWhoToNotify","fieldWhoToNotifyDescription","useState","legend","PostTypesSettingsPanels","panels","postTypeSettings","noItemFoundMessage","selected","SettingRow","SettingsFieldset","SettingsForm","SettingsSection","title","SettingsTable","bodyChildren","SubmitButton","TextControl","placeholder","ToggleArrowButton","onClick","iconExpanded","iconCollapsed","icon","isExpanded","titleExpanded","titleCollapsed","ToggleCalendarDatePicker","onToggleCalendar","onChangeDate","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","TokensControl","stringValue","setStringValue","TrueFalseControl","e","trueValue","jQuery","is","trueLabel","falseValue","falseLabel","createStore","defaultState","reducer","state","type","getTime","actions","selectors","getCurrentTimeInSeconds","normalizeUnixTimeToSeconds","getCurrentTimeAsTimestamp","formatUnixTimeToTimestamp","unixTimestamp","year","getFullYear","month","getMonth","slice","day","hours","getHours","minutes","getMinutes","seconds","getSeconds","formatTimestampToUnixTime","time","timeIsInSeconds","toString","normalizeUnixTimeToMilliseconds","compact","array","Array","isArray","values","undefined","debugLogFactory","config","message","isDebugEnabled","isGutenbergEnabled","body","classList","contains","getFieldByName","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","isNumber","isNaN","expireType","defaultDate","container","getElementById","component","createRoot","render"],"sourceRoot":""} \ No newline at end of file diff --git a/assets/js/quick-edit.js b/assets/js/quick-edit.js index dabd68759..2777a6f2a 100644 --- a/assets/js/quick-edit.js +++ b/assets/js/quick-edit.js @@ -2635,6 +2635,17 @@ _window.inlineEditPost.edit = function (button, id) { } var container = document.getElementById("publishpress-future-quick-edit"); + var component = React.createElement(_components.FutureActionPanelQuickEdit, { + storeName: storeName, + postType: _quickEdit.postType, + isNewPost: _quickEdit.isNewPost, + actionsSelectOptions: _quickEdit.actionsSelectOptions, + is12Hour: _quickEdit.is12Hour, + startOfWeek: _quickEdit.startOfWeek, + strings: _quickEdit.strings, + taxonomyName: _quickEdit.taxonomyName, + nonce: _quickEdit.nonce + }); if (_wp.createRoot) { var root = (0, _wp.createRoot)(container); @@ -2648,17 +2659,7 @@ _window.inlineEditPost.edit = function (button, id) { }; } - root.render(React.createElement(_components.FutureActionPanelQuickEdit, { - storeName: storeName, - postType: _quickEdit.postType, - isNewPost: _quickEdit.isNewPost, - actionsSelectOptions: _quickEdit.actionsSelectOptions, - is12Hour: _quickEdit.is12Hour, - startOfWeek: _quickEdit.startOfWeek, - strings: _quickEdit.strings, - taxonomyName: _quickEdit.taxonomyName, - nonce: _quickEdit.nonce - })); + root.render(component); _window.inlineEditPost.revert = function () { root.unmount(); @@ -2667,17 +2668,7 @@ _window.inlineEditPost.edit = function (button, id) { wpInlineEditRevert.apply(this, arguments); }; } else { - (0, _ReactDOM.render)(React.createElement(_components.FutureActionPanelQuickEdit, { - storeName: storeName, - postType: _quickEdit.postType, - isNewPost: _quickEdit.isNewPost, - actionsSelectOptions: _quickEdit.actionsSelectOptions, - is12Hour: _quickEdit.is12Hour, - startOfWeek: _quickEdit.startOfWeek, - strings: _quickEdit.strings, - taxonomyName: _quickEdit.taxonomyName, - nonce: _quickEdit.nonce - }), container); + (0, _ReactDOM.render)(component, container); } }; })(); diff --git a/assets/js/quick-edit.js.map b/assets/js/quick-edit.js.map index b7a5e438d..5e03f6761 100644 --- a/assets/js/quick-edit.js.map +++ b/assets/js/quick-edit.js.map @@ -1 +1 @@ -{"version":3,"file":"quick-edit.js","mappings":";;;;;;;;;;;;;;;AAAA;;;;AAIO,IAAMA,eAAeA,oBAAAA,GAAA,SAAfA,YAAe,CAAUC,KAAV,EAAiB;AACzC,WACI;AAAA;AAAA;AACKA,cAAMC;AADX,KADJ;AAKH,CANM;;;;;;;;;;;;;;;;;ypBCJP;;;;;AAGA;;AACA;;AAEO,IAAMC,kBAAkBA,uBAAAA,GAAA,SAAlBA,eAAkB,CAAUF,KAAV,EAAiB;AAAA,oBACd,kBAASA,MAAMG,OAAN,IAAiB,KAA1B,CADc;AAAA;AAAA,QACrCA,OADqC;AAAA,QAC5BC,UAD4B;;AAG5C,QAAIC,oBAAJ;;AAEA,QAAIL,MAAMM,oBAAV,EAAgC;AAC5B;AACAD,sBAAc,2BAAG,WAAU,aAAb,EAA2B,yBAAyB,EAAEE,QAAQP,MAAMK,WAAhB,EAApD,GAAd;AACH,KAHD,MAGO;AACHA,sBAAc;AAAA;AAAA,cAAG,WAAU,aAAb;AAA4BL,kBAAMK;AAAlC,SAAd;AACH;;AAED,QAAMG,WAAW,SAAXA,QAAW,CAAUC,KAAV,EAAiB;AAC9BL,mBAAWK,KAAX;;AAEA,YAAIT,MAAMQ,QAAV,EAAoB;AAChBR,kBAAMQ,Q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AGH,aAJD;AAKH;;AAEDgB,aAAKK,MAAL,CACI,oBAAC,sCAAD;AACI,uBAAW1U,SADf;AAEI,sBAAUgD,mBAFd;AAGI,uBAAW6E,oBAHf;AAII,kCAAsBjC,+BAJ1B;AAKI,sBAAUnH,mBALd;AAMI,yBAAaC,sBANjB;AAOI,qBAAS6E,kBAPb;AAQI,0BAAc7C,uBARlB;AASI,mBAAOoH;AATX,UADJ;;AAcAyL,+BAAeG,MAAf,GAAwB,YAAY;AAChCW,iBAAKI,OAAL;;AAEA;AACAhB,+BAAmBO,KAAnB,CAAyB,IAAzB,EAA+BC,SAA/B;AACH,SALD;AAMH,KAhCD,MAgCO;AACH,8BACI,oBAAC,sCAAD;AACI,uBAAWjU,SADf;AAEI,sBAAUgD,mBAFd;AAGI,uBAAW6E,oBAHf;AAII,kCAAsBjC,+BAJ1B;AAKI,sBAAUnH,mBALd;AAMI,yBAAaC,sBANjB;AAOI,qBAAS6E,kBAPb;AAQI,0BAAc7C,uBARlB;AASI,mBAAOoH;AATX,UADJ,EAYIoM,SAZJ;AAcH;AACJ,CAvFD,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/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/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/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 \"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.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 \"&wp.element\";\nimport { CheckboxControl as WPCheckboxControl } from \"&wp.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 \"&wp.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';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect } = 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\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible\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 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 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 setIsFetchingTerms(true);\n\n if ((!taxonomy && props.postType === 'post') || taxonomy === 'category') {\n apiFetch({\n path: addQueryArgs('wp/v2/categories', { per_page: -1 }),\n }).then((list) => {\n list.forEach(cat => {\n termsListByName[cat.name] = cat;\n termsListById[cat.id] = cat.name;\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(props.strings.category);\n setIsFetchingTerms(false);\n });\n } else {\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/taxonomies/` + props.postType),\n }).then((response) => {\n if (parseInt(response.count) > 0) {\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${taxonomy}`, { context: 'edit', per_page: -1 }),\n }).then((taxonomyAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxonomyAttributes.rest_base}`, { context: 'edit', per_page: -1 }),\n }).then((terms) => {\n 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(taxonomyAttributes.name));\n setIsFetchingTerms(false);\n });\n });\n }\n });\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 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 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\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 const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n\n return (\n
\n {props.autoEnableAndHideCheckbox && (\n \n )}\n\n {! props.autoEnableAndHideCheckbox && (\n \n \n \n )}\n\n {enabled && (\n \n \n \n \n\n {\n String(action).includes('category') && (\n isFetchingTerms && (\n \n \n {`${props.strings.loading} (${taxonomyName})`}\n \n \n \n )\n || (!taxonomy && (\n \n \n {props.strings.noTaxonomyFound}\n \n \n )\n || (\n termsListByNameKeys.length === 0 && (\n \n \n {props.strings.noTermsFound}\n \n \n )\n || (\n \n \n \n \n \n )\n )\n )\n )\n }\n\n \n setCalendarIsVisible(!calendarIsVisible)}\n is12Hour={props.is12Hour}\n startOfWeek={props.startOfWeek}\n isExpanded={calendarIsVisible}\n strings={props.strings}\n />\n \n\n \n
\n
\n\n {HelpText}\n
\n
\n
\n )}\n
\n );\n};\n","import { FutureActionPanel } from './';\n\nexport const FutureActionPanelBlockEditor = (props) => {\n const { PluginDocumentSettingPanel } = wp.editPost;\n const { useDispatch, select } = wp.data;\n\n const { editPost } = useDispatch('core/editor');\n\n const editPostAttribute = (newAttribute) => {\n const attribute = {\n publishpress_future_action: {}\n };\n\n // For each property on newAttribute, set the value on attribute\n for (const [name, value] of Object.entries(newAttribute)) {\n attribute.publishpress_future_action[name] = value;\n }\n\n editPost(attribute);\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n const newAttribute = {\n 'enabled': store.getEnabled()\n }\n\n if (newAttribute.enabled) {\n newAttribute['action'] = store.getAction();\n newAttribute['date'] = store.getDate();\n newAttribute['terms'] = store.getTerms();\n newAttribute['taxonomy'] = store.getTaxonomy();\n }\n\n editPostAttribute(newAttribute);\n }\n\n const data = select('core/editor').getEditedPostAttribute('publishpress_future_action');\n\n return (\n \n
\n \n
\n \n );\n};\n","import { FutureActionPanel, SelectControl } from '.';\nimport { getElementByName } from '../utils';\n\nexport const FutureActionPanelBulkEdit = (props) => {\n const { useSelect, useDispatch, select } = wp.data;\n\n const onChangeData = (attribute, value) => {\n getElementByName('future_action_bulk_enabled').value = select(props.storeName).getEnabled() ? 1 : 0;\n getElementByName('future_action_bulk_action').value = select(props.storeName).getAction();\n getElementByName('future_action_bulk_date').value = select(props.storeName).getDate();\n getElementByName('future_action_bulk_terms').value = select(props.storeName).getTerms().join(',');\n getElementByName('future_action_bulk_taxonomy').value = select(props.storeName).getTaxonomy();\n }\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const changeAction = useSelect((select) => select(props.storeName).getChangeAction(), []);\n\n const {\n setChangeAction\n } = useDispatch(props.storeName);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n const handleStrategyChange = (value) => {\n setChangeAction(value);\n };\n\n const options = [\n { value: 'no-change', label: props.strings.noChange },\n { value: 'change-add', label: props.strings.changeAdd },\n { value: 'add-only', label: props.strings.addOnly },\n { value: 'change-only', label: props.strings.changeOnly },\n { value: 'remove-only', label: props.strings.removeOnly },\n ];\n\n const optionsToDisplayPanel = ['change-add', 'add-only', 'change-only'];\n\n return (\n
\n \n\n {optionsToDisplayPanel.includes(changeAction) && (\n \n )}\n\n {/* Bulk edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","import { FutureActionPanel } from \"./\";\nimport { select } from \"&wp.data\";\n\nexport const FutureActionPanelClassicEditor = (props) => {\n const browserTimezoneOffset = new Date().getTimezoneOffset();\n\n const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n getElementByName('future_action_enabled').value = store.getEnabled() ? 1 : 0;\n getElementByName('future_action_action').value = store.getAction();\n getElementByName('future_action_date').value = store.getDate();\n getElementByName('future_action_terms').value = store.getTerms().join(',');\n getElementByName('future_action_taxonomy').value = store.getTaxonomy();\n }\n\n const data = {\n enabled: getElementByName('future_action_enabled').value === '1',\n action: getElementByName('future_action_action').value,\n date: getElementByName('future_action_date').value,\n terms: getElementByName('future_action_terms').value.split(',').map(term => parseInt(term)),\n taxonomy: getElementByName('future_action_taxonomy').value,\n };\n\n return (\n
\n \n
\n );\n};\n","import { FutureActionPanel } from './';\nimport { useSelect } from '&wp.data';\n\nexport const FutureActionPanelQuickEdit = (props) => {\n const onChangeData = (attribute, value) => {};\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n return (\n
\n \n\n {/* Quick edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\n\nexport const NonceControl = function (props) {\n if (! props.name) {\n props.name = '_wpnonce';\n }\n\n if (! props.referrer) {\n props.referrer = true;\n }\n\n return (\n \n \n\n {props.referrer &&\n \n }\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport {\n SettingRow,\n SettingsFieldset,\n SettingsTable,\n SelectControl,\n TextControl,\n TokensControl,\n CheckboxControl\n} from './';\nimport { useEffect, useState } from '&wp.element';\nimport { addQueryArgs } from '&wp.url';\nimport { applyFilters } from '&wp.hooks';\nimport { apiFetch } from '&wp';\n\nexport const PostTypeSettingsPanel = function (props) {\n const [postTypeTaxonomy, setPostTypeTaxonomy] = useState(props.settings.taxonomy);\n const [termOptions, setTermOptions] = useState([]);\n const [termsSelectIsLoading, setTermsSelectIsLoading] = useState(false);\n const [selectedTerms, setSelectedTerms] = useState([]);\n const [settingHowToExpire, setSettingHowToExpire] = useState(props.settings.howToExpire);\n const [isActive, setIsActive] = useState(props.settings.active);\n const [expireOffset, setExpireOffset] = useState(props.settings.defaultExpireOffset);\n const [emailNotification, setEmailNotification] = useState(props.settings.emailNotification);\n const [isAutoEnabled, setIsAutoEnabled] = useState(props.settings.autoEnabled);\n\n const onChangeTaxonomy = function (value) {\n setPostTypeTaxonomy(value);\n };\n\n const onChangeTerms = (value) => {\n setSelectedTerms(value);\n };\n\n const onChangeHowToExpire = (value) => {\n setSettingHowToExpire(value);\n }\n\n const onChangeActive = (value) => {\n setIsActive(value);\n }\n\n const onChangeExpireOffset = (value) => {\n setExpireOffset(value);\n }\n\n const onChangeEmailNotification = (value) => {\n setEmailNotification(value);\n }\n\n const onChangeAutoEnabled = (value) => {\n setIsAutoEnabled(value);\n }\n\n useEffect(() => {\n const updateTermsOptionsState = (list) => {\n let options = [];\n\n let settingsTermsOptions = null;\n let option;\n list.forEach(term => {\n option = { value: term.id, label: term.name };\n options.push(option);\n\n if (postTypeTaxonomy === props.settings.taxonomy && props.settings.terms.includes(term.id)) {\n if (settingsTermsOptions === null) {\n settingsTermsOptions = [];\n }\n\n settingsTermsOptions.push(option.label);\n }\n });\n\n setTermOptions(options);\n setTermsSelectIsLoading(false);\n setSelectedTerms(settingsTermsOptions);\n };\n\n if ((!postTypeTaxonomy && props.postType === 'post') || postTypeTaxonomy === 'category') {\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/categories`, { per_page: -1 }),\n }).then(updateTermsOptionsState);\n } else {\n if (!postTypeTaxonomy || !props.taxonomiesList) {\n return;\n }\n\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${postTypeTaxonomy}`),\n }).then((taxAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxAttributes.rest_base}`),\n }).then(updateTermsOptionsState);\n }).catch((error) => {\n console.debug('Taxonomy terms error', error);\n setTermsSelectIsLoading(false);\n });\n }\n }, [postTypeTaxonomy]);\n\n const termOptionsLabels = termOptions.map((term) => term.label);\n\n let settingsRows = [\n \n \n \n ];\n\n if (isActive) {\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n \n );\n\n // Remove items from expireTypeList if related to taxonomies and there is no taxonmoy for the post type\n if (props.taxonomiesList.length === 0) {\n props.expireTypeList[props.postType] = props.expireTypeList[props.postType].filter((item) => {\n return ['category', 'category-add', 'category-remove'].indexOf(item.value) === -1;\n });\n }\n\n settingsRows.push(\n \n \n\n {(props.taxonomiesList.length > 0 && (['category', 'category-add', 'category-remove'].indexOf(settingHowToExpire) > -1)) &&\n \n }\n \n );\n\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n );\n }\n\n settingsRows = applyFilters('expirationdate_settings_posttype', settingsRows, props, isActive, useState);\n\n return (\n \n \n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport { PostTypeSettingsPanel } from \"./\";\n\nexport const PostTypesSettingsPanels = function (props) {\n let panels = [];\n\n for (const [postType, postTypeSettings] of Object.entries(props.settings)) {\n panels.push(\n \n );\n }\n\n return (panels);\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\nimport { SelectControl as WPSelectControl } from \"&wp.components\";\n\nexport const SelectControl = function (props) {\n const onChange = (value) => {\n props.onChange(value);\n };\n\n return (\n \n {props.options.length === 0 && (\n
{props.noItemFoundMessage}
\n )}\n\n {props.options.length > 0 && (\n \n )}\n\n {props.children}\n\n

{props.description}

\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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 {props.legend}\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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) 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 \"&wp.element\";\nimport { TextControl as WPTextControl } from \"&wp.components\";\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 return (\n \n \n\n {description}\n \n )\n}\n","import { Button } from '&wp.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 \"&wp.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 \"&wp.element\";\nimport { FormTokenField } from \"&wp.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 {props.falseLabel}\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\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '&wp.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 termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\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_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 }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\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 },\n selectors: {\n getAction(state) {\n return state.action;\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 }\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 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 };\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 = 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.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 '&wp.element';\nimport { select, dispatch } from '&wp.data';\nimport { inlineEditPost } from \"&window\";\nimport {\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n startOfWeek,\n strings,\n taxonomyName,\n nonce\n} from \"&config/quick-edit\";\nimport { render } from \"&ReactDOM\";\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 const enabled = data.enabled;\n const action = data.action;\n const date = data.date;\n const taxonomy = data.taxonomy;\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 } else {\n createStore({\n name: storeName,\n defaultState: {\n autoEnable: enabled,\n action: action,\n date: date,\n taxonomy: taxonomy,\n terms: terms,\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-quick-edit\");\n\n if (createRoot) {\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 root.render(\n \n );\n\n inlineEditPost.revert = function () {\n root.unmount();\n\n // Call the original WP revert function.\n wpInlineEditRevert.apply(this, arguments);\n };\n } else {\n render(\n ,\n container\n );\n }\n};\n"],"names":["ButtonsPanel","props","children","CheckboxControl","checked","setChecked","description","unescapedDescription","__html","onChange","value","label","name","className","DateTimePicker","currentDate","is12Hour","startOfWeek","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","Fragment","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","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","mapTermsListById","map","term","insertTerm","id","count","link","slug","mapTermsListByName","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","handleActionChange","handleDateChange","handleTermsChange","postType","path","per_page","then","list","forEach","cat","strings","category","response","parseInt","context","taxonomyAttributes","rest_base","storeCalendarIsVisibleOnStorage","localStorage","setItem","getCalendarIsVisibleFromStorage","getItem","autoEnableAndHideCheckbox","isCleanNewPost","selectedTerms","length","termsListByNameKeys","Object","keys","panelClass","contentPanelClass","datePanelClass","replaceCurlyBracketsWithLink","string","href","target","parts","split","result","push","shift","part","before","after","HelpText","timezoneSettingsHelp","enablePostExpiration","actionsSelectOptions","String","includes","loading","noTaxonomyFound","noTermsFound","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","editPostAttribute","newAttribute","publishpress_future_action","entries","store","getEditedPostAttribute","panelTitle","postTypeDefaultConfig","autoEnable","FutureActionPanelBulkEdit","join","changeAction","getChangeAction","setChangeAction","termsString","handleStrategyChange","options","noChange","changeAdd","addOnly","changeOnly","removeOnly","optionsToDisplayPanel","futureActionUpdate","isNewPost","nonce","FutureActionPanelClassicEditor","browserTimezoneOffset","Date","getTimezoneOffset","getElementByName","document","getElementsByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","onChangeTaxonomy","onChangeTerms","onChangeHowToExpire","onChangeActive","onChangeExpireOffset","onChangeEmailNotification","onChangeAutoEnabled","updateTermsOptionsState","settingsTermsOptions","option","taxonomiesList","taxAttributes","catch","error","console","debug","termOptionsLabels","settingsRows","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","noItemsfound","expireTypeList","filter","item","indexOf","fieldHowToExpire","fieldHowToExpireDescription","fieldTerm","fieldTermDescription","fieldDefaultDateTimeOffset","globalDefaultExpireOffset","fieldDefaultDateTimeOffsetDescription","fieldWhoToNotify","fieldWhoToNotifyDescription","useState","legend","PostTypesSettingsPanels","panels","postTypeSettings","noItemFoundMessage","selected","SettingRow","SettingsFieldset","SettingsForm","SettingsSection","title","SettingsTable","bodyChildren","SubmitButton","TextControl","placeholder","ToggleArrowButton","onClick","iconExpanded","iconCollapsed","icon","isExpanded","titleExpanded","titleCollapsed","ToggleCalendarDatePicker","onToggleCalendar","onChangeDate","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","TokensControl","stringValue","setStringValue","TrueFalseControl","e","trueValue","jQuery","is","trueLabel","falseValue","falseLabel","createStore","defaultState","reducer","state","type","getTime","actions","selectors","getCurrentTimeInSeconds","normalizeUnixTimeToSeconds","getCurrentTimeAsTimestamp","formatUnixTimeToTimestamp","unixTimestamp","year","getFullYear","month","getMonth","slice","day","hours","getHours","minutes","getMinutes","seconds","getSeconds","formatTimestampToUnixTime","time","timeIsInSeconds","toString","normalizeUnixTimeToMilliseconds","compact","array","Array","isArray","values","undefined","debugLogFactory","config","message","isDebugEnabled","isGutenbergEnabled","body","classList","contains","getFieldByName","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","isNumber","isNaN","delayToUnmountAfterSaving","wpInlineEdit","inlineEditPost","edit","wpInlineEditRevert","revert","getPostIdFromButton","trElement","closest","trId","button","apply","arguments","container","getElementById","createRoot","root","saveButton","onclick","setTimeout","unmount","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"quick-edit.js","mappings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H;AACJ,CA3ED,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/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/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/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 \"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.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 \"&wp.element\";\nimport { CheckboxControl as WPCheckboxControl } from \"&wp.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 \"&wp.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';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect } = 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\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible\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 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 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 setIsFetchingTerms(true);\n\n if ((!taxonomy && props.postType === 'post') || taxonomy === 'category') {\n apiFetch({\n path: addQueryArgs('wp/v2/categories', { per_page: -1 }),\n }).then((list) => {\n list.forEach(cat => {\n termsListByName[cat.name] = cat;\n termsListById[cat.id] = cat.name;\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(props.strings.category);\n setIsFetchingTerms(false);\n });\n } else {\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/taxonomies/` + props.postType),\n }).then((response) => {\n if (parseInt(response.count) > 0) {\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${taxonomy}`, { context: 'edit', per_page: -1 }),\n }).then((taxonomyAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxonomyAttributes.rest_base}`, { context: 'edit', per_page: -1 }),\n }).then((terms) => {\n 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(taxonomyAttributes.name));\n setIsFetchingTerms(false);\n });\n });\n }\n });\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 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 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\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 const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n\n return (\n
\n {props.autoEnableAndHideCheckbox && (\n \n )}\n\n {! props.autoEnableAndHideCheckbox && (\n \n \n \n )}\n\n {enabled && (\n \n \n \n \n\n {\n String(action).includes('category') && (\n isFetchingTerms && (\n \n \n {`${props.strings.loading} (${taxonomyName})`}\n \n \n \n )\n || (!taxonomy && (\n \n \n {props.strings.noTaxonomyFound}\n \n \n )\n || (\n termsListByNameKeys.length === 0 && (\n \n \n {props.strings.noTermsFound}\n \n \n )\n || (\n \n \n \n \n \n )\n )\n )\n )\n }\n\n \n setCalendarIsVisible(!calendarIsVisible)}\n is12Hour={props.is12Hour}\n startOfWeek={props.startOfWeek}\n isExpanded={calendarIsVisible}\n strings={props.strings}\n />\n \n\n \n
\n
\n\n {HelpText}\n
\n
\n
\n )}\n
\n );\n};\n","import { FutureActionPanel } from './';\n\nexport const FutureActionPanelBlockEditor = (props) => {\n const { PluginDocumentSettingPanel } = wp.editPost;\n const { useDispatch, select } = wp.data;\n\n const { editPost } = useDispatch('core/editor');\n\n const editPostAttribute = (newAttribute) => {\n const attribute = {\n publishpress_future_action: {}\n };\n\n // For each property on newAttribute, set the value on attribute\n for (const [name, value] of Object.entries(newAttribute)) {\n attribute.publishpress_future_action[name] = value;\n }\n\n editPost(attribute);\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n const newAttribute = {\n 'enabled': store.getEnabled()\n }\n\n if (newAttribute.enabled) {\n newAttribute['action'] = store.getAction();\n newAttribute['date'] = store.getDate();\n newAttribute['terms'] = store.getTerms();\n newAttribute['taxonomy'] = store.getTaxonomy();\n }\n\n editPostAttribute(newAttribute);\n }\n\n const data = select('core/editor').getEditedPostAttribute('publishpress_future_action');\n\n return (\n \n
\n \n
\n \n );\n};\n","import { FutureActionPanel, SelectControl } from '.';\nimport { getElementByName } from '../utils';\n\nexport const FutureActionPanelBulkEdit = (props) => {\n const { useSelect, useDispatch, select } = wp.data;\n\n const onChangeData = (attribute, value) => {\n getElementByName('future_action_bulk_enabled').value = select(props.storeName).getEnabled() ? 1 : 0;\n getElementByName('future_action_bulk_action').value = select(props.storeName).getAction();\n getElementByName('future_action_bulk_date').value = select(props.storeName).getDate();\n getElementByName('future_action_bulk_terms').value = select(props.storeName).getTerms().join(',');\n getElementByName('future_action_bulk_taxonomy').value = select(props.storeName).getTaxonomy();\n }\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const changeAction = useSelect((select) => select(props.storeName).getChangeAction(), []);\n\n const {\n setChangeAction\n } = useDispatch(props.storeName);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n const handleStrategyChange = (value) => {\n setChangeAction(value);\n };\n\n const options = [\n { value: 'no-change', label: props.strings.noChange },\n { value: 'change-add', label: props.strings.changeAdd },\n { value: 'add-only', label: props.strings.addOnly },\n { value: 'change-only', label: props.strings.changeOnly },\n { value: 'remove-only', label: props.strings.removeOnly },\n ];\n\n const optionsToDisplayPanel = ['change-add', 'add-only', 'change-only'];\n\n return (\n
\n \n\n {optionsToDisplayPanel.includes(changeAction) && (\n \n )}\n\n {/* Bulk edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","import { FutureActionPanel } from \"./\";\nimport { select } from \"&wp.data\";\n\nexport const FutureActionPanelClassicEditor = (props) => {\n const browserTimezoneOffset = new Date().getTimezoneOffset();\n\n const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n getElementByName('future_action_enabled').value = store.getEnabled() ? 1 : 0;\n getElementByName('future_action_action').value = store.getAction();\n getElementByName('future_action_date').value = store.getDate();\n getElementByName('future_action_terms').value = store.getTerms().join(',');\n getElementByName('future_action_taxonomy').value = store.getTaxonomy();\n }\n\n const data = {\n enabled: getElementByName('future_action_enabled').value === '1',\n action: getElementByName('future_action_action').value,\n date: getElementByName('future_action_date').value,\n terms: getElementByName('future_action_terms').value.split(',').map(term => parseInt(term)),\n taxonomy: getElementByName('future_action_taxonomy').value,\n };\n\n return (\n
\n \n
\n );\n};\n","import { FutureActionPanel } from './';\nimport { useSelect } from '&wp.data';\n\nexport const FutureActionPanelQuickEdit = (props) => {\n const onChangeData = (attribute, value) => {};\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n return (\n
\n \n\n {/* Quick edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\n\nexport const NonceControl = function (props) {\n if (! props.name) {\n props.name = '_wpnonce';\n }\n\n if (! props.referrer) {\n props.referrer = true;\n }\n\n return (\n \n \n\n {props.referrer &&\n \n }\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport {\n SettingRow,\n SettingsFieldset,\n SettingsTable,\n SelectControl,\n TextControl,\n TokensControl,\n CheckboxControl\n} from './';\nimport { useEffect, useState } from '&wp.element';\nimport { addQueryArgs } from '&wp.url';\nimport { applyFilters } from '&wp.hooks';\nimport { apiFetch } from '&wp';\n\nexport const PostTypeSettingsPanel = function (props) {\n const [postTypeTaxonomy, setPostTypeTaxonomy] = useState(props.settings.taxonomy);\n const [termOptions, setTermOptions] = useState([]);\n const [termsSelectIsLoading, setTermsSelectIsLoading] = useState(false);\n const [selectedTerms, setSelectedTerms] = useState([]);\n const [settingHowToExpire, setSettingHowToExpire] = useState(props.settings.howToExpire);\n const [isActive, setIsActive] = useState(props.settings.active);\n const [expireOffset, setExpireOffset] = useState(props.settings.defaultExpireOffset);\n const [emailNotification, setEmailNotification] = useState(props.settings.emailNotification);\n const [isAutoEnabled, setIsAutoEnabled] = useState(props.settings.autoEnabled);\n\n const onChangeTaxonomy = function (value) {\n setPostTypeTaxonomy(value);\n };\n\n const onChangeTerms = (value) => {\n setSelectedTerms(value);\n };\n\n const onChangeHowToExpire = (value) => {\n setSettingHowToExpire(value);\n }\n\n const onChangeActive = (value) => {\n setIsActive(value);\n }\n\n const onChangeExpireOffset = (value) => {\n setExpireOffset(value);\n }\n\n const onChangeEmailNotification = (value) => {\n setEmailNotification(value);\n }\n\n const onChangeAutoEnabled = (value) => {\n setIsAutoEnabled(value);\n }\n\n useEffect(() => {\n const updateTermsOptionsState = (list) => {\n let options = [];\n\n let settingsTermsOptions = null;\n let option;\n list.forEach(term => {\n option = { value: term.id, label: term.name };\n options.push(option);\n\n if (postTypeTaxonomy === props.settings.taxonomy && props.settings.terms.includes(term.id)) {\n if (settingsTermsOptions === null) {\n settingsTermsOptions = [];\n }\n\n settingsTermsOptions.push(option.label);\n }\n });\n\n setTermOptions(options);\n setTermsSelectIsLoading(false);\n setSelectedTerms(settingsTermsOptions);\n };\n\n if ((!postTypeTaxonomy && props.postType === 'post') || postTypeTaxonomy === 'category') {\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/categories`, { per_page: -1 }),\n }).then(updateTermsOptionsState);\n } else {\n if (!postTypeTaxonomy || !props.taxonomiesList) {\n return;\n }\n\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${postTypeTaxonomy}`),\n }).then((taxAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxAttributes.rest_base}`),\n }).then(updateTermsOptionsState);\n }).catch((error) => {\n console.debug('Taxonomy terms error', error);\n setTermsSelectIsLoading(false);\n });\n }\n }, [postTypeTaxonomy]);\n\n const termOptionsLabels = termOptions.map((term) => term.label);\n\n let settingsRows = [\n \n \n \n ];\n\n if (isActive) {\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n \n );\n\n // Remove items from expireTypeList if related to taxonomies and there is no taxonmoy for the post type\n if (props.taxonomiesList.length === 0) {\n props.expireTypeList[props.postType] = props.expireTypeList[props.postType].filter((item) => {\n return ['category', 'category-add', 'category-remove'].indexOf(item.value) === -1;\n });\n }\n\n settingsRows.push(\n \n \n\n {(props.taxonomiesList.length > 0 && (['category', 'category-add', 'category-remove'].indexOf(settingHowToExpire) > -1)) &&\n \n }\n \n );\n\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n );\n }\n\n settingsRows = applyFilters('expirationdate_settings_posttype', settingsRows, props, isActive, useState);\n\n return (\n \n \n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport { PostTypeSettingsPanel } from \"./\";\n\nexport const PostTypesSettingsPanels = function (props) {\n let panels = [];\n\n for (const [postType, postTypeSettings] of Object.entries(props.settings)) {\n panels.push(\n \n );\n }\n\n return (panels);\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\nimport { SelectControl as WPSelectControl } from \"&wp.components\";\n\nexport const SelectControl = function (props) {\n const onChange = (value) => {\n props.onChange(value);\n };\n\n return (\n \n {props.options.length === 0 && (\n
{props.noItemFoundMessage}
\n )}\n\n {props.options.length > 0 && (\n \n )}\n\n {props.children}\n\n

{props.description}

\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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 {props.legend}\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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) 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 \"&wp.element\";\nimport { TextControl as WPTextControl } from \"&wp.components\";\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 return (\n \n \n\n {description}\n \n )\n}\n","import { Button } from '&wp.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 \"&wp.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 \"&wp.element\";\nimport { FormTokenField } from \"&wp.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 {props.falseLabel}\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\";\n","import { formatUnixTimeToTimestamp, getCurrentTimeAsTimestamp, normalizeUnixTimeToSeconds } from './time';\nimport { isNumber } from './utils';\nimport { register, createReduxStore } from '&wp.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 termsListByName: null,\n termsListById: null,\n taxonomyName: null,\n isFetchingTerms: false,\n changeAction: 'no-change',\n calendarIsVisible: true,\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_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 }\n\n return state;\n },\n actions: {\n setAction(action) {\n return {\n type: 'SET_ACTION',\n action: action\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 },\n selectors: {\n getAction(state) {\n return state.action;\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 }\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 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 };\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 = 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.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 '&wp.element';\nimport { select, dispatch } from '&wp.data';\nimport { inlineEditPost } from \"&window\";\nimport {\n postType,\n isNewPost,\n actionsSelectOptions,\n is12Hour,\n startOfWeek,\n strings,\n taxonomyName,\n nonce\n} from \"&config/quick-edit\";\nimport { render } from \"&ReactDOM\";\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 const enabled = data.enabled;\n const action = data.action;\n const date = data.date;\n const taxonomy = data.taxonomy;\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 } else {\n createStore({\n name: storeName,\n defaultState: {\n autoEnable: enabled,\n action: action,\n date: date,\n taxonomy: taxonomy,\n terms: terms,\n }\n });\n }\n\n const container = document.getElementById(\"publishpress-future-quick-edit\");\n const component = (\n \n );\n\n if (createRoot) {\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 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 } else {\n render(component, container);\n }\n};\n"],"names":["ButtonsPanel","props","children","CheckboxControl","checked","setChecked","description","unescapedDescription","__html","onChange","value","label","name","className","DateTimePicker","currentDate","is12Hour","startOfWeek","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","Fragment","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","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","mapTermsListById","map","term","insertTerm","id","count","link","slug","mapTermsListByName","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","handleActionChange","handleDateChange","handleTermsChange","postType","path","per_page","then","list","forEach","cat","strings","category","response","parseInt","context","taxonomyAttributes","rest_base","storeCalendarIsVisibleOnStorage","localStorage","setItem","getCalendarIsVisibleFromStorage","getItem","autoEnableAndHideCheckbox","isCleanNewPost","selectedTerms","length","termsListByNameKeys","Object","keys","panelClass","contentPanelClass","datePanelClass","replaceCurlyBracketsWithLink","string","href","target","parts","split","result","push","shift","part","before","after","HelpText","timezoneSettingsHelp","enablePostExpiration","actionsSelectOptions","String","includes","loading","noTaxonomyFound","noTermsFound","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","editPostAttribute","newAttribute","publishpress_future_action","entries","store","getEditedPostAttribute","panelTitle","postTypeDefaultConfig","autoEnable","FutureActionPanelBulkEdit","join","changeAction","getChangeAction","setChangeAction","termsString","handleStrategyChange","options","noChange","changeAdd","addOnly","changeOnly","removeOnly","optionsToDisplayPanel","futureActionUpdate","isNewPost","nonce","FutureActionPanelClassicEditor","browserTimezoneOffset","Date","getTimezoneOffset","getElementByName","document","getElementsByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","onChangeTaxonomy","onChangeTerms","onChangeHowToExpire","onChangeActive","onChangeExpireOffset","onChangeEmailNotification","onChangeAutoEnabled","updateTermsOptionsState","settingsTermsOptions","option","taxonomiesList","taxAttributes","catch","error","console","debug","termOptionsLabels","settingsRows","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","noItemsfound","expireTypeList","filter","item","indexOf","fieldHowToExpire","fieldHowToExpireDescription","fieldTerm","fieldTermDescription","fieldDefaultDateTimeOffset","globalDefaultExpireOffset","fieldDefaultDateTimeOffsetDescription","fieldWhoToNotify","fieldWhoToNotifyDescription","useState","legend","PostTypesSettingsPanels","panels","postTypeSettings","noItemFoundMessage","selected","SettingRow","SettingsFieldset","SettingsForm","SettingsSection","title","SettingsTable","bodyChildren","SubmitButton","TextControl","placeholder","ToggleArrowButton","onClick","iconExpanded","iconCollapsed","icon","isExpanded","titleExpanded","titleCollapsed","ToggleCalendarDatePicker","onToggleCalendar","onChangeDate","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","TokensControl","stringValue","setStringValue","TrueFalseControl","e","trueValue","jQuery","is","trueLabel","falseValue","falseLabel","createStore","defaultState","reducer","state","type","getTime","actions","selectors","getCurrentTimeInSeconds","normalizeUnixTimeToSeconds","getCurrentTimeAsTimestamp","formatUnixTimeToTimestamp","unixTimestamp","year","getFullYear","month","getMonth","slice","day","hours","getHours","minutes","getMinutes","seconds","getSeconds","formatTimestampToUnixTime","time","timeIsInSeconds","toString","normalizeUnixTimeToMilliseconds","compact","array","Array","isArray","values","undefined","debugLogFactory","config","message","isDebugEnabled","isGutenbergEnabled","body","classList","contains","getFieldByName","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","isNumber","isNaN","delayToUnmountAfterSaving","wpInlineEdit","inlineEditPost","edit","wpInlineEditRevert","revert","getPostIdFromButton","trElement","closest","trId","button","apply","arguments","container","getElementById","component","createRoot","root","saveButton","onclick","setTimeout","unmount","render"],"sourceRoot":""} \ No newline at end of file diff --git a/assets/js/settings-post-types.js b/assets/js/settings-post-types.js index 42c93f6ff..212f0daf5 100644 --- a/assets/js/settings-post-types.js +++ b/assets/js/settings-post-types.js @@ -2374,11 +2374,11 @@ var SettingsFormPanel = function SettingsFormPanel(props) { }; var container = document.getElementById("publishpress-future-settings-post-types"); - +var component = React.createElement(SettingsFormPanel, null); if (_wp.createRoot) { - (0, _wp.createRoot)(container).render(React.createElement(SettingsFormPanel, null)); + (0, _wp.createRoot)(container).render(component); } else { - (0, _ReactDOM.render)(React.createElement(SettingsFormPanel, null), container); + (0, _ReactDOM.render)(component, container); } })(); diff --git a/assets/js/settings-post-types.js.map b/assets/js/settings-post-types.js.map index 1cc5657bc..2e60c1325 100644 --- a/assets/js/settings-post-types.js.map +++ b/assets/js/settings-post-types.js.map @@ -1 +1 @@ -{"version":3,"file":"settings-post-types.js","mappings":";;;;;;;;;;;;;;;AAAA;;;;AAIO,IAAMA,eAAeA,oBAAAA,GAAA,SAAfA,YAAe,CAAUC,KAAV,EAAiB;AACzC,WACI;AAAA;AAAA;AACKA,cAAMC;AADX,KADJ;AAKH,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;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;;;AClBA;;AASA;;AAEA;;AAQA;;AAvBA;;;;AAyBA,IAAM2U,oBAAoB,SAApBA,iBAAoB,CAACpV,KAAD,EAAW;AACjC,WACI;AAAC,sBAAD;AAAA;AACI;AAAC,oCAAD;AAAA;AACI,gCAAC,wBAAD;AACI,sBAAK,kCADT;AAEI,uBAAOoK,wBAFX;AAGI,0BAAUU;AAHd,cADJ;AAMI;AAAC,2CAAD;AAAA;AACI,2BAAO0C,wBAAK6H,oBADhB;AAEI,iCAAa7H,wBAAK8H,0BAFtB;AAGI,oCAAC,mCAAD;AACI,8BAAUtK,2BADd;AAEI,0BAAMwC,uBAFV;AAGI,oCAAgBO,iCAHpB;AAII,oCAAgBf;AAJpB;AAHJ,aANJ;AAiBI;AAAC,wCAAD;AAAA;AACI,oCAAC,wBAAD;AACI,0BAAK,4BADT;AAEI,0BAAMQ,wBAAK+H;AAFf;AADJ;AAjBJ;AADJ,KADJ;AA4BH,CA7BD;;AA+BA,IAAMC,YAAY9K,SAAS+K,cAAT,CAAwB,yCAAxB,CAAlB;;AAEA,IAAIC,cAAJ,EAAgB;AACZ,wBAAWF,SAAX,EAAsBG,MAAtB,CAA6B,oBAAC,iBAAD,OAA7B;AACH,CAFD,MAEO;AACH,0BAAO,oBAAC,iBAAD,OAAP,EAA8BH,SAA9B;AACH,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/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/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/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/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.url\"","webpack://post-expirator/webpack/bootstrap","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 \"&wp.element\";\nimport { CheckboxControl as WPCheckboxControl } from \"&wp.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 \"&wp.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';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect } = 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\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible\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 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 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 setIsFetchingTerms(true);\n\n if ((!taxonomy && props.postType === 'post') || taxonomy === 'category') {\n apiFetch({\n path: addQueryArgs('wp/v2/categories', { per_page: -1 }),\n }).then((list) => {\n list.forEach(cat => {\n termsListByName[cat.name] = cat;\n termsListById[cat.id] = cat.name;\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(props.strings.category);\n setIsFetchingTerms(false);\n });\n } else {\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/taxonomies/` + props.postType),\n }).then((response) => {\n if (parseInt(response.count) > 0) {\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${taxonomy}`, { context: 'edit', per_page: -1 }),\n }).then((taxonomyAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxonomyAttributes.rest_base}`, { context: 'edit', per_page: -1 }),\n }).then((terms) => {\n 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(taxonomyAttributes.name));\n setIsFetchingTerms(false);\n });\n });\n }\n });\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 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 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\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 const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n\n return (\n
\n {props.autoEnableAndHideCheckbox && (\n \n )}\n\n {! props.autoEnableAndHideCheckbox && (\n \n \n \n )}\n\n {enabled && (\n \n \n \n \n\n {\n String(action).includes('category') && (\n isFetchingTerms && (\n \n \n {`${props.strings.loading} (${taxonomyName})`}\n \n \n \n )\n || (!taxonomy && (\n \n \n {props.strings.noTaxonomyFound}\n \n \n )\n || (\n termsListByNameKeys.length === 0 && (\n \n \n {props.strings.noTermsFound}\n \n \n )\n || (\n \n \n \n \n \n )\n )\n )\n )\n }\n\n \n setCalendarIsVisible(!calendarIsVisible)}\n is12Hour={props.is12Hour}\n startOfWeek={props.startOfWeek}\n isExpanded={calendarIsVisible}\n strings={props.strings}\n />\n \n\n \n
\n
\n\n {HelpText}\n
\n
\n
\n )}\n
\n );\n};\n","import { FutureActionPanel } from './';\n\nexport const FutureActionPanelBlockEditor = (props) => {\n const { PluginDocumentSettingPanel } = wp.editPost;\n const { useDispatch, select } = wp.data;\n\n const { editPost } = useDispatch('core/editor');\n\n const editPostAttribute = (newAttribute) => {\n const attribute = {\n publishpress_future_action: {}\n };\n\n // For each property on newAttribute, set the value on attribute\n for (const [name, value] of Object.entries(newAttribute)) {\n attribute.publishpress_future_action[name] = value;\n }\n\n editPost(attribute);\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n const newAttribute = {\n 'enabled': store.getEnabled()\n }\n\n if (newAttribute.enabled) {\n newAttribute['action'] = store.getAction();\n newAttribute['date'] = store.getDate();\n newAttribute['terms'] = store.getTerms();\n newAttribute['taxonomy'] = store.getTaxonomy();\n }\n\n editPostAttribute(newAttribute);\n }\n\n const data = select('core/editor').getEditedPostAttribute('publishpress_future_action');\n\n return (\n \n
\n \n
\n \n );\n};\n","import { FutureActionPanel, SelectControl } from '.';\nimport { getElementByName } from '../utils';\n\nexport const FutureActionPanelBulkEdit = (props) => {\n const { useSelect, useDispatch, select } = wp.data;\n\n const onChangeData = (attribute, value) => {\n getElementByName('future_action_bulk_enabled').value = select(props.storeName).getEnabled() ? 1 : 0;\n getElementByName('future_action_bulk_action').value = select(props.storeName).getAction();\n getElementByName('future_action_bulk_date').value = select(props.storeName).getDate();\n getElementByName('future_action_bulk_terms').value = select(props.storeName).getTerms().join(',');\n getElementByName('future_action_bulk_taxonomy').value = select(props.storeName).getTaxonomy();\n }\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const changeAction = useSelect((select) => select(props.storeName).getChangeAction(), []);\n\n const {\n setChangeAction\n } = useDispatch(props.storeName);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n const handleStrategyChange = (value) => {\n setChangeAction(value);\n };\n\n const options = [\n { value: 'no-change', label: props.strings.noChange },\n { value: 'change-add', label: props.strings.changeAdd },\n { value: 'add-only', label: props.strings.addOnly },\n { value: 'change-only', label: props.strings.changeOnly },\n { value: 'remove-only', label: props.strings.removeOnly },\n ];\n\n const optionsToDisplayPanel = ['change-add', 'add-only', 'change-only'];\n\n return (\n
\n \n\n {optionsToDisplayPanel.includes(changeAction) && (\n \n )}\n\n {/* Bulk edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","import { FutureActionPanel } from \"./\";\nimport { select } from \"&wp.data\";\n\nexport const FutureActionPanelClassicEditor = (props) => {\n const browserTimezoneOffset = new Date().getTimezoneOffset();\n\n const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n getElementByName('future_action_enabled').value = store.getEnabled() ? 1 : 0;\n getElementByName('future_action_action').value = store.getAction();\n getElementByName('future_action_date').value = store.getDate();\n getElementByName('future_action_terms').value = store.getTerms().join(',');\n getElementByName('future_action_taxonomy').value = store.getTaxonomy();\n }\n\n const data = {\n enabled: getElementByName('future_action_enabled').value === '1',\n action: getElementByName('future_action_action').value,\n date: getElementByName('future_action_date').value,\n terms: getElementByName('future_action_terms').value.split(',').map(term => parseInt(term)),\n taxonomy: getElementByName('future_action_taxonomy').value,\n };\n\n return (\n
\n \n
\n );\n};\n","import { FutureActionPanel } from './';\nimport { useSelect } from '&wp.data';\n\nexport const FutureActionPanelQuickEdit = (props) => {\n const onChangeData = (attribute, value) => {};\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n return (\n
\n \n\n {/* Quick edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\n\nexport const NonceControl = function (props) {\n if (! props.name) {\n props.name = '_wpnonce';\n }\n\n if (! props.referrer) {\n props.referrer = true;\n }\n\n return (\n \n \n\n {props.referrer &&\n \n }\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport {\n SettingRow,\n SettingsFieldset,\n SettingsTable,\n SelectControl,\n TextControl,\n TokensControl,\n CheckboxControl\n} from './';\nimport { useEffect, useState } from '&wp.element';\nimport { addQueryArgs } from '&wp.url';\nimport { applyFilters } from '&wp.hooks';\nimport { apiFetch } from '&wp';\n\nexport const PostTypeSettingsPanel = function (props) {\n const [postTypeTaxonomy, setPostTypeTaxonomy] = useState(props.settings.taxonomy);\n const [termOptions, setTermOptions] = useState([]);\n const [termsSelectIsLoading, setTermsSelectIsLoading] = useState(false);\n const [selectedTerms, setSelectedTerms] = useState([]);\n const [settingHowToExpire, setSettingHowToExpire] = useState(props.settings.howToExpire);\n const [isActive, setIsActive] = useState(props.settings.active);\n const [expireOffset, setExpireOffset] = useState(props.settings.defaultExpireOffset);\n const [emailNotification, setEmailNotification] = useState(props.settings.emailNotification);\n const [isAutoEnabled, setIsAutoEnabled] = useState(props.settings.autoEnabled);\n\n const onChangeTaxonomy = function (value) {\n setPostTypeTaxonomy(value);\n };\n\n const onChangeTerms = (value) => {\n setSelectedTerms(value);\n };\n\n const onChangeHowToExpire = (value) => {\n setSettingHowToExpire(value);\n }\n\n const onChangeActive = (value) => {\n setIsActive(value);\n }\n\n const onChangeExpireOffset = (value) => {\n setExpireOffset(value);\n }\n\n const onChangeEmailNotification = (value) => {\n setEmailNotification(value);\n }\n\n const onChangeAutoEnabled = (value) => {\n setIsAutoEnabled(value);\n }\n\n useEffect(() => {\n const updateTermsOptionsState = (list) => {\n let options = [];\n\n let settingsTermsOptions = null;\n let option;\n list.forEach(term => {\n option = { value: term.id, label: term.name };\n options.push(option);\n\n if (postTypeTaxonomy === props.settings.taxonomy && props.settings.terms.includes(term.id)) {\n if (settingsTermsOptions === null) {\n settingsTermsOptions = [];\n }\n\n settingsTermsOptions.push(option.label);\n }\n });\n\n setTermOptions(options);\n setTermsSelectIsLoading(false);\n setSelectedTerms(settingsTermsOptions);\n };\n\n if ((!postTypeTaxonomy && props.postType === 'post') || postTypeTaxonomy === 'category') {\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/categories`, { per_page: -1 }),\n }).then(updateTermsOptionsState);\n } else {\n if (!postTypeTaxonomy || !props.taxonomiesList) {\n return;\n }\n\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${postTypeTaxonomy}`),\n }).then((taxAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxAttributes.rest_base}`),\n }).then(updateTermsOptionsState);\n }).catch((error) => {\n console.debug('Taxonomy terms error', error);\n setTermsSelectIsLoading(false);\n });\n }\n }, [postTypeTaxonomy]);\n\n const termOptionsLabels = termOptions.map((term) => term.label);\n\n let settingsRows = [\n \n \n \n ];\n\n if (isActive) {\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n \n );\n\n // Remove items from expireTypeList if related to taxonomies and there is no taxonmoy for the post type\n if (props.taxonomiesList.length === 0) {\n props.expireTypeList[props.postType] = props.expireTypeList[props.postType].filter((item) => {\n return ['category', 'category-add', 'category-remove'].indexOf(item.value) === -1;\n });\n }\n\n settingsRows.push(\n \n \n\n {(props.taxonomiesList.length > 0 && (['category', 'category-add', 'category-remove'].indexOf(settingHowToExpire) > -1)) &&\n \n }\n \n );\n\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n );\n }\n\n settingsRows = applyFilters('expirationdate_settings_posttype', settingsRows, props, isActive, useState);\n\n return (\n \n \n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport { PostTypeSettingsPanel } from \"./\";\n\nexport const PostTypesSettingsPanels = function (props) {\n let panels = [];\n\n for (const [postType, postTypeSettings] of Object.entries(props.settings)) {\n panels.push(\n \n );\n }\n\n return (panels);\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\nimport { SelectControl as WPSelectControl } from \"&wp.components\";\n\nexport const SelectControl = function (props) {\n const onChange = (value) => {\n props.onChange(value);\n };\n\n return (\n \n {props.options.length === 0 && (\n
{props.noItemFoundMessage}
\n )}\n\n {props.options.length > 0 && (\n \n )}\n\n {props.children}\n\n

{props.description}

\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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 {props.legend}\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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) 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 \"&wp.element\";\nimport { TextControl as WPTextControl } from \"&wp.components\";\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 return (\n \n \n\n {description}\n \n )\n}\n","import { Button } from '&wp.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 \"&wp.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 \"&wp.element\";\nimport { FormTokenField } from \"&wp.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 {props.falseLabel}\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\";\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 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 };\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.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 } from \"&wp.element\";\n\nimport {\n nonce,\n referrer,\n settings,\n expireTypeList,\n taxonomiesList,\n text\n} from \"&config/settings-post-types\";\nimport { render } from \"&ReactDOM\";\n\nconst SettingsFormPanel = (props) => {\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\");\n\nif (createRoot) {\n createRoot(container).render();\n} else {\n render(, container);\n}\n"],"names":["ButtonsPanel","props","children","CheckboxControl","checked","setChecked","description","unescapedDescription","__html","onChange","value","label","name","className","DateTimePicker","currentDate","is12Hour","startOfWeek","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","Fragment","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","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","mapTermsListById","map","term","insertTerm","id","count","link","slug","mapTermsListByName","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","handleActionChange","handleDateChange","handleTermsChange","postType","path","per_page","then","list","forEach","cat","strings","category","response","parseInt","context","taxonomyAttributes","rest_base","storeCalendarIsVisibleOnStorage","localStorage","setItem","getCalendarIsVisibleFromStorage","getItem","autoEnableAndHideCheckbox","isCleanNewPost","selectedTerms","length","termsListByNameKeys","Object","keys","panelClass","contentPanelClass","datePanelClass","replaceCurlyBracketsWithLink","string","href","target","parts","split","result","push","shift","part","before","after","HelpText","timezoneSettingsHelp","enablePostExpiration","actionsSelectOptions","String","includes","loading","noTaxonomyFound","noTermsFound","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","editPostAttribute","newAttribute","publishpress_future_action","entries","store","getEditedPostAttribute","panelTitle","postTypeDefaultConfig","autoEnable","FutureActionPanelBulkEdit","join","changeAction","getChangeAction","setChangeAction","termsString","handleStrategyChange","options","noChange","changeAdd","addOnly","changeOnly","removeOnly","optionsToDisplayPanel","futureActionUpdate","isNewPost","nonce","FutureActionPanelClassicEditor","browserTimezoneOffset","Date","getTimezoneOffset","getElementByName","document","getElementsByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","onChangeTaxonomy","onChangeTerms","onChangeHowToExpire","onChangeActive","onChangeExpireOffset","onChangeEmailNotification","onChangeAutoEnabled","updateTermsOptionsState","settingsTermsOptions","option","taxonomiesList","taxAttributes","catch","error","console","debug","termOptionsLabels","settingsRows","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","noItemsfound","expireTypeList","filter","item","indexOf","fieldHowToExpire","fieldHowToExpireDescription","fieldTerm","fieldTermDescription","fieldDefaultDateTimeOffset","globalDefaultExpireOffset","fieldDefaultDateTimeOffsetDescription","fieldWhoToNotify","fieldWhoToNotifyDescription","useState","legend","PostTypesSettingsPanels","panels","postTypeSettings","noItemFoundMessage","selected","SettingRow","SettingsFieldset","SettingsForm","SettingsSection","title","SettingsTable","bodyChildren","SubmitButton","TextControl","placeholder","ToggleArrowButton","onClick","iconExpanded","iconCollapsed","icon","isExpanded","titleExpanded","titleCollapsed","ToggleCalendarDatePicker","onToggleCalendar","onChangeDate","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","TokensControl","stringValue","setStringValue","TrueFalseControl","e","trueValue","jQuery","is","trueLabel","falseValue","falseLabel","getCurrentTimeInSeconds","normalizeUnixTimeToSeconds","getTime","getCurrentTimeAsTimestamp","formatUnixTimeToTimestamp","unixTimestamp","year","getFullYear","month","getMonth","slice","day","hours","getHours","minutes","getMinutes","seconds","getSeconds","formatTimestampToUnixTime","time","timeIsInSeconds","toString","normalizeUnixTimeToMilliseconds","compact","array","Array","isArray","values","undefined","debugLogFactory","config","message","isDebugEnabled","isGutenbergEnabled","body","classList","contains","getFieldByName","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","isNumber","isNaN","SettingsFormPanel","settingsSectionTitle","settingsSectionDescription","saveChanges","container","getElementById","createRoot","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"settings-post-types.js","mappings":";;;;;;;;;;;;;;;AAAA;;;;AAIO,IAAMA,eAAeA,oBAAAA,GAAA,SAAfA,YAAe,CAAUC,KAAV,EAAiB;AACzC,WACI;AAAA;AAAA;AACKA,cAAMC;AADX,KADJ;AAKH,CANM;;;;;;;;;;;;;;;;;ypBCJP;;;;;AAGA;;AACA;;AAEO,IAAMC,kBAAkBA,uBAAAA,GAAA,SAAlBA,eAAkB,CAAUF,KAAV,EAAiB;AAAA,oBACd,kBAASA,MAAMG,OAAN,IAAiB,KAA1B,CADc;AAAA;AAAA,QACrCA,OADqC;AAAA,QAC5BC,UAD4B;;AAG5C,QAAIC,oBAAJ;;AAEA,QAAIL,MAAMM,oBAAV,EAAgC;AAC5B;AACAD,sBAAc,2BAAG,WAAU,aAAb,EAA2B,yBAAyB,EAAEE,QAAQP,MAAMK,WAAhB,EAApD,GAAd;AACH,KAHD,MAGO;AACHA,sBAAc;AAAA;AAAA,cAAG,WAAU,aAAb;AAA4BL,kBAAMK;AAAlC,SAAd;AACH;;AAED,QAAMG,WAAW,SAAXA,QAAW,CAAUC,KAAV,EAAiB;AAC9BL,mBAAWK,KAAX;;AAEA,YAAIT,MAAMQ,QAAV,EAAoB;AAChBR,kBAAMQ,QAAN,CAAeC,KAAf;AACH;AACJ,KAND;;AAQA,WACI;AAAC,oBAAD;AAAA;AACI,4BAAC,oBAAD;AACI,m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AAAA;AACI,oCAAC,wBAAD;AACI,0BAAK,4BADT;AAEI,0BAAMQ,wBAAK+H;AAFf;AADJ;AAjBJ;AADJ,KADJ;AA4BH,CA7BD;;AA+BA,IAAMC,YAAY9K,SAAS+K,cAAT,CAAwB,yCAAxB,CAAlB;AACA,IAAMC,YAAa,oBAAC,iBAAD,OAAnB;AACA,IAAIC,cAAJ,EAAgB;AACZ,wBAAWH,SAAX,EAAsBI,MAAtB,CAA6BF,SAA7B;AACH,CAFD,MAEO;AACH,0BAAOA,SAAP,EAAkBF,SAAlB;AACH,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/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/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/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/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.url\"","webpack://post-expirator/webpack/bootstrap","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 \"&wp.element\";\nimport { CheckboxControl as WPCheckboxControl } from \"&wp.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 \"&wp.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';\n\nconst { PanelRow, CheckboxControl, SelectControl, FormTokenField, Spinner, BaseControl } = wp.components;\nconst { Fragment, useEffect } = 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\n const {\n setAction,\n setDate,\n setEnabled,\n setTerms,\n setTaxonomy,\n setTermsListByName,\n setTermsListById,\n setTaxonomyName,\n setIsFetchingTerms,\n setCalendarIsVisible\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 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 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 setIsFetchingTerms(true);\n\n if ((!taxonomy && props.postType === 'post') || taxonomy === 'category') {\n apiFetch({\n path: addQueryArgs('wp/v2/categories', { per_page: -1 }),\n }).then((list) => {\n list.forEach(cat => {\n termsListByName[cat.name] = cat;\n termsListById[cat.id] = cat.name;\n });\n\n setTermsListByName(termsListByName);\n setTermsListById(termsListById);\n setTaxonomyName(props.strings.category);\n setIsFetchingTerms(false);\n });\n } else {\n apiFetch({\n path: addQueryArgs(`publishpress-future/v1/taxonomies/` + props.postType),\n }).then((response) => {\n if (parseInt(response.count) > 0) {\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${taxonomy}`, { context: 'edit', per_page: -1 }),\n }).then((taxonomyAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxonomyAttributes.rest_base}`, { context: 'edit', per_page: -1 }),\n }).then((terms) => {\n 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(taxonomyAttributes.name));\n setIsFetchingTerms(false);\n });\n });\n }\n });\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 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 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\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 const HelpText = replaceCurlyBracketsWithLink(props.strings.timezoneSettingsHelp, '/wp-admin/options-general.php#timezone_string', '_blank');\n\n return (\n
\n {props.autoEnableAndHideCheckbox && (\n \n )}\n\n {! props.autoEnableAndHideCheckbox && (\n \n \n \n )}\n\n {enabled && (\n \n \n \n \n\n {\n String(action).includes('category') && (\n isFetchingTerms && (\n \n \n {`${props.strings.loading} (${taxonomyName})`}\n \n \n \n )\n || (!taxonomy && (\n \n \n {props.strings.noTaxonomyFound}\n \n \n )\n || (\n termsListByNameKeys.length === 0 && (\n \n \n {props.strings.noTermsFound}\n \n \n )\n || (\n \n \n \n \n \n )\n )\n )\n )\n }\n\n \n setCalendarIsVisible(!calendarIsVisible)}\n is12Hour={props.is12Hour}\n startOfWeek={props.startOfWeek}\n isExpanded={calendarIsVisible}\n strings={props.strings}\n />\n \n\n \n
\n
\n\n {HelpText}\n
\n
\n
\n )}\n
\n );\n};\n","import { FutureActionPanel } from './';\n\nexport const FutureActionPanelBlockEditor = (props) => {\n const { PluginDocumentSettingPanel } = wp.editPost;\n const { useDispatch, select } = wp.data;\n\n const { editPost } = useDispatch('core/editor');\n\n const editPostAttribute = (newAttribute) => {\n const attribute = {\n publishpress_future_action: {}\n };\n\n // For each property on newAttribute, set the value on attribute\n for (const [name, value] of Object.entries(newAttribute)) {\n attribute.publishpress_future_action[name] = value;\n }\n\n editPost(attribute);\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n const newAttribute = {\n 'enabled': store.getEnabled()\n }\n\n if (newAttribute.enabled) {\n newAttribute['action'] = store.getAction();\n newAttribute['date'] = store.getDate();\n newAttribute['terms'] = store.getTerms();\n newAttribute['taxonomy'] = store.getTaxonomy();\n }\n\n editPostAttribute(newAttribute);\n }\n\n const data = select('core/editor').getEditedPostAttribute('publishpress_future_action');\n\n return (\n \n
\n \n
\n \n );\n};\n","import { FutureActionPanel, SelectControl } from '.';\nimport { getElementByName } from '../utils';\n\nexport const FutureActionPanelBulkEdit = (props) => {\n const { useSelect, useDispatch, select } = wp.data;\n\n const onChangeData = (attribute, value) => {\n getElementByName('future_action_bulk_enabled').value = select(props.storeName).getEnabled() ? 1 : 0;\n getElementByName('future_action_bulk_action').value = select(props.storeName).getAction();\n getElementByName('future_action_bulk_date').value = select(props.storeName).getDate();\n getElementByName('future_action_bulk_terms').value = select(props.storeName).getTerms().join(',');\n getElementByName('future_action_bulk_taxonomy').value = select(props.storeName).getTaxonomy();\n }\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n const changeAction = useSelect((select) => select(props.storeName).getChangeAction(), []);\n\n const {\n setChangeAction\n } = useDispatch(props.storeName);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n const handleStrategyChange = (value) => {\n setChangeAction(value);\n };\n\n const options = [\n { value: 'no-change', label: props.strings.noChange },\n { value: 'change-add', label: props.strings.changeAdd },\n { value: 'add-only', label: props.strings.addOnly },\n { value: 'change-only', label: props.strings.changeOnly },\n { value: 'remove-only', label: props.strings.removeOnly },\n ];\n\n const optionsToDisplayPanel = ['change-add', 'add-only', 'change-only'];\n\n return (\n
\n \n\n {optionsToDisplayPanel.includes(changeAction) && (\n \n )}\n\n {/* Bulk edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","import { FutureActionPanel } from \"./\";\nimport { select } from \"&wp.data\";\n\nexport const FutureActionPanelClassicEditor = (props) => {\n const browserTimezoneOffset = new Date().getTimezoneOffset();\n\n const getElementByName = (name) => {\n return document.getElementsByName(name)[0];\n }\n\n const onChangeData = (attribute, value) => {\n const store = select(props.storeName);\n\n getElementByName('future_action_enabled').value = store.getEnabled() ? 1 : 0;\n getElementByName('future_action_action').value = store.getAction();\n getElementByName('future_action_date').value = store.getDate();\n getElementByName('future_action_terms').value = store.getTerms().join(',');\n getElementByName('future_action_taxonomy').value = store.getTaxonomy();\n }\n\n const data = {\n enabled: getElementByName('future_action_enabled').value === '1',\n action: getElementByName('future_action_action').value,\n date: getElementByName('future_action_date').value,\n terms: getElementByName('future_action_terms').value.split(',').map(term => parseInt(term)),\n taxonomy: getElementByName('future_action_taxonomy').value,\n };\n\n return (\n
\n \n
\n );\n};\n","import { FutureActionPanel } from './';\nimport { useSelect } from '&wp.data';\n\nexport const FutureActionPanelQuickEdit = (props) => {\n const onChangeData = (attribute, value) => {};\n\n const date = useSelect((select) => select(props.storeName).getDate(), []);\n const enabled = useSelect((select) => select(props.storeName).getEnabled(), []);\n const action = useSelect((select) => select(props.storeName).getAction(), []);\n const terms = useSelect((select) => select(props.storeName).getTerms(), []);\n const taxonomy = useSelect((select) => select(props.storeName).getTaxonomy(), []);\n\n let termsString = terms;\n if (typeof terms === 'object') {\n termsString = terms.join(',');\n }\n\n return (\n
\n \n\n {/* Quick edit JS code will save only fields with name inside the edit row */}\n \n \n \n \n \n \n \n
\n );\n};\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\n\nexport const NonceControl = function (props) {\n if (! props.name) {\n props.name = '_wpnonce';\n }\n\n if (! props.referrer) {\n props.referrer = true;\n }\n\n return (\n \n \n\n {props.referrer &&\n \n }\n \n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport {\n SettingRow,\n SettingsFieldset,\n SettingsTable,\n SelectControl,\n TextControl,\n TokensControl,\n CheckboxControl\n} from './';\nimport { useEffect, useState } from '&wp.element';\nimport { addQueryArgs } from '&wp.url';\nimport { applyFilters } from '&wp.hooks';\nimport { apiFetch } from '&wp';\n\nexport const PostTypeSettingsPanel = function (props) {\n const [postTypeTaxonomy, setPostTypeTaxonomy] = useState(props.settings.taxonomy);\n const [termOptions, setTermOptions] = useState([]);\n const [termsSelectIsLoading, setTermsSelectIsLoading] = useState(false);\n const [selectedTerms, setSelectedTerms] = useState([]);\n const [settingHowToExpire, setSettingHowToExpire] = useState(props.settings.howToExpire);\n const [isActive, setIsActive] = useState(props.settings.active);\n const [expireOffset, setExpireOffset] = useState(props.settings.defaultExpireOffset);\n const [emailNotification, setEmailNotification] = useState(props.settings.emailNotification);\n const [isAutoEnabled, setIsAutoEnabled] = useState(props.settings.autoEnabled);\n\n const onChangeTaxonomy = function (value) {\n setPostTypeTaxonomy(value);\n };\n\n const onChangeTerms = (value) => {\n setSelectedTerms(value);\n };\n\n const onChangeHowToExpire = (value) => {\n setSettingHowToExpire(value);\n }\n\n const onChangeActive = (value) => {\n setIsActive(value);\n }\n\n const onChangeExpireOffset = (value) => {\n setExpireOffset(value);\n }\n\n const onChangeEmailNotification = (value) => {\n setEmailNotification(value);\n }\n\n const onChangeAutoEnabled = (value) => {\n setIsAutoEnabled(value);\n }\n\n useEffect(() => {\n const updateTermsOptionsState = (list) => {\n let options = [];\n\n let settingsTermsOptions = null;\n let option;\n list.forEach(term => {\n option = { value: term.id, label: term.name };\n options.push(option);\n\n if (postTypeTaxonomy === props.settings.taxonomy && props.settings.terms.includes(term.id)) {\n if (settingsTermsOptions === null) {\n settingsTermsOptions = [];\n }\n\n settingsTermsOptions.push(option.label);\n }\n });\n\n setTermOptions(options);\n setTermsSelectIsLoading(false);\n setSelectedTerms(settingsTermsOptions);\n };\n\n if ((!postTypeTaxonomy && props.postType === 'post') || postTypeTaxonomy === 'category') {\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/categories`, { per_page: -1 }),\n }).then(updateTermsOptionsState);\n } else {\n if (!postTypeTaxonomy || !props.taxonomiesList) {\n return;\n }\n\n setTermsSelectIsLoading(true);\n apiFetch({\n path: addQueryArgs(`wp/v2/taxonomies/${postTypeTaxonomy}`),\n }).then((taxAttributes) => {\n // fetch all terms\n apiFetch({\n path: addQueryArgs(`wp/v2/${taxAttributes.rest_base}`),\n }).then(updateTermsOptionsState);\n }).catch((error) => {\n console.debug('Taxonomy terms error', error);\n setTermsSelectIsLoading(false);\n });\n }\n }, [postTypeTaxonomy]);\n\n const termOptionsLabels = termOptions.map((term) => term.label);\n\n let settingsRows = [\n \n \n \n ];\n\n if (isActive) {\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n \n );\n\n // Remove items from expireTypeList if related to taxonomies and there is no taxonmoy for the post type\n if (props.taxonomiesList.length === 0) {\n props.expireTypeList[props.postType] = props.expireTypeList[props.postType].filter((item) => {\n return ['category', 'category-add', 'category-remove'].indexOf(item.value) === -1;\n });\n }\n\n settingsRows.push(\n \n \n\n {(props.taxonomiesList.length > 0 && (['category', 'category-add', 'category-remove'].indexOf(settingHowToExpire) > -1)) &&\n \n }\n \n );\n\n settingsRows.push(\n \n \n \n );\n\n settingsRows.push(\n \n \n \n );\n }\n\n settingsRows = applyFilters('expirationdate_settings_posttype', settingsRows, props, isActive, useState);\n\n return (\n \n \n \n );\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nimport { PostTypeSettingsPanel } from \"./\";\n\nexport const PostTypesSettingsPanels = function (props) {\n let panels = [];\n\n for (const [postType, postTypeSettings] of Object.entries(props.settings)) {\n panels.push(\n \n );\n }\n\n return (panels);\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.element\";\nimport { SelectControl as WPSelectControl } from \"&wp.components\";\n\nexport const SelectControl = function (props) {\n const onChange = (value) => {\n props.onChange(value);\n };\n\n return (\n \n {props.options.length === 0 && (\n
{props.noItemFoundMessage}
\n )}\n\n {props.options.length > 0 && (\n \n )}\n\n {props.children}\n\n

{props.description}

\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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 {props.legend}\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\n\nexport const SettingsForm = function (props) {\n return (\n
\n {props.children}\n
\n )\n}\n","/*\n * Copyright (c) 2023. PublishPress, All rights reserved.\n */\nimport { Fragment } from \"&wp.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) 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 \"&wp.element\";\nimport { TextControl as WPTextControl } from \"&wp.components\";\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 return (\n \n \n\n {description}\n \n )\n}\n","import { Button } from '&wp.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 \"&wp.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 \"&wp.element\";\nimport { FormTokenField } from \"&wp.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 {props.falseLabel}\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\";\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 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 };\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.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 } from \"&wp.element\";\n\nimport {\n nonce,\n referrer,\n settings,\n expireTypeList,\n taxonomiesList,\n text\n} from \"&config/settings-post-types\";\nimport { render } from \"&ReactDOM\";\n\nconst SettingsFormPanel = (props) => {\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 = ();\nif (createRoot) {\n createRoot(container).render(component);\n} else {\n render(component, container);\n}\n"],"names":["ButtonsPanel","props","children","CheckboxControl","checked","setChecked","description","unescapedDescription","__html","onChange","value","label","name","className","DateTimePicker","currentDate","is12Hour","startOfWeek","wp","components","PanelRow","SelectControl","FormTokenField","Spinner","BaseControl","element","Fragment","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","setAction","setDate","setEnabled","setTerms","setTaxonomy","setTermsListByName","setTermsListById","setTaxonomyName","setIsFetchingTerms","setCalendarIsVisible","mapTermsListById","map","term","insertTerm","id","count","link","slug","mapTermsListByName","callOnChangeData","attribute","onChangeData","handleEnabledChange","isChecked","fetchTerms","handleActionChange","handleDateChange","handleTermsChange","postType","path","per_page","then","list","forEach","cat","strings","category","response","parseInt","context","taxonomyAttributes","rest_base","storeCalendarIsVisibleOnStorage","localStorage","setItem","getCalendarIsVisibleFromStorage","getItem","autoEnableAndHideCheckbox","isCleanNewPost","selectedTerms","length","termsListByNameKeys","Object","keys","panelClass","contentPanelClass","datePanelClass","replaceCurlyBracketsWithLink","string","href","target","parts","split","result","push","shift","part","before","after","HelpText","timezoneSettingsHelp","enablePostExpiration","actionsSelectOptions","String","includes","loading","noTaxonomyFound","noTermsFound","FutureActionPanelBlockEditor","PluginDocumentSettingPanel","editPost","editPostAttribute","newAttribute","publishpress_future_action","entries","store","getEditedPostAttribute","panelTitle","postTypeDefaultConfig","autoEnable","FutureActionPanelBulkEdit","join","changeAction","getChangeAction","setChangeAction","termsString","handleStrategyChange","options","noChange","changeAdd","addOnly","changeOnly","removeOnly","optionsToDisplayPanel","futureActionUpdate","isNewPost","nonce","FutureActionPanelClassicEditor","browserTimezoneOffset","Date","getTimezoneOffset","getElementByName","document","getElementsByName","FutureActionPanelQuickEdit","NonceControl","referrer","PostTypeSettingsPanel","settings","postTypeTaxonomy","setPostTypeTaxonomy","termOptions","setTermOptions","termsSelectIsLoading","setTermsSelectIsLoading","setSelectedTerms","howToExpire","settingHowToExpire","setSettingHowToExpire","active","isActive","setIsActive","defaultExpireOffset","expireOffset","setExpireOffset","emailNotification","setEmailNotification","autoEnabled","isAutoEnabled","setIsAutoEnabled","onChangeTaxonomy","onChangeTerms","onChangeHowToExpire","onChangeActive","onChangeExpireOffset","onChangeEmailNotification","onChangeAutoEnabled","updateTermsOptionsState","settingsTermsOptions","option","taxonomiesList","taxAttributes","catch","error","console","debug","termOptionsLabels","settingsRows","text","fieldActive","fieldActiveLabel","fieldAutoEnable","fieldAutoEnableLabel","fieldTaxonomy","noItemsfound","expireTypeList","filter","item","indexOf","fieldHowToExpire","fieldHowToExpireDescription","fieldTerm","fieldTermDescription","fieldDefaultDateTimeOffset","globalDefaultExpireOffset","fieldDefaultDateTimeOffsetDescription","fieldWhoToNotify","fieldWhoToNotifyDescription","useState","legend","PostTypesSettingsPanels","panels","postTypeSettings","noItemFoundMessage","selected","SettingRow","SettingsFieldset","SettingsForm","SettingsSection","title","SettingsTable","bodyChildren","SubmitButton","TextControl","placeholder","ToggleArrowButton","onClick","iconExpanded","iconCollapsed","icon","isExpanded","titleExpanded","titleCollapsed","ToggleCalendarDatePicker","onToggleCalendar","onChangeDate","toggleButtonElement","querySelector","dateTimeElement","nextElementSibling","timeElement","dateElement","nextSibling","insertBefore","hideCalendar","showCalendar","TokensControl","stringValue","setStringValue","TrueFalseControl","e","trueValue","jQuery","is","trueLabel","falseValue","falseLabel","getCurrentTimeInSeconds","normalizeUnixTimeToSeconds","getTime","getCurrentTimeAsTimestamp","formatUnixTimeToTimestamp","unixTimestamp","year","getFullYear","month","getMonth","slice","day","hours","getHours","minutes","getMinutes","seconds","getSeconds","formatTimestampToUnixTime","time","timeIsInSeconds","toString","normalizeUnixTimeToMilliseconds","compact","array","Array","isArray","values","undefined","debugLogFactory","config","message","isDebugEnabled","isGutenbergEnabled","body","classList","contains","getFieldByName","postId","getFieldValueByName","field","getFieldValueByNameAsArrayOfInt","getFieldValueByNameAsBool","getActionSettingsFromColumnData","columnData","dataset","actionEnabled","actionType","actionDate","dateUnix","actionDateUnix","actionTaxonomy","actionTerms","isNumber","isNaN","SettingsFormPanel","settingsSectionTitle","settingsSectionDescription","saveChanges","container","getElementById","component","createRoot","render"],"sourceRoot":""} \ No newline at end of file diff --git a/assets/jsx/bulk-edit.jsx b/assets/jsx/bulk-edit.jsx index 7d62aaeb5..62e8c242b 100644 --- a/assets/jsx/bulk-edit.jsx +++ b/assets/jsx/bulk-edit.jsx @@ -65,52 +65,42 @@ inlineEditPost.setBulk = function (id) { }); } - const saveButton = document.querySelector('#bulk_edit'); - if (saveButton) { - saveButton.onclick = function() { - setTimeout(() => { - root.unmount(); - }, delayToUnmountAfterSaving); - }; - } - const container = document.getElementById("publishpress-future-bulk-edit"); + const component = ( + + ); if (createRoot) { - createRoot(container).render( - - ); - } else { - render( - , - container - ); - } + const root = createRoot(container); - inlineEditPost.revert = function () { - root.unmount(); + root.render(component); - // Call the original WP revert function. - wpInlineEditRevert.apply(this, arguments); - }; + const saveButton = document.querySelector('#bulk_edit'); + if (saveButton) { + saveButton.onclick = function() { + setTimeout(() => { + root.unmount(); + }, delayToUnmountAfterSaving); + }; + } + + inlineEditPost.revert = function () { + root.unmount(); + + // Call the original WP revert function. + wpInlineEditRevert.apply(this, arguments); + }; + } else { + render(component, container); + } }; diff --git a/assets/jsx/classic-editor.jsx b/assets/jsx/classic-editor.jsx index 397dd7e91..2ab9de879 100644 --- a/assets/jsx/classic-editor.jsx +++ b/assets/jsx/classic-editor.jsx @@ -33,33 +33,22 @@ if (! isGutenbergEnabled()) { } const container = document.getElementById("publishpress-future-classic-editor"); + const component = ( + + ); if (createRoot) { - createRoot(container).render( - - ); + createRoot(container).render(component); } else { - render( - , - container - ); + render(component, container); } } diff --git a/assets/jsx/quick-edit.jsx b/assets/jsx/quick-edit.jsx index 00ee2d771..4d67a2e0c 100644 --- a/assets/jsx/quick-edit.jsx +++ b/assets/jsx/quick-edit.jsx @@ -79,6 +79,19 @@ inlineEditPost.edit = function (button, id) { } const container = document.getElementById("publishpress-future-quick-edit"); + const component = ( + + ); if (createRoot) { const root = createRoot(container); @@ -92,19 +105,7 @@ inlineEditPost.edit = function (button, id) { }; } - root.render( - - ); + root.render(component); inlineEditPost.revert = function () { root.unmount(); @@ -113,19 +114,6 @@ inlineEditPost.edit = function (button, id) { wpInlineEditRevert.apply(this, arguments); }; } else { - render( - , - container - ); + render(component, container); } }; diff --git a/assets/jsx/settings-post-types.jsx b/assets/jsx/settings-post-types.jsx index 4db097afc..380bc7210 100644 --- a/assets/jsx/settings-post-types.jsx +++ b/assets/jsx/settings-post-types.jsx @@ -55,9 +55,9 @@ const SettingsFormPanel = (props) => { }; const container = document.getElementById("publishpress-future-settings-post-types"); - +const component = (); if (createRoot) { - createRoot(container).render(); + createRoot(container).render(component); } else { - render(, container); + render(component, container); } diff --git a/readme.txt b/readme.txt index 95f44b565..05db2805c 100644 --- a/readme.txt +++ b/readme.txt @@ -151,6 +151,7 @@ Yes, the PublishPress Future plugin allows you to schedule automatic changes to * FIXED: Fix classic meta box when using Classic Editor plugin with the classic editor as default, #624; * FIXED: Fix default date for new posts, #623; * FIXED: Fix the quick edit form and future action column for pages, #618; +* FIXED: Fix support for WP before 6.4, #625; = [3.1.5] - 14 Dec, 2023 =