wordpress-activitypub-event.../build/reminder/plugin.js.map
André Menrath 92fc3ecec0
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Failing after 42s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m10s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m3s
first draft for event reminders
2024-10-11 10:53:12 +02:00

1 line
No EOL
6.6 KiB
Text

{"version":3,"file":"reminder/plugin.js","mappings":";;;;;;;;;;AAAA;;;;;;;;;;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;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;;;;;;;;ACN+D;AACX;AACE;AACV;AACS;AAChB;AAAA;AAErC,MAAMQ,sBAAsB,GAAGC,sBAAsB,CAACC,eAAe;AAErE,MAAMC,QAAQ,GAAGA,CAAA,KAAM;EACtB,MAAMC,QAAQ,GAAGT,0DAAS,CACvBU,MAAM,IAAMA,MAAM,CAAE,aAAc,CAAC,CAACC,kBAAkB,CAAC,CAAC,EAC1D,EACD,CAAC;EACD,MAAM,CAAEC,IAAI,EAAEC,OAAO,CAAE,GAAGZ,mEAAa,CAAE,UAAU,EAAEQ,QAAQ,EAAE,MAAO,CAAC;EAEvE,MAAMK,eAAe,GAAGF,IAAI,EAAEG,0CAA0C,GAAGH,IAAI,EAAEG,0CAA0C,GAAGV,sBAAsB;EAEpJ,oBACCD,sDAAA,CAACP,yEAA0B;IAC1BmB,IAAI,EAAC,aAAa;IAClBC,KAAK,EAAGf,mDAAE,CAAE,qCAAqC,EAAE,aAAc,CAAG;IAAAgB,QAAA,eAEpEd,sDAAA,CAACL,gEAAa;MACboB,KAAK,EAAGjB,mDAAE,CAAE,UAAU,EAAE,aAAc,CAAG;MACzCkB,KAAK,EAAGN,eAAiB;MACzBO,OAAO,EAAG,CACT;QAAEF,KAAK,EAAEjB,mDAAE,CAAE,UAAU,EAAE,0BAA2B,CAAC;QAAEkB,KAAK,EAAE;MAAE,CAAC,EACjE;QAAED,KAAK,EAAEjB,mDAAE,CAAE,SAAS,EAAE,0BAA2B,CAAC;QAAEkB,KAAK,EAAE;MAAM,CAAC,EACpE;QAAED,KAAK,EAAEjB,mDAAE,CAAE,OAAO,EAAE,0BAA2B,CAAC;QAAEkB,KAAK,EAAE;MAAM,CAAC,EAClE;QAAED,KAAK,EAAEjB,mDAAE,CAAE,QAAQ,EAAE,0BAA2B,CAAC;QAAEkB,KAAK,EAAE;MAAO,CAAC,EACpE;QAAED,KAAK,EAAEjB,mDAAE,CAAE,QAAQ,EAAE,0BAA2B,CAAC;QAAEkB,KAAK,EAAE;MAAO,CAAC,CAClE;MACHE,QAAQ,EAAKF,KAAK,IAAM;QACvBP,OAAO,CAAE;UAAE,GAAGD,IAAI;UAAEG,0CAA0C,EAAEK;QAAM,CAAE,CAAC;MAC1E,CAAG;MACHG,uBAAuB;IAAA,CACvB;EAAC,CACyB,CAAC;AAE/B,CAAC;AAEDzB,kEAAc,CAAE,mCAAmC,EAAE;EAAE0B,MAAM,EAAEhB;AAAS,CAAE,CAAC,C","sources":["webpack://activitypub-poll/external window \"ReactJSXRuntime\"","webpack://activitypub-poll/external window [\"wp\",\"components\"]","webpack://activitypub-poll/external window [\"wp\",\"coreData\"]","webpack://activitypub-poll/external window [\"wp\",\"data\"]","webpack://activitypub-poll/external window [\"wp\",\"editor\"]","webpack://activitypub-poll/external window [\"wp\",\"i18n\"]","webpack://activitypub-poll/external window [\"wp\",\"plugins\"]","webpack://activitypub-poll/webpack/bootstrap","webpack://activitypub-poll/webpack/runtime/compat get default export","webpack://activitypub-poll/webpack/runtime/define property getters","webpack://activitypub-poll/webpack/runtime/hasOwnProperty shorthand","webpack://activitypub-poll/webpack/runtime/make namespace object","webpack://activitypub-poll/./src/reminder/plugin.js"],"sourcesContent":["module.exports = window[\"ReactJSXRuntime\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"coreData\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"editor\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"plugins\"];","// 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","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { PluginDocumentSettingPanel } from '@wordpress/editor';\nimport { registerPlugin } from '@wordpress/plugins';\nimport { SelectControl } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport { useEntityProp } from '@wordpress/core-data';\nimport { __ } from '@wordpress/i18n';\n\nconst reminderTimeGapDefault = activityPubEventBridge.reminderTypeGap;\n\nconst Reminder = () => {\n\tconst postType = useSelect(\n\t\t( select ) => select( 'core/editor' ).getCurrentPostType(),\n\t\t[]\n\t);\n\tconst [ meta, setMeta ] = useEntityProp( 'postType', postType, 'meta' );\n\n\tconst reminderTimeGap = meta?.activitypub_event_bridge_reminder_time_gap ? meta?.activitypub_event_bridge_reminder_time_gap : reminderTimeGapDefault;\n\n\treturn (\n\t\t<PluginDocumentSettingPanel\n\t\t\tname=\"activitypub\"\n\t\t\ttitle={ __( 'Send reminder before event\\'s start', 'activitypub' ) }\n\t\t>\n\t\t\t<SelectControl\n\t\t\t\tlabel={ __( 'Time gap', 'activitypub' ) }\n\t\t\t\tvalue={ reminderTimeGap }\n\t\t\t\toptions={ [\n\t\t\t\t\t{ label: __( 'Disabled', 'activitypub-event-bridge' ), value: 0 },\n\t\t\t\t\t{ label: __( '6 hours', 'activitypub-event-bridge' ), value: 21600 },\n\t\t\t\t\t{ label: __( '1 day', 'activitypub-event-bridge' ), value: 86400 },\n\t\t\t\t\t{ label: __( '3 days', 'activitypub-event-bridge' ), value: 259200 },\n\t\t\t\t\t{ label: __( '1 week', 'activitypub-event-bridge' ), value: 604800 }\n\t\t\t\t] }\n\t\t\t\tonChange={ ( value ) => {\n\t\t\t\t\tsetMeta( { ...meta, activitypub_event_bridge_reminder_time_gap: value } );\n\t\t\t\t} }\n\t\t\t\t__nextHasNoMarginBottom\n\t\t\t/>\n\t\t</PluginDocumentSettingPanel>\n\t);\n}\n\nregisterPlugin( 'activitypub-event-bridge-reminder', { render: Reminder } );"],"names":["PluginDocumentSettingPanel","registerPlugin","SelectControl","useSelect","useEntityProp","__","jsx","_jsx","reminderTimeGapDefault","activityPubEventBridge","reminderTypeGap","Reminder","postType","select","getCurrentPostType","meta","setMeta","reminderTimeGap","activitypub_event_bridge_reminder_time_gap","name","title","children","label","value","options","onChange","__nextHasNoMarginBottom","render"],"sourceRoot":""}