From e64a3bc7fe806f9c9ea5cc75f0adf9f2b5758fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anderson=20Gr=C3=BCdtner=20Martins?= Date: Wed, 8 Jan 2025 15:06:34 -0300 Subject: [PATCH] Release 4.3.0 (#1108) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Do not remove post meta when action is disabled, #1053 * Update cross-spawn fixing a security warning (on dev environments only) * Update node-fetch addressing a security (on dev environments only) * Update micromatch addressing a security issue (on dev environment only( * Update cookie addressing a security issue (on dev environmrnts) * Prevent DOM text reinterpreted as HTML * Update the changelog * Move notification settings to a specific tab, #190 * Allow users to change metabox name, #227 * Update the changelog * Fix error when a trigger node type is not found * Fix php warning: PHP Deprecated: ltrim(): Passing null to parameter #1 PHP Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/andersonmartins/LocalSites/future-free/app/public/wp-includes/formatting.php on line 4467 * Update the changelog * Fix DB error when deleting orphan scheduled steps, #1060 * Fix warning about method get_data not existent * Update minified js scritps * Add global.execution_id variable for the workflow execution, #1061 * 704 export import (#1062) * Implement workflow exporting feature * Add settings to the exported backup * Split the backup window in a component * Fix error on default tab * Fix file upload * Adjust the notices * Adjust UI and create new component * Improve code splitting tab into new components * Rename folders * Implement export and import for general and notifications * Allow to export and import display settings * Allow to import advanced settings * Allow to import post types settings * Fix export and import actions to workflow screenshots * Fix displaced labels, #1057 * Translate the user roles in the settings page, #1050 * Add * to indicate a required field on post query, #974 * Update language files * Update js files * Bump version to 4.2.0-beta.1 * Update the changelgo * Change backup page name to Export / Import * Remove extra chars in backup screen, #1063 * Improve error handling when importing a backup file * Fix error on importing JSON missing some data, #1065 * Add setting to enable/disable the screenshot feature, #1066 * Add custom data field to Ray Debug step, #1067 * Replace input field with text area on log message field, #1068 * Add support to metadata in the variables resolvers, #1069, #939 Add more space for subject and custom email address on send email step. * Set default value to the Email Recipient on Send Email step, #1071 * Add "meta" property on variables schema * Add site ID to the site data type schema * Adjust hooks on settings to implemenet export/import on Pro * Add general filters and actions for export/import * Pass the selected settings to the filter * Update the changelog * Bump version to 4.2.0-beta.2 * Update the js files * Update language files * Make sure to reply only json in the export/import api * Code cleanup * Code cleanup * Deprecate functions not used and use proper facades * Fix error when date or time format are empty, #212 * Fix empty label when custom title and label are empty, #1075 * Fix size of label in the block editor, #1076 * Update the changelog * Implement Post is Published trigger, #944 * Implement basic trigger for Post Status Changes, #945 * Implement basic trigger for Post is Scheduled, #946 * Basic implementation of the variables selector, or expression builder * Add label and description to the variables list * Make adjustments to the variables selector * Improve style on expression editor * Improve button to edit the expression * Add actual variables list to the expression editor * Fix the display of variables descriptions * Use the expression builder in the debug data field on Ray Debug * Replace simple setting fields with the new expression builder * Improve expression builder code * Minor improvement to the steps in the graph * Fix double click * Some minor improvements * Bump version to 4.3.0-beta.1 * Fix color to indicate the step data flow panel as dev panel * Update the changelog * Add better support to metadata in the expression builder * Add the item id to the description message in the expression builder * Reorganize the code * Improve visual of variables selector * Display the variable ID when showing its description * Refactor methods handleClick to onClick * Fix the selection of items in the variables selector. Fix the update in the path, removing all items that come after the current selected column. * Refactor the list of variables renaming properties Rename "id" and "name" to "name" and "label" respectively. Since we don't list the variables into options list anymore, we don't need to convert to a format compatible to the tree component. * Refactor the functions that get expanded variables * Stop exporting function getVariablesLIst * Improve listing child properties on variables that are objects, #947, #976 * Disable autocomplete in the expression builder Disabling it until we are able to implement the autocompleter based on the current context. The event onCursorChange seems to not work right now. * Add default message when no variable is hovered This avoids to make the popover panel to grow when hovering a variable for the first time. * Refactor the expression builder to a modal window instead of a popover * Improve style of the expression editor * Fix user meta resolution in the workflow * Remove arrow and add new Status column, #970 * Update the changelog * Improve UI of the Debug Ray step settings * Refactor the query builder using the expression builder * Implement single variable mode on the expression builder * Improve query builder in the conditional step * Update the changelog * Remove prefix from post and user data type properties * Remove a blank line in the code * Implement basic step for metadata changes, #1059 * Fix output of the metadata chagnes trigger, #1059 * Move the changes to the correct file :), #1059 * Update the changelog * Update js files * Bump version to 4.3.0-beta.3 * Clarify the description of branch output in the conditional step * Improve step settings field description * Move metadata settings to specific panel in the meta changed step * Add the oldMetaValue to the output of Post Meta Changed trigger * Rename the new meta value output * Add new output to the meta changed step * Update field description * Adjust the max size of the conditional modal to 600px * Auto focus the expression builder and close it when single variable mode * Fix property names of post and user removing prefix Add post_name property for posts * Fix the permalink in the post before on Post Updated trigger * Ignore long lines on phpcs * Add the basic action to add post meta, #732 * Fix the "Is single" setting on the meta add action * Update the changelog * Add the basic action to delete post meta, #732 * Add new $metaValue param to the deleteMeta method * Add a stop command to the dev-workspace environment * Add new action to update post meta, #732 * Add manually enabled via checkbox support to bulk-edit, #942 * Implement save workflow hotkey, #1084 * Improve fields description, #1081 * Update the changelog * Fix post field values, #1079 * Fix the validation message for the recipient field in the Send Email, #1078 * Fix default date format in the shortcode * Add new display setting to set wrapper and class to the shortcode, #203 * Only display the bulk sync option if enabled, #622 * Pass the post type to the new filter, #622 * Update language files, #1077 * Add explanation text to the meta keys field, #1080 * Minor visual improvements to the UI * Fix loading a workflow that doesn't have a specific step type, #883 * Fix the first save to transit from auto-saved to draft, #1086 * Replace deprecated jQuery `.click` method * Remove focus from the toolbar button when node is selected, #1083 * Add docs about how to register new data type * Improve style of the selected items in the variables list * Remove the steps property from the workflow data type schema and fix meta * Add future action variable to post variables, #948 * Fix the custom date source * 1090 edit labels (#1091) * Remove not used function * Refactor part of the workflow store and add basic node details panel * Refactor the way we handle editedWorkflow * Update the changelog * Refactor the keyboard shortcuts definition * Fix the edit behavior on workflow summary panel * Fix top margin of the expression editor * Fix the cronstep when instantiating a post resolver * Bump version number to 4.3.0-beta.4 * Update .pot files * Update minified js files * Update changelog * Bump version to 4.3.0-beta.5 * Bump nanoid from 3.3.7 to 3.3.8 (#1082) Bumps [nanoid](/~https://github.com/ai/nanoid) from 3.3.7 to 3.3.8. - [Release notes](/~https://github.com/ai/nanoid/releases) - [Changelog](/~https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](/~https://github.com/ai/nanoid/compare/3.3.7...3.3.8) --- updated-dependencies: - dependency-name: nanoid dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Anderson Grüdtner Martins * Bump webpack from 5.92.0 to 5.94.0 (#925) Bumps [webpack](/~https://github.com/webpack/webpack) from 5.92.0 to 5.94.0. - [Release notes](/~https://github.com/webpack/webpack/releases) - [Commits](/~https://github.com/webpack/webpack/compare/v5.92.0...v5.94.0) --- updated-dependencies: - dependency-name: webpack dependency-type: direct:development ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Anderson Grüdtner Martins * Fix optional param declared before required param, #1094 * Fix the auto-layout algorithm, #1102 * Update js scripts * Improve text for variables modal * Update the changelog * Improve the text on expression builder for single variable mode * Update js scripts * Update language files * Bump version to 4.3.0 * Update the changelog * Bump copyright year to 2025 * Update the changelog in the readme.txt file * Fix call to deprecated method `next`, #1107 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .phpcs.xml | 4 +- CHANGELOG.md | 63 + assets/css/edit.css | 17 + assets/css/woocommerce.css | 2 +- assets/js/251.min.js | 2 +- assets/js/360.min.js | 2 +- assets/js/631.min.js | 1 + assets/js/648.min.js | 1 + ...ponents_flow-editor_auto-layout_elk_jsx.js | 66 +- assets/js/backupPanel.js | 4 +- assets/js/blockEditor.js | 108 +- assets/js/blockEditor.min.js | 2 +- assets/js/bulkEdit.js | 108 +- assets/js/bulkEdit.min.js | 2 +- assets/js/classicEditor.js | 108 +- assets/js/classicEditor.min.js | 2 +- assets/js/legacyAction.js | 2 +- assets/js/quickEdit.js | 108 +- assets/js/quickEdit.min.js | 2 +- assets/js/settingsAdvanced.js | 4 +- assets/js/settingsGeneral.js | 108 +- assets/js/settingsGeneral.min.js | 2 +- assets/js/settingsPostTypes.js | 108 +- assets/js/settingsPostTypes.min.js | 2 +- ..._microlink_react-json-view_dist_main_js.js | 2 +- ...s_react-dnd-html5-backend_dist_index_js.js | 1227 + ...rs-node_modules_react-dnd_dist_index_js.js | 4683 + assets/js/workflowEditor.js | 122675 ++++++++++----- assets/js/workflowEditor.min.js | 2 +- assets/js/workflowEditor.min.js.LICENSE.txt | 12 +- .../js/workflowManualSelectionBlockEditor.js | 21 +- .../workflowManualSelectionBlockEditor.min.js | 2 +- assets/js/workflowManualSelectionBulkEdit.js | 2227 + .../js/workflowManualSelectionBulkEdit.min.js | 1 + .../workflowManualSelectionClassicEditor.js | 21 +- ...orkflowManualSelectionClassicEditor.min.js | 2 +- assets/js/workflowManualSelectionQuickEdit.js | 21 +- .../workflowManualSelectionQuickEdit.min.js | 2 +- assets/jsx/components/ButtonsPanel.jsx | 2 +- assets/jsx/components/CheckboxControl.jsx | 2 +- .../FutureActionPanelBlockEditor.jsx | 1 + assets/jsx/components/NonceControl.jsx | 2 +- .../jsx/components/PostTypeSettingsPanel.jsx | 2 +- .../components/PostTypesSettingsPanels.jsx | 2 +- assets/jsx/components/SelectControl.jsx | 2 +- assets/jsx/components/SettingRow.jsx | 2 +- assets/jsx/components/SettingsFieldset.jsx | 2 +- assets/jsx/components/SettingsForm.jsx | 2 +- assets/jsx/components/SettingsSection.jsx | 2 +- assets/jsx/components/SettingsTable.jsx | 2 +- assets/jsx/components/Spinner.jsx | 2 +- assets/jsx/components/SubmitButton.jsx | 2 +- assets/jsx/components/TaxonomiesControl.jsx | 2 +- assets/jsx/components/TextControl.jsx | 2 +- assets/jsx/components/TokensControl.jsx | 2 +- assets/jsx/components/TrueFalseControl.jsx | 2 +- assets/jsx/components/css/block-editor.css | 3 + .../jsx/components/css/dateOffsetPreview.css | 5 +- assets/jsx/settings-general.jsx | 2 +- assets/jsx/settings-post-types.jsx | 2 +- assets/jsx/workflow-editor/components/app.jsx | 6 +- .../components/data-fields/conditional.jsx | 134 - .../data-fields/conditional/index.jsx | 303 + .../data-fields/conditional/style.css | 15 + .../components/data-fields/date-offset.jsx | 70 +- .../components/data-fields/debug-data.jsx | 94 +- .../data-fields/description-text.jsx | 19 + .../data-fields/email-recipient.jsx | 51 - .../expression-builder/column-item.jsx | 84 + .../expression-builder/columns-container.jsx | 110 + .../data-fields/expression-builder/index.jsx | 221 + .../data-fields/expression-builder/style.css | 155 + .../components/data-fields/help-link.jsx | 11 + .../components/data-fields/list.jsx | 1 - .../components/data-fields/post-query.jsx | 76 +- .../components/data-fields/text.jsx | 17 +- .../components/data-fields/toggle.jsx | 26 + .../components/data-types/future-action.jsx | 48 + .../components/data-types/index.jsx | 2 + .../components/data-types/node.jsx | 5 + .../components/data-types/post.jsx | 47 +- .../components/data-types/site.jsx | 9 +- .../components/data-types/terms-array.jsx | 24 + .../components/data-types/user.jsx | 22 +- .../components/data-types/workflow.jsx | 12 +- .../flow-editor/auto-layout/elk.jsx | 48 +- .../components/flow-editor/index.jsx | 3 + .../components/icons/braces.jsx | 12 + .../keyboard-shortcuts/constants.jsx | 2 + .../components/keyboard-shortcuts/index.jsx | 142 +- .../keyboard-shortcuts/shortcuts.jsx | 85 + .../workflow-editor/components/node-icon.jsx | 17 +- .../components/node-inspector/index.jsx | 12 +- .../node-inspector/mapped-field.jsx | 20 +- .../node-inspector/node-data-flow-panel.jsx | 2 +- .../node-inspector/node-details-panel.jsx | 54 + .../node-inspector/node-settings-panel.jsx | 23 +- .../components/node-types/generic.jsx | 93 +- .../components/node-validator/index.jsx | 7 +- .../components/pro-feature-button/index.jsx | 2 +- .../components/workflow-store/actions.jsx | 83 +- .../components/workflow-store/reducer.jsx | 174 +- .../components/workflow-store/selectors.jsx | 23 +- .../components/workflow-summary/index.jsx | 10 +- assets/jsx/workflow-editor/css/inspector.css | 16 + assets/jsx/workflow-editor/css/node-types.css | 15 +- .../jsx/workflow-editor/css/query-builder.css | 12 + assets/jsx/workflow-editor/utils.jsx | 88 +- .../bulk-edit/css/style.css | 12 + .../bulk-edit/fieldset.jsx | 98 + .../bulk-edit/index.jsx | 14 + assets/jsx/workflow-manual-selection/hook.jsx | 54 + .../workflow-manual-selection/store/index.jsx | 24 +- dev-workspace/src/bin/exec | 4 + dev-workspace/src/bin/stop-container | 3 + dev-workspace/stop | 12 + docs/custom-variable-form.md | 49 + docs/registering-data-type.md | 58 + ...t-expirator-es_ES-future_backup_panel.json | 2 +- ...pirator-es_ES-future_backup_panel.l10n.php | 2 +- ...ost-expirator-es_ES-future_backup_panel.po | 130 +- ...r-es_ES-future_workflow_editor_script.json | 2 +- ..._ES-future_workflow_editor_script.l10n.php | 2 +- ...tor-es_ES-future_workflow_editor_script.po | 92 +- languages/post-expirator-es_ES.l10n.php | 2 +- languages/post-expirator-es_ES.mo | Bin 45800 -> 47503 bytes languages/post-expirator-es_ES.po | 549 +- ...t-expirator-fr_FR-future_backup_panel.json | 2 +- ...pirator-fr_FR-future_backup_panel.l10n.php | 2 +- ...ost-expirator-fr_FR-future_backup_panel.po | 130 +- ...r-fr_FR-future_workflow_editor_script.json | 2 +- ..._FR-future_workflow_editor_script.l10n.php | 2 +- ...tor-fr_FR-future_workflow_editor_script.po | 92 +- languages/post-expirator-fr_FR.l10n.php | 2 +- languages/post-expirator-fr_FR.mo | Bin 47501 -> 49266 bytes languages/post-expirator-fr_FR.po | 550 +- .../post-expirator-future_backup_panel.pot | 2 +- ...xpirator-future_workflow_editor_script.pot | 236 +- ...t-expirator-it_IT-future_backup_panel.json | 2 +- ...pirator-it_IT-future_backup_panel.l10n.php | 2 +- ...ost-expirator-it_IT-future_backup_panel.po | 129 +- ...r-it_IT-future_workflow_editor_script.json | 2 +- ..._IT-future_workflow_editor_script.l10n.php | 2 +- ...tor-it_IT-future_workflow_editor_script.po | 95 +- languages/post-expirator-it_IT.l10n.php | 2 +- languages/post-expirator-it_IT.mo | Bin 45405 -> 47059 bytes languages/post-expirator-it_IT.po | 546 +- languages/post-expirator.pot | 680 +- legacy/classes/Cli.class.php | 8 +- legacy/classes/Display.class.php | 2 + legacy/classes/Util.class.php | 10 + package-lock.json | 26879 ++++ package.json | 19 +- post-expirator.php | 11 +- readme.txt | 85 +- services.php | 99 +- src/Core/DI/Container.php | 2 +- .../DI/ContainerNotInitializedException.php | 2 +- src/Core/DI/ServiceNotFoundException.php | 2 +- src/Core/DI/ServiceProvider.php | 2 +- src/Core/DI/ServiceProviderInterface.php | 2 +- src/Core/DI/ServicesAbstract.php | 2 +- src/Core/HookableInterface.php | 2 +- src/Core/HooksAbstract.php | 2 +- src/Core/Paths.php | 2 +- src/Core/Plugin.php | 2 +- src/Framework/BaseException.php | 2 +- .../DBTableSchemaHandlerInterface.php | 2 +- .../Interfaces/DBTableSchemaInterface.php | 2 +- src/Framework/InitializableInterface.php | 2 +- src/Framework/Logger/LogLevelAbstract.php | 2 +- src/Framework/Logger/Logger.php | 2 +- src/Framework/Logger/LoggerInterface.php | 2 +- src/Framework/ModuleInterface.php | 2 +- .../Exceptions/NonexistentPostException.php | 2 +- .../Exceptions/NonexistentTermException.php | 2 +- .../Exceptions/WordPressErrorException.php | 2 +- src/Framework/WordPress/Facade/CronFacade.php | 2 +- .../WordPress/Facade/DatabaseFacade.php | 2 +- .../WordPress/Facade/DateTimeFacade.php | 33 +- .../WordPress/Facade/EmailFacade.php | 2 +- .../WordPress/Facade/ErrorFacade.php | 2 +- .../WordPress/Facade/HooksFacade.php | 2 +- .../WordPress/Facade/OptionsFacade.php | 2 +- .../WordPress/Facade/RequestFacade.php | 2 +- .../WordPress/Facade/SanitizationFacade.php | 2 +- src/Framework/WordPress/Facade/SiteFacade.php | 2 +- .../WordPress/Facade/UsersFacade.php | 2 +- .../WordPress/Models/CurrentUserModel.php | 2 +- src/Framework/WordPress/Models/PostModel.php | 8 +- src/Framework/WordPress/Models/TermModel.php | 2 +- src/Framework/WordPress/Models/TermsModel.php | 2 +- src/Framework/WordPress/Models/UserModel.php | 2 +- src/Modules/Backup/Module.php | 2 +- src/Modules/Debug/Controllers/Controller.php | 2 +- src/Modules/Debug/Debug.php | 2 +- src/Modules/Debug/DebugInterface.php | 2 +- src/Modules/Debug/Module.php | 2 +- .../CronToWooActionSchedulerAdapter.php | 2 +- .../Expirator/CapabilitiesAbstract.php | 2 +- .../Controllers/BlockEditorController.php | 2 +- .../Controllers/BulkActionController.php | 9 +- .../Controllers/BulkEditController.php | 2 +- .../Controllers/ClassicEditorController.php | 2 +- .../Controllers/ContentController.php | 79 +- .../Controllers/ExpirationController.php | 2 +- .../Controllers/PluginsListController.php | 2 +- .../Controllers/PostListController.php | 2 +- .../Controllers/QuickEditController.php | 2 +- .../Controllers/RestAPIController.php | 2 +- .../ScheduledActionsController.php | 2 +- .../Controllers/ShortcodeController.php | 57 +- src/Modules/Expirator/ExpirationScheduler.php | 2 +- src/Modules/Expirator/HooksAbstract.php | 4 +- .../AbstractTableSchemaInterface.php | 2 +- .../Interfaces/ActionArgsModelInterface.php | 2 +- .../Expirator/Interfaces/CronInterface.php | 2 +- .../Interfaces/ExpirationActionInterface.php | 2 +- .../Interfaces/MigrationInterface.php | 2 +- .../Interfaces/SchedulerInterface.php | 2 +- .../Migrations/V30000ActionArgsSchema.php | 2 +- .../V30000ReplaceFooterPlaceholders.php | 2 +- .../V30000WPCronToActionsScheduler.php | 2 +- .../Migrations/V30001RestorePostMeta.php | 2 +- .../Migrations/V30104ArgsColumnLength.php | 2 +- .../Expirator/Models/ActionArgsModel.php | 2 +- .../Expirator/Models/CurrentUserModel.php | 2 +- .../Expirator/Models/ExpirablePostModel.php | 2 +- .../Models/ExpirationActionsModel.php | 2 +- .../Models/PostTypeDefaultDataModel.php | 2 +- .../PostTypeDefaultDataModelFactory.php | 2 +- .../Expirator/Models/PostTypeModel.php | 2 +- .../Expirator/Models/PostTypesModel.php | 2 +- src/Modules/Expirator/Module.php | 24 +- .../Tables/ScheduledActionsTable.php | 8 +- src/Modules/InstanceProtection/Module.php | 2 +- .../Settings/Controllers/Controller.php | 2 +- src/Modules/Settings/HooksAbstract.php | 2 +- .../Settings/Models/AdvancedSettings.php | 2 +- .../Models/SettingsPostTypesModel.php | 2 +- .../Settings/Models/TaxonomiesModel.php | 2 +- src/Modules/Settings/Module.php | 2 +- src/Modules/Settings/SettingsFacade.php | 32 +- src/Modules/VersionNotices/Module.php | 2 +- src/Modules/WooCommerce/Module.php | 2 +- .../Controllers/ManualPostTrigger.php | 139 +- .../Workflows/Controllers/WorkflowsList.php | 67 +- .../Engine/NodeRunnerProcessors/CronStep.php | 24 +- .../NodeRunners/Actions/CorePostMetaAdd.php | 57 + .../Actions/CorePostMetaDelete.php | 57 + .../Actions/CorePostMetaUpdate.php | 57 + .../Engine/NodeRunners/Advanced/LogAdd.php | 5 + .../Engine/NodeRunners/Advanced/RayDebug.php | 30 +- .../Triggers/CoreOnManuallyEnabledForPost.php | 11 +- .../Triggers/CoreOnPostMetaChanged.php | 56 + .../Triggers/CoreOnPostPublished.php | 56 + .../Triggers/CoreOnPostScheduled.php | 56 + .../Triggers/CoreOnPostStatusChanged.php | 56 + .../Triggers/CoreOnPostUpdated.php | 41 +- .../NodeRunners/Triggers/CoreOnSavePost.php | 13 +- .../Triggers/FutureLegacyAction.php | 11 +- .../Domain/Engine/RuntimeVariablesHandler.php | 6 + .../FutureActionResolver.php | 192 + .../Engine/VariableResolvers/PostResolver.php | 64 +- .../VariableResolvers/TermsArrayResolver.php | 90 + .../Engine/VariableResolvers/UserResolver.php | 4 + .../VariableResolvers/WorkflowResolver.php | 4 - .../Domain/Engine/WorkflowEngine.php | 1 - .../NodeTypes/Actions/CorePostMetaAdd.php | 177 + .../NodeTypes/Actions/CorePostMetaDelete.php | 170 + .../NodeTypes/Actions/CorePostMetaUpdate.php | 170 + .../NodeTypes/Actions/CoreSendEmail.php | 38 +- .../NodeTypes/Advanced/ConditionalSplit.php | 2 +- .../Domain/NodeTypes/Advanced/LogAdd.php | 2 +- .../Domain/NodeTypes/Advanced/RayDebug.php | 5 +- .../Triggers/CoreOnManuallyEnabledForPost.php | 5 +- .../Triggers/CoreOnPostMetaChanged.php | 204 + .../Triggers/CoreOnPostPublished.php | 166 + .../Triggers/CoreOnPostScheduled.php | 166 + .../Triggers/CoreOnPostStatusChanged.php | 167 + .../NodeTypes/Triggers/CoreOnPostUpdated.php | 5 +- .../NodeTypes/Triggers/CoreOnSavePost.php | 5 +- src/Modules/Workflows/HooksAbstract.php | 2 + .../Workflows/Models/NodeTypesModel.php | 14 + src/Modules/Workflows/Module.php | 34 +- src/Modules/Workflows/Rest/RestApiV1.php | 51 +- src/Views/bulk-edit.php | 1 + src/Views/expire-column.php | 10 +- src/Views/menu-diagnostics.php | 62 +- src/Views/menu-display.php | 170 +- src/Views/menu-general.php | 35 +- src/catch-exception.php | 2 +- .../VaiableResolvers/PostResolverTest.php | 34 +- tests/Support/GherkinSteps/Options.php | 2 +- tests/Support/GherkinSteps/Plugins.php | 2 +- tests/Support/GherkinSteps/Post.php | 10 +- tests/Support/GherkinSteps/Settings.php | 27 +- tests/Unit/Core/DI/ContainerTest.php | 2 +- tests/Unit/Core/DI/ServiceProviderTest.php | 2 +- .../Unit/Core/Framework/Logger/LoggerTest.php | 2 +- tests/Unit/Core/PathsTest.php | 2 +- webpack.config.js | 1 + yarn.lock | 3589 +- 303 files changed, 125006 insertions(+), 46821 deletions(-) create mode 100644 assets/js/631.min.js create mode 100644 assets/js/648.min.js create mode 100644 assets/js/vendors-node_modules_react-dnd-html5-backend_dist_index_js.js create mode 100644 assets/js/vendors-node_modules_react-dnd_dist_index_js.js create mode 100644 assets/js/workflowManualSelectionBulkEdit.js create mode 100644 assets/js/workflowManualSelectionBulkEdit.min.js create mode 100644 assets/jsx/components/css/block-editor.css delete mode 100644 assets/jsx/workflow-editor/components/data-fields/conditional.jsx create mode 100644 assets/jsx/workflow-editor/components/data-fields/conditional/index.jsx create mode 100644 assets/jsx/workflow-editor/components/data-fields/conditional/style.css create mode 100644 assets/jsx/workflow-editor/components/data-fields/description-text.jsx delete mode 100644 assets/jsx/workflow-editor/components/data-fields/email-recipient.jsx create mode 100644 assets/jsx/workflow-editor/components/data-fields/expression-builder/column-item.jsx create mode 100644 assets/jsx/workflow-editor/components/data-fields/expression-builder/columns-container.jsx create mode 100644 assets/jsx/workflow-editor/components/data-fields/expression-builder/index.jsx create mode 100644 assets/jsx/workflow-editor/components/data-fields/expression-builder/style.css create mode 100644 assets/jsx/workflow-editor/components/data-fields/help-link.jsx create mode 100644 assets/jsx/workflow-editor/components/data-fields/toggle.jsx create mode 100644 assets/jsx/workflow-editor/components/data-types/future-action.jsx create mode 100644 assets/jsx/workflow-editor/components/data-types/terms-array.jsx create mode 100644 assets/jsx/workflow-editor/components/icons/braces.jsx create mode 100644 assets/jsx/workflow-editor/components/keyboard-shortcuts/shortcuts.jsx create mode 100644 assets/jsx/workflow-editor/components/node-inspector/node-details-panel.jsx create mode 100644 assets/jsx/workflow-editor/css/query-builder.css create mode 100644 assets/jsx/workflow-manual-selection/bulk-edit/css/style.css create mode 100644 assets/jsx/workflow-manual-selection/bulk-edit/fieldset.jsx create mode 100644 assets/jsx/workflow-manual-selection/bulk-edit/index.jsx create mode 100644 assets/jsx/workflow-manual-selection/hook.jsx create mode 100644 dev-workspace/src/bin/stop-container create mode 100755 dev-workspace/stop create mode 100644 docs/custom-variable-form.md create mode 100644 docs/registering-data-type.md create mode 100644 package-lock.json create mode 100644 src/Modules/Workflows/Domain/Engine/NodeRunners/Actions/CorePostMetaAdd.php create mode 100644 src/Modules/Workflows/Domain/Engine/NodeRunners/Actions/CorePostMetaDelete.php create mode 100644 src/Modules/Workflows/Domain/Engine/NodeRunners/Actions/CorePostMetaUpdate.php create mode 100644 src/Modules/Workflows/Domain/Engine/NodeRunners/Triggers/CoreOnPostMetaChanged.php create mode 100644 src/Modules/Workflows/Domain/Engine/NodeRunners/Triggers/CoreOnPostPublished.php create mode 100644 src/Modules/Workflows/Domain/Engine/NodeRunners/Triggers/CoreOnPostScheduled.php create mode 100644 src/Modules/Workflows/Domain/Engine/NodeRunners/Triggers/CoreOnPostStatusChanged.php create mode 100644 src/Modules/Workflows/Domain/Engine/VariableResolvers/FutureActionResolver.php create mode 100644 src/Modules/Workflows/Domain/Engine/VariableResolvers/TermsArrayResolver.php create mode 100644 src/Modules/Workflows/Domain/NodeTypes/Actions/CorePostMetaAdd.php create mode 100644 src/Modules/Workflows/Domain/NodeTypes/Actions/CorePostMetaDelete.php create mode 100644 src/Modules/Workflows/Domain/NodeTypes/Actions/CorePostMetaUpdate.php create mode 100644 src/Modules/Workflows/Domain/NodeTypes/Triggers/CoreOnPostMetaChanged.php create mode 100644 src/Modules/Workflows/Domain/NodeTypes/Triggers/CoreOnPostPublished.php create mode 100644 src/Modules/Workflows/Domain/NodeTypes/Triggers/CoreOnPostScheduled.php create mode 100644 src/Modules/Workflows/Domain/NodeTypes/Triggers/CoreOnPostStatusChanged.php diff --git a/.phpcs.xml b/.phpcs.xml index 31e0b78b4..7e435b701 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -27,7 +27,9 @@ /cache/* /.cache/* - + + + diff --git a/CHANGELOG.md b/CHANGELOG.md index d8ccbca74..728187ebf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,69 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [4.3.0] - 08 Jan, 2025 + +### Added + +- Add new variables selector and an expression builder (Issue #976). +- Add support to metadata in the variables resolvers and post type variables (Issue #1069, #939). +- Add the site ID to the site data type schema. +- Add the post author property to the post data type schema in the workflow editor (Issue #947). +- Add the post slug property to the post data type schema in the workflow editor. +- Add new trigger: Post is Published - PRO (Issue #944). +- Add new trigger: Post Status Changes - PRO (Issue #945). +- Add new trigger: Post is Scheduled - PRO (Issue #946). +- Add new trigger: Post Meta Changed - PRO (Issue #1059). +- Add new action: Post Meta Add - PRO (Issue #732). +- Add new action: Post Meta Delete - PRO (Issue #732). +- Add new action: Post Meta Update - PRO (Issue #732). +- Add the option to change manually enabled workflows in the bulk edit screen (Issue #942). +- Add the "Save as current status" shortcut to the workflow editor (CTRL/CMD + S) (Issue #1084). +- Add new display settings to customize the shortcode output (Issue #203). +- Add new step setting field to customize the step label in the workflow editor (Issue #1090). +- Add Future Action data support in the workflow editor, allowing to reference future actions in expressions (Issue #948). + +### Changed + +- Replace text fields and input/variables selectors on step settings with the new expression builder (Issue #976). +- Changed the border of selected steps to dashed line. +- Moved the panel "Step Data Flow" to the developer mode. +- Removed the arrow indicator from the workflow title and added a new Status column to the workflows list screen (Issue #970). +- Post's variable resolver now also accept a property without `post_` prefix. +- User's variable resolver now also accept a property without `user_` prefix. +- Changed the options in the "Debug Data" field to be more intuitive allowing a custom data expression to be selected. +- The conditional step now uses the new expression builder. +- Improved the UI in the conditional step settings. +- Added field descriptions to the post query step settings panel (Issue #1081). +- Only display the bulk edit option "Update Future Action from Post Metadata" if feature is enabled (Issue #622). +- Updated language files. +- Remove focus from the toolbar Delete button when workflow step is selected (Issue #1083). +- Improved the text in the variables selector modal. + +### Fixed + +- Fix error when the date or time format is empty in the settings page (Issue #212). +- Fix empty title and label in the future action panel when custom title and label are not set (Issue #1075). +- Fix the width of the checkbox in the future action panel (#1076). +- Fix the permalink in the Post Updated trigger for the post before variable. +- Fix the variable names in the "Add extra terms to post" step (Issue #1079). +- Fix the validation message for the recipient field in the Send Email step (Issue #1078). +- Fix the date format in the shortcode. +- Fix loading a workflow that doesn't have a specific step type (Issue #883). +- Fix the first save of a workflow to transit from auto-saved to draft (Issue #1086). +- Fix warning about deprecated jQuery click() method in the workflow editor. +- Fix the auto-layout algorithm to avoid overlapping edges and correctly dimension each node and spacing between nodes (Issue #1102). +- Fix the warning about deprecated method `next` in the class `ActionScheduler_Schedule` (Issue #1107). + +### Developers + +- Deprecated the method `get_wp_date` in the class `PostExpirator_Util` and use the method `getWpDate` from the class `PublishPress\Future\Framework\WordPress\Facade\DateTimeFacade instead. +- Deprecated the method `wp_timezone_string` in the class `PostExpirator_Util` and use the method `getTimezoneString` from the class `PublishPress\Future\Framework\System\DateTimeHandler` instead. +- Deprecated the method `get_timezone_offset` in the class `PostExpirator_Util`. +- Deprecated the method `sanitize_array_of_integers` in the class `PostExpirator_Util`. +- Add new param $metaValue to the method `deleteMeta` in the class `PublishPress\Future\Framework\WordPress\Models\PostModel`. +- Remove the `steps` property from the workflow data type schema. + ## [4.2.0] - 09 Dec, 2024 ### Added diff --git a/assets/css/edit.css b/assets/css/edit.css index 24c2b716b..b32728224 100644 --- a/assets/css/edit.css +++ b/assets/css/edit.css @@ -172,3 +172,20 @@ body.espresso-admin #publishpress-future-classic-editor .components-input-contro min-width: 30px; padding: 0 4px; } + +.pp-future-workflow-status-icon { + margin-right: 5px; + cursor: pointer; +} + +.pp-future-workflow-status-icon.active { + color: #46b450; +} + +.pp-future-workflow-status-icon.inactive { + color: #dc3232; +} + +.wp-list-table .column-workflow_status { + width: 75px; +} diff --git a/assets/css/woocommerce.css b/assets/css/woocommerce.css index a1ae8bf14..9c589f266 100644 --- a/assets/css/woocommerce.css +++ b/assets/css/woocommerce.css @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024, Ramble Ventures + * Copyright (c) 2025, Ramble Ventures */ .fixed .column-expirationdate { diff --git a/assets/js/251.min.js b/assets/js/251.min.js index 375f82d04..f467b1c6f 100644 --- a/assets/js/251.min.js +++ b/assets/js/251.min.js @@ -1,2 +1,2 @@ /*! For license information please see 251.min.js.LICENSE.txt */ -"use strict";(self.webpackChunkpost_expirator=self.webpackChunkpost_expirator||[]).push([[251],{7632:(t,r,e)=>{e.r(r),e.d(r,{default:()=>p,useLayoutedElements:()=>h});var n=e(9845),o=e.n(n),i=e(3018);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(){c=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var i=r&&r.prototype instanceof w?r:w,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:_(t,e,c)}),a}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var y="suspendedStart",v="suspendedYield",d="executing",g="completed",m={};function w(){}function b(){}function O(){}var x={};s(x,u,(function(){return this}));var L=Object.getPrototypeOf,j=L&&L(L(T([])));j&&j!==e&&n.call(j,u)&&(x=j);var E=O.prototype=w.prototype=Object.create(x);function P(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function k(t,r){function e(o,i,c,u){var l=p(t[o],t,i);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==a(s)&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,c,u)}),(function(t){e("throw",t,c,u)})):r.resolve(s).then((function(t){f.value=t,c(f)}),(function(t){return e("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=y;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=p(r,e,n);if("normal"===l.type){if(o=n.done?g:v,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function S(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,S(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function N(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function G(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(r){if(r||""===r){var e=r[u];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),G(e),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;G(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:T(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}function u(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var r=1;r2&&void 0!==h[2]?h[2]:{})?void 0:n["elk.direction"])===i.qj,u={id:"root",layoutOptions:n,children:r.map((function(t){return l(l({},t),{},{targetPosition:a?"left":"top",sourcePosition:a?"right":"bottom",width:150,height:50})})),edges:e},f=new(o()),t.prev=4,t.next=7,f.layout(u);case 7:return s=t.sent,t.abrupt("return",{nodes:s.children.map((function(t){return l(l({},t),{},{position:{x:t.x,y:t.y}})})),edges:s.edges});case 11:return t.prev=11,t.t0=t.catch(4),t.abrupt("return",console.error(t.t0));case 14:case"end":return t.stop()}}),t,null,[[4,11]])})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){s(i,n,o,a,c,"next",t)}function c(t){s(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,e){return r.apply(this,arguments)}}();f(r,e,a).then((function(t){var r=t.nodes,e=t.edges;n(r,e),window.requestAnimationFrame((function(){return u()}))}))}};const p=h}}]); \ No newline at end of file +"use strict";(self.webpackChunkpost_expirator=self.webpackChunkpost_expirator||[]).push([[251],{7632:(t,r,e)=>{e.r(r),e.d(r,{default:()=>p,useLayoutedElements:()=>h});var n=e(9845),o=e.n(n),i=e(3018);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(){u=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",f=i.toStringTag||"@@toStringTag";function s(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{s({},"")}catch(t){s=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var i=r&&r.prototype instanceof w?r:w,a=Object.create(i.prototype),u=new F(n||[]);return o(a,"_invoke",{value:_(t,e,u)}),a}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var y="suspendedStart",v="suspendedYield",d="executing",g="completed",m={};function w(){}function b(){}function O(){}var x={};s(x,c,(function(){return this}));var L=Object.getPrototypeOf,j=L&&L(L(T([])));j&&j!==e&&n.call(j,c)&&(x=j);var E=O.prototype=w.prototype=Object.create(x);function P(t){["next","throw","return"].forEach((function(r){s(t,r,(function(t){return this._invoke(r,t)}))}))}function k(t,r){function e(o,i,u,c){var l=p(t[o],t,i);if("throw"!==l.type){var f=l.arg,s=f.value;return s&&"object"==a(s)&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,u,c)}),(function(t){e("throw",t,u,c)})):r.resolve(s).then((function(t){f.value=t,u(f)}),(function(t){return e("throw",t,u,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=y;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=S(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=p(r,e,n);if("normal"===l.type){if(o=n.done?g:v,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function S(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,S(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function N(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function G(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function F(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function T(r){if(r||""===r){var e=r[c];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),G(e),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;G(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:T(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function l(t){for(var r=1;r2&&void 0!==y[2]?y[2]:{})?void 0:n["elk.direction"])===i.qj,c=function(t){return t.map((function(t){var r=document.querySelector('div[data-id="'.concat(t.id,'"]')),e=(null==r?void 0:r.offsetWidth)||127,n=(null==r?void 0:r.offsetHeight)||62;return l(l({},t),{},{targetPosition:a?"left":"top",sourcePosition:a?"right":"bottom",width:e,height:n})}))},f=function(t){var r=t.sort((function(t,r){return t.source.localeCompare(r.source)}));return r.sort((function(t,r){return"false"===t.sourceHandle&&"true"===r.sourceHandle?1:"true"===t.sourceHandle&&"false"===r.sourceHandle?-1:0}))},s={id:"root",layoutOptions:n,children:c(r),edges:f(e)},h=new(o()),t.prev=6,t.next=9,h.layout(s);case 9:return p=t.sent,t.abrupt("return",{nodes:p.children.map((function(t){return l(l({},t),{},{position:{x:t.x,y:t.y}})})),edges:p.edges});case 13:return t.prev=13,t.t0=t.catch(6),t.abrupt("return",console.error(t.t0));case 16:case"end":return t.stop()}}),t,null,[[6,13]])})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){s(i,n,o,a,u,"next",t)}function u(t){s(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t,e){return r.apply(this,arguments)}}();f(r,e,a).then((function(t){var r=t.nodes,e=t.edges;n(r,e),window.requestAnimationFrame((function(){return c()}))}))}};const p=h}}]); \ No newline at end of file diff --git a/assets/js/360.min.js b/assets/js/360.min.js index dfde350d3..7f673455d 100644 --- a/assets/js/360.min.js +++ b/assets/js/360.min.js @@ -1 +1 @@ -(self.webpackChunkpost_expirator=self.webpackChunkpost_expirator||[]).push([[360],{1360:function(e,t,a){var r;r=e=>(()=>{var t={9735:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (/~https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},294:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (/~https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},1733:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},8974:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},6933:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},523:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},1223:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},1233:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},2847:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},8120:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},6305:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},525:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},4124:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},7167:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},4582:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},7096:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (/~https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},9887:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},7199:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},1985:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (/~https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},8093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},1615:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (/~https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},9063:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},9446:(e,t,a)=>{"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var n=a(1308);t.threezerotwofour=r(n);var o=a(9735);t.apathy=r(o);var s=a(294);t.ashes=r(s);var i=a(1733);t.atelierDune=r(i);var l=a(8974);t.atelierForest=r(l);var c=a(6933);t.atelierHeath=r(c);var u=a(523);t.atelierLakeside=r(u);var d=a(1223);t.atelierSeaside=r(d);var b=a(1233);t.bespin=r(b);var p=a(2847);t.brewer=r(p);var h=a(8120);t.bright=r(h);var f=a(6305);t.chalk=r(f);var m=a(525);t.codeschool=r(m);var v=a(4124);t.colors=r(v);var g=a(7167);t.default=r(g);var y=a(4582);t.eighties=r(y);var k=a(7096);t.embers=r(k);var E=a(9887);t.flat=r(E);var w=a(7199);t.google=r(w);var j=a(1985);t.grayscale=r(j);var x=a(8093);t.greenscreen=r(x);var C=a(1615);t.harmonic=r(C);var _=a(9063);t.hopscotch=r(_);var O=a(9033);t.isotope=r(O);var M=a(4112);t.marrakesh=r(M);var S=a(9600);t.mocha=r(S);var A=a(1240);t.monokai=r(A);var P=a(9768);t.ocean=r(P);var F=a(8293);t.paraiso=r(F);var D=a(3093);t.pop=r(D);var I=a(1951);t.railscasts=r(I);var R=a(6368);t.shapeshifter=r(R);var z=a(2317);t.solarized=r(z);var B=a(1091);t.summerfruit=r(B);var L=a(6943);t.tomorrow=r(L);var q=a(5670);t.tube=r(q);var N=a(2536);t.twilight=r(N)},9033:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},4112:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},9600:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},1240:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},9768:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},8293:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},3093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},1951:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},6368:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},2317:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},1091:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},1308:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},6943:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},5670:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},2536:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},6481:(e,t,a)=>{var r=a(4176),n={};for(var o in r)r.hasOwnProperty(o)&&(n[r[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in s)if(s.hasOwnProperty(i)){if(!("channels"in s[i]))throw new Error("missing channels property: "+i);if(!("labels"in s[i]))throw new Error("missing channel labels property: "+i);if(s[i].labels.length!==s[i].channels)throw new Error("channel and label counts mismatch: "+i);var l=s[i].channels,c=s[i].labels;delete s[i].channels,delete s[i].labels,Object.defineProperty(s[i],"channels",{value:l}),Object.defineProperty(s[i],"labels",{value:c})}s.rgb.hsl=function(e){var t,a,r=e[0]/255,n=e[1]/255,o=e[2]/255,s=Math.min(r,n,o),i=Math.max(r,n,o),l=i-s;return i===s?t=0:r===i?t=(n-o)/l:n===i?t=2+(o-r)/l:o===i&&(t=4+(r-n)/l),(t=Math.min(60*t,360))<0&&(t+=360),a=(s+i)/2,[t,100*(i===s?0:a<=.5?l/(i+s):l/(2-i-s)),100*a]},s.rgb.hsv=function(e){var t,a,r,n,o,s=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(s,i,l),u=c-Math.min(s,i,l),d=function(e){return(c-e)/6/u+.5};return 0===u?n=o=0:(o=u/c,t=d(s),a=d(i),r=d(l),s===c?n=r-a:i===c?n=1/3+t-r:l===c&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*o,100*c]},s.rgb.hwb=function(e){var t=e[0],a=e[1],r=e[2];return[s.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(a,r))*100,100*(r=1-1/255*Math.max(t,Math.max(a,r)))]},s.rgb.cmyk=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*((1-a-(t=Math.min(1-a,1-r,1-n)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=n[e];if(t)return t;var a,o,s,i=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=(o=e,s=r[l],Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*a+.0722*r),100*(.0193*t+.1192*a+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),a=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,a=(a/=95.047)>.008856?Math.pow(a,1/3):7.787*a+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(a-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.hsl.rgb=function(e){var t,a,r,n,o,s=e[0]/360,i=e[1]/100,l=e[2]/100;if(0===i)return[o=255*l,o,o];t=2*l-(a=l<.5?l*(1+i):l+i-l*i),n=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(a-t)*r:2*r<1?a:3*r<2?t+(a-t)*(2/3-r)*6:t,n[c]=255*o;return n},s.hsl.hsv=function(e){var t=e[0],a=e[1]/100,r=e[2]/100,n=a,o=Math.max(r,.01);return a*=(r*=2)<=1?r:2-r,n*=o<=1?o:2-o,[t,100*(0===r?2*n/(o+n):2*a/(r+a)),(r+a)/2*100]},s.hsv.rgb=function(e){var t=e[0]/60,a=e[1]/100,r=e[2]/100,n=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-a),i=255*r*(1-a*o),l=255*r*(1-a*(1-o));switch(r*=255,n){case 0:return[r,l,s];case 1:return[i,r,s];case 2:return[s,r,l];case 3:return[s,i,r];case 4:return[l,s,r];case 5:return[r,s,i]}},s.hsv.hsl=function(e){var t,a,r,n=e[0],o=e[1]/100,s=e[2]/100,i=Math.max(s,.01);return r=(2-o)*s,a=o*i,[n,100*(a=(a/=(t=(2-o)*i)<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,a,r,n,o,s,i,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),1&t&&(r=1-r),n=c+r*((a=1-u)-c),t){default:case 6:case 0:o=a,s=n,i=c;break;case 1:o=n,s=a,i=c;break;case 2:o=c,s=a,i=n;break;case 3:o=c,s=n,i=a;break;case 4:o=n,s=c,i=a;break;case 5:o=a,s=c,i=n}return[255*o,255*s,255*i]},s.cmyk.rgb=function(e){var t=e[0]/100,a=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},s.xyz.rgb=function(e){var t,a,r,n=e[0]/100,o=e[1]/100,s=e[2]/100;return a=-.9689*n+1.8758*o+.0415*s,r=.0557*n+-.204*o+1.057*s,t=(t=3.2406*n+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(a=Math.min(Math.max(0,a),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],a=e[1],r=e[2];return a/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(t-a),200*(a-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,a,r,n=e[0];t=e[1]/500+(a=(n+16)/116),r=a-e[2]/200;var o=Math.pow(a,3),s=Math.pow(t,3),i=Math.pow(r,3);return a=o>.008856?o:(a-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,[t*=95.047,a*=100,r*=108.883]},s.lab.lch=function(e){var t,a=e[0],r=e[1],n=e[2];return(t=360*Math.atan2(n,r)/2/Math.PI)<0&&(t+=360),[a,Math.sqrt(r*r+n*n),t]},s.lch.lab=function(e){var t,a=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[a,r*Math.cos(t),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],a=e[1],r=e[2],n=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(t/255));return 2===n&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],a=e[1],r=e[2];return t===a&&a===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var a;return e-=16,[Math.floor(e/36)/5*255,Math.floor((a=e%36)/6)/5*255,a%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var a=t[0];3===t[0].length&&(a=a.split("").map((function(e){return e+e})).join(""));var r=parseInt(a,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(a,r),n),s=Math.min(Math.min(a,r),n),i=o-s;return t=i<=0?0:o===a?(r-n)/i%6:o===r?2+(n-a)/i:4+(a-r)/i+4,t/=6,[360*(t%=1),100*i,100*(i<1?s/(1-i):0)]},s.hsl.hcg=function(e){var t,a=e[1]/100,r=e[2]/100,n=0;return(t=r<.5?2*a*r:2*a*(1-r))<1&&(n=(r-.5*t)/(1-t)),[e[0],100*t,100*n]},s.hsv.hcg=function(e){var t=e[1]/100,a=e[2]/100,r=t*a,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.hcg.rgb=function(e){var t=e[0]/360,a=e[1]/100,r=e[2]/100;if(0===a)return[255*r,255*r,255*r];var n,o=[0,0,0],s=t%1*6,i=s%1,l=1-i;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return n=(1-a)*r,[255*(a*o[0]+n),255*(a*o[1]+n),255*(a*o[2]+n)]},s.hcg.hsv=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t),r=0;return a>0&&(r=t/a),[e[0],100*r,100*a]},s.hcg.hsl=function(e){var t=e[1]/100,a=e[2]/100*(1-t)+.5*t,r=0;return a>0&&a<.5?r=t/(2*a):a>=.5&&a<1&&(r=t/(2*(1-a))),[e[0],100*r,100*a]},s.hcg.hwb=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},s.hwb.hcg=function(e){var t=e[1]/100,a=1-e[2]/100,r=a-t,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},4732:(e,t,a)=>{var r=a(6481),n=a(1157),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=n(e);Object.keys(t).forEach((function(a){var r=t[a];o[e][a]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var a=e(t);if("object"==typeof a)for(var r=a.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},1157:(e,t,a)=>{var r=a(6481);function n(e){var t=function(){for(var e={},t=Object.keys(r),a=t.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4877:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6138:(e,t,a)=>{var r=a(4877),n=a(301),o=Object.hasOwnProperty,s=Object.create(null);for(var i in r)o.call(r,i)&&(s[r[i]]=i);var l=e.exports={to:{},get:{}};function c(e,t,a){return Math.min(Math.max(t,e),a)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),a="hsl";break;case"hwb":t=l.get.hwb(e),a="hwb";break;default:t=l.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,a,n,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],a=0;a<3;a++){var i=2*a;s[a]=parseInt(t.slice(i,i+2),16)}n&&(s[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],a=0;a<3;a++)s[a]=parseInt(t[a]+t[a],16);n&&(s[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)s[a]=parseInt(t[a+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((s=r[t[1]])[3]=1,s):null:null;for(a=0;a<3;a++)s[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(a=0;a<3;a++)s[a]=c(s[a],0,255);return s[3]=c(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(a)?1:a,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(a)?1:a,0,1)]}return null},l.to.hex=function(){var e=n(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+r+"%)":"rgba("+t+"%, "+a+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},3639:(e,t,a)=>{"use strict";var r=a(6138),n=a(4732),o=[].slice,s=["keyword","gray","hex"],i={};Object.keys(n).forEach((function(e){i[o.call(n[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in s&&(t=null),t&&!(t in n))throw new Error("Unknown model: "+t);var a,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=r.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=n[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=n[this.model].channels;var p=o.call(e,0,u);this.color=b(p,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var f=h.sort().join("");if(!(f in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[f];var m=n[this.model].labels,v=[];for(a=0;aa?(t+.05)/(a+.05):(a+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),a=t.color[0];return a=(a=(a+e)%360)<0?360+a:a,t.color[0]=a,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var a=e.rgb(),r=this.rgb(),n=void 0===t?.5:t,o=2*n-1,s=a.alpha()-r.alpha(),i=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,l=1-i;return c.rgb(i*a.red()+l*r.red(),i*a.green()+l*r.green(),i*a.blue()+l*r.blue(),a.alpha()*n+r.alpha()*(1-n))}},Object.keys(n).forEach((function(e){if(-1===s.indexOf(e)){var t=n[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var a,r="number"==typeof arguments[t]?t:this.valpha;return new c((a=n[this.model][e].raw(this.color),Array.isArray(a)?a:[a]).concat(r),e)},c[e]=function(a){return"number"==typeof a&&(a=b(o.call(arguments),t)),new c(a,e)}}})),e.exports=c},9784:e=>{"use strict";var t,a="object"==typeof Reflect?Reflect:null,r=a&&"function"==typeof a.apply?a.apply:function(e,t,a){return Function.prototype.apply.call(e,t,a)};t=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(a,r){function n(a){e.removeListener(t,o),r(a)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),a([].slice.call(arguments))}f(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&f(e,"error",t,{once:!0})}(e,n)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,a,r){var n,o,s,c;if(i(a),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),o=e._events),s=o[t]),void 0===s)s=o[t]=a,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[a,s]:[s,a]:r?s.unshift(a):s.push(a),(n=l(e))>0&&s.length>n&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,a){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=u.bind(r);return n.listener=a,r.wrapFn=n,n}function b(e,t,a){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?a?[n.listener||n]:[n]:a?function(e){for(var t=new Array(e.length),a=0;a0&&(s=t[0]),s instanceof Error)throw s;var i=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw i.context=s,i}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(a=0;a=0;o--)if(a[o]===t||a[o].listener===t){s=a[o].listener,n=o;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4263:e=>{"use strict";e.exports=function(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n{e.exports.Dispatcher=a(9808)},9808:(e,t,a)=>{"use strict";function r(e,t,a){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var n=a(4263),o=function(){function e(){r(this,"_callbacks",void 0),r(this,"_isDispatching",void 0),r(this,"_isHandled",void 0),r(this,"_isPending",void 0),r(this,"_lastID",void 0),r(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=e.prototype;return t.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},t.unregister=function(e){this._callbacks[e]||n(!1),delete this._callbacks[e]},t.waitFor=function(e){this._isDispatching||n(!1);for(var t=0;t{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},3989:(e,t,a)=>{var r="__lodash_placeholder__",n=1/0,o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s=/^\s+|\s+$/g,i=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,l=/\{\n\/\* \[wrapped with (.+)\] \*/,c=/,? & /,u=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,b=/^\[object .+?Constructor\]$/,p=/^0o[0-7]+$/i,h=/^(?:0|[1-9]\d*)$/,f=parseInt,m="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")();function y(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function k(e){return e!=e}function E(e,t){for(var a=-1,n=e.length,o=0,s=[];++a2?j:void 0);function B(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a,r=Y(a=e.prototype)?D(a):{},n=e.apply(r,t);return Y(n)?n:r}}function L(e,t,a,r,n,o,s,i,l,c){var u=128&t,d=1&t,b=2&t,p=24&t,h=512&t,f=b?void 0:B(e);return function m(){for(var v=arguments.length,y=Array(v),k=v;k--;)y[k]=arguments[k];if(p)var w=N(m),j=function(e,t){for(var a=e.length,r=0;a--;)e[a]===t&&r++;return r}(y,w);if(r&&(y=function(e,t,a,r){for(var n=-1,o=e.length,s=a.length,i=-1,l=t.length,c=I(o-s,0),u=Array(l+c),d=!r;++i1&&y.reverse(),u&&l1?"& ":"")+t[r],t=t.join(a>2?", ":" "),e.replace(i,"{\n/* [wrapped with "+t+"] */\n")}function W(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||h.test(e))&&e>-1&&e%1==0&&e-1}(e,r)&&e.push(r)})),e.sort()}function $(e,t,a){var r=function(e,t,a,r,n,o,s,i){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var c=r?r.length:0;if(c||(t&=-97,r=n=void 0),s=void 0===s?s:I(J(s),0),i=void 0===i?i:J(i),c-=n?n.length:0,64&t){var u=r,d=n;r=n=void 0}var b=[e,t,a,r,n,u,d,o,s,i];if(e=b[0],t=b[1],a=b[2],r=b[3],n=b[4],!(i=b[9]=null==b[9]?l?0:e.length:I(b[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)p=8==t||16==t?function(e,t,a){var r=B(e);return function n(){for(var o=arguments.length,s=Array(o),i=o,l=N(n);i--;)s[i]=arguments[i];var c=o<3&&s[0]!==l&&s[o-1]!==l?[]:E(s,l);return(o-=c.length){"use strict";var r=a(8336),n=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],a=0,s=e.length;a{"use strict";t.exports=e}},a={};function r(e){var n=a[e];if(void 0!==n)return n.exports;var o=a[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(t){var a=function(t){if("object"!=e(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var r=a.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(a)?a:a+""}function a(e,a,r){return(a=t(a))in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function s(e){for(var t=1;tct});var m=r(4119),v=r.n(m);function g(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function y(e){this.setState(function(t){var a=this.constructor.getDerivedStateFromProps(e,t);return null!=a?a:null}.bind(this))}function k(e,t){try{var a=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function E(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var a=null,r=null,n=null;if("function"==typeof t.componentWillMount?a="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(a="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?n="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(n="UNSAFE_componentWillUpdate"),null!==a||null!==r||null!==n){var o=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==a?"\n "+a:"")+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=g,t.componentWillReceiveProps=y),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=k;var i=t.componentDidUpdate;t.componentDidUpdate=function(e,t,a){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:a;i.call(this,e,t,r)}}return e}function w(e,t){if(null==e)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;a[r]=e[r]}return a}function j(e,t){if(null==e)return{};var a,r,n=w(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function x(e){var t=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return"number"===t&&(t=isNaN(e)?"nan":(0|e)!=e?"float":"integer"),t}g.__suppressDeprecationWarning=!0,y.__suppressDeprecationWarning=!0,k.__suppressDeprecationWarning=!0;var C={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},_={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"};const O={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o2?r-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.defaultBase16,n=void 0===r?L:r,o=t.base16Themes,s=W(a,void 0===o?null:o);s&&(a=B(B({},s),a));for(var i=q.reduce((function(e,t){return e[t]=a[t]||n[t],e}),{}),l=Object.keys(a).reduce((function(e,t){return-1===q.indexOf(t)?(e[t]=a[t],e):e}),{}),c=e(i),u=V(l,c),d=arguments.length,b=new Array(d>3?d-3:0),p=3;p=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,n=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw n}}}}(n);try{for(d.s();!(i=d.n()).done;)u=u[i.value]}catch(e){d.e(e)}finally{d.f()}return s?"array"==x(u)?u.splice(r,1):delete u[r]:null!==r?u[r]=o:c=o,e.set(t,"global","src",c),c},e.deepCopy=function(t,a){var r,n=x(t),o=a.shift();return"array"==n?r=Q(t):"object"==n&&(r=s({},t)),void 0!==o&&(r[o]=e.deepCopy(t[o],a)),r},e}return f(t,e),c(t)}(Z.EventEmitter));X.register(ee.handleAction.bind(ee));const te=ee;var ae=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){te.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.getFunctionDisplay=function(e){var t=a.props;return e?v().createElement("span",null,a.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),v().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},v().createElement("span",null,"{"),v().createElement("span",H(t.theme,"ellipsis"),"..."),v().createElement("span",null,"}"))):a.props.value.toString().slice(9,-1)},a.state={collapsed:te.get(e.rjvId,e.namespace,"collapsed",!0)},a}return f(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return v().createElement("div",H(e.theme,"function"),v().createElement($,Object.assign({type_name:"function"},e)),v().createElement("span",Object.assign({},H(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}])}(v().PureComponent),re=function(e){function t(){return i(this,t),p(this,t,arguments)}return f(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",H(this.props.theme,"nan"),"NaN")}}])}(v().PureComponent),ne=function(e){function t(){return i(this,t),p(this,t,arguments)}return f(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",H(this.props.theme,"null"),"NULL")}}])}(v().PureComponent),oe=function(e){function t(){return i(this,t),p(this,t,arguments)}return f(t,e),c(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",H(e.theme,"integer"),v().createElement($,Object.assign({type_name:"int"},e)),this.props.value)}}])}(v().PureComponent),se=function(e){function t(){return i(this,t),p(this,t,arguments)}return f(t,e),c(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",H(e.theme,"regexp"),v().createElement($,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}])}(v().PureComponent),ie=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){te.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.state={collapsed:te.get(e.rjvId,e.namespace,"collapsed",!0)},a}return f(t,e),c(t,[{key:"render",value:function(){this.state.collapsed;var e=this.props,t=e.collapseStringsAfterLength,a=e.theme,r=e.value,n={style:{cursor:"default"}};return"integer"===x(t)&&r.length>t&&(n.style.cursor="pointer",this.state.collapsed&&(r=v().createElement("span",null,r.substring(0,t),v().createElement("span",H(a,"ellipsis")," ...")))),v().createElement("div",H(a,"string"),v().createElement($,Object.assign({type_name:"string"},e)),v().createElement("span",Object.assign({className:"string-value"},n,{onClick:this.toggleCollapsed}),'"',r,'"'))}}])}(v().PureComponent),le=function(e){function t(){return i(this,t),p(this,t,arguments)}return f(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",H(this.props.theme,"undefined"),"undefined")}}])}(v().PureComponent);function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?o:null,namespace:n.splice(0,n.length-1),existing_value:i,variable_removed:!1,key_name:null};"object"===x(i)?X.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:l,data:e}):X.dispatch({name:"VARIABLE_ADDED",rjvId:l,data:s(s({},e),{},{new_value:[].concat(Q(i),[null])})})}})))},e.getRemoveObject=function(t){var a=e.props,r=a.theme,n=(a.hover,a.namespace),o=a.name,s=a.src,i=a.rjvId;if(1!==n.length)return v().createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},v().createElement(Ne,Object.assign({className:"click-to-remove-icon"},H(r,"removeVarIcon"),{onClick:function(){X.dispatch({name:"VARIABLE_REMOVED",rjvId:i,data:{name:o,namespace:n.splice(0,n.length-1),existing_value:s,variable_removed:!0}})}})))},e.render=function(){var t=e.props,a=t.theme,r=t.onDelete,n=t.onAdd,o=t.enableClipboard,s=t.src,i=t.namespace,l=t.rowHovered;return v().createElement("div",Object.assign({},H(a,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),o?v().createElement(He,{rowHovered:l,clickCallback:o,src:s,theme:a,namespace:i}):null,!1!==n?e.getAddAttribute(l):null,!1!==r?e.getRemoveObject(l):null)},e}return f(t,e),c(t)}(v().PureComponent);function Je(e){var t=e.parent_type,a=e.namespace,r=e.quotesOnKeys,n=e.theme,o=e.jsvRoot,s=e.name,i=e.displayArrayKey,l=e.name?e.name:"";return!o||!1!==s&&null!==s?"array"==t?i?v().createElement("span",Object.assign({},H(n,"array-key"),{key:a}),v().createElement("span",{className:"array-key"},l),v().createElement("span",H(n,"colon"),":")):v().createElement("span",null):v().createElement("span",Object.assign({},H(n,"object-name"),{key:a}),v().createElement("span",{className:"object-key"},r&&v().createElement("span",{style:{verticalAlign:"top"}},'"'),v().createElement("span",null,l),r&&v().createElement("span",{style:{verticalAlign:"top"}},'"')),v().createElement("span",H(n,"colon"),":")):v().createElement("span",null)}function Ge(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(Le,Object.assign({},H(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return v().createElement(Re,Object.assign({},H(t,"expanded-icon"),{className:"expanded-icon"}));default:return v().createElement(De,Object.assign({},H(t,"expanded-icon"),{className:"expanded-icon"}))}}function Qe(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(Be,Object.assign({},H(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v().createElement(ze,Object.assign({},H(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return v().createElement(Ie,Object.assign({},H(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var Ze=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],Xe=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var r in a.state.expanded)t.push(a.state.expanded[r]);t[e]=!t[e],a.setState({expanded:t})},a.state={expanded:[]},a}return f(t,e),c(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,a=t.theme,r=t.iconStyle;return this.state.expanded[e]?v().createElement(Ge,{theme:a,iconStyle:r}):v().createElement(Qe,{theme:a,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,a=t.src,r=t.groupArraysAfterLength,n=(t.depth,t.name),o=t.theme,s=t.jsvRoot,i=t.namespace,l=(t.parent_type,j(t,Ze)),c=0,u=5*this.props.indentWidth;s||(c=5*this.props.indentWidth);var d=r,b=Math.ceil(a.length/d);return v().createElement("div",Object.assign({className:"object-key-val"},H(o,s?"jsv-root":"objectKeyVal",{paddingLeft:c})),v().createElement(Je,this.props),v().createElement("span",null,v().createElement(Ye,Object.assign({size:a.length},this.props))),Q(Array(b)).map((function(t,r){return v().createElement("div",Object.assign({key:r,className:"object-key-val array-group"},H(o,"objectKeyVal",{marginLeft:6,paddingLeft:u})),v().createElement("span",H(o,"brace-row"),v().createElement("div",Object.assign({className:"icon-container"},H(o,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?v().createElement(rt,Object.assign({key:n+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:a.slice(r*d,r*d+d),namespace:i,type:"array",parent_type:"array_group",theme:o},l)):v().createElement("span",Object.assign({},H(o,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",v().createElement("div",Object.assign({},H(o,"array-group-meta-data"),{className:"array-group-meta-data"}),v().createElement("span",Object.assign({className:"object-size"},H(o,"object-size")),r*d," - ",r*d+d>a.length?a.length:r*d+d)),"]")))})))}}])}(v().PureComponent),et=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],tt=function(e){function t(e){var a;i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({expanded:!a.state.expanded},(function(){te.set(a.props.rjvId,a.props.namespace,"expanded",a.state.expanded)}))},a.getObjectContent=function(e,t,r){return v().createElement("div",{className:"pushed-content object-container"},v().createElement("div",Object.assign({className:"object-content"},H(a.props.theme,"pushed-content")),a.renderObjectContents(t,r)))},a.getEllipsis=function(){return 0===a.state.size?null:v().createElement("div",Object.assign({},H(a.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:a.toggleCollapsed}),"...")},a.getObjectMetaData=function(e){var t=a.props,r=(t.rjvId,t.theme,a.state),n=r.size,o=r.hovered;return v().createElement(Ye,Object.assign({rowHovered:o,size:n},a.props))},a.renderObjectContents=function(e,t){var r,n=a.props,o=n.depth,s=n.parent_type,i=n.index_offset,l=n.groupArraysAfterLength,c=n.namespace,u=a.state.object_type,d=[],b=Object.keys(e||{});return a.props.sortKeys&&"array"!==u&&(b=b.sort()),b.forEach((function(n){if(r=new at(n,e[n]),"array_group"===s&&i&&(r.name=parseInt(r.name)+i),e.hasOwnProperty(n))if("object"===r.type)d.push(v().createElement(rt,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:c.concat(r.name),parent_type:u},t)));else if("array"===r.type){var b=rt;l&&r.value.length>l&&(b=Xe),d.push(v().createElement(b,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:c.concat(r.name),type:"array",parent_type:u},t)))}else d.push(v().createElement($e,Object.assign({key:r.name+"_"+c,variable:r,singleIndent:5,namespace:c,type:a.props.type},t)))})),d};var r=t.getState(e);return a.state=s(s({},r),{},{prevProps:{}}),a}return f(t,e),c(t,[{key:"getBraceStart",value:function(e,t){var a=this,r=this.props,n=r.src,o=r.theme,s=r.iconStyle;if("array_group"===r.parent_type)return v().createElement("span",null,v().createElement("span",H(o,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(n):null);var i=t?Ge:Qe;return v().createElement("span",null,v().createElement("span",Object.assign({onClick:function(e){a.toggleCollapsed()}},H(o,"brace-row")),v().createElement("div",Object.assign({className:"icon-container"},H(o,"icon-container")),v().createElement(i,{theme:o,iconStyle:s})),v().createElement(Je,this.props),v().createElement("span",H(o,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(n):null)}},{key:"render",value:function(){var e=this,t=this.props,a=t.depth,r=t.src,n=(t.namespace,t.name,t.type,t.parent_type),o=t.theme,i=t.jsvRoot,l=t.iconStyle,c=j(t,et),u=this.state,d=u.object_type,b=u.expanded,p={};return i||"array_group"===n?"array_group"===n&&(p.borderLeft=0,p.display="inline"):p.paddingLeft=5*this.props.indentWidth,v().createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(s(s({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(s(s({},e.state),{},{hovered:!1}))}},H(o,i?"jsv-root":"objectKeyVal",p)),this.getBraceStart(d,b),b?this.getObjectContent(a,r,s({theme:o,iconStyle:l},c)):this.getEllipsis(),v().createElement("span",{className:"brace-row"},v().createElement("span",{style:s(s({},H(o,"brace").style),{},{paddingLeft:b?"3px":"0px"})},"array"===d?"]":"}"),b?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var r=a.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?s(s({},t.getState(e)),{},{prevProps:e}):null}}])}(v().PureComponent);tt.getState=function(e){var t=Object.keys(e.src).length,a=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:x(e.src),namespace:e.namespace}))&&0!==t;return{expanded:te.get(e.rjvId,e.namespace,"expanded",a),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var at=c((function e(t,a){i(this,e),this.name=t,this.value=a,this.type=x(a)}));E(tt);const rt=tt;var nt=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;no.groupArraysAfterLength&&(i=Xe),v().createElement("div",{className:"pretty-json-container object-container"},v().createElement("div",{className:"object-content"},v().createElement(i,Object.assign({namespace:s,depth:0,jsvRoot:!0},o))))},e}return f(t,e),c(t)}(v().PureComponent),ot=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).closeModal=function(){X.dispatch({rjvId:a.props.rjvId,name:"RESET"})},a.submit=function(){a.props.submit(a.state.input)},a.state={input:e.input?e.input:""},a}return f(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.theme,r=t.rjvId,n=t.isValid,o=this.state.input,s=n(o);return v().createElement("div",Object.assign({className:"key-modal-request"},H(a,"key-modal-request"),{onClick:this.closeModal}),v().createElement("div",Object.assign({},H(a,"key-modal"),{onClick:function(e){e.stopPropagation()}}),v().createElement("div",H(a,"key-modal-label"),"Key Name:"),v().createElement("div",{style:{position:"relative"}},v().createElement("input",Object.assign({},H(a,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:o,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){s&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),s?v().createElement(We,Object.assign({},H(a,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),v().createElement("span",H(a,"key-modal-cancel"),v().createElement(Te,Object.assign({},H(a,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){X.dispatch({rjvId:r,name:"RESET"})}})))))}}])}(v().PureComponent),st=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;n(()=>{var t={9735:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (/~https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},294:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (/~https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},1733:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},8974:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},6933:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},523:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},1223:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},1233:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},2847:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},8120:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},6305:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},525:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},4124:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},7167:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},4582:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},7096:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (/~https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},9887:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},7199:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},1985:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (/~https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},8093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},1615:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (/~https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},9063:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},9446:(e,t,a)=>{"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var n=a(1308);t.threezerotwofour=r(n);var o=a(9735);t.apathy=r(o);var s=a(294);t.ashes=r(s);var i=a(1733);t.atelierDune=r(i);var l=a(8974);t.atelierForest=r(l);var c=a(6933);t.atelierHeath=r(c);var u=a(523);t.atelierLakeside=r(u);var d=a(1223);t.atelierSeaside=r(d);var b=a(1233);t.bespin=r(b);var p=a(2847);t.brewer=r(p);var f=a(8120);t.bright=r(f);var h=a(6305);t.chalk=r(h);var m=a(525);t.codeschool=r(m);var v=a(4124);t.colors=r(v);var g=a(7167);t.default=r(g);var y=a(4582);t.eighties=r(y);var k=a(7096);t.embers=r(k);var E=a(9887);t.flat=r(E);var j=a(7199);t.google=r(j);var w=a(1985);t.grayscale=r(w);var x=a(8093);t.greenscreen=r(x);var C=a(1615);t.harmonic=r(C);var O=a(9063);t.hopscotch=r(O);var M=a(9033);t.isotope=r(M);var _=a(4112);t.marrakesh=r(_);var S=a(9600);t.mocha=r(S);var A=a(1240);t.monokai=r(A);var F=a(9768);t.ocean=r(F);var P=a(8293);t.paraiso=r(P);var D=a(3093);t.pop=r(D);var I=a(1951);t.railscasts=r(I);var R=a(6368);t.shapeshifter=r(R);var z=a(2317);t.solarized=r(z);var B=a(1091);t.summerfruit=r(B);var L=a(6943);t.tomorrow=r(L);var q=a(5670);t.tube=r(q);var N=a(2536);t.twilight=r(N)},9033:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},4112:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},9600:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},1240:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},9768:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},8293:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},3093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},1951:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},6368:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},2317:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},1091:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},1308:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},6943:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},5670:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},2536:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},6481:(e,t,a)=>{var r=a(4176),n={};for(var o in r)r.hasOwnProperty(o)&&(n[r[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in s)if(s.hasOwnProperty(i)){if(!("channels"in s[i]))throw new Error("missing channels property: "+i);if(!("labels"in s[i]))throw new Error("missing channel labels property: "+i);if(s[i].labels.length!==s[i].channels)throw new Error("channel and label counts mismatch: "+i);var l=s[i].channels,c=s[i].labels;delete s[i].channels,delete s[i].labels,Object.defineProperty(s[i],"channels",{value:l}),Object.defineProperty(s[i],"labels",{value:c})}s.rgb.hsl=function(e){var t,a,r=e[0]/255,n=e[1]/255,o=e[2]/255,s=Math.min(r,n,o),i=Math.max(r,n,o),l=i-s;return i===s?t=0:r===i?t=(n-o)/l:n===i?t=2+(o-r)/l:o===i&&(t=4+(r-n)/l),(t=Math.min(60*t,360))<0&&(t+=360),a=(s+i)/2,[t,100*(i===s?0:a<=.5?l/(i+s):l/(2-i-s)),100*a]},s.rgb.hsv=function(e){var t,a,r,n,o,s=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(s,i,l),u=c-Math.min(s,i,l),d=function(e){return(c-e)/6/u+.5};return 0===u?n=o=0:(o=u/c,t=d(s),a=d(i),r=d(l),s===c?n=r-a:i===c?n=1/3+t-r:l===c&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*o,100*c]},s.rgb.hwb=function(e){var t=e[0],a=e[1],r=e[2];return[s.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(a,r))*100,100*(r=1-1/255*Math.max(t,Math.max(a,r)))]},s.rgb.cmyk=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*((1-a-(t=Math.min(1-a,1-r,1-n)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=n[e];if(t)return t;var a,o,s,i=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=(o=e,s=r[l],Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*a+.0722*r),100*(.0193*t+.1192*a+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),a=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,a=(a/=95.047)>.008856?Math.pow(a,1/3):7.787*a+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(a-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.hsl.rgb=function(e){var t,a,r,n,o,s=e[0]/360,i=e[1]/100,l=e[2]/100;if(0===i)return[o=255*l,o,o];t=2*l-(a=l<.5?l*(1+i):l+i-l*i),n=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(a-t)*r:2*r<1?a:3*r<2?t+(a-t)*(2/3-r)*6:t,n[c]=255*o;return n},s.hsl.hsv=function(e){var t=e[0],a=e[1]/100,r=e[2]/100,n=a,o=Math.max(r,.01);return a*=(r*=2)<=1?r:2-r,n*=o<=1?o:2-o,[t,100*(0===r?2*n/(o+n):2*a/(r+a)),(r+a)/2*100]},s.hsv.rgb=function(e){var t=e[0]/60,a=e[1]/100,r=e[2]/100,n=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-a),i=255*r*(1-a*o),l=255*r*(1-a*(1-o));switch(r*=255,n){case 0:return[r,l,s];case 1:return[i,r,s];case 2:return[s,r,l];case 3:return[s,i,r];case 4:return[l,s,r];case 5:return[r,s,i]}},s.hsv.hsl=function(e){var t,a,r,n=e[0],o=e[1]/100,s=e[2]/100,i=Math.max(s,.01);return r=(2-o)*s,a=o*i,[n,100*(a=(a/=(t=(2-o)*i)<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,a,r,n,o,s,i,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),1&t&&(r=1-r),n=c+r*((a=1-u)-c),t){default:case 6:case 0:o=a,s=n,i=c;break;case 1:o=n,s=a,i=c;break;case 2:o=c,s=a,i=n;break;case 3:o=c,s=n,i=a;break;case 4:o=n,s=c,i=a;break;case 5:o=a,s=c,i=n}return[255*o,255*s,255*i]},s.cmyk.rgb=function(e){var t=e[0]/100,a=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},s.xyz.rgb=function(e){var t,a,r,n=e[0]/100,o=e[1]/100,s=e[2]/100;return a=-.9689*n+1.8758*o+.0415*s,r=.0557*n+-.204*o+1.057*s,t=(t=3.2406*n+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(a=Math.min(Math.max(0,a),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],a=e[1],r=e[2];return a/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(t-a),200*(a-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,a,r,n=e[0];t=e[1]/500+(a=(n+16)/116),r=a-e[2]/200;var o=Math.pow(a,3),s=Math.pow(t,3),i=Math.pow(r,3);return a=o>.008856?o:(a-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,[t*=95.047,a*=100,r*=108.883]},s.lab.lch=function(e){var t,a=e[0],r=e[1],n=e[2];return(t=360*Math.atan2(n,r)/2/Math.PI)<0&&(t+=360),[a,Math.sqrt(r*r+n*n),t]},s.lch.lab=function(e){var t,a=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[a,r*Math.cos(t),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],a=e[1],r=e[2],n=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(t/255));return 2===n&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],a=e[1],r=e[2];return t===a&&a===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var a;return e-=16,[Math.floor(e/36)/5*255,Math.floor((a=e%36)/6)/5*255,a%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var a=t[0];3===t[0].length&&(a=a.split("").map((function(e){return e+e})).join(""));var r=parseInt(a,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(a,r),n),s=Math.min(Math.min(a,r),n),i=o-s;return t=i<=0?0:o===a?(r-n)/i%6:o===r?2+(n-a)/i:4+(a-r)/i+4,t/=6,[360*(t%=1),100*i,100*(i<1?s/(1-i):0)]},s.hsl.hcg=function(e){var t,a=e[1]/100,r=e[2]/100,n=0;return(t=r<.5?2*a*r:2*a*(1-r))<1&&(n=(r-.5*t)/(1-t)),[e[0],100*t,100*n]},s.hsv.hcg=function(e){var t=e[1]/100,a=e[2]/100,r=t*a,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.hcg.rgb=function(e){var t=e[0]/360,a=e[1]/100,r=e[2]/100;if(0===a)return[255*r,255*r,255*r];var n,o=[0,0,0],s=t%1*6,i=s%1,l=1-i;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return n=(1-a)*r,[255*(a*o[0]+n),255*(a*o[1]+n),255*(a*o[2]+n)]},s.hcg.hsv=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t),r=0;return a>0&&(r=t/a),[e[0],100*r,100*a]},s.hcg.hsl=function(e){var t=e[1]/100,a=e[2]/100*(1-t)+.5*t,r=0;return a>0&&a<.5?r=t/(2*a):a>=.5&&a<1&&(r=t/(2*(1-a))),[e[0],100*r,100*a]},s.hcg.hwb=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},s.hwb.hcg=function(e){var t=e[1]/100,a=1-e[2]/100,r=a-t,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},4732:(e,t,a)=>{var r=a(6481),n=a(1157),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=n(e);Object.keys(t).forEach((function(a){var r=t[a];o[e][a]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var a=e(t);if("object"==typeof a)for(var r=a.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},1157:(e,t,a)=>{var r=a(6481);function n(e){var t=function(){for(var e={},t=Object.keys(r),a=t.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4877:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6138:(e,t,a)=>{var r=a(4877),n=a(301),o=Object.hasOwnProperty,s=Object.create(null);for(var i in r)o.call(r,i)&&(s[r[i]]=i);var l=e.exports={to:{},get:{}};function c(e,t,a){return Math.min(Math.max(t,e),a)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),a="hsl";break;case"hwb":t=l.get.hwb(e),a="hwb";break;default:t=l.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,a,n,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],a=0;a<3;a++){var i=2*a;s[a]=parseInt(t.slice(i,i+2),16)}n&&(s[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],a=0;a<3;a++)s[a]=parseInt(t[a]+t[a],16);n&&(s[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)s[a]=parseInt(t[a+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((s=r[t[1]])[3]=1,s):null:null;for(a=0;a<3;a++)s[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(a=0;a<3;a++)s[a]=c(s[a],0,255);return s[3]=c(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(a)?1:a,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(a)?1:a,0,1)]}return null},l.to.hex=function(){var e=n(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+r+"%)":"rgba("+t+"%, "+a+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},3639:(e,t,a)=>{"use strict";var r=a(6138),n=a(4732),o=[].slice,s=["keyword","gray","hex"],i={};Object.keys(n).forEach((function(e){i[o.call(n[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in s&&(t=null),t&&!(t in n))throw new Error("Unknown model: "+t);var a,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=r.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=n[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=n[this.model].channels;var p=o.call(e,0,u);this.color=b(p,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var f=Object.keys(e);"alpha"in e&&(f.splice(f.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var h=f.sort().join("");if(!(h in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[h];var m=n[this.model].labels,v=[];for(a=0;aa?(t+.05)/(a+.05):(a+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),a=t.color[0];return a=(a=(a+e)%360)<0?360+a:a,t.color[0]=a,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var a=e.rgb(),r=this.rgb(),n=void 0===t?.5:t,o=2*n-1,s=a.alpha()-r.alpha(),i=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,l=1-i;return c.rgb(i*a.red()+l*r.red(),i*a.green()+l*r.green(),i*a.blue()+l*r.blue(),a.alpha()*n+r.alpha()*(1-n))}},Object.keys(n).forEach((function(e){if(-1===s.indexOf(e)){var t=n[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var a,r="number"==typeof arguments[t]?t:this.valpha;return new c((a=n[this.model][e].raw(this.color),Array.isArray(a)?a:[a]).concat(r),e)},c[e]=function(a){return"number"==typeof a&&(a=b(o.call(arguments),t)),new c(a,e)}}})),e.exports=c},9784:e=>{"use strict";var t,a="object"==typeof Reflect?Reflect:null,r=a&&"function"==typeof a.apply?a.apply:function(e,t,a){return Function.prototype.apply.call(e,t,a)};t=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(a,r){function n(a){e.removeListener(t,o),r(a)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),a([].slice.call(arguments))}h(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&h(e,"error",t,{once:!0})}(e,n)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,a,r){var n,o,s,c;if(i(a),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),o=e._events),s=o[t]),void 0===s)s=o[t]=a,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[a,s]:[s,a]:r?s.unshift(a):s.push(a),(n=l(e))>0&&s.length>n&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,a){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=u.bind(r);return n.listener=a,r.wrapFn=n,n}function b(e,t,a){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?a?[n.listener||n]:[n]:a?function(e){for(var t=new Array(e.length),a=0;a0&&(s=t[0]),s instanceof Error)throw s;var i=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw i.context=s,i}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=f(l,c);for(a=0;a=0;o--)if(a[o]===t||a[o].listener===t){s=a[o].listener,n=o;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},8336:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},3989:(e,t,a)=>{var r="__lodash_placeholder__",n=32,o=1/0,s=NaN,i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",n],["partialRight",64],["rearg",256]],l=/^\s+|\s+$/g,c=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,u=/\{\n\/\* \[wrapped with (.+)\] \*/,d=/,? & /,b=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,f=/^\[object .+?Constructor\]$/,h=/^0o[0-7]+$/i,m=/^(?:0|[1-9]\d*)$/,v=parseInt,g="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,y="object"==typeof self&&self&&self.Object===Object&&self,k=g||y||Function("return this")();function E(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function j(e){return e!=e}function w(e,t){for(var a=-1,n=e.length,o=0,s=[];++a2?C:void 0);function q(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a,r=G(a=e.prototype)?R(a):{},n=e.apply(r,t);return G(n)?n:r}}function N(e,t,a,r,n,o,s,i,l,c){var u=128&t,d=1&t,b=2&t,p=24&t,f=512&t,h=b?void 0:q(e);return function m(){for(var v=arguments.length,g=Array(v),y=v;y--;)g[y]=arguments[y];if(p)var E=V(m),j=function(e,t){for(var a=e.length,r=0;a--;)e[a]===t&&r++;return r}(g,E);if(r&&(g=function(e,t,a,r){for(var n=-1,o=e.length,s=a.length,i=-1,l=t.length,c=z(o-s,0),u=Array(l+c),d=!r;++i1&&g.reverse(),u&&l1?"& ":"")+t[r],t=t.join(a>2?", ":" "),e.replace(c,"{\n/* [wrapped with "+t+"] */\n")}function H(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||m.test(e))&&e>-1&&e%1==0&&e-1}(e,r)&&e.push(r)})),e.sort()}function J(e,t,a){var r=function(e,t,a,r,o,s,i,l){var c=2&t;if(!c&&"function"!=typeof e)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),i=void 0===i?i:z(Q(i),0),l=void 0===l?l:Q(l),u-=o?o.length:0,64&t){var d=r,b=o;r=o=void 0}var p=[e,t,a,r,o,d,b,void 0,i,l];if(e=p[0],t=p[1],a=p[2],r=p[3],o=p[4],!(l=p[9]=null==p[9]?c?0:e.length:z(p[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)f=8==t||16==t?function(e,t,a){var r=q(e);return function n(){for(var o=arguments.length,s=Array(o),i=o,l=V(n);i--;)s[i]=arguments[i];var c=o<3&&s[0]!==l&&s[o-1]!==l?[]:w(s,l);return(o-=c.length){"use strict";var r=a(8336),n=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],a=0,s=e.length;a{"use strict";t.exports=e}},a={};function r(e){var n=a[e];if(void 0!==n)return n.exports;var o=a[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(t){var a=function(t){if("object"!=e(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var r=a.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(a)?a:a+""}function a(e,a,r){return(a=t(a))in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function s(e){for(var t=1;tdt});var m=r(4119),v=r.n(m);function g(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function y(e){this.setState(function(t){var a=this.constructor.getDerivedStateFromProps(e,t);return null!=a?a:null}.bind(this))}function k(e,t){try{var a=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function E(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var a=null,r=null,n=null;if("function"==typeof t.componentWillMount?a="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(a="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?n="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(n="UNSAFE_componentWillUpdate"),null!==a||null!==r||null!==n){var o=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==a?"\n "+a:"")+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=g,t.componentWillReceiveProps=y),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=k;var i=t.componentDidUpdate;t.componentDidUpdate=function(e,t,a){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:a;i.call(this,e,t,r)}}return e}function j(e,t){if(null==e)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;a[r]=e[r]}return a}function w(e,t){if(null==e)return{};var a,r,n=j(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var a=0,r=Array(t);a1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o2?r-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.defaultBase16,n=void 0===r?q:r,o=t.base16Themes,s=U(a,void 0===o?null:o);s&&(a=L(L({},s),a));for(var i=N.reduce((function(e,t){return e[t]=a[t]||n[t],e}),{}),l=Object.keys(a).reduce((function(e,t){return-1===N.indexOf(t)?(e[t]=a[t],e):e}),{}),c=e(i),u=V(l,c),d=arguments.length,b=new Array(d>3?d-3:0),p=3;p=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,n=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw n}}}}(n);try{for(d.s();!(i=d.n()).done;)u=u[i.value]}catch(e){d.e(e)}finally{d.f()}return s?"array"==x(u)?u.splice(r,1):delete u[r]:null!==r?u[r]=o:c=o,e.set(t,"global","src",c),c},e.deepCopy=function(t,a){var r,n=x(t),o=a.shift();return"array"==n?r=Z(t):"object"==n&&(r=s({},t)),void 0!==o&&(r[o]=e.deepCopy(t[o],a)),r},e}return h(t,e),c(t)}(X.EventEmitter));te.register(ae.handleAction.bind(ae));const re=ae;var ne=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){re.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.getFunctionDisplay=function(e){var t=a.props;return e?v().createElement("span",null,a.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),v().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},v().createElement("span",null,"{"),v().createElement("span",$(t.theme,"ellipsis"),"..."),v().createElement("span",null,"}"))):a.props.value.toString().slice(9,-1)},a.state={collapsed:re.get(e.rjvId,e.namespace,"collapsed",!0)},a}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return v().createElement("div",$(e.theme,"function"),v().createElement(Y,Object.assign({type_name:"function"},e)),v().createElement("span",Object.assign({},$(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}])}(v().PureComponent),oe=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",$(this.props.theme,"nan"),"NaN")}}])}(v().PureComponent),se=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",$(this.props.theme,"null"),"NULL")}}])}(v().PureComponent),ie=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",$(e.theme,"integer"),v().createElement(Y,Object.assign({type_name:"int"},e)),this.props.value)}}])}(v().PureComponent),le=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",$(e.theme,"regexp"),v().createElement(Y,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}])}(v().PureComponent),ce=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){re.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.state={collapsed:re.get(e.rjvId,e.namespace,"collapsed",!0)},a}return h(t,e),c(t,[{key:"render",value:function(){var e=this.state.collapsed,t=this.props,a=t.collapseStringsAfterLength,r=t.theme,n=t.escapeStrings,o=t.value,s="integer"===x(a),i={style:{cursor:"default"}};return n&&(o=C(o)),s&&o.length>a&&(i.style.cursor="pointer",e&&(o=v().createElement("span",null,o.substring(0,a),v().createElement("span",$(r,"ellipsis")," ...")))),v().createElement("div",$(r,"string"),v().createElement(Y,Object.assign({type_name:"string"},t)),v().createElement("span",Object.assign({className:"string-value"},i,{onClick:this.toggleCollapsed}),'"',o,'"'))}}])}(v().PureComponent),ue=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",$(this.props.theme,"undefined"),"undefined")}}])}(v().PureComponent);function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?o:null,namespace:n.splice(0,n.length-1),existing_value:i,variable_removed:!1,key_name:null};"object"===x(i)?te.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:l,data:e}):te.dispatch({name:"VARIABLE_ADDED",rjvId:l,data:s(s({},e),{},{new_value:[].concat(Z(i),[null])})})}})))},e.getRemoveObject=function(t){var a=e.props,r=a.theme,n=(a.hover,a.namespace),o=a.name,s=a.src,i=a.rjvId;if(1!==n.length)return v().createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},v().createElement(Ve,Object.assign({className:"click-to-remove-icon"},$(r,"removeVarIcon"),{onClick:function(){te.dispatch({name:"VARIABLE_REMOVED",rjvId:i,data:{name:o,namespace:n.splice(0,n.length-1),existing_value:s,variable_removed:!0}})}})))},e.render=function(){var t=e.props,a=t.theme,r=t.onDelete,n=t.onAdd,o=t.enableClipboard,s=t.src,i=t.namespace,l=t.rowHovered;return v().createElement("div",Object.assign({},$(a,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),o?v().createElement(Ye,{rowHovered:l,clickCallback:o,src:s,theme:a,namespace:i}):null,!1!==n?e.getAddAttribute(l):null,!1!==r?e.getRemoveObject(l):null)},e}return h(t,e),c(t)}(v().PureComponent);function Qe(e){var t=e.parent_type,a=e.namespace,r=e.quotesOnKeys,n=e.theme,o=e.jsvRoot,s=e.name,i=e.displayArrayKey,l=e.name?e.name:"";return!o||!1!==s&&null!==s?"array"==t?i?v().createElement("span",Object.assign({},$(n,"array-key"),{key:a}),v().createElement("span",{className:"array-key"},l),v().createElement("span",$(n,"colon"),":")):v().createElement("span",null):v().createElement("span",Object.assign({},$(n,"object-name"),{key:a}),v().createElement("span",{className:"object-key"},r&&v().createElement("span",{style:{verticalAlign:"top"}},'"'),v().createElement("span",null,l),r&&v().createElement("span",{style:{verticalAlign:"top"}},'"')),v().createElement("span",$(n,"colon"),":")):v().createElement("span",null)}function Ze(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(Ne,Object.assign({},$(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return v().createElement(Be,Object.assign({},$(t,"expanded-icon"),{className:"expanded-icon"}));default:return v().createElement(Re,Object.assign({},$(t,"expanded-icon"),{className:"expanded-icon"}))}}function Xe(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(qe,Object.assign({},$(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v().createElement(Le,Object.assign({},$(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return v().createElement(ze,Object.assign({},$(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var et=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],tt=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var r in a.state.expanded)t.push(a.state.expanded[r]);t[e]=!t[e],a.setState({expanded:t})},a.state={expanded:[]},a}return h(t,e),c(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,a=t.theme,r=t.iconStyle;return this.state.expanded[e]?v().createElement(Ze,{theme:a,iconStyle:r}):v().createElement(Xe,{theme:a,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,a=t.src,r=t.groupArraysAfterLength,n=(t.depth,t.name),o=t.theme,s=t.jsvRoot,i=t.namespace,l=(t.parent_type,w(t,et)),c=0,u=5*this.props.indentWidth;s||(c=5*this.props.indentWidth);var d=r,b=Math.ceil(a.length/d);return v().createElement("div",Object.assign({className:"object-key-val"},$(o,s?"jsv-root":"objectKeyVal",{paddingLeft:c})),v().createElement(Qe,this.props),v().createElement("span",null,v().createElement(Ge,Object.assign({size:a.length},this.props))),Z(Array(b)).map((function(t,r){return v().createElement("div",Object.assign({key:r,className:"object-key-val array-group"},$(o,"objectKeyVal",{marginLeft:6,paddingLeft:u})),v().createElement("span",$(o,"brace-row"),v().createElement("div",Object.assign({className:"icon-container"},$(o,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?v().createElement(ot,Object.assign({key:n+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:a.slice(r*d,r*d+d),namespace:i,type:"array",parent_type:"array_group",theme:o},l)):v().createElement("span",Object.assign({},$(o,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",v().createElement("div",Object.assign({},$(o,"array-group-meta-data"),{className:"array-group-meta-data"}),v().createElement("span",Object.assign({className:"object-size"},$(o,"object-size")),r*d," - ",r*d+d>a.length?a.length:r*d+d)),"]")))})))}}])}(v().PureComponent),at=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],rt=function(e){function t(e){var a;i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({expanded:!a.state.expanded},(function(){re.set(a.props.rjvId,a.props.namespace,"expanded",a.state.expanded)}))},a.getObjectContent=function(e,t,r){return v().createElement("div",{className:"pushed-content object-container"},v().createElement("div",Object.assign({className:"object-content"},$(a.props.theme,"pushed-content")),a.renderObjectContents(t,r)))},a.getEllipsis=function(){return 0===a.state.size?null:v().createElement("div",Object.assign({},$(a.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:a.toggleCollapsed}),"...")},a.getObjectMetaData=function(e){var t=a.props,r=(t.rjvId,t.theme,a.state),n=r.size,o=r.hovered;return v().createElement(Ge,Object.assign({rowHovered:o,size:n},a.props))},a.renderObjectContents=function(e,t){var r,n=a.props,o=n.depth,s=n.parent_type,i=n.index_offset,l=n.groupArraysAfterLength,c=n.namespace,u=a.state.object_type,d=[],b=Object.keys(e||{});return a.props.sortKeys&&"array"!==u&&(b=b.sort()),b.forEach((function(n){if(r=new nt(n,e[n]),"array_group"===s&&i&&(r.name=parseInt(r.name)+i),e.hasOwnProperty(n))if("object"===r.type)d.push(v().createElement(ot,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:c.concat(r.name),parent_type:u},t)));else if("array"===r.type){var b=ot;l&&r.value.length>l&&(b=tt),d.push(v().createElement(b,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:c.concat(r.name),type:"array",parent_type:u},t)))}else d.push(v().createElement(Je,Object.assign({key:r.name+"_"+c,variable:r,singleIndent:5,namespace:c,type:a.props.type},t)))})),d};var r=t.getState(e);return a.state=s(s({},r),{},{prevProps:{}}),a}return h(t,e),c(t,[{key:"getBraceStart",value:function(e,t){var a=this,r=this.props,n=r.src,o=r.theme,s=r.iconStyle;if("array_group"===r.parent_type)return v().createElement("span",null,v().createElement("span",$(o,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(n):null);var i=t?Ze:Xe;return v().createElement("span",null,v().createElement("span",Object.assign({onClick:function(e){a.toggleCollapsed()}},$(o,"brace-row")),v().createElement("div",Object.assign({className:"icon-container"},$(o,"icon-container")),v().createElement(i,{theme:o,iconStyle:s})),v().createElement(Qe,this.props),v().createElement("span",$(o,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(n):null)}},{key:"render",value:function(){var e=this,t=this.props,a=t.depth,r=t.src,n=(t.namespace,t.name,t.type,t.parent_type),o=t.theme,i=t.jsvRoot,l=t.iconStyle,c=w(t,at),u=this.state,d=u.object_type,b=u.expanded,p={};return i||"array_group"===n?"array_group"===n&&(p.borderLeft=0,p.display="inline"):p.paddingLeft=5*this.props.indentWidth,v().createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(s(s({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(s(s({},e.state),{},{hovered:!1}))}},$(o,i?"jsv-root":"objectKeyVal",p)),this.getBraceStart(d,b),b?this.getObjectContent(a,r,s({theme:o,iconStyle:l},c)):this.getEllipsis(),v().createElement("span",{className:"brace-row"},v().createElement("span",{style:s(s({},$(o,"brace").style),{},{paddingLeft:b?"3px":"0px"})},"array"===d?"]":"}"),b?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var r=a.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?s(s({},t.getState(e)),{},{prevProps:e}):null}}])}(v().PureComponent);rt.getState=function(e){var t=Object.keys(e.src).length,a=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:x(e.src),namespace:e.namespace}))&&0!==t;return{expanded:re.get(e.rjvId,e.namespace,"expanded",a),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var nt=c((function e(t,a){i(this,e),this.name=t,this.value=a,this.type=x(a)}));E(rt);const ot=rt;var st=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;no.groupArraysAfterLength&&(i=tt),v().createElement("div",{className:"pretty-json-container object-container"},v().createElement("div",{className:"object-content"},v().createElement(i,Object.assign({namespace:s,depth:0,jsvRoot:!0},o))))},e}return h(t,e),c(t)}(v().PureComponent),it=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).closeModal=function(){te.dispatch({rjvId:a.props.rjvId,name:"RESET"})},a.submit=function(){a.props.submit(a.state.input)},a.state={input:e.input?e.input:""},a}return h(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.theme,r=t.rjvId,n=t.isValid,o=this.state.input,s=n(o);return v().createElement("div",Object.assign({className:"key-modal-request"},$(a,"key-modal-request"),{onClick:this.closeModal}),v().createElement("div",Object.assign({},$(a,"key-modal"),{onClick:function(e){e.stopPropagation()}}),v().createElement("div",$(a,"key-modal-label"),"Key Name:"),v().createElement("div",{style:{position:"relative"}},v().createElement("input",Object.assign({},$(a,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:o,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){s&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),s?v().createElement(He,Object.assign({},$(a,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),v().createElement("span",$(a,"key-modal-cancel"),v().createElement(We,Object.assign({},$(a,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){te.dispatch({rjvId:r,name:"RESET"})}})))))}}])}(v().PureComponent),lt=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;n{r.r(t),r.d(t,{HTML5Backend:()=>O,NativeTypes:()=>n,getEmptyImage:()=>y});var n={};function s(e){let t=null;return()=>(null==t&&(t=e()),t)}r.r(n),r.d(n,{FILE:()=>a,HTML:()=>c,TEXT:()=>h,URL:()=>d});class i{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const s=[];return r.forEach((e=>s.push(e))),s}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter((e=>e!==n))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class o{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const a="__NATIVE_FILE__",d="__NATIVE_URL__",h="__NATIVE_TEXT__",c="__NATIVE_HTML__";function u(e,t,r){const n=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=n?n:r}const g={[a]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[c]:{exposeProperties:{html:(e,t)=>u(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[d]:{exposeProperties:{urls:(e,t)=>u(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[h]:{exposeProperties:{text:(e,t)=>u(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function l(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(g).filter((e=>{const r=g[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const v=s((()=>/firefox/i.test(navigator.userAgent))),p=s((()=>Boolean(window.safari)));class f{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:s,c3s:i}=this;let o=t.length-1;if(e===t[o])return r[o];let a,d=0,h=i.length-1;for(;d<=h;){a=Math.floor(.5*(d+h));const n=t[a];if(ne))return r[a];h=a-1}}o=Math.max(0,h);const c=e-t[o],u=c*c;return r[o]+n[o]*c+s[o]*u+i[o]*c*u}constructor(e,t){const{length:r}=e,n=[];for(let e=0;ee[t]{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),s=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),s=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return I({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return I({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(n).some((t=>n[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=g[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new o(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&D(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=T(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,s=l(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),s=this.sourcePreviewNodes.get(e)||t;if(s){const{anchorX:e,anchorY:i,offsetX:o,offsetY:a}=this.getCurrentSourcePreviewNodeOptions(),d=function(e,t,r,n,s){const i="IMG"===(o=t).nodeName&&(v()||!(null===(a=document.documentElement)||void 0===a?void 0:a.contains(o)));var o,a;const d=D(i?e:t),h={x:r.x-d.x,y:r.y-d.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:g,anchorY:l}=n,{dragPreviewWidth:m,dragPreviewHeight:T}=function(e,t,r,n){let s=e?t.width:r,i=e?t.height:n;return p()&&e&&(i/=window.devicePixelRatio,s/=window.devicePixelRatio),{dragPreviewWidth:s,dragPreviewHeight:i}}(i,t,c,u),{offsetX:E,offsetY:N}=s,I=0===N||N;return{x:0===E||E?E:new f([0,.5,1],[h.x,h.x/c*m,h.x+m-c]).interpolate(g),y:I?N:(()=>{let e=new f([0,.5,1],[h.y,h.y/u*T,h.y+T-u]).interpolate(l);return p()&&i&&(e+=(window.devicePixelRatio-1)*T),e})()}}(t,s,r,{anchorX:e,anchorY:i},{offsetX:o,offsetY:a});n.setDragImage(s,d.x,d.y)}}try{null==n||n.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(s)this.beginDragNativeItem(s);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=l(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:T(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=T(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):l(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:T(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new E(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new i(this.isNodeInDocument)}}let w;function y(){return w||(w=new Image,w.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),w}const O=function(e,t,r){return new S(e,t,r)}}}]); \ No newline at end of file diff --git a/assets/js/648.min.js b/assets/js/648.min.js new file mode 100644 index 000000000..aed3c4c81 --- /dev/null +++ b/assets/js/648.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkpost_expirator=self.webpackChunkpost_expirator||[]).push([[648],{2017:e=>{e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},9648:(e,t,r)=>{r.r(t),r.d(t,{DndContext:()=>i,DndProvider:()=>he,DragPreviewImage:()=>ye,useDrag:()=>_e,useDragDropManager:()=>Re,useDragLayer:()=>Ae,useDrop:()=>Be});var n=r(1594);const i=(0,n.createContext)({dragDropManager:void 0});var o=r(4848);function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var c="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},u={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function d(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(s(1));return r(d)(e,t)}if("function"!=typeof e)throw new Error(s(2));var i=e,o=t,a=[],l=a,g=!1;function f(){l===a&&(l=a.slice())}function h(){if(g)throw new Error(s(3));return o}function p(e){if("function"!=typeof e)throw new Error(s(4));if(g)throw new Error(s(5));var t=!0;return f(),l.push(e),function(){if(t){if(g)throw new Error(s(6));t=!1,f();var r=l.indexOf(e);l.splice(r,1),a=null}}}function y(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(g)throw new Error(s(9));try{g=!0,o=i(o,e)}finally{g=!1}for(var t=a=l,r=0;r=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,s);if(null==a)return void e.dispatch(I);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){l("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(a)}e.dispatch(S(i,u));const d=c.getSource(a).beginDrag(s,a);if(null==d)return;!function(e){l(g(e),"Item must be an object.")}(d),c.pinSource(a);const f=c.getSourceType(a);return{type:h,payload:{itemType:f,item:d,sourceId:a,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!n}}}}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){for(var t=1;t{const s=function(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return function(e){l(void 0===e||g(e),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===t?{}:n.getDropResult()),o}(i,o,n,r),c={type:O,payload:{dropResult:w({},t,s)}};e.dispatch(c)}))}}function T(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){l(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();return null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource()),{type:b}}}function C(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function E(e){return function(t,{clientOffset:r}={}){!function(e){l(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n];C(t.getTargetType(i),r)||e.splice(n,1)}}(n,o,i.getItemType()),function(e,t,r){l(t.isDragging(),"Cannot call hover while not dragging."),l(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t{const o=r[i];var s;return n[i]=(s=o,(...r)=>{const n=s.apply(e,r);void 0!==n&&t(n)}),n}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function M(e,t){return{x:e.x-t.x,y:e.y-t.y}}const x=[],j=[];x.__IS_NONE__=!0,j.__IS_ALL__=!0;class k{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;l("function"==typeof e,"listener must be a function."),l(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===n||i===n+1&&!function(e,t){return e!==x&&(e===j||void 0===t||(r=e,t.filter((e=>r.indexOf(e)>-1))).length>0);var r}(t.dirtyHandlerIds,r);o||e()}finally{n=i}}))}subscribeToOffsetChange(e){l("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return l(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return l(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(C(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return l(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();if(i&&!C(n,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(e);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?M((o=n,{x:(i=t).x+o.x,y:i.y+o.y}),r):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?M(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const _="undefined"!=typeof global?global:self,A=_.MutationObserver||_.WebKitMutationObserver;function N(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const H="function"==typeof A?function(e){let t=1;const r=new A(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:N;class U{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const G=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let t=0,r=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=H(this.flush),this.requestErrorThrow=N((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},q=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new U(this.onError,(e=>t[t.length]=e));return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(G.registerPendingError),B="dnd-core/ADD_SOURCE",L="dnd-core/ADD_TARGET",$="dnd-core/REMOVE_SOURCE",F="dnd-core/REMOVE_TARGET";function V(e,t){t&&Array.isArray(e)?e.forEach((e=>V(e,!1))):l("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var W;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(W||(W={}));let Y=0;function K(e){switch(e[0]){case"S":return W.SOURCE;case"T":return W.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function X(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,i]}=r.next();if(i===t)return!0;n=!!e}while(!n);return!1}class z{addSource(e,t){V(e),function(e){l("function"==typeof e.canDrag,"Expected canDrag to be a function."),l("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),l("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(W.SOURCE,e,t);return this.store.dispatch(function(e){return{type:B,payload:{sourceId:e}}}(r)),r}addTarget(e,t){V(e,!0),function(e){l("function"==typeof e.canDrop,"Expected canDrop to be a function."),l("function"==typeof e.hover,"Expected hover to be a function."),l("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(W.TARGET,e,t);return this.store.dispatch(function(e){return{type:L,payload:{targetId:e}}}(r)),r}containsHandler(e){return X(this.dragSources,e)||X(this.dropTargets,e)}getSource(e,t=!1){return l(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return l(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return l(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return l(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return K(e)===W.SOURCE}isTargetId(e){return K(e)===W.TARGET}removeSource(e){var t;l(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:$,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},G.enqueueTask(q.create(t))}removeTarget(e){l(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:F,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);l(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){l(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=function(e){const t=(Y++).toString();switch(e){case W.SOURCE:return`S${t}`;case W.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(n,t),e===W.SOURCE?this.dragSources.set(n,r):e===W.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const J=(e,t)=>e===t;function Q(e=x,t){switch(t.type){case y:break;case B:case L:case F:case $:return x;default:return j}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=function(e,t){const r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach(((e,t)=>{1===e&&i.push(t)})),i}(r,n);if(!(i.length>0)&&function(e,t,r=J){if(e.length!==t.length)return!1;for(let n=0;ne!==i)))});case O:return ne({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case b:return ne({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,i}function se(e=0,t){switch(t.type){case B:case L:return e+1;case $:case F:return e-1;default:return e}}function ce(e=0){return e+1}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ue(e){for(var t=1;te&&e[t]?e[t]:n||null),r))})}),dragOffset:te(e.dragOffset,t),refCount:se(e.refCount,t),dragOperation:oe(e.dragOperation,t),stateId:ce(e.stateId)};var r,n}function le(e,t=void 0,r={},n=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return d(de,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),o=new k(i,new z(i)),s=new R(i,o),c=e(s,t,r);return s.receiveBackend(c),s}let ge=0;const fe=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var he=(0,n.memo)((function(e){var{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,["children"]);const[s,c]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];return[function(e,t=pe(),r,n){const i=t;return i[fe]||(i[fe]={dragDropManager:le(e,t,r,n)}),i[fe]}(e.backend,e.context,e.options,e.debugMode),!e.context]}(r);return(0,n.useEffect)((()=>{if(c){const e=pe();return++ge,()=>{0==--ge&&(e[fe]=null)}}}),[]),(0,o.jsx)(i.Provider,{value:s,children:t})}));function pe(){return"undefined"!=typeof global?global:window}const ye=(0,n.memo)((function({connect:e,src:t}){return(0,n.useEffect)((()=>{if("undefined"==typeof Image)return;let r=!1;const n=new Image;return n.src=t,n.onload=()=>{e(n),r=!0},()=>{r&&e(null)}})),null}));var Oe=r(2017);const be="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function Se(e,t,r){const[i,o]=(0,n.useState)((()=>t(e))),s=(0,n.useCallback)((()=>{const n=t(e);Oe(i,n)||(o(n),r&&r())}),[i,e,r]);return be(s),[i,s]}function Ie(e,t,r){return function(e,t){const[n,i]=Se(e,t,(()=>r.reconnect()));return be((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})}),[e,i]),n}(t,e||(()=>({})))}function De(e,t){const r=[...t||[]];return null==t&&"function"!=typeof e&&r.push(e),(0,n.useMemo)((()=>"function"==typeof e?e():e),r)}function ve(e){return(0,n.useMemo)((()=>e.hooks.dragSource()),[e])}function we(e){return(0,n.useMemo)((()=>e.hooks.dragPreview()),[e])}function me(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const c=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{const i=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=function(e){return(t=null,r=null)=>{if(!(0,n.isValidElement)(t)){const n=t;return e(n,r),n}const i=t;return function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a
, or turn it into a drag source or a drop target itself.`)}(i),function(e,t){const r=e.ref;return l("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,n.cloneElement)(e,{ref:e=>{Ee(r,e),Ee(t,e)}}):(0,n.cloneElement)(e,{ref:t})}(i,r?t=>e(t,r):e)}}(i);t[r]=()=>e}})),t}function Ee(e,t){"function"==typeof e?e(t):e.current=t}class Pe{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!me(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!me(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Ce({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Te(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Te(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}function Re(){const{dragDropManager:e}=(0,n.useContext)(i);return l(null!=e,"Expected drag drop context"),e}let Me=!1,xe=!1;class je{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){l(!Me,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Me=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Me=!1}}isDragging(){if(!this.sourceId)return!1;l(!xe,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return xe=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{xe=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}class ke{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,n=this.monitor,{isDragging:i}=r;return i?i(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function _e(e,t){const r=De(e,t);l(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const i=function(){const e=Re();return(0,n.useMemo)((()=>new je(e)),[e])}(),o=function(e,t){const r=Re(),i=(0,n.useMemo)((()=>new Pe(r.getBackend())),[r]);return be((()=>(i.dragSourceOptions=e||null,i.reconnect(),()=>i.disconnectDragSource())),[i,e]),be((()=>(i.dragPreviewOptions=t||null,i.reconnect(),()=>i.disconnectDragPreview())),[i,t]),i}(r.options,r.previewOptions);return function(e,t,r){const i=Re(),o=function(e,t,r){const i=(0,n.useMemo)((()=>new ke(e,t,r)),[t,r]);return(0,n.useEffect)((()=>{i.spec=e}),[e]),i}(e,t,r),s=function(e){return(0,n.useMemo)((()=>{const t=e.type;return l(null!=t,"spec.type must be defined"),t}),[e])}(e);be((function(){if(null!=s){const[e,n]=function(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}(s,o,i);return t.receiveHandlerId(e),r.receiveHandlerId(e),n}}),[i,t,r,o,s])}(r,i,o),[Ie(r.collect,i,o),ve(o),we(o)]}function Ae(e){const t=Re().getMonitor(),[r,i]=Se(t,e);return(0,n.useEffect)((()=>t.subscribeToOffsetChange(i))),(0,n.useEffect)((()=>t.subscribeToStateChange(i))),r}function Ne(e){return(0,n.useMemo)((()=>e.hooks.dropTarget()),[e])}class He{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!me(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Ce({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Te(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}let Ue=!1;class Ge{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;l(!Ue,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Ue=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Ue=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}class qe{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function Be(e,t){const r=De(e,t),i=function(){const e=Re();return(0,n.useMemo)((()=>new Ge(e)),[e])}(),o=function(e){const t=Re(),r=(0,n.useMemo)((()=>new He(t.getBackend())),[t]);return be((()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget())),[e]),r}(r.options);return function(e,t,r){const i=Re(),o=function(e,t){const r=(0,n.useMemo)((()=>new qe(e,t)),[t]);return(0,n.useEffect)((()=>{r.spec=e}),[e]),r}(e,t),s=function(e){const{accept:t}=e;return(0,n.useMemo)((()=>(l(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);be((function(){const[e,n]=function(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}(s,o,i);return t.receiveHandlerId(e),r.receiveHandlerId(e),n}),[i,t,o,r,s.map((e=>e.toString())).join("|")])}(r,i,o),[Ie(r.collect,i,o),Ne(o)]}}}]); \ No newline at end of file diff --git a/assets/js/assets_jsx_workflow-editor_components_flow-editor_auto-layout_elk_jsx.js b/assets/js/assets_jsx_workflow-editor_components_flow-editor_auto-layout_elk_jsx.js index 9b730bcb6..bd29b2233 100644 --- a/assets/js/assets_jsx_workflow-editor_components_flow-editor_auto-layout_elk_jsx.js +++ b/assets/js/assets_jsx_workflow-editor_components_flow-editor_auto-layout_elk_jsx.js @@ -43,15 +43,15 @@ var useLayoutedElements = function useLayoutedElements(_ref) { // - https://www.eclipse.org/elk/reference/options.html var opts = { 'elk.direction': direction, - 'elk.algorithm': 'layered', - 'elk.layered.spacing.nodeNodeBetweenLayers': '70', - // Vertical spacing between nodes/layers - 'elk.spacing.nodeNode': '70' // Horizontal spacing between nodes + 'elk.algorithm': 'mrtree', + 'elk.spacing.nodeNode': '60' }; var getLayoutedElements = /*#__PURE__*/function () { - var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(nodes, edges) { + var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(nodes, edges) { var options, isHorizontal, + getNodeList, + getEdgeList, graph, elk, layoutedGraph, @@ -61,27 +61,51 @@ var useLayoutedElements = function useLayoutedElements(_ref) { case 0: options = _args.length > 2 && _args[2] !== undefined ? _args[2] : {}; isHorizontal = (options === null || options === void 0 ? void 0 : options['elk.direction']) === _constants__WEBPACK_IMPORTED_MODULE_1__.AUTO_LAYOUT_DIRECTION_RIGHT; - graph = { - id: 'root', - layoutOptions: options, - children: nodes.map(function (node) { + getNodeList = function getNodeList(nodes) { + return nodes.map(function (node) { + var nodeElement = document.querySelector("div[data-id=\"".concat(node.id, "\"]")); + var width = (nodeElement === null || nodeElement === void 0 ? void 0 : nodeElement.offsetWidth) || 127; + var height = (nodeElement === null || nodeElement === void 0 ? void 0 : nodeElement.offsetHeight) || 62; return _objectSpread(_objectSpread({}, node), {}, { // Adjust the target and source handle positions based on the layout // direction. targetPosition: isHorizontal ? 'left' : 'top', sourcePosition: isHorizontal ? 'right' : 'bottom', // Hardcode a width and height for elk to use when layouting. - width: 150, - height: 50 + width: width, + height: height }); - }), - edges: edges + }); + }; + getEdgeList = function getEdgeList(edges) { + // Sort grouping by source node + var edgesList = edges.sort(function (edgeA, edgeB) { + return edgeA.source.localeCompare(edgeB.source); + }); + + // Sort conditional split edges to avoid crossing the connections + edgesList = edgesList.sort(function (edgeA, edgeB) { + if (edgeA.sourceHandle === 'false' && edgeB.sourceHandle === 'true') { + return 1; + } + if (edgeA.sourceHandle === 'true' && edgeB.sourceHandle === 'false') { + return -1; + } + return 0; + }); + return edgesList; + }; + graph = { + id: 'root', + layoutOptions: options, + children: getNodeList(nodes), + edges: getEdgeList(edges) }; elk = new (elkjs__WEBPACK_IMPORTED_MODULE_0___default())(); - _context.prev = 4; - _context.next = 7; + _context.prev = 6; + _context.next = 9; return elk.layout(graph); - case 7: + case 9: layoutedGraph = _context.sent; return _context.abrupt("return", { nodes: layoutedGraph.children.map(function (node_1) { @@ -96,15 +120,15 @@ var useLayoutedElements = function useLayoutedElements(_ref) { }), edges: layoutedGraph.edges }); - case 11: - _context.prev = 11; - _context.t0 = _context["catch"](4); + case 13: + _context.prev = 13; + _context.t0 = _context["catch"](6); return _context.abrupt("return", console.error(_context.t0)); - case 14: + case 16: case "end": return _context.stop(); } - }, _callee, null, [[4, 11]]); + }, _callee, null, [[6, 13]]); })); return function getLayoutedElements(_x, _x2) { return _ref3.apply(this, arguments); diff --git a/assets/js/backupPanel.js b/assets/js/backupPanel.js index f09dfa112..20dfef216 100644 --- a/assets/js/backupPanel.js +++ b/assets/js/backupPanel.js @@ -382,7 +382,7 @@ var ExportTab = function ExportTab() { URL.revokeObjectURL(downloadUrl); }; var handleExport = /*#__PURE__*/function () { - var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() { + var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { var controller, signal; return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { @@ -1382,7 +1382,7 @@ module.exports = wp.url; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!*******************************************!*\ !*** ./assets/jsx/backup-panel/index.jsx ***! diff --git a/assets/js/blockEditor.js b/assets/js/blockEditor.js index c06b0d9e3..b528770f4 100644 --- a/assets/js/blockEditor.js +++ b/assets/js/blockEditor.js @@ -490,7 +490,7 @@ var FutureActionPanel = function FutureActionPanel(props) { _part$split2 = _slicedToArray(_part$split, 2), before = _part$split2[0], after = _part$split2[1]; - result.push(/*#__PURE__*/React.createElement("a", { + result.push( /*#__PURE__*/React.createElement("a", { href: href, target: target, key: href @@ -705,6 +705,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ FutureActionPanelBlockEditor: () => (/* binding */ FutureActionPanelBlockEditor) /* harmony export */ }); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ */ "./assets/jsx/components/index.jsx"); +/* harmony import */ var _css_block_editor_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css/block-editor.css */ "./assets/jsx/components/css/block-editor.css"); function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } @@ -712,6 +713,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length) function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } + var FutureActionPanelBlockEditor = function FutureActionPanelBlockEditor(props) { var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; var _wp$data = wp.data, @@ -1443,7 +1445,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { onChange: onChangeActive }))]; if (isActive) { - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldAutoEnable, key: 'expirationdate_autoenable-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.CheckboxControl, { @@ -1452,7 +1454,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { label: props.text.fieldAutoEnableLabel, onChange: onChangeAutoEnabled }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldTaxonomy, key: 'expirationdate_taxonomy-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1464,7 +1466,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { data: props.postType, onChange: onChangeTaxonomy }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldHowToExpire, key: 'expirationdate_expiretype-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1491,7 +1493,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { expandOnFocus: true, autoSelectFirstMatch: true }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldDefaultDateTimeOffset, key: 'expired-custom-date-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1511,7 +1513,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { setHasPendingValidationCallback: setHasPendingValidation, setHasValidDataCallback: setHasValidData }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldWhoToNotify, key: 'expirationdate_emailnotification-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1570,7 +1572,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), postType = _Object$entries$_i[0], postTypeSettings = _Object$entries$_i[1]; - panels.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { + panels.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { legend: postTypeSettings.label, text: props.text, postType: postType, @@ -1597,7 +1599,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { _postType = _Object$entries2$_i[0], _postTypeSettings = _Object$entries2$_i[1]; selected = currentTab === _postType; - tabs.push(/*#__PURE__*/React.createElement("a", { + tabs.push( /*#__PURE__*/React.createElement("a", { href: "#".concat(_postType, "-panel"), className: "nav-tab " + (selected ? 'nav-tab-active' : ''), key: "".concat(_postType, "-tab"), @@ -2617,6 +2619,35 @@ var isNumber = function isNumber(value) { return !isNaN(value); }; +/***/ }), + +/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css": +/*!************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css ***! + \************************************************************************************************************************************/ +/***/ ((module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "./node_modules/css-loader/dist/runtime/sourceMaps.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); +// Imports + + +var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); +// Module +___CSS_LOADER_EXPORT___.push([module.id, `.future-action-enable-checkbox { + width: 100% !important; +} +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/block-editor.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;AAC1B","sourcesContent":[".future-action-enable-checkbox {\n width: 100% !important;\n}\n"],"sourceRoot":""}]); +// Exports +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); + + /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/dateOffsetPreview.css": @@ -2641,7 +2672,10 @@ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBP ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value { font-family: monospace; background-color: #e7e7e7; - padding: 2px 4px; + padding: 4px 6px; + display: inline-block; + min-width: 140px; + min-height: 20px; } .publishpress-future-date-preview.compact .publishpress-future-date-preview-label { @@ -2669,7 +2703,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .pub .publishpress-future-notice.publishpress-future-notice-error { color: #dc3232; } -`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); @@ -2793,6 +2827,58 @@ module.exports = function (item) { return [content].join("\n"); }; +/***/ }), + +/***/ "./assets/jsx/components/css/block-editor.css": +/*!****************************************************!*\ + !*** ./assets/jsx/components/css/block-editor.css ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "./node_modules/style-loader/dist/runtime/styleDomAPI.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "./node_modules/style-loader/dist/runtime/insertBySelector.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "./node_modules/style-loader/dist/runtime/insertStyleElement.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "./node_modules/style-loader/dist/runtime/styleTagTransform.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./block-editor.css */ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css"); + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); +options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); +options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); +options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); +options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); + +var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); + + + + + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); + + /***/ }), /***/ "./assets/jsx/components/css/dateOffsetPreview.css": @@ -3258,7 +3344,7 @@ module.exports = wp.url; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!*************************************!*\ !*** ./assets/jsx/block-editor.jsx ***! diff --git a/assets/js/blockEditor.min.js b/assets/js/blockEditor.min.js index 0ad8e599b..3cc619ebd 100644 --- a/assets/js/blockEditor.min.js +++ b/assets/js/blockEditor.min.js @@ -1 +1 @@ -(()=>{"use strict";var e={1461:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const s=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},1601:e=>{e.exports=function(e){return e[1]}},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),s=n(7659),c=n.n(s),l=n(5056),u=n.n(l),m=n(540),f=n.n(m),d=n(1113),p=n.n(d),y=n(1461),g={};g.styleTagTransform=p(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=f(),r()(y.A,g);const b=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var a=function(e){var t=new Date(o(e)),n=t.getFullYear(),a=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),i=("0"+t.getHours()).slice(-2),s=("0"+t.getMinutes()).slice(-2),c=("0"+t.getSeconds()).slice(-2);return"".concat(n,"-").concat(a,"-").concat(r," ").concat(i,":").concat(s,":").concat(c)},r=function(e){return parseInt(e).toString().length<=10},o=function(e){return e=parseInt(e),r()?e:e/1e3};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}const s=wp.data;function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&u&&(oe=function(e){return"object"!==T(e)||null===e?{}:e.map((function(e){return u[e]}))}(o),"string"==typeof(ie=oe?(Array.isArray(oe)||"object"!==i(oe)||(oe=Object.values(oe)),oe.filter((function(e){return null!=e&&""!==e}))):[])&&(ie=[]));var se=[];"object"===T(l)&&null!==l&&(se=Object.keys(l));var ce,le=d?"future-action-panel":"future-action-panel hidden-calendar",ue=d?"future-action-panel-content":"future-action-panel-content hidden-calendar",me=d?"future-action-date-panel":"future-action-date-panel hidden-calendar";ce="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var fe=e.actionsSelectOptions;e.taxonomy||(fe=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var de=function(e,t){var n=e.split("{"),a=[];a.push(n.shift());var r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=N(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw r}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=x(r.value.split("}"),2),s=i[0],c=i[1];a.push(React.createElement("a",{href:t,target:"_blank",key:t},s)),a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),pe=String(n).includes("category")&&"category-remove-all"!==n,ye=c;switch(n){case"category":ye=e.strings.newTerms.replace("%s",c);break;case"category-remove":ye=e.strings.removeTerms.replace("%s",c);break;case"category-add":ye=e.strings.addTerms.replace("%s",c)}return F((function(){if(!r)return K(!0),void A("");K(function(){var t=!0;if(!r)return A(""),!0;n||(A(e.strings.errorActionRequired),t=!1),a||(A(e.strings.errorDateRequired),t=!1),a&&new Date(a)e.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&void 0!==arguments[0]?arguments[0]:t,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"SET_POST_ID":return u(u({},n),{},{postId:r.postId});case"SET_ACTION":return u(u({},n),{},{action:r.action});case"SET_NEW_STATUS":return u(u({},n),{},{newStatus:r.newStatus});case"SET_DATE":return"number"==typeof r.date||(e=r.date,isNaN(e))||(r.date=parseInt(r.date)),"string"==typeof r.date&&(r.date=new Date(r.date).getTime()),r.date=o(r.date),r.date=a(r.date),u(u({},n),{},{date:r.date});case"SET_ENABLED":return u(u({},n),{},{enabled:r.enabled});case"SET_TERMS":return u(u({},n),{},{terms:r.terms});case"SET_TAXONOMY":return u(u({},n),{},{taxonomy:r.taxonomy});case"SET_TERMS_LIST_BY_NAME":return u(u({},n),{},{termsListByName:r.termsListByName});case"SET_TERMS_LIST_BY_ID":return u(u({},n),{},{termsListById:r.termsListById});case"SET_TAXONOMY_NAME":return u(u({},n),{},{taxonomyName:r.taxonomyName});case"SET_CHANGE_ACTION":return u(u({},n),{},{changeAction:r.changeAction});case"SET_CALENDAR_IS_VISIBLE":return u(u({},n),{},{calendarIsVisible:r.calendarIsVisible});case"SET_HAS_VALID_DATA":return u(u({},n),{},{hasValidData:r.hasValidData});case"SET_EXTRA_DATA":return u(u({},n),{},{extraData:u({},r.extraData)});case"SET_EXTRA_DATA_BY_NAME":var i=u(u({},n.extraData),{},m({},r.name,r.value));return u(u({},n),{},{extraData:u({},i)})}return n},actions:{setPostId:function(e){return{type:"SET_POST_ID",postId:e}},setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getPostId:function(e){return e.postId},getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});(0,s.register)(n)}({name:ae,defaultState:{postId:publishpressFutureBlockEditorConfig.postId,autoEnable:Z.autoEnable,action:Z.expireType,newStatus:Z.newStatus,date:ee,taxonomy:Z.taxonomy,terms:Z.terms}})}),[]),React.createElement(X,{postType:(0,s.select)("core/editor").getCurrentPostType(),isCleanNewPost:(0,s.select)("core/editor").isCleanNewPost(),actionsSelectOptions:z,statusesSelectOptions:te,is12Hour:G,timeFormat:Q,startOfWeek:$,storeName:ae,strings:J,taxonomyName:K,postTypeDefaultConfig:Z,hideCalendarByDefault:ne})}})})(); \ No newline at end of file +(()=>{"use strict";var e={9511:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".future-action-enable-checkbox {\n width: 100% !important;\n}\n",""]);const s=i},1461:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const s=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},1601:e=>{e.exports=function(e){return e[1]}},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),s=n(7659),c=n.n(s),l=n(5056),u=n.n(l),m=n(540),d=n.n(m),f=n(1113),p=n.n(f),y=n(1461),g={};g.styleTagTransform=p(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),r()(y.A,g);const b=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var a=function(e){var t=new Date(o(e)),n=t.getFullYear(),a=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),i=("0"+t.getHours()).slice(-2),s=("0"+t.getMinutes()).slice(-2),c=("0"+t.getSeconds()).slice(-2);return"".concat(n,"-").concat(a,"-").concat(r," ").concat(i,":").concat(s,":").concat(c)},r=function(e){return parseInt(e).toString().length<=10},o=function(e){return e=parseInt(e),r()?e:e/1e3};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}const s=wp.data;function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&u&&(oe=function(e){return"object"!==T(e)||null===e?{}:e.map((function(e){return u[e]}))}(o),"string"==typeof(ie=oe?(Array.isArray(oe)||"object"!==i(oe)||(oe=Object.values(oe)),oe.filter((function(e){return null!=e&&""!==e}))):[])&&(ie=[]));var se=[];"object"===T(l)&&null!==l&&(se=Object.keys(l));var ce,le=f?"future-action-panel":"future-action-panel hidden-calendar",ue=f?"future-action-panel-content":"future-action-panel-content hidden-calendar",me=f?"future-action-date-panel":"future-action-date-panel hidden-calendar";ce="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var de=e.actionsSelectOptions;e.taxonomy||(de=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var fe=function(e,t){var n=e.split("{"),a=[];a.push(n.shift());var r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=A(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw r}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=x(r.value.split("}"),2),s=i[0],c=i[1];a.push(React.createElement("a",{href:t,target:"_blank",key:t},s)),a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),pe=String(n).includes("category")&&"category-remove-all"!==n,ye=c;switch(n){case"category":ye=e.strings.newTerms.replace("%s",c);break;case"category-remove":ye=e.strings.removeTerms.replace("%s",c);break;case"category-add":ye=e.strings.addTerms.replace("%s",c)}return F((function(){if(!r)return K(!0),void N("");K(function(){var t=!0;if(!r)return N(""),!0;n||(N(e.strings.errorActionRequired),t=!1),a||(N(e.strings.errorDateRequired),t=!1),a&&new Date(a)e.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&void 0!==arguments[0]?arguments[0]:t,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"SET_POST_ID":return u(u({},n),{},{postId:r.postId});case"SET_ACTION":return u(u({},n),{},{action:r.action});case"SET_NEW_STATUS":return u(u({},n),{},{newStatus:r.newStatus});case"SET_DATE":return"number"==typeof r.date||(e=r.date,isNaN(e))||(r.date=parseInt(r.date)),"string"==typeof r.date&&(r.date=new Date(r.date).getTime()),r.date=o(r.date),r.date=a(r.date),u(u({},n),{},{date:r.date});case"SET_ENABLED":return u(u({},n),{},{enabled:r.enabled});case"SET_TERMS":return u(u({},n),{},{terms:r.terms});case"SET_TAXONOMY":return u(u({},n),{},{taxonomy:r.taxonomy});case"SET_TERMS_LIST_BY_NAME":return u(u({},n),{},{termsListByName:r.termsListByName});case"SET_TERMS_LIST_BY_ID":return u(u({},n),{},{termsListById:r.termsListById});case"SET_TAXONOMY_NAME":return u(u({},n),{},{taxonomyName:r.taxonomyName});case"SET_CHANGE_ACTION":return u(u({},n),{},{changeAction:r.changeAction});case"SET_CALENDAR_IS_VISIBLE":return u(u({},n),{},{calendarIsVisible:r.calendarIsVisible});case"SET_HAS_VALID_DATA":return u(u({},n),{},{hasValidData:r.hasValidData});case"SET_EXTRA_DATA":return u(u({},n),{},{extraData:u({},r.extraData)});case"SET_EXTRA_DATA_BY_NAME":var i=u(u({},n.extraData),{},m({},r.name,r.value));return u(u({},n),{},{extraData:u({},i)})}return n},actions:{setPostId:function(e){return{type:"SET_POST_ID",postId:e}},setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getPostId:function(e){return e.postId},getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});(0,s.register)(n)}({name:be,defaultState:{postId:publishpressFutureBlockEditorConfig.postId,autoEnable:fe.autoEnable,action:fe.expireType,newStatus:fe.newStatus,date:pe,taxonomy:fe.taxonomy,terms:fe.terms}})}),[]),React.createElement(oe,{postType:(0,s.select)("core/editor").getCurrentPostType(),isCleanNewPost:(0,s.select)("core/editor").isCleanNewPost(),actionsSelectOptions:se,statusesSelectOptions:ye,is12Hour:ce,timeFormat:le,startOfWeek:ue,storeName:be,strings:me,taxonomyName:de,postTypeDefaultConfig:fe,hideCalendarByDefault:ge})}})})(); \ No newline at end of file diff --git a/assets/js/bulkEdit.js b/assets/js/bulkEdit.js index 53371d86b..405f925dc 100644 --- a/assets/js/bulkEdit.js +++ b/assets/js/bulkEdit.js @@ -490,7 +490,7 @@ var FutureActionPanel = function FutureActionPanel(props) { _part$split2 = _slicedToArray(_part$split, 2), before = _part$split2[0], after = _part$split2[1]; - result.push(/*#__PURE__*/React.createElement("a", { + result.push( /*#__PURE__*/React.createElement("a", { href: href, target: target, key: href @@ -705,6 +705,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ FutureActionPanelBlockEditor: () => (/* binding */ FutureActionPanelBlockEditor) /* harmony export */ }); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ */ "./assets/jsx/components/index.jsx"); +/* harmony import */ var _css_block_editor_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css/block-editor.css */ "./assets/jsx/components/css/block-editor.css"); function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } @@ -712,6 +713,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length) function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } + var FutureActionPanelBlockEditor = function FutureActionPanelBlockEditor(props) { var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; var _wp$data = wp.data, @@ -1443,7 +1445,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { onChange: onChangeActive }))]; if (isActive) { - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldAutoEnable, key: 'expirationdate_autoenable-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.CheckboxControl, { @@ -1452,7 +1454,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { label: props.text.fieldAutoEnableLabel, onChange: onChangeAutoEnabled }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldTaxonomy, key: 'expirationdate_taxonomy-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1464,7 +1466,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { data: props.postType, onChange: onChangeTaxonomy }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldHowToExpire, key: 'expirationdate_expiretype-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1491,7 +1493,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { expandOnFocus: true, autoSelectFirstMatch: true }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldDefaultDateTimeOffset, key: 'expired-custom-date-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1511,7 +1513,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { setHasPendingValidationCallback: setHasPendingValidation, setHasValidDataCallback: setHasValidData }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldWhoToNotify, key: 'expirationdate_emailnotification-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1570,7 +1572,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), postType = _Object$entries$_i[0], postTypeSettings = _Object$entries$_i[1]; - panels.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { + panels.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { legend: postTypeSettings.label, text: props.text, postType: postType, @@ -1597,7 +1599,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { _postType = _Object$entries2$_i[0], _postTypeSettings = _Object$entries2$_i[1]; selected = currentTab === _postType; - tabs.push(/*#__PURE__*/React.createElement("a", { + tabs.push( /*#__PURE__*/React.createElement("a", { href: "#".concat(_postType, "-panel"), className: "nav-tab " + (selected ? 'nav-tab-active' : ''), key: "".concat(_postType, "-tab"), @@ -2617,6 +2619,35 @@ var isNumber = function isNumber(value) { return !isNaN(value); }; +/***/ }), + +/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css": +/*!************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css ***! + \************************************************************************************************************************************/ +/***/ ((module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "./node_modules/css-loader/dist/runtime/sourceMaps.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); +// Imports + + +var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); +// Module +___CSS_LOADER_EXPORT___.push([module.id, `.future-action-enable-checkbox { + width: 100% !important; +} +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/block-editor.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;AAC1B","sourcesContent":[".future-action-enable-checkbox {\n width: 100% !important;\n}\n"],"sourceRoot":""}]); +// Exports +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); + + /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/dateOffsetPreview.css": @@ -2641,7 +2672,10 @@ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBP ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value { font-family: monospace; background-color: #e7e7e7; - padding: 2px 4px; + padding: 4px 6px; + display: inline-block; + min-width: 140px; + min-height: 20px; } .publishpress-future-date-preview.compact .publishpress-future-date-preview-label { @@ -2669,7 +2703,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .pub .publishpress-future-notice.publishpress-future-notice-error { color: #dc3232; } -`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); @@ -2825,6 +2859,58 @@ if (false) {} else { } +/***/ }), + +/***/ "./assets/jsx/components/css/block-editor.css": +/*!****************************************************!*\ + !*** ./assets/jsx/components/css/block-editor.css ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "./node_modules/style-loader/dist/runtime/styleDomAPI.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "./node_modules/style-loader/dist/runtime/insertBySelector.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "./node_modules/style-loader/dist/runtime/insertStyleElement.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "./node_modules/style-loader/dist/runtime/styleTagTransform.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./block-editor.css */ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css"); + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); +options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); +options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); +options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); +options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); + +var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); + + + + + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); + + /***/ }), /***/ "./assets/jsx/components/css/dateOffsetPreview.css": @@ -3300,7 +3386,7 @@ module.exports = wp.url; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!**********************************!*\ !*** ./assets/jsx/bulk-edit.jsx ***! diff --git a/assets/js/bulkEdit.min.js b/assets/js/bulkEdit.min.js index 07f804af5..0c856a440 100644 --- a/assets/js/bulkEdit.min.js +++ b/assets/js/bulkEdit.min.js @@ -1 +1 @@ -(()=>{"use strict";var e={1461:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const s=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,n)=>{var a=n(5206);t.H=a.createRoot,a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),s=n(7659),c=n.n(s),u=n(5056),l=n.n(u),m=n(540),d=n.n(m),f=n(1113),p=n.n(f),y=n(1461),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),r()(y.A,g);const b=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r=function(e){return document.getElementsByName(e)[0]};const o=wp.components;var i=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",a=e.isExpanded?t:n,r=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(o.Button,{isSmall:!0,title:r,icon:a,onClick:function(){e.onClick&&e.onClick()},className:e.className})},s=function(e){var t=new Date(u(e)),n=t.getFullYear(),a=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),o=("0"+t.getHours()).slice(-2),i=("0"+t.getMinutes()).slice(-2),s=("0"+t.getSeconds()).slice(-2);return"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(i,":").concat(s)},c=function(e){return parseInt(e).toString().length<=10},u=function(e){return e=parseInt(e),c()?e:e/1e3},l=function(e){var t,n=e.currentDate,a=e.onChange,r=e.is12Hour,i=e.startOfWeek;return"number"==typeof n&&(t=n,t=parseInt(t),n=c()?1e3*t:t),React.createElement(o.DateTimePicker,{currentDate:n,onChange:a,__nextRemoveHelpButton:!0,is12Hour:r,startOfWeek:i})};const m=wp.element;var d=function(e){var t=e.isExpanded,n=e.strings,a=e.onToggleCalendar,r=e.currentDate,o=e.onChangeDate,s=e.is12Hour,c=e.startOfWeek;return(0,m.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(m.Fragment,null,React.createElement(i,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:a}),React.createElement(l,{currentDate:r,onChange:o,__nextRemoveHelpButton:!0,is12Hour:s,startOfWeek:c}))};const f=wp.plugins;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&m&&(oe=function(e){return"object"!==h(e)||null===e?{}:e.map((function(e){return m[e]}))}(s),"string"==typeof(ie=oe?(Array.isArray(oe)||"object"!==a(oe)||(oe=Object.values(oe)),oe.filter((function(e){return null!=e&&""!==e}))):[])&&(ie=[]));var se=[];"object"===h(l)&&null!==l&&(se=Object.keys(l));var ce,ue=g?"future-action-panel":"future-action-panel hidden-calendar",le=g?"future-action-panel-content":"future-action-panel-content hidden-calendar",me=g?"future-action-date-panel":"future-action-date-panel hidden-calendar";ce="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var de=e.actionsSelectOptions;e.taxonomy||(de=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var fe=function(e,t){var n=e.split("{"),a=[];a.push(n.shift());var r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=S(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw r}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=v(r.value.split("}"),2),s=i[0],c=i[1];a.push(React.createElement("a",{href:t,target:"_blank",key:t},s)),a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),pe=String(n).includes("category")&&"category-remove-all"!==n,ye=u;switch(n){case"category":ye=e.strings.newTerms.replace("%s",u);break;case"category-remove":ye=e.strings.removeTerms.replace("%s",u);break;case"category-add":ye=e.strings.addTerms.replace("%s",u)}return C((function(){if(!i)return K(!0),void V("");K(function(){var t=!0;if(!i)return V(""),!0;n||(V(e.strings.errorActionRequired),t=!1),r||(V(e.strings.errorDateRequired),t=!1),r&&new Date(r)0&&React.createElement(o.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))};function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function q(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"SET_POST_ID":return q(q({},n),{},{postId:a.postId});case"SET_ACTION":return q(q({},n),{},{action:a.action});case"SET_NEW_STATUS":return q(q({},n),{},{newStatus:a.newStatus});case"SET_DATE":return"number"==typeof a.date||(e=a.date,isNaN(e))||(a.date=parseInt(a.date)),"string"==typeof a.date&&(a.date=new Date(a.date).getTime()),a.date=u(a.date),a.date=s(a.date),q(q({},n),{},{date:a.date});case"SET_ENABLED":return q(q({},n),{},{enabled:a.enabled});case"SET_TERMS":return q(q({},n),{},{terms:a.terms});case"SET_TAXONOMY":return q(q({},n),{},{taxonomy:a.taxonomy});case"SET_TERMS_LIST_BY_NAME":return q(q({},n),{},{termsListByName:a.termsListByName});case"SET_TERMS_LIST_BY_ID":return q(q({},n),{},{termsListById:a.termsListById});case"SET_TAXONOMY_NAME":return q(q({},n),{},{taxonomyName:a.taxonomyName});case"SET_CHANGE_ACTION":return q(q({},n),{},{changeAction:a.changeAction});case"SET_CALENDAR_IS_VISIBLE":return q(q({},n),{},{calendarIsVisible:a.calendarIsVisible});case"SET_HAS_VALID_DATA":return q(q({},n),{},{hasValidData:a.hasValidData});case"SET_EXTRA_DATA":return q(q({},n),{},{extraData:q({},a.extraData)});case"SET_EXTRA_DATA_BY_NAME":var r=q(q({},n.extraData),{},Q({},a.name,a.value));return q(q({},n),{},{extraData:q({},r)})}return n},actions:{setPostId:function(e){return{type:"SET_POST_ID",postId:e}},setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getPostId:function(e){return e.postId},getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});(0,V.register)(n)}({name:le,defaultState:{action:$.expireType,newStatus:$.newStatus,date:K,taxonomy:$.taxonomy,terms:$.terms,changeAction:"no-change"}});var t=document.getElementById("publishpress-future-bulk-edit");if(t){var n=(0,z.H)(t),a=document.querySelector("#bulk_edit");a&&(a.onclick=function(){setTimeout((function(){n.unmount()}),1e3)});var r=React.createElement(W,{storeName:le,postType:Z,isNewPost:ee,actionsSelectOptions:te,statusesSelectOptions:ce,is12Hour:ne,timeFormat:ae,startOfWeek:re,strings:oe,taxonomyName:ie,nonce:se,hideCalendarByDefault:ue});n.render(r),G.revert=function(){n.unmount(),de.apply(this,arguments)}}}})(); \ No newline at end of file +(()=>{"use strict";var e={9511:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".future-action-enable-checkbox {\n width: 100% !important;\n}\n",""]);const s=i},1461:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const s=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,n)=>{var a=n(5206);t.H=a.createRoot,a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),s=n(7659),c=n.n(s),u=n(5056),l=n.n(u),m=n(540),d=n.n(m),f=n(1113),p=n.n(f),y=n(1461),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),r()(y.A,g);const h=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r=function(e){return document.getElementsByName(e)[0]};const o=wp.components;var i=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",a=e.isExpanded?t:n,r=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(o.Button,{isSmall:!0,title:r,icon:a,onClick:function(){e.onClick&&e.onClick()},className:e.className})},s=function(e){var t=new Date(u(e)),n=t.getFullYear(),a=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),o=("0"+t.getHours()).slice(-2),i=("0"+t.getMinutes()).slice(-2),s=("0"+t.getSeconds()).slice(-2);return"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(i,":").concat(s)},c=function(e){return parseInt(e).toString().length<=10},u=function(e){return e=parseInt(e),c()?e:e/1e3},l=function(e){var t,n=e.currentDate,a=e.onChange,r=e.is12Hour,i=e.startOfWeek;return"number"==typeof n&&(t=n,t=parseInt(t),n=c()?1e3*t:t),React.createElement(o.DateTimePicker,{currentDate:n,onChange:a,__nextRemoveHelpButton:!0,is12Hour:r,startOfWeek:i})};const m=wp.element;var d=function(e){var t=e.isExpanded,n=e.strings,a=e.onToggleCalendar,r=e.currentDate,o=e.onChangeDate,s=e.is12Hour,c=e.startOfWeek;return(0,m.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(m.Fragment,null,React.createElement(i,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:a}),React.createElement(l,{currentDate:r,onChange:o,__nextRemoveHelpButton:!0,is12Hour:s,startOfWeek:c}))};const f=wp.plugins;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&m&&(oe=function(e){return"object"!==b(e)||null===e?{}:e.map((function(e){return m[e]}))}(s),"string"==typeof(ie=oe?(Array.isArray(oe)||"object"!==a(oe)||(oe=Object.values(oe)),oe.filter((function(e){return null!=e&&""!==e}))):[])&&(ie=[]));var se=[];"object"===b(l)&&null!==l&&(se=Object.keys(l));var ce,ue=g?"future-action-panel":"future-action-panel hidden-calendar",le=g?"future-action-panel-content":"future-action-panel-content hidden-calendar",me=g?"future-action-date-panel":"future-action-date-panel hidden-calendar";ce="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var de=e.actionsSelectOptions;e.taxonomy||(de=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var fe=function(e,t){var n=e.split("{"),a=[];a.push(n.shift());var r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=S(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw r}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=v(r.value.split("}"),2),s=i[0],c=i[1];a.push(React.createElement("a",{href:t,target:"_blank",key:t},s)),a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),pe=String(n).includes("category")&&"category-remove-all"!==n,ye=u;switch(n){case"category":ye=e.strings.newTerms.replace("%s",u);break;case"category-remove":ye=e.strings.removeTerms.replace("%s",u);break;case"category-add":ye=e.strings.addTerms.replace("%s",u)}return C((function(){if(!i)return K(!0),void V("");K(function(){var t=!0;if(!i)return V(""),!0;n||(V(e.strings.errorActionRequired),t=!1),r||(V(e.strings.errorDateRequired),t=!1),r&&new Date(r)0&&React.createElement(o.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))};function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ie(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"SET_POST_ID":return ie(ie({},n),{},{postId:a.postId});case"SET_ACTION":return ie(ie({},n),{},{action:a.action});case"SET_NEW_STATUS":return ie(ie({},n),{},{newStatus:a.newStatus});case"SET_DATE":return"number"==typeof a.date||(e=a.date,isNaN(e))||(a.date=parseInt(a.date)),"string"==typeof a.date&&(a.date=new Date(a.date).getTime()),a.date=u(a.date),a.date=s(a.date),ie(ie({},n),{},{date:a.date});case"SET_ENABLED":return ie(ie({},n),{},{enabled:a.enabled});case"SET_TERMS":return ie(ie({},n),{},{terms:a.terms});case"SET_TAXONOMY":return ie(ie({},n),{},{taxonomy:a.taxonomy});case"SET_TERMS_LIST_BY_NAME":return ie(ie({},n),{},{termsListByName:a.termsListByName});case"SET_TERMS_LIST_BY_ID":return ie(ie({},n),{},{termsListById:a.termsListById});case"SET_TAXONOMY_NAME":return ie(ie({},n),{},{taxonomyName:a.taxonomyName});case"SET_CHANGE_ACTION":return ie(ie({},n),{},{changeAction:a.changeAction});case"SET_CALENDAR_IS_VISIBLE":return ie(ie({},n),{},{calendarIsVisible:a.calendarIsVisible});case"SET_HAS_VALID_DATA":return ie(ie({},n),{},{hasValidData:a.hasValidData});case"SET_EXTRA_DATA":return ie(ie({},n),{},{extraData:ie({},a.extraData)});case"SET_EXTRA_DATA_BY_NAME":var r=ie(ie({},n.extraData),{},se({},a.name,a.value));return ie(ie({},n),{},{extraData:ie({},r)})}return n},actions:{setPostId:function(e){return{type:"SET_POST_ID",postId:e}},setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getPostId:function(e){return e.postId},getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});(0,ee.register)(n)}({name:Ne,defaultState:{action:me.expireType,newStatus:me.newStatus,date:de,taxonomy:me.taxonomy,terms:me.terms,changeAction:"no-change"}});var t=document.getElementById("publishpress-future-bulk-edit");if(t){var n=(0,ce.H)(t),a=document.querySelector("#bulk_edit");a&&(a.onclick=function(){setTimeout((function(){n.unmount()}),1e3)});var r=React.createElement(ne,{storeName:Ne,postType:fe,isNewPost:pe,actionsSelectOptions:ye,statusesSelectOptions:Te,is12Hour:ge,timeFormat:he,startOfWeek:be,strings:ve,taxonomyName:Se,nonce:Ee,hideCalendarByDefault:_e});n.render(r),ue.revert=function(){n.unmount(),Ae.apply(this,arguments)}}}})(); \ No newline at end of file diff --git a/assets/js/classicEditor.js b/assets/js/classicEditor.js index a7d700cb1..c467cb6bb 100644 --- a/assets/js/classicEditor.js +++ b/assets/js/classicEditor.js @@ -490,7 +490,7 @@ var FutureActionPanel = function FutureActionPanel(props) { _part$split2 = _slicedToArray(_part$split, 2), before = _part$split2[0], after = _part$split2[1]; - result.push(/*#__PURE__*/React.createElement("a", { + result.push( /*#__PURE__*/React.createElement("a", { href: href, target: target, key: href @@ -705,6 +705,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ FutureActionPanelBlockEditor: () => (/* binding */ FutureActionPanelBlockEditor) /* harmony export */ }); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ */ "./assets/jsx/components/index.jsx"); +/* harmony import */ var _css_block_editor_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css/block-editor.css */ "./assets/jsx/components/css/block-editor.css"); function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } @@ -712,6 +713,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length) function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } + var FutureActionPanelBlockEditor = function FutureActionPanelBlockEditor(props) { var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; var _wp$data = wp.data, @@ -1443,7 +1445,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { onChange: onChangeActive }))]; if (isActive) { - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldAutoEnable, key: 'expirationdate_autoenable-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.CheckboxControl, { @@ -1452,7 +1454,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { label: props.text.fieldAutoEnableLabel, onChange: onChangeAutoEnabled }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldTaxonomy, key: 'expirationdate_taxonomy-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1464,7 +1466,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { data: props.postType, onChange: onChangeTaxonomy }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldHowToExpire, key: 'expirationdate_expiretype-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1491,7 +1493,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { expandOnFocus: true, autoSelectFirstMatch: true }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldDefaultDateTimeOffset, key: 'expired-custom-date-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1511,7 +1513,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { setHasPendingValidationCallback: setHasPendingValidation, setHasValidDataCallback: setHasValidData }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldWhoToNotify, key: 'expirationdate_emailnotification-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1570,7 +1572,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), postType = _Object$entries$_i[0], postTypeSettings = _Object$entries$_i[1]; - panels.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { + panels.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { legend: postTypeSettings.label, text: props.text, postType: postType, @@ -1597,7 +1599,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { _postType = _Object$entries2$_i[0], _postTypeSettings = _Object$entries2$_i[1]; selected = currentTab === _postType; - tabs.push(/*#__PURE__*/React.createElement("a", { + tabs.push( /*#__PURE__*/React.createElement("a", { href: "#".concat(_postType, "-panel"), className: "nav-tab " + (selected ? 'nav-tab-active' : ''), key: "".concat(_postType, "-tab"), @@ -2617,6 +2619,35 @@ var isNumber = function isNumber(value) { return !isNaN(value); }; +/***/ }), + +/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css": +/*!************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css ***! + \************************************************************************************************************************************/ +/***/ ((module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "./node_modules/css-loader/dist/runtime/sourceMaps.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); +// Imports + + +var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); +// Module +___CSS_LOADER_EXPORT___.push([module.id, `.future-action-enable-checkbox { + width: 100% !important; +} +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/block-editor.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;AAC1B","sourcesContent":[".future-action-enable-checkbox {\n width: 100% !important;\n}\n"],"sourceRoot":""}]); +// Exports +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); + + /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/dateOffsetPreview.css": @@ -2641,7 +2672,10 @@ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBP ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value { font-family: monospace; background-color: #e7e7e7; - padding: 2px 4px; + padding: 4px 6px; + display: inline-block; + min-width: 140px; + min-height: 20px; } .publishpress-future-date-preview.compact .publishpress-future-date-preview-label { @@ -2669,7 +2703,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .pub .publishpress-future-notice.publishpress-future-notice-error { color: #dc3232; } -`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); @@ -2825,6 +2859,58 @@ if (false) {} else { } +/***/ }), + +/***/ "./assets/jsx/components/css/block-editor.css": +/*!****************************************************!*\ + !*** ./assets/jsx/components/css/block-editor.css ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "./node_modules/style-loader/dist/runtime/styleDomAPI.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "./node_modules/style-loader/dist/runtime/insertBySelector.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "./node_modules/style-loader/dist/runtime/insertStyleElement.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "./node_modules/style-loader/dist/runtime/styleTagTransform.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./block-editor.css */ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css"); + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); +options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); +options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); +options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); +options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); + +var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); + + + + + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); + + /***/ }), /***/ "./assets/jsx/components/css/dateOffsetPreview.css": @@ -3300,7 +3386,7 @@ module.exports = wp.url; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!***************************************!*\ !*** ./assets/jsx/classic-editor.jsx ***! diff --git a/assets/js/classicEditor.min.js b/assets/js/classicEditor.min.js index 71c5bc766..acaacec05 100644 --- a/assets/js/classicEditor.min.js +++ b/assets/js/classicEditor.min.js @@ -1 +1 @@ -(()=>{"use strict";var e={1461:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const s=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,n)=>{var a=n(5206);t.H=a.createRoot,a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),s=n(7659),c=n.n(s),u=n(5056),l=n.n(u),m=n(540),d=n.n(m),f=n(1113),p=n.n(f),y=n(1461),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),r()(y.A,g);const b=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;const r=wp.components;var o=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",a=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(r.Button,{isSmall:!0,title:o,icon:a,onClick:function(){e.onClick&&e.onClick()},className:e.className})},i=function(e){var t=new Date(c(e)),n=t.getFullYear(),a=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),o=("0"+t.getHours()).slice(-2),i=("0"+t.getMinutes()).slice(-2),s=("0"+t.getSeconds()).slice(-2);return"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(i,":").concat(s)},s=function(e){return parseInt(e).toString().length<=10},c=function(e){return e=parseInt(e),s()?e:e/1e3},u=function(e){var t,n=e.currentDate,a=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof n&&(t=n,t=parseInt(t),n=s()?1e3*t:t),React.createElement(r.DateTimePicker,{currentDate:n,onChange:a,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})};const l=wp.element;var m=function(e){var t=e.isExpanded,n=e.strings,a=e.onToggleCalendar,r=e.currentDate,i=e.onChangeDate,s=e.is12Hour,c=e.startOfWeek;return(0,l.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(l.Fragment,null,React.createElement(o,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:a}),React.createElement(u,{currentDate:r,onChange:i,__nextRemoveHelpButton:!0,is12Hour:s,startOfWeek:c}))};const d=wp.plugins;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&f&&(oe=function(e){return"object"!==b(e)||null===e?{}:e.map((function(e){return f[e]}))}(s),"string"==typeof(ie=oe?(Array.isArray(oe)||"object"!==a(oe)||(oe=Object.values(oe)),oe.filter((function(e){return null!=e&&""!==e}))):[])&&(ie=[]));var se=[];"object"===b(l)&&null!==l&&(se=Object.keys(l));var ce,ue=E?"future-action-panel":"future-action-panel hidden-calendar",le=E?"future-action-panel-content":"future-action-panel-content hidden-calendar",me=E?"future-action-date-panel":"future-action-date-panel hidden-calendar";ce="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var de=e.actionsSelectOptions;e.taxonomy||(de=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var fe=function(e,t){var n=e.split("{"),a=[];a.push(n.shift());var r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=v(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw r}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=h(r.value.split("}"),2),s=i[0],c=i[1];a.push(React.createElement("a",{href:t,target:"_blank",key:t},s)),a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),pe=String(n).includes("category")&&"category-remove-all"!==n,ye=u;switch(n){case"category":ye=e.strings.newTerms.replace("%s",u);break;case"category-remove":ye=e.strings.removeTerms.replace("%s",u);break;case"category-add":ye=e.strings.addTerms.replace("%s",u)}return R((function(){if(!i)return K(!0),void M("");K(function(){var t=!0;if(!i)return M(""),!0;n||(M(e.strings.errorActionRequired),t=!1),o||(M(e.strings.errorDateRequired),t=!1),o&&new Date(o)0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"SET_POST_ID":return Y(Y({},n),{},{postId:a.postId});case"SET_ACTION":return Y(Y({},n),{},{action:a.action});case"SET_NEW_STATUS":return Y(Y({},n),{},{newStatus:a.newStatus});case"SET_DATE":return"number"==typeof a.date||(e=a.date,isNaN(e))||(a.date=parseInt(a.date)),"string"==typeof a.date&&(a.date=new Date(a.date).getTime()),a.date=c(a.date),a.date=i(a.date),Y(Y({},n),{},{date:a.date});case"SET_ENABLED":return Y(Y({},n),{},{enabled:a.enabled});case"SET_TERMS":return Y(Y({},n),{},{terms:a.terms});case"SET_TAXONOMY":return Y(Y({},n),{},{taxonomy:a.taxonomy});case"SET_TERMS_LIST_BY_NAME":return Y(Y({},n),{},{termsListByName:a.termsListByName});case"SET_TERMS_LIST_BY_ID":return Y(Y({},n),{},{termsListById:a.termsListById});case"SET_TAXONOMY_NAME":return Y(Y({},n),{},{taxonomyName:a.taxonomyName});case"SET_CHANGE_ACTION":return Y(Y({},n),{},{changeAction:a.changeAction});case"SET_CALENDAR_IS_VISIBLE":return Y(Y({},n),{},{calendarIsVisible:a.calendarIsVisible});case"SET_HAS_VALID_DATA":return Y(Y({},n),{},{hasValidData:a.hasValidData});case"SET_EXTRA_DATA":return Y(Y({},n),{},{extraData:Y({},a.extraData)});case"SET_EXTRA_DATA_BY_NAME":var r=Y(Y({},n.extraData),{},U({},a.name,a.value));return Y(Y({},n),{},{extraData:Y({},r)})}return n},actions:{setPostId:function(e){return{type:"SET_POST_ID",postId:e}},setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getPostId:function(e){return e.postId},getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});(0,V.register)(n)}({name:oe,defaultState:{postId:document.getElementById("post_ID")?parseInt(document.getElementById("post_ID").value,10):0,autoEnable:te.autoEnable,action:te.expireType,newStatus:te.newStatus,date:ne,taxonomy:te.taxonomy,terms:te.terms}});var ie=document.getElementById("publishpress-future-classic-editor");if(ie){var se=React.createElement(M,{storeName:oe,postType:z,isNewPost:Q,actionsSelectOptions:G,statusesSelectOptions:ae,is12Hour:J,timeFormat:$,startOfWeek:K,strings:Z,taxonomyName:ee,hideCalendarByDefault:re});(0,X.H)(ie).render(se)}}})(); \ No newline at end of file +(()=>{"use strict";var e={9511:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".future-action-enable-checkbox {\n width: 100% !important;\n}\n",""]);const s=i},1461:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const s=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,n)=>{var a=n(5206);t.H=a.createRoot,a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),s=n(7659),c=n.n(s),u=n(5056),l=n.n(u),m=n(540),d=n.n(m),f=n(1113),p=n.n(f),y=n(1461),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),r()(y.A,g);const b=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;const r=wp.components;var o=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",a=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(r.Button,{isSmall:!0,title:o,icon:a,onClick:function(){e.onClick&&e.onClick()},className:e.className})},i=function(e){var t=new Date(c(e)),n=t.getFullYear(),a=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),o=("0"+t.getHours()).slice(-2),i=("0"+t.getMinutes()).slice(-2),s=("0"+t.getSeconds()).slice(-2);return"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(i,":").concat(s)},s=function(e){return parseInt(e).toString().length<=10},c=function(e){return e=parseInt(e),s()?e:e/1e3},u=function(e){var t,n=e.currentDate,a=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof n&&(t=n,t=parseInt(t),n=s()?1e3*t:t),React.createElement(r.DateTimePicker,{currentDate:n,onChange:a,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})};const l=wp.element;var m=function(e){var t=e.isExpanded,n=e.strings,a=e.onToggleCalendar,r=e.currentDate,i=e.onChangeDate,s=e.is12Hour,c=e.startOfWeek;return(0,l.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(l.Fragment,null,React.createElement(o,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:a}),React.createElement(u,{currentDate:r,onChange:i,__nextRemoveHelpButton:!0,is12Hour:s,startOfWeek:c}))};const d=wp.plugins;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&f&&(oe=function(e){return"object"!==b(e)||null===e?{}:e.map((function(e){return f[e]}))}(s),"string"==typeof(ie=oe?(Array.isArray(oe)||"object"!==a(oe)||(oe=Object.values(oe)),oe.filter((function(e){return null!=e&&""!==e}))):[])&&(ie=[]));var se=[];"object"===b(l)&&null!==l&&(se=Object.keys(l));var ce,ue=E?"future-action-panel":"future-action-panel hidden-calendar",le=E?"future-action-panel-content":"future-action-panel-content hidden-calendar",me=E?"future-action-date-panel":"future-action-date-panel hidden-calendar";ce="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var de=e.actionsSelectOptions;e.taxonomy||(de=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var fe=function(e,t){var n=e.split("{"),a=[];a.push(n.shift());var r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=v(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw r}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=h(r.value.split("}"),2),s=i[0],c=i[1];a.push(React.createElement("a",{href:t,target:"_blank",key:t},s)),a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),pe=String(n).includes("category")&&"category-remove-all"!==n,ye=u;switch(n){case"category":ye=e.strings.newTerms.replace("%s",u);break;case"category-remove":ye=e.strings.removeTerms.replace("%s",u);break;case"category-add":ye=e.strings.addTerms.replace("%s",u)}return R((function(){if(!i)return K(!0),void M("");K(function(){var t=!0;if(!i)return M(""),!0;n||(M(e.strings.errorActionRequired),t=!1),o||(M(e.strings.errorDateRequired),t=!1),o&&new Date(o)0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"SET_POST_ID":return ae(ae({},n),{},{postId:a.postId});case"SET_ACTION":return ae(ae({},n),{},{action:a.action});case"SET_NEW_STATUS":return ae(ae({},n),{},{newStatus:a.newStatus});case"SET_DATE":return"number"==typeof a.date||(e=a.date,isNaN(e))||(a.date=parseInt(a.date)),"string"==typeof a.date&&(a.date=new Date(a.date).getTime()),a.date=c(a.date),a.date=i(a.date),ae(ae({},n),{},{date:a.date});case"SET_ENABLED":return ae(ae({},n),{},{enabled:a.enabled});case"SET_TERMS":return ae(ae({},n),{},{terms:a.terms});case"SET_TAXONOMY":return ae(ae({},n),{},{taxonomy:a.taxonomy});case"SET_TERMS_LIST_BY_NAME":return ae(ae({},n),{},{termsListByName:a.termsListByName});case"SET_TERMS_LIST_BY_ID":return ae(ae({},n),{},{termsListById:a.termsListById});case"SET_TAXONOMY_NAME":return ae(ae({},n),{},{taxonomyName:a.taxonomyName});case"SET_CHANGE_ACTION":return ae(ae({},n),{},{changeAction:a.changeAction});case"SET_CALENDAR_IS_VISIBLE":return ae(ae({},n),{},{calendarIsVisible:a.calendarIsVisible});case"SET_HAS_VALID_DATA":return ae(ae({},n),{},{hasValidData:a.hasValidData});case"SET_EXTRA_DATA":return ae(ae({},n),{},{extraData:ae({},a.extraData)});case"SET_EXTRA_DATA_BY_NAME":var r=ae(ae({},n.extraData),{},re({},a.name,a.value));return ae(ae({},n),{},{extraData:ae({},r)})}return n},actions:{setPostId:function(e){return{type:"SET_POST_ID",postId:e}},setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getPostId:function(e){return e.postId},getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});(0,Z.register)(n)}({name:ve,defaultState:{postId:document.getElementById("post_ID")?parseInt(document.getElementById("post_ID").value,10):0,autoEnable:ye.autoEnable,action:ye.expireType,newStatus:ye.newStatus,date:ge,taxonomy:ye.taxonomy,terms:ye.terms}});var Se=document.getElementById("publishpress-future-classic-editor");if(Se){var Ee=React.createElement(ee,{storeName:ve,postType:se,isNewPost:ce,actionsSelectOptions:ue,statusesSelectOptions:be,is12Hour:le,timeFormat:me,startOfWeek:de,strings:fe,taxonomyName:pe,hideCalendarByDefault:he});(0,oe.H)(Se).render(Ee)}}})(); \ No newline at end of file diff --git a/assets/js/legacyAction.js b/assets/js/legacyAction.js index 215d85703..3b5a5389e 100644 --- a/assets/js/legacyAction.js +++ b/assets/js/legacyAction.js @@ -142,7 +142,7 @@ module.exports = wp.i18n; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!********************************************!*\ !*** ./assets/jsx/legacy-action/index.jsx ***! diff --git a/assets/js/quickEdit.js b/assets/js/quickEdit.js index 211cbdbca..4669ed2d4 100644 --- a/assets/js/quickEdit.js +++ b/assets/js/quickEdit.js @@ -490,7 +490,7 @@ var FutureActionPanel = function FutureActionPanel(props) { _part$split2 = _slicedToArray(_part$split, 2), before = _part$split2[0], after = _part$split2[1]; - result.push(/*#__PURE__*/React.createElement("a", { + result.push( /*#__PURE__*/React.createElement("a", { href: href, target: target, key: href @@ -705,6 +705,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ FutureActionPanelBlockEditor: () => (/* binding */ FutureActionPanelBlockEditor) /* harmony export */ }); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ */ "./assets/jsx/components/index.jsx"); +/* harmony import */ var _css_block_editor_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css/block-editor.css */ "./assets/jsx/components/css/block-editor.css"); function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } @@ -712,6 +713,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length) function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } + var FutureActionPanelBlockEditor = function FutureActionPanelBlockEditor(props) { var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; var _wp$data = wp.data, @@ -1443,7 +1445,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { onChange: onChangeActive }))]; if (isActive) { - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldAutoEnable, key: 'expirationdate_autoenable-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.CheckboxControl, { @@ -1452,7 +1454,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { label: props.text.fieldAutoEnableLabel, onChange: onChangeAutoEnabled }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldTaxonomy, key: 'expirationdate_taxonomy-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1464,7 +1466,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { data: props.postType, onChange: onChangeTaxonomy }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldHowToExpire, key: 'expirationdate_expiretype-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1491,7 +1493,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { expandOnFocus: true, autoSelectFirstMatch: true }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldDefaultDateTimeOffset, key: 'expired-custom-date-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1511,7 +1513,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { setHasPendingValidationCallback: setHasPendingValidation, setHasValidDataCallback: setHasValidData }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldWhoToNotify, key: 'expirationdate_emailnotification-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1570,7 +1572,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), postType = _Object$entries$_i[0], postTypeSettings = _Object$entries$_i[1]; - panels.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { + panels.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { legend: postTypeSettings.label, text: props.text, postType: postType, @@ -1597,7 +1599,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { _postType = _Object$entries2$_i[0], _postTypeSettings = _Object$entries2$_i[1]; selected = currentTab === _postType; - tabs.push(/*#__PURE__*/React.createElement("a", { + tabs.push( /*#__PURE__*/React.createElement("a", { href: "#".concat(_postType, "-panel"), className: "nav-tab " + (selected ? 'nav-tab-active' : ''), key: "".concat(_postType, "-tab"), @@ -2617,6 +2619,35 @@ var isNumber = function isNumber(value) { return !isNaN(value); }; +/***/ }), + +/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css": +/*!************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css ***! + \************************************************************************************************************************************/ +/***/ ((module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "./node_modules/css-loader/dist/runtime/sourceMaps.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); +// Imports + + +var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); +// Module +___CSS_LOADER_EXPORT___.push([module.id, `.future-action-enable-checkbox { + width: 100% !important; +} +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/block-editor.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;AAC1B","sourcesContent":[".future-action-enable-checkbox {\n width: 100% !important;\n}\n"],"sourceRoot":""}]); +// Exports +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); + + /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/dateOffsetPreview.css": @@ -2641,7 +2672,10 @@ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBP ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value { font-family: monospace; background-color: #e7e7e7; - padding: 2px 4px; + padding: 4px 6px; + display: inline-block; + min-width: 140px; + min-height: 20px; } .publishpress-future-date-preview.compact .publishpress-future-date-preview-label { @@ -2669,7 +2703,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .pub .publishpress-future-notice.publishpress-future-notice-error { color: #dc3232; } -`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); @@ -2825,6 +2859,58 @@ if (false) {} else { } +/***/ }), + +/***/ "./assets/jsx/components/css/block-editor.css": +/*!****************************************************!*\ + !*** ./assets/jsx/components/css/block-editor.css ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "./node_modules/style-loader/dist/runtime/styleDomAPI.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "./node_modules/style-loader/dist/runtime/insertBySelector.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "./node_modules/style-loader/dist/runtime/insertStyleElement.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "./node_modules/style-loader/dist/runtime/styleTagTransform.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./block-editor.css */ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css"); + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); +options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); +options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); +options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); +options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); + +var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); + + + + + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); + + /***/ }), /***/ "./assets/jsx/components/css/dateOffsetPreview.css": @@ -3300,7 +3386,7 @@ module.exports = wp.url; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!***********************************!*\ !*** ./assets/jsx/quick-edit.jsx ***! diff --git a/assets/js/quickEdit.min.js b/assets/js/quickEdit.min.js index eaff71ecb..043f2b9c5 100644 --- a/assets/js/quickEdit.min.js +++ b/assets/js/quickEdit.min.js @@ -1 +1 @@ -(()=>{"use strict";var e={1461:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const s=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,n)=>{var a=n(5206);t.H=a.createRoot,a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),s=n(7659),c=n.n(s),u=n(5056),l=n.n(u),m=n(540),d=n.n(m),f=n(1113),p=n.n(f),y=n(1461),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),r()(y.A,g);const h=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;const r=wp.components;var o=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",a=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(r.Button,{isSmall:!0,title:o,icon:a,onClick:function(){e.onClick&&e.onClick()},className:e.className})},i=function(e){var t=new Date(c(e)),n=t.getFullYear(),a=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),o=("0"+t.getHours()).slice(-2),i=("0"+t.getMinutes()).slice(-2),s=("0"+t.getSeconds()).slice(-2);return"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(i,":").concat(s)},s=function(e){return parseInt(e).toString().length<=10},c=function(e){return e=parseInt(e),s()?e:e/1e3},u=function(e){var t,n=e.currentDate,a=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof n&&(t=n,t=parseInt(t),n=s()?1e3*t:t),React.createElement(r.DateTimePicker,{currentDate:n,onChange:a,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})};const l=wp.element;var m=function(e){var t=e.isExpanded,n=e.strings,a=e.onToggleCalendar,r=e.currentDate,i=e.onChangeDate,s=e.is12Hour,c=e.startOfWeek;return(0,l.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(l.Fragment,null,React.createElement(o,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:a}),React.createElement(u,{currentDate:r,onChange:i,__nextRemoveHelpButton:!0,is12Hour:s,startOfWeek:c}))};const d=wp.plugins;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&f&&(oe=function(e){return"object"!==h(e)||null===e?{}:e.map((function(e){return f[e]}))}(s),"string"==typeof(ie=oe?(Array.isArray(oe)||"object"!==a(oe)||(oe=Object.values(oe)),oe.filter((function(e){return null!=e&&""!==e}))):[])&&(ie=[]));var se=[];"object"===h(l)&&null!==l&&(se=Object.keys(l));var ce,ue=E?"future-action-panel":"future-action-panel hidden-calendar",le=E?"future-action-panel-content":"future-action-panel-content hidden-calendar",me=E?"future-action-date-panel":"future-action-date-panel hidden-calendar";ce="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var de=e.actionsSelectOptions;e.taxonomy||(de=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var fe=function(e,t){var n=e.split("{"),a=[];a.push(n.shift());var r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=S(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw r}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=b(r.value.split("}"),2),s=i[0],c=i[1];a.push(React.createElement("a",{href:t,target:"_blank",key:t},s)),a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),pe=String(n).includes("category")&&"category-remove-all"!==n,ye=u;switch(n){case"category":ye=e.strings.newTerms.replace("%s",u);break;case"category-remove":ye=e.strings.removeTerms.replace("%s",u);break;case"category-add":ye=e.strings.addTerms.replace("%s",u)}return R((function(){if(!i)return K(!0),void M("");K(function(){var t=!0;if(!i)return M(""),!0;n||(M(e.strings.errorActionRequired),t=!1),o||(M(e.strings.errorDateRequired),t=!1),o&&new Date(o)0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"SET_POST_ID":return U(U({},n),{},{postId:a.postId});case"SET_ACTION":return U(U({},n),{},{action:a.action});case"SET_NEW_STATUS":return U(U({},n),{},{newStatus:a.newStatus});case"SET_DATE":return"number"==typeof a.date||(e=a.date,isNaN(e))||(a.date=parseInt(a.date)),"string"==typeof a.date&&(a.date=new Date(a.date).getTime()),a.date=c(a.date),a.date=i(a.date),U(U({},n),{},{date:a.date});case"SET_ENABLED":return U(U({},n),{},{enabled:a.enabled});case"SET_TERMS":return U(U({},n),{},{terms:a.terms});case"SET_TAXONOMY":return U(U({},n),{},{taxonomy:a.taxonomy});case"SET_TERMS_LIST_BY_NAME":return U(U({},n),{},{termsListByName:a.termsListByName});case"SET_TERMS_LIST_BY_ID":return U(U({},n),{},{termsListById:a.termsListById});case"SET_TAXONOMY_NAME":return U(U({},n),{},{taxonomyName:a.taxonomyName});case"SET_CHANGE_ACTION":return U(U({},n),{},{changeAction:a.changeAction});case"SET_CALENDAR_IS_VISIBLE":return U(U({},n),{},{calendarIsVisible:a.calendarIsVisible});case"SET_HAS_VALID_DATA":return U(U({},n),{},{hasValidData:a.hasValidData});case"SET_EXTRA_DATA":return U(U({},n),{},{extraData:U({},a.extraData)});case"SET_EXTRA_DATA_BY_NAME":var r=U(U({},n.extraData),{},Y({},a.name,a.value));return U(U({},n),{},{extraData:U({},r)})}return n},actions:{setPostId:function(e){return{type:"SET_POST_ID",postId:e}},setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getPostId:function(e){return e.postId},getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});(0,V.register)(n)}({name:ie,defaultState:{postId:n,autoEnable:r,action:o,date:s,taxonomy:u,terms:m,newStatus:l}});var d=document.getElementById("publishpress-future-quick-edit");if(d){var f=(0,X.H)(d),p=document.querySelector(".inline-edit-save .save");p&&(p.onclick=function(){setTimeout((function(){f.unmount()}),1e3)});var y=React.createElement(H,{storeName:ie,postType:G,isNewPost:J,actionsSelectOptions:$,statusesSelectOptions:re,is12Hour:K,timeFormat:Z,startOfWeek:ee,strings:te,taxonomyName:ne,nonce:ae,hideCalendarByDefault:oe});f.render(y),Q.revert=function(){f.unmount(),ce.apply(this,arguments)}}}}})(); \ No newline at end of file +(()=>{"use strict";var e={9511:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".future-action-enable-checkbox {\n width: 100% !important;\n}\n",""]);const s=i},1461:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(1601),r=n.n(a),o=n(6314),i=n.n(o)()(r());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const s=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",a=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),a&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),a&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,a,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,n)=>{var a=n(5206);t.H=a.createRoot,a.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>h});var a=n(5072),r=n.n(a),o=n(7825),i=n.n(o),s=n(7659),c=n.n(s),u=n(5056),l=n.n(u),m=n(540),d=n.n(m),f=n(1113),p=n.n(f),y=n(1461),g={};g.styleTagTransform=p(),g.setAttributes=l(),g.insert=c().bind(null,"head"),g.domAPI=i(),g.insertStyleElement=d(),r()(y.A,g);const h=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,a=0;a{var t={};e.exports=function(e,n){var a=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var a="";n.supports&&(a+="@supports (".concat(n.supports,") {")),n.media&&(a+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(a+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),a+=n.css,r&&(a+="}"),n.media&&(a+="}"),n.supports&&(a+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={id:a,exports:{}};return e[a](o,o.exports,n),o.exports}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;const r=wp.components;var o=function(e){var t=e.iconExpanded?e.iconExpanded:"arrow-up-alt2",n=e.iconCollapsed?e.iconCollapsed:"arrow-down-alt2",a=e.isExpanded?t:n,o=e.isExpanded?e.titleExpanded:e.titleCollapsed;return React.createElement(r.Button,{isSmall:!0,title:o,icon:a,onClick:function(){e.onClick&&e.onClick()},className:e.className})},i=function(e){var t=new Date(c(e)),n=t.getFullYear(),a=("0"+(t.getMonth()+1)).slice(-2),r=("0"+t.getDate()).slice(-2),o=("0"+t.getHours()).slice(-2),i=("0"+t.getMinutes()).slice(-2),s=("0"+t.getSeconds()).slice(-2);return"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(i,":").concat(s)},s=function(e){return parseInt(e).toString().length<=10},c=function(e){return e=parseInt(e),s()?e:e/1e3},u=function(e){var t,n=e.currentDate,a=e.onChange,o=e.is12Hour,i=e.startOfWeek;return"number"==typeof n&&(t=n,t=parseInt(t),n=s()?1e3*t:t),React.createElement(r.DateTimePicker,{currentDate:n,onChange:a,__nextRemoveHelpButton:!0,is12Hour:o,startOfWeek:i})};const l=wp.element;var m=function(e){var t=e.isExpanded,n=e.strings,a=e.onToggleCalendar,r=e.currentDate,i=e.onChangeDate,s=e.is12Hour,c=e.startOfWeek;return(0,l.useEffect)((function(){var e=document.querySelector(".future-action-calendar-toggle");if(e){var t=e.nextElementSibling;if(t){var n=t.querySelector(".components-datetime__time");if(n){var a=n.nextSibling;a&&t.insertBefore(e,a)}}}})),React.createElement(l.Fragment,null,React.createElement(o,{className:"future-action-calendar-toggle",isExpanded:t,iconExpanded:"arrow-up-alt2",iconCollapsed:"calendar",titleExpanded:n.hideCalendar,titleCollapsed:n.showCalendar,onClick:a}),React.createElement(u,{currentDate:r,onChange:i,__nextRemoveHelpButton:!0,is12Hour:s,startOfWeek:c}))};const d=wp.plugins;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=Array(t);n0&&f&&(oe=function(e){return"object"!==h(e)||null===e?{}:e.map((function(e){return f[e]}))}(s),"string"==typeof(ie=oe?(Array.isArray(oe)||"object"!==a(oe)||(oe=Object.values(oe)),oe.filter((function(e){return null!=e&&""!==e}))):[])&&(ie=[]));var se=[];"object"===h(l)&&null!==l&&(se=Object.keys(l));var ce,ue=E?"future-action-panel":"future-action-panel hidden-calendar",le=E?"future-action-panel-content":"future-action-panel-content hidden-calendar",me=E?"future-action-date-panel":"future-action-date-panel hidden-calendar";ce="inherited"===e.timeFormat?!e.is12Hour:"24h"===e.timeFormat;var de=e.actionsSelectOptions;e.taxonomy||(de=e.actionsSelectOptions.filter((function(e){return-1===["category","category-add","category-remove","category-remove-all"].indexOf(e.value)})));var fe=function(e,t){var n=e.split("{"),a=[];a.push(n.shift());var r,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=S(e))){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){i=!0,r=e},f:function(){try{o||null==t.return||t.return()}finally{if(i)throw r}}}}(n);try{for(o.s();!(r=o.n()).done;){var i=b(r.value.split("}"),2),s=i[0],c=i[1];a.push(React.createElement("a",{href:t,target:"_blank",key:t},s)),a.push(c)}}catch(e){o.e(e)}finally{o.f()}return a}(e.strings.timezoneSettingsHelp,"/wp-admin/options-general.php#timezone_string"),pe=String(n).includes("category")&&"category-remove-all"!==n,ye=u;switch(n){case"category":ye=e.strings.newTerms.replace("%s",u);break;case"category-remove":ye=e.strings.removeTerms.replace("%s",u);break;case"category-add":ye=e.strings.addTerms.replace("%s",u)}return R((function(){if(!i)return K(!0),void M("");K(function(){var t=!0;if(!i)return M(""),!0;n||(M(e.strings.errorActionRequired),t=!1),o||(M(e.strings.errorDateRequired),t=!1),o&&new Date(o)0&&void 0!==arguments[0]?arguments[0]:t,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"SET_POST_ID":return re(re({},n),{},{postId:a.postId});case"SET_ACTION":return re(re({},n),{},{action:a.action});case"SET_NEW_STATUS":return re(re({},n),{},{newStatus:a.newStatus});case"SET_DATE":return"number"==typeof a.date||(e=a.date,isNaN(e))||(a.date=parseInt(a.date)),"string"==typeof a.date&&(a.date=new Date(a.date).getTime()),a.date=c(a.date),a.date=i(a.date),re(re({},n),{},{date:a.date});case"SET_ENABLED":return re(re({},n),{},{enabled:a.enabled});case"SET_TERMS":return re(re({},n),{},{terms:a.terms});case"SET_TAXONOMY":return re(re({},n),{},{taxonomy:a.taxonomy});case"SET_TERMS_LIST_BY_NAME":return re(re({},n),{},{termsListByName:a.termsListByName});case"SET_TERMS_LIST_BY_ID":return re(re({},n),{},{termsListById:a.termsListById});case"SET_TAXONOMY_NAME":return re(re({},n),{},{taxonomyName:a.taxonomyName});case"SET_CHANGE_ACTION":return re(re({},n),{},{changeAction:a.changeAction});case"SET_CALENDAR_IS_VISIBLE":return re(re({},n),{},{calendarIsVisible:a.calendarIsVisible});case"SET_HAS_VALID_DATA":return re(re({},n),{},{hasValidData:a.hasValidData});case"SET_EXTRA_DATA":return re(re({},n),{},{extraData:re({},a.extraData)});case"SET_EXTRA_DATA_BY_NAME":var r=re(re({},n.extraData),{},oe({},a.name,a.value));return re(re({},n),{},{extraData:re({},r)})}return n},actions:{setPostId:function(e){return{type:"SET_POST_ID",postId:e}},setAction:function(e){return{type:"SET_ACTION",action:e}},setNewStatus:function(e){return{type:"SET_NEW_STATUS",newStatus:e}},setDate:function(e){return{type:"SET_DATE",date:e}},setEnabled:function(e){return{type:"SET_ENABLED",enabled:e}},setTerms:function(e){return{type:"SET_TERMS",terms:e}},setTaxonomy:function(e){return{type:"SET_TAXONOMY",taxonomy:e}},setTermsListByName:function(e){return{type:"SET_TERMS_LIST_BY_NAME",termsListByName:e}},setTermsListById:function(e){return{type:"SET_TERMS_LIST_BY_ID",termsListById:e}},setTaxonomyName:function(e){return{type:"SET_TAXONOMY_NAME",taxonomyName:e}},setIsFetchingTerms:function(e){return{type:"SET_IS_FETCHING_TERMS",isFetchingTerms:e}},setChangeAction:function(e){return{type:"SET_CHANGE_ACTION",changeAction:e}},setCalendarIsVisible:function(e){return{type:"SET_CALENDAR_IS_VISIBLE",calendarIsVisible:e}},setHasValidData:function(e){return{type:"SET_HAS_VALID_DATA",hasValidData:e}},setExtraData:function(e){return{type:"SET_EXTRA_DATA",extraData:e}},setExtraDataByName:function(e,t){return{type:"SET_EXTRA_DATA_BY_NAME",name:e,value:t}}},selectors:{getPostId:function(e){return e.postId},getAction:function(e){return e.action},getNewStatus:function(e){return e.newStatus},getDate:function(e){return e.date},getEnabled:function(e){return e.enabled},getTerms:function(e){return e.terms},getTaxonomy:function(e){return e.taxonomy},getTermsListByName:function(e){return e.termsListByName},getTermsListById:function(e){return e.termsListById},getTaxonomyName:function(e){return e.taxonomyName},getIsFetchingTerms:function(e){return e.isFetchingTerms},getChangeAction:function(e){return e.changeAction},getCalendarIsVisible:function(e){return e.calendarIsVisible},getHasValidData:function(e){return e.hasValidData},getExtraData:function(e){return e.extraData},getExtraDataByName:function(e,t){return e.extraData[t]||null}}});(0,Z.register)(n)}({name:ve,defaultState:{postId:n,autoEnable:r,action:o,date:s,taxonomy:u,terms:m,newStatus:l}});var d=document.getElementById("publishpress-future-quick-edit");if(d){var f=(0,ie.H)(d),p=document.querySelector(".inline-edit-save .save");p&&(p.onclick=function(){setTimeout((function(){f.unmount()}),1e3)});var y=React.createElement(te,{storeName:ve,postType:ue,isNewPost:le,actionsSelectOptions:me,statusesSelectOptions:be,is12Hour:de,timeFormat:fe,startOfWeek:pe,strings:ye,taxonomyName:ge,nonce:he,hideCalendarByDefault:Se});f.render(y),se.revert=function(){f.unmount(),Te.apply(this,arguments)}}}}})(); \ No newline at end of file diff --git a/assets/js/settingsAdvanced.js b/assets/js/settingsAdvanced.js index b90fa56e5..167715296 100644 --- a/assets/js/settingsAdvanced.js +++ b/assets/js/settingsAdvanced.js @@ -221,7 +221,7 @@ module.exports = wp.element; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!******************************************!*\ !*** ./assets/jsx/settings-advanced.jsx ***! @@ -237,7 +237,7 @@ if ('advanced' === settingsTab) { var scheduledStepsCleanupContainer = document.getElementById('scheduled-steps-cleanup-settings'); if (scheduledStepsCleanupContainer) { var root = (0,react_dom_client__WEBPACK_IMPORTED_MODULE_0__.createRoot)(scheduledStepsCleanupContainer); - root.render(/*#__PURE__*/React.createElement(_workflow_editor_settings_scheduled_steps_cleanup__WEBPACK_IMPORTED_MODULE_1__.ScheduledStepsCleanupSettings, null)); + root.render( /*#__PURE__*/React.createElement(_workflow_editor_settings_scheduled_steps_cleanup__WEBPACK_IMPORTED_MODULE_1__.ScheduledStepsCleanupSettings, null)); } } })(); diff --git a/assets/js/settingsGeneral.js b/assets/js/settingsGeneral.js index 40c0dad7f..13f0de4ba 100644 --- a/assets/js/settingsGeneral.js +++ b/assets/js/settingsGeneral.js @@ -490,7 +490,7 @@ var FutureActionPanel = function FutureActionPanel(props) { _part$split2 = _slicedToArray(_part$split, 2), before = _part$split2[0], after = _part$split2[1]; - result.push(/*#__PURE__*/React.createElement("a", { + result.push( /*#__PURE__*/React.createElement("a", { href: href, target: target, key: href @@ -705,6 +705,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ FutureActionPanelBlockEditor: () => (/* binding */ FutureActionPanelBlockEditor) /* harmony export */ }); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ */ "./assets/jsx/components/index.jsx"); +/* harmony import */ var _css_block_editor_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css/block-editor.css */ "./assets/jsx/components/css/block-editor.css"); function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } @@ -712,6 +713,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length) function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } + var FutureActionPanelBlockEditor = function FutureActionPanelBlockEditor(props) { var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; var _wp$data = wp.data, @@ -1443,7 +1445,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { onChange: onChangeActive }))]; if (isActive) { - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldAutoEnable, key: 'expirationdate_autoenable-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.CheckboxControl, { @@ -1452,7 +1454,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { label: props.text.fieldAutoEnableLabel, onChange: onChangeAutoEnabled }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldTaxonomy, key: 'expirationdate_taxonomy-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1464,7 +1466,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { data: props.postType, onChange: onChangeTaxonomy }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldHowToExpire, key: 'expirationdate_expiretype-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1491,7 +1493,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { expandOnFocus: true, autoSelectFirstMatch: true }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldDefaultDateTimeOffset, key: 'expired-custom-date-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1511,7 +1513,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { setHasPendingValidationCallback: setHasPendingValidation, setHasValidDataCallback: setHasValidData }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldWhoToNotify, key: 'expirationdate_emailnotification-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1570,7 +1572,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), postType = _Object$entries$_i[0], postTypeSettings = _Object$entries$_i[1]; - panels.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { + panels.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { legend: postTypeSettings.label, text: props.text, postType: postType, @@ -1597,7 +1599,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { _postType = _Object$entries2$_i[0], _postTypeSettings = _Object$entries2$_i[1]; selected = currentTab === _postType; - tabs.push(/*#__PURE__*/React.createElement("a", { + tabs.push( /*#__PURE__*/React.createElement("a", { href: "#".concat(_postType, "-panel"), className: "nav-tab " + (selected ? 'nav-tab-active' : ''), key: "".concat(_postType, "-tab"), @@ -2331,6 +2333,35 @@ var isNumber = function isNumber(value) { return !isNaN(value); }; +/***/ }), + +/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css": +/*!************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css ***! + \************************************************************************************************************************************/ +/***/ ((module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "./node_modules/css-loader/dist/runtime/sourceMaps.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); +// Imports + + +var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); +// Module +___CSS_LOADER_EXPORT___.push([module.id, `.future-action-enable-checkbox { + width: 100% !important; +} +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/block-editor.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;AAC1B","sourcesContent":[".future-action-enable-checkbox {\n width: 100% !important;\n}\n"],"sourceRoot":""}]); +// Exports +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); + + /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/dateOffsetPreview.css": @@ -2355,7 +2386,10 @@ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBP ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value { font-family: monospace; background-color: #e7e7e7; - padding: 2px 4px; + padding: 4px 6px; + display: inline-block; + min-width: 140px; + min-height: 20px; } .publishpress-future-date-preview.compact .publishpress-future-date-preview-label { @@ -2383,7 +2417,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .pub .publishpress-future-notice.publishpress-future-notice-error { color: #dc3232; } -`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); @@ -2539,6 +2573,58 @@ if (false) {} else { } +/***/ }), + +/***/ "./assets/jsx/components/css/block-editor.css": +/*!****************************************************!*\ + !*** ./assets/jsx/components/css/block-editor.css ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "./node_modules/style-loader/dist/runtime/styleDomAPI.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "./node_modules/style-loader/dist/runtime/insertBySelector.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "./node_modules/style-loader/dist/runtime/insertStyleElement.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "./node_modules/style-loader/dist/runtime/styleTagTransform.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./block-editor.css */ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css"); + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); +options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); +options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); +options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); +options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); + +var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); + + + + + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); + + /***/ }), /***/ "./assets/jsx/components/css/dateOffsetPreview.css": @@ -3014,7 +3100,7 @@ module.exports = wp.url; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!*****************************************!*\ !*** ./assets/jsx/settings-general.jsx ***! diff --git a/assets/js/settingsGeneral.min.js b/assets/js/settingsGeneral.min.js index 140eaafb6..6306b30d6 100644 --- a/assets/js/settingsGeneral.min.js +++ b/assets/js/settingsGeneral.min.js @@ -1 +1 @@ -(()=>{"use strict";var e={1461:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(1601),a=r.n(n),o=r(6314),i=r.n(o)()(a());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,r)=>{var n=r(5206);t.H=n.createRoot,n.hydrateRoot},9922:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(5072),a=r.n(n),o=r(7825),i=r.n(o),l=r(7659),u=r.n(l),s=r(5056),c=r.n(s),p=r(540),f=r.n(p),d=r(1113),m=r.n(d),v=r(1461),h={};h.styleTagTransform=m(),h.setAttributes=c(),h.insert=u().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=f(),a()(v.A,h);const b=v.A&&v.A.locals?v.A.locals:void 0},5072:e=>{var t=[];function r(e){for(var r=-1,n=0;n{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={id:n,exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;wp.components;const n=wp.element;wp.plugins;var a=wp.components,o=(a.PanelRow,a.CheckboxControl,a.SelectControl,a.FormTokenField,a.Spinner,a.BaseControl,wp.element),i=(o.Fragment,o.useEffect,o.useState,wp.htmlEntities.decodeEntities,wp.url.addQueryArgs,wp.data);i.useSelect,i.useDispatch,wp.apiFetch,wp.data;const l=wp.url;function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],u=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r{"use strict";var e={9511:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(1601),a=r.n(n),o=r(6314),i=r.n(o)()(a());i.push([e.id,".future-action-enable-checkbox {\n width: 100% !important;\n}\n",""]);const l=i},1461:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(1601),a=r.n(n),o=r(6314),i=r.n(o)()(a());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,r)=>{var n=r(5206);t.H=n.createRoot,n.hydrateRoot},9922:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var n=r(5072),a=r.n(n),o=r(7825),i=r.n(o),l=r(7659),s=r.n(l),u=r(5056),c=r.n(u),p=r(540),f=r.n(p),d=r(1113),m=r.n(d),v=r(1461),h={};h.styleTagTransform=m(),h.setAttributes=c(),h.insert=s().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=f(),a()(v.A,h);const b=v.A&&v.A.locals?v.A.locals:void 0},5072:e=>{var t=[];function r(e){for(var r=-1,n=0;n{var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={id:n,exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;wp.components;const n=wp.element;wp.plugins;var a=wp.components,o=(a.PanelRow,a.CheckboxControl,a.SelectControl,a.FormTokenField,a.Spinner,a.BaseControl,wp.element),i=(o.Fragment,o.useEffect,o.useState,wp.htmlEntities.decodeEntities,wp.url.addQueryArgs,wp.data),l=(i.useSelect,i.useDispatch,wp.apiFetch,r(5072)),s=r.n(l),u=r(7825),c=r.n(u),p=r(7659),f=r.n(p),d=r(5056),m=r.n(d),v=r(540),h=r.n(v),b=r(1113),y=r.n(b),g=r(9511),w={};w.styleTagTransform=y(),w.setAttributes=m(),w.insert=f().bind(null,"head"),w.domAPI=c(),w.insertStyleElement=h(),s()(g.A,w),g.A&&g.A.locals&&g.A.locals,wp.data;const x=wp.url;function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],s=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r (/* binding */ FutureActionPanelBlockEditor) /* harmony export */ }); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ */ "./assets/jsx/components/index.jsx"); +/* harmony import */ var _css_block_editor_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css/block-editor.css */ "./assets/jsx/components/css/block-editor.css"); function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } @@ -712,6 +713,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length) function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } + var FutureActionPanelBlockEditor = function FutureActionPanelBlockEditor(props) { var PluginDocumentSettingPanel = wp.editPost.PluginDocumentSettingPanel; var _wp$data = wp.data, @@ -1443,7 +1445,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { onChange: onChangeActive }))]; if (isActive) { - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldAutoEnable, key: 'expirationdate_autoenable-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.CheckboxControl, { @@ -1452,7 +1454,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { label: props.text.fieldAutoEnableLabel, onChange: onChangeAutoEnabled }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldTaxonomy, key: 'expirationdate_taxonomy-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1464,7 +1466,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { data: props.postType, onChange: onChangeTaxonomy }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldHowToExpire, key: 'expirationdate_expiretype-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SelectControl, { @@ -1491,7 +1493,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { expandOnFocus: true, autoSelectFirstMatch: true }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldDefaultDateTimeOffset, key: 'expired-custom-date-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1511,7 +1513,7 @@ var PostTypeSettingsPanel = function PostTypeSettingsPanel(props) { setHasPendingValidationCallback: setHasPendingValidation, setHasValidDataCallback: setHasValidData }))); - settingsRows.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { + settingsRows.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.SettingRow, { label: props.text.fieldWhoToNotify, key: 'expirationdate_emailnotification-' + props.postType }, /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.TextControl, { @@ -1570,7 +1572,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), postType = _Object$entries$_i[0], postTypeSettings = _Object$entries$_i[1]; - panels.push(/*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { + panels.push( /*#__PURE__*/React.createElement(___WEBPACK_IMPORTED_MODULE_0__.PostTypeSettingsPanel, { legend: postTypeSettings.label, text: props.text, postType: postType, @@ -1597,7 +1599,7 @@ var PostTypesSettingsPanels = function PostTypesSettingsPanels(props) { _postType = _Object$entries2$_i[0], _postTypeSettings = _Object$entries2$_i[1]; selected = currentTab === _postType; - tabs.push(/*#__PURE__*/React.createElement("a", { + tabs.push( /*#__PURE__*/React.createElement("a", { href: "#".concat(_postType, "-panel"), className: "nav-tab " + (selected ? 'nav-tab-active' : ''), key: "".concat(_postType, "-tab"), @@ -2331,6 +2333,35 @@ var isNumber = function isNumber(value) { return !isNaN(value); }; +/***/ }), + +/***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css": +/*!************************************************************************************************************************************!*\ + !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css ***! + \************************************************************************************************************************************/ +/***/ ((module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/sourceMaps.js */ "./node_modules/css-loader/dist/runtime/sourceMaps.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); +/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__); +// Imports + + +var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default())); +// Module +___CSS_LOADER_EXPORT___.push([module.id, `.future-action-enable-checkbox { + width: 100% !important; +} +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/block-editor.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;AAC1B","sourcesContent":[".future-action-enable-checkbox {\n width: 100% !important;\n}\n"],"sourceRoot":""}]); +// Exports +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); + + /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/dateOffsetPreview.css": @@ -2355,7 +2386,10 @@ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBP ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .publishpress-future-date-preview-value { font-family: monospace; background-color: #e7e7e7; - padding: 2px 4px; + padding: 4px 6px; + display: inline-block; + min-width: 140px; + min-height: 20px; } .publishpress-future-date-preview.compact .publishpress-future-date-preview-label { @@ -2383,7 +2417,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, `.publishpress-future-date-preview .pub .publishpress-future-notice.publishpress-future-notice-error { color: #dc3232; } -`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); +`, "",{"version":3,"sources":["webpack://./assets/jsx/components/css/dateOffsetPreview.css"],"names":[],"mappings":"AAAA;IACI,sBAAsB;IACtB,yBAAyB;IACzB,gBAAgB;IAChB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,aAAa;AACjB;;AAEA;IACI,cAAc;AAClB","sourcesContent":[".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n"],"sourceRoot":""}]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); @@ -2539,6 +2573,58 @@ if (false) {} else { } +/***/ }), + +/***/ "./assets/jsx/components/css/block-editor.css": +/*!****************************************************!*\ + !*** ./assets/jsx/components/css/block-editor.css ***! + \****************************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ "./node_modules/style-loader/dist/runtime/styleDomAPI.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertBySelector.js */ "./node_modules/style-loader/dist/runtime/insertBySelector.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ "./node_modules/style-loader/dist/runtime/insertStyleElement.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ "./node_modules/style-loader/dist/runtime/styleTagTransform.js"); +/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/postcss-loader/dist/cjs.js!./block-editor.css */ "./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js!./assets/jsx/components/css/block-editor.css"); + + + + + + + + + + + +var options = {}; + +options.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default()); +options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default()); +options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head"); +options.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default()); +options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default()); + +var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"], options); + + + + + /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"] && _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals ? _node_modules_css_loader_dist_cjs_js_node_modules_postcss_loader_dist_cjs_js_block_editor_css__WEBPACK_IMPORTED_MODULE_6__["default"].locals : undefined); + + /***/ }), /***/ "./assets/jsx/components/css/dateOffsetPreview.css": @@ -3014,7 +3100,7 @@ module.exports = wp.url; /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!********************************************!*\ !*** ./assets/jsx/settings-post-types.jsx ***! diff --git a/assets/js/settingsPostTypes.min.js b/assets/js/settingsPostTypes.min.js index 2a3062281..7ac005fa7 100644 --- a/assets/js/settingsPostTypes.min.js +++ b/assets/js/settingsPostTypes.min.js @@ -1 +1 @@ -(()=>{"use strict";var e={1461:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 2px 4px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,n)=>{var r=n(5206);t.H=r.createRoot,r.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(5072),a=n.n(r),o=n(7825),i=n.n(o),l=n(7659),c=n.n(l),s=n(5056),u=n.n(s),p=n(540),f=n.n(p),d=n(1113),m=n.n(d),y=n(1461),v={};v.styleTagTransform=m(),v.setAttributes=u(),v.insert=c().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=f(),a()(y.A,v);const b=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,r=0;r{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r=function(e){return React.createElement("div",null,e.children)};const a=wp.components,o=wp.element;wp.plugins;var i=wp.components,l=(i.PanelRow,i.CheckboxControl,i.SelectControl,i.FormTokenField,i.Spinner,i.BaseControl,wp.element),c=(l.Fragment,l.useEffect,l.useState,wp.htmlEntities.decodeEntities,wp.url.addQueryArgs,wp.data);c.useSelect,c.useDispatch,wp.apiFetch,wp.data;const s=wp.url,u=wp.hooks;function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&["category","category-add","category-remove"].indexOf(S)>-1&&React.createElement(_,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:ce,value:g,isLoading:f,onChange:function(e){E(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),se.push(React.createElement(w,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(D,{name:"expired-custom-date-"+e.postType,value:k,loading:ae,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){F(e)}}),React.createElement(m,{offset:ie,label:e.text.datePreview,labelDatePreview:e.text.datePreviewCurrent,labelOffsetPreview:e.text.datePreviewComputed,setValidationErrorCallback:z,setHasPendingValidationCallback:oe,setHasValidDataCallback:B}))),se.push(React.createElement(w,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(D,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:L,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){M(e)}})))),se=(0,u.applyFilters)("expirationdate_settings_posttype",se,e,C,o.useState);var ue=e.isVisible?"pe-settings-fieldset":"pe-settings-fieldset hidden";return React.createElement("div",{className:ue},React.createElement(O,{bodyChildren:se}),!Q&&React.createElement(h,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",q)))};function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&React.createElement(a.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))},D=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(o.Fragment,null,React.createElement("div",{className:n},React.createElement(a.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(P,null),t))};function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n{"use strict";var e={9511:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".future-action-enable-checkbox {\n width: 100% !important;\n}\n",""]);const l=i},1461:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(1601),a=n.n(r),o=n(6314),i=n.n(o)()(a());i.push([e.id,".publishpress-future-date-preview .publishpress-future-date-preview-value {\n font-family: monospace;\n background-color: #e7e7e7;\n padding: 4px 6px;\n display: inline-block;\n min-width: 140px;\n min-height: 20px;\n}\n\n.publishpress-future-date-preview.compact .publishpress-future-date-preview-label {\n display: block;\n}\n\n.publishpress-future-date-preview.compact {\n margin-bottom: 8px;\n}\n\n.publishpress-future-date-preview.compact h4 {\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n display: inline-block;\n margin-bottom: calc(8px);\n padding: 0px;\n flex-shrink: 0;\n margin-right: 12px;\n max-width: 75%;\n margin-top: 0;\n}\n\n.publishpress-future-notice.publishpress-future-notice-error {\n color: #dc3232;\n}\n",""]);const l=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,a,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var l=0;l0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),t.push(u))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5338:(e,t,n)=>{var r=n(5206);t.H=r.createRoot,r.hydrateRoot},9922:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var r=n(5072),a=n.n(r),o=n(7825),i=n.n(o),l=n(7659),c=n.n(l),s=n(5056),u=n.n(s),p=n(540),f=n.n(p),d=n(1113),m=n.n(d),y=n(1461),v={};v.styleTagTransform=m(),v.setAttributes=u(),v.insert=c().bind(null,"head"),v.domAPI=i(),v.insertStyleElement=f(),a()(y.A,v);const b=y.A&&y.A.locals?y.A.locals:void 0},5072:e=>{var t=[];function n(e){for(var n=-1,r=0;r{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},5206:e=>{e.exports=ReactDOM}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={id:r,exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r=function(e){return React.createElement("div",null,e.children)};const a=wp.components,o=wp.element;wp.plugins;var i=wp.components,l=(i.PanelRow,i.CheckboxControl,i.SelectControl,i.FormTokenField,i.Spinner,i.BaseControl,wp.element),c=(l.Fragment,l.useEffect,l.useState,wp.htmlEntities.decodeEntities,wp.url.addQueryArgs,wp.data),s=(c.useSelect,c.useDispatch,wp.apiFetch,n(5072)),u=n.n(s),p=n(7825),f=n.n(p),d=n(7659),m=n.n(d),y=n(5056),v=n.n(y),b=n(540),h=n.n(b),g=n(1113),E=n.n(g),x=n(9511),S={};S.styleTagTransform=E(),S.setAttributes=v(),S.insert=m().bind(null,"head"),S.domAPI=f(),S.insertStyleElement=h(),u()(x.A,S),x.A&&x.A.locals&&x.A.locals,wp.data;const w=wp.url,R=wp.hooks;function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&["category","category-add","category-remove"].indexOf(v)>-1&&React.createElement(J,{label:e.text.fieldTerm,name:"expirationdate_terms-"+e.postType,options:ce,value:d,isLoading:u,onChange:function(e){m(e)},description:e.text.fieldTermDescription,maxSuggestions:1e3,expandOnFocus:!0,autoSelectFirstMatch:!0}))),se.push(React.createElement(L,{label:e.text.fieldDefaultDateTimeOffset,key:"expired-custom-date-"+e.postType},React.createElement(W,{name:"expired-custom-date-"+e.postType,value:S,loading:ae,placeholder:e.settings.globalDefaultExpireOffset,description:e.text.fieldDefaultDateTimeOffsetDescription,unescapedDescription:!0,onChange:function(e){T(e)}}),React.createElement(C,{offset:ie,label:e.text.datePreview,labelDatePreview:e.text.datePreviewCurrent,labelOffsetPreview:e.text.datePreviewComputed,setValidationErrorCallback:q,setHasPendingValidationCallback:oe,setHasValidDataCallback:V}))),se.push(React.createElement(L,{label:e.text.fieldWhoToNotify,key:"expirationdate_emailnotification-"+e.postType},React.createElement(W,{name:"expirationdate_emailnotification-"+e.postType,className:"large-text",value:O,description:e.text.fieldWhoToNotifyDescription,onChange:function(e){I(e)}})))),se=(0,R.applyFilters)("expirationdate_settings_posttype",se,e,g,o.useState);var ue=e.isVisible?"pe-settings-fieldset":"pe-settings-fieldset hidden";return React.createElement("div",{className:ue},React.createElement(H,{bodyChildren:se}),!M&&React.createElement(N,null,React.createElement("div",{className:"publishpress-future-notice publishpress-future-notice-error"},React.createElement("strong",null,e.text.error,":")," ",$)))};function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&React.createElement(a.SelectControl,{label:e.label,name:e.name,id:e.name,className:e.className,value:e.selected,onChange:function(t){e.onChange(t)},"data-data":e.data,options:e.options}),e.children,React.createElement("p",{className:"description"},e.description))},W=function(e){var t;t=e.unescapedDescription?React.createElement("p",{className:"description",dangerouslySetInnerHTML:{__html:e.description}}):React.createElement("p",{className:"description"},e.description);var n=e.className?e.className:"";return e.loading&&(n+=" publishpress-future-loading publishpress-future-loading-input"),React.createElement(o.Fragment,null,React.createElement("div",{className:n},React.createElement(a.TextControl,{type:"text",label:e.label,name:e.name,id:e.name,className:e.className,value:e.value,placeholder:e.placeholder,onChange:function(t){e.onChange&&e.onChange(t)}}),e.loading&&React.createElement(K,null),t))};function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n(()=>{var t={9735:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (/~https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},294:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (/~https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},1733:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},8974:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},6933:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},523:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},1223:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},1233:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},2847:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},8120:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},6305:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},525:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},4124:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},7167:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},4582:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},7096:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (/~https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},9887:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},7199:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},1985:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (/~https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},8093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},1615:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (/~https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},9063:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},9446:(e,t,a)=>{"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var n=a(1308);t.threezerotwofour=r(n);var o=a(9735);t.apathy=r(o);var s=a(294);t.ashes=r(s);var i=a(1733);t.atelierDune=r(i);var l=a(8974);t.atelierForest=r(l);var c=a(6933);t.atelierHeath=r(c);var u=a(523);t.atelierLakeside=r(u);var d=a(1223);t.atelierSeaside=r(d);var b=a(1233);t.bespin=r(b);var p=a(2847);t.brewer=r(p);var f=a(8120);t.bright=r(f);var h=a(6305);t.chalk=r(h);var m=a(525);t.codeschool=r(m);var v=a(4124);t.colors=r(v);var g=a(7167);t.default=r(g);var y=a(4582);t.eighties=r(y);var k=a(7096);t.embers=r(k);var E=a(9887);t.flat=r(E);var w=a(7199);t.google=r(w);var j=a(1985);t.grayscale=r(j);var x=a(8093);t.greenscreen=r(x);var C=a(1615);t.harmonic=r(C);var _=a(9063);t.hopscotch=r(_);var O=a(9033);t.isotope=r(O);var M=a(4112);t.marrakesh=r(M);var S=a(9600);t.mocha=r(S);var A=a(1240);t.monokai=r(A);var P=a(9768);t.ocean=r(P);var F=a(8293);t.paraiso=r(F);var D=a(3093);t.pop=r(D);var I=a(1951);t.railscasts=r(I);var R=a(6368);t.shapeshifter=r(R);var z=a(2317);t.solarized=r(z);var B=a(1091);t.summerfruit=r(B);var L=a(6943);t.tomorrow=r(L);var q=a(5670);t.tube=r(q);var N=a(2536);t.twilight=r(N)},9033:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},4112:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},9600:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},1240:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},9768:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},8293:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},3093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},1951:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},6368:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},2317:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},1091:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},1308:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},6943:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},5670:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},2536:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},6481:(e,t,a)=>{var r=a(4176),n={};for(var o in r)r.hasOwnProperty(o)&&(n[r[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in s)if(s.hasOwnProperty(i)){if(!("channels"in s[i]))throw new Error("missing channels property: "+i);if(!("labels"in s[i]))throw new Error("missing channel labels property: "+i);if(s[i].labels.length!==s[i].channels)throw new Error("channel and label counts mismatch: "+i);var l=s[i].channels,c=s[i].labels;delete s[i].channels,delete s[i].labels,Object.defineProperty(s[i],"channels",{value:l}),Object.defineProperty(s[i],"labels",{value:c})}s.rgb.hsl=function(e){var t,a,r=e[0]/255,n=e[1]/255,o=e[2]/255,s=Math.min(r,n,o),i=Math.max(r,n,o),l=i-s;return i===s?t=0:r===i?t=(n-o)/l:n===i?t=2+(o-r)/l:o===i&&(t=4+(r-n)/l),(t=Math.min(60*t,360))<0&&(t+=360),a=(s+i)/2,[t,100*(i===s?0:a<=.5?l/(i+s):l/(2-i-s)),100*a]},s.rgb.hsv=function(e){var t,a,r,n,o,s=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(s,i,l),u=c-Math.min(s,i,l),d=function(e){return(c-e)/6/u+.5};return 0===u?n=o=0:(o=u/c,t=d(s),a=d(i),r=d(l),s===c?n=r-a:i===c?n=1/3+t-r:l===c&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*o,100*c]},s.rgb.hwb=function(e){var t=e[0],a=e[1],r=e[2];return[s.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(a,r))),100*(r=1-1/255*Math.max(t,Math.max(a,r)))]},s.rgb.cmyk=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*((1-a-(t=Math.min(1-a,1-r,1-n)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=n[e];if(t)return t;var a,o,s,i=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=r[l],u=(o=e,s=c,Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*a+.0722*r),100*(.0193*t+.1192*a+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),a=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,a=(a/=95.047)>.008856?Math.pow(a,1/3):7.787*a+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(a-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.hsl.rgb=function(e){var t,a,r,n,o,s=e[0]/360,i=e[1]/100,l=e[2]/100;if(0===i)return[o=255*l,o,o];t=2*l-(a=l<.5?l*(1+i):l+i-l*i),n=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(a-t)*r:2*r<1?a:3*r<2?t+(a-t)*(2/3-r)*6:t,n[c]=255*o;return n},s.hsl.hsv=function(e){var t=e[0],a=e[1]/100,r=e[2]/100,n=a,o=Math.max(r,.01);return a*=(r*=2)<=1?r:2-r,n*=o<=1?o:2-o,[t,100*(0===r?2*n/(o+n):2*a/(r+a)),100*((r+a)/2)]},s.hsv.rgb=function(e){var t=e[0]/60,a=e[1]/100,r=e[2]/100,n=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-a),i=255*r*(1-a*o),l=255*r*(1-a*(1-o));switch(r*=255,n){case 0:return[r,l,s];case 1:return[i,r,s];case 2:return[s,r,l];case 3:return[s,i,r];case 4:return[l,s,r];case 5:return[r,s,i]}},s.hsv.hsl=function(e){var t,a,r,n=e[0],o=e[1]/100,s=e[2]/100,i=Math.max(s,.01);return r=(2-o)*s,a=o*i,[n,100*(a=(a/=(t=(2-o)*i)<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,a,r,n,o,s,i,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),1&t&&(r=1-r),n=c+r*((a=1-u)-c),t){default:case 6:case 0:o=a,s=n,i=c;break;case 1:o=n,s=a,i=c;break;case 2:o=c,s=a,i=n;break;case 3:o=c,s=n,i=a;break;case 4:o=n,s=c,i=a;break;case 5:o=a,s=c,i=n}return[255*o,255*s,255*i]},s.cmyk.rgb=function(e){var t=e[0]/100,a=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},s.xyz.rgb=function(e){var t,a,r,n=e[0]/100,o=e[1]/100,s=e[2]/100;return a=-.9689*n+1.8758*o+.0415*s,r=.0557*n+-.204*o+1.057*s,t=(t=3.2406*n+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(a=Math.min(Math.max(0,a),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],a=e[1],r=e[2];return a/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(t-a),200*(a-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,a,r,n=e[0];t=e[1]/500+(a=(n+16)/116),r=a-e[2]/200;var o=Math.pow(a,3),s=Math.pow(t,3),i=Math.pow(r,3);return a=o>.008856?o:(a-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,[t*=95.047,a*=100,r*=108.883]},s.lab.lch=function(e){var t,a=e[0],r=e[1],n=e[2];return(t=360*Math.atan2(n,r)/2/Math.PI)<0&&(t+=360),[a,Math.sqrt(r*r+n*n),t]},s.lch.lab=function(e){var t,a=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[a,r*Math.cos(t),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],a=e[1],r=e[2],n=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(t/255));return 2===n&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],a=e[1],r=e[2];return t===a&&a===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var a;return e-=16,[Math.floor(e/36)/5*255,Math.floor((a=e%36)/6)/5*255,a%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var a=t[0];3===t[0].length&&(a=a.split("").map((function(e){return e+e})).join(""));var r=parseInt(a,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(a,r),n),s=Math.min(Math.min(a,r),n),i=o-s;return t=i<=0?0:o===a?(r-n)/i%6:o===r?2+(n-a)/i:4+(a-r)/i+4,t/=6,[360*(t%=1),100*i,100*(i<1?s/(1-i):0)]},s.hsl.hcg=function(e){var t=e[1]/100,a=e[2]/100,r=1,n=0;return(r=a<.5?2*t*a:2*t*(1-a))<1&&(n=(a-.5*r)/(1-r)),[e[0],100*r,100*n]},s.hsv.hcg=function(e){var t=e[1]/100,a=e[2]/100,r=t*a,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.hcg.rgb=function(e){var t=e[0]/360,a=e[1]/100,r=e[2]/100;if(0===a)return[255*r,255*r,255*r];var n,o=[0,0,0],s=t%1*6,i=s%1,l=1-i;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return n=(1-a)*r,[255*(a*o[0]+n),255*(a*o[1]+n),255*(a*o[2]+n)]},s.hcg.hsv=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t),r=0;return a>0&&(r=t/a),[e[0],100*r,100*a]},s.hcg.hsl=function(e){var t=e[1]/100,a=e[2]/100*(1-t)+.5*t,r=0;return a>0&&a<.5?r=t/(2*a):a>=.5&&a<1&&(r=t/(2*(1-a))),[e[0],100*r,100*a]},s.hcg.hwb=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},s.hwb.hcg=function(e){var t=e[1]/100,a=1-e[2]/100,r=a-t,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},4732:(e,t,a)=>{var r=a(6481),n=a(1157),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=n(e);Object.keys(t).forEach((function(a){var r=t[a];o[e][a]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var a=e(t);if("object"==typeof a)for(var r=a.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},1157:(e,t,a)=>{var r=a(6481);function n(e){var t=function(){for(var e={},t=Object.keys(r),a=t.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4877:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6138:(e,t,a)=>{var r=a(4877),n=a(301),o=Object.hasOwnProperty,s=Object.create(null);for(var i in r)o.call(r,i)&&(s[r[i]]=i);var l=e.exports={to:{},get:{}};function c(e,t,a){return Math.min(Math.max(t,e),a)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),a="hsl";break;case"hwb":t=l.get.hwb(e),a="hwb";break;default:t=l.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,a,n,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],a=0;a<3;a++){var i=2*a;s[a]=parseInt(t.slice(i,i+2),16)}n&&(s[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],a=0;a<3;a++)s[a]=parseInt(t[a]+t[a],16);n&&(s[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)s[a]=parseInt(t[a+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((s=r[t[1]])[3]=1,s):null:null;for(a=0;a<3;a++)s[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(a=0;a<3;a++)s[a]=c(s[a],0,255);return s[3]=c(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(a)?1:a,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(a)?1:a,0,1)]}return null},l.to.hex=function(){var e=n(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+r+"%)":"rgba("+t+"%, "+a+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},3639:(e,t,a)=>{"use strict";var r=a(6138),n=a(4732),o=[].slice,s=["keyword","gray","hex"],i={};Object.keys(n).forEach((function(e){i[o.call(n[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in s&&(t=null),t&&!(t in n))throw new Error("Unknown model: "+t);var a,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=r.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=n[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=n[this.model].channels;var p=o.call(e,0,u);this.color=b(p,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var f=Object.keys(e);"alpha"in e&&(f.splice(f.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var h=f.sort().join("");if(!(h in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[h];var m=n[this.model].labels,v=[];for(a=0;aa?(t+.05)/(a+.05):(a+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),a=t.color[0];return a=(a=(a+e)%360)<0?360+a:a,t.color[0]=a,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var a=e.rgb(),r=this.rgb(),n=void 0===t?.5:t,o=2*n-1,s=a.alpha()-r.alpha(),i=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,l=1-i;return c.rgb(i*a.red()+l*r.red(),i*a.green()+l*r.green(),i*a.blue()+l*r.blue(),a.alpha()*n+r.alpha()*(1-n))}},Object.keys(n).forEach((function(e){if(-1===s.indexOf(e)){var t=n[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var a,r="number"==typeof arguments[t]?t:this.valpha;return new c((a=n[this.model][e].raw(this.color),Array.isArray(a)?a:[a]).concat(r),e)},c[e]=function(a){return"number"==typeof a&&(a=b(o.call(arguments),t)),new c(a,e)}}})),e.exports=c},9784:e=>{"use strict";var t,a="object"==typeof Reflect?Reflect:null,r=a&&"function"==typeof a.apply?a.apply:function(e,t,a){return Function.prototype.apply.call(e,t,a)};t=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(a,r){function n(a){e.removeListener(t,o),r(a)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),a([].slice.call(arguments))}h(e,t,o,{once:!0}),"error"!==t&&function(e,t,a){"function"==typeof e.on&&h(e,"error",t,a)}(e,n,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,a,r){var n,o,s,c;if(i(a),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),o=e._events),s=o[t]),void 0===s)s=o[t]=a,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[a,s]:[s,a]:r?s.unshift(a):s.push(a),(n=l(e))>0&&s.length>n&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,a){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=u.bind(r);return n.listener=a,r.wrapFn=n,n}function b(e,t,a){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?a?[n.listener||n]:[n]:a?function(e){for(var t=new Array(e.length),a=0;a0&&(s=t[0]),s instanceof Error)throw s;var i=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw i.context=s,i}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=f(l,c);for(a=0;a=0;o--)if(a[o]===t||a[o].listener===t){s=a[o].listener,n=o;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4263:e=>{"use strict";var t=function(e){};e.exports=function(e,a){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o{e.exports.Dispatcher=a(9808)},9808:(e,t,a)=>{"use strict";function r(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var n=a(4263),o=function(){function e(){r(this,"_callbacks",void 0),r(this,"_isDispatching",void 0),r(this,"_isHandled",void 0),r(this,"_isPending",void 0),r(this,"_lastID",void 0),r(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=e.prototype;return t.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},t.unregister=function(e){this._callbacks[e]||n(!1),delete this._callbacks[e]},t.waitFor=function(e){this._isDispatching||n(!1);for(var t=0;t{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},3989:(e,t,a)=>{var r="Expected a function",n="__lodash_placeholder__",o=1,s=2,i=4,l=8,c=16,u=32,d=64,b=128,p=512,f=1/0,h=9007199254740991,m=17976931348623157e292,v=NaN,g=[["ary",b],["bind",o],["bindKey",s],["curry",l],["curryRight",c],["flip",p],["partial",u],["partialRight",d],["rearg",256]],y="[object Function]",k="[object GeneratorFunction]",E="[object Symbol]",w=/^\s+|\s+$/g,j=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,x=/\{\n\/\* \[wrapped with (.+)\] \*/,C=/,? & /,_=/^[-+]0x[0-9a-f]+$/i,O=/^0b[01]+$/i,M=/^\[object .+?Constructor\]$/,S=/^0o[0-7]+$/i,A=/^(?:0|[1-9]\d*)$/,P=parseInt,F="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,D="object"==typeof self&&self&&self.Object===Object&&self,I=F||D||Function("return this")();function R(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function z(e,t){return!!(e?e.length:0)&&function(e,t,a){if(t!=t)return function(e,t,a,r){var n=e.length,o=a+(r?1:-1);for(;r?o--:++o-1}function B(e){return e!=e}function L(e,t){for(var a=-1,r=e.length,o=0,s=[];++a2?N:void 0);function ee(e){if(!pe(e)||function(e){return!!U&&U in e}(e))return!1;var t=function(e){var t=pe(e)?J.call(e):"";return t==y||t==k}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Y:M;return t.test(function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function te(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a,r=pe(a=e.prototype)?G(a):{},n=e.apply(r,t);return pe(n)?n:r}}function ae(e,t,a,r,n,i,u,d,f,h){var m=t&b,v=t&o,g=t&s,y=t&(l|c),k=t&p,E=g?void 0:te(e);return function o(){for(var s=arguments.length,l=Array(s),c=s;c--;)l[c]=arguments[c];if(y)var b=oe(o),p=function(e,t){for(var a=e.length,r=0;a--;)e[a]===t&&r++;return r}(l,b);if(r&&(l=function(e,t,a,r){for(var n=-1,o=e.length,s=a.length,i=-1,l=t.length,c=Q(o-s,0),u=Array(l+c),d=!r;++i1&&l.reverse(),m&&f1?"& ":"")+t[r],t=t.join(a>2?", ":" "),e.replace(j,"{\n/* [wrapped with "+t+"] */\n")}function ce(e,t){return!!(t=null==t?h:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e{"use strict";var r=a(8336),n=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],a=0,s=e.length;a{"use strict";t.exports=e}},a={};function r(e){var n=a[e];if(void 0!==n)return n.exports;var o=a[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var a=function(t,a){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,a||"default");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)}(t,"string");return"symbol"==e(a)?a:a+""}function a(e,a,r){return(a=t(a))in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function s(e){for(var t=1;tmt});var m=r(4119),v=r.n(m);function g(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function y(e){this.setState(function(t){var a=this.constructor.getDerivedStateFromProps(e,t);return null!=a?a:null}.bind(this))}function k(e,t){try{var a=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function E(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var a=null,r=null,n=null;if("function"==typeof t.componentWillMount?a="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(a="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?n="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(n="UNSAFE_componentWillUpdate"),null!==a||null!==r||null!==n){var o=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==a?"\n "+a:"")+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=g,t.componentWillReceiveProps=y),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=k;var i=t.componentDidUpdate;t.componentDidUpdate=function(e,t,a){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:a;i.call(this,e,t,r)}}return e}function w(e,t){if(null==e)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;a[r]=e[r]}return a}function j(e,t){if(null==e)return{};var a,r,n=w(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function x(e){var t=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return"number"===t&&(t=isNaN(e)?"nan":(0|e)!=e?"float":"integer"),t}g.__suppressDeprecationWarning=!0,y.__suppressDeprecationWarning=!0,k.__suppressDeprecationWarning=!0;var C={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},_={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"};const O={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o2?r-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.defaultBase16,n=void 0===r?L:r,o=t.base16Themes,s=$(a,void 0===o?null:o);s&&(a=B(B({},s),a));for(var i=q.reduce((function(e,t){return e[t]=a[t]||n[t],e}),{}),l=Object.keys(a).reduce((function(e,t){return-1===q.indexOf(t)?(e[t]=a[t],e):e}),{}),c=e(i),u=T(l,c),d=arguments.length,b=new Array(d>3?d-3:0),p=3;p=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,i=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){i=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(i)throw o}}}}(n);try{for(d.s();!(i=d.n()).done;){u=u[i.value]}}catch(e){d.e(e)}finally{d.f()}return s?"array"==x(u)?u.splice(r,1):delete u[r]:null!==r?u[r]=o:c=o,e.set(t,"global","src",c),c},e.deepCopy=function(t,a){var r,n=x(t),o=a.shift();return"array"==n?r=te(t):"object"==n&&(r=s({},t)),void 0!==o&&(r[o]=e.deepCopy(t[o],a)),r},e}return h(t,e),c(t)}(ae.EventEmitter));re.register(ne.handleAction.bind(ne));const oe=ne;var se=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){oe.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.getFunctionDisplay=function(e){var t=a.props;return e?v().createElement("span",null,a.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),v().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},v().createElement("span",null,"{"),v().createElement("span",G(t.theme,"ellipsis"),"..."),v().createElement("span",null,"}"))):a.props.value.toString().slice(9,-1)},a.state={collapsed:oe.get(e.rjvId,e.namespace,"collapsed",!0)},a}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return v().createElement("div",G(e.theme,"function"),v().createElement(Q,Object.assign({type_name:"function"},e)),v().createElement("span",Object.assign({},G(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}])}(v().PureComponent),ie=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"nan"),"NaN")}}])}(v().PureComponent),le=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"null"),"NULL")}}])}(v().PureComponent),ce=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"integer"),v().createElement(Q,Object.assign({type_name:"int"},e)),this.props.value)}}])}(v().PureComponent),ue=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"regexp"),v().createElement(Q,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}])}(v().PureComponent),de=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){oe.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.state={collapsed:oe.get(e.rjvId,e.namespace,"collapsed",!0)},a}return h(t,e),c(t,[{key:"render",value:function(){this.state.collapsed;var e=this.props,t=e.collapseStringsAfterLength,a=e.theme,r=e.value,n={style:{cursor:"default"}};return"integer"===x(t)&&r.length>t&&(n.style.cursor="pointer",this.state.collapsed&&(r=v().createElement("span",null,r.substring(0,t),v().createElement("span",G(a,"ellipsis")," ...")))),v().createElement("div",G(a,"string"),v().createElement(Q,Object.assign({type_name:"string"},e)),v().createElement("span",Object.assign({className:"string-value"},n,{onClick:this.toggleCollapsed}),'"',r,'"'))}}])}(v().PureComponent),be=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"undefined"),"undefined")}}])}(v().PureComponent);function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?o:null,namespace:n.splice(0,n.length-1),existing_value:i,variable_removed:!1,key_name:null};"object"===x(i)?re.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:l,data:e}):re.dispatch({name:"VARIABLE_ADDED",rjvId:l,data:s(s({},e),{},{new_value:[].concat(te(i),[null])})})}})))},e.getRemoveObject=function(t){var a=e.props,r=a.theme,n=(a.hover,a.namespace),o=a.name,s=a.src,i=a.rjvId;if(1!==n.length)return v().createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},v().createElement($e,Object.assign({className:"click-to-remove-icon"},G(r,"removeVarIcon"),{onClick:function(){re.dispatch({name:"VARIABLE_REMOVED",rjvId:i,data:{name:o,namespace:n.splice(0,n.length-1),existing_value:s,variable_removed:!0}})}})))},e.render=function(){var t=e.props,a=t.theme,r=t.onDelete,n=t.onAdd,o=t.enableClipboard,s=t.src,i=t.namespace,l=t.rowHovered;return v().createElement("div",Object.assign({},G(a,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),o?v().createElement(Xe,{rowHovered:l,clickCallback:o,src:s,theme:a,namespace:i}):null,!1!==n?e.getAddAttribute(l):null,!1!==r?e.getRemoveObject(l):null)},e}return h(t,e),c(t)}(v().PureComponent);function at(e){var t=e.parent_type,a=e.namespace,r=e.quotesOnKeys,n=e.theme,o=e.jsvRoot,s=e.name,i=e.displayArrayKey,l=e.name?e.name:"";return!o||!1!==s&&null!==s?"array"==t?i?v().createElement("span",Object.assign({},G(n,"array-key"),{key:a}),v().createElement("span",{className:"array-key"},l),v().createElement("span",G(n,"colon"),":")):v().createElement("span",null):v().createElement("span",Object.assign({},G(n,"object-name"),{key:a}),v().createElement("span",{className:"object-key"},r&&v().createElement("span",{style:{verticalAlign:"top"}},'"'),v().createElement("span",null,l),r&&v().createElement("span",{style:{verticalAlign:"top"}},'"')),v().createElement("span",G(n,"colon"),":")):v().createElement("span",null)}function rt(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(Ue,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return v().createElement(Te,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}));default:return v().createElement(Ne,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}))}}function nt(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(We,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v().createElement(Ke,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return v().createElement(Ve,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var ot=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],st=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var r in a.state.expanded)t.push(a.state.expanded[r]);t[e]=!t[e],a.setState({expanded:t})},a.state={expanded:[]},a}return h(t,e),c(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,a=t.theme,r=t.iconStyle;return this.state.expanded[e]?v().createElement(rt,{theme:a,iconStyle:r}):v().createElement(nt,{theme:a,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,a=t.src,r=t.groupArraysAfterLength,n=(t.depth,t.name),o=t.theme,s=t.jsvRoot,i=t.namespace,l=(t.parent_type,j(t,ot)),c=0,u=5*this.props.indentWidth;s||(c=5*this.props.indentWidth);var d=r,b=Math.ceil(a.length/d);return v().createElement("div",Object.assign({className:"object-key-val"},G(o,s?"jsv-root":"objectKeyVal",{paddingLeft:c})),v().createElement(at,this.props),v().createElement("span",null,v().createElement(tt,Object.assign({size:a.length},this.props))),te(Array(b)).map((function(t,r){return v().createElement("div",Object.assign({key:r,className:"object-key-val array-group"},G(o,"objectKeyVal",{marginLeft:6,paddingLeft:u})),v().createElement("span",G(o,"brace-row"),v().createElement("div",Object.assign({className:"icon-container"},G(o,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?v().createElement(ut,Object.assign({key:n+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:a.slice(r*d,r*d+d),namespace:i,type:"array",parent_type:"array_group",theme:o},l)):v().createElement("span",Object.assign({},G(o,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",v().createElement("div",Object.assign({},G(o,"array-group-meta-data"),{className:"array-group-meta-data"}),v().createElement("span",Object.assign({className:"object-size"},G(o,"object-size")),r*d," - ",r*d+d>a.length?a.length:r*d+d)),"]")))})))}}])}(v().PureComponent),it=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],lt=function(e){function t(e){var a;i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({expanded:!a.state.expanded},(function(){oe.set(a.props.rjvId,a.props.namespace,"expanded",a.state.expanded)}))},a.getObjectContent=function(e,t,r){return v().createElement("div",{className:"pushed-content object-container"},v().createElement("div",Object.assign({className:"object-content"},G(a.props.theme,"pushed-content")),a.renderObjectContents(t,r)))},a.getEllipsis=function(){return 0===a.state.size?null:v().createElement("div",Object.assign({},G(a.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:a.toggleCollapsed}),"...")},a.getObjectMetaData=function(e){var t=a.props,r=(t.rjvId,t.theme,a.state),n=r.size,o=r.hovered;return v().createElement(tt,Object.assign({rowHovered:o,size:n},a.props))},a.renderObjectContents=function(e,t){var r,n=a.props,o=n.depth,s=n.parent_type,i=n.index_offset,l=n.groupArraysAfterLength,c=n.namespace,u=a.state.object_type,d=[],b=Object.keys(e||{});return a.props.sortKeys&&"array"!==u&&(b=b.sort()),b.forEach((function(n){if(r=new ct(n,e[n]),"array_group"===s&&i&&(r.name=parseInt(r.name)+i),e.hasOwnProperty(n))if("object"===r.type)d.push(v().createElement(ut,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:c.concat(r.name),parent_type:u},t)));else if("array"===r.type){var b=ut;l&&r.value.length>l&&(b=st),d.push(v().createElement(b,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:c.concat(r.name),type:"array",parent_type:u},t)))}else d.push(v().createElement(et,Object.assign({key:r.name+"_"+c,variable:r,singleIndent:5,namespace:c,type:a.props.type},t)))})),d};var r=t.getState(e);return a.state=s(s({},r),{},{prevProps:{}}),a}return h(t,e),c(t,[{key:"getBraceStart",value:function(e,t){var a=this,r=this.props,n=r.src,o=r.theme,s=r.iconStyle;if("array_group"===r.parent_type)return v().createElement("span",null,v().createElement("span",G(o,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(n):null);var i=t?rt:nt;return v().createElement("span",null,v().createElement("span",Object.assign({onClick:function(e){a.toggleCollapsed()}},G(o,"brace-row")),v().createElement("div",Object.assign({className:"icon-container"},G(o,"icon-container")),v().createElement(i,{theme:o,iconStyle:s})),v().createElement(at,this.props),v().createElement("span",G(o,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(n):null)}},{key:"render",value:function(){var e=this,t=this.props,a=t.depth,r=t.src,n=(t.namespace,t.name,t.type,t.parent_type),o=t.theme,i=t.jsvRoot,l=t.iconStyle,c=j(t,it),u=this.state,d=u.object_type,b=u.expanded,p={};return i||"array_group"===n?"array_group"===n&&(p.borderLeft=0,p.display="inline"):p.paddingLeft=5*this.props.indentWidth,v().createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(s(s({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(s(s({},e.state),{},{hovered:!1}))}},G(o,i?"jsv-root":"objectKeyVal",p)),this.getBraceStart(d,b),b?this.getObjectContent(a,r,s({theme:o,iconStyle:l},c)):this.getEllipsis(),v().createElement("span",{className:"brace-row"},v().createElement("span",{style:s(s({},G(o,"brace").style),{},{paddingLeft:b?"3px":"0px"})},"array"===d?"]":"}"),b?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var r=a.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?s(s({},t.getState(e)),{},{prevProps:e}):null}}])}(v().PureComponent);lt.getState=function(e){var t=Object.keys(e.src).length,a=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:x(e.src),namespace:e.namespace}))&&0!==t;return{expanded:oe.get(e.rjvId,e.namespace,"expanded",a),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var ct=c((function e(t,a){i(this,e),this.name=t,this.value=a,this.type=x(a)}));E(lt);const ut=lt;var dt=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;no.groupArraysAfterLength&&(i=st),v().createElement("div",{className:"pretty-json-container object-container"},v().createElement("div",{className:"object-content"},v().createElement(i,Object.assign({namespace:s,depth:0,jsvRoot:!0},o))))},e}return h(t,e),c(t)}(v().PureComponent),bt=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).closeModal=function(){re.dispatch({rjvId:a.props.rjvId,name:"RESET"})},a.submit=function(){a.props.submit(a.state.input)},a.state={input:e.input?e.input:""},a}return h(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.theme,r=t.rjvId,n=t.isValid,o=this.state.input,s=n(o);return v().createElement("div",Object.assign({className:"key-modal-request"},G(a,"key-modal-request"),{onClick:this.closeModal}),v().createElement("div",Object.assign({},G(a,"key-modal"),{onClick:function(e){e.stopPropagation()}}),v().createElement("div",G(a,"key-modal-label"),"Key Name:"),v().createElement("div",{style:{position:"relative"}},v().createElement("input",Object.assign({},G(a,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:o,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){s&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),s?v().createElement(Qe,Object.assign({},G(a,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),v().createElement("span",G(a,"key-modal-cancel"),v().createElement(Ye,Object.assign({},G(a,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){re.dispatch({rjvId:r,name:"RESET"})}})))))}}])}(v().PureComponent),pt=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;n(()=>{var t={9735:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (/~https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},294:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (/~https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},1733:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},8974:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},6933:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},523:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},1223:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},1233:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},2847:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},8120:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},6305:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},525:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},4124:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},7167:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},4582:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},7096:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (/~https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},9887:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},7199:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},1985:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (/~https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},8093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},1615:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (/~https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},9063:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},9446:(e,t,a)=>{"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var n=a(1308);t.threezerotwofour=r(n);var o=a(9735);t.apathy=r(o);var s=a(294);t.ashes=r(s);var i=a(1733);t.atelierDune=r(i);var l=a(8974);t.atelierForest=r(l);var c=a(6933);t.atelierHeath=r(c);var u=a(523);t.atelierLakeside=r(u);var d=a(1223);t.atelierSeaside=r(d);var b=a(1233);t.bespin=r(b);var p=a(2847);t.brewer=r(p);var f=a(8120);t.bright=r(f);var h=a(6305);t.chalk=r(h);var m=a(525);t.codeschool=r(m);var v=a(4124);t.colors=r(v);var g=a(7167);t.default=r(g);var y=a(4582);t.eighties=r(y);var k=a(7096);t.embers=r(k);var E=a(9887);t.flat=r(E);var j=a(7199);t.google=r(j);var w=a(1985);t.grayscale=r(w);var x=a(8093);t.greenscreen=r(x);var C=a(1615);t.harmonic=r(C);var O=a(9063);t.hopscotch=r(O);var M=a(9033);t.isotope=r(M);var S=a(4112);t.marrakesh=r(S);var _=a(9600);t.mocha=r(_);var A=a(1240);t.monokai=r(A);var F=a(9768);t.ocean=r(F);var P=a(8293);t.paraiso=r(P);var D=a(3093);t.pop=r(D);var R=a(1951);t.railscasts=r(R);var I=a(6368);t.shapeshifter=r(I);var z=a(2317);t.solarized=r(z);var B=a(1091);t.summerfruit=r(B);var L=a(6943);t.tomorrow=r(L);var q=a(5670);t.tube=r(q);var N=a(2536);t.twilight=r(N)},9033:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},4112:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},9600:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},1240:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},9768:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},8293:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},3093:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},1951:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},6368:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},2317:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},1091:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},1308:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},6943:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},5670:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},2536:(e,t)=>{"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},6481:(e,t,a)=>{var r=a(4176),n={};for(var o in r)r.hasOwnProperty(o)&&(n[r[o]]=o);var s=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in s)if(s.hasOwnProperty(i)){if(!("channels"in s[i]))throw new Error("missing channels property: "+i);if(!("labels"in s[i]))throw new Error("missing channel labels property: "+i);if(s[i].labels.length!==s[i].channels)throw new Error("channel and label counts mismatch: "+i);var l=s[i].channels,c=s[i].labels;delete s[i].channels,delete s[i].labels,Object.defineProperty(s[i],"channels",{value:l}),Object.defineProperty(s[i],"labels",{value:c})}s.rgb.hsl=function(e){var t,a,r=e[0]/255,n=e[1]/255,o=e[2]/255,s=Math.min(r,n,o),i=Math.max(r,n,o),l=i-s;return i===s?t=0:r===i?t=(n-o)/l:n===i?t=2+(o-r)/l:o===i&&(t=4+(r-n)/l),(t=Math.min(60*t,360))<0&&(t+=360),a=(s+i)/2,[t,100*(i===s?0:a<=.5?l/(i+s):l/(2-i-s)),100*a]},s.rgb.hsv=function(e){var t,a,r,n,o,s=e[0]/255,i=e[1]/255,l=e[2]/255,c=Math.max(s,i,l),u=c-Math.min(s,i,l),d=function(e){return(c-e)/6/u+.5};return 0===u?n=o=0:(o=u/c,t=d(s),a=d(i),r=d(l),s===c?n=r-a:i===c?n=1/3+t-r:l===c&&(n=2/3+a-t),n<0?n+=1:n>1&&(n-=1)),[360*n,100*o,100*c]},s.rgb.hwb=function(e){var t=e[0],a=e[1],r=e[2];return[s.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(a,r))),100*(r=1-1/255*Math.max(t,Math.max(a,r)))]},s.rgb.cmyk=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255;return[100*((1-a-(t=Math.min(1-a,1-r,1-n)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*t]},s.rgb.keyword=function(e){var t=n[e];if(t)return t;var a,o,s,i=1/0;for(var l in r)if(r.hasOwnProperty(l)){var c=r[l],u=(o=e,s=c,Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)+Math.pow(o[2]-s[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*a+.0722*r),100*(.0193*t+.1192*a+.9505*r)]},s.rgb.lab=function(e){var t=s.rgb.xyz(e),a=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,a=(a/=95.047)>.008856?Math.pow(a,1/3):7.787*a+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(a-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},s.hsl.rgb=function(e){var t,a,r,n,o,s=e[0]/360,i=e[1]/100,l=e[2]/100;if(0===i)return[o=255*l,o,o];t=2*l-(a=l<.5?l*(1+i):l+i-l*i),n=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(a-t)*r:2*r<1?a:3*r<2?t+(a-t)*(2/3-r)*6:t,n[c]=255*o;return n},s.hsl.hsv=function(e){var t=e[0],a=e[1]/100,r=e[2]/100,n=a,o=Math.max(r,.01);return a*=(r*=2)<=1?r:2-r,n*=o<=1?o:2-o,[t,100*(0===r?2*n/(o+n):2*a/(r+a)),100*((r+a)/2)]},s.hsv.rgb=function(e){var t=e[0]/60,a=e[1]/100,r=e[2]/100,n=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-a),i=255*r*(1-a*o),l=255*r*(1-a*(1-o));switch(r*=255,n){case 0:return[r,l,s];case 1:return[i,r,s];case 2:return[s,r,l];case 3:return[s,i,r];case 4:return[l,s,r];case 5:return[r,s,i]}},s.hsv.hsl=function(e){var t,a,r,n=e[0],o=e[1]/100,s=e[2]/100,i=Math.max(s,.01);return r=(2-o)*s,a=o*i,[n,100*(a=(a/=(t=(2-o)*i)<=1?t:2-t)||0),100*(r/=2)]},s.hwb.rgb=function(e){var t,a,r,n,o,s,i,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),r=6*l-(t=Math.floor(6*l)),1&t&&(r=1-r),n=c+r*((a=1-u)-c),t){default:case 6:case 0:o=a,s=n,i=c;break;case 1:o=n,s=a,i=c;break;case 2:o=c,s=a,i=n;break;case 3:o=c,s=n,i=a;break;case 4:o=n,s=c,i=a;break;case 5:o=a,s=c,i=n}return[255*o,255*s,255*i]},s.cmyk.rgb=function(e){var t=e[0]/100,a=e[1]/100,r=e[2]/100,n=e[3]/100;return[255*(1-Math.min(1,t*(1-n)+n)),255*(1-Math.min(1,a*(1-n)+n)),255*(1-Math.min(1,r*(1-n)+n))]},s.xyz.rgb=function(e){var t,a,r,n=e[0]/100,o=e[1]/100,s=e[2]/100;return a=-.9689*n+1.8758*o+.0415*s,r=.0557*n+-.204*o+1.057*s,t=(t=3.2406*n+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(a=Math.min(Math.max(0,a),1)),255*(r=Math.min(Math.max(0,r),1))]},s.xyz.lab=function(e){var t=e[0],a=e[1],r=e[2];return a/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(t-a),200*(a-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},s.lab.xyz=function(e){var t,a,r,n=e[0];t=e[1]/500+(a=(n+16)/116),r=a-e[2]/200;var o=Math.pow(a,3),s=Math.pow(t,3),i=Math.pow(r,3);return a=o>.008856?o:(a-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,[t*=95.047,a*=100,r*=108.883]},s.lab.lch=function(e){var t,a=e[0],r=e[1],n=e[2];return(t=360*Math.atan2(n,r)/2/Math.PI)<0&&(t+=360),[a,Math.sqrt(r*r+n*n),t]},s.lch.lab=function(e){var t,a=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[a,r*Math.cos(t),r*Math.sin(t)]},s.rgb.ansi16=function(e){var t=e[0],a=e[1],r=e[2],n=1 in arguments?arguments[1]:s.rgb.hsv(e)[2];if(0===(n=Math.round(n/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(t/255));return 2===n&&(o+=60),o},s.hsv.ansi16=function(e){return s.rgb.ansi16(s.hsv.rgb(e),e[2])},s.rgb.ansi256=function(e){var t=e[0],a=e[1],r=e[2];return t===a&&a===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(r/255*5)},s.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var a=.5*(1+~~(e>50));return[(1&t)*a*255,(t>>1&1)*a*255,(t>>2&1)*a*255]},s.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var a;return e-=16,[Math.floor(e/36)/5*255,Math.floor((a=e%36)/6)/5*255,a%6/5*255]},s.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},s.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var a=t[0];3===t[0].length&&(a=a.split("").map((function(e){return e+e})).join(""));var r=parseInt(a,16);return[r>>16&255,r>>8&255,255&r]},s.rgb.hcg=function(e){var t,a=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(a,r),n),s=Math.min(Math.min(a,r),n),i=o-s;return t=i<=0?0:o===a?(r-n)/i%6:o===r?2+(n-a)/i:4+(a-r)/i+4,t/=6,[360*(t%=1),100*i,100*(i<1?s/(1-i):0)]},s.hsl.hcg=function(e){var t=e[1]/100,a=e[2]/100,r=1,n=0;return(r=a<.5?2*t*a:2*t*(1-a))<1&&(n=(a-.5*r)/(1-r)),[e[0],100*r,100*n]},s.hsv.hcg=function(e){var t=e[1]/100,a=e[2]/100,r=t*a,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.hcg.rgb=function(e){var t=e[0]/360,a=e[1]/100,r=e[2]/100;if(0===a)return[255*r,255*r,255*r];var n,o=[0,0,0],s=t%1*6,i=s%1,l=1-i;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return n=(1-a)*r,[255*(a*o[0]+n),255*(a*o[1]+n),255*(a*o[2]+n)]},s.hcg.hsv=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t),r=0;return a>0&&(r=t/a),[e[0],100*r,100*a]},s.hcg.hsl=function(e){var t=e[1]/100,a=e[2]/100*(1-t)+.5*t,r=0;return a>0&&a<.5?r=t/(2*a):a>=.5&&a<1&&(r=t/(2*(1-a))),[e[0],100*r,100*a]},s.hcg.hwb=function(e){var t=e[1]/100,a=t+e[2]/100*(1-t);return[e[0],100*(a-t),100*(1-a)]},s.hwb.hcg=function(e){var t=e[1]/100,a=1-e[2]/100,r=a-t,n=0;return r<1&&(n=(a-r)/(1-r)),[e[0],100*r,100*n]},s.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},s.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},s.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},s.gray.hsl=s.gray.hsv=function(e){return[0,0,e[0]]},s.gray.hwb=function(e){return[0,100,e[0]]},s.gray.cmyk=function(e){return[0,0,0,e[0]]},s.gray.lab=function(e){return[e[0],0,0]},s.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),a=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(a.length)+a},s.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},4732:(e,t,a)=>{var r=a(6481),n=a(1157),o={};Object.keys(r).forEach((function(e){o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});var t=n(e);Object.keys(t).forEach((function(a){var r=t[a];o[e][a]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var a=e(t);if("object"==typeof a)for(var r=a.length,n=0;n1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},1157:(e,t,a)=>{var r=a(6481);function n(e){var t=function(){for(var e={},t=Object.keys(r),a=t.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4877:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6138:(e,t,a)=>{var r=a(4877),n=a(301),o=Object.hasOwnProperty,s=Object.create(null);for(var i in r)o.call(r,i)&&(s[r[i]]=i);var l=e.exports={to:{},get:{}};function c(e,t,a){return Math.min(Math.max(t,e),a)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,a;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),a="hsl";break;case"hwb":t=l.get.hwb(e),a="hwb";break;default:t=l.get.rgb(e),a="rgb"}return t?{model:a,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,a,n,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],a=0;a<3;a++){var i=2*a;s[a]=parseInt(t.slice(i,i+2),16)}n&&(s[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],a=0;a<3;a++)s[a]=parseInt(t[a]+t[a],16);n&&(s[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(a=0;a<3;a++)s[a]=parseInt(t[a+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((s=r[t[1]])[3]=1,s):null:null;for(a=0;a<3;a++)s[a]=Math.round(2.55*parseFloat(t[a+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(a=0;a<3;a++)s[a]=c(s[a],0,255);return s[3]=c(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(a)?1:a,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var a=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(a)?1:a,0,1)]}return null},l.to.hex=function(){var e=n(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+a+"%, "+r+"%)":"rgba("+t+"%, "+a+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},3639:(e,t,a)=>{"use strict";var r=a(6138),n=a(4732),o=[].slice,s=["keyword","gray","hex"],i={};Object.keys(n).forEach((function(e){i[o.call(n[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in s&&(t=null),t&&!(t in n))throw new Error("Unknown model: "+t);var a,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var d=r.get(e);if(null===d)throw new Error("Unable to parse color from string: "+e);this.model=d.model,u=n[this.model].channels,this.color=d.value.slice(0,u),this.valpha="number"==typeof d.value[u]?d.value[u]:1}else if(e.length){this.model=t||"rgb",u=n[this.model].channels;var p=o.call(e,0,u);this.color=b(p,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var f=Object.keys(e);"alpha"in e&&(f.splice(f.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var h=f.sort().join("");if(!(h in i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[h];var m=n[this.model].labels,v=[];for(a=0;aa?(t+.05)/(a+.05):(a+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),a=t.color[0];return a=(a=(a+e)%360)<0?360+a:a,t.color[0]=a,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var a=e.rgb(),r=this.rgb(),n=void 0===t?.5:t,o=2*n-1,s=a.alpha()-r.alpha(),i=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,l=1-i;return c.rgb(i*a.red()+l*r.red(),i*a.green()+l*r.green(),i*a.blue()+l*r.blue(),a.alpha()*n+r.alpha()*(1-n))}},Object.keys(n).forEach((function(e){if(-1===s.indexOf(e)){var t=n[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var a,r="number"==typeof arguments[t]?t:this.valpha;return new c((a=n[this.model][e].raw(this.color),Array.isArray(a)?a:[a]).concat(r),e)},c[e]=function(a){return"number"==typeof a&&(a=b(o.call(arguments),t)),new c(a,e)}}})),e.exports=c},9784:e=>{"use strict";var t,a="object"==typeof Reflect?Reflect:null,r=a&&"function"==typeof a.apply?a.apply:function(e,t,a){return Function.prototype.apply.call(e,t,a)};t=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(a,r){function n(a){e.removeListener(t,o),r(a)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),a([].slice.call(arguments))}h(e,t,o,{once:!0}),"error"!==t&&function(e,t,a){"function"==typeof e.on&&h(e,"error",t,a)}(e,n,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function i(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,a,r){var n,o,s,c;if(i(a),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,a.listener?a.listener:a),o=e._events),s=o[t]),void 0===s)s=o[t]=a,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[a,s]:[s,a]:r?s.unshift(a):s.push(a),(n=l(e))>0&&s.length>n&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,a){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:a},n=u.bind(r);return n.listener=a,r.wrapFn=n,n}function b(e,t,a){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?a?[n.listener||n]:[n]:a?function(e){for(var t=new Array(e.length),a=0;a0&&(s=t[0]),s instanceof Error)throw s;var i=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw i.context=s,i}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=f(l,c);for(a=0;a=0;o--)if(a[o]===t||a[o].listener===t){s=a[o].listener,n=o;break}if(n<0)return this;0===n?a.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return b(this,e,!0)},o.prototype.rawListeners=function(e){return b(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},8336:e=>{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},3989:(e,t,a)=>{var r="__lodash_placeholder__",n=32,o=1/0,s=NaN,i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",n],["partialRight",64],["rearg",256]],l="[object Function]",c="[object GeneratorFunction]",u=/^\s+|\s+$/g,d=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,b=/\{\n\/\* \[wrapped with (.+)\] \*/,p=/,? & /,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,m=/^\[object .+?Constructor\]$/,v=/^0o[0-7]+$/i,g=/^(?:0|[1-9]\d*)$/,y=parseInt,k="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,E="object"==typeof self&&self&&self.Object===Object&&self,j=k||E||Function("return this")();function w(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function x(e,t){return!!(e?e.length:0)&&function(e,t,a){if(t!=t)return function(e,t,a,r){var n=e.length,o=a+(r?1:-1);for(;r?o--:++o-1}function C(e){return e!=e}function O(e,t){for(var a=-1,n=e.length,o=0,s=[];++a2?S:void 0);function T(e){if(!te(e)||function(e){return!!D&&D in e}(e))return!1;var t=function(e){var t=te(e)?z.call(e):"";return t==l||t==c}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?B:m;return t.test(function(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function K(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var a,r=te(a=e.prototype)?L(a):{},n=e.apply(r,t);return te(n)?n:r}}function W(e,t,a,r,n,o,s,i,l,c){var u=128&t,d=1&t,b=2&t,p=24&t,f=512&t,h=b?void 0:K(e);return function m(){for(var v=arguments.length,g=Array(v),y=v;y--;)g[y]=arguments[y];if(p)var k=$(m),E=function(e,t){for(var a=e.length,r=0;a--;)e[a]===t&&r++;return r}(g,k);if(r&&(g=function(e,t,a,r){for(var n=-1,o=e.length,s=a.length,i=-1,l=t.length,c=q(o-s,0),u=Array(l+c),d=!r;++i1&&g.reverse(),u&&l1?"& ":"")+t[r],t=t.join(a>2?", ":" "),e.replace(d,"{\n/* [wrapped with "+t+"] */\n")}function Q(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||g.test(e))&&e>-1&&e%1==0&&e{"use strict";var r=a(8336),n=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],a=0,s=e.length;a{"use strict";t.exports=e}},a={};function r(e){var n=a[e];if(void 0!==n)return n.exports;var o=a[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var a=function(t,a){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,a||"default");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)}(t,"string");return"symbol"==e(a)?a:a+""}function a(e,a,r){return(a=t(a))in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function s(e){for(var t=1;tvt});var m=r(4119),v=r.n(m);function g(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function y(e){this.setState(function(t){var a=this.constructor.getDerivedStateFromProps(e,t);return null!=a?a:null}.bind(this))}function k(e,t){try{var a=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function E(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var a=null,r=null,n=null;if("function"==typeof t.componentWillMount?a="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(a="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?n="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(n="UNSAFE_componentWillUpdate"),null!==a||null!==r||null!==n){var o=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+o+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==a?"\n "+a:"")+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=g,t.componentWillReceiveProps=y),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=k;var i=t.componentDidUpdate;t.componentDidUpdate=function(e,t,a){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:a;i.call(this,e,t,r)}}return e}function j(e,t){if(null==e)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;a[r]=e[r]}return a}function w(e,t){if(null==e)return{};var a,r,n=j(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var a=0,r=Array(t);a1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o2?r-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.defaultBase16,n=void 0===r?q:r,o=t.base16Themes,s=J(a,void 0===o?null:o);s&&(a=L(L({},s),a));for(var i=N.reduce((function(e,t){return e[t]=a[t]||n[t],e}),{}),l=Object.keys(a).reduce((function(e,t){return-1===N.indexOf(t)?(e[t]=a[t],e):e}),{}),c=e(i),u=K(l,c),d=arguments.length,b=new Array(d>3?d-3:0),p=3;p=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,i=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){i=!0,o=e},f:function(){try{s||null==a.return||a.return()}finally{if(i)throw o}}}}(n);try{for(d.s();!(i=d.n()).done;){u=u[i.value]}}catch(e){d.e(e)}finally{d.f()}return s?"array"==x(u)?u.splice(r,1):delete u[r]:null!==r?u[r]=o:c=o,e.set(t,"global","src",c),c},e.deepCopy=function(t,a){var r,n=x(t),o=a.shift();return"array"==n?r=te(t):"object"==n&&(r=s({},t)),void 0!==o&&(r[o]=e.deepCopy(t[o],a)),r},e}return h(t,e),c(t)}(ae.EventEmitter));ne.register(oe.handleAction.bind(oe));const se=oe;var ie=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){se.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.getFunctionDisplay=function(e){var t=a.props;return e?v().createElement("span",null,a.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),v().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},v().createElement("span",null,"{"),v().createElement("span",G(t.theme,"ellipsis"),"..."),v().createElement("span",null,"}"))):a.props.value.toString().slice(9,-1)},a.state={collapsed:se.get(e.rjvId,e.namespace,"collapsed",!0)},a}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return v().createElement("div",G(e.theme,"function"),v().createElement(Q,Object.assign({type_name:"function"},e)),v().createElement("span",Object.assign({},G(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}])}(v().PureComponent),le=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"nan"),"NaN")}}])}(v().PureComponent),ce=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"null"),"NULL")}}])}(v().PureComponent),ue=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"integer"),v().createElement(Q,Object.assign({type_name:"int"},e)),this.props.value)}}])}(v().PureComponent),de=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){var e=this.props;return v().createElement("div",G(e.theme,"regexp"),v().createElement(Q,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}])}(v().PureComponent),be=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({collapsed:!a.state.collapsed},(function(){se.set(a.props.rjvId,a.props.namespace,"collapsed",a.state.collapsed)}))},a.state={collapsed:se.get(e.rjvId,e.namespace,"collapsed",!0)},a}return h(t,e),c(t,[{key:"render",value:function(){var e=this.state.collapsed,t=this.props,a=t.collapseStringsAfterLength,r=t.theme,n=t.escapeStrings,o=t.value,s="integer"===x(a),i={style:{cursor:"default"}};return n&&(o=C(o)),s&&o.length>a&&(i.style.cursor="pointer",e&&(o=v().createElement("span",null,o.substring(0,a),v().createElement("span",G(r,"ellipsis")," ...")))),v().createElement("div",G(r,"string"),v().createElement(Q,Object.assign({type_name:"string"},t)),v().createElement("span",Object.assign({className:"string-value"},i,{onClick:this.toggleCollapsed}),'"',o,'"'))}}])}(v().PureComponent),pe=function(e){function t(){return i(this,t),p(this,t,arguments)}return h(t,e),c(t,[{key:"render",value:function(){return v().createElement("div",G(this.props.theme,"undefined"),"undefined")}}])}(v().PureComponent);function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?o:null,namespace:n.splice(0,n.length-1),existing_value:i,variable_removed:!1,key_name:null};"object"===x(i)?ne.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:l,data:e}):ne.dispatch({name:"VARIABLE_ADDED",rjvId:l,data:s(s({},e),{},{new_value:[].concat(te(i),[null])})})}})))},e.getRemoveObject=function(t){var a=e.props,r=a.theme,n=(a.hover,a.namespace),o=a.name,s=a.src,i=a.rjvId;if(1!==n.length)return v().createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},v().createElement(Je,Object.assign({className:"click-to-remove-icon"},G(r,"removeVarIcon"),{onClick:function(){ne.dispatch({name:"VARIABLE_REMOVED",rjvId:i,data:{name:o,namespace:n.splice(0,n.length-1),existing_value:s,variable_removed:!0}})}})))},e.render=function(){var t=e.props,a=t.theme,r=t.onDelete,n=t.onAdd,o=t.enableClipboard,s=t.src,i=t.namespace,l=t.rowHovered;return v().createElement("div",Object.assign({},G(a,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),o?v().createElement(et,{rowHovered:l,clickCallback:o,src:s,theme:a,namespace:i}):null,!1!==n?e.getAddAttribute(l):null,!1!==r?e.getRemoveObject(l):null)},e}return h(t,e),c(t)}(v().PureComponent);function rt(e){var t=e.parent_type,a=e.namespace,r=e.quotesOnKeys,n=e.theme,o=e.jsvRoot,s=e.name,i=e.displayArrayKey,l=e.name?e.name:"";return!o||!1!==s&&null!==s?"array"==t?i?v().createElement("span",Object.assign({},G(n,"array-key"),{key:a}),v().createElement("span",{className:"array-key"},l),v().createElement("span",G(n,"colon"),":")):v().createElement("span",null):v().createElement("span",Object.assign({},G(n,"object-name"),{key:a}),v().createElement("span",{className:"object-key"},r&&v().createElement("span",{style:{verticalAlign:"top"}},'"'),v().createElement("span",null,l),r&&v().createElement("span",{style:{verticalAlign:"top"}},'"')),v().createElement("span",G(n,"colon"),":")):v().createElement("span",null)}function nt(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(He,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return v().createElement(Ke,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}));default:return v().createElement(Ve,Object.assign({},G(t,"expanded-icon"),{className:"expanded-icon"}))}}function ot(e){var t=e.theme;switch(e.iconStyle){case"triangle":return v().createElement(Ue,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return v().createElement(We,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return v().createElement(Te,Object.assign({},G(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var st=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],it=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var r in a.state.expanded)t.push(a.state.expanded[r]);t[e]=!t[e],a.setState({expanded:t})},a.state={expanded:[]},a}return h(t,e),c(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,a=t.theme,r=t.iconStyle;return this.state.expanded[e]?v().createElement(nt,{theme:a,iconStyle:r}):v().createElement(ot,{theme:a,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,a=t.src,r=t.groupArraysAfterLength,n=(t.depth,t.name),o=t.theme,s=t.jsvRoot,i=t.namespace,l=(t.parent_type,w(t,st)),c=0,u=5*this.props.indentWidth;s||(c=5*this.props.indentWidth);var d=r,b=Math.ceil(a.length/d);return v().createElement("div",Object.assign({className:"object-key-val"},G(o,s?"jsv-root":"objectKeyVal",{paddingLeft:c})),v().createElement(rt,this.props),v().createElement("span",null,v().createElement(at,Object.assign({size:a.length},this.props))),te(Array(b)).map((function(t,r){return v().createElement("div",Object.assign({key:r,className:"object-key-val array-group"},G(o,"objectKeyVal",{marginLeft:6,paddingLeft:u})),v().createElement("span",G(o,"brace-row"),v().createElement("div",Object.assign({className:"icon-container"},G(o,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?v().createElement(dt,Object.assign({key:n+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:a.slice(r*d,r*d+d),namespace:i,type:"array",parent_type:"array_group",theme:o},l)):v().createElement("span",Object.assign({},G(o,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",v().createElement("div",Object.assign({},G(o,"array-group-meta-data"),{className:"array-group-meta-data"}),v().createElement("span",Object.assign({className:"object-size"},G(o,"object-size")),r*d," - ",r*d+d>a.length?a.length:r*d+d)),"]")))})))}}])}(v().PureComponent),lt=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],ct=function(e){function t(e){var a;i(this,t),(a=p(this,t,[e])).toggleCollapsed=function(){a.setState({expanded:!a.state.expanded},(function(){se.set(a.props.rjvId,a.props.namespace,"expanded",a.state.expanded)}))},a.getObjectContent=function(e,t,r){return v().createElement("div",{className:"pushed-content object-container"},v().createElement("div",Object.assign({className:"object-content"},G(a.props.theme,"pushed-content")),a.renderObjectContents(t,r)))},a.getEllipsis=function(){return 0===a.state.size?null:v().createElement("div",Object.assign({},G(a.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:a.toggleCollapsed}),"...")},a.getObjectMetaData=function(e){var t=a.props,r=(t.rjvId,t.theme,a.state),n=r.size,o=r.hovered;return v().createElement(at,Object.assign({rowHovered:o,size:n},a.props))},a.renderObjectContents=function(e,t){var r,n=a.props,o=n.depth,s=n.parent_type,i=n.index_offset,l=n.groupArraysAfterLength,c=n.namespace,u=a.state.object_type,d=[],b=Object.keys(e||{});return a.props.sortKeys&&"array"!==u&&(b=b.sort()),b.forEach((function(n){if(r=new ut(n,e[n]),"array_group"===s&&i&&(r.name=parseInt(r.name)+i),e.hasOwnProperty(n))if("object"===r.type)d.push(v().createElement(dt,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:c.concat(r.name),parent_type:u},t)));else if("array"===r.type){var b=dt;l&&r.value.length>l&&(b=it),d.push(v().createElement(b,Object.assign({key:r.name,depth:o+1,name:r.name,src:r.value,namespace:c.concat(r.name),type:"array",parent_type:u},t)))}else d.push(v().createElement(tt,Object.assign({key:r.name+"_"+c,variable:r,singleIndent:5,namespace:c,type:a.props.type},t)));else;})),d};var r=t.getState(e);return a.state=s(s({},r),{},{prevProps:{}}),a}return h(t,e),c(t,[{key:"getBraceStart",value:function(e,t){var a=this,r=this.props,n=r.src,o=r.theme,s=r.iconStyle;if("array_group"===r.parent_type)return v().createElement("span",null,v().createElement("span",G(o,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(n):null);var i=t?nt:ot;return v().createElement("span",null,v().createElement("span",Object.assign({onClick:function(e){a.toggleCollapsed()}},G(o,"brace-row")),v().createElement("div",Object.assign({className:"icon-container"},G(o,"icon-container")),v().createElement(i,{theme:o,iconStyle:s})),v().createElement(rt,this.props),v().createElement("span",G(o,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(n):null)}},{key:"render",value:function(){var e=this,t=this.props,a=t.depth,r=t.src,n=(t.namespace,t.name,t.type,t.parent_type),o=t.theme,i=t.jsvRoot,l=t.iconStyle,c=w(t,lt),u=this.state,d=u.object_type,b=u.expanded,p={};return i||"array_group"===n?"array_group"===n&&(p.borderLeft=0,p.display="inline"):p.paddingLeft=5*this.props.indentWidth,v().createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(s(s({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(s(s({},e.state),{},{hovered:!1}))}},G(o,i?"jsv-root":"objectKeyVal",p)),this.getBraceStart(d,b),b?this.getObjectContent(a,r,s({theme:o,iconStyle:l},c)):this.getEllipsis(),v().createElement("span",{className:"brace-row"},v().createElement("span",{style:s(s({},G(o,"brace").style),{},{paddingLeft:b?"3px":"0px"})},"array"===d?"]":"}"),b?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,a){var r=a.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?s(s({},t.getState(e)),{},{prevProps:e}):null}}])}(v().PureComponent);ct.getState=function(e){var t=Object.keys(e.src).length,a=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:x(e.src),namespace:e.namespace}))&&0!==t;return{expanded:se.get(e.rjvId,e.namespace,"expanded",a),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var ut=c((function e(t,a){i(this,e),this.name=t,this.value=a,this.type=x(a)}));E(ct);const dt=ct;var bt=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;no.groupArraysAfterLength&&(i=it),v().createElement("div",{className:"pretty-json-container object-container"},v().createElement("div",{className:"object-content"},v().createElement(i,Object.assign({namespace:s,depth:0,jsvRoot:!0},o))))},e}return h(t,e),c(t)}(v().PureComponent),pt=function(e){function t(e){var a;return i(this,t),(a=p(this,t,[e])).closeModal=function(){ne.dispatch({rjvId:a.props.rjvId,name:"RESET"})},a.submit=function(){a.props.submit(a.state.input)},a.state={input:e.input?e.input:""},a}return h(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.theme,r=t.rjvId,n=t.isValid,o=this.state.input,s=n(o);return v().createElement("div",Object.assign({className:"key-modal-request"},G(a,"key-modal-request"),{onClick:this.closeModal}),v().createElement("div",Object.assign({},G(a,"key-modal"),{onClick:function(e){e.stopPropagation()}}),v().createElement("div",G(a,"key-modal-label"),"Key Name:"),v().createElement("div",{style:{position:"relative"}},v().createElement("input",Object.assign({},G(a,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:o,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){s&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),s?v().createElement(Ze,Object.assign({},G(a,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),v().createElement("span",G(a,"key-modal-cancel"),v().createElement(Ge,Object.assign({},G(a,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ne.dispatch({rjvId:r,name:"RESET"})}})))))}}])}(v().PureComponent),ft=function(e){function t(){var e;i(this,t);for(var a=arguments.length,r=new Array(a),n=0;n { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ isFirefox: () => (/* binding */ isFirefox), +/* harmony export */ isSafari: () => (/* binding */ isSafari) +/* harmony export */ }); +/* harmony import */ var _utils_js_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils/js_utils.js */ "./node_modules/react-dnd-html5-backend/dist/utils/js_utils.js"); + +const isFirefox = (0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_0__.memoize)(()=>/firefox/i.test(navigator.userAgent) +); +const isSafari = (0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_0__.memoize)(()=>Boolean(window.safari) +); + +//# sourceMappingURL=BrowserDetector.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js": +/*!************************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js ***! + \************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ EnterLeaveCounter: () => (/* binding */ EnterLeaveCounter) +/* harmony export */ }); +/* harmony import */ var _utils_js_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils/js_utils.js */ "./node_modules/react-dnd-html5-backend/dist/utils/js_utils.js"); + +class EnterLeaveCounter { + enter(enteringNode) { + const previousLength = this.entered.length; + const isNodeEntered = (node)=>this.isNodeInDocument(node) && (!node.contains || node.contains(enteringNode)) + ; + this.entered = (0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_0__.union)(this.entered.filter(isNodeEntered), [ + enteringNode + ]); + return previousLength === 0 && this.entered.length > 0; + } + leave(leavingNode) { + const previousLength = this.entered.length; + this.entered = (0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_0__.without)(this.entered.filter(this.isNodeInDocument), leavingNode); + return previousLength > 0 && this.entered.length === 0; + } + reset() { + this.entered = []; + } + constructor(isNodeInDocument){ + this.entered = []; + this.isNodeInDocument = isNodeInDocument; + } +} + +//# sourceMappingURL=EnterLeaveCounter.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js": +/*!***********************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js ***! + \***********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ HTML5BackendImpl: () => (/* binding */ HTML5BackendImpl) +/* harmony export */ }); +/* harmony import */ var _EnterLeaveCounter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EnterLeaveCounter.js */ "./node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js"); +/* harmony import */ var _NativeDragSources_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NativeDragSources/index.js */ "./node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js"); +/* harmony import */ var _NativeTypes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NativeTypes.js */ "./node_modules/react-dnd-html5-backend/dist/NativeTypes.js"); +/* harmony import */ var _OffsetUtils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./OffsetUtils.js */ "./node_modules/react-dnd-html5-backend/dist/OffsetUtils.js"); +/* harmony import */ var _OptionsReader_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OptionsReader.js */ "./node_modules/react-dnd-html5-backend/dist/OptionsReader.js"); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; +} +function _objectSpread(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + ownKeys.forEach(function(key) { + _defineProperty(target, key, source[key]); + }); + } + return target; +} + + + + + +class HTML5BackendImpl { + /** + * Generate profiling statistics for the HTML5Backend. + */ profile() { + var ref, ref1; + return { + sourcePreviewNodes: this.sourcePreviewNodes.size, + sourcePreviewNodeOptions: this.sourcePreviewNodeOptions.size, + sourceNodeOptions: this.sourceNodeOptions.size, + sourceNodes: this.sourceNodes.size, + dragStartSourceIds: ((ref = this.dragStartSourceIds) === null || ref === void 0 ? void 0 : ref.length) || 0, + dropTargetIds: this.dropTargetIds.length, + dragEnterTargetIds: this.dragEnterTargetIds.length, + dragOverTargetIds: ((ref1 = this.dragOverTargetIds) === null || ref1 === void 0 ? void 0 : ref1.length) || 0 + }; + } + // public for test + get window() { + return this.options.window; + } + get document() { + return this.options.document; + } + /** + * Get the root element to use for event subscriptions + */ get rootElement() { + return this.options.rootElement; + } + setup() { + const root = this.rootElement; + if (root === undefined) { + return; + } + if (root.__isReactDndBackendSetUp) { + throw new Error('Cannot have two HTML5 backends at the same time.'); + } + root.__isReactDndBackendSetUp = true; + this.addEventListeners(root); + } + teardown() { + const root = this.rootElement; + if (root === undefined) { + return; + } + root.__isReactDndBackendSetUp = false; + this.removeEventListeners(this.rootElement); + this.clearCurrentDragSourceNode(); + if (this.asyncEndDragFrameId) { + var ref; + (ref = this.window) === null || ref === void 0 ? void 0 : ref.cancelAnimationFrame(this.asyncEndDragFrameId); + } + } + connectDragPreview(sourceId, node, options) { + this.sourcePreviewNodeOptions.set(sourceId, options); + this.sourcePreviewNodes.set(sourceId, node); + return ()=>{ + this.sourcePreviewNodes.delete(sourceId); + this.sourcePreviewNodeOptions.delete(sourceId); + }; + } + connectDragSource(sourceId, node, options) { + this.sourceNodes.set(sourceId, node); + this.sourceNodeOptions.set(sourceId, options); + const handleDragStart = (e)=>this.handleDragStart(e, sourceId) + ; + const handleSelectStart = (e)=>this.handleSelectStart(e) + ; + node.setAttribute('draggable', 'true'); + node.addEventListener('dragstart', handleDragStart); + node.addEventListener('selectstart', handleSelectStart); + return ()=>{ + this.sourceNodes.delete(sourceId); + this.sourceNodeOptions.delete(sourceId); + node.removeEventListener('dragstart', handleDragStart); + node.removeEventListener('selectstart', handleSelectStart); + node.setAttribute('draggable', 'false'); + }; + } + connectDropTarget(targetId, node) { + const handleDragEnter = (e)=>this.handleDragEnter(e, targetId) + ; + const handleDragOver = (e)=>this.handleDragOver(e, targetId) + ; + const handleDrop = (e)=>this.handleDrop(e, targetId) + ; + node.addEventListener('dragenter', handleDragEnter); + node.addEventListener('dragover', handleDragOver); + node.addEventListener('drop', handleDrop); + return ()=>{ + node.removeEventListener('dragenter', handleDragEnter); + node.removeEventListener('dragover', handleDragOver); + node.removeEventListener('drop', handleDrop); + }; + } + addEventListeners(target) { + // SSR Fix (/~https://github.com/react-dnd/react-dnd/pull/813 + if (!target.addEventListener) { + return; + } + target.addEventListener('dragstart', this.handleTopDragStart); + target.addEventListener('dragstart', this.handleTopDragStartCapture, true); + target.addEventListener('dragend', this.handleTopDragEndCapture, true); + target.addEventListener('dragenter', this.handleTopDragEnter); + target.addEventListener('dragenter', this.handleTopDragEnterCapture, true); + target.addEventListener('dragleave', this.handleTopDragLeaveCapture, true); + target.addEventListener('dragover', this.handleTopDragOver); + target.addEventListener('dragover', this.handleTopDragOverCapture, true); + target.addEventListener('drop', this.handleTopDrop); + target.addEventListener('drop', this.handleTopDropCapture, true); + } + removeEventListeners(target) { + // SSR Fix (/~https://github.com/react-dnd/react-dnd/pull/813 + if (!target.removeEventListener) { + return; + } + target.removeEventListener('dragstart', this.handleTopDragStart); + target.removeEventListener('dragstart', this.handleTopDragStartCapture, true); + target.removeEventListener('dragend', this.handleTopDragEndCapture, true); + target.removeEventListener('dragenter', this.handleTopDragEnter); + target.removeEventListener('dragenter', this.handleTopDragEnterCapture, true); + target.removeEventListener('dragleave', this.handleTopDragLeaveCapture, true); + target.removeEventListener('dragover', this.handleTopDragOver); + target.removeEventListener('dragover', this.handleTopDragOverCapture, true); + target.removeEventListener('drop', this.handleTopDrop); + target.removeEventListener('drop', this.handleTopDropCapture, true); + } + getCurrentSourceNodeOptions() { + const sourceId = this.monitor.getSourceId(); + const sourceNodeOptions = this.sourceNodeOptions.get(sourceId); + return _objectSpread({ + dropEffect: this.altKeyPressed ? 'copy' : 'move' + }, sourceNodeOptions || {}); + } + getCurrentDropEffect() { + if (this.isDraggingNativeItem()) { + // It makes more sense to default to 'copy' for native resources + return 'copy'; + } + return this.getCurrentSourceNodeOptions().dropEffect; + } + getCurrentSourcePreviewNodeOptions() { + const sourceId = this.monitor.getSourceId(); + const sourcePreviewNodeOptions = this.sourcePreviewNodeOptions.get(sourceId); + return _objectSpread({ + anchorX: 0.5, + anchorY: 0.5, + captureDraggingState: false + }, sourcePreviewNodeOptions || {}); + } + isDraggingNativeItem() { + const itemType = this.monitor.getItemType(); + return Object.keys(_NativeTypes_js__WEBPACK_IMPORTED_MODULE_0__).some((key)=>_NativeTypes_js__WEBPACK_IMPORTED_MODULE_0__[key] === itemType + ); + } + beginDragNativeItem(type, dataTransfer) { + this.clearCurrentDragSourceNode(); + this.currentNativeSource = (0,_NativeDragSources_index_js__WEBPACK_IMPORTED_MODULE_1__.createNativeDragSource)(type, dataTransfer); + this.currentNativeHandle = this.registry.addSource(type, this.currentNativeSource); + this.actions.beginDrag([ + this.currentNativeHandle + ]); + } + setCurrentDragSourceNode(node) { + this.clearCurrentDragSourceNode(); + this.currentDragSourceNode = node; + // A timeout of > 0 is necessary to resolve Firefox issue referenced + // See: + // * /~https://github.com/react-dnd/react-dnd/pull/928 + // * /~https://github.com/react-dnd/react-dnd/issues/869 + const MOUSE_MOVE_TIMEOUT = 1000; + // Receiving a mouse event in the middle of a dragging operation + // means it has ended and the drag source node disappeared from DOM, + // so the browser didn't dispatch the dragend event. + // + // We need to wait before we start listening for mousemove events. + // This is needed because the drag preview needs to be drawn or else it fires an 'mousemove' event + // immediately in some browsers. + // + // See: + // * /~https://github.com/react-dnd/react-dnd/pull/928 + // * /~https://github.com/react-dnd/react-dnd/issues/869 + // + this.mouseMoveTimeoutTimer = setTimeout(()=>{ + var ref; + return (ref = this.rootElement) === null || ref === void 0 ? void 0 : ref.addEventListener('mousemove', this.endDragIfSourceWasRemovedFromDOM, true); + }, MOUSE_MOVE_TIMEOUT); + } + clearCurrentDragSourceNode() { + if (this.currentDragSourceNode) { + this.currentDragSourceNode = null; + if (this.rootElement) { + var ref; + (ref = this.window) === null || ref === void 0 ? void 0 : ref.clearTimeout(this.mouseMoveTimeoutTimer || undefined); + this.rootElement.removeEventListener('mousemove', this.endDragIfSourceWasRemovedFromDOM, true); + } + this.mouseMoveTimeoutTimer = null; + return true; + } + return false; + } + handleDragStart(e, sourceId) { + if (e.defaultPrevented) { + return; + } + if (!this.dragStartSourceIds) { + this.dragStartSourceIds = []; + } + this.dragStartSourceIds.unshift(sourceId); + } + handleDragEnter(_e, targetId) { + this.dragEnterTargetIds.unshift(targetId); + } + handleDragOver(_e, targetId) { + if (this.dragOverTargetIds === null) { + this.dragOverTargetIds = []; + } + this.dragOverTargetIds.unshift(targetId); + } + handleDrop(_e, targetId) { + this.dropTargetIds.unshift(targetId); + } + constructor(manager, globalContext, options){ + this.sourcePreviewNodes = new Map(); + this.sourcePreviewNodeOptions = new Map(); + this.sourceNodes = new Map(); + this.sourceNodeOptions = new Map(); + this.dragStartSourceIds = null; + this.dropTargetIds = []; + this.dragEnterTargetIds = []; + this.currentNativeSource = null; + this.currentNativeHandle = null; + this.currentDragSourceNode = null; + this.altKeyPressed = false; + this.mouseMoveTimeoutTimer = null; + this.asyncEndDragFrameId = null; + this.dragOverTargetIds = null; + this.lastClientOffset = null; + this.hoverRafId = null; + this.getSourceClientOffset = (sourceId)=>{ + const source = this.sourceNodes.get(sourceId); + return source && (0,_OffsetUtils_js__WEBPACK_IMPORTED_MODULE_2__.getNodeClientOffset)(source) || null; + }; + this.endDragNativeItem = ()=>{ + if (!this.isDraggingNativeItem()) { + return; + } + this.actions.endDrag(); + if (this.currentNativeHandle) { + this.registry.removeSource(this.currentNativeHandle); + } + this.currentNativeHandle = null; + this.currentNativeSource = null; + }; + this.isNodeInDocument = (node)=>{ + // Check the node either in the main document or in the current context + return Boolean(node && this.document && this.document.body && this.document.body.contains(node)); + }; + this.endDragIfSourceWasRemovedFromDOM = ()=>{ + const node = this.currentDragSourceNode; + if (node == null || this.isNodeInDocument(node)) { + return; + } + if (this.clearCurrentDragSourceNode() && this.monitor.isDragging()) { + this.actions.endDrag(); + } + this.cancelHover(); + }; + this.scheduleHover = (dragOverTargetIds)=>{ + if (this.hoverRafId === null && typeof requestAnimationFrame !== 'undefined') { + this.hoverRafId = requestAnimationFrame(()=>{ + if (this.monitor.isDragging()) { + this.actions.hover(dragOverTargetIds || [], { + clientOffset: this.lastClientOffset + }); + } + this.hoverRafId = null; + }); + } + }; + this.cancelHover = ()=>{ + if (this.hoverRafId !== null && typeof cancelAnimationFrame !== 'undefined') { + cancelAnimationFrame(this.hoverRafId); + this.hoverRafId = null; + } + }; + this.handleTopDragStartCapture = ()=>{ + this.clearCurrentDragSourceNode(); + this.dragStartSourceIds = []; + }; + this.handleTopDragStart = (e)=>{ + if (e.defaultPrevented) { + return; + } + const { dragStartSourceIds } = this; + this.dragStartSourceIds = null; + const clientOffset = (0,_OffsetUtils_js__WEBPACK_IMPORTED_MODULE_2__.getEventClientOffset)(e); + // Avoid crashing if we missed a drop event or our previous drag died + if (this.monitor.isDragging()) { + this.actions.endDrag(); + this.cancelHover(); + } + // Don't publish the source just yet (see why below) + this.actions.beginDrag(dragStartSourceIds || [], { + publishSource: false, + getSourceClientOffset: this.getSourceClientOffset, + clientOffset + }); + const { dataTransfer } = e; + const nativeType = (0,_NativeDragSources_index_js__WEBPACK_IMPORTED_MODULE_1__.matchNativeItemType)(dataTransfer); + if (this.monitor.isDragging()) { + if (dataTransfer && typeof dataTransfer.setDragImage === 'function') { + // Use custom drag image if user specifies it. + // If child drag source refuses drag but parent agrees, + // use parent's node as drag image. Neither works in IE though. + const sourceId = this.monitor.getSourceId(); + const sourceNode = this.sourceNodes.get(sourceId); + const dragPreview = this.sourcePreviewNodes.get(sourceId) || sourceNode; + if (dragPreview) { + const { anchorX , anchorY , offsetX , offsetY } = this.getCurrentSourcePreviewNodeOptions(); + const anchorPoint = { + anchorX, + anchorY + }; + const offsetPoint = { + offsetX, + offsetY + }; + const dragPreviewOffset = (0,_OffsetUtils_js__WEBPACK_IMPORTED_MODULE_2__.getDragPreviewOffset)(sourceNode, dragPreview, clientOffset, anchorPoint, offsetPoint); + dataTransfer.setDragImage(dragPreview, dragPreviewOffset.x, dragPreviewOffset.y); + } + } + try { + // Firefox won't drag without setting data + dataTransfer === null || dataTransfer === void 0 ? void 0 : dataTransfer.setData('application/json', {}); + } catch (err) { + // IE doesn't support MIME types in setData + } + // Store drag source node so we can check whether + // it is removed from DOM and trigger endDrag manually. + this.setCurrentDragSourceNode(e.target); + // Now we are ready to publish the drag source.. or are we not? + const { captureDraggingState } = this.getCurrentSourcePreviewNodeOptions(); + if (!captureDraggingState) { + // Usually we want to publish it in the next tick so that browser + // is able to screenshot the current (not yet dragging) state. + // + // It also neatly avoids a situation where render() returns null + // in the same tick for the source element, and browser freaks out. + setTimeout(()=>this.actions.publishDragSource() + , 0); + } else { + // In some cases the user may want to override this behavior, e.g. + // to work around IE not supporting custom drag previews. + // + // When using a custom drag layer, the only way to prevent + // the default drag preview from drawing in IE is to screenshot + // the dragging state in which the node itself has zero opacity + // and height. In this case, though, returning null from render() + // will abruptly end the dragging, which is not obvious. + // + // This is the reason such behavior is strictly opt-in. + this.actions.publishDragSource(); + } + } else if (nativeType) { + // A native item (such as URL) dragged from inside the document + this.beginDragNativeItem(nativeType); + } else if (dataTransfer && !dataTransfer.types && (e.target && !e.target.hasAttribute || !e.target.hasAttribute('draggable'))) { + // Looks like a Safari bug: dataTransfer.types is null, but there was no draggable. + // Just let it drag. It's a native type (URL or text) and will be picked up in + // dragenter handler. + return; + } else { + // If by this time no drag source reacted, tell browser not to drag. + e.preventDefault(); + } + }; + this.handleTopDragEndCapture = ()=>{ + if (this.clearCurrentDragSourceNode() && this.monitor.isDragging()) { + // Firefox can dispatch this event in an infinite loop + // if dragend handler does something like showing an alert. + // Only proceed if we have not handled it already. + this.actions.endDrag(); + } + this.cancelHover(); + }; + this.handleTopDragEnterCapture = (e)=>{ + this.dragEnterTargetIds = []; + if (this.isDraggingNativeItem()) { + var ref; + (ref = this.currentNativeSource) === null || ref === void 0 ? void 0 : ref.loadDataTransfer(e.dataTransfer); + } + const isFirstEnter = this.enterLeaveCounter.enter(e.target); + if (!isFirstEnter || this.monitor.isDragging()) { + return; + } + const { dataTransfer } = e; + const nativeType = (0,_NativeDragSources_index_js__WEBPACK_IMPORTED_MODULE_1__.matchNativeItemType)(dataTransfer); + if (nativeType) { + // A native item (such as file or URL) dragged from outside the document + this.beginDragNativeItem(nativeType, dataTransfer); + } + }; + this.handleTopDragEnter = (e)=>{ + const { dragEnterTargetIds } = this; + this.dragEnterTargetIds = []; + if (!this.monitor.isDragging()) { + // This is probably a native item type we don't understand. + return; + } + this.altKeyPressed = e.altKey; + // If the target changes position as the result of `dragenter`, `dragover` might still + // get dispatched despite target being no longer there. The easy solution is to check + // whether there actually is a target before firing `hover`. + if (dragEnterTargetIds.length > 0) { + this.actions.hover(dragEnterTargetIds, { + clientOffset: (0,_OffsetUtils_js__WEBPACK_IMPORTED_MODULE_2__.getEventClientOffset)(e) + }); + } + const canDrop = dragEnterTargetIds.some((targetId)=>this.monitor.canDropOnTarget(targetId) + ); + if (canDrop) { + // IE requires this to fire dragover events + e.preventDefault(); + if (e.dataTransfer) { + e.dataTransfer.dropEffect = this.getCurrentDropEffect(); + } + } + }; + this.handleTopDragOverCapture = (e)=>{ + this.dragOverTargetIds = []; + if (this.isDraggingNativeItem()) { + var ref; + (ref = this.currentNativeSource) === null || ref === void 0 ? void 0 : ref.loadDataTransfer(e.dataTransfer); + } + }; + this.handleTopDragOver = (e)=>{ + const { dragOverTargetIds } = this; + this.dragOverTargetIds = []; + if (!this.monitor.isDragging()) { + // This is probably a native item type we don't understand. + // Prevent default "drop and blow away the whole document" action. + e.preventDefault(); + if (e.dataTransfer) { + e.dataTransfer.dropEffect = 'none'; + } + return; + } + this.altKeyPressed = e.altKey; + this.lastClientOffset = (0,_OffsetUtils_js__WEBPACK_IMPORTED_MODULE_2__.getEventClientOffset)(e); + this.scheduleHover(dragOverTargetIds); + const canDrop = (dragOverTargetIds || []).some((targetId)=>this.monitor.canDropOnTarget(targetId) + ); + if (canDrop) { + // Show user-specified drop effect. + e.preventDefault(); + if (e.dataTransfer) { + e.dataTransfer.dropEffect = this.getCurrentDropEffect(); + } + } else if (this.isDraggingNativeItem()) { + // Don't show a nice cursor but still prevent default + // "drop and blow away the whole document" action. + e.preventDefault(); + } else { + e.preventDefault(); + if (e.dataTransfer) { + e.dataTransfer.dropEffect = 'none'; + } + } + }; + this.handleTopDragLeaveCapture = (e)=>{ + if (this.isDraggingNativeItem()) { + e.preventDefault(); + } + const isLastLeave = this.enterLeaveCounter.leave(e.target); + if (!isLastLeave) { + return; + } + if (this.isDraggingNativeItem()) { + setTimeout(()=>this.endDragNativeItem() + , 0); + } + this.cancelHover(); + }; + this.handleTopDropCapture = (e)=>{ + this.dropTargetIds = []; + if (this.isDraggingNativeItem()) { + var ref; + e.preventDefault(); + (ref = this.currentNativeSource) === null || ref === void 0 ? void 0 : ref.loadDataTransfer(e.dataTransfer); + } else if ((0,_NativeDragSources_index_js__WEBPACK_IMPORTED_MODULE_1__.matchNativeItemType)(e.dataTransfer)) { + // Dragging some elements, like and may still behave like a native drag event, + // even if the current drag event matches a user-defined type. + // Stop the default behavior when we're not expecting a native item to be dropped. + e.preventDefault(); + } + this.enterLeaveCounter.reset(); + }; + this.handleTopDrop = (e)=>{ + const { dropTargetIds } = this; + this.dropTargetIds = []; + this.actions.hover(dropTargetIds, { + clientOffset: (0,_OffsetUtils_js__WEBPACK_IMPORTED_MODULE_2__.getEventClientOffset)(e) + }); + this.actions.drop({ + dropEffect: this.getCurrentDropEffect() + }); + if (this.isDraggingNativeItem()) { + this.endDragNativeItem(); + } else if (this.monitor.isDragging()) { + this.actions.endDrag(); + } + this.cancelHover(); + }; + this.handleSelectStart = (e)=>{ + const target = e.target; + // Only IE requires us to explicitly say + // we want drag drop operation to start + if (typeof target.dragDrop !== 'function') { + return; + } + // Inputs and textareas should be selectable + if (target.tagName === 'INPUT' || target.tagName === 'SELECT' || target.tagName === 'TEXTAREA' || target.isContentEditable) { + return; + } + // For other targets, ask IE + // to enable drag and drop + e.preventDefault(); + target.dragDrop(); + }; + this.options = new _OptionsReader_js__WEBPACK_IMPORTED_MODULE_3__.OptionsReader(globalContext, options); + this.actions = manager.getActions(); + this.monitor = manager.getMonitor(); + this.registry = manager.getRegistry(); + this.enterLeaveCounter = new _EnterLeaveCounter_js__WEBPACK_IMPORTED_MODULE_4__.EnterLeaveCounter(this.isNodeInDocument); + } +} + +//# sourceMappingURL=HTML5BackendImpl.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js": +/*!***************************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ MonotonicInterpolant: () => (/* binding */ MonotonicInterpolant) +/* harmony export */ }); +class MonotonicInterpolant { + interpolate(x) { + const { xs , ys , c1s , c2s , c3s } = this; + // The rightmost point in the dataset should give an exact result + let i = xs.length - 1; + if (x === xs[i]) { + return ys[i]; + } + // Search for the interval x is in, returning the corresponding y if x is one of the original xs + let low = 0; + let high = c3s.length - 1; + let mid; + while(low <= high){ + mid = Math.floor(0.5 * (low + high)); + const xHere = xs[mid]; + if (xHere < x) { + low = mid + 1; + } else if (xHere > x) { + high = mid - 1; + } else { + return ys[mid]; + } + } + i = Math.max(0, high); + // Interpolate + const diff = x - xs[i]; + const diffSq = diff * diff; + return ys[i] + c1s[i] * diff + c2s[i] * diffSq + c3s[i] * diff * diffSq; + } + constructor(xs, ys){ + const { length } = xs; + // Rearrange xs and ys so that xs is sorted + const indexes = []; + for(let i = 0; i < length; i++){ + indexes.push(i); + } + indexes.sort((a, b)=>xs[a] < xs[b] ? -1 : 1 + ); + // Get consecutive differences and slopes + const dys = []; + const dxs = []; + const ms = []; + let dx; + let dy; + for(let i1 = 0; i1 < length - 1; i1++){ + dx = xs[i1 + 1] - xs[i1]; + dy = ys[i1 + 1] - ys[i1]; + dxs.push(dx); + dys.push(dy); + ms.push(dy / dx); + } + // Get degree-1 coefficients + const c1s = [ + ms[0] + ]; + for(let i2 = 0; i2 < dxs.length - 1; i2++){ + const m2 = ms[i2]; + const mNext = ms[i2 + 1]; + if (m2 * mNext <= 0) { + c1s.push(0); + } else { + dx = dxs[i2]; + const dxNext = dxs[i2 + 1]; + const common = dx + dxNext; + c1s.push(3 * common / ((common + dxNext) / m2 + (common + dx) / mNext)); + } + } + c1s.push(ms[ms.length - 1]); + // Get degree-2 and degree-3 coefficients + const c2s = []; + const c3s = []; + let m; + for(let i3 = 0; i3 < c1s.length - 1; i3++){ + m = ms[i3]; + const c1 = c1s[i3]; + const invDx = 1 / dxs[i3]; + const common = c1 + c1s[i3 + 1] - m - m; + c2s.push((m - c1 - common) * invDx); + c3s.push(common * invDx * invDx); + } + this.xs = xs; + this.ys = ys; + this.c1s = c1s; + this.c2s = c2s; + this.c3s = c3s; + } +} + +//# sourceMappingURL=MonotonicInterpolant.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js ***! + \*****************************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ NativeDragSource: () => (/* binding */ NativeDragSource) +/* harmony export */ }); +class NativeDragSource { + initializeExposedProperties() { + Object.keys(this.config.exposeProperties).forEach((property)=>{ + Object.defineProperty(this.item, property, { + configurable: true, + enumerable: true, + get () { + // eslint-disable-next-line no-console + console.warn(`Browser doesn't allow reading "${property}" until the drop event.`); + return null; + } + }); + }); + } + loadDataTransfer(dataTransfer) { + if (dataTransfer) { + const newProperties = {}; + Object.keys(this.config.exposeProperties).forEach((property)=>{ + const propertyFn = this.config.exposeProperties[property]; + if (propertyFn != null) { + newProperties[property] = { + value: propertyFn(dataTransfer, this.config.matchesTypes), + configurable: true, + enumerable: true + }; + } + }); + Object.defineProperties(this.item, newProperties); + } + } + canDrag() { + return true; + } + beginDrag() { + return this.item; + } + isDragging(monitor, handle) { + return handle === monitor.getSourceId(); + } + endDrag() { + // empty + } + constructor(config){ + this.config = config; + this.item = {}; + this.initializeExposedProperties(); + } +} + +//# sourceMappingURL=NativeDragSource.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js ***! + \************************************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ getDataFromDataTransfer: () => (/* binding */ getDataFromDataTransfer) +/* harmony export */ }); +function getDataFromDataTransfer(dataTransfer, typesToTry, defaultValue) { + const result = typesToTry.reduce((resultSoFar, typeToTry)=>resultSoFar || dataTransfer.getData(typeToTry) + , ''); + return result != null ? result : defaultValue; +} + +//# sourceMappingURL=getDataFromDataTransfer.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js": +/*!******************************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ createNativeDragSource: () => (/* binding */ createNativeDragSource), +/* harmony export */ matchNativeItemType: () => (/* binding */ matchNativeItemType) +/* harmony export */ }); +/* harmony import */ var _NativeDragSource_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NativeDragSource.js */ "./node_modules/react-dnd-html5-backend/dist/NativeDragSources/NativeDragSource.js"); +/* harmony import */ var _nativeTypesConfig_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nativeTypesConfig.js */ "./node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js"); + + +function createNativeDragSource(type, dataTransfer) { + const config = _nativeTypesConfig_js__WEBPACK_IMPORTED_MODULE_0__.nativeTypesConfig[type]; + if (!config) { + throw new Error(`native type ${type} has no configuration`); + } + const result = new _NativeDragSource_js__WEBPACK_IMPORTED_MODULE_1__.NativeDragSource(config); + result.loadDataTransfer(dataTransfer); + return result; +} +function matchNativeItemType(dataTransfer) { + if (!dataTransfer) { + return null; + } + const dataTransferTypes = Array.prototype.slice.call(dataTransfer.types || []); + return Object.keys(_nativeTypesConfig_js__WEBPACK_IMPORTED_MODULE_0__.nativeTypesConfig).filter((nativeItemType)=>{ + const typeConfig = _nativeTypesConfig_js__WEBPACK_IMPORTED_MODULE_0__.nativeTypesConfig[nativeItemType]; + if (!(typeConfig === null || typeConfig === void 0 ? void 0 : typeConfig.matchesTypes)) { + return false; + } + return typeConfig.matchesTypes.some((t)=>dataTransferTypes.indexOf(t) > -1 + ); + })[0] || null; +} + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js ***! + \******************************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ nativeTypesConfig: () => (/* binding */ nativeTypesConfig) +/* harmony export */ }); +/* harmony import */ var _NativeTypes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../NativeTypes.js */ "./node_modules/react-dnd-html5-backend/dist/NativeTypes.js"); +/* harmony import */ var _getDataFromDataTransfer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDataFromDataTransfer.js */ "./node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js"); + + +const nativeTypesConfig = { + [_NativeTypes_js__WEBPACK_IMPORTED_MODULE_0__.FILE]: { + exposeProperties: { + files: (dataTransfer)=>Array.prototype.slice.call(dataTransfer.files) + , + items: (dataTransfer)=>dataTransfer.items + , + dataTransfer: (dataTransfer)=>dataTransfer + }, + matchesTypes: [ + 'Files' + ] + }, + [_NativeTypes_js__WEBPACK_IMPORTED_MODULE_0__.HTML]: { + exposeProperties: { + html: (dataTransfer, matchesTypes)=>(0,_getDataFromDataTransfer_js__WEBPACK_IMPORTED_MODULE_1__.getDataFromDataTransfer)(dataTransfer, matchesTypes, '') + , + dataTransfer: (dataTransfer)=>dataTransfer + }, + matchesTypes: [ + 'Html', + 'text/html' + ] + }, + [_NativeTypes_js__WEBPACK_IMPORTED_MODULE_0__.URL]: { + exposeProperties: { + urls: (dataTransfer, matchesTypes)=>(0,_getDataFromDataTransfer_js__WEBPACK_IMPORTED_MODULE_1__.getDataFromDataTransfer)(dataTransfer, matchesTypes, '').split('\n') + , + dataTransfer: (dataTransfer)=>dataTransfer + }, + matchesTypes: [ + 'Url', + 'text/uri-list' + ] + }, + [_NativeTypes_js__WEBPACK_IMPORTED_MODULE_0__.TEXT]: { + exposeProperties: { + text: (dataTransfer, matchesTypes)=>(0,_getDataFromDataTransfer_js__WEBPACK_IMPORTED_MODULE_1__.getDataFromDataTransfer)(dataTransfer, matchesTypes, '') + , + dataTransfer: (dataTransfer)=>dataTransfer + }, + matchesTypes: [ + 'Text', + 'text/plain' + ] + } +}; + +//# sourceMappingURL=nativeTypesConfig.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/NativeTypes.js": +/*!******************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/NativeTypes.js ***! + \******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ FILE: () => (/* binding */ FILE), +/* harmony export */ HTML: () => (/* binding */ HTML), +/* harmony export */ TEXT: () => (/* binding */ TEXT), +/* harmony export */ URL: () => (/* binding */ URL) +/* harmony export */ }); +const FILE = '__NATIVE_FILE__'; +const URL = '__NATIVE_URL__'; +const TEXT = '__NATIVE_TEXT__'; +const HTML = '__NATIVE_HTML__'; + +//# sourceMappingURL=NativeTypes.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/OffsetUtils.js": +/*!******************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/OffsetUtils.js ***! + \******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ getDragPreviewOffset: () => (/* binding */ getDragPreviewOffset), +/* harmony export */ getEventClientOffset: () => (/* binding */ getEventClientOffset), +/* harmony export */ getNodeClientOffset: () => (/* binding */ getNodeClientOffset) +/* harmony export */ }); +/* harmony import */ var _BrowserDetector_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BrowserDetector.js */ "./node_modules/react-dnd-html5-backend/dist/BrowserDetector.js"); +/* harmony import */ var _MonotonicInterpolant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MonotonicInterpolant.js */ "./node_modules/react-dnd-html5-backend/dist/MonotonicInterpolant.js"); + + +const ELEMENT_NODE = 1; +function getNodeClientOffset(node) { + const el = node.nodeType === ELEMENT_NODE ? node : node.parentElement; + if (!el) { + return null; + } + const { top , left } = el.getBoundingClientRect(); + return { + x: left, + y: top + }; +} +function getEventClientOffset(e) { + return { + x: e.clientX, + y: e.clientY + }; +} +function isImageNode(node) { + var ref; + return node.nodeName === 'IMG' && ((0,_BrowserDetector_js__WEBPACK_IMPORTED_MODULE_0__.isFirefox)() || !((ref = document.documentElement) === null || ref === void 0 ? void 0 : ref.contains(node))); +} +function getDragPreviewSize(isImage, dragPreview, sourceWidth, sourceHeight) { + let dragPreviewWidth = isImage ? dragPreview.width : sourceWidth; + let dragPreviewHeight = isImage ? dragPreview.height : sourceHeight; + // Work around @2x coordinate discrepancies in browsers + if ((0,_BrowserDetector_js__WEBPACK_IMPORTED_MODULE_0__.isSafari)() && isImage) { + dragPreviewHeight /= window.devicePixelRatio; + dragPreviewWidth /= window.devicePixelRatio; + } + return { + dragPreviewWidth, + dragPreviewHeight + }; +} +function getDragPreviewOffset(sourceNode, dragPreview, clientOffset, anchorPoint, offsetPoint) { + // The browsers will use the image intrinsic size under different conditions. + // Firefox only cares if it's an image, but WebKit also wants it to be detached. + const isImage = isImageNode(dragPreview); + const dragPreviewNode = isImage ? sourceNode : dragPreview; + const dragPreviewNodeOffsetFromClient = getNodeClientOffset(dragPreviewNode); + const offsetFromDragPreview = { + x: clientOffset.x - dragPreviewNodeOffsetFromClient.x, + y: clientOffset.y - dragPreviewNodeOffsetFromClient.y + }; + const { offsetWidth: sourceWidth , offsetHeight: sourceHeight } = sourceNode; + const { anchorX , anchorY } = anchorPoint; + const { dragPreviewWidth , dragPreviewHeight } = getDragPreviewSize(isImage, dragPreview, sourceWidth, sourceHeight); + const calculateYOffset = ()=>{ + const interpolantY = new _MonotonicInterpolant_js__WEBPACK_IMPORTED_MODULE_1__.MonotonicInterpolant([ + 0, + 0.5, + 1 + ], [ + // Dock to the top + offsetFromDragPreview.y, + // Align at the center + (offsetFromDragPreview.y / sourceHeight) * dragPreviewHeight, + // Dock to the bottom + offsetFromDragPreview.y + dragPreviewHeight - sourceHeight, + ]); + let y = interpolantY.interpolate(anchorY); + // Work around Safari 8 positioning bug + if ((0,_BrowserDetector_js__WEBPACK_IMPORTED_MODULE_0__.isSafari)() && isImage) { + // We'll have to wait for @3x to see if this is entirely correct + y += (window.devicePixelRatio - 1) * dragPreviewHeight; + } + return y; + }; + const calculateXOffset = ()=>{ + // Interpolate coordinates depending on anchor point + // If you know a simpler way to do this, let me know + const interpolantX = new _MonotonicInterpolant_js__WEBPACK_IMPORTED_MODULE_1__.MonotonicInterpolant([ + 0, + 0.5, + 1 + ], [ + // Dock to the left + offsetFromDragPreview.x, + // Align at the center + (offsetFromDragPreview.x / sourceWidth) * dragPreviewWidth, + // Dock to the right + offsetFromDragPreview.x + dragPreviewWidth - sourceWidth, + ]); + return interpolantX.interpolate(anchorX); + }; + // Force offsets if specified in the options. + const { offsetX , offsetY } = offsetPoint; + const isManualOffsetX = offsetX === 0 || offsetX; + const isManualOffsetY = offsetY === 0 || offsetY; + return { + x: isManualOffsetX ? offsetX : calculateXOffset(), + y: isManualOffsetY ? offsetY : calculateYOffset() + }; +} + +//# sourceMappingURL=OffsetUtils.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/OptionsReader.js": +/*!********************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/OptionsReader.js ***! + \********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ OptionsReader: () => (/* binding */ OptionsReader) +/* harmony export */ }); +class OptionsReader { + get window() { + if (this.globalContext) { + return this.globalContext; + } else if (typeof window !== 'undefined') { + return window; + } + return undefined; + } + get document() { + var ref; + if ((ref = this.globalContext) === null || ref === void 0 ? void 0 : ref.document) { + return this.globalContext.document; + } else if (this.window) { + return this.window.document; + } else { + return undefined; + } + } + get rootElement() { + var ref; + return ((ref = this.optionsArgs) === null || ref === void 0 ? void 0 : ref.rootElement) || this.window; + } + constructor(globalContext, options){ + this.ownerDocument = null; + this.globalContext = globalContext; + this.optionsArgs = options; + } +} + +//# sourceMappingURL=OptionsReader.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/getEmptyImage.js": +/*!********************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/getEmptyImage.js ***! + \********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ getEmptyImage: () => (/* binding */ getEmptyImage) +/* harmony export */ }); +let emptyImage; +function getEmptyImage() { + if (!emptyImage) { + emptyImage = new Image(); + emptyImage.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='; + } + return emptyImage; +} + +//# sourceMappingURL=getEmptyImage.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/index.js": +/*!************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/index.js ***! + \************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ HTML5Backend: () => (/* binding */ HTML5Backend), +/* harmony export */ NativeTypes: () => (/* reexport module object */ _NativeTypes_js__WEBPACK_IMPORTED_MODULE_1__), +/* harmony export */ getEmptyImage: () => (/* reexport safe */ _getEmptyImage_js__WEBPACK_IMPORTED_MODULE_0__.getEmptyImage) +/* harmony export */ }); +/* harmony import */ var _HTML5BackendImpl_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./HTML5BackendImpl.js */ "./node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js"); +/* harmony import */ var _NativeTypes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NativeTypes.js */ "./node_modules/react-dnd-html5-backend/dist/NativeTypes.js"); +/* harmony import */ var _getEmptyImage_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getEmptyImage.js */ "./node_modules/react-dnd-html5-backend/dist/getEmptyImage.js"); + + + + +const HTML5Backend = function createBackend(manager, context, options) { + return new _HTML5BackendImpl_js__WEBPACK_IMPORTED_MODULE_2__.HTML5BackendImpl(manager, context, options); +}; + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd-html5-backend/dist/utils/js_utils.js": +/*!*********************************************************************!*\ + !*** ./node_modules/react-dnd-html5-backend/dist/utils/js_utils.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ memoize: () => (/* binding */ memoize), +/* harmony export */ union: () => (/* binding */ union), +/* harmony export */ without: () => (/* binding */ without) +/* harmony export */ }); +// cheap lodash replacements +function memoize(fn) { + let result = null; + const memoized = ()=>{ + if (result == null) { + result = fn(); + } + return result; + }; + return memoized; +} +/** + * drop-in replacement for _.without + */ function without(items, item) { + return items.filter((i)=>i !== item + ); +} +function union(itemsA, itemsB) { + const set = new Set(); + const insertItem = (item)=>set.add(item) + ; + itemsA.forEach(insertItem); + itemsB.forEach(insertItem); + const result = []; + set.forEach((key)=>result.push(key) + ); + return result; +} + +//# sourceMappingURL=js_utils.js.map + +/***/ }) + +}]); +//# sourceMappingURL=vendors-node_modules_react-dnd-html5-backend_dist_index_js.js.map \ No newline at end of file diff --git a/assets/js/vendors-node_modules_react-dnd_dist_index_js.js b/assets/js/vendors-node_modules_react-dnd_dist_index_js.js new file mode 100644 index 000000000..53af8ed64 --- /dev/null +++ b/assets/js/vendors-node_modules_react-dnd_dist_index_js.js @@ -0,0 +1,4683 @@ +"use strict"; +(self["webpackChunkpost_expirator"] = self["webpackChunkpost_expirator"] || []).push([["vendors-node_modules_react-dnd_dist_index_js"],{ + +/***/ "./node_modules/fast-deep-equal/index.js": +/*!***********************************************!*\ + !*** ./node_modules/fast-deep-equal/index.js ***! + \***********************************************/ +/***/ ((module) => { + + + +// do not edit .js files directly - edit src/index.jst + + + +module.exports = function equal(a, b) { + if (a === b) return true; + + if (a && b && typeof a == 'object' && typeof b == 'object') { + if (a.constructor !== b.constructor) return false; + + var length, i, keys; + if (Array.isArray(a)) { + length = a.length; + if (length != b.length) return false; + for (i = length; i-- !== 0;) + if (!equal(a[i], b[i])) return false; + return true; + } + + + + if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; + if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); + if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); + + keys = Object.keys(a); + length = keys.length; + if (length !== Object.keys(b).length) return false; + + for (i = length; i-- !== 0;) + if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; + + for (i = length; i-- !== 0;) { + var key = keys[i]; + + if (!equal(a[key], b[key])) return false; + } + + return true; + } + + // true if both NaN, false otherwise + return a!==a && b!==b; +}; + + +/***/ }), + +/***/ "./node_modules/redux/es/redux.js": +/*!****************************************!*\ + !*** ./node_modules/redux/es/redux.js ***! + \****************************************/ +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes), +/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware), +/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators), +/* harmony export */ combineReducers: () => (/* binding */ combineReducers), +/* harmony export */ compose: () => (/* binding */ compose), +/* harmony export */ createStore: () => (/* binding */ createStore), +/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore) +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); + + +/** + * Adapted from React: /~https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js + * + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes + * during build. + * @param {number} code + */ +function formatProdErrorMessage(code) { + return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. '; +} + +// Inlined version of the `symbol-observable` polyfill +var $$observable = (function () { + return typeof Symbol === 'function' && Symbol.observable || '@@observable'; +})(); + +/** + * These are private action types reserved by Redux. + * For any unknown actions, you must return the current state. + * If the current state is undefined, you must return the initial state. + * Do not reference these action types directly in your code. + */ +var randomString = function randomString() { + return Math.random().toString(36).substring(7).split('').join('.'); +}; + +var ActionTypes = { + INIT: "@@redux/INIT" + randomString(), + REPLACE: "@@redux/REPLACE" + randomString(), + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() { + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString(); + } +}; + +/** + * @param {any} obj The object to inspect. + * @returns {boolean} True if the argument appears to be a plain object. + */ +function isPlainObject(obj) { + if (typeof obj !== 'object' || obj === null) return false; + var proto = obj; + + while (Object.getPrototypeOf(proto) !== null) { + proto = Object.getPrototypeOf(proto); + } + + return Object.getPrototypeOf(obj) === proto; +} + +// Inlined / shortened version of `kindOf` from /~https://github.com/jonschlinkert/kind-of +function miniKindOf(val) { + if (val === void 0) return 'undefined'; + if (val === null) return 'null'; + var type = typeof val; + + switch (type) { + case 'boolean': + case 'string': + case 'number': + case 'symbol': + case 'function': + { + return type; + } + } + + if (Array.isArray(val)) return 'array'; + if (isDate(val)) return 'date'; + if (isError(val)) return 'error'; + var constructorName = ctorName(val); + + switch (constructorName) { + case 'Symbol': + case 'Promise': + case 'WeakMap': + case 'WeakSet': + case 'Map': + case 'Set': + return constructorName; + } // other + + + return type.slice(8, -1).toLowerCase().replace(/\s/g, ''); +} + +function ctorName(val) { + return typeof val.constructor === 'function' ? val.constructor.name : null; +} + +function isError(val) { + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number'; +} + +function isDate(val) { + if (val instanceof Date) return true; + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function'; +} + +function kindOf(val) { + var typeOfVal = typeof val; + + if (true) { + typeOfVal = miniKindOf(val); + } + + return typeOfVal; +} + +/** + * @deprecated + * + * **We recommend using the `configureStore` method + * of the `@reduxjs/toolkit` package**, which replaces `createStore`. + * + * Redux Toolkit is our recommended approach for writing Redux logic today, + * including store setup, reducers, data fetching, and more. + * + * **For more details, please read this Redux docs page:** + * **https://redux.js.org/introduction/why-rtk-is-redux-today** + * + * `configureStore` from Redux Toolkit is an improved version of `createStore` that + * simplifies setup and helps avoid common bugs. + * + * You should not be using the `redux` core package by itself today, except for learning purposes. + * The `createStore` method from the core `redux` package will not be removed, but we encourage + * all users to migrate to using Redux Toolkit for all Redux code. + * + * If you want to use `createStore` without this visual deprecation warning, use + * the `legacy_createStore` import instead: + * + * `import { legacy_createStore as createStore} from 'redux'` + * + */ + +function createStore(reducer, preloadedState, enhancer) { + var _ref2; + + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { + throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.'); + } + + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { + enhancer = preloadedState; + preloadedState = undefined; + } + + if (typeof enhancer !== 'undefined') { + if (typeof enhancer !== 'function') { + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'"); + } + + return enhancer(createStore)(reducer, preloadedState); + } + + if (typeof reducer !== 'function') { + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'"); + } + + var currentReducer = reducer; + var currentState = preloadedState; + var currentListeners = []; + var nextListeners = currentListeners; + var isDispatching = false; + /** + * This makes a shallow copy of currentListeners so we can use + * nextListeners as a temporary list while dispatching. + * + * This prevents any bugs around consumers calling + * subscribe/unsubscribe in the middle of a dispatch. + */ + + function ensureCanMutateNextListeners() { + if (nextListeners === currentListeners) { + nextListeners = currentListeners.slice(); + } + } + /** + * Reads the state tree managed by the store. + * + * @returns {any} The current state tree of your application. + */ + + + function getState() { + if (isDispatching) { + throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.'); + } + + return currentState; + } + /** + * Adds a change listener. It will be called any time an action is dispatched, + * and some part of the state tree may potentially have changed. You may then + * call `getState()` to read the current state tree inside the callback. + * + * You may call `dispatch()` from a change listener, with the following + * caveats: + * + * 1. The subscriptions are snapshotted just before every `dispatch()` call. + * If you subscribe or unsubscribe while the listeners are being invoked, this + * will not have any effect on the `dispatch()` that is currently in progress. + * However, the next `dispatch()` call, whether nested or not, will use a more + * recent snapshot of the subscription list. + * + * 2. The listener should not expect to see all state changes, as the state + * might have been updated multiple times during a nested `dispatch()` before + * the listener is called. It is, however, guaranteed that all subscribers + * registered before the `dispatch()` started will be called with the latest + * state by the time it exits. + * + * @param {Function} listener A callback to be invoked on every dispatch. + * @returns {Function} A function to remove this change listener. + */ + + + function subscribe(listener) { + if (typeof listener !== 'function') { + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'"); + } + + if (isDispatching) { + throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.'); + } + + var isSubscribed = true; + ensureCanMutateNextListeners(); + nextListeners.push(listener); + return function unsubscribe() { + if (!isSubscribed) { + return; + } + + if (isDispatching) { + throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.'); + } + + isSubscribed = false; + ensureCanMutateNextListeners(); + var index = nextListeners.indexOf(listener); + nextListeners.splice(index, 1); + currentListeners = null; + }; + } + /** + * Dispatches an action. It is the only way to trigger a state change. + * + * The `reducer` function, used to create the store, will be called with the + * current state tree and the given `action`. Its return value will + * be considered the **next** state of the tree, and the change listeners + * will be notified. + * + * The base implementation only supports plain object actions. If you want to + * dispatch a Promise, an Observable, a thunk, or something else, you need to + * wrap your store creating function into the corresponding middleware. For + * example, see the documentation for the `redux-thunk` package. Even the + * middleware will eventually dispatch plain object actions using this method. + * + * @param {Object} action A plain object representing “what changed”. It is + * a good idea to keep actions serializable so you can record and replay user + * sessions, or use the time travelling `redux-devtools`. An action must have + * a `type` property which may not be `undefined`. It is a good idea to use + * string constants for action types. + * + * @returns {Object} For convenience, the same action object you dispatched. + * + * Note that, if you use a custom middleware, it may wrap `dispatch()` to + * return something else (for example, a Promise you can await). + */ + + + function dispatch(action) { + if (!isPlainObject(action)) { + throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); + } + + if (typeof action.type === 'undefined') { + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.'); + } + + if (isDispatching) { + throw new Error( false ? 0 : 'Reducers may not dispatch actions.'); + } + + try { + isDispatching = true; + currentState = currentReducer(currentState, action); + } finally { + isDispatching = false; + } + + var listeners = currentListeners = nextListeners; + + for (var i = 0; i < listeners.length; i++) { + var listener = listeners[i]; + listener(); + } + + return action; + } + /** + * Replaces the reducer currently used by the store to calculate the state. + * + * You might need this if your app implements code splitting and you want to + * load some of the reducers dynamically. You might also need this if you + * implement a hot reloading mechanism for Redux. + * + * @param {Function} nextReducer The reducer for the store to use instead. + * @returns {void} + */ + + + function replaceReducer(nextReducer) { + if (typeof nextReducer !== 'function') { + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer)); + } + + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. + // Any reducers that existed in both the new and old rootReducer + // will receive the previous state. This effectively populates + // the new state tree with any relevant data from the old one. + + dispatch({ + type: ActionTypes.REPLACE + }); + } + /** + * Interoperability point for observable/reactive libraries. + * @returns {observable} A minimal observable of state changes. + * For more information, see the observable proposal: + * /~https://github.com/tc39/proposal-observable + */ + + + function observable() { + var _ref; + + var outerSubscribe = subscribe; + return _ref = { + /** + * The minimal observable subscription method. + * @param {Object} observer Any object that can be used as an observer. + * The observer object should have a `next` method. + * @returns {subscription} An object with an `unsubscribe` method that can + * be used to unsubscribe the observable from the store, and prevent further + * emission of values from the observable. + */ + subscribe: function subscribe(observer) { + if (typeof observer !== 'object' || observer === null) { + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'"); + } + + function observeState() { + if (observer.next) { + observer.next(getState()); + } + } + + observeState(); + var unsubscribe = outerSubscribe(observeState); + return { + unsubscribe: unsubscribe + }; + } + }, _ref[$$observable] = function () { + return this; + }, _ref; + } // When a store is created, an "INIT" action is dispatched so that every + // reducer returns their initial state. This effectively populates + // the initial state tree. + + + dispatch({ + type: ActionTypes.INIT + }); + return _ref2 = { + dispatch: dispatch, + subscribe: subscribe, + getState: getState, + replaceReducer: replaceReducer + }, _ref2[$$observable] = observable, _ref2; +} +/** + * Creates a Redux store that holds the state tree. + * + * **We recommend using `configureStore` from the + * `@reduxjs/toolkit` package**, which replaces `createStore`: + * **https://redux.js.org/introduction/why-rtk-is-redux-today** + * + * The only way to change the data in the store is to call `dispatch()` on it. + * + * There should only be a single store in your app. To specify how different + * parts of the state tree respond to actions, you may combine several reducers + * into a single reducer function by using `combineReducers`. + * + * @param {Function} reducer A function that returns the next state tree, given + * the current state tree and the action to handle. + * + * @param {any} [preloadedState] The initial state. You may optionally specify it + * to hydrate the state from the server in universal apps, or to restore a + * previously serialized user session. + * If you use `combineReducers` to produce the root reducer function, this must be + * an object with the same shape as `combineReducers` keys. + * + * @param {Function} [enhancer] The store enhancer. You may optionally specify it + * to enhance the store with third-party capabilities such as middleware, + * time travel, persistence, etc. The only store enhancer that ships with Redux + * is `applyMiddleware()`. + * + * @returns {Store} A Redux store that lets you read the state, dispatch actions + * and subscribe to changes. + */ + +var legacy_createStore = createStore; + +/** + * Prints a warning in the console if it exists. + * + * @param {String} message The warning message. + * @returns {void} + */ +function warning(message) { + /* eslint-disable no-console */ + if (typeof console !== 'undefined' && typeof console.error === 'function') { + console.error(message); + } + /* eslint-enable no-console */ + + + try { + // This error was thrown as a convenience so that if you enable + // "break on all exceptions" in your console, + // it would pause the execution at this line. + throw new Error(message); + } catch (e) {} // eslint-disable-line no-empty + +} + +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { + var reducerKeys = Object.keys(reducers); + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; + + if (reducerKeys.length === 0) { + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; + } + + if (!isPlainObject(inputState)) { + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\""); + } + + var unexpectedKeys = Object.keys(inputState).filter(function (key) { + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; + }); + unexpectedKeys.forEach(function (key) { + unexpectedKeyCache[key] = true; + }); + if (action && action.type === ActionTypes.REPLACE) return; + + if (unexpectedKeys.length > 0) { + return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored."); + } +} + +function assertReducerShape(reducers) { + Object.keys(reducers).forEach(function (key) { + var reducer = reducers[key]; + var initialState = reducer(undefined, { + type: ActionTypes.INIT + }); + + if (typeof initialState === 'undefined') { + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined."); + } + + if (typeof reducer(undefined, { + type: ActionTypes.PROBE_UNKNOWN_ACTION() + }) === 'undefined') { + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null."); + } + }); +} +/** + * Turns an object whose values are different reducer functions, into a single + * reducer function. It will call every child reducer, and gather their results + * into a single state object, whose keys correspond to the keys of the passed + * reducer functions. + * + * @param {Object} reducers An object whose values correspond to different + * reducer functions that need to be combined into one. One handy way to obtain + * it is to use ES6 `import * as reducers` syntax. The reducers may never return + * undefined for any action. Instead, they should return their initial state + * if the state passed to them was undefined, and the current state for any + * unrecognized action. + * + * @returns {Function} A reducer function that invokes every reducer inside the + * passed object, and builds a state object with the same shape. + */ + + +function combineReducers(reducers) { + var reducerKeys = Object.keys(reducers); + var finalReducers = {}; + + for (var i = 0; i < reducerKeys.length; i++) { + var key = reducerKeys[i]; + + if (true) { + if (typeof reducers[key] === 'undefined') { + warning("No reducer provided for key \"" + key + "\""); + } + } + + if (typeof reducers[key] === 'function') { + finalReducers[key] = reducers[key]; + } + } + + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same + // keys multiple times. + + var unexpectedKeyCache; + + if (true) { + unexpectedKeyCache = {}; + } + + var shapeAssertionError; + + try { + assertReducerShape(finalReducers); + } catch (e) { + shapeAssertionError = e; + } + + return function combination(state, action) { + if (state === void 0) { + state = {}; + } + + if (shapeAssertionError) { + throw shapeAssertionError; + } + + if (true) { + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); + + if (warningMessage) { + warning(warningMessage); + } + } + + var hasChanged = false; + var nextState = {}; + + for (var _i = 0; _i < finalReducerKeys.length; _i++) { + var _key = finalReducerKeys[_i]; + var reducer = finalReducers[_key]; + var previousStateForKey = state[_key]; + var nextStateForKey = reducer(previousStateForKey, action); + + if (typeof nextStateForKey === 'undefined') { + var actionType = action && action.type; + throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined."); + } + + nextState[_key] = nextStateForKey; + hasChanged = hasChanged || nextStateForKey !== previousStateForKey; + } + + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; + return hasChanged ? nextState : state; + }; +} + +function bindActionCreator(actionCreator, dispatch) { + return function () { + return dispatch(actionCreator.apply(this, arguments)); + }; +} +/** + * Turns an object whose values are action creators, into an object with the + * same keys, but with every function wrapped into a `dispatch` call so they + * may be invoked directly. This is just a convenience method, as you can call + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. + * + * For convenience, you can also pass an action creator as the first argument, + * and get a dispatch wrapped function in return. + * + * @param {Function|Object} actionCreators An object whose values are action + * creator functions. One handy way to obtain it is to use ES6 `import * as` + * syntax. You may also pass a single function. + * + * @param {Function} dispatch The `dispatch` function available on your Redux + * store. + * + * @returns {Function|Object} The object mimicking the original object, but with + * every action creator wrapped into the `dispatch` call. If you passed a + * function as `actionCreators`, the return value will also be a single + * function. + */ + + +function bindActionCreators(actionCreators, dispatch) { + if (typeof actionCreators === 'function') { + return bindActionCreator(actionCreators, dispatch); + } + + if (typeof actionCreators !== 'object' || actionCreators === null) { + throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?"); + } + + var boundActionCreators = {}; + + for (var key in actionCreators) { + var actionCreator = actionCreators[key]; + + if (typeof actionCreator === 'function') { + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); + } + } + + return boundActionCreators; +} + +/** + * Composes single-argument functions from right to left. The rightmost + * function can take multiple arguments as it provides the signature for + * the resulting composite function. + * + * @param {...Function} funcs The functions to compose. + * @returns {Function} A function obtained by composing the argument functions + * from right to left. For example, compose(f, g, h) is identical to doing + * (...args) => f(g(h(...args))). + */ +function compose() { + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { + funcs[_key] = arguments[_key]; + } + + if (funcs.length === 0) { + return function (arg) { + return arg; + }; + } + + if (funcs.length === 1) { + return funcs[0]; + } + + return funcs.reduce(function (a, b) { + return function () { + return a(b.apply(void 0, arguments)); + }; + }); +} + +/** + * Creates a store enhancer that applies middleware to the dispatch method + * of the Redux store. This is handy for a variety of tasks, such as expressing + * asynchronous actions in a concise manner, or logging every action payload. + * + * See `redux-thunk` package as an example of the Redux middleware. + * + * Because middleware is potentially asynchronous, this should be the first + * store enhancer in the composition chain. + * + * Note that each middleware will be given the `dispatch` and `getState` functions + * as named arguments. + * + * @param {...Function} middlewares The middleware chain to be applied. + * @returns {Function} A store enhancer applying the middleware. + */ + +function applyMiddleware() { + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) { + middlewares[_key] = arguments[_key]; + } + + return function (createStore) { + return function () { + var store = createStore.apply(void 0, arguments); + + var _dispatch = function dispatch() { + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); + }; + + var middlewareAPI = { + getState: store.getState, + dispatch: function dispatch() { + return _dispatch.apply(void 0, arguments); + } + }; + var chain = middlewares.map(function (middleware) { + return middleware(middlewareAPI); + }); + _dispatch = compose.apply(void 0, chain)(store.dispatch); + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, { + dispatch: _dispatch + }); + }; + }; +} + + + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ _defineProperty) +/* harmony export */ }); +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"); + +function _defineProperty(e, r, t) { + return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js": +/*!******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! + \******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ _objectSpread2) +/* harmony export */ }); +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); + +function ownKeys(e, r) { + var t = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(e); + r && (o = o.filter(function (r) { + return Object.getOwnPropertyDescriptor(e, r).enumerable; + })), t.push.apply(t, o); + } + return t; +} +function _objectSpread2(e) { + for (var r = 1; r < arguments.length; r++) { + var t = null != arguments[r] ? arguments[r] : {}; + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); + }); + } + return e; +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js": +/*!****************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***! + \****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ toPrimitive) +/* harmony export */ }); +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); + +function toPrimitive(t, r) { + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js": +/*!******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***! + \******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ toPropertyKey) +/* harmony export */ }); +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js"); + + +function toPropertyKey(t) { + var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string"); + return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + ""; +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js": +/*!***********************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***! + \***********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": () => (/* binding */ _typeof) +/* harmony export */ }); +function _typeof(o) { + "@babel/helpers - typeof"; + + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { + return typeof o; + } : function (o) { + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, _typeof(o); +} + + +/***/ }), + +/***/ "./node_modules/@react-dnd/asap/dist/AsapQueue.js": +/*!********************************************************!*\ + !*** ./node_modules/@react-dnd/asap/dist/AsapQueue.js ***! + \********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ AsapQueue: () => (/* binding */ AsapQueue) +/* harmony export */ }); +/* harmony import */ var _makeRequestCall_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./makeRequestCall.js */ "./node_modules/@react-dnd/asap/dist/makeRequestCall.js"); +/* eslint-disable no-restricted-globals, @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars, @typescript-eslint/no-non-null-assertion */ +class AsapQueue { + // Use the fastest means possible to execute a task in its own turn, with + // priority over other events including IO, animation, reflow, and redraw + // events in browsers. + // + // An exception thrown by a task will permanently interrupt the processing of + // subsequent tasks. The higher level `asap` function ensures that if an + // exception is thrown by a task, that the task queue will continue flushing as + // soon as possible, but if you use `rawAsap` directly, you are responsible to + // either ensure that no exceptions are thrown from your task, or to manually + // call `rawAsap.requestFlush` if an exception is thrown. + enqueueTask(task) { + const { queue: q , requestFlush } = this; + if (!q.length) { + requestFlush(); + this.flushing = true; + } + // Equivalent to push, but avoids a function call. + q[q.length] = task; + } + constructor(){ + this.queue = []; + // We queue errors to ensure they are thrown in right order (FIFO). + // Array-as-queue is good enough here, since we are just dealing with exceptions. + this.pendingErrors = []; + // Once a flush has been requested, no further calls to `requestFlush` are + // necessary until the next `flush` completes. + // @ts-ignore + this.flushing = false; + // The position of the next task to execute in the task queue. This is + // preserved between calls to `flush` so that it can be resumed if + // a task throws an exception. + this.index = 0; + // If a task schedules additional tasks recursively, the task queue can grow + // unbounded. To prevent memory exhaustion, the task queue will periodically + // truncate already-completed tasks. + this.capacity = 1024; + // The flush function processes all tasks that have been scheduled with + // `rawAsap` unless and until one of those tasks throws an exception. + // If a task throws an exception, `flush` ensures that its state will remain + // consistent and will resume where it left off when called again. + // However, `flush` does not make any arrangements to be called again if an + // exception is thrown. + this.flush = ()=>{ + const { queue: q } = this; + while(this.index < q.length){ + const currentIndex = this.index; + // Advance the index before calling the task. This ensures that we will + // begin flushing on the next task the task throws an error. + this.index++; + q[currentIndex].call(); + // Prevent leaking memory for long chains of recursive calls to `asap`. + // If we call `asap` within tasks scheduled by `asap`, the queue will + // grow, but to avoid an O(n) walk for every task we execute, we don't + // shift tasks off the queue after they have been executed. + // Instead, we periodically shift 1024 tasks off the queue. + if (this.index > this.capacity) { + // Manually shift all values starting at the index back to the + // beginning of the queue. + for(let scan = 0, newLength = q.length - this.index; scan < newLength; scan++){ + q[scan] = q[scan + this.index]; + } + q.length -= this.index; + this.index = 0; + } + } + q.length = 0; + this.index = 0; + this.flushing = false; + }; + // In a web browser, exceptions are not fatal. However, to avoid + // slowing down the queue of pending tasks, we rethrow the error in a + // lower priority turn. + this.registerPendingError = (err)=>{ + this.pendingErrors.push(err); + this.requestErrorThrow(); + }; + // `requestFlush` requests that the high priority event queue be flushed as + // soon as possible. + // This is useful to prevent an error thrown in a task from stalling the event + // queue if the exception handled by Node.js’s + // `process.on("uncaughtException")` or by a domain. + // `requestFlush` is implemented using a strategy based on data collected from + // every available SauceLabs Selenium web driver worker at time of writing. + // https://docs.google.com/spreadsheets/d/1mG-5UYGup5qxGdEMWkhP6BWCz053NUb2E1QoUTU16uA/edit#gid=783724593 + this.requestFlush = (0,_makeRequestCall_js__WEBPACK_IMPORTED_MODULE_0__.makeRequestCall)(this.flush); + this.requestErrorThrow = (0,_makeRequestCall_js__WEBPACK_IMPORTED_MODULE_0__.makeRequestCallFromTimer)(()=>{ + // Throw first error + if (this.pendingErrors.length) { + throw this.pendingErrors.shift(); + } + }); + } +} // The message channel technique was discovered by Malte Ubl and was the + // original foundation for this library. + // http://www.nonblocking.io/2011/06/windownexttick.html + // Safari 6.0.5 (at least) intermittently fails to create message ports on a + // page's first load. Thankfully, this version of Safari supports + // MutationObservers, so we don't need to fall back in that case. + // function makeRequestCallFromMessageChannel(callback) { + // var channel = new MessageChannel(); + // channel.port1.onmessage = callback; + // return function requestCall() { + // channel.port2.postMessage(0); + // }; + // } + // For reasons explained above, we are also unable to use `setImmediate` + // under any circumstances. + // Even if we were, there is another bug in Internet Explorer 10. + // It is not sufficient to assign `setImmediate` to `requestFlush` because + // `setImmediate` must be called *by name* and therefore must be wrapped in a + // closure. + // Never forget. + // function makeRequestCallFromSetImmediate(callback) { + // return function requestCall() { + // setImmediate(callback); + // }; + // } + // Safari 6.0 has a problem where timers will get lost while the user is + // scrolling. This problem does not impact ASAP because Safari 6.0 supports + // mutation observers, so that implementation is used instead. + // However, if we ever elect to use timers in Safari, the prevalent work-around + // is to add a scroll event listener that calls for a flush. + // `setTimeout` does not call the passed callback if the delay is less than + // approximately 7 in web workers in Firefox 8 through 18, and sometimes not + // even then. + // This is for `asap.js` only. + // Its name will be periodically randomized to break any code that depends on + // // its existence. + // rawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer + // ASAP was originally a nextTick shim included in Q. This was factored out + // into this ASAP package. It was later adapted to RSVP which made further + // amendments. These decisions, particularly to marginalize MessageChannel and + // to capture the MutationObserver implementation in a closure, were integrated + // back into ASAP proper. + // /~https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js + +//# sourceMappingURL=AsapQueue.js.map + +/***/ }), + +/***/ "./node_modules/@react-dnd/asap/dist/RawTask.js": +/*!******************************************************!*\ + !*** ./node_modules/@react-dnd/asap/dist/RawTask.js ***! + \******************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ RawTask: () => (/* binding */ RawTask) +/* harmony export */ }); +// `call`, just like a function. +class RawTask { + call() { + try { + this.task && this.task(); + } catch (error) { + this.onError(error); + } finally{ + this.task = null; + this.release(this); + } + } + constructor(onError, release){ + this.onError = onError; + this.release = release; + this.task = null; + } +} + +//# sourceMappingURL=RawTask.js.map + +/***/ }), + +/***/ "./node_modules/@react-dnd/asap/dist/TaskFactory.js": +/*!**********************************************************!*\ + !*** ./node_modules/@react-dnd/asap/dist/TaskFactory.js ***! + \**********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ TaskFactory: () => (/* binding */ TaskFactory) +/* harmony export */ }); +/* harmony import */ var _RawTask_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RawTask.js */ "./node_modules/@react-dnd/asap/dist/RawTask.js"); + +class TaskFactory { + create(task) { + const tasks = this.freeTasks; + const t1 = tasks.length ? tasks.pop() : new _RawTask_js__WEBPACK_IMPORTED_MODULE_0__.RawTask(this.onError, (t)=>tasks[tasks.length] = t + ); + t1.task = task; + return t1; + } + constructor(onError){ + this.onError = onError; + this.freeTasks = []; + } +} + +//# sourceMappingURL=TaskFactory.js.map + +/***/ }), + +/***/ "./node_modules/@react-dnd/asap/dist/asap.js": +/*!***************************************************!*\ + !*** ./node_modules/@react-dnd/asap/dist/asap.js ***! + \***************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ asap: () => (/* binding */ asap) +/* harmony export */ }); +/* harmony import */ var _AsapQueue_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsapQueue.js */ "./node_modules/@react-dnd/asap/dist/AsapQueue.js"); +/* harmony import */ var _TaskFactory_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TaskFactory.js */ "./node_modules/@react-dnd/asap/dist/TaskFactory.js"); + + +const asapQueue = new _AsapQueue_js__WEBPACK_IMPORTED_MODULE_0__.AsapQueue(); +const taskFactory = new _TaskFactory_js__WEBPACK_IMPORTED_MODULE_1__.TaskFactory(asapQueue.registerPendingError); +/** + * Calls a task as soon as possible after returning, in its own event, with priority + * over other events like animation, reflow, and repaint. An error thrown from an + * event will not interrupt, nor even substantially slow down the processing of + * other events, but will be rather postponed to a lower priority event. + * @param {{call}} task A callable object, typically a function that takes no + * arguments. + */ function asap(task) { + asapQueue.enqueueTask(taskFactory.create(task)); +} + +//# sourceMappingURL=asap.js.map + +/***/ }), + +/***/ "./node_modules/@react-dnd/asap/dist/index.js": +/*!****************************************************!*\ + !*** ./node_modules/@react-dnd/asap/dist/index.js ***! + \****************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ AsapQueue: () => (/* reexport safe */ _AsapQueue_js__WEBPACK_IMPORTED_MODULE_1__.AsapQueue), +/* harmony export */ TaskFactory: () => (/* reexport safe */ _TaskFactory_js__WEBPACK_IMPORTED_MODULE_2__.TaskFactory), +/* harmony export */ asap: () => (/* reexport safe */ _asap_js__WEBPACK_IMPORTED_MODULE_0__.asap) +/* harmony export */ }); +/* harmony import */ var _asap_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./asap.js */ "./node_modules/@react-dnd/asap/dist/asap.js"); +/* harmony import */ var _AsapQueue_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsapQueue.js */ "./node_modules/@react-dnd/asap/dist/AsapQueue.js"); +/* harmony import */ var _TaskFactory_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TaskFactory.js */ "./node_modules/@react-dnd/asap/dist/TaskFactory.js"); +/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./types.js */ "./node_modules/@react-dnd/asap/dist/types.js"); + + + + + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@react-dnd/asap/dist/makeRequestCall.js": +/*!**************************************************************!*\ + !*** ./node_modules/@react-dnd/asap/dist/makeRequestCall.js ***! + \**************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ makeRequestCall: () => (/* binding */ makeRequestCall), +/* harmony export */ makeRequestCallFromMutationObserver: () => (/* binding */ makeRequestCallFromMutationObserver), +/* harmony export */ makeRequestCallFromTimer: () => (/* binding */ makeRequestCallFromTimer) +/* harmony export */ }); +// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that +// have WebKitMutationObserver but not un-prefixed MutationObserver. +// Must use `global` or `self` instead of `window` to work in both frames and web +// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop. +/* globals self */ const scope = typeof global !== 'undefined' ? global : self; +const BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver; +function makeRequestCallFromTimer(callback) { + return function requestCall() { + // We dispatch a timeout with a specified delay of 0 for engines that + // can reliably accommodate that request. This will usually be snapped + // to a 4 milisecond delay, but once we're flushing, there's no delay + // between events. + const timeoutHandle = setTimeout(handleTimer, 0); + // However, since this timer gets frequently dropped in Firefox + // workers, we enlist an interval handle that will try to fire + // an event 20 times per second until it succeeds. + const intervalHandle = setInterval(handleTimer, 50); + function handleTimer() { + // Whichever timer succeeds will cancel both timers and + // execute the callback. + clearTimeout(timeoutHandle); + clearInterval(intervalHandle); + callback(); + } + }; +} +// To request a high priority event, we induce a mutation observer by toggling +// the text of a text node between "1" and "-1". +function makeRequestCallFromMutationObserver(callback) { + let toggle = 1; + const observer = new BrowserMutationObserver(callback); + const node = document.createTextNode(''); + observer.observe(node, { + characterData: true + }); + return function requestCall() { + toggle = -toggle; + node.data = toggle; + }; +} +const makeRequestCall = typeof BrowserMutationObserver === 'function' ? // reliably everywhere they are implemented. +// They are implemented in all modern browsers. +// +// - Android 4-4.3 +// - Chrome 26-34 +// - Firefox 14-29 +// - Internet Explorer 11 +// - iPad Safari 6-7.1 +// - iPhone Safari 7-7.1 +// - Safari 6-7 +makeRequestCallFromMutationObserver : // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera +// 11-12, and in web workers in many engines. +// Although message channels yield to any queued rendering and IO tasks, they +// would be better than imposing the 4ms delay of timers. +// However, they do not work reliably in Internet Explorer or Safari. +// Internet Explorer 10 is the only browser that has setImmediate but does +// not have MutationObservers. +// Although setImmediate yields to the browser's renderer, it would be +// preferrable to falling back to setTimeout since it does not have +// the minimum 4ms penalty. +// Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and +// Desktop to a lesser extent) that renders both setImmediate and +// MessageChannel useless for the purposes of ASAP. +// /~https://github.com/kriskowal/q/issues/396 +// Timers are implemented universally. +// We fall back to timers in workers in most engines, and in foreground +// contexts in the following browsers. +// However, note that even this simple case requires nuances to operate in a +// broad spectrum of browsers. +// +// - Firefox 3-13 +// - Internet Explorer 6-9 +// - iPad Safari 4.3 +// - Lynx 2.8.7 +makeRequestCallFromTimer; + +//# sourceMappingURL=makeRequestCall.js.map + +/***/ }), + +/***/ "./node_modules/@react-dnd/asap/dist/types.js": +/*!****************************************************!*\ + !*** ./node_modules/@react-dnd/asap/dist/types.js ***! + \****************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); + + +//# sourceMappingURL=types.js.map + +/***/ }), + +/***/ "./node_modules/@react-dnd/invariant/dist/index.js": +/*!*********************************************************!*\ + !*** ./node_modules/@react-dnd/invariant/dist/index.js ***! + \*********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ invariant: () => (/* binding */ invariant) +/* harmony export */ }); +/** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ function invariant(condition, format, ...args) { + if (isProduction()) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + } + if (!condition) { + let error; + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + let argIndex = 0; + error = new Error(format.replace(/%s/g, function() { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } + error.framesToPop = 1 // we don't care about invariant's own frame + ; + throw error; + } +} +function isProduction() { + return typeof process !== 'undefined' && "development" === 'production'; +} + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@react-dnd/shallowequal/dist/index.js": +/*!************************************************************!*\ + !*** ./node_modules/@react-dnd/shallowequal/dist/index.js ***! + \************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ shallowEqual: () => (/* binding */ shallowEqual) +/* harmony export */ }); +function shallowEqual(objA, objB, compare, compareContext) { + let compareResult = compare ? compare.call(compareContext, objA, objB) : void 0; + if (compareResult !== void 0) { + return !!compareResult; + } + if (objA === objB) { + return true; + } + if (typeof objA !== 'object' || !objA || typeof objB !== 'object' || !objB) { + return false; + } + const keysA = Object.keys(objA); + const keysB = Object.keys(objB); + if (keysA.length !== keysB.length) { + return false; + } + const bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB); + // Test for A's keys different from B. + for(let idx = 0; idx < keysA.length; idx++){ + const key = keysA[idx]; + if (!bHasOwnProperty(key)) { + return false; + } + const valueA = objA[key]; + const valueB = objB[key]; + compareResult = compare ? compare.call(compareContext, valueA, valueB, key) : void 0; + if (compareResult === false || compareResult === void 0 && valueA !== valueB) { + return false; + } + } + return true; +} + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js": +/*!******************************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js ***! + \******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ createBeginDrag: () => (/* binding */ createBeginDrag) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var _utils_js_utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/js_utils.js */ "./node_modules/dnd-core/dist/utils/js_utils.js"); +/* harmony import */ var _local_setClientOffset_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./local/setClientOffset.js */ "./node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js"); +/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./types.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); + + + + +const ResetCoordinatesAction = { + type: _types_js__WEBPACK_IMPORTED_MODULE_1__.INIT_COORDS, + payload: { + clientOffset: null, + sourceClientOffset: null + } +}; +function createBeginDrag(manager) { + return function beginDrag(sourceIds = [], options = { + publishSource: true + }) { + const { publishSource =true , clientOffset , getSourceClientOffset , } = options; + const monitor = manager.getMonitor(); + const registry = manager.getRegistry(); + // Initialize the coordinates using the client offset + manager.dispatch((0,_local_setClientOffset_js__WEBPACK_IMPORTED_MODULE_2__.setClientOffset)(clientOffset)); + verifyInvariants(sourceIds, monitor, registry); + // Get the draggable source + const sourceId = getDraggableSource(sourceIds, monitor); + if (sourceId == null) { + manager.dispatch(ResetCoordinatesAction); + return; + } + // Get the source client offset + let sourceClientOffset = null; + if (clientOffset) { + if (!getSourceClientOffset) { + throw new Error('getSourceClientOffset must be defined'); + } + verifyGetSourceClientOffsetIsFunction(getSourceClientOffset); + sourceClientOffset = getSourceClientOffset(sourceId); + } + // Initialize the full coordinates + manager.dispatch((0,_local_setClientOffset_js__WEBPACK_IMPORTED_MODULE_2__.setClientOffset)(clientOffset, sourceClientOffset)); + const source = registry.getSource(sourceId); + const item = source.beginDrag(monitor, sourceId); + // If source.beginDrag returns null, this is an indicator to cancel the drag + if (item == null) { + return undefined; + } + verifyItemIsObject(item); + registry.pinSource(sourceId); + const itemType = registry.getSourceType(sourceId); + return { + type: _types_js__WEBPACK_IMPORTED_MODULE_1__.BEGIN_DRAG, + payload: { + itemType, + item, + sourceId, + clientOffset: clientOffset || null, + sourceClientOffset: sourceClientOffset || null, + isSourcePublic: !!publishSource + } + }; + }; +} +function verifyInvariants(sourceIds, monitor, registry) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(!monitor.isDragging(), 'Cannot call beginDrag while dragging.'); + sourceIds.forEach(function(sourceId) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(registry.getSource(sourceId), 'Expected sourceIds to be registered.'); + }); +} +function verifyGetSourceClientOffsetIsFunction(getSourceClientOffset) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof getSourceClientOffset === 'function', 'When clientOffset is provided, getSourceClientOffset must be a function.'); +} +function verifyItemIsObject(item) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)((0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_3__.isObject)(item), 'Item must be an object.'); +} +function getDraggableSource(sourceIds, monitor) { + let sourceId = null; + for(let i = sourceIds.length - 1; i >= 0; i--){ + if (monitor.canDragSource(sourceIds[i])) { + sourceId = sourceIds[i]; + break; + } + } + return sourceId; +} + +//# sourceMappingURL=beginDrag.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/dragDrop/drop.js": +/*!*************************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/dragDrop/drop.js ***! + \*************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ createDrop: () => (/* binding */ createDrop) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var _utils_js_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/js_utils.js */ "./node_modules/dnd-core/dist/utils/js_utils.js"); +/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./types.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; +} +function _objectSpread(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + ownKeys.forEach(function(key) { + _defineProperty(target, key, source[key]); + }); + } + return target; +} + + + +function createDrop(manager) { + return function drop(options = {}) { + const monitor = manager.getMonitor(); + const registry = manager.getRegistry(); + verifyInvariants(monitor); + const targetIds = getDroppableTargets(monitor); + // Multiple actions are dispatched here, which is why this doesn't return an action + targetIds.forEach((targetId, index)=>{ + const dropResult = determineDropResult(targetId, index, registry, monitor); + const action = { + type: _types_js__WEBPACK_IMPORTED_MODULE_1__.DROP, + payload: { + dropResult: _objectSpread({}, options, dropResult) + } + }; + manager.dispatch(action); + }); + }; +} +function verifyInvariants(monitor) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(monitor.isDragging(), 'Cannot call drop while not dragging.'); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(!monitor.didDrop(), 'Cannot call drop twice during one drag operation.'); +} +function determineDropResult(targetId, index, registry, monitor) { + const target = registry.getTarget(targetId); + let dropResult = target ? target.drop(monitor, targetId) : undefined; + verifyDropResultType(dropResult); + if (typeof dropResult === 'undefined') { + dropResult = index === 0 ? {} : monitor.getDropResult(); + } + return dropResult; +} +function verifyDropResultType(dropResult) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof dropResult === 'undefined' || (0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_2__.isObject)(dropResult), 'Drop result must either be an object or undefined.'); +} +function getDroppableTargets(monitor) { + const targetIds = monitor.getTargetIds().filter(monitor.canDropOnTarget, monitor); + targetIds.reverse(); + return targetIds; +} + +//# sourceMappingURL=drop.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/dragDrop/endDrag.js": +/*!****************************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/dragDrop/endDrag.js ***! + \****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ createEndDrag: () => (/* binding */ createEndDrag) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./types.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); + + +function createEndDrag(manager) { + return function endDrag() { + const monitor = manager.getMonitor(); + const registry = manager.getRegistry(); + verifyIsDragging(monitor); + const sourceId = monitor.getSourceId(); + if (sourceId != null) { + const source = registry.getSource(sourceId, true); + source.endDrag(monitor, sourceId); + registry.unpinSource(); + } + return { + type: _types_js__WEBPACK_IMPORTED_MODULE_1__.END_DRAG + }; + }; +} +function verifyIsDragging(monitor) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(monitor.isDragging(), 'Cannot call endDrag while not dragging.'); +} + +//# sourceMappingURL=endDrag.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/dragDrop/hover.js": +/*!**************************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/dragDrop/hover.js ***! + \**************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ createHover: () => (/* binding */ createHover) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var _utils_matchesType_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/matchesType.js */ "./node_modules/dnd-core/dist/utils/matchesType.js"); +/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./types.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); + + + +function createHover(manager) { + return function hover(targetIdsArg, { clientOffset } = {}) { + verifyTargetIdsIsArray(targetIdsArg); + const targetIds = targetIdsArg.slice(0); + const monitor = manager.getMonitor(); + const registry = manager.getRegistry(); + const draggedItemType = monitor.getItemType(); + removeNonMatchingTargetIds(targetIds, registry, draggedItemType); + checkInvariants(targetIds, monitor, registry); + hoverAllTargets(targetIds, monitor, registry); + return { + type: _types_js__WEBPACK_IMPORTED_MODULE_1__.HOVER, + payload: { + targetIds, + clientOffset: clientOffset || null + } + }; + }; +} +function verifyTargetIdsIsArray(targetIdsArg) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(Array.isArray(targetIdsArg), 'Expected targetIds to be an array.'); +} +function checkInvariants(targetIds, monitor, registry) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(monitor.isDragging(), 'Cannot call hover while not dragging.'); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(!monitor.didDrop(), 'Cannot call hover after drop.'); + for(let i = 0; i < targetIds.length; i++){ + const targetId = targetIds[i]; + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(targetIds.lastIndexOf(targetId) === i, 'Expected targetIds to be unique in the passed array.'); + const target = registry.getTarget(targetId); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(target, 'Expected targetIds to be registered.'); + } +} +function removeNonMatchingTargetIds(targetIds, registry, draggedItemType) { + // Remove those targetIds that don't match the targetType. This + // fixes shallow isOver which would only be non-shallow because of + // non-matching targets. + for(let i = targetIds.length - 1; i >= 0; i--){ + const targetId = targetIds[i]; + const targetType = registry.getTargetType(targetId); + if (!(0,_utils_matchesType_js__WEBPACK_IMPORTED_MODULE_2__.matchesType)(targetType, draggedItemType)) { + targetIds.splice(i, 1); + } + } +} +function hoverAllTargets(targetIds, monitor, registry) { + // Finally call hover on all matching targets. + targetIds.forEach(function(targetId) { + const target = registry.getTarget(targetId); + target.hover(monitor, targetId); + }); +} + +//# sourceMappingURL=hover.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/dragDrop/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/dragDrop/index.js ***! + \**************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ BEGIN_DRAG: () => (/* reexport safe */ _types_js__WEBPACK_IMPORTED_MODULE_0__.BEGIN_DRAG), +/* harmony export */ DROP: () => (/* reexport safe */ _types_js__WEBPACK_IMPORTED_MODULE_0__.DROP), +/* harmony export */ END_DRAG: () => (/* reexport safe */ _types_js__WEBPACK_IMPORTED_MODULE_0__.END_DRAG), +/* harmony export */ HOVER: () => (/* reexport safe */ _types_js__WEBPACK_IMPORTED_MODULE_0__.HOVER), +/* harmony export */ INIT_COORDS: () => (/* reexport safe */ _types_js__WEBPACK_IMPORTED_MODULE_0__.INIT_COORDS), +/* harmony export */ PUBLISH_DRAG_SOURCE: () => (/* reexport safe */ _types_js__WEBPACK_IMPORTED_MODULE_0__.PUBLISH_DRAG_SOURCE), +/* harmony export */ createDragDropActions: () => (/* binding */ createDragDropActions) +/* harmony export */ }); +/* harmony import */ var _beginDrag_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./beginDrag.js */ "./node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js"); +/* harmony import */ var _drop_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./drop.js */ "./node_modules/dnd-core/dist/actions/dragDrop/drop.js"); +/* harmony import */ var _endDrag_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./endDrag.js */ "./node_modules/dnd-core/dist/actions/dragDrop/endDrag.js"); +/* harmony import */ var _hover_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./hover.js */ "./node_modules/dnd-core/dist/actions/dragDrop/hover.js"); +/* harmony import */ var _publishDragSource_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./publishDragSource.js */ "./node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js"); +/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); + + + + + + +function createDragDropActions(manager) { + return { + beginDrag: (0,_beginDrag_js__WEBPACK_IMPORTED_MODULE_1__.createBeginDrag)(manager), + publishDragSource: (0,_publishDragSource_js__WEBPACK_IMPORTED_MODULE_2__.createPublishDragSource)(manager), + hover: (0,_hover_js__WEBPACK_IMPORTED_MODULE_3__.createHover)(manager), + drop: (0,_drop_js__WEBPACK_IMPORTED_MODULE_4__.createDrop)(manager), + endDrag: (0,_endDrag_js__WEBPACK_IMPORTED_MODULE_5__.createEndDrag)(manager) + }; +} + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js": +/*!******************************************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ setClientOffset: () => (/* binding */ setClientOffset) +/* harmony export */ }); +/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../types.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); + +function setClientOffset(clientOffset, sourceClientOffset) { + return { + type: _types_js__WEBPACK_IMPORTED_MODULE_0__.INIT_COORDS, + payload: { + sourceClientOffset: sourceClientOffset || null, + clientOffset: clientOffset || null + } + }; +} + +//# sourceMappingURL=setClientOffset.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js": +/*!**************************************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js ***! + \**************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ createPublishDragSource: () => (/* binding */ createPublishDragSource) +/* harmony export */ }); +/* harmony import */ var _types_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./types.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); + +function createPublishDragSource(manager) { + return function publishDragSource() { + const monitor = manager.getMonitor(); + if (monitor.isDragging()) { + return { + type: _types_js__WEBPACK_IMPORTED_MODULE_0__.PUBLISH_DRAG_SOURCE + }; + } + return; + }; +} + +//# sourceMappingURL=publishDragSource.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/dragDrop/types.js": +/*!**************************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/dragDrop/types.js ***! + \**************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ BEGIN_DRAG: () => (/* binding */ BEGIN_DRAG), +/* harmony export */ DROP: () => (/* binding */ DROP), +/* harmony export */ END_DRAG: () => (/* binding */ END_DRAG), +/* harmony export */ HOVER: () => (/* binding */ HOVER), +/* harmony export */ INIT_COORDS: () => (/* binding */ INIT_COORDS), +/* harmony export */ PUBLISH_DRAG_SOURCE: () => (/* binding */ PUBLISH_DRAG_SOURCE) +/* harmony export */ }); +const INIT_COORDS = 'dnd-core/INIT_COORDS'; +const BEGIN_DRAG = 'dnd-core/BEGIN_DRAG'; +const PUBLISH_DRAG_SOURCE = 'dnd-core/PUBLISH_DRAG_SOURCE'; +const HOVER = 'dnd-core/HOVER'; +const DROP = 'dnd-core/DROP'; +const END_DRAG = 'dnd-core/END_DRAG'; + +//# sourceMappingURL=types.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/actions/registry.js": +/*!********************************************************!*\ + !*** ./node_modules/dnd-core/dist/actions/registry.js ***! + \********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ADD_SOURCE: () => (/* binding */ ADD_SOURCE), +/* harmony export */ ADD_TARGET: () => (/* binding */ ADD_TARGET), +/* harmony export */ REMOVE_SOURCE: () => (/* binding */ REMOVE_SOURCE), +/* harmony export */ REMOVE_TARGET: () => (/* binding */ REMOVE_TARGET), +/* harmony export */ addSource: () => (/* binding */ addSource), +/* harmony export */ addTarget: () => (/* binding */ addTarget), +/* harmony export */ removeSource: () => (/* binding */ removeSource), +/* harmony export */ removeTarget: () => (/* binding */ removeTarget) +/* harmony export */ }); +const ADD_SOURCE = 'dnd-core/ADD_SOURCE'; +const ADD_TARGET = 'dnd-core/ADD_TARGET'; +const REMOVE_SOURCE = 'dnd-core/REMOVE_SOURCE'; +const REMOVE_TARGET = 'dnd-core/REMOVE_TARGET'; +function addSource(sourceId) { + return { + type: ADD_SOURCE, + payload: { + sourceId + } + }; +} +function addTarget(targetId) { + return { + type: ADD_TARGET, + payload: { + targetId + } + }; +} +function removeSource(sourceId) { + return { + type: REMOVE_SOURCE, + payload: { + sourceId + } + }; +} +function removeTarget(targetId) { + return { + type: REMOVE_TARGET, + payload: { + targetId + } + }; +} + +//# sourceMappingURL=registry.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/classes/DragDropManagerImpl.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dnd-core/dist/classes/DragDropManagerImpl.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DragDropManagerImpl: () => (/* binding */ DragDropManagerImpl) +/* harmony export */ }); +/* harmony import */ var _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actions/dragDrop/index.js */ "./node_modules/dnd-core/dist/actions/dragDrop/index.js"); + +class DragDropManagerImpl { + receiveBackend(backend) { + this.backend = backend; + } + getMonitor() { + return this.monitor; + } + getBackend() { + return this.backend; + } + getRegistry() { + return this.monitor.registry; + } + getActions() { + /* eslint-disable-next-line @typescript-eslint/no-this-alias */ const manager = this; + const { dispatch } = this.store; + function bindActionCreator(actionCreator) { + return (...args)=>{ + const action = actionCreator.apply(manager, args); + if (typeof action !== 'undefined') { + dispatch(action); + } + }; + } + const actions = (0,_actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.createDragDropActions)(this); + return Object.keys(actions).reduce((boundActions, key)=>{ + const action = actions[key]; + boundActions[key] = bindActionCreator(action); + return boundActions; + }, {}); + } + dispatch(action) { + this.store.dispatch(action); + } + constructor(store, monitor){ + this.isSetUp = false; + this.handleRefCountChange = ()=>{ + const shouldSetUp = this.store.getState().refCount > 0; + if (this.backend) { + if (shouldSetUp && !this.isSetUp) { + this.backend.setup(); + this.isSetUp = true; + } else if (!shouldSetUp && this.isSetUp) { + this.backend.teardown(); + this.isSetUp = false; + } + } + }; + this.store = store; + this.monitor = monitor; + store.subscribe(this.handleRefCountChange); + } +} + +//# sourceMappingURL=DragDropManagerImpl.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DragDropMonitorImpl: () => (/* binding */ DragDropMonitorImpl) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var _utils_coords_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/coords.js */ "./node_modules/dnd-core/dist/utils/coords.js"); +/* harmony import */ var _utils_dirtiness_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/dirtiness.js */ "./node_modules/dnd-core/dist/utils/dirtiness.js"); +/* harmony import */ var _utils_matchesType_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/matchesType.js */ "./node_modules/dnd-core/dist/utils/matchesType.js"); + + + + +class DragDropMonitorImpl { + subscribeToStateChange(listener, options = {}) { + const { handlerIds } = options; + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof listener === 'function', 'listener must be a function.'); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof handlerIds === 'undefined' || Array.isArray(handlerIds), 'handlerIds, when specified, must be an array of strings.'); + let prevStateId = this.store.getState().stateId; + const handleChange = ()=>{ + const state = this.store.getState(); + const currentStateId = state.stateId; + try { + const canSkipListener = currentStateId === prevStateId || currentStateId === prevStateId + 1 && !(0,_utils_dirtiness_js__WEBPACK_IMPORTED_MODULE_1__.areDirty)(state.dirtyHandlerIds, handlerIds); + if (!canSkipListener) { + listener(); + } + } finally{ + prevStateId = currentStateId; + } + }; + return this.store.subscribe(handleChange); + } + subscribeToOffsetChange(listener) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof listener === 'function', 'listener must be a function.'); + let previousState = this.store.getState().dragOffset; + const handleChange = ()=>{ + const nextState = this.store.getState().dragOffset; + if (nextState === previousState) { + return; + } + previousState = nextState; + listener(); + }; + return this.store.subscribe(handleChange); + } + canDragSource(sourceId) { + if (!sourceId) { + return false; + } + const source = this.registry.getSource(sourceId); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(source, `Expected to find a valid source. sourceId=${sourceId}`); + if (this.isDragging()) { + return false; + } + return source.canDrag(this, sourceId); + } + canDropOnTarget(targetId) { + // undefined on initial render + if (!targetId) { + return false; + } + const target = this.registry.getTarget(targetId); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(target, `Expected to find a valid target. targetId=${targetId}`); + if (!this.isDragging() || this.didDrop()) { + return false; + } + const targetType = this.registry.getTargetType(targetId); + const draggedItemType = this.getItemType(); + return (0,_utils_matchesType_js__WEBPACK_IMPORTED_MODULE_2__.matchesType)(targetType, draggedItemType) && target.canDrop(this, targetId); + } + isDragging() { + return Boolean(this.getItemType()); + } + isDraggingSource(sourceId) { + // undefined on initial render + if (!sourceId) { + return false; + } + const source = this.registry.getSource(sourceId, true); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(source, `Expected to find a valid source. sourceId=${sourceId}`); + if (!this.isDragging() || !this.isSourcePublic()) { + return false; + } + const sourceType = this.registry.getSourceType(sourceId); + const draggedItemType = this.getItemType(); + if (sourceType !== draggedItemType) { + return false; + } + return source.isDragging(this, sourceId); + } + isOverTarget(targetId, options = { + shallow: false + }) { + // undefined on initial render + if (!targetId) { + return false; + } + const { shallow } = options; + if (!this.isDragging()) { + return false; + } + const targetType = this.registry.getTargetType(targetId); + const draggedItemType = this.getItemType(); + if (draggedItemType && !(0,_utils_matchesType_js__WEBPACK_IMPORTED_MODULE_2__.matchesType)(targetType, draggedItemType)) { + return false; + } + const targetIds = this.getTargetIds(); + if (!targetIds.length) { + return false; + } + const index = targetIds.indexOf(targetId); + if (shallow) { + return index === targetIds.length - 1; + } else { + return index > -1; + } + } + getItemType() { + return this.store.getState().dragOperation.itemType; + } + getItem() { + return this.store.getState().dragOperation.item; + } + getSourceId() { + return this.store.getState().dragOperation.sourceId; + } + getTargetIds() { + return this.store.getState().dragOperation.targetIds; + } + getDropResult() { + return this.store.getState().dragOperation.dropResult; + } + didDrop() { + return this.store.getState().dragOperation.didDrop; + } + isSourcePublic() { + return Boolean(this.store.getState().dragOperation.isSourcePublic); + } + getInitialClientOffset() { + return this.store.getState().dragOffset.initialClientOffset; + } + getInitialSourceClientOffset() { + return this.store.getState().dragOffset.initialSourceClientOffset; + } + getClientOffset() { + return this.store.getState().dragOffset.clientOffset; + } + getSourceClientOffset() { + return (0,_utils_coords_js__WEBPACK_IMPORTED_MODULE_3__.getSourceClientOffset)(this.store.getState().dragOffset); + } + getDifferenceFromInitialOffset() { + return (0,_utils_coords_js__WEBPACK_IMPORTED_MODULE_3__.getDifferenceFromInitialOffset)(this.store.getState().dragOffset); + } + constructor(store, registry){ + this.store = store; + this.registry = registry; + } +} + +//# sourceMappingURL=DragDropMonitorImpl.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js": +/*!*******************************************************************!*\ + !*** ./node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js ***! + \*******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ HandlerRegistryImpl: () => (/* binding */ HandlerRegistryImpl) +/* harmony export */ }); +/* harmony import */ var _react_dnd_asap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/asap */ "./node_modules/@react-dnd/asap/dist/index.js"); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var _actions_registry_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../actions/registry.js */ "./node_modules/dnd-core/dist/actions/registry.js"); +/* harmony import */ var _contracts_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../contracts.js */ "./node_modules/dnd-core/dist/contracts.js"); +/* harmony import */ var _interfaces_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../interfaces.js */ "./node_modules/dnd-core/dist/interfaces.js"); +/* harmony import */ var _utils_getNextUniqueId_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getNextUniqueId.js */ "./node_modules/dnd-core/dist/utils/getNextUniqueId.js"); + + + + + + +function getNextHandlerId(role) { + const id = (0,_utils_getNextUniqueId_js__WEBPACK_IMPORTED_MODULE_2__.getNextUniqueId)().toString(); + switch(role){ + case _interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.SOURCE: + return `S${id}`; + case _interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.TARGET: + return `T${id}`; + default: + throw new Error(`Unknown Handler Role: ${role}`); + } +} +function parseRoleFromHandlerId(handlerId) { + switch(handlerId[0]){ + case 'S': + return _interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.SOURCE; + case 'T': + return _interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.TARGET; + default: + throw new Error(`Cannot parse handler ID: ${handlerId}`); + } +} +function mapContainsValue(map, searchValue) { + const entries = map.entries(); + let isDone = false; + do { + const { done , value: [, value] , } = entries.next(); + if (value === searchValue) { + return true; + } + isDone = !!done; + }while (!isDone) + return false; +} +class HandlerRegistryImpl { + addSource(type, source) { + (0,_contracts_js__WEBPACK_IMPORTED_MODULE_4__.validateType)(type); + (0,_contracts_js__WEBPACK_IMPORTED_MODULE_4__.validateSourceContract)(source); + const sourceId = this.addHandler(_interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.SOURCE, type, source); + this.store.dispatch((0,_actions_registry_js__WEBPACK_IMPORTED_MODULE_5__.addSource)(sourceId)); + return sourceId; + } + addTarget(type, target) { + (0,_contracts_js__WEBPACK_IMPORTED_MODULE_4__.validateType)(type, true); + (0,_contracts_js__WEBPACK_IMPORTED_MODULE_4__.validateTargetContract)(target); + const targetId = this.addHandler(_interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.TARGET, type, target); + this.store.dispatch((0,_actions_registry_js__WEBPACK_IMPORTED_MODULE_5__.addTarget)(targetId)); + return targetId; + } + containsHandler(handler) { + return mapContainsValue(this.dragSources, handler) || mapContainsValue(this.dropTargets, handler); + } + getSource(sourceId, includePinned = false) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__.invariant)(this.isSourceId(sourceId), 'Expected a valid source ID.'); + const isPinned = includePinned && sourceId === this.pinnedSourceId; + const source = isPinned ? this.pinnedSource : this.dragSources.get(sourceId); + return source; + } + getTarget(targetId) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__.invariant)(this.isTargetId(targetId), 'Expected a valid target ID.'); + return this.dropTargets.get(targetId); + } + getSourceType(sourceId) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__.invariant)(this.isSourceId(sourceId), 'Expected a valid source ID.'); + return this.types.get(sourceId); + } + getTargetType(targetId) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__.invariant)(this.isTargetId(targetId), 'Expected a valid target ID.'); + return this.types.get(targetId); + } + isSourceId(handlerId) { + const role = parseRoleFromHandlerId(handlerId); + return role === _interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.SOURCE; + } + isTargetId(handlerId) { + const role = parseRoleFromHandlerId(handlerId); + return role === _interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.TARGET; + } + removeSource(sourceId) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__.invariant)(this.getSource(sourceId), 'Expected an existing source.'); + this.store.dispatch((0,_actions_registry_js__WEBPACK_IMPORTED_MODULE_5__.removeSource)(sourceId)); + (0,_react_dnd_asap__WEBPACK_IMPORTED_MODULE_0__.asap)(()=>{ + this.dragSources.delete(sourceId); + this.types.delete(sourceId); + }); + } + removeTarget(targetId) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__.invariant)(this.getTarget(targetId), 'Expected an existing target.'); + this.store.dispatch((0,_actions_registry_js__WEBPACK_IMPORTED_MODULE_5__.removeTarget)(targetId)); + this.dropTargets.delete(targetId); + this.types.delete(targetId); + } + pinSource(sourceId) { + const source = this.getSource(sourceId); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__.invariant)(source, 'Expected an existing source.'); + this.pinnedSourceId = sourceId; + this.pinnedSource = source; + } + unpinSource() { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_1__.invariant)(this.pinnedSource, 'No source is pinned at the time.'); + this.pinnedSourceId = null; + this.pinnedSource = null; + } + addHandler(role, type, handler) { + const id = getNextHandlerId(role); + this.types.set(id, type); + if (role === _interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.SOURCE) { + this.dragSources.set(id, handler); + } else if (role === _interfaces_js__WEBPACK_IMPORTED_MODULE_3__.HandlerRole.TARGET) { + this.dropTargets.set(id, handler); + } + return id; + } + constructor(store){ + this.types = new Map(); + this.dragSources = new Map(); + this.dropTargets = new Map(); + this.pinnedSourceId = null; + this.pinnedSource = null; + this.store = store; + } +} + +//# sourceMappingURL=HandlerRegistryImpl.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/contracts.js": +/*!*************************************************!*\ + !*** ./node_modules/dnd-core/dist/contracts.js ***! + \*************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ validateSourceContract: () => (/* binding */ validateSourceContract), +/* harmony export */ validateTargetContract: () => (/* binding */ validateTargetContract), +/* harmony export */ validateType: () => (/* binding */ validateType) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); + +function validateSourceContract(source) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof source.canDrag === 'function', 'Expected canDrag to be a function.'); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof source.beginDrag === 'function', 'Expected beginDrag to be a function.'); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof source.endDrag === 'function', 'Expected endDrag to be a function.'); +} +function validateTargetContract(target) { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof target.canDrop === 'function', 'Expected canDrop to be a function.'); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof target.hover === 'function', 'Expected hover to be a function.'); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof target.drop === 'function', 'Expected beginDrag to be a function.'); +} +function validateType(type, allowArray) { + if (allowArray && Array.isArray(type)) { + type.forEach((t)=>validateType(t, false) + ); + return; + } + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof type === 'string' || typeof type === 'symbol', allowArray ? 'Type can only be a string, a symbol, or an array of either.' : 'Type can only be a string or a symbol.'); +} + +//# sourceMappingURL=contracts.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/createDragDropManager.js": +/*!*************************************************************!*\ + !*** ./node_modules/dnd-core/dist/createDragDropManager.js ***! + \*************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ createDragDropManager: () => (/* binding */ createDragDropManager) +/* harmony export */ }); +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux */ "./node_modules/redux/es/redux.js"); +/* harmony import */ var _classes_DragDropManagerImpl_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./classes/DragDropManagerImpl.js */ "./node_modules/dnd-core/dist/classes/DragDropManagerImpl.js"); +/* harmony import */ var _classes_DragDropMonitorImpl_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./classes/DragDropMonitorImpl.js */ "./node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js"); +/* harmony import */ var _classes_HandlerRegistryImpl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./classes/HandlerRegistryImpl.js */ "./node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js"); +/* harmony import */ var _reducers_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./reducers/index.js */ "./node_modules/dnd-core/dist/reducers/index.js"); + + + + + +function createDragDropManager(backendFactory, globalContext = undefined, backendOptions = {}, debugMode = false) { + const store = makeStoreInstance(debugMode); + const monitor = new _classes_DragDropMonitorImpl_js__WEBPACK_IMPORTED_MODULE_0__.DragDropMonitorImpl(store, new _classes_HandlerRegistryImpl_js__WEBPACK_IMPORTED_MODULE_1__.HandlerRegistryImpl(store)); + const manager = new _classes_DragDropManagerImpl_js__WEBPACK_IMPORTED_MODULE_2__.DragDropManagerImpl(store, monitor); + const backend = backendFactory(manager, globalContext, backendOptions); + manager.receiveBackend(backend); + return manager; +} +function makeStoreInstance(debugMode) { + // TODO: if we ever make a react-native version of this, + // we'll need to consider how to pull off dev-tooling + const reduxDevTools = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__; + return (0,redux__WEBPACK_IMPORTED_MODULE_3__.createStore)(_reducers_index_js__WEBPACK_IMPORTED_MODULE_4__.reduce, debugMode && reduxDevTools && reduxDevTools({ + name: 'dnd-core', + instanceId: 'dnd-core' + })); +} + +//# sourceMappingURL=createDragDropManager.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/interfaces.js": +/*!**************************************************!*\ + !*** ./node_modules/dnd-core/dist/interfaces.js ***! + \**************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ HandlerRole: () => (/* binding */ HandlerRole) +/* harmony export */ }); +var HandlerRole; +(function(HandlerRole) { + HandlerRole["SOURCE"] = "SOURCE"; + HandlerRole["TARGET"] = "TARGET"; +})(HandlerRole || (HandlerRole = {})); + +//# sourceMappingURL=interfaces.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js": +/*!****************************************************************!*\ + !*** ./node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js ***! + \****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ reduce: () => (/* binding */ reduce) +/* harmony export */ }); +/* harmony import */ var _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actions/dragDrop/index.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); +/* harmony import */ var _actions_registry_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../actions/registry.js */ "./node_modules/dnd-core/dist/actions/registry.js"); +/* harmony import */ var _utils_dirtiness_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/dirtiness.js */ "./node_modules/dnd-core/dist/utils/dirtiness.js"); +/* harmony import */ var _utils_equality_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/equality.js */ "./node_modules/dnd-core/dist/utils/equality.js"); +/* harmony import */ var _utils_js_utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/js_utils.js */ "./node_modules/dnd-core/dist/utils/js_utils.js"); + + + + + +function reduce(// eslint-disable-next-line @typescript-eslint/no-unused-vars +_state = _utils_dirtiness_js__WEBPACK_IMPORTED_MODULE_0__.NONE, action) { + switch(action.type){ + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_1__.HOVER: + break; + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_2__.ADD_SOURCE: + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_2__.ADD_TARGET: + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_2__.REMOVE_TARGET: + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_2__.REMOVE_SOURCE: + return _utils_dirtiness_js__WEBPACK_IMPORTED_MODULE_0__.NONE; + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_1__.BEGIN_DRAG: + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_1__.PUBLISH_DRAG_SOURCE: + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_1__.END_DRAG: + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_1__.DROP: + default: + return _utils_dirtiness_js__WEBPACK_IMPORTED_MODULE_0__.ALL; + } + const { targetIds =[] , prevTargetIds =[] } = action.payload; + const result = (0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_3__.xor)(targetIds, prevTargetIds); + const didChange = result.length > 0 || !(0,_utils_equality_js__WEBPACK_IMPORTED_MODULE_4__.areArraysEqual)(targetIds, prevTargetIds); + if (!didChange) { + return _utils_dirtiness_js__WEBPACK_IMPORTED_MODULE_0__.NONE; + } + // Check the target ids at the innermost position. If they are valid, add them + // to the result + const prevInnermostTargetId = prevTargetIds[prevTargetIds.length - 1]; + const innermostTargetId = targetIds[targetIds.length - 1]; + if (prevInnermostTargetId !== innermostTargetId) { + if (prevInnermostTargetId) { + result.push(prevInnermostTargetId); + } + if (innermostTargetId) { + result.push(innermostTargetId); + } + } + return result; +} + +//# sourceMappingURL=dirtyHandlerIds.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/reducers/dragOffset.js": +/*!***********************************************************!*\ + !*** ./node_modules/dnd-core/dist/reducers/dragOffset.js ***! + \***********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ reduce: () => (/* binding */ reduce) +/* harmony export */ }); +/* harmony import */ var _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actions/dragDrop/index.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); +/* harmony import */ var _utils_equality_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/equality.js */ "./node_modules/dnd-core/dist/utils/equality.js"); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; +} +function _objectSpread(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + ownKeys.forEach(function(key) { + _defineProperty(target, key, source[key]); + }); + } + return target; +} + + +const initialState = { + initialSourceClientOffset: null, + initialClientOffset: null, + clientOffset: null +}; +function reduce(state = initialState, action) { + const { payload } = action; + switch(action.type){ + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.INIT_COORDS: + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.BEGIN_DRAG: + return { + initialSourceClientOffset: payload.sourceClientOffset, + initialClientOffset: payload.clientOffset, + clientOffset: payload.clientOffset + }; + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.HOVER: + if ((0,_utils_equality_js__WEBPACK_IMPORTED_MODULE_1__.areCoordsEqual)(state.clientOffset, payload.clientOffset)) { + return state; + } + return _objectSpread({}, state, { + clientOffset: payload.clientOffset + }); + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.END_DRAG: + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.DROP: + return initialState; + default: + return state; + } +} + +//# sourceMappingURL=dragOffset.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/reducers/dragOperation.js": +/*!**************************************************************!*\ + !*** ./node_modules/dnd-core/dist/reducers/dragOperation.js ***! + \**************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ reduce: () => (/* binding */ reduce) +/* harmony export */ }); +/* harmony import */ var _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actions/dragDrop/index.js */ "./node_modules/dnd-core/dist/actions/dragDrop/types.js"); +/* harmony import */ var _actions_registry_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../actions/registry.js */ "./node_modules/dnd-core/dist/actions/registry.js"); +/* harmony import */ var _utils_js_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/js_utils.js */ "./node_modules/dnd-core/dist/utils/js_utils.js"); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; +} +function _objectSpread(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + ownKeys.forEach(function(key) { + _defineProperty(target, key, source[key]); + }); + } + return target; +} + + + +const initialState = { + itemType: null, + item: null, + sourceId: null, + targetIds: [], + dropResult: null, + didDrop: false, + isSourcePublic: null +}; +function reduce(state = initialState, action) { + const { payload } = action; + switch(action.type){ + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.BEGIN_DRAG: + return _objectSpread({}, state, { + itemType: payload.itemType, + item: payload.item, + sourceId: payload.sourceId, + isSourcePublic: payload.isSourcePublic, + dropResult: null, + didDrop: false + }); + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.PUBLISH_DRAG_SOURCE: + return _objectSpread({}, state, { + isSourcePublic: true + }); + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.HOVER: + return _objectSpread({}, state, { + targetIds: payload.targetIds + }); + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_1__.REMOVE_TARGET: + if (state.targetIds.indexOf(payload.targetId) === -1) { + return state; + } + return _objectSpread({}, state, { + targetIds: (0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_2__.without)(state.targetIds, payload.targetId) + }); + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.DROP: + return _objectSpread({}, state, { + dropResult: payload.dropResult, + didDrop: true, + targetIds: [] + }); + case _actions_dragDrop_index_js__WEBPACK_IMPORTED_MODULE_0__.END_DRAG: + return _objectSpread({}, state, { + itemType: null, + item: null, + sourceId: null, + dropResult: null, + didDrop: false, + isSourcePublic: null, + targetIds: [] + }); + default: + return state; + } +} + +//# sourceMappingURL=dragOperation.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/reducers/index.js": +/*!******************************************************!*\ + !*** ./node_modules/dnd-core/dist/reducers/index.js ***! + \******************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ reduce: () => (/* binding */ reduce) +/* harmony export */ }); +/* harmony import */ var _utils_js_utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/js_utils.js */ "./node_modules/dnd-core/dist/utils/js_utils.js"); +/* harmony import */ var _dirtyHandlerIds_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dirtyHandlerIds.js */ "./node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js"); +/* harmony import */ var _dragOffset_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dragOffset.js */ "./node_modules/dnd-core/dist/reducers/dragOffset.js"); +/* harmony import */ var _dragOperation_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dragOperation.js */ "./node_modules/dnd-core/dist/reducers/dragOperation.js"); +/* harmony import */ var _refCount_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./refCount.js */ "./node_modules/dnd-core/dist/reducers/refCount.js"); +/* harmony import */ var _stateId_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./stateId.js */ "./node_modules/dnd-core/dist/reducers/stateId.js"); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; +} +function _objectSpread(target) { + for(var i = 1; i < arguments.length; i++){ + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + ownKeys.forEach(function(key) { + _defineProperty(target, key, source[key]); + }); + } + return target; +} + + + + + + +function reduce(state = {}, action) { + return { + dirtyHandlerIds: (0,_dirtyHandlerIds_js__WEBPACK_IMPORTED_MODULE_0__.reduce)(state.dirtyHandlerIds, { + type: action.type, + payload: _objectSpread({}, action.payload, { + prevTargetIds: (0,_utils_js_utils_js__WEBPACK_IMPORTED_MODULE_1__.get)(state, 'dragOperation.targetIds', []) + }) + }), + dragOffset: (0,_dragOffset_js__WEBPACK_IMPORTED_MODULE_2__.reduce)(state.dragOffset, action), + refCount: (0,_refCount_js__WEBPACK_IMPORTED_MODULE_3__.reduce)(state.refCount, action), + dragOperation: (0,_dragOperation_js__WEBPACK_IMPORTED_MODULE_4__.reduce)(state.dragOperation, action), + stateId: (0,_stateId_js__WEBPACK_IMPORTED_MODULE_5__.reduce)(state.stateId) + }; +} + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/reducers/refCount.js": +/*!*********************************************************!*\ + !*** ./node_modules/dnd-core/dist/reducers/refCount.js ***! + \*********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ reduce: () => (/* binding */ reduce) +/* harmony export */ }); +/* harmony import */ var _actions_registry_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../actions/registry.js */ "./node_modules/dnd-core/dist/actions/registry.js"); + +function reduce(state = 0, action) { + switch(action.type){ + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_0__.ADD_SOURCE: + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_0__.ADD_TARGET: + return state + 1; + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_0__.REMOVE_SOURCE: + case _actions_registry_js__WEBPACK_IMPORTED_MODULE_0__.REMOVE_TARGET: + return state - 1; + default: + return state; + } +} + +//# sourceMappingURL=refCount.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/reducers/stateId.js": +/*!********************************************************!*\ + !*** ./node_modules/dnd-core/dist/reducers/stateId.js ***! + \********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ reduce: () => (/* binding */ reduce) +/* harmony export */ }); +function reduce(state = 0) { + return state + 1; +} + +//# sourceMappingURL=stateId.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/utils/coords.js": +/*!****************************************************!*\ + !*** ./node_modules/dnd-core/dist/utils/coords.js ***! + \****************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ add: () => (/* binding */ add), +/* harmony export */ getDifferenceFromInitialOffset: () => (/* binding */ getDifferenceFromInitialOffset), +/* harmony export */ getSourceClientOffset: () => (/* binding */ getSourceClientOffset), +/* harmony export */ subtract: () => (/* binding */ subtract) +/* harmony export */ }); +/** + * Coordinate addition + * @param a The first coordinate + * @param b The second coordinate + */ function add(a, b) { + return { + x: a.x + b.x, + y: a.y + b.y + }; +} +/** + * Coordinate subtraction + * @param a The first coordinate + * @param b The second coordinate + */ function subtract(a, b) { + return { + x: a.x - b.x, + y: a.y - b.y + }; +} +/** + * Returns the cartesian distance of the drag source component's position, based on its position + * at the time when the current drag operation has started, and the movement difference. + * + * Returns null if no item is being dragged. + * + * @param state The offset state to compute from + */ function getSourceClientOffset(state) { + const { clientOffset , initialClientOffset , initialSourceClientOffset } = state; + if (!clientOffset || !initialClientOffset || !initialSourceClientOffset) { + return null; + } + return subtract(add(clientOffset, initialSourceClientOffset), initialClientOffset); +} +/** + * Determines the x,y offset between the client offset and the initial client offset + * + * @param state The offset state to compute from + */ function getDifferenceFromInitialOffset(state) { + const { clientOffset , initialClientOffset } = state; + if (!clientOffset || !initialClientOffset) { + return null; + } + return subtract(clientOffset, initialClientOffset); +} + +//# sourceMappingURL=coords.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/utils/dirtiness.js": +/*!*******************************************************!*\ + !*** ./node_modules/dnd-core/dist/utils/dirtiness.js ***! + \*******************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ALL: () => (/* binding */ ALL), +/* harmony export */ NONE: () => (/* binding */ NONE), +/* harmony export */ areDirty: () => (/* binding */ areDirty) +/* harmony export */ }); +/* harmony import */ var _js_utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./js_utils.js */ "./node_modules/dnd-core/dist/utils/js_utils.js"); + +const NONE = []; +const ALL = []; +NONE.__IS_NONE__ = true; +ALL.__IS_ALL__ = true; +/** + * Determines if the given handler IDs are dirty or not. + * + * @param dirtyIds The set of dirty handler ids + * @param handlerIds The set of handler ids to check + */ function areDirty(dirtyIds, handlerIds) { + if (dirtyIds === NONE) { + return false; + } + if (dirtyIds === ALL || typeof handlerIds === 'undefined') { + return true; + } + const commonIds = (0,_js_utils_js__WEBPACK_IMPORTED_MODULE_0__.intersection)(handlerIds, dirtyIds); + return commonIds.length > 0; +} + +//# sourceMappingURL=dirtiness.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/utils/equality.js": +/*!******************************************************!*\ + !*** ./node_modules/dnd-core/dist/utils/equality.js ***! + \******************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ areArraysEqual: () => (/* binding */ areArraysEqual), +/* harmony export */ areCoordsEqual: () => (/* binding */ areCoordsEqual), +/* harmony export */ strictEquality: () => (/* binding */ strictEquality) +/* harmony export */ }); +const strictEquality = (a, b)=>a === b +; +/** + * Determine if two cartesian coordinate offsets are equal + * @param offsetA + * @param offsetB + */ function areCoordsEqual(offsetA, offsetB) { + if (!offsetA && !offsetB) { + return true; + } else if (!offsetA || !offsetB) { + return false; + } else { + return offsetA.x === offsetB.x && offsetA.y === offsetB.y; + } +} +/** + * Determines if two arrays of items are equal + * @param a The first array of items + * @param b The second array of items + */ function areArraysEqual(a, b, isEqual = strictEquality) { + if (a.length !== b.length) { + return false; + } + for(let i = 0; i < a.length; ++i){ + if (!isEqual(a[i], b[i])) { + return false; + } + } + return true; +} + +//# sourceMappingURL=equality.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/utils/getNextUniqueId.js": +/*!*************************************************************!*\ + !*** ./node_modules/dnd-core/dist/utils/getNextUniqueId.js ***! + \*************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ getNextUniqueId: () => (/* binding */ getNextUniqueId) +/* harmony export */ }); +let nextUniqueId = 0; +function getNextUniqueId() { + return nextUniqueId++; +} + +//# sourceMappingURL=getNextUniqueId.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/utils/js_utils.js": +/*!******************************************************!*\ + !*** ./node_modules/dnd-core/dist/utils/js_utils.js ***! + \******************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ get: () => (/* binding */ get), +/* harmony export */ intersection: () => (/* binding */ intersection), +/* harmony export */ isObject: () => (/* binding */ isObject), +/* harmony export */ isString: () => (/* binding */ isString), +/* harmony export */ without: () => (/* binding */ without), +/* harmony export */ xor: () => (/* binding */ xor) +/* harmony export */ }); +// cheap lodash replacements +/** + * drop-in replacement for _.get + * @param obj + * @param path + * @param defaultValue + */ function get(obj, path, defaultValue) { + return path.split('.').reduce((a, c)=>a && a[c] ? a[c] : defaultValue || null + , obj); +} +/** + * drop-in replacement for _.without + */ function without(items, item) { + return items.filter((i)=>i !== item + ); +} +/** + * drop-in replacement for _.isString + * @param input + */ function isString(input) { + return typeof input === 'string'; +} +/** + * drop-in replacement for _.isString + * @param input + */ function isObject(input) { + return typeof input === 'object'; +} +/** + * replacement for _.xor + * @param itemsA + * @param itemsB + */ function xor(itemsA, itemsB) { + const map = new Map(); + const insertItem = (item)=>{ + map.set(item, map.has(item) ? map.get(item) + 1 : 1); + }; + itemsA.forEach(insertItem); + itemsB.forEach(insertItem); + const result = []; + map.forEach((count, key)=>{ + if (count === 1) { + result.push(key); + } + }); + return result; +} +/** + * replacement for _.intersection + * @param itemsA + * @param itemsB + */ function intersection(itemsA, itemsB) { + return itemsA.filter((t)=>itemsB.indexOf(t) > -1 + ); +} + +//# sourceMappingURL=js_utils.js.map + +/***/ }), + +/***/ "./node_modules/dnd-core/dist/utils/matchesType.js": +/*!*********************************************************!*\ + !*** ./node_modules/dnd-core/dist/utils/matchesType.js ***! + \*********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ matchesType: () => (/* binding */ matchesType) +/* harmony export */ }); +function matchesType(targetType, draggedItemType) { + if (draggedItemType === null) { + return targetType === null; + } + return Array.isArray(targetType) ? targetType.some((t)=>t === draggedItemType + ) : targetType === draggedItemType; +} + +//# sourceMappingURL=matchesType.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/core/DndContext.js": +/*!********************************************************!*\ + !*** ./node_modules/react-dnd/dist/core/DndContext.js ***! + \********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DndContext: () => (/* binding */ DndContext) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); + +/** + * Create the React Context + */ const DndContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({ + dragDropManager: undefined +}); + +//# sourceMappingURL=DndContext.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/core/DndProvider.js": +/*!*********************************************************!*\ + !*** ./node_modules/react-dnd/dist/core/DndProvider.js ***! + \*********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DndProvider: () => (/* binding */ DndProvider) +/* harmony export */ }); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); +/* harmony import */ var dnd_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dnd-core */ "./node_modules/dnd-core/dist/createDragDropManager.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _DndContext_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DndContext.js */ "./node_modules/react-dnd/dist/core/DndContext.js"); +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = _objectWithoutPropertiesLoose(source, excluded); + var key, i; + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + for(i = 0; i < sourceSymbolKeys.length; i++){ + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + return target; +} +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + for(i = 0; i < sourceKeys.length; i++){ + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + return target; +} + + + + +let refCount = 0; +const INSTANCE_SYM = Symbol.for('__REACT_DND_CONTEXT_INSTANCE__'); +var DndProvider = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(function DndProvider(_param) { + var { children } = _param, props = _objectWithoutProperties(_param, [ + "children" + ]); + const [manager, isGlobalInstance] = getDndContextValue(props) // memoized from props + ; + /** + * If the global context was used to store the DND context + * then where theres no more references to it we should + * clean it up to avoid memory leaks + */ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ + if (isGlobalInstance) { + const context = getGlobalContext(); + ++refCount; + return ()=>{ + if (--refCount === 0) { + context[INSTANCE_SYM] = null; + } + }; + } + return; + }, []); + return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_DndContext_js__WEBPACK_IMPORTED_MODULE_2__.DndContext.Provider, { + value: manager, + children: children + }); +}); +/** + * A React component that provides the React-DnD context + */ +function getDndContextValue(props) { + if ('manager' in props) { + const manager = { + dragDropManager: props.manager + }; + return [ + manager, + false + ]; + } + const manager = createSingletonDndContext(props.backend, props.context, props.options, props.debugMode); + const isGlobalInstance = !props.context; + return [ + manager, + isGlobalInstance + ]; +} +function createSingletonDndContext(backend, context = getGlobalContext(), options, debugMode) { + const ctx = context; + if (!ctx[INSTANCE_SYM]) { + ctx[INSTANCE_SYM] = { + dragDropManager: (0,dnd_core__WEBPACK_IMPORTED_MODULE_3__.createDragDropManager)(backend, context, options, debugMode) + }; + } + return ctx[INSTANCE_SYM]; +} +function getGlobalContext() { + return typeof global !== 'undefined' ? global : window; +} + +//# sourceMappingURL=DndProvider.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/core/DragPreviewImage.js": +/*!**************************************************************!*\ + !*** ./node_modules/react-dnd/dist/core/DragPreviewImage.js ***! + \**************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DragPreviewImage: () => (/* binding */ DragPreviewImage) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); + +/** + * A utility for rendering a drag preview image + */ const DragPreviewImage = (0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(function DragPreviewImage({ connect , src }) { + (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{ + if (typeof Image === 'undefined') return; + let connected = false; + const img = new Image(); + img.src = src; + img.onload = ()=>{ + connect(img); + connected = true; + }; + return ()=>{ + if (connected) { + connect(null); + } + }; + }); + return null; +}); + +//# sourceMappingURL=DragPreviewImage.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/core/index.js": +/*!***************************************************!*\ + !*** ./node_modules/react-dnd/dist/core/index.js ***! + \***************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DndContext: () => (/* reexport safe */ _DndContext_js__WEBPACK_IMPORTED_MODULE_0__.DndContext), +/* harmony export */ DndProvider: () => (/* reexport safe */ _DndProvider_js__WEBPACK_IMPORTED_MODULE_1__.DndProvider), +/* harmony export */ DragPreviewImage: () => (/* reexport safe */ _DragPreviewImage_js__WEBPACK_IMPORTED_MODULE_2__.DragPreviewImage) +/* harmony export */ }); +/* harmony import */ var _DndContext_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DndContext.js */ "./node_modules/react-dnd/dist/core/DndContext.js"); +/* harmony import */ var _DndProvider_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DndProvider.js */ "./node_modules/react-dnd/dist/core/DndProvider.js"); +/* harmony import */ var _DragPreviewImage_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DragPreviewImage.js */ "./node_modules/react-dnd/dist/core/DragPreviewImage.js"); + + + + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/index.js": +/*!****************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/index.js ***! + \****************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDrag: () => (/* reexport safe */ _useDrag_index_js__WEBPACK_IMPORTED_MODULE_0__.useDrag), +/* harmony export */ useDragDropManager: () => (/* reexport safe */ _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__.useDragDropManager), +/* harmony export */ useDragLayer: () => (/* reexport safe */ _useDragLayer_js__WEBPACK_IMPORTED_MODULE_2__.useDragLayer), +/* harmony export */ useDrop: () => (/* reexport safe */ _useDrop_index_js__WEBPACK_IMPORTED_MODULE_3__.useDrop) +/* harmony export */ }); +/* harmony import */ var _useDrag_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useDrag/index.js */ "./node_modules/react-dnd/dist/hooks/useDrag/index.js"); +/* harmony import */ var _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useDragDropManager.js */ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js"); +/* harmony import */ var _useDragLayer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useDragLayer.js */ "./node_modules/react-dnd/dist/hooks/useDragLayer.js"); +/* harmony import */ var _useDrop_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useDrop/index.js */ "./node_modules/react-dnd/dist/hooks/useDrop/index.js"); + + + + + + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useCollectedProps.js": +/*!****************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useCollectedProps.js ***! + \****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useCollectedProps: () => (/* binding */ useCollectedProps) +/* harmony export */ }); +/* harmony import */ var _useMonitorOutput_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useMonitorOutput.js */ "./node_modules/react-dnd/dist/hooks/useMonitorOutput.js"); + +function useCollectedProps(collector, monitor, connector) { + return (0,_useMonitorOutput_js__WEBPACK_IMPORTED_MODULE_0__.useMonitorOutput)(monitor, collector || (()=>({}) + ), ()=>connector.reconnect() + ); +} + +//# sourceMappingURL=useCollectedProps.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useCollector.js": +/*!***********************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useCollector.js ***! + \***********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useCollector: () => (/* binding */ useCollector) +/* harmony export */ }); +/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-deep-equal */ "./node_modules/fast-deep-equal/index.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect.js */ "./node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js"); + + + +/** + * + * @param monitor The monitor to collect state from + * @param collect The collecting function + * @param onUpdate A method to invoke when updates occur + */ function useCollector(monitor, collect, onUpdate) { + const [collected, setCollected] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(()=>collect(monitor) + ); + const updateCollected = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(()=>{ + const nextValue = collect(monitor); + // This needs to be a deep-equality check because some monitor-collected values + // include XYCoord objects that may be equivalent, but do not have instance equality. + if (!fast_deep_equal__WEBPACK_IMPORTED_MODULE_0__(collected, nextValue)) { + setCollected(nextValue); + if (onUpdate) { + onUpdate(); + } + } + }, [ + collected, + monitor, + onUpdate + ]); + // update the collected properties after react renders. + // Note that the "Dustbin Stress Test" fails if this is not + // done when the component updates + (0,_useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_2__.useIsomorphicLayoutEffect)(updateCollected); + return [ + collected, + updateCollected + ]; +} + +//# sourceMappingURL=useCollector.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js": +/*!*********************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DragSourceImpl: () => (/* binding */ DragSourceImpl) +/* harmony export */ }); +class DragSourceImpl { + beginDrag() { + const spec = this.spec; + const monitor = this.monitor; + let result = null; + if (typeof spec.item === 'object') { + result = spec.item; + } else if (typeof spec.item === 'function') { + result = spec.item(monitor); + } else { + result = {}; + } + return result !== null && result !== void 0 ? result : null; + } + canDrag() { + const spec = this.spec; + const monitor = this.monitor; + if (typeof spec.canDrag === 'boolean') { + return spec.canDrag; + } else if (typeof spec.canDrag === 'function') { + return spec.canDrag(monitor); + } else { + return true; + } + } + isDragging(globalMonitor, target) { + const spec = this.spec; + const monitor = this.monitor; + const { isDragging } = spec; + return isDragging ? isDragging(monitor) : target === globalMonitor.getSourceId(); + } + endDrag() { + const spec = this.spec; + const monitor = this.monitor; + const connector = this.connector; + const { end } = spec; + if (end) { + end(monitor.getItem(), monitor); + } + connector.reconnect(); + } + constructor(spec, monitor, connector){ + this.spec = spec; + this.monitor = monitor; + this.connector = connector; + } +} + +//# sourceMappingURL=DragSourceImpl.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/connectors.js": +/*!*****************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/connectors.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useConnectDragPreview: () => (/* binding */ useConnectDragPreview), +/* harmony export */ useConnectDragSource: () => (/* binding */ useConnectDragSource) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); + +function useConnectDragSource(connector) { + return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>connector.hooks.dragSource() + , [ + connector + ]); +} +function useConnectDragPreview(connector) { + return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>connector.hooks.dragPreview() + , [ + connector + ]); +} + +//# sourceMappingURL=connectors.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/index.js": +/*!************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/index.js ***! + \************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDrag: () => (/* reexport safe */ _useDrag_js__WEBPACK_IMPORTED_MODULE_0__.useDrag) +/* harmony export */ }); +/* harmony import */ var _useDrag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useDrag.js */ "./node_modules/react-dnd/dist/hooks/useDrag/useDrag.js"); + + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/useDrag.js": +/*!**************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/useDrag.js ***! + \**************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDrag: () => (/* binding */ useDrag) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var _useCollectedProps_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../useCollectedProps.js */ "./node_modules/react-dnd/dist/hooks/useCollectedProps.js"); +/* harmony import */ var _useOptionalFactory_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../useOptionalFactory.js */ "./node_modules/react-dnd/dist/hooks/useOptionalFactory.js"); +/* harmony import */ var _connectors_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./connectors.js */ "./node_modules/react-dnd/dist/hooks/useDrag/connectors.js"); +/* harmony import */ var _useDragSourceConnector_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useDragSourceConnector.js */ "./node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js"); +/* harmony import */ var _useDragSourceMonitor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useDragSourceMonitor.js */ "./node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js"); +/* harmony import */ var _useRegisteredDragSource_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useRegisteredDragSource.js */ "./node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js"); + + + + + + + +/** + * useDragSource hook + * @param sourceSpec The drag source specification (object or function, function preferred) + * @param deps The memoization deps array to use when evaluating spec changes + */ function useDrag(specArg, deps) { + const spec = (0,_useOptionalFactory_js__WEBPACK_IMPORTED_MODULE_1__.useOptionalFactory)(specArg, deps); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(!spec.begin, `useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`); + const monitor = (0,_useDragSourceMonitor_js__WEBPACK_IMPORTED_MODULE_2__.useDragSourceMonitor)(); + const connector = (0,_useDragSourceConnector_js__WEBPACK_IMPORTED_MODULE_3__.useDragSourceConnector)(spec.options, spec.previewOptions); + (0,_useRegisteredDragSource_js__WEBPACK_IMPORTED_MODULE_4__.useRegisteredDragSource)(spec, monitor, connector); + return [ + (0,_useCollectedProps_js__WEBPACK_IMPORTED_MODULE_5__.useCollectedProps)(spec.collect, monitor, connector), + (0,_connectors_js__WEBPACK_IMPORTED_MODULE_6__.useConnectDragSource)(connector), + (0,_connectors_js__WEBPACK_IMPORTED_MODULE_6__.useConnectDragPreview)(connector), + ]; +} + +//# sourceMappingURL=useDrag.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js": +/*!********************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js ***! + \********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDragSource: () => (/* binding */ useDragSource) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _DragSourceImpl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DragSourceImpl.js */ "./node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js"); + + +function useDragSource(spec, monitor, connector) { + const handler = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>new _DragSourceImpl_js__WEBPACK_IMPORTED_MODULE_1__.DragSourceImpl(spec, monitor, connector) + , [ + monitor, + connector + ]); + (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{ + handler.spec = spec; + }, [ + spec + ]); + return handler; +} + +//# sourceMappingURL=useDragSource.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDragSourceConnector: () => (/* binding */ useDragSourceConnector) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _internals_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../internals/index.js */ "./node_modules/react-dnd/dist/internals/SourceConnector.js"); +/* harmony import */ var _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../useDragDropManager.js */ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js"); +/* harmony import */ var _useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../useIsomorphicLayoutEffect.js */ "./node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js"); + + + + +function useDragSourceConnector(dragSourceOptions, dragPreviewOptions) { + const manager = (0,_useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__.useDragDropManager)(); + const connector = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>new _internals_index_js__WEBPACK_IMPORTED_MODULE_2__.SourceConnector(manager.getBackend()) + , [ + manager + ]); + (0,_useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(()=>{ + connector.dragSourceOptions = dragSourceOptions || null; + connector.reconnect(); + return ()=>connector.disconnectDragSource() + ; + }, [ + connector, + dragSourceOptions + ]); + (0,_useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(()=>{ + connector.dragPreviewOptions = dragPreviewOptions || null; + connector.reconnect(); + return ()=>connector.disconnectDragPreview() + ; + }, [ + connector, + dragPreviewOptions + ]); + return connector; +} + +//# sourceMappingURL=useDragSourceConnector.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js": +/*!***************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDragSourceMonitor: () => (/* binding */ useDragSourceMonitor) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _internals_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../internals/index.js */ "./node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js"); +/* harmony import */ var _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../useDragDropManager.js */ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js"); + + + +function useDragSourceMonitor() { + const manager = (0,_useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__.useDragDropManager)(); + return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>new _internals_index_js__WEBPACK_IMPORTED_MODULE_2__.DragSourceMonitorImpl(manager) + , [ + manager + ]); +} + +//# sourceMappingURL=useDragSourceMonitor.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/useDragType.js": +/*!******************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/useDragType.js ***! + \******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDragType: () => (/* binding */ useDragType) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); + + +function useDragType(spec) { + return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>{ + const result = spec.type; + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(result != null, 'spec.type must be defined'); + return result; + }, [ + spec + ]); +} + +//# sourceMappingURL=useDragType.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js": +/*!******************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useRegisteredDragSource: () => (/* binding */ useRegisteredDragSource) +/* harmony export */ }); +/* harmony import */ var _internals_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../internals/index.js */ "./node_modules/react-dnd/dist/internals/registration.js"); +/* harmony import */ var _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../useDragDropManager.js */ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js"); +/* harmony import */ var _useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../useIsomorphicLayoutEffect.js */ "./node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js"); +/* harmony import */ var _useDragSource_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useDragSource.js */ "./node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js"); +/* harmony import */ var _useDragType_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useDragType.js */ "./node_modules/react-dnd/dist/hooks/useDrag/useDragType.js"); + + + + + +function useRegisteredDragSource(spec, monitor, connector) { + const manager = (0,_useDragDropManager_js__WEBPACK_IMPORTED_MODULE_0__.useDragDropManager)(); + const handler = (0,_useDragSource_js__WEBPACK_IMPORTED_MODULE_1__.useDragSource)(spec, monitor, connector); + const itemType = (0,_useDragType_js__WEBPACK_IMPORTED_MODULE_2__.useDragType)(spec); + (0,_useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(function registerDragSource() { + if (itemType != null) { + const [handlerId, unregister] = (0,_internals_index_js__WEBPACK_IMPORTED_MODULE_4__.registerSource)(itemType, handler, manager); + monitor.receiveHandlerId(handlerId); + connector.receiveHandlerId(handlerId); + return unregister; + } + return; + }, [ + manager, + monitor, + connector, + handler, + itemType + ]); +} + +//# sourceMappingURL=useRegisteredDragSource.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js": +/*!*****************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDragDropManager.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDragDropManager: () => (/* binding */ useDragDropManager) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _core_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/index.js */ "./node_modules/react-dnd/dist/core/DndContext.js"); + + + +/** + * A hook to retrieve the DragDropManager from Context + */ function useDragDropManager() { + const { dragDropManager } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.DndContext); + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(dragDropManager != null, 'Expected drag drop context'); + return dragDropManager; +} + +//# sourceMappingURL=useDragDropManager.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDragLayer.js": +/*!***********************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDragLayer.js ***! + \***********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDragLayer: () => (/* binding */ useDragLayer) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _useCollector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useCollector.js */ "./node_modules/react-dnd/dist/hooks/useCollector.js"); +/* harmony import */ var _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useDragDropManager.js */ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js"); + + + +/** + * useDragLayer Hook + * @param collector The property collector + */ function useDragLayer(collect) { + const dragDropManager = (0,_useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__.useDragDropManager)(); + const monitor = dragDropManager.getMonitor(); + const [collected, updateCollected] = (0,_useCollector_js__WEBPACK_IMPORTED_MODULE_2__.useCollector)(monitor, collect); + (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>monitor.subscribeToOffsetChange(updateCollected) + ); + (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>monitor.subscribeToStateChange(updateCollected) + ); + return collected; +} + +//# sourceMappingURL=useDragLayer.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js": +/*!*********************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DropTargetImpl: () => (/* binding */ DropTargetImpl) +/* harmony export */ }); +class DropTargetImpl { + canDrop() { + const spec = this.spec; + const monitor = this.monitor; + return spec.canDrop ? spec.canDrop(monitor.getItem(), monitor) : true; + } + hover() { + const spec = this.spec; + const monitor = this.monitor; + if (spec.hover) { + spec.hover(monitor.getItem(), monitor); + } + } + drop() { + const spec = this.spec; + const monitor = this.monitor; + if (spec.drop) { + return spec.drop(monitor.getItem(), monitor); + } + return; + } + constructor(spec, monitor){ + this.spec = spec; + this.monitor = monitor; + } +} + +//# sourceMappingURL=DropTargetImpl.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/connectors.js": +/*!*****************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/connectors.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useConnectDropTarget: () => (/* binding */ useConnectDropTarget) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); + +function useConnectDropTarget(connector) { + return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>connector.hooks.dropTarget() + , [ + connector + ]); +} + +//# sourceMappingURL=connectors.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/index.js": +/*!************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/index.js ***! + \************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDrop: () => (/* reexport safe */ _useDrop_js__WEBPACK_IMPORTED_MODULE_0__.useDrop) +/* harmony export */ }); +/* harmony import */ var _useDrop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useDrop.js */ "./node_modules/react-dnd/dist/hooks/useDrop/useDrop.js"); + + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/useAccept.js": +/*!****************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/useAccept.js ***! + \****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useAccept: () => (/* binding */ useAccept) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); + + +/** + * Internal utility hook to get an array-version of spec.accept. + * The main utility here is that we aren't creating a new array on every render if a non-array spec.accept is passed in. + * @param spec + */ function useAccept(spec) { + const { accept } = spec; + return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(()=>{ + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(spec.accept != null, 'accept must be defined'); + return Array.isArray(accept) ? accept : [ + accept + ]; + }, [ + accept + ]); +} + +//# sourceMappingURL=useAccept.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/useDrop.js": +/*!**************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/useDrop.js ***! + \**************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDrop: () => (/* binding */ useDrop) +/* harmony export */ }); +/* harmony import */ var _useCollectedProps_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../useCollectedProps.js */ "./node_modules/react-dnd/dist/hooks/useCollectedProps.js"); +/* harmony import */ var _useOptionalFactory_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../useOptionalFactory.js */ "./node_modules/react-dnd/dist/hooks/useOptionalFactory.js"); +/* harmony import */ var _connectors_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./connectors.js */ "./node_modules/react-dnd/dist/hooks/useDrop/connectors.js"); +/* harmony import */ var _useDropTargetConnector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useDropTargetConnector.js */ "./node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js"); +/* harmony import */ var _useDropTargetMonitor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useDropTargetMonitor.js */ "./node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js"); +/* harmony import */ var _useRegisteredDropTarget_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useRegisteredDropTarget.js */ "./node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js"); + + + + + + +/** + * useDropTarget Hook + * @param spec The drop target specification (object or function, function preferred) + * @param deps The memoization deps array to use when evaluating spec changes + */ function useDrop(specArg, deps) { + const spec = (0,_useOptionalFactory_js__WEBPACK_IMPORTED_MODULE_0__.useOptionalFactory)(specArg, deps); + const monitor = (0,_useDropTargetMonitor_js__WEBPACK_IMPORTED_MODULE_1__.useDropTargetMonitor)(); + const connector = (0,_useDropTargetConnector_js__WEBPACK_IMPORTED_MODULE_2__.useDropTargetConnector)(spec.options); + (0,_useRegisteredDropTarget_js__WEBPACK_IMPORTED_MODULE_3__.useRegisteredDropTarget)(spec, monitor, connector); + return [ + (0,_useCollectedProps_js__WEBPACK_IMPORTED_MODULE_4__.useCollectedProps)(spec.collect, monitor, connector), + (0,_connectors_js__WEBPACK_IMPORTED_MODULE_5__.useConnectDropTarget)(connector), + ]; +} + +//# sourceMappingURL=useDrop.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js": +/*!********************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js ***! + \********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDropTarget: () => (/* binding */ useDropTarget) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _DropTargetImpl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DropTargetImpl.js */ "./node_modules/react-dnd/dist/hooks/useDrop/DropTargetImpl.js"); + + +function useDropTarget(spec, monitor) { + const dropTarget = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>new _DropTargetImpl_js__WEBPACK_IMPORTED_MODULE_1__.DropTargetImpl(spec, monitor) + , [ + monitor + ]); + (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{ + dropTarget.spec = spec; + }, [ + spec + ]); + return dropTarget; +} + +//# sourceMappingURL=useDropTarget.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/useDropTargetConnector.js ***! + \*****************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDropTargetConnector: () => (/* binding */ useDropTargetConnector) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _internals_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../internals/index.js */ "./node_modules/react-dnd/dist/internals/TargetConnector.js"); +/* harmony import */ var _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../useDragDropManager.js */ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js"); +/* harmony import */ var _useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../useIsomorphicLayoutEffect.js */ "./node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js"); + + + + +function useDropTargetConnector(options) { + const manager = (0,_useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__.useDragDropManager)(); + const connector = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>new _internals_index_js__WEBPACK_IMPORTED_MODULE_2__.TargetConnector(manager.getBackend()) + , [ + manager + ]); + (0,_useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(()=>{ + connector.dropTargetOptions = options || null; + connector.reconnect(); + return ()=>connector.disconnectDropTarget() + ; + }, [ + options + ]); + return connector; +} + +//# sourceMappingURL=useDropTargetConnector.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js": +/*!***************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/useDropTargetMonitor.js ***! + \***************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useDropTargetMonitor: () => (/* binding */ useDropTargetMonitor) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var _internals_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../internals/index.js */ "./node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js"); +/* harmony import */ var _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../useDragDropManager.js */ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js"); + + + +function useDropTargetMonitor() { + const manager = (0,_useDragDropManager_js__WEBPACK_IMPORTED_MODULE_1__.useDragDropManager)(); + return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>new _internals_index_js__WEBPACK_IMPORTED_MODULE_2__.DropTargetMonitorImpl(manager) + , [ + manager + ]); +} + +//# sourceMappingURL=useDropTargetMonitor.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js": +/*!******************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useDrop/useRegisteredDropTarget.js ***! + \******************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useRegisteredDropTarget: () => (/* binding */ useRegisteredDropTarget) +/* harmony export */ }); +/* harmony import */ var _internals_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../internals/index.js */ "./node_modules/react-dnd/dist/internals/registration.js"); +/* harmony import */ var _useDragDropManager_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../useDragDropManager.js */ "./node_modules/react-dnd/dist/hooks/useDragDropManager.js"); +/* harmony import */ var _useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../useIsomorphicLayoutEffect.js */ "./node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js"); +/* harmony import */ var _useAccept_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useAccept.js */ "./node_modules/react-dnd/dist/hooks/useDrop/useAccept.js"); +/* harmony import */ var _useDropTarget_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useDropTarget.js */ "./node_modules/react-dnd/dist/hooks/useDrop/useDropTarget.js"); + + + + + +function useRegisteredDropTarget(spec, monitor, connector) { + const manager = (0,_useDragDropManager_js__WEBPACK_IMPORTED_MODULE_0__.useDragDropManager)(); + const dropTarget = (0,_useDropTarget_js__WEBPACK_IMPORTED_MODULE_1__.useDropTarget)(spec, monitor); + const accept = (0,_useAccept_js__WEBPACK_IMPORTED_MODULE_2__.useAccept)(spec); + (0,_useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicLayoutEffect)(function registerDropTarget() { + const [handlerId, unregister] = (0,_internals_index_js__WEBPACK_IMPORTED_MODULE_4__.registerTarget)(accept, dropTarget, manager); + monitor.receiveHandlerId(handlerId); + connector.receiveHandlerId(handlerId); + return unregister; + }, [ + manager, + monitor, + dropTarget, + connector, + accept.map((a)=>a.toString() + ).join('|'), + ]); +} + +//# sourceMappingURL=useRegisteredDropTarget.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js": +/*!************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js ***! + \************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useIsomorphicLayoutEffect: () => (/* binding */ useIsomorphicLayoutEffect) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); + +// suppress the useLayoutEffect warning on server side. +const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; + +//# sourceMappingURL=useIsomorphicLayoutEffect.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useMonitorOutput.js": +/*!***************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useMonitorOutput.js ***! + \***************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useMonitorOutput: () => (/* binding */ useMonitorOutput) +/* harmony export */ }); +/* harmony import */ var _useCollector_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./useCollector.js */ "./node_modules/react-dnd/dist/hooks/useCollector.js"); +/* harmony import */ var _useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useIsomorphicLayoutEffect.js */ "./node_modules/react-dnd/dist/hooks/useIsomorphicLayoutEffect.js"); + + +function useMonitorOutput(monitor, collect, onCollect) { + const [collected, updateCollected] = (0,_useCollector_js__WEBPACK_IMPORTED_MODULE_0__.useCollector)(monitor, collect, onCollect); + (0,_useIsomorphicLayoutEffect_js__WEBPACK_IMPORTED_MODULE_1__.useIsomorphicLayoutEffect)(function subscribeToMonitorStateChange() { + const handlerId = monitor.getHandlerId(); + if (handlerId == null) { + return; + } + return monitor.subscribeToStateChange(updateCollected, { + handlerIds: [ + handlerId + ] + }); + }, [ + monitor, + updateCollected + ]); + return collected; +} + +//# sourceMappingURL=useMonitorOutput.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/hooks/useOptionalFactory.js": +/*!*****************************************************************!*\ + !*** ./node_modules/react-dnd/dist/hooks/useOptionalFactory.js ***! + \*****************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ useOptionalFactory: () => (/* binding */ useOptionalFactory) +/* harmony export */ }); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); + +function useOptionalFactory(arg, deps) { + const memoDeps = [ + ...deps || [] + ]; + if (deps == null && typeof arg !== 'function') { + memoDeps.push(arg); + } + return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>{ + return typeof arg === 'function' ? arg() : arg; + }, memoDeps); +} + +//# sourceMappingURL=useOptionalFactory.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/index.js": +/*!**********************************************!*\ + !*** ./node_modules/react-dnd/dist/index.js ***! + \**********************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DndContext: () => (/* reexport safe */ _core_index_js__WEBPACK_IMPORTED_MODULE_0__.DndContext), +/* harmony export */ DndProvider: () => (/* reexport safe */ _core_index_js__WEBPACK_IMPORTED_MODULE_0__.DndProvider), +/* harmony export */ DragPreviewImage: () => (/* reexport safe */ _core_index_js__WEBPACK_IMPORTED_MODULE_0__.DragPreviewImage), +/* harmony export */ useDrag: () => (/* reexport safe */ _hooks_index_js__WEBPACK_IMPORTED_MODULE_1__.useDrag), +/* harmony export */ useDragDropManager: () => (/* reexport safe */ _hooks_index_js__WEBPACK_IMPORTED_MODULE_1__.useDragDropManager), +/* harmony export */ useDragLayer: () => (/* reexport safe */ _hooks_index_js__WEBPACK_IMPORTED_MODULE_1__.useDragLayer), +/* harmony export */ useDrop: () => (/* reexport safe */ _hooks_index_js__WEBPACK_IMPORTED_MODULE_1__.useDrop) +/* harmony export */ }); +/* harmony import */ var _core_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/index.js */ "./node_modules/react-dnd/dist/core/index.js"); +/* harmony import */ var _hooks_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./hooks/index.js */ "./node_modules/react-dnd/dist/hooks/index.js"); + + + + +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js": +/*!************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js ***! + \************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DragSourceMonitorImpl: () => (/* binding */ DragSourceMonitorImpl) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); + +let isCallingCanDrag = false; +let isCallingIsDragging = false; +class DragSourceMonitorImpl { + receiveHandlerId(sourceId) { + this.sourceId = sourceId; + } + getHandlerId() { + return this.sourceId; + } + canDrag() { + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(!isCallingCanDrag, 'You may not call monitor.canDrag() inside your canDrag() implementation. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor'); + try { + isCallingCanDrag = true; + return this.internalMonitor.canDragSource(this.sourceId); + } finally{ + isCallingCanDrag = false; + } + } + isDragging() { + if (!this.sourceId) { + return false; + } + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(!isCallingIsDragging, 'You may not call monitor.isDragging() inside your isDragging() implementation. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor'); + try { + isCallingIsDragging = true; + return this.internalMonitor.isDraggingSource(this.sourceId); + } finally{ + isCallingIsDragging = false; + } + } + subscribeToStateChange(listener, options) { + return this.internalMonitor.subscribeToStateChange(listener, options); + } + isDraggingSource(sourceId) { + return this.internalMonitor.isDraggingSource(sourceId); + } + isOverTarget(targetId, options) { + return this.internalMonitor.isOverTarget(targetId, options); + } + getTargetIds() { + return this.internalMonitor.getTargetIds(); + } + isSourcePublic() { + return this.internalMonitor.isSourcePublic(); + } + getSourceId() { + return this.internalMonitor.getSourceId(); + } + subscribeToOffsetChange(listener) { + return this.internalMonitor.subscribeToOffsetChange(listener); + } + canDragSource(sourceId) { + return this.internalMonitor.canDragSource(sourceId); + } + canDropOnTarget(targetId) { + return this.internalMonitor.canDropOnTarget(targetId); + } + getItemType() { + return this.internalMonitor.getItemType(); + } + getItem() { + return this.internalMonitor.getItem(); + } + getDropResult() { + return this.internalMonitor.getDropResult(); + } + didDrop() { + return this.internalMonitor.didDrop(); + } + getInitialClientOffset() { + return this.internalMonitor.getInitialClientOffset(); + } + getInitialSourceClientOffset() { + return this.internalMonitor.getInitialSourceClientOffset(); + } + getSourceClientOffset() { + return this.internalMonitor.getSourceClientOffset(); + } + getClientOffset() { + return this.internalMonitor.getClientOffset(); + } + getDifferenceFromInitialOffset() { + return this.internalMonitor.getDifferenceFromInitialOffset(); + } + constructor(manager){ + this.sourceId = null; + this.internalMonitor = manager.getMonitor(); + } +} + +//# sourceMappingURL=DragSourceMonitorImpl.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js": +/*!************************************************************************!*\ + !*** ./node_modules/react-dnd/dist/internals/DropTargetMonitorImpl.js ***! + \************************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ DropTargetMonitorImpl: () => (/* binding */ DropTargetMonitorImpl) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); + +let isCallingCanDrop = false; +class DropTargetMonitorImpl { + receiveHandlerId(targetId) { + this.targetId = targetId; + } + getHandlerId() { + return this.targetId; + } + subscribeToStateChange(listener, options) { + return this.internalMonitor.subscribeToStateChange(listener, options); + } + canDrop() { + // Cut out early if the target id has not been set. This should prevent errors + // where the user has an older version of dnd-core like in + // /~https://github.com/react-dnd/react-dnd/issues/1310 + if (!this.targetId) { + return false; + } + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(!isCallingCanDrop, 'You may not call monitor.canDrop() inside your canDrop() implementation. ' + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor'); + try { + isCallingCanDrop = true; + return this.internalMonitor.canDropOnTarget(this.targetId); + } finally{ + isCallingCanDrop = false; + } + } + isOver(options) { + if (!this.targetId) { + return false; + } + return this.internalMonitor.isOverTarget(this.targetId, options); + } + getItemType() { + return this.internalMonitor.getItemType(); + } + getItem() { + return this.internalMonitor.getItem(); + } + getDropResult() { + return this.internalMonitor.getDropResult(); + } + didDrop() { + return this.internalMonitor.didDrop(); + } + getInitialClientOffset() { + return this.internalMonitor.getInitialClientOffset(); + } + getInitialSourceClientOffset() { + return this.internalMonitor.getInitialSourceClientOffset(); + } + getSourceClientOffset() { + return this.internalMonitor.getSourceClientOffset(); + } + getClientOffset() { + return this.internalMonitor.getClientOffset(); + } + getDifferenceFromInitialOffset() { + return this.internalMonitor.getDifferenceFromInitialOffset(); + } + constructor(manager){ + this.targetId = null; + this.internalMonitor = manager.getMonitor(); + } +} + +//# sourceMappingURL=DropTargetMonitorImpl.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/internals/SourceConnector.js": +/*!******************************************************************!*\ + !*** ./node_modules/react-dnd/dist/internals/SourceConnector.js ***! + \******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ SourceConnector: () => (/* binding */ SourceConnector) +/* harmony export */ }); +/* harmony import */ var _react_dnd_shallowequal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/shallowequal */ "./node_modules/@react-dnd/shallowequal/dist/index.js"); +/* harmony import */ var _isRef_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isRef.js */ "./node_modules/react-dnd/dist/internals/isRef.js"); +/* harmony import */ var _wrapConnectorHooks_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wrapConnectorHooks.js */ "./node_modules/react-dnd/dist/internals/wrapConnectorHooks.js"); + + + +class SourceConnector { + receiveHandlerId(newHandlerId) { + if (this.handlerId === newHandlerId) { + return; + } + this.handlerId = newHandlerId; + this.reconnect(); + } + get connectTarget() { + return this.dragSource; + } + get dragSourceOptions() { + return this.dragSourceOptionsInternal; + } + set dragSourceOptions(options) { + this.dragSourceOptionsInternal = options; + } + get dragPreviewOptions() { + return this.dragPreviewOptionsInternal; + } + set dragPreviewOptions(options) { + this.dragPreviewOptionsInternal = options; + } + reconnect() { + const didChange = this.reconnectDragSource(); + this.reconnectDragPreview(didChange); + } + reconnectDragSource() { + const dragSource = this.dragSource; + // if nothing has changed then don't resubscribe + const didChange = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange(); + if (didChange) { + this.disconnectDragSource(); + } + if (!this.handlerId) { + return didChange; + } + if (!dragSource) { + this.lastConnectedDragSource = dragSource; + return didChange; + } + if (didChange) { + this.lastConnectedHandlerId = this.handlerId; + this.lastConnectedDragSource = dragSource; + this.lastConnectedDragSourceOptions = this.dragSourceOptions; + this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, dragSource, this.dragSourceOptions); + } + return didChange; + } + reconnectDragPreview(forceDidChange = false) { + const dragPreview = this.dragPreview; + // if nothing has changed then don't resubscribe + const didChange = forceDidChange || this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange(); + if (didChange) { + this.disconnectDragPreview(); + } + if (!this.handlerId) { + return; + } + if (!dragPreview) { + this.lastConnectedDragPreview = dragPreview; + return; + } + if (didChange) { + this.lastConnectedHandlerId = this.handlerId; + this.lastConnectedDragPreview = dragPreview; + this.lastConnectedDragPreviewOptions = this.dragPreviewOptions; + this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, dragPreview, this.dragPreviewOptions); + } + } + didHandlerIdChange() { + return this.lastConnectedHandlerId !== this.handlerId; + } + didConnectedDragSourceChange() { + return this.lastConnectedDragSource !== this.dragSource; + } + didConnectedDragPreviewChange() { + return this.lastConnectedDragPreview !== this.dragPreview; + } + didDragSourceOptionsChange() { + return !(0,_react_dnd_shallowequal__WEBPACK_IMPORTED_MODULE_0__.shallowEqual)(this.lastConnectedDragSourceOptions, this.dragSourceOptions); + } + didDragPreviewOptionsChange() { + return !(0,_react_dnd_shallowequal__WEBPACK_IMPORTED_MODULE_0__.shallowEqual)(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions); + } + disconnectDragSource() { + if (this.dragSourceUnsubscribe) { + this.dragSourceUnsubscribe(); + this.dragSourceUnsubscribe = undefined; + } + } + disconnectDragPreview() { + if (this.dragPreviewUnsubscribe) { + this.dragPreviewUnsubscribe(); + this.dragPreviewUnsubscribe = undefined; + this.dragPreviewNode = null; + this.dragPreviewRef = null; + } + } + get dragSource() { + return this.dragSourceNode || this.dragSourceRef && this.dragSourceRef.current; + } + get dragPreview() { + return this.dragPreviewNode || this.dragPreviewRef && this.dragPreviewRef.current; + } + clearDragSource() { + this.dragSourceNode = null; + this.dragSourceRef = null; + } + clearDragPreview() { + this.dragPreviewNode = null; + this.dragPreviewRef = null; + } + constructor(backend){ + this.hooks = (0,_wrapConnectorHooks_js__WEBPACK_IMPORTED_MODULE_1__.wrapConnectorHooks)({ + dragSource: (node, options)=>{ + this.clearDragSource(); + this.dragSourceOptions = options || null; + if ((0,_isRef_js__WEBPACK_IMPORTED_MODULE_2__.isRef)(node)) { + this.dragSourceRef = node; + } else { + this.dragSourceNode = node; + } + this.reconnectDragSource(); + }, + dragPreview: (node, options)=>{ + this.clearDragPreview(); + this.dragPreviewOptions = options || null; + if ((0,_isRef_js__WEBPACK_IMPORTED_MODULE_2__.isRef)(node)) { + this.dragPreviewRef = node; + } else { + this.dragPreviewNode = node; + } + this.reconnectDragPreview(); + } + }); + this.handlerId = null; + // The drop target may either be attached via ref or connect function + this.dragSourceRef = null; + this.dragSourceOptionsInternal = null; + // The drag preview may either be attached via ref or connect function + this.dragPreviewRef = null; + this.dragPreviewOptionsInternal = null; + this.lastConnectedHandlerId = null; + this.lastConnectedDragSource = null; + this.lastConnectedDragSourceOptions = null; + this.lastConnectedDragPreview = null; + this.lastConnectedDragPreviewOptions = null; + this.backend = backend; + } +} + +//# sourceMappingURL=SourceConnector.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/internals/TargetConnector.js": +/*!******************************************************************!*\ + !*** ./node_modules/react-dnd/dist/internals/TargetConnector.js ***! + \******************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ TargetConnector: () => (/* binding */ TargetConnector) +/* harmony export */ }); +/* harmony import */ var _react_dnd_shallowequal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/shallowequal */ "./node_modules/@react-dnd/shallowequal/dist/index.js"); +/* harmony import */ var _isRef_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isRef.js */ "./node_modules/react-dnd/dist/internals/isRef.js"); +/* harmony import */ var _wrapConnectorHooks_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wrapConnectorHooks.js */ "./node_modules/react-dnd/dist/internals/wrapConnectorHooks.js"); + + + +class TargetConnector { + get connectTarget() { + return this.dropTarget; + } + reconnect() { + // if nothing has changed then don't resubscribe + const didChange = this.didHandlerIdChange() || this.didDropTargetChange() || this.didOptionsChange(); + if (didChange) { + this.disconnectDropTarget(); + } + const dropTarget = this.dropTarget; + if (!this.handlerId) { + return; + } + if (!dropTarget) { + this.lastConnectedDropTarget = dropTarget; + return; + } + if (didChange) { + this.lastConnectedHandlerId = this.handlerId; + this.lastConnectedDropTarget = dropTarget; + this.lastConnectedDropTargetOptions = this.dropTargetOptions; + this.unsubscribeDropTarget = this.backend.connectDropTarget(this.handlerId, dropTarget, this.dropTargetOptions); + } + } + receiveHandlerId(newHandlerId) { + if (newHandlerId === this.handlerId) { + return; + } + this.handlerId = newHandlerId; + this.reconnect(); + } + get dropTargetOptions() { + return this.dropTargetOptionsInternal; + } + set dropTargetOptions(options) { + this.dropTargetOptionsInternal = options; + } + didHandlerIdChange() { + return this.lastConnectedHandlerId !== this.handlerId; + } + didDropTargetChange() { + return this.lastConnectedDropTarget !== this.dropTarget; + } + didOptionsChange() { + return !(0,_react_dnd_shallowequal__WEBPACK_IMPORTED_MODULE_0__.shallowEqual)(this.lastConnectedDropTargetOptions, this.dropTargetOptions); + } + disconnectDropTarget() { + if (this.unsubscribeDropTarget) { + this.unsubscribeDropTarget(); + this.unsubscribeDropTarget = undefined; + } + } + get dropTarget() { + return this.dropTargetNode || this.dropTargetRef && this.dropTargetRef.current; + } + clearDropTarget() { + this.dropTargetRef = null; + this.dropTargetNode = null; + } + constructor(backend){ + this.hooks = (0,_wrapConnectorHooks_js__WEBPACK_IMPORTED_MODULE_1__.wrapConnectorHooks)({ + dropTarget: (node, options)=>{ + this.clearDropTarget(); + this.dropTargetOptions = options; + if ((0,_isRef_js__WEBPACK_IMPORTED_MODULE_2__.isRef)(node)) { + this.dropTargetRef = node; + } else { + this.dropTargetNode = node; + } + this.reconnect(); + } + }); + this.handlerId = null; + // The drop target may either be attached via ref or connect function + this.dropTargetRef = null; + this.dropTargetOptionsInternal = null; + this.lastConnectedHandlerId = null; + this.lastConnectedDropTarget = null; + this.lastConnectedDropTargetOptions = null; + this.backend = backend; + } +} + +//# sourceMappingURL=TargetConnector.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/internals/isRef.js": +/*!********************************************************!*\ + !*** ./node_modules/react-dnd/dist/internals/isRef.js ***! + \********************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ isRef: () => (/* binding */ isRef) +/* harmony export */ }); +function isRef(obj) { + return(// eslint-disable-next-line no-prototype-builtins + obj !== null && typeof obj === 'object' && Object.prototype.hasOwnProperty.call(obj, 'current')); +} + +//# sourceMappingURL=isRef.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/internals/registration.js": +/*!***************************************************************!*\ + !*** ./node_modules/react-dnd/dist/internals/registration.js ***! + \***************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ registerSource: () => (/* binding */ registerSource), +/* harmony export */ registerTarget: () => (/* binding */ registerTarget) +/* harmony export */ }); +function registerTarget(type, target, manager) { + const registry = manager.getRegistry(); + const targetId = registry.addTarget(type, target); + return [ + targetId, + ()=>registry.removeTarget(targetId) + ]; +} +function registerSource(type, source, manager) { + const registry = manager.getRegistry(); + const sourceId = registry.addSource(type, source); + return [ + sourceId, + ()=>registry.removeSource(sourceId) + ]; +} + +//# sourceMappingURL=registration.js.map + +/***/ }), + +/***/ "./node_modules/react-dnd/dist/internals/wrapConnectorHooks.js": +/*!*********************************************************************!*\ + !*** ./node_modules/react-dnd/dist/internals/wrapConnectorHooks.js ***! + \*********************************************************************/ +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ wrapConnectorHooks: () => (/* binding */ wrapConnectorHooks) +/* harmony export */ }); +/* harmony import */ var _react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-dnd/invariant */ "./node_modules/@react-dnd/invariant/dist/index.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); + + +function throwIfCompositeComponentElement(element) { + // Custom components can no longer be wrapped directly in React DnD 2.0 + // so that we don't need to depend on findDOMNode() from react-dom. + if (typeof element.type === 'string') { + return; + } + const displayName = element.type.displayName || element.type.name || 'the component'; + throw new Error('Only native element nodes can now be passed to React DnD connectors.' + `You can either wrap ${displayName} into a
, or turn it into a ` + 'drag source or a drop target itself.'); +} +function wrapHookToRecognizeElement(hook) { + return (elementOrNode = null, options = null)=>{ + // When passed a node, call the hook straight away. + if (!(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(elementOrNode)) { + const node = elementOrNode; + hook(node, options); + // return the node so it can be chained (e.g. when within callback refs + //
connectDragSource(connectDropTarget(node))}/> + return node; + } + // If passed a ReactElement, clone it and attach this function as a ref. + // This helps us achieve a neat API where user doesn't even know that refs + // are being used under the hood. + const element = elementOrNode; + throwIfCompositeComponentElement(element); + // When no options are passed, use the hook directly + const ref = options ? (node)=>hook(node, options) + : hook; + return cloneWithRef(element, ref); + }; +} +function wrapConnectorHooks(hooks) { + const wrappedHooks = {}; + Object.keys(hooks).forEach((key)=>{ + const hook = hooks[key]; + // ref objects should be passed straight through without wrapping + if (key.endsWith('Ref')) { + wrappedHooks[key] = hooks[key]; + } else { + const wrappedHook = wrapHookToRecognizeElement(hook); + wrappedHooks[key] = ()=>wrappedHook + ; + } + }); + return wrappedHooks; +} +function setRef(ref, node) { + if (typeof ref === 'function') { + ref(node); + } else { + ref.current = node; + } +} +function cloneWithRef(element, newRef) { + const previousRef = element.ref; + (0,_react_dnd_invariant__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof previousRef !== 'string', 'Cannot connect React DnD to an element with an existing string ref. ' + 'Please convert it to use a callback ref instead, or wrap it into a or
. ' + 'Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs'); + if (!previousRef) { + // When there is no ref on the element, use the new ref directly + return (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(element, { + ref: newRef + }); + } else { + return (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(element, { + ref: (node)=>{ + setRef(previousRef, node); + setRef(newRef, node); + } + }); + } +} + +//# sourceMappingURL=wrapConnectorHooks.js.map + +/***/ }) + +}]); +//# sourceMappingURL=vendors-node_modules_react-dnd_dist_index_js.js.map \ No newline at end of file diff --git a/assets/js/workflowEditor.js b/assets/js/workflowEditor.js index c126cd8c3..be72bcd4c 100644 --- a/assets/js/workflowEditor.js +++ b/assets/js/workflowEditor.js @@ -6188,17 +6188,6 @@ __webpack_require__.r(__webpack_exports__); -/** - * Whether the role supports checked state. - * - * @param {import('react').AriaRole} role Role. - * @return {boolean} Whether the role supports checked state. - * @see https://www.w3.org/TR/wai-aria-1.1/#aria-checked - */ - -function roleSupportsCheckedState(role) { - return ['checkbox', 'option', 'radio', 'switch', 'menuitemcheckbox', 'menuitemradio', 'treeitem'].includes(role); -} function ComplementaryAreaToggle({ as = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__.Button, scope, @@ -6206,7 +6195,6 @@ function ComplementaryAreaToggle({ icon, selectedIcon, name, - shortcut, ...props }) { const ComponentToUse = as; @@ -6217,10 +6205,7 @@ function ComplementaryAreaToggle({ } = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_1__.useDispatch)(_store__WEBPACK_IMPORTED_MODULE_2__.store); return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(ComponentToUse, { icon: selectedIcon && isSelected ? selectedIcon : icon, - "aria-controls": identifier.replace('/', ':') - // Make sure aria-checked matches spec https://www.w3.org/TR/wai-aria-1.1/#aria-checked - , - "aria-checked": roleSupportsCheckedState(props.role) ? isSelected : undefined, + "aria-controls": identifier.replace('/', ':'), onClick: () => { if (isSelected) { disableComplementaryArea(scope); @@ -6228,7 +6213,6 @@ function ComplementaryAreaToggle({ enableComplementaryArea(scope, identifier); } }, - shortcut: shortcut, ...props }); } @@ -6372,8 +6356,8 @@ function ComplementaryAreaFill({ }); } function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, isSmall) { - const previousIsSmallRef = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useRef)(false); - const shouldOpenWhenNotSmallRef = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useRef)(false); + const previousIsSmall = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useRef)(false); + const shouldOpenWhenNotSmall = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useRef)(false); const { enableComplementaryArea, disableComplementaryArea @@ -6381,29 +6365,29 @@ function useAdjustComplementaryListener(scope, identifier, activeArea, isActive, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useEffect)(() => { // If the complementary area is active and the editor is switching from // a big to a small window size. - if (isActive && isSmall && !previousIsSmallRef.current) { + if (isActive && isSmall && !previousIsSmall.current) { disableComplementaryArea(scope); // Flag the complementary area to be reopened when the window size // goes from small to big. - shouldOpenWhenNotSmallRef.current = true; + shouldOpenWhenNotSmall.current = true; } else if ( // If there is a flag indicating the complementary area should be // enabled when we go from small to big window size and we are going // from a small to big window size. - shouldOpenWhenNotSmallRef.current && !isSmall && previousIsSmallRef.current) { + shouldOpenWhenNotSmall.current && !isSmall && previousIsSmall.current) { // Remove the flag indicating the complementary area should be // enabled. - shouldOpenWhenNotSmallRef.current = false; + shouldOpenWhenNotSmall.current = false; enableComplementaryArea(scope, identifier); } else if ( // If the flag is indicating the current complementary should be // reopened but another complementary area becomes active, remove // the flag. - shouldOpenWhenNotSmallRef.current && activeArea && activeArea !== identifier) { - shouldOpenWhenNotSmallRef.current = false; + shouldOpenWhenNotSmall.current && activeArea && activeArea !== identifier) { + shouldOpenWhenNotSmall.current = false; } - if (isSmall !== previousIsSmallRef.current) { - previousIsSmallRef.current = isSmall; + if (isSmall !== previousIsSmall.current) { + previousIsSmall.current = isSmall; } }, [isActive, isSmall, scope, identifier, activeArea, disableComplementaryArea, enableComplementaryArea]); } @@ -6490,8 +6474,7 @@ function ComplementaryArea({ icon: showIconLabels ? _wordpress_icons__WEBPACK_IMPORTED_MODULE_14__["default"] : icon, showTooltip: !showIconLabels, variant: showIconLabels ? 'tertiary' : undefined, - size: "compact", - shortcut: toggleShortcut + size: "compact" }) }), name && isPinnable && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_complementary_area_more_menu_item__WEBPACK_IMPORTED_MODULE_15__["default"], { target: name, @@ -6783,10 +6766,10 @@ function InterfaceSkeleton({ as: _wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__unstableMotion.div, className: "interface-interface-skeleton__header", "aria-label": mergedLabels.header, - initial: isDistractionFree && !isMobileViewport ? 'distractionFreeHidden' : 'hidden', - whileHover: isDistractionFree && !isMobileViewport ? 'distractionFreeHover' : 'visible', - animate: isDistractionFree && !isMobileViewport ? 'distractionFreeDisabled' : 'visible', - exit: isDistractionFree && !isMobileViewport ? 'distractionFreeHidden' : 'hidden', + initial: isDistractionFree ? 'distractionFreeHidden' : 'hidden', + whileHover: isDistractionFree ? 'distractionFreeHover' : 'visible', + animate: isDistractionFree ? 'distractionFreeDisabled' : 'visible', + exit: isDistractionFree ? 'distractionFreeHidden' : 'hidden', variants: headerVariants, transition: defaultTransition, children: header @@ -6803,7 +6786,7 @@ function InterfaceSkeleton({ ariaLabel: mergedLabels.secondarySidebar, as: _wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__unstableMotion.div, initial: "closed", - animate: "open", + animate: isMobileViewport ? 'mobileOpen' : 'open', exit: "closed", variants: { open: { @@ -6811,25 +6794,19 @@ function InterfaceSkeleton({ }, closed: { width: 0 + }, + mobileOpen: { + width: '100vw' } }, transition: defaultTransition, - children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__unstableMotion.div, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", { style: { position: 'absolute', width: isMobileViewport ? '100vw' : 'fit-content', height: '100%', - left: 0 - }, - variants: { - open: { - x: 0 - }, - closed: { - x: '-100%' - } + right: 0 }, - transition: defaultTransition, children: [secondarySidebarResizeListener, secondarySidebar] }) }) @@ -7521,67 +7498,6 @@ function isModalActive(state, modalName) { /***/ }), -/***/ "./node_modules/@wordpress/interface/node_modules/@wordpress/compose/build-module/hooks/use-event/index.js": -/*!*****************************************************************************************************************!*\ - !*** ./node_modules/@wordpress/interface/node_modules/@wordpress/compose/build-module/hooks/use-event/index.js ***! - \*****************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ useEvent) -/* harmony export */ }); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - - -/** - * Any function. - */ - -/** - * Creates a stable callback function that has access to the latest state and - * can be used within event handlers and effect callbacks. Throws when used in - * the render phase. - * - * @param callback The callback function to wrap. - * - * @example - * - * ```tsx - * function Component( props ) { - * const onClick = useEvent( props.onClick ); - * useEffect( () => { - * onClick(); - * // Won't trigger the effect again when props.onClick is updated. - * }, [ onClick ] ); - * // Won't re-render Button when props.onClick is updated (if `Button` is - * // wrapped in `React.memo`). - * return - - {defaultValue?.natural && ( -
{defaultValue.natural}
- )} - - {! isPro && ( -
-

{__('This conditional will only be evaluated in the Pro version. In the Free version, it will always return true.', 'post-expirator')}

-
- )} - - {isPopoverVisible && ( - -
{ - if (e.key === 'Enter') { - onClose(); - } - }}> - - {__('Condition', 'post-expirator')} -
-
- )} -
- ); - return ; -}; - -export default Conditional; diff --git a/assets/jsx/workflow-editor/components/data-fields/conditional/index.jsx b/assets/jsx/workflow-editor/components/data-fields/conditional/index.jsx new file mode 100644 index 000000000..a1d4945b3 --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/conditional/index.jsx @@ -0,0 +1,303 @@ +import { QueryBuilder, formatQuery, defaultOperators } from 'react-querybuilder'; +import { parseJsonLogic } from 'react-querybuilder/parseJsonLogic'; +import { useState, useCallback, useEffect, useRef } from '@wordpress/element'; +import { Button, CheckboxControl, Dashicon, Modal, SelectControl, ToggleControl } from '@wordpress/components'; +import { __ } from '@wordpress/i18n'; +import { store as editorStore } from '../../editor-store'; +import { useSelect } from '@wordpress/data'; +import { QueryBuilderDnD } from '@react-querybuilder/dnd'; + +import AceEditor from "react-ace"; +import "ace-builds/src-noconflict/mode-handlebars"; +import "ace-builds/src-noconflict/theme-textmate"; +import "ace-builds/src-noconflict/ext-language_tools"; + +import ExpressionBuilder from '../expression-builder'; + +import 'react-querybuilder/dist/query-builder.css'; +import '../../../css/query-builder.css'; +import './style.css'; + +const ConditionalExpressionBuilder = ({ options, value, handleOnChange, context, readOnlyPreview, singleVariableOnly }) => { + const onChange = (name, value) => { + if (handleOnChange) { + handleOnChange(value.expression); + } + } + + return
+ +
; +}; + +const FieldExpressionBuilder = ({ options, value, handleOnChange, context }) => { + return ; +}; + +const ValueExpressionBuilder = ({ options, value, handleOnChange, context }) => { + return ; +}; + +const NotToggle = ({ checked, handleOnChange }) => { + const [isNot, setIsNot] = useState(checked || false); + + useEffect(() => { + setIsNot(checked || false); + }, [checked]); + + const handleToggle = () => { + const newValue = !isNot; + setIsNot(newValue); + handleOnChange(newValue); + } + + return ( + + ); +}; + +const AddElementButton = ({ label, handleOnClick }) => { + return ; +}; + +const RemoveElementButton = ({ label, handleOnClick }) => { + return ; +}; + +const CombinatorSelector = ({ label, value, options, handleOnChange }) => { + return ; +}; + +const OperatorSelector = ({ label, value, options, handleOnChange }) => { + return ; +}; + +export const Conditional = ({ name, label, defaultValue, onChange, variables }) => { + const [isPopoverVisible, setIsPopoverVisible] = useState(false); + const [query, setQuery] = useState( + parseJsonLogic( + defaultValue?.json ? + defaultValue.json : + '' + ) + ); + + const { + isPro, + } = useSelect((select) => ({ + isPro: select(editorStore).isPro(), + })); + + let allVariables = variables; + + const editorRef = useRef(null); + + const convertLegacyVariables = useCallback((legacyQuery) => { + if (!legacyQuery) return; + + const wrapFieldValue = (field) => { + if (typeof field !== 'string') return field; + if (field.startsWith('{{') && field.endsWith('}}')) return field; + return `{{${field}}}`; + }; + + const processRules = (rules) => { + if (!Array.isArray(rules)) return; + + rules.forEach(rule => { + if (rule.rules) { + // Recursively process nested rule groups + processRules(rule.rules); + } else if (rule.field) { + // Update the field value if it's not properly wrapped + rule.field = wrapFieldValue(rule.field); + } + }); + }; + + if (legacyQuery.rules) { + processRules(legacyQuery.rules); + } + }, []); + + const onClose = useCallback(() => { + const jsonCondition = formatQuery( + query, + { + format: 'jsonlogic', + parseNumbers: true, + } + ); + + const naturalLanguageCondition = formatQuery( + query, + { + format: 'natural_language', + parseNumbers: true, + fields: allVariables, + getOperators: () => defaultOperators, + } + ); + + const newValue = { ...defaultValue }; + newValue.json = jsonCondition; + newValue.natural = naturalLanguageCondition; + + if (onChange) { + onChange(name, newValue); + } + + setIsPopoverVisible(false); + }, [query, allVariables, onChange, name, defaultValue]); + + useEffect(() => { + convertLegacyVariables(query); + + if (editorRef.current) { + editorRef.current.editor.setOption("indentedSoftWrap", false); + } + }, []); + + const getDefaultField = useCallback((field) => { + return '{{global.user.id}}'; + }, []); + + const editorProps = { + $blockScrolling: true, + }; + + + + return ( +
+ + + {defaultValue?.natural && ( + + )} + + {! isPro && ( +
+

{__('This conditional will only be evaluated in the Pro version. In the Free version, it will always return true.', 'post-expirator')}

+
+ )} + + {isPopoverVisible && ( + +

+ {__('Create a condition adding rules and groups. You can also add a NOT condition to any rule or group.', 'post-expirator')} +

+ + + +
+ )} +
+ ); +}; + +export default Conditional; diff --git a/assets/jsx/workflow-editor/components/data-fields/conditional/style.css b/assets/jsx/workflow-editor/components/data-fields/conditional/style.css new file mode 100644 index 000000000..9807e4a88 --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/conditional/style.css @@ -0,0 +1,15 @@ +.conditional-editor-modal .expression-builder-button { + width: 34px !important; + padding-top: 10px !important; +} + +.conditional-editor-modal-remove-element { + width: 40px !important; + height: 40px !important; +} + +.conditional-editor-modal-operator-selector { + height: 41px !important; + min-height: 40px; + margin-top: 7px; +} diff --git a/assets/jsx/workflow-editor/components/data-fields/date-offset.jsx b/assets/jsx/workflow-editor/components/data-fields/date-offset.jsx index 9c93b1fd7..617517c26 100644 --- a/assets/jsx/workflow-editor/components/data-fields/date-offset.jsx +++ b/assets/jsx/workflow-editor/components/data-fields/date-offset.jsx @@ -9,7 +9,7 @@ import { __experimentalVStack as VStack, } from "@wordpress/components"; import { VariablesTreeSelect } from "../variables-tree-select"; -import { useState } from "@wordpress/element"; +import { useState, useMemo } from "@wordpress/element"; import { useSelect } from "@wordpress/data"; import { store as editorStore } from "../editor-store"; import { FEATURE_ADVANCED_SETTINGS } from "../../constants"; @@ -19,6 +19,7 @@ import { Slot } from "@wordpress/components"; import ProFeatureButton from "../pro-feature-button"; import Recurrence from "./recurrence"; import ProFeatureField from "../pro-feature-field"; +import ExpressionBuilder from "./expression-builder"; /** * When to execute: @@ -39,7 +40,9 @@ import ProFeatureField from "../pro-feature-field"; * */ export function DateOffset({ name, label, defaultValue, onChange, variables = [], settings }) { - variables = filterVariableOptionsByDataType(variables, ['datetime']); + const allVariables = useMemo(() => { + return variables; + }, [variables]); const defaultSpecificDate = new Date(); defaultSpecificDate.setDate(defaultSpecificDate.getDate() + 3); @@ -47,6 +50,24 @@ export function DateOffset({ name, label, defaultValue, onChange, variables = [] const defaultRepeatDate = new Date(); defaultRepeatDate.setDate(defaultRepeatDate.getDate() + 7); + const variablesTree = variables.map((variable) => { + const mapChildren = (children) => { + if (!children) return undefined; + + return children.map(child => ({ + name: child.label, + id: child.name, + children: mapChildren(child.children) + })); + }; + + return { + name: variable.label, + id: variable.name, + children: mapChildren(variable.children) + }; + }); + defaultValue = { whenToRun: "now", dateSource: "calendar", @@ -81,13 +102,21 @@ export function DateOffset({ name, label, defaultValue, onChange, variables = [] { name: __("Selected in the calendar", "post-expirator"), id: "calendar" }, { name: __("When the trigger is activated", "post-expirator"), id: "event"}, { name: __("When the step is activated", "post-expirator"), id: "step"}, - ...variables + { name: __("Custom date source", "post-expirator"), id: "custom"}, ]; + const validDateSources = ['calendar', 'event', 'step', 'custom']; + const isLegacyDateSource = !validDateSources.includes(defaultValue.dateSource); + + if (isLegacyDateSource) { + defaultValue.customDateSource = defaultValue.dateSource; + defaultValue.dateSource = 'custom'; + } + // Filter out hidden date sources if (settings && settings?.hideDateSources) { dateSourceOptions = dateSourceOptions.filter((option) => { - return !settings.hideDateSources.includes(option.id); + return !settings.hideDateSources.includes(option.name); }); } @@ -157,6 +186,24 @@ export function DateOffset({ name, label, defaultValue, onChange, variables = [] /> )} + {defaultValue.dateSource === 'custom' && ( + { + onChangeSetting({ settingName: 'customDateSource', value }); + }} + variables={allVariables} + singleVariableOnly={true} + readOnlyPreview={true} + description={__("Click the button to choose a custom date source from variables that can provide a date.", "post-expirator")} + wrapOnPreview={false} + wrapOnEditor={false} + oneLinePreview={true} + /> + )} + {defaultValue.whenToRun === 'offset' && ( <> {!hidePreventDuplicateScheduling && ( - onChangeSetting({ settingName: "uniqueIdExpression", value })} - help={__("Define a custom expression for a unique task ID. Use placeholders like {{onSavePost1.post.ID}}, {{global.user.ID}} or {{global.execution_id}} to make sure the ID is unique.", "post-expirator")} + defaultValue={defaultValue.uniqueIdExpression ?? ''} + onChange={(settingName, value) => { + onChangeSetting({ settingName: 'uniqueIdExpression', value: value }); + }} + variables={allVariables} + description={__("Define a custom expression for a unique task ID. Use placeholders like {{onSavePost1.post.ID}}, {{global.user.ID}} or {{global.execution_id}} to make sure the ID is unique.", "post-expirator")} + oneLinePreview={true} + wrapOnPreview={false} + wrapOnEditor={false} /> )} diff --git a/assets/jsx/workflow-editor/components/data-fields/debug-data.jsx b/assets/jsx/workflow-editor/components/data-fields/debug-data.jsx index a0c1afef6..6369b3725 100644 --- a/assets/jsx/workflow-editor/components/data-fields/debug-data.jsx +++ b/assets/jsx/workflow-editor/components/data-fields/debug-data.jsx @@ -1,54 +1,78 @@ import { __ } from "@wordpress/i18n"; -import { TreeSelect, TextareaControl } from "@wordpress/components"; -import { __experimentalVStack as VStack } from "@wordpress/components"; +import { RadioControl, __experimentalVStack as VStack } from "@wordpress/components"; +import { ExpressionBuilder } from "./expression-builder"; +import { useCallback, useEffect, useState } from "@wordpress/element"; export function DebugData({ name, label, defaultValue, onChange, variables = [] }) { - let debugOptions = [ - { name: __("All received input", "post-expirator"), id: "all-input" }, - ]; + const [selectedOption, setSelectedOption] = useState(); + const defaultDebugOption = {expression: "{{input}}"}; - if (variables.length > 0) { - variables.forEach((variable) => { - debugOptions.push({ - name: variable.name, - id: variable.id, - children: variable.children, - }); - }); + const onChangeSetting = (name, value) => { + if (onChange) { + onChange(name, value); + } } - // Add a new option to output custom data - debugOptions.push({ - name: __("Custom data", "post-expirator"), - id: "custom-data", - }); + // Convert legacy data to new data + if (defaultValue?.dataToOutput) { + defaultValue = {expression: `{{${defaultValue.dataToOutput}}}`}; - const defaultDebugOption = "all-input"; + if (defaultValue.expression === '{{all-input}}') { + defaultValue.expression = "{{input}}"; + } + } - const onChangeSetting = ({ settingName, value }) => { - const newValue = { ...defaultValue }; - newValue[settingName] = value; + if (defaultValue?.expression && defaultValue?.expression === '{{custom-data}}') { + defaultValue = {expression: defaultValue.customData}; + } - if (onChange) { - onChange(name, newValue); + useEffect(() => { + if (defaultValue?.expression === "{{input}}") { + setSelectedOption("input"); + } else { + setSelectedOption("custom-data"); } - } + }, []); + + const radioOptions = [ + { + label: __("All received input", "post-expirator"), + value: "input", + }, + { + label: __("Custom data", "post-expirator"), + value: "custom-data", + }, + ]; + + const onChangeRadio = useCallback((value) => { + setSelectedOption(value); + + if (value === "input") { + onChangeSetting(name, {expression: "{{input}}"}); + } else { + defaultValue.expression = ''; + onChangeSetting(name, {expression: defaultValue.expression}); + } + }, [onChangeSetting, name, defaultValue]); return ( <> - onChangeSetting({ settingName: "dataToOutput", value })} + - {defaultValue?.dataToOutput === "custom-data" && ( - onChangeSetting({ settingName: "customData", value })} + {selectedOption === "custom-data" && ( + )} diff --git a/assets/jsx/workflow-editor/components/data-fields/description-text.jsx b/assets/jsx/workflow-editor/components/data-fields/description-text.jsx new file mode 100644 index 000000000..140257c36 --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/description-text.jsx @@ -0,0 +1,19 @@ +import { HelpLink } from "./help-link"; + +export const DescriptionText = ({ + text, + helpUrl, + className = 'description margin-top' +}) => { + return ( +

+ {text} + {helpUrl && ( + <> +
+ + + )} +

+ ); +} diff --git a/assets/jsx/workflow-editor/components/data-fields/email-recipient.jsx b/assets/jsx/workflow-editor/components/data-fields/email-recipient.jsx deleted file mode 100644 index 0bcdcbce9..000000000 --- a/assets/jsx/workflow-editor/components/data-fields/email-recipient.jsx +++ /dev/null @@ -1,51 +0,0 @@ -import { __ } from "@wordpress/i18n"; -import { VariablesTreeSelect } from "../variables-tree-select"; -import { TextareaControl } from "@wordpress/components"; -import { __experimentalVStack as VStack } from "@wordpress/components"; -import { filterVariableOptionsByDataType } from "../../utils"; - -export function EmailRecipient({ name, label, defaultValue, onChange, settings, variables = [] }) { - - variables = filterVariableOptionsByDataType(variables, ['email']); - - let recipientOptions = [ - ...variables, - { name: __("Custom Addresses", "post-expirator"), id: "custom" } - ]; - - const onChangeSetting = ({ settingName, value }) => { - const newValue = { ...defaultValue }; - newValue[settingName] = value; - - if (settingName === "recipient" && value !== "custom") { - newValue.custom = ""; - } - - if (onChange) { - onChange(name, newValue); - } - } - - return ( - <> - - onChangeSetting({ settingName: "recipient", value })} - /> - - {defaultValue?.recipient === "custom" && ( - onChangeSetting({ settingName: "custom", value })} - /> - )} - - - ); -} - -export default EmailRecipient; diff --git a/assets/jsx/workflow-editor/components/data-fields/expression-builder/column-item.jsx b/assets/jsx/workflow-editor/components/data-fields/expression-builder/column-item.jsx new file mode 100644 index 000000000..33dd1d6b3 --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/expression-builder/column-item.jsx @@ -0,0 +1,84 @@ +import { __ } from "@wordpress/i18n"; +import { useState } from "@wordpress/element"; +import { TextControl, Button } from "@wordpress/components"; + +const ColumnItemMeta = ({ item, onClick }) => { + const [metaKey, setMetaKey] = useState(''); + + const metaItem = { + name: item.name + '.' + metaKey, + label: 'Metadata key', + description: 'Type the meta key and click on the button to insert it.', + } + + return ( +
+ setMetaKey(value)} + help={item.description} + /> + +
+ ); +} + +const ColumnItemVariable = ({ + item, + currentItemPath, + onClick, + setCurrentDescription, + setCurrentVariableId, + onDoubleClick, + path = [], + index +}) => { + const hasChildren = item.children && item.children.length > 0; + const currentColumnIndex = path.length - 1; + const selectedItemIndex = currentItemPath[currentColumnIndex]; + + const onMouseEnter = () => { + setCurrentDescription(`${item.description}`); + setCurrentVariableId(item.name); + } + + return
onClick(path, currentColumnIndex, index)} + onMouseEnter={onMouseEnter} + onDoubleClick={() => onDoubleClick(item)} + > + {item.label} +
; +}; + +export const ColumnItem = ({ + item, + currentItemPath, + onClick, + setCurrentDescription, + setCurrentVariableId, + onDoubleClick, + path = [], + index +}) => { + if (item?.type === 'meta-key-input') { + return ; + } + + return ; +}; + +export default ColumnItem; diff --git a/assets/jsx/workflow-editor/components/data-fields/expression-builder/columns-container.jsx b/assets/jsx/workflow-editor/components/data-fields/expression-builder/columns-container.jsx new file mode 100644 index 000000000..5d47fdfa3 --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/expression-builder/columns-container.jsx @@ -0,0 +1,110 @@ +import { useState, useCallback } from "@wordpress/element"; +import { ColumnItem } from "./column-item"; + +const RenderColumns = ({ + currentItemPath, + currentItems, + onClick, + setCurrentDescription, + onDoubleClick, + path = [], + setCurrentVariableId +}) => { + if (!currentItems) return null; + + const currentColumnIndex = path.length; + const selectedItemIndex = currentItemPath[currentColumnIndex]; + let currentItem = currentItems[selectedItemIndex]; + + const addMetaKeyInputChildren = useCallback((item) => { + return { + ...item, + children: [ + { + name: item.name, + label: 'Metadata key', + description: 'Type the meta key and click on the button to insert it.', + type: 'meta-key-input' + } + ] + } + }, []); + + if (currentItem?.type === 'meta') { + currentItem = addMetaKeyInputChildren(currentItem); + } + + return ( + <> +
+ {currentItems.map((item, index) => { + if (item.type === 'meta') { + item = addMetaKeyInputChildren(item); + } + return ; + })} +
+ + {selectedItemIndex !== undefined && currentItem?.children && ( + + )} + + ); +}; + +export const ColumnsContainer = ({ + items, + setCurrentDescription, + onDoubleClick, + setCurrentVariableId +}) => { + const [currentItemPath, setCurrentItemPath] = useState([]); + + const onClick = useCallback((path, currentColumnIndex, index) => { + // Remove the items from the path that are after the current column index + const newPath = path.slice(0, currentColumnIndex + 1); + newPath.push(index); + + setCurrentItemPath(newPath); + + const container = document.querySelector('.columns-container'); + if (container) { + setTimeout(() => { + container.scrollLeft = container.scrollWidth; + }, 0); + } + }, [setCurrentItemPath]); + + return ( +
+ +
+ ); +}; + +export default ColumnsContainer; diff --git a/assets/jsx/workflow-editor/components/data-fields/expression-builder/index.jsx b/assets/jsx/workflow-editor/components/data-fields/expression-builder/index.jsx new file mode 100644 index 000000000..2c49cadf7 --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/expression-builder/index.jsx @@ -0,0 +1,221 @@ +import { + Button, + Modal, + __experimentalHStack as HStack, + __experimentalHeading as Heading, + TextareaControl +} from "@wordpress/components"; +import { __ } from "@wordpress/i18n"; +import { useState, useRef, useCallback, useEffect } from "@wordpress/element"; +import NodeIcon from "../../node-icon"; +import ColumnsContainer from "./columns-container"; + +import AceEditor from "react-ace"; +import "ace-builds/src-noconflict/mode-handlebars"; +import "ace-builds/src-noconflict/theme-textmate"; +import "ace-builds/src-noconflict/ext-language_tools"; + +import './style.css'; + +export const ExpressionBuilder = ({ + name, + label = '', + defaultValue, + onChange, + variables = [], + propertyName = "expression", + settings = {}, + description = '', + isInline = false, + readOnlyPreview = false, + singleVariableOnly = false, + wrapOnPreview = false, + wrapOnEditor = false, + oneLinePreview = false, +}) => { + const editorFullRef = useRef(null); + const editorSmallRef = useRef(null); + + const [currentDescription, setCurrentDescription] = useState(); + const [currentVariableId, setCurrentVariableId] = useState(); + const [isOpen, setIsOpen] = useState(false); + + if (! defaultValue) { + defaultValue = {}; + } + + const onChangeSetting = useCallback(({ settingName, value }) => { + const newValue = { ...defaultValue }; + newValue[settingName] = value; + + if (onChange) { + onChange(name, newValue); + } + + // Example: Basic linting logic (you can integrate a real linter here) + const annotations = []; + if (value.includes('error')) { + annotations.push({ + row: 0, + column: 10, + text: "Example error: 'error' found in code", + type: "error" + }); + } + + if (editorFullRef.current) { + // editorFullRef.current.editor.getSession().setAnnotations(annotations); + } + }, [defaultValue]); + + const onClose = useCallback(() => { + setIsOpen(false); + }, [setIsOpen]); + + const onDoubleClick = useCallback((item) => { + if (editorFullRef.current) { + const editor = editorFullRef.current.editor; + + if (! singleVariableOnly) { + const cursorPosition = editor.getCursorPosition(); + editor.session.insert(cursorPosition, `{{${item.name}}}`); + } else { + editor.session.setValue(`{{${item.name}}}`); + } + + editor.focus(); + + if (singleVariableOnly) { + setIsOpen(false); + } + } + }, [editorFullRef, singleVariableOnly]); + + const editorProps = { + $blockScrolling: true, + }; + + useEffect(() => { + if (wrapOnPreview && editorSmallRef.current) { + editorSmallRef.current.editor.setOption("indentedSoftWrap", false); + } + }, [wrapOnPreview, editorSmallRef]); + + return
+ +
; +} + +export default ExpressionBuilder; diff --git a/assets/jsx/workflow-editor/components/data-fields/expression-builder/style.css b/assets/jsx/workflow-editor/components/data-fields/expression-builder/style.css new file mode 100644 index 000000000..3a1473b09 --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/expression-builder/style.css @@ -0,0 +1,155 @@ +.columns-container { + display: flex; + flex-direction: row; + border: 1px solid #ccc; + overflow-x: auto; + white-space: nowrap; + max-height: 212px; +} + +.column { + display: flex; + flex-direction: column; + min-width: 150px; + flex: 0 0 auto; + border-right: 1px solid #ccc; + overflow-y: scroll; + max-height: 270px; +} + +.column-item { + cursor: pointer; + padding: 2px 6px; + position: relative; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} + +.column-item.has-children::after { + content: '▶'; + display: inline-block; + position: absolute; + right: 4px; + top: 50%; + transform: translateY(-50%); + color: #ccc; +} + +.column-item:hover { + background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); + color: var(--wp-components-color-accent-inverted, #fff); + opacity: 0.4; +} + +.selected { + background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); + color: var(--wp-components-color-accent-inverted, #fff); +} + +.column-item.has-children.selected::after { + color: var(--wp-components-color-accent-inverted, #fff); +} + +.column-item.selected:hover { + background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); + color: var(--wp-components-color-accent-inverted, #fff); + opacity: 0.8; +} + +#expression-editor-full { + border: 1px solid #ccc; + margin-bottom: 10px; + margin-top: 10px; +} + +#expression-editor-preview { + margin-bottom: 10px; + border: 1px solid #ccc; +} + +.ace_editor { + border: 1px solid #ccc; + margin-bottom: 10px; +} + +.ace_editor.ace_autocomplete { + z-index: 999999999; +} + +.components-modal__screen-overlay { + z-index: 999999998; +} + +.expression-builder { + position: relative; + padding-top: 20px; + width: 100%; +} + +.expression-builder .expression-builder-button { + position: absolute; + top: 12px; + right: 0; + height: 24px; + padding-top: 4px; + width: 24px !important; + display: inline-block; + min-width: 24px; + padding-left: 4px; +} + +.column-item-form { + padding: 10px; + max-width: 202px; +} + +.column-item-form p { + text-wrap: auto; +} + +.expression-builder-variable-name { + margin-left: 5px; +} + +.expression-builder-inline { + padding-top: 0 !important; +} + +.expression-builder-inline .ace_editor { + margin-top: 0 !important; + margin-right: 40px !important; + margin-bottom: 0 !important; + height: 40px !important; + width: 300px !important; +} + +.expression-builder-inline > button { + top: 0 !important; + right: 0 !important; + height: 40px !important; +} + +.ace_editor.settings-panel { + width: 246px !important; + height: 180px !important; + margin-top: 10px !important; +} + +.ace_editor.read-only-editor { + background-color: #f3f3f3 !important; +} + +.ace_content { + top: 5px; +} + +#expression-builder-full .ace_content { + top: 0 !important; +} + +.expression-builder-modal .description:last-of-type { + min-height: 40px !important; + margin-top: 10px !important; +} diff --git a/assets/jsx/workflow-editor/components/data-fields/help-link.jsx b/assets/jsx/workflow-editor/components/data-fields/help-link.jsx new file mode 100644 index 000000000..bff67924a --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/help-link.jsx @@ -0,0 +1,11 @@ +import { __ } from "@wordpress/i18n"; + +export const HelpLink = ({ url, label }) => { + if (!label) { + label = __('Learn more', 'post-expirator'); + } + + return ( + {label} + ); +} diff --git a/assets/jsx/workflow-editor/components/data-fields/list.jsx b/assets/jsx/workflow-editor/components/data-fields/list.jsx index b369d4076..84d92a477 100644 --- a/assets/jsx/workflow-editor/components/data-fields/list.jsx +++ b/assets/jsx/workflow-editor/components/data-fields/list.jsx @@ -2,7 +2,6 @@ import { ListInput } from "./list-input"; import { filterVariableOptionsByDataType } from "../../utils"; export function List({ name, label, defaultValue, onChange, settingsSchema }) { - console.log(settingsSchema); let options = settingsSchema[0]['fields'][2]['options']; options = options.map((option) => { diff --git a/assets/jsx/workflow-editor/components/data-fields/post-query.jsx b/assets/jsx/workflow-editor/components/data-fields/post-query.jsx index a0c2c0f54..480b60aae 100644 --- a/assets/jsx/workflow-editor/components/data-fields/post-query.jsx +++ b/assets/jsx/workflow-editor/components/data-fields/post-query.jsx @@ -10,7 +10,7 @@ export function PostQuery({ label, defaultValue, onChange, - settings + settings, }) { const postTypes = futureWorkflowEditor.postTypes; const postStatuses = futureWorkflowEditor.postStatuses; @@ -28,6 +28,7 @@ export function PostQuery({ const isPostTypeRequired = settings && settings?.isPostTypeRequired === true; const defaultPostSource =acceptsInput ? 'input' : 'custom'; const showCustomQueryFields = defaultValue?.postSource === 'custom' || ! acceptsInput; + const hidePostStatus = settings && settings?.hidePostStatus === true; // Set default setting useEffect(() => { @@ -45,6 +46,12 @@ export function PostQuery({ const postTypeFieldLabel = isPostTypeRequired ? __('Post Type', 'post-expirator') + ' *' : __('Post Type', 'post-expirator'); + const descriptions = { + postType: settings?.postTypeDescription || null, + postId: settings?.postIdDescription || null, + postStatus: settings?.postStatusDescription || null, + }; + return ( <> @@ -61,7 +68,6 @@ export function PostQuery({ )} {/* More than one post input? */} - {showCustomQueryFields && ( <> onChangeSetting({ settingName: "postType", value })} /> + {descriptions?.postType && ( +

{descriptions.postType}

+ )} + + {isPostTypeRequired && ( +

{__('* Required field', 'post-expirator')}

+ )} + onChangeSetting({ settingName: "postId", value })} /> - onChangeSetting({ settingName: "postStatus", value })} - /> + {descriptions?.postId && ( +

{descriptions.postId}

+ )} + + {!hidePostStatus && ( + <> + onChangeSetting({ settingName: "postStatus", value })} + /> + + {descriptions?.postStatus && ( +

{descriptions.postStatus}

+ )} + + )} )} - - {isPostTypeRequired && ( -

{__('* Required field', 'post-expirator')}

- )}
); } export default PostQuery; - - -/* -Complex query, maybe for the conditional node type? - -* post new status -* post old status -* post author (one or more) -* post author role (one or more) -* post author capability (one or more) -* post taxonomy (one or more, taxonomy and terms) -* post title (equals, contains, starts with, ends with) -* post content (equals, contains, starts with, ends with) -* post excerpt (equals, contains, starts with, ends with) -* post date (before, after, between) -* post modified date (before, after, between) -* post parent -* post slug (equals, contains, starts with, ends with) -* meta data (key, value, compare) -* user meta data (key, value, compare) -* user role (one or more) -* user capability (one or more) -* user email (equals, contains, starts with, ends with) -* user login (equals, contains, starts with, ends with) -* user nicename (equals, contains, starts with, ends with) -*/ diff --git a/assets/jsx/workflow-editor/components/data-fields/text.jsx b/assets/jsx/workflow-editor/components/data-fields/text.jsx index 634df0eb8..e5cb556f6 100644 --- a/assets/jsx/workflow-editor/components/data-fields/text.jsx +++ b/assets/jsx/workflow-editor/components/data-fields/text.jsx @@ -1,9 +1,18 @@ import { __ } from "@wordpress/i18n"; import { TextControl } from "@wordpress/components"; import { __experimentalVStack as VStack } from "@wordpress/components"; +import { DescriptionText } from "./description-text"; -export function Text({ name, label, defaultValue, onChange, settings, variables = [] }) { - +export function Text({ + name, + label, + defaultValue, + onChange, + settings, + variables = [], + helpUrl, + description, +}) { const onChangeSetting = ({ value }) => { if (onChange) { onChange(name, value); @@ -25,6 +34,10 @@ export function Text({ name, label, defaultValue, onChange, settings, variables onChange={(value) => onChangeSetting({ value })} placeholder={placeholder} /> + + {description && ( + + )} ); diff --git a/assets/jsx/workflow-editor/components/data-fields/toggle.jsx b/assets/jsx/workflow-editor/components/data-fields/toggle.jsx new file mode 100644 index 000000000..f3aa31f3b --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-fields/toggle.jsx @@ -0,0 +1,26 @@ +import { __ } from "@wordpress/i18n"; +import { ToggleControl } from "@wordpress/components"; +import { __experimentalVStack as VStack } from "@wordpress/components"; + +export function Toggle({ name, label, defaultValue, onChange, settings, variables = [] }) { + + const onChangeSetting = ({ value }) => { + if (onChange) { + onChange(name, value); + } + } + + return ( + <> + + onChangeSetting({ value })} + /> + + + ); +} + +export default Toggle; diff --git a/assets/jsx/workflow-editor/components/data-types/future-action.jsx b/assets/jsx/workflow-editor/components/data-types/future-action.jsx new file mode 100644 index 000000000..e54f6a0ef --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-types/future-action.jsx @@ -0,0 +1,48 @@ +export function FutureActionData() { + return { + name: "future_action", + label: "Future Action", + type: "object", + objectType: "future_action", + propertiesSchema: [ + { + name: "enabled", + type: "boolean", + label: "Enabled", + description: "Whether the future action is enabled.", + }, + { + name: "action", + type: "string", + label: "Action", + description: "The action to be performed.", + }, + { + name: "new_status", + type: "string", + label: "New Status", + description: "The new status of the post.", + }, + { + name: "date", + type: "integer", + label: "Date", + description: "The date when the future action will be performed in Unix timestamp format.", + }, + { + name: "date_string", + type: "datetime", + label: "Date String", + description: "The date when the future action will be performed.", + }, + { + name: "terms", + type: "terms_array", + label: "Terms", + description: "The terms to be used in the future action.", + } + ] + } +} + +export default FutureActionData; diff --git a/assets/jsx/workflow-editor/components/data-types/index.jsx b/assets/jsx/workflow-editor/components/data-types/index.jsx index 871c570db..dd0585923 100644 --- a/assets/jsx/workflow-editor/components/data-types/index.jsx +++ b/assets/jsx/workflow-editor/components/data-types/index.jsx @@ -10,3 +10,5 @@ export { default as UserData } from './user'; export { default as SiteData } from './site'; export { default as NodeData } from './node'; export { default as ArrayData } from './array'; +export { default as FutureActionData } from './future-action'; +export { default as TermsArrayData } from './terms-array'; diff --git a/assets/jsx/workflow-editor/components/data-types/node.jsx b/assets/jsx/workflow-editor/components/data-types/node.jsx index 5eef8bd37..d07208433 100644 --- a/assets/jsx/workflow-editor/components/data-types/node.jsx +++ b/assets/jsx/workflow-editor/components/data-types/node.jsx @@ -9,26 +9,31 @@ export function NodeData() { name: "id", type: "integer", label: "ID", + description: "The unique identifier for the node.", }, { name: "name", type: "string", label: "Name", + description: "The name of the node.", }, { name: "slug", type: "string", label: "Slug", + description: "The slug of the node.", }, { name: "label", type: "string", label: "Label", + description: "The label of the node.", }, { name: "activation_timestamp", type: "string", label: "Activation Time", + description: "The timestamp when the node was activated.", } ], }; diff --git a/assets/jsx/workflow-editor/components/data-types/post.jsx b/assets/jsx/workflow-editor/components/data-types/post.jsx index 0a987bbc8..316459d30 100644 --- a/assets/jsx/workflow-editor/components/data-types/post.jsx +++ b/assets/jsx/workflow-editor/components/data-types/post.jsx @@ -6,60 +6,89 @@ export function PostData() { objectType: "post", propertiesSchema: [ { - name: "post_title", + name: "title", type: "string", label: "Title", + description: "The title of the post.", }, { - name: "post_content", + name: "content", type: "string", label: "Content", + description: "The content of the post.", }, { - name: "post_content_text", + name: "content_text", type: "string", label: "Content (Plain Text)", + description: "The content of the post in plain text.", }, { - name: "post_excerpt", + name: "excerpt", type: "string", label: "Excerpt", + description: "The excerpt of the post.", }, { - name: "post_status", + name: "status", type: "string", label: "Post Status", + description: "The status of the post.", }, { - name: "post_type", + name: "type", type: "string", label: "Post Type", + description: "The type of the post.", }, { name: "id", type: "integer", label: "ID", + description: "The unique identifier for the post.", }, { - name: "post_date", + name: "date", type: "datetime", label: "Publish Date", + description: "The date when the post was published.", }, { - name: "post_modified", + name: "modified", type: "datetime", label: "Modification Date", + description: "The date when the post was last modified.", }, { name: "permalink", type: "string", label: "Permalink", + description: "The permalink of the post.", + }, + { + name: "slug", + type: "string", + label: "Slug", + description: "The slug (or post name)of the post.", + }, + { + name: "author", + type: "user", + label: "Author", + description: "The author of the post.", }, { name: "meta", - type: "object", + type: "meta", label: "Metadata", + description: "The metadata of the post.", }, + { + name: "future", + type: "future_action", + label: "Future Action", + description: "The future action properties of the post.", + } ], }; } diff --git a/assets/jsx/workflow-editor/components/data-types/site.jsx b/assets/jsx/workflow-editor/components/data-types/site.jsx index 7ebcd38ff..bdb8902ca 100644 --- a/assets/jsx/workflow-editor/components/data-types/site.jsx +++ b/assets/jsx/workflow-editor/components/data-types/site.jsx @@ -9,36 +9,43 @@ export function SiteData() { name: "id", type: "integer", label: "ID", + description: "The unique identifier for the site.", }, { name: "name", type: "string", label: "Name", + description: "The name of the site.", }, { name: "description", type: "string", label: "Description", + description: "The description of the site.", }, { name: "url", type: "string", label: "Site URL", + description: "The URL of the site.", }, { name: "home_url", type: "string", label: "Home URL", + description: "The URL of the home page of the site.", }, { name: "admin_email", type: "email", label: "Admin Email", + description: "The email address of the site administrator.", }, { name: "meta", - type: "object", + type: "meta", label: "Metadata", + description: "The metadata of the site.", }, ], }; diff --git a/assets/jsx/workflow-editor/components/data-types/terms-array.jsx b/assets/jsx/workflow-editor/components/data-types/terms-array.jsx new file mode 100644 index 000000000..060d5c607 --- /dev/null +++ b/assets/jsx/workflow-editor/components/data-types/terms-array.jsx @@ -0,0 +1,24 @@ +export function TermsArrayData() { + return { + name: "terms_array", + label: "Terms Array", + type: "object", + objectType: "terms_array", + propertiesSchema: [ + { + name: "ids", + type: "array", + label: "List of terms IDs", + description: "A list of terms IDs.", + }, + { + name: "labels", + type: "array", + label: "List of terms labels", + description: "A list of terms labels.", + }, + ] + } +} + +export default TermsArrayData; diff --git a/assets/jsx/workflow-editor/components/data-types/user.jsx b/assets/jsx/workflow-editor/components/data-types/user.jsx index 0e4674bbd..1576bd049 100644 --- a/assets/jsx/workflow-editor/components/data-types/user.jsx +++ b/assets/jsx/workflow-editor/components/data-types/user.jsx @@ -9,41 +9,49 @@ export function UserData() { name: "ID", type: "integer", label: "ID", + description: "The unique identifier for the user.", }, { - name: "user_email", + name: "email", type: "email", label: "Email", + description: "The email address of the user.", }, { - name: "user_login", + name: "login", type: "string", - label: "User Login", + label: "Login", + description: "The login name of the user.", }, { name: "display_name", type: "string", - label: "Display Name", + label: "Display name", + description: "The display name of the user.", }, { name: "roles", type: "array", label: "Roles", + description: "The roles of the user.", }, { name: "caps", type: "object", label: "Capabilities", + description: "The capabilities of the user.", }, { - name: "user_registered", + name: "registered", type: "datetime", - label: "Registration Date", + label: "Registration date", + description: "The date when the user was registered.", }, { name: "meta", - type: "object", + type: "meta", label: "Metadata", + description: "The metadata of the user.", }, ], }; diff --git a/assets/jsx/workflow-editor/components/data-types/workflow.jsx b/assets/jsx/workflow-editor/components/data-types/workflow.jsx index 704940bd9..dff830278 100644 --- a/assets/jsx/workflow-editor/components/data-types/workflow.jsx +++ b/assets/jsx/workflow-editor/components/data-types/workflow.jsx @@ -9,31 +9,31 @@ export function WorkflowData() { name: "id", type: "integer", label: "ID", + description: "The unique identifier for the workflow.", }, { name: "title", type: "string", label: "Title", + description: "The title of the workflow.", }, { name: "description", type: "string", label: "Description", + description: "The description of the workflow.", }, { name: "modified_at", type: "datetime", label: "Modification Date", - }, - { - name: "steps", - type: "node", - label: "Steps", + description: "The date when the workflow was last modified.", }, { name: "meta", - type: "object", + type: "meta", label: "Metadata", + description: "The metadata of the workflow.", }, ], }; diff --git a/assets/jsx/workflow-editor/components/flow-editor/auto-layout/elk.jsx b/assets/jsx/workflow-editor/components/flow-editor/auto-layout/elk.jsx index 135dbf026..614f5a53a 100644 --- a/assets/jsx/workflow-editor/components/flow-editor/auto-layout/elk.jsx +++ b/assets/jsx/workflow-editor/components/flow-editor/auto-layout/elk.jsx @@ -1,5 +1,5 @@ import ELK from "elkjs"; -import { AUTO_LAYOUT_DIRECTION_DOWN, AUTO_LAYOUT_DIRECTION_RIGHT } from "./constants"; +import { AUTO_LAYOUT_DIRECTION_RIGHT } from "./constants"; export const useLayoutedElements = ({ nodes, @@ -15,18 +15,18 @@ export const useLayoutedElements = ({ // - https://www.eclipse.org/elk/reference/options.html const opts = { 'elk.direction': direction, - 'elk.algorithm': 'layered', - 'elk.layered.spacing.nodeNodeBetweenLayers': '70', // Vertical spacing between nodes/layers - 'elk.spacing.nodeNode': '70', // Horizontal spacing between nodes + 'elk.algorithm': 'mrtree', + 'elk.spacing.nodeNode': '60', }; const getLayoutedElements = async (nodes, edges, options = {}) => { const isHorizontal = options?.['elk.direction'] === AUTO_LAYOUT_DIRECTION_RIGHT; - const graph = { - id: 'root', - layoutOptions: options, - children: nodes.map((node) => ({ + const getNodeList = (nodes) => nodes.map((node) => { + const nodeElement = document.querySelector(`div[data-id="${node.id}"]`); + const width = nodeElement?.offsetWidth || 127; + const height = nodeElement?.offsetHeight || 62; + return { ...node, // Adjust the target and source handle positions based on the layout // direction. @@ -34,10 +34,34 @@ export const useLayoutedElements = ({ sourcePosition: isHorizontal ? 'right' : 'bottom', // Hardcode a width and height for elk to use when layouting. - width: 150, - height: 50, - })), - edges: edges, + width, + height, + }; + }); + + const getEdgeList = (edges) => { + // Sort grouping by source node + let edgesList = edges.sort((edgeA, edgeB) => edgeA.source.localeCompare(edgeB.source)); + + // Sort conditional split edges to avoid crossing the connections + edgesList = edgesList.sort((edgeA, edgeB) => { + if (edgeA.sourceHandle === 'false' && edgeB.sourceHandle === 'true') { + return 1; + } + if (edgeA.sourceHandle === 'true' && edgeB.sourceHandle === 'false') { + return -1; + } + return 0; + }); + + return edgesList; + }; + + const graph = { + id: 'root', + layoutOptions: options, + children: getNodeList(nodes), + edges: getEdgeList(edges), }; const elk = new ELK(); diff --git a/assets/jsx/workflow-editor/components/flow-editor/index.jsx b/assets/jsx/workflow-editor/components/flow-editor/index.jsx index 5c0fd066d..55d23874c 100644 --- a/assets/jsx/workflow-editor/components/flow-editor/index.jsx +++ b/assets/jsx/workflow-editor/components/flow-editor/index.jsx @@ -86,6 +86,7 @@ export const FlowEditor = (props) => { removePlaceholderNodes, setDraggingFromHandle, setIsConnectingNodes, + unselectAll, } = useDispatch(workflowStore); const { @@ -274,10 +275,12 @@ export const FlowEditor = (props) => { ); const onNodesDelete = useCallback(() => { + unselectAll(); updateFlowInEditedWorkflow(); }); const onEdgesDelete = useCallback(() => { + unselectAll(); updateFlowInEditedWorkflow(); }); diff --git a/assets/jsx/workflow-editor/components/icons/braces.jsx b/assets/jsx/workflow-editor/components/icons/braces.jsx new file mode 100644 index 000000000..4ab71f245 --- /dev/null +++ b/assets/jsx/workflow-editor/components/icons/braces.jsx @@ -0,0 +1,12 @@ +import BaseIcon from "./base" + +/** + * Icon BsBraces from 'react-icons/bs'. + */ +export default function BracesIcon({size = 16}) { + return ( + + + + ) +} diff --git a/assets/jsx/workflow-editor/components/keyboard-shortcuts/constants.jsx b/assets/jsx/workflow-editor/components/keyboard-shortcuts/constants.jsx index 4a727762a..bd8b716d6 100644 --- a/assets/jsx/workflow-editor/components/keyboard-shortcuts/constants.jsx +++ b/assets/jsx/workflow-editor/components/keyboard-shortcuts/constants.jsx @@ -11,3 +11,5 @@ export const SHORTCUT_TOGGLE_DEVELOPER_MODE = "publishpress-future/workflow-editor/toggle-developer-mode"; export const SHORTCUT_TOGGLE_ADVANCED_SETTINGS = "publishpress-future/workflow-editor/toggle-advanced-settings"; +export const SHORTCUT_SAVE_AS_CURRENT_STATUS = + "publishpress-future/workflow-editor/save-as-current-status"; diff --git a/assets/jsx/workflow-editor/components/keyboard-shortcuts/index.jsx b/assets/jsx/workflow-editor/components/keyboard-shortcuts/index.jsx index cb10da048..608c46e14 100644 --- a/assets/jsx/workflow-editor/components/keyboard-shortcuts/index.jsx +++ b/assets/jsx/workflow-editor/components/keyboard-shortcuts/index.jsx @@ -3,6 +3,7 @@ import { store as shortcutStore, } from "@wordpress/keyboard-shortcuts"; import { store as editorStore } from "../editor-store"; +import { store as workflowStore } from "../workflow-store"; import { useEffect } from "@wordpress/element"; import { FEATURE_ADVANCED_SETTINGS, @@ -14,7 +15,7 @@ import { CUSTOM_EVENT_AUTO_LAYOUT, AUTO_LAYOUT_DIRECTION_DOWN, } from "../flow-editor/auto-layout/constants"; -import { useDispatch } from "@wordpress/data"; +import { useDispatch, useSelect } from "@wordpress/data"; import { SHORTCUT_TOGGLE_FULLSCREEN, SHORTCUT_FIT_VIEW, @@ -23,119 +24,62 @@ import { SHORTCUT_TOGGLE_SIDEBAR, SHORTCUT_TOGGLE_DEVELOPER_MODE, SHORTCUT_TOGGLE_ADVANCED_SETTINGS, + SHORTCUT_SAVE_AS_CURRENT_STATUS, } from "./constants"; import { useReactFlow } from "reactflow"; - +import { SHORTCUTS_CONFIG } from "./shortcuts"; export const KeyboardShortcuts = () => { const { registerShortcut } = useDispatch(shortcutStore); - const { toggleFeature } = useDispatch(editorStore); + const { takeScreenshot, saveAsCurrentStatus } = useDispatch(workflowStore); + const reactflow = useReactFlow(); - useEffect(() => { - registerShortcut({ - name: SHORTCUT_TOGGLE_FULLSCREEN, - category: "global", - description: "Toggle fullscreen mode", - keyCombination: { - modifier: "secondary", - character: "f", - }, - }); - - registerShortcut({ - name: SHORTCUT_TOGGLE_DEVELOPER_MODE, - category: "global", - description: "Toggle developer mode", - keyCombination: { - modifier: "secondary", - character: "d", - }, - }); - - registerShortcut({ - name: SHORTCUT_TOGGLE_ADVANCED_SETTINGS, - category: "global", - description: "Toggle advanced settings", - keyCombination: { - modifier: "secondary", - character: "a", - }, - }); - - registerShortcut({ - name: SHORTCUT_FIT_VIEW, - category: "global", - description: "Fit view", - keyCombination: { - modifier: "secondary", - character: "v", - }, - }); - - registerShortcut({ - name: SHORTCUT_TOGGLE_INSERTER, - category: "global", - description: "Toggle inserter", - keyCombination: { - modifier: "secondary", - character: "i", - }, - }); + const { isEditedWorkflowSaveable } = useSelect( + (select) => ({ + isEditedWorkflowSaveable: select(workflowStore).isEditedWorkflowSaveable, + }), + [] + ); - registerShortcut({ - name: SHORTCUT_AUTO_LAYOUT, - category: "global", - description: "Auto layout", - keyCombination: { - modifier: "secondary", - character: "l", - }, - }); - - registerShortcut({ - name: SHORTCUT_TOGGLE_SIDEBAR, - category: "global", - description: "Toggle sidebar", - keyCombination: { - modifier: "secondary", - character: "s", - }, + useEffect(() => { + SHORTCUTS_CONFIG.forEach((shortcut) => { + registerShortcut(shortcut); }); }, []); - useShortcut(SHORTCUT_TOGGLE_FULLSCREEN, () => { - toggleFeature(FEATURE_FULLSCREEN_MODE); - }); - - useShortcut(SHORTCUT_TOGGLE_DEVELOPER_MODE, () => { - toggleFeature(FEATURE_DEVELOPER_MODE); - }); - - const reactflow = useReactFlow(); - - useShortcut(SHORTCUT_FIT_VIEW, () => { - reactflow.fitView(); - }); - - useShortcut(SHORTCUT_TOGGLE_INSERTER, () => { - toggleFeature(FEATURE_INSERTER); - }); - + const handleSaveWithScreenshot = async (e) => { + e.preventDefault(); + + if (!isEditedWorkflowSaveable) return; + + try { + const { enableWorkflowScreenshot } = futureWorkflowEditor; + + if (enableWorkflowScreenshot) { + const dataUrl = await takeScreenshot(); + await saveAsCurrentStatus({ screenshot: dataUrl }); + } else { + await saveAsCurrentStatus(); + } + } catch (error) { + console.error('Failed to save workflow:', error); + } + } + + useShortcut(SHORTCUT_TOGGLE_FULLSCREEN, () => toggleFeature(FEATURE_FULLSCREEN_MODE)); + useShortcut(SHORTCUT_TOGGLE_DEVELOPER_MODE, () => toggleFeature(FEATURE_DEVELOPER_MODE)); + useShortcut(SHORTCUT_FIT_VIEW, () => reactflow.fitView()); + useShortcut(SHORTCUT_TOGGLE_INSERTER, () => toggleFeature(FEATURE_INSERTER )); useShortcut(SHORTCUT_AUTO_LAYOUT, () => { - const customEvent = new CustomEvent(CUSTOM_EVENT_AUTO_LAYOUT, { + document.dispatchEvent(new CustomEvent(CUSTOM_EVENT_AUTO_LAYOUT, { detail: { direction: AUTO_LAYOUT_DIRECTION_DOWN, }, - }); - - document.dispatchEvent(customEvent); - }); - - useShortcut(SHORTCUT_TOGGLE_SIDEBAR, () => {}); - - useShortcut(SHORTCUT_TOGGLE_ADVANCED_SETTINGS, () => { - toggleFeature(FEATURE_ADVANCED_SETTINGS); + })); }); + useShortcut(SHORTCUT_TOGGLE_ADVANCED_SETTINGS, () => toggleFeature(FEATURE_ADVANCED_SETTINGS)); + useShortcut(SHORTCUT_SAVE_AS_CURRENT_STATUS, handleSaveWithScreenshot); return null; }; + diff --git a/assets/jsx/workflow-editor/components/keyboard-shortcuts/shortcuts.jsx b/assets/jsx/workflow-editor/components/keyboard-shortcuts/shortcuts.jsx new file mode 100644 index 000000000..88e0b4f15 --- /dev/null +++ b/assets/jsx/workflow-editor/components/keyboard-shortcuts/shortcuts.jsx @@ -0,0 +1,85 @@ +import { + SHORTCUT_TOGGLE_FULLSCREEN, + SHORTCUT_FIT_VIEW, + SHORTCUT_TOGGLE_INSERTER, + SHORTCUT_AUTO_LAYOUT, + SHORTCUT_TOGGLE_SIDEBAR, + SHORTCUT_TOGGLE_DEVELOPER_MODE, + SHORTCUT_TOGGLE_ADVANCED_SETTINGS, + SHORTCUT_SAVE_AS_CURRENT_STATUS, +} from "./constants"; + +export const SHORTCUTS_CONFIG = [ + { + name: SHORTCUT_TOGGLE_FULLSCREEN, + category: "global", + description: "Toggle fullscreen mode", + keyCombination: { + modifier: "secondary", + character: "f", + }, + }, + { + name: SHORTCUT_TOGGLE_DEVELOPER_MODE, + category: "global", + description: "Toggle developer mode", + keyCombination: { + modifier: "secondary", + character: "d", + }, + }, + { + name: SHORTCUT_TOGGLE_ADVANCED_SETTINGS, + category: "global", + description: "Toggle advanced settings", + keyCombination: { + modifier: "secondary", + character: "a", + }, + }, + { + name: SHORTCUT_FIT_VIEW, + category: "global", + description: "Fit view", + keyCombination: { + modifier: "secondary", + character: "v", + }, + }, + { + name: SHORTCUT_TOGGLE_INSERTER, + category: "global", + description: "Toggle inserter", + keyCombination: { + modifier: "secondary", + character: "i", + }, + }, + { + name: SHORTCUT_AUTO_LAYOUT, + category: "global", + description: "Auto layout", + keyCombination: { + modifier: "secondary", + character: "l", + }, + }, + { + name: SHORTCUT_TOGGLE_SIDEBAR, + category: "global", + description: "Toggle sidebar", + keyCombination: { + modifier: "secondary", + character: "s", + }, + }, + { + name: SHORTCUT_SAVE_AS_CURRENT_STATUS, + category: "global", + description: "Save as current status", + keyCombination: { + modifier: "primary", + character: "s", + }, + }, +]; diff --git a/assets/jsx/workflow-editor/components/node-icon.jsx b/assets/jsx/workflow-editor/components/node-icon.jsx index f77b9460a..acf35d1af 100644 --- a/assets/jsx/workflow-editor/components/node-icon.jsx +++ b/assets/jsx/workflow-editor/components/node-icon.jsx @@ -22,8 +22,16 @@ import WebsiteIcon from './icons/website'; import ExclamationIcon from './icons/exclamation'; import LockIcon from './icons/lock'; import ShopIcon from './icons/shop'; +import BracesIcon from './icons/braces'; -export function NodeIcon({ icon, showColors = false, className, size = 20, onClick = () => {}, style = {} }) { +export function NodeIcon({ + icon, + showColors = false, + className, + iconSize = 20, + onClick = () => {}, + style = {}, +}) { const iconSrc = icon?.src || icon; switch (iconSrc) { @@ -118,13 +126,18 @@ export function NodeIcon({ icon, showColors = false, className, size = 20, onCli src: ShopIcon, }; break; + case 'braces': + icon = { + src: BracesIcon, + }; + break; } const mergedClassName = classnames(className, 'node-icon', { 'has-colors': showColors, }); - const renderedIcon = ; + const renderedIcon = ; const spanStyle = showColors ? { ...style, diff --git a/assets/jsx/workflow-editor/components/node-inspector/index.jsx b/assets/jsx/workflow-editor/components/node-inspector/index.jsx index 75691cb49..11a72a0ab 100644 --- a/assets/jsx/workflow-editor/components/node-inspector/index.jsx +++ b/assets/jsx/workflow-editor/components/node-inspector/index.jsx @@ -16,6 +16,7 @@ import ObjectGroupIcon from "../icons/object-group"; import LinesLeaningIcon from "../icons/lines-leaning"; import NodeDevInfoPanel from "../node-dev-info-panel"; import useScrollToTop from "../scrolled-to-top"; +import NodeDetailsPanel from "./node-details-panel"; export const NodeInspector = () => { const { @@ -145,18 +146,19 @@ export const NodeInspector = () => { <> + + {nodeHasSettings && ( )} - {isAdvancedSettingsEnabled && (selectedNodeHasInput || selectedNodeHasOutput) && ( - - )} - {isDeveloperModeEnabled && ( - + <> + + + )}
diff --git a/assets/jsx/workflow-editor/components/node-inspector/mapped-field.jsx b/assets/jsx/workflow-editor/components/node-inspector/mapped-field.jsx index 374e1a144..a0acc7e97 100644 --- a/assets/jsx/workflow-editor/components/node-inspector/mapped-field.jsx +++ b/assets/jsx/workflow-editor/components/node-inspector/mapped-field.jsx @@ -6,13 +6,14 @@ import RayColor from "../data-fields/ray-color"; import Text from "../data-fields/text"; import TaxonomyTerms from "../data-fields/taxonomy-terms"; import PostStatus from "../data-fields/post-status"; -import EmailRecipient from "../data-fields/email-recipient"; import Textarea from "../data-fields/textarea"; import PostInput from "../data-fields/post-input"; import ManualWorkflowInput from "../data-fields/manual-workflow-input"; import List from "../data-fields/list"; import Conditional from "../data-fields/conditional"; import DebugLevels from "../data-fields/debug-levels"; +import ExpressionBuilder from "../data-fields/expression-builder"; +import Toggle from "../data-fields/toggle"; export const MappedField = (props) => { switch (props.type) { @@ -32,6 +33,10 @@ export const MappedField = (props) => { return ( ); + case "toggle": + return ( + + ); case "debugData": return ( @@ -48,10 +53,6 @@ export const MappedField = (props) => { return (