Changeset 3005080
- Timestamp:
- 12/04/2023 11:55:16 AM (2 years ago)
- Location:
- dragblock
- Files:
-
- 292 added
- 1 deleted
- 5 edited
-
tags/23.12.04 (added)
-
tags/23.12.04/LICENSE (added)
-
tags/23.12.04/README.md (added)
-
tags/23.12.04/assets (added)
-
tags/23.12.04/assets/css (added)
-
tags/23.12.04/assets/css/animate.min.css (added)
-
tags/23.12.04/assets/images (added)
-
tags/23.12.04/assets/images/brands (added)
-
tags/23.12.04/assets/images/brands/favicon-16x16.png (added)
-
tags/23.12.04/assets/images/brands/favicon-192x192.png (added)
-
tags/23.12.04/assets/images/brands/favicon-20x20.png (added)
-
tags/23.12.04/assets/images/brands/favicon-32x32.png (added)
-
tags/23.12.04/assets/images/demo (added)
-
tags/23.12.04/assets/images/demo/blank.png (added)
-
tags/23.12.04/assets/jsons (added)
-
tags/23.12.04/assets/jsons/default-theme.json (added)
-
tags/23.12.04/build (added)
-
tags/23.12.04/build/1701.js (added)
-
tags/23.12.04/build/197.js (added)
-
tags/23.12.04/build/2131.js (added)
-
tags/23.12.04/build/2196.js (added)
-
tags/23.12.04/build/2233.js (added)
-
tags/23.12.04/build/2497.js (added)
-
tags/23.12.04/build/2618.js (added)
-
tags/23.12.04/build/2800.js (added)
-
tags/23.12.04/build/2906.js (added)
-
tags/23.12.04/build/3073.js (added)
-
tags/23.12.04/build/3590.js (added)
-
tags/23.12.04/build/3768.js (added)
-
tags/23.12.04/build/3915.js (added)
-
tags/23.12.04/build/4162.js (added)
-
tags/23.12.04/build/4169.js (added)
-
tags/23.12.04/build/4521.js (added)
-
tags/23.12.04/build/4685.js (added)
-
tags/23.12.04/build/5083.js (added)
-
tags/23.12.04/build/5257.js (added)
-
tags/23.12.04/build/5330.js (added)
-
tags/23.12.04/build/5422.js (added)
-
tags/23.12.04/build/5538.js (added)
-
tags/23.12.04/build/5694.js (added)
-
tags/23.12.04/build/5959.js (added)
-
tags/23.12.04/build/612.js (added)
-
tags/23.12.04/build/6176.js (added)
-
tags/23.12.04/build/6312.js (added)
-
tags/23.12.04/build/6356.js (added)
-
tags/23.12.04/build/6376.js (added)
-
tags/23.12.04/build/6506.js (added)
-
tags/23.12.04/build/6543.js (added)
-
tags/23.12.04/build/68.js (added)
-
tags/23.12.04/build/7234.js (added)
-
tags/23.12.04/build/7905.js (added)
-
tags/23.12.04/build/8469.js (added)
-
tags/23.12.04/build/8509.js (added)
-
tags/23.12.04/build/8633.js (added)
-
tags/23.12.04/build/9122.js (added)
-
tags/23.12.04/build/9132.js (added)
-
tags/23.12.04/build/9154.js (added)
-
tags/23.12.04/build/9209.js (added)
-
tags/23.12.04/build/952.js (added)
-
tags/23.12.04/build/9665.js (added)
-
tags/23.12.04/build/9729.js (added)
-
tags/23.12.04/build/applications (added)
-
tags/23.12.04/build/applications/admin-menu (added)
-
tags/23.12.04/build/applications/admin-menu/server (added)
-
tags/23.12.04/build/applications/admin-menu/server/index.php (added)
-
tags/23.12.04/build/applications/admin-menu/server/menu-register.php (added)
-
tags/23.12.04/build/applications/editor-init (added)
-
tags/23.12.04/build/applications/editor-init/client (added)
-
tags/23.12.04/build/applications/editor-init/client/editor (added)
-
tags/23.12.04/build/applications/editor-init/client/editor/block.json (added)
-
tags/23.12.04/build/applications/editor-init/client/editor/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-init/client/editor/index.css (added)
-
tags/23.12.04/build/applications/editor-init/client/editor/index.js (added)
-
tags/23.12.04/build/applications/editor-init/client/front (added)
-
tags/23.12.04/build/applications/editor-init/client/front/block.json (added)
-
tags/23.12.04/build/applications/editor-init/client/front/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-init/client/front/index.js (added)
-
tags/23.12.04/build/applications/editor-init/client/front/style-index.css (added)
-
tags/23.12.04/build/applications/editor-init/server (added)
-
tags/23.12.04/build/applications/editor-init/server/editor-init-enqueue.php (added)
-
tags/23.12.04/build/applications/editor-init/server/index.php (added)
-
tags/23.12.04/build/applications/editor-panel-appearance (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/client (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/client/block.json (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/client/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/client/index.css (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/client/index.js (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/client/style-index.css (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/server (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/server/appearance-enqueue.php (added)
-
tags/23.12.04/build/applications/editor-panel-appearance/server/index.php (added)
-
tags/23.12.04/build/applications/editor-panel-attributes (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/client (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/client/block.json (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/client/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/client/index.css (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/client/index.js (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/client/style-index.css (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/server (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/server/attributes-enqueue.php (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/server/attributes-render.php (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/server/attributes-uid.php (added)
-
tags/23.12.04/build/applications/editor-panel-attributes/server/index.php (added)
-
tags/23.12.04/build/applications/editor-panel-content (added)
-
tags/23.12.04/build/applications/editor-panel-content/client (added)
-
tags/23.12.04/build/applications/editor-panel-content/client/block.json (added)
-
tags/23.12.04/build/applications/editor-panel-content/client/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-panel-content/client/index.css (added)
-
tags/23.12.04/build/applications/editor-panel-content/client/index.js (added)
-
tags/23.12.04/build/applications/editor-panel-content/client/style-index.css (added)
-
tags/23.12.04/build/applications/editor-panel-content/server (added)
-
tags/23.12.04/build/applications/editor-panel-content/server/content-enqueue.php (added)
-
tags/23.12.04/build/applications/editor-panel-content/server/content-render.php (added)
-
tags/23.12.04/build/applications/editor-panel-content/server/index.php (added)
-
tags/23.12.04/build/applications/editor-panel-database (added)
-
tags/23.12.04/build/applications/editor-panel-database/client (added)
-
tags/23.12.04/build/applications/editor-panel-database/client/block.json (added)
-
tags/23.12.04/build/applications/editor-panel-database/client/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-panel-database/client/index.css (added)
-
tags/23.12.04/build/applications/editor-panel-database/client/index.js (added)
-
tags/23.12.04/build/applications/editor-panel-database/client/style-index.css (added)
-
tags/23.12.04/build/applications/editor-panel-database/server (added)
-
tags/23.12.04/build/applications/editor-panel-database/server/database-enqueue.php (added)
-
tags/23.12.04/build/applications/editor-panel-database/server/database-loader.php (added)
-
tags/23.12.04/build/applications/editor-panel-database/server/database-render.php (added)
-
tags/23.12.04/build/applications/editor-panel-database/server/database-stats.php (added)
-
tags/23.12.04/build/applications/editor-panel-database/server/index.php (added)
-
tags/23.12.04/build/applications/editor-panel-interactions (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/client (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/client/block.json (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/client/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/client/index.css (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/client/index.js (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/client/style-index.css (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/server (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/server/index.php (added)
-
tags/23.12.04/build/applications/editor-panel-interactions/server/interactions-enqueue.php (added)
-
tags/23.12.04/build/applications/editor-panel-renderability (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/client (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/client/block.json (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/client/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/client/index.css (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/client/index.js (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/client/style-index.css (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/server (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/server/index.php (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/server/renderability-enqueue.php (added)
-
tags/23.12.04/build/applications/editor-panel-renderability/server/renderability-render.php (added)
-
tags/23.12.04/build/applications/editor-toolbars (added)
-
tags/23.12.04/build/applications/editor-toolbars/client (added)
-
tags/23.12.04/build/applications/editor-toolbars/client/block.json (added)
-
tags/23.12.04/build/applications/editor-toolbars/client/index.asset.php (added)
-
tags/23.12.04/build/applications/editor-toolbars/client/index.css (added)
-
tags/23.12.04/build/applications/editor-toolbars/client/index.js (added)
-
tags/23.12.04/build/applications/editor-toolbars/client/style-index.css (added)
-
tags/23.12.04/build/applications/editor-toolbars/server (added)
-
tags/23.12.04/build/applications/editor-toolbars/server/editor-toolbars-enqueue.php (added)
-
tags/23.12.04/build/applications/editor-toolbars/server/index.php (added)
-
tags/23.12.04/build/applications/font-library (added)
-
tags/23.12.04/build/applications/font-library/client (added)
-
tags/23.12.04/build/applications/font-library/client/block.json (added)
-
tags/23.12.04/build/applications/font-library/client/font-readers (added)
-
tags/23.12.04/build/applications/font-library/client/font-readers/block.json (added)
-
tags/23.12.04/build/applications/font-library/client/font-readers/index.asset.php (added)
-
tags/23.12.04/build/applications/font-library/client/font-readers/index.js (added)
-
tags/23.12.04/build/applications/font-library/client/index.asset.php (added)
-
tags/23.12.04/build/applications/font-library/client/index.css (added)
-
tags/23.12.04/build/applications/font-library/client/index.js (added)
-
tags/23.12.04/build/applications/font-library/server (added)
-
tags/23.12.04/build/applications/font-library/server/class-dragblock-font-form-messages.php (added)
-
tags/23.12.04/build/applications/font-library/server/class-dragblock-fonts-page.php (added)
-
tags/23.12.04/build/applications/font-library/server/class-dragblock-google-fonts.php (added)
-
tags/23.12.04/build/applications/font-library/server/class-dragblock-local-fonts.php (added)
-
tags/23.12.04/build/applications/font-library/server/class-dragblock-manage-fonts-admin.php (added)
-
tags/23.12.04/build/applications/font-library/server/class-dragblock-react-app.php (added)
-
tags/23.12.04/build/applications/font-library/server/fonts-render-faces.php (added)
-
tags/23.12.04/build/applications/font-library/server/fonts-theme-json.php (added)
-
tags/23.12.04/build/applications/font-library/server/fonts.php (added)
-
tags/23.12.04/build/applications/font-library/server/index.php (added)
-
tags/23.12.04/build/applications/form-entries (added)
-
tags/23.12.04/build/applications/form-entries/client (added)
-
tags/23.12.04/build/applications/form-entries/client/block.json (added)
-
tags/23.12.04/build/applications/form-entries/client/index.asset.php (added)
-
tags/23.12.04/build/applications/form-entries/client/index.css (added)
-
tags/23.12.04/build/applications/form-entries/client/index.js (added)
-
tags/23.12.04/build/applications/form-entries/client/style-index.css (added)
-
tags/23.12.04/build/applications/form-entries/server (added)
-
tags/23.12.04/build/applications/form-entries/server/form-admin-page.php (added)
-
tags/23.12.04/build/applications/form-entries/server/form-custom-post-type.php (added)
-
tags/23.12.04/build/applications/form-entries/server/form-defines.php (added)
-
tags/23.12.04/build/applications/form-entries/server/form-enqueues.php (added)
-
tags/23.12.04/build/applications/form-entries/server/form-render.php (added)
-
tags/23.12.04/build/applications/form-entries/server/form-submission.php (added)
-
tags/23.12.04/build/applications/form-entries/server/index.php (added)
-
tags/23.12.04/build/applications/patterns (added)
-
tags/23.12.04/build/applications/patterns/client (added)
-
tags/23.12.04/build/applications/patterns/client/block.json (added)
-
tags/23.12.04/build/applications/patterns/client/index.asset.php (added)
-
tags/23.12.04/build/applications/patterns/client/index.css (added)
-
tags/23.12.04/build/applications/patterns/client/index.js (added)
-
tags/23.12.04/build/applications/patterns/client/style-index.css (added)
-
tags/23.12.04/build/applications/patterns/server (added)
-
tags/23.12.04/build/applications/patterns/server/index.php (added)
-
tags/23.12.04/build/applications/patterns/server/patterns-enqueue.php (added)
-
tags/23.12.04/build/applications/patterns/server/patterns-loader.php (added)
-
tags/23.12.04/build/applications/seo (added)
-
tags/23.12.04/build/applications/seo/server (added)
-
tags/23.12.04/build/applications/seo/server/index.php (added)
-
tags/23.12.04/build/applications/seo/server/seo-meta-graphs.php (added)
-
tags/23.12.04/build/applications/shortcodes (added)
-
tags/23.12.04/build/applications/shortcodes/server (added)
-
tags/23.12.04/build/applications/shortcodes/server/index.php (added)
-
tags/23.12.04/build/applications/shortcodes/server/shortcodes.php (added)
-
tags/23.12.04/build/applications/theme-settings (added)
-
tags/23.12.04/build/applications/theme-settings/server (added)
-
tags/23.12.04/build/applications/theme-settings/server/default-theme-json.php (added)
-
tags/23.12.04/build/applications/theme-settings/server/index.php (added)
-
tags/23.12.04/build/applications/tutorials (added)
-
tags/23.12.04/build/applications/tutorials/client (added)
-
tags/23.12.04/build/applications/tutorials/client/editor (added)
-
tags/23.12.04/build/applications/tutorials/client/editor/block.json (added)
-
tags/23.12.04/build/applications/tutorials/client/editor/index.asset.php (added)
-
tags/23.12.04/build/applications/tutorials/client/editor/index.css (added)
-
tags/23.12.04/build/applications/tutorials/client/editor/index.js (added)
-
tags/23.12.04/build/applications/tutorials/client/editor/style-index.css (added)
-
tags/23.12.04/build/applications/tutorials/server (added)
-
tags/23.12.04/build/applications/tutorials/server/index.php (added)
-
tags/23.12.04/build/applications/tutorials/server/tutorials-enqueue.php (added)
-
tags/23.12.04/build/blocks (added)
-
tags/23.12.04/build/blocks/block-register.php (added)
-
tags/23.12.04/build/blocks/form (added)
-
tags/23.12.04/build/blocks/form/block.json (added)
-
tags/23.12.04/build/blocks/form/index.asset.php (added)
-
tags/23.12.04/build/blocks/form/index.css (added)
-
tags/23.12.04/build/blocks/form/index.js (added)
-
tags/23.12.04/build/blocks/icon (added)
-
tags/23.12.04/build/blocks/icon/block.json (added)
-
tags/23.12.04/build/blocks/icon/index.asset.php (added)
-
tags/23.12.04/build/blocks/icon/index.css (added)
-
tags/23.12.04/build/blocks/icon/index.js (added)
-
tags/23.12.04/build/blocks/image (added)
-
tags/23.12.04/build/blocks/image/block.json (added)
-
tags/23.12.04/build/blocks/image/index.asset.php (added)
-
tags/23.12.04/build/blocks/image/index.css (added)
-
tags/23.12.04/build/blocks/image/index.js (added)
-
tags/23.12.04/build/blocks/input (added)
-
tags/23.12.04/build/blocks/input/block.json (added)
-
tags/23.12.04/build/blocks/input/index.asset.php (added)
-
tags/23.12.04/build/blocks/input/index.css (added)
-
tags/23.12.04/build/blocks/input/index.js (added)
-
tags/23.12.04/build/blocks/link (added)
-
tags/23.12.04/build/blocks/link/block.json (added)
-
tags/23.12.04/build/blocks/link/index.asset.php (added)
-
tags/23.12.04/build/blocks/link/index.css (added)
-
tags/23.12.04/build/blocks/link/index.js (added)
-
tags/23.12.04/build/blocks/option (added)
-
tags/23.12.04/build/blocks/option/block.json (added)
-
tags/23.12.04/build/blocks/option/index.asset.php (added)
-
tags/23.12.04/build/blocks/option/index.css (added)
-
tags/23.12.04/build/blocks/option/index.js (added)
-
tags/23.12.04/build/blocks/select (added)
-
tags/23.12.04/build/blocks/select/block.json (added)
-
tags/23.12.04/build/blocks/select/index.asset.php (added)
-
tags/23.12.04/build/blocks/select/index.css (added)
-
tags/23.12.04/build/blocks/select/index.js (added)
-
tags/23.12.04/build/blocks/text (added)
-
tags/23.12.04/build/blocks/text/block.json (added)
-
tags/23.12.04/build/blocks/text/index.asset.php (added)
-
tags/23.12.04/build/blocks/text/index.css (added)
-
tags/23.12.04/build/blocks/text/index.js (added)
-
tags/23.12.04/build/blocks/textarea (added)
-
tags/23.12.04/build/blocks/textarea/block.json (added)
-
tags/23.12.04/build/blocks/textarea/index.asset.php (added)
-
tags/23.12.04/build/blocks/textarea/index.css (added)
-
tags/23.12.04/build/blocks/textarea/index.js (added)
-
tags/23.12.04/build/blocks/wrapper (added)
-
tags/23.12.04/build/blocks/wrapper/block.json (added)
-
tags/23.12.04/build/blocks/wrapper/index.asset.php (added)
-
tags/23.12.04/build/blocks/wrapper/index.css (added)
-
tags/23.12.04/build/blocks/wrapper/index.js (added)
-
tags/23.12.04/build/index.php (added)
-
tags/23.12.04/build/library (added)
-
tags/23.12.04/build/library/server (added)
-
tags/23.12.04/build/library/server/index.php (added)
-
tags/23.12.04/build/library/server/lib-ajax.php (added)
-
tags/23.12.04/build/library/server/lib-common.php (added)
-
tags/23.12.04/build/library/server/lib-enqueue.php (added)
-
tags/23.12.04/build/library/server/lib-identify.php (added)
-
tags/23.12.04/dragblock.php (added)
-
tags/23.12.04/languages (added)
-
tags/23.12.04/languages/dragblock.pot (added)
-
tags/23.12.04/readme.txt (added)
-
trunk/assets/jsons/google-fallback-fonts-list.json (deleted)
-
trunk/build/applications/editor-toolbars/client/index.asset.php (modified) (1 diff)
-
trunk/build/applications/editor-toolbars/client/index.js (modified) (1 diff)
-
trunk/build/applications/patterns/server/patterns-loader.php (modified) (2 diffs)
-
trunk/dragblock.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dragblock/trunk/build/applications/editor-toolbars/client/index.asset.php
r3004800 r3005080 1 <?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => ' c68511db2ff57589ad61');1 <?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'f3436bd077dc36bfe69d'); -
dragblock/trunk/build/applications/editor-toolbars/client/index.js
r3004800 r3005080 1 !function(){var e,o={9061:function(e,o,t){"use strict";var n=window.wp.element,l=window.wp.compose,a=window.wp.blockEditor,r=window.wp.i18n,c=window.lodash,i=window.wp.data;const s={aesthetic:()=>dragBlockIcons?.iconAesthetic,alignItemsCenter:()=>dragBlockIcons?.iconAlignItemsCenter,alignItemsEnd:()=>dragBlockIcons?.iconAlignItemsEnd,alginItemsStart:()=>dragBlockIcons?.iconAlginItemsStart,alignItemsStretch:()=>dragBlockIcons?.iconAlignItemsStretch,colorPaletteLen:()=>dragBlockIcons?.iconColorPaletteLen,flexWrapNoWrap:()=>dragBlockIcons?.iconFlexWrapNoWrap,flexWrapWrapReverse:()=>dragBlockIcons?.iconFlexWrapWrapReverse,flexWrapWrap:()=>dragBlockIcons?.iconFlexWrapWrap,gap:()=>dragBlockIcons?.iconGap,justifyContentCenter:()=>dragBlockIcons?.iconJustifyContentCenter,justifyContentEnd:()=>dragBlockIcons?.iconJustifyContentEnd,justifyContentSpaceBetween:()=>dragBlockIcons?.iconJustifyContentSpaceBetween,justifyContentSpaceEvenly:()=>dragBlockIcons?.iconJustifyContentSpaceEvenly,justifyContentStart:()=>dragBlockIcons?.iconJustifyContentStart,justifyContentStretch:()=>dragBlockIcons?.iconJustifyContentStretch,sizing:()=>dragBlockIcons?.iconSizing,spacing:()=>dragBlockIcons?.iconSpacing,alignBottomBoxO:()=>dragBlockIcons?.iconAlignBottomBoxO,alignCenterBoxO:()=>dragBlockIcons?.iconAlignCenterBoxO,alignNoneBoxO:()=>dragBlockIcons?.iconAlignNoneBoxO,alignTopBoxO:()=>dragBlockIcons?.iconAlignTopBoxO,carKey:()=>dragBlockIcons?.iconCarKey,circle:()=>dragBlockIcons?.iconCircle,clipboardCheck:()=>dragBlockIcons?.iconClipboardCheck,clipboardMinus:()=>dragBlockIcons?.iconClipboardMinus,clipboardPlus:()=>dragBlockIcons?.iconClipboardPlus,col3RCO:()=>dragBlockIcons?.iconCol3RCO,colorPalletePaint:()=>dragBlockIcons?.iconColorPalletePaint,container:()=>dragBlockIcons?.iconContainer,doubleToggle:()=>dragBlockIcons?.iconDoubleToggle,eyeClosed:()=>dragBlockIcons?.iconEyeClosed,eyeInSpeechBubble:()=>dragBlockIcons?.iconEyeInSpeechBubble,eyeMonster:()=>dragBlockIcons?.iconEyeMonster,eye:()=>dragBlockIcons?.iconEye,facebookF:()=>dragBlockIcons?.iconFacebookF,fixedWidth:()=>dragBlockIcons?.iconFixedWidth,gearNuclear:()=>dragBlockIcons?.iconGearNuclear,gmail:()=>dragBlockIcons?.iconGmail,gridSelectCol14Row12:()=>dragBlockIcons?.iconGridSelectCol14Row12,grid1x2RC:()=>dragBlockIcons?.iconGrid1x2RC,justifyCenterO:()=>dragBlockIcons?.iconJustifyCenterO,justifyLeftO:()=>dragBlockIcons?.iconJustifyLeftO,justifyNoneO:()=>dragBlockIcons?.iconJustifyNoneO,justifyRightO:()=>dragBlockIcons?.iconJustifyRightO,justifySpaceBetweenO:()=>dragBlockIcons?.iconJustifySpaceBetweenO,layoutBlockBlueBoxO:()=>dragBlockIcons?.iconLayoutBlockBlueBoxO,layoutBlockGreenBoxO:()=>dragBlockIcons?.iconLayoutBlockGreenBoxO,layoutFlexBlueBoxO:()=>dragBlockIcons?.iconLayoutFlexBlueBoxO,layoutFlexComplexBlueBoxO:()=>dragBlockIcons?.iconLayoutFlexComplexBlueBoxO,layoutFlexComplexGreenBoxO:()=>dragBlockIcons?.iconLayoutFlexComplexGreenBoxO,layoutFlexGreenBoxO:()=>dragBlockIcons?.iconLayoutFlexGreenBoxO,layoutGridBlueBoxO:()=>dragBlockIcons?.iconLayoutGridBlueBoxO,layoutGridGreenBoxO:()=>dragBlockIcons?.iconLayoutGridGreenBoxO,layoutLeftFill:()=>dragBlockIcons?.iconLayoutLeftFill,layoutThree:()=>dragBlockIcons?.iconLayoutThree,linkDiagonal:()=>dragBlockIcons?.iconLinkDiagonal,minusCircle:()=>dragBlockIcons?.iconMinusCircle,monalisa:()=>dragBlockIcons?.iconMonalisa,overline:()=>dragBlockIcons?.iconOverline,postHeart:()=>dragBlockIcons?.iconPostHeart,solidPlay:()=>dragBlockIcons?.iconSolidPlay,stopORC:()=>dragBlockIcons?.iconStopORC,stopRC:()=>dragBlockIcons?.iconStopRC,threeColsRC:()=>dragBlockIcons?.iconThreeColsRC,translate:()=>dragBlockIcons?.iconTranslate,ward:()=>dragBlockIcons?.iconWard,whatsapp:()=>dragBlockIcons?.iconWhatsapp,addCard:()=>dragBlockIcons?.iconAddCard,addSubmenu:()=>dragBlockIcons?.iconAddSubmenu,addTemplate:()=>dragBlockIcons?.iconAddTemplate,alignCenter:()=>dragBlockIcons?.iconAlignCenter,alignJustify:()=>dragBlockIcons?.iconAlignJustify,alignLeft:()=>dragBlockIcons?.iconAlignLeft,alignNone:()=>dragBlockIcons?.iconAlignNone,alignRight:()=>dragBlockIcons?.iconAlignRight,archive:()=>dragBlockIcons?.iconArchive,arrowDown:()=>dragBlockIcons?.iconArrowDown,arrowLeft:()=>dragBlockIcons?.iconArrowLeft,arrowRight:()=>dragBlockIcons?.iconArrowRight,arrowUp:()=>dragBlockIcons?.iconArrowUp,aspectRatio:()=>dragBlockIcons?.iconAspectRatio,atSymbol:()=>dragBlockIcons?.iconAtSymbol,audio:()=>dragBlockIcons?.iconAudio,backup:()=>dragBlockIcons?.iconBackup,blockDefault:()=>dragBlockIcons?.iconBlockDefault,blockMeta:()=>dragBlockIcons?.iconBlockMeta,blockTable:()=>dragBlockIcons?.iconBlockTable,border:()=>dragBlockIcons?.iconBorder,box:()=>dragBlockIcons?.iconBox,brush:()=>dragBlockIcons?.iconBrush,bug:()=>dragBlockIcons?.iconBug,button:()=>dragBlockIcons?.iconButton,buttons:()=>dragBlockIcons?.iconButtons,calendar:()=>dragBlockIcons?.iconCalendar,cancelCircleFilled:()=>dragBlockIcons?.iconCancelCircleFilled,caption:()=>dragBlockIcons?.iconCaption,capturePhoto:()=>dragBlockIcons?.iconCapturePhoto,captureVideo:()=>dragBlockIcons?.iconCaptureVideo,category:()=>dragBlockIcons?.iconCategory,chartBar:()=>dragBlockIcons?.iconChartBar,check:()=>dragBlockIcons?.iconCheck,chevronDown:()=>dragBlockIcons?.iconChevronDown,chevronLeftSmall:()=>dragBlockIcons?.iconChevronLeftSmall,chevronLeft:()=>dragBlockIcons?.iconChevronLeft,chevronRightSmall:()=>dragBlockIcons?.iconChevronRightSmall,chevronRight:()=>dragBlockIcons?.iconChevronRight,chevronUpDown:()=>dragBlockIcons?.iconChevronUpDown,chevronUp:()=>dragBlockIcons?.iconChevronUp,classic:()=>dragBlockIcons?.iconClassic,closeSmall:()=>dragBlockIcons?.iconCloseSmall,close:()=>dragBlockIcons?.iconClose,cloudUpload:()=>dragBlockIcons?.iconCloudUpload,cloud:()=>dragBlockIcons?.iconCloud,code:()=>dragBlockIcons?.iconCode,cog:()=>dragBlockIcons?.iconCog,color:()=>dragBlockIcons?.iconColor,column:()=>dragBlockIcons?.iconColumn,columns:()=>dragBlockIcons?.iconColumns,commentAuthorAvatar:()=>dragBlockIcons?.iconCommentAuthorAvatar,commentAuthorName:()=>dragBlockIcons?.iconCommentAuthorName,commentContent:()=>dragBlockIcons?.iconCommentContent,commentEditLink:()=>dragBlockIcons?.iconCommentEditLink,commentReplyLink:()=>dragBlockIcons?.iconCommentReplyLink,comment:()=>dragBlockIcons?.iconComment,copy:()=>dragBlockIcons?.iconCopy,cover:()=>dragBlockIcons?.iconCover,create:()=>dragBlockIcons?.iconCreate,crop:()=>dragBlockIcons?.iconCrop,currencyDollar:()=>dragBlockIcons?.iconCurrencyDollar,currencyEuro:()=>dragBlockIcons?.iconCurrencyEuro,currencyPound:()=>dragBlockIcons?.iconCurrencyPound,customLink:()=>dragBlockIcons?.iconCustomLink,customPostType:()=>dragBlockIcons?.iconCustomPostType,desktop:()=>dragBlockIcons?.iconDesktop,details:()=>dragBlockIcons?.iconDetails,download:()=>dragBlockIcons?.iconDownload,dragHandle:()=>dragBlockIcons?.iconDragHandle,drawerLeft:()=>dragBlockIcons?.iconDrawerLeft,drawerRight:()=>dragBlockIcons?.iconDrawerRight,edit:()=>dragBlockIcons?.iconEdit,external:()=>dragBlockIcons?.iconExternal,file:()=>dragBlockIcons?.iconFile,filter:()=>dragBlockIcons?.iconFilter,flipHorizontal:()=>dragBlockIcons?.iconFlipHorizontal,flipVertical:()=>dragBlockIcons?.iconFlipVertical,footer:()=>dragBlockIcons?.iconFooter,formatBold:()=>dragBlockIcons?.iconFormatBold,formatCapitalize:()=>dragBlockIcons?.iconFormatCapitalize,formatIndentRTL:()=>dragBlockIcons?.iconFormatIndentRTL,formatIndent:()=>dragBlockIcons?.iconFormatIndent,formatItalic:()=>dragBlockIcons?.iconFormatItalic,formatListBulletsRTL:()=>dragBlockIcons?.iconFormatListBulletsRTL,formatListBullets:()=>dragBlockIcons?.iconFormatListBullets,formatListNumberedRTL:()=>dragBlockIcons?.iconFormatListNumberedRTL,formatListNumbered:()=>dragBlockIcons?.iconFormatListNumbered,formatLowercase:()=>dragBlockIcons?.iconFormatLowercase,formatLtr:()=>dragBlockIcons?.iconFormatLtr,formatOutdentRTL:()=>dragBlockIcons?.iconFormatOutdentRTL,formatOutdent:()=>dragBlockIcons?.iconFormatOutdent,formatRtl:()=>dragBlockIcons?.iconFormatRtl,formatStrikethrough:()=>dragBlockIcons?.iconFormatStrikethrough,formatUnderline:()=>dragBlockIcons?.iconFormatUnderline,formatUppercase:()=>dragBlockIcons?.iconFormatUppercase,fullscreen:()=>dragBlockIcons?.iconFullscreen,ery:()=>dragBlockIcons?.gallery,globe:()=>dragBlockIcons?.iconGlobe,grid:()=>dragBlockIcons?.iconGrid,group:()=>dragBlockIcons?.iconGroup,handle:()=>dragBlockIcons?.iconHandle,header:()=>dragBlockIcons?.iconHeader,headingLevel1:()=>dragBlockIcons?.iconHeadingLevel1,headingLevel2:()=>dragBlockIcons?.iconHeadingLevel2,headingLevel3:()=>dragBlockIcons?.iconHeadingLevel3,headingLevel4:()=>dragBlockIcons?.iconHeadingLevel4,headingLevel5:()=>dragBlockIcons?.iconHeadingLevel5,headingLevel6:()=>dragBlockIcons?.iconHeadingLevel6,heading:()=>dragBlockIcons?.iconHeading,helpFilled:()=>dragBlockIcons?.iconHelpFilled,help:()=>dragBlockIcons?.iconHelp,home:()=>dragBlockIcons?.iconHome,html:()=>dragBlockIcons?.iconHtml,image:()=>dragBlockIcons?.iconImage,inbox:()=>dragBlockIcons?.iconInbox,info:()=>dragBlockIcons?.iconInfo,insertAfter:()=>dragBlockIcons?.iconInsertAfter,insertBefore:()=>dragBlockIcons?.iconInsertBefore,institute:()=>dragBlockIcons?.iconInstitute,justifyCenter:()=>dragBlockIcons?.iconJustifyCenter,justifyLeft:()=>dragBlockIcons?.iconJustifyLeft,justifyRight:()=>dragBlockIcons?.iconJustifyRight,justifySpaceBetween:()=>dragBlockIcons?.iconJustifySpaceBetween,justifyStretch:()=>dragBlockIcons?.iconJustifyStretch,key:()=>dragBlockIcons?.iconKey,keyboardClose:()=>dragBlockIcons?.iconKeyboardClose,keyboardReturn:()=>dragBlockIcons?.iconKeyboardReturn,keyboard:()=>dragBlockIcons?.iconKeyboard,language:()=>dragBlockIcons?.iconLanguage,layout:()=>dragBlockIcons?.iconLayout,levelUp:()=>dragBlockIcons?.iconLevelUp,lifesaver:()=>dragBlockIcons?.iconLifesaver,lineDashed:()=>dragBlockIcons?.iconLineDashed,lineDotted:()=>dragBlockIcons?.iconLineDotted,lineSolid:()=>dragBlockIcons?.iconLineSolid,linkOff:()=>dragBlockIcons?.iconLinkOff,link:()=>dragBlockIcons?.iconLink,listItem:()=>dragBlockIcons?.iconListItem,listView:()=>dragBlockIcons?.iconListView,list:()=>dragBlockIcons?.iconList,lockOutline:()=>dragBlockIcons?.iconLockOutline,lockSmall:()=>dragBlockIcons?.iconLockSmall,lock:()=>dragBlockIcons?.iconLock,login:()=>dragBlockIcons?.iconLogin,loop:()=>dragBlockIcons?.iconLoop,mapMarker:()=>dragBlockIcons?.iconMapMarker,mediaAndText:()=>dragBlockIcons?.iconMediaAndText,media:()=>dragBlockIcons?.iconMedia,megaphone:()=>dragBlockIcons?.iconMegaphone,menu:()=>dragBlockIcons?.iconMenu,mobile:()=>dragBlockIcons?.iconMobile,moreHorizontalMobile:()=>dragBlockIcons?.iconMoreHorizontalMobile,moreHorizontal:()=>dragBlockIcons?.iconMoreHorizontal,moreVertical:()=>dragBlockIcons?.iconMoreVertical,more:()=>dragBlockIcons?.iconMore,moveTo:()=>dragBlockIcons?.iconMoveTo,navigation:()=>dragBlockIcons?.iconNavigation,next:()=>dragBlockIcons?.iconNext,notFound:()=>dragBlockIcons?.iconNotFound,overlayText:()=>dragBlockIcons?.iconOverlayText,pageBreak:()=>dragBlockIcons?.iconPageBreak,page:()=>dragBlockIcons?.iconPage,pages:()=>dragBlockIcons?.iconPages,paragraph:()=>dragBlockIcons?.iconParagraph,payment:()=>dragBlockIcons?.iconPayment,pencil:()=>dragBlockIcons?.iconPencil,people:()=>dragBlockIcons?.iconPeople,percent:()=>dragBlockIcons?.iconPercent,pinSmall:()=>dragBlockIcons?.iconPinSmall,pin:()=>dragBlockIcons?.iconPin,plugins:()=>dragBlockIcons?.iconPlugins,plusCircleFilled:()=>dragBlockIcons?.iconPlusCircleFilled,plusCircle:()=>dragBlockIcons?.iconPlusCircle,plus:()=>dragBlockIcons?.iconPlus,positionCenter:()=>dragBlockIcons?.iconPositionCenter,positionLeft:()=>dragBlockIcons?.iconPositionLeft,positionRight:()=>dragBlockIcons?.iconPositionRight,postAuthor:()=>dragBlockIcons?.iconPostAuthor,postCategories:()=>dragBlockIcons?.iconPostCategories,postCommentsCount:()=>dragBlockIcons?.iconPostCommentsCount,postCommentsForm:()=>dragBlockIcons?.iconPostCommentsForm,postComments:()=>dragBlockIcons?.iconPostComments,postContent:()=>dragBlockIcons?.iconPostContent,postDate:()=>dragBlockIcons?.iconPostDate,postExcerpt:()=>dragBlockIcons?.iconPostExcerpt,postFeaturedImage:()=>dragBlockIcons?.iconPostFeaturedImage,postList:()=>dragBlockIcons?.iconPostList,postTerms:()=>dragBlockIcons?.iconPostTerms,post:()=>dragBlockIcons?.iconPost,preformatted:()=>dragBlockIcons?.iconPreformatted,previous:()=>dragBlockIcons?.iconPrevious,pullLeft:()=>dragBlockIcons?.iconPullLeft,pullRight:()=>dragBlockIcons?.iconPullRight,pullquote:()=>dragBlockIcons?.iconPullquote,queryPaginationNext:()=>dragBlockIcons?.iconQueryPaginationNext,queryPaginationNumbers:()=>dragBlockIcons?.iconQueryPaginationNumbers,queryPaginationPrevious:()=>dragBlockIcons?.iconQueryPaginationPrevious,queryPagination:()=>dragBlockIcons?.iconQueryPagination,quote:()=>dragBlockIcons?.iconQuote,receipt:()=>dragBlockIcons?.iconReceipt,redo:()=>dragBlockIcons?.iconRedo,removeBug:()=>dragBlockIcons?.iconRemoveBug,removeSubmenu:()=>dragBlockIcons?.iconRemoveSubmenu,replace:()=>dragBlockIcons?.iconReplace,reset:()=>dragBlockIcons?.iconReset,resizeCornerNE:()=>dragBlockIcons?.iconResizeCornerNE,reusableBlock:()=>dragBlockIcons?.iconReusableBlock,rotateLeft:()=>dragBlockIcons?.iconRotateLeft,rotateRight:()=>dragBlockIcons?.iconRotateRight,row:()=>dragBlockIcons?.iconRow,rss:()=>dragBlockIcons?.iconRss,search:()=>dragBlockIcons?.iconSearch,seen:()=>dragBlockIcons?.iconSeen,separator:()=>dragBlockIcons?.iconSeparator,settings:()=>dragBlockIcons?.iconSettings,shadow:()=>dragBlockIcons?.iconShadow,share:()=>dragBlockIcons?.iconShare,shield:()=>dragBlockIcons?.iconShield,shipping:()=>dragBlockIcons?.iconShipping,shortcode:()=>dragBlockIcons?.iconShortcode,shuffle:()=>dragBlockIcons?.iconShuffle,sidebar:()=>dragBlockIcons?.iconSidebar,sidesAll:()=>dragBlockIcons?.iconSidesAll,sidesAxial:()=>dragBlockIcons?.iconSidesAxial,sidesBottom:()=>dragBlockIcons?.iconSidesBottom,sidesHorizontal:()=>dragBlockIcons?.iconSidesHorizontal,sidesLeft:()=>dragBlockIcons?.iconSidesLeft,sidesRight:()=>dragBlockIcons?.iconSidesRight,sidesTop:()=>dragBlockIcons?.iconSidesTop,sidesVertical:()=>dragBlockIcons?.iconSidesVertical,siteLogo:()=>dragBlockIcons?.iconSiteLogo,stack:()=>dragBlockIcons?.iconStack,starEmpty:()=>dragBlockIcons?.iconStarEmpty,starFilled:()=>dragBlockIcons?.iconStarFilled,starHalf:()=>dragBlockIcons?.iconStarHalf,store:()=>dragBlockIcons?.iconStore,stretchFullWidth:()=>dragBlockIcons?.iconStretchFullWidth,stretchWide:()=>dragBlockIcons?.iconStretchWide,es:()=>dragBlockIcons?.styles,subscript:()=>dragBlockIcons?.iconSubscript,superscript:()=>dragBlockIcons?.iconSuperscript,swatch:()=>dragBlockIcons?.iconSwatch,symbolFilled:()=>dragBlockIcons?.iconSymbolFilled,symbol:()=>dragBlockIcons?.iconSymbol,tableColumnAfter:()=>dragBlockIcons?.iconTableColumnAfter,tableColumnBefore:()=>dragBlockIcons?.iconTableColumnBefore,tableColumnDelete:()=>dragBlockIcons?.iconTableColumnDelete,tableRowAfter:()=>dragBlockIcons?.iconTableRowAfter,tableRowBefore:()=>dragBlockIcons?.iconTableRowBefore,tableRowDelete:()=>dragBlockIcons?.iconTableRowDelete,table:()=>dragBlockIcons?.iconTable,tablet:()=>dragBlockIcons?.iconTablet,tag:()=>dragBlockIcons?.iconTag,textColor:()=>dragBlockIcons?.iconTextColor,textHorizontal:()=>dragBlockIcons?.iconTextHorizontal,textVertical:()=>dragBlockIcons?.iconTextVertical,tip:()=>dragBlockIcons?.iconTip,title:()=>dragBlockIcons?.iconTitle,tool:()=>dragBlockIcons?.iconTool,trash:()=>dragBlockIcons?.iconTrash,trendingDown:()=>dragBlockIcons?.iconTrendingDown,trendingUp:()=>dragBlockIcons?.iconTrendingUp,typography:()=>dragBlockIcons?.iconTypography,undo:()=>dragBlockIcons?.iconUndo,ungroup:()=>dragBlockIcons?.iconUngroup,unlock:()=>dragBlockIcons?.iconUnlock,unseen:()=>dragBlockIcons?.iconUnseen,update:()=>dragBlockIcons?.iconUpdate,upload:()=>dragBlockIcons?.iconUpload,verse:()=>dragBlockIcons?.iconVerse,video:()=>dragBlockIcons?.iconVideo,warning:()=>dragBlockIcons?.iconWarning,widget:()=>dragBlockIcons?.iconWidget,wordpress:()=>dragBlockIcons?.iconWordpress};var d=window.wp.blocks;function g(e){const{clientId:o}=e,t=(0,i.select)("core/block-editor").getBlockParents(o),l=t.length?t.at(-1):"",a=t.length>1?t.at(-2):"",g=(0,i.select)("core/block-editor").getBlockOrder(o),u=g.length?g[0]:"",k=(e,o="",t=!1)=>{if(!e)return null;const l=(0,i.select)("core/block-editor").getBlock(e);if(!l)return null;let a="",r="",s="";l?.attributes?.className&&(r="."+l.attributes.className.split(" ").join(".")),l?.attributes?.dragBlockTagName&&(s=l.attributes.dragBlockTagName),a=l.name,a.includes("/")&&(a=a.split("/")[1]),a=a.split("-").map((e=>(0,c.capitalize)(e))).join(" "),t&&(s||r)&&(s||r.replace(".","")!==a.toLowerCase()||(r=""),a+=(s?" - ":"")+s+r);let g=null;if(t){let e=(0,d.getBlockType)(l.name);e&&e.icon&&e.icon.src&&(g=(0,c.isString)(e.icon.src)?(0,n.createElement)("span",{class:`icon dashicon dashicons dashicons-${e.icon.src}`}):(0,n.createElement)("span",{className:"icon"},e.icon.src))}return(0,n.createElement)("a",{title:t||!s&&!r?o:s+r,className:"item"+(t?" current":""),onClick:()=>{t||(0,i.dispatch)("core/block-editor").selectBlock(e)}},g,(0,n.createElement)("span",{className:"label"},a))};let m=k(l,(0,r.__)("Parent block","dragblock")),p=k(a,(0,r.__)("Parent block","dragblock")),b=k(u,(0,r.__)("Child block","dragblock")),B=k(o,(0,r.__)("Current Block","dragblock"),!0);return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"dragblock-block-toolbar-navigator"},p,!!p&&(0,n.createElement)("span",{className:"separator"},s.chevronRight()),m,!!m&&(0,n.createElement)("span",{className:"separator"},s.chevronRight()),B,!!b&&(0,n.createElement)("span",{className:"separator"},s.chevronRight()),b))}function u(e,o){return e=e.toLowerCase().replace(/[/\-]/g,"").split(/\s+/).filter((e=>!!e.trim())).join(""),(o=o.toLowerCase().replace(/[/\-]/g," ").split(/\s+/).filter((e=>!!e.trim()))).every((o=>e.includes(o)))}(0,r.__)("Href","dragblock"),(0,r.__)("Target","dragblock"),(0,r.__)("default","dragblock"),(0,r.__)("New Tab","dragblock"),(0,r.__)("Parent Tab","dragblock"),(0,r.__)("Same Tab","dragblock"),(0,r.__)("Out of Iframe","dragblock"),(0,r.__)("Rel","dragblock"),(0,r.__)("Tab Index","dragblock"),(0,r.__)("Src","dragblock"),(0,r.__)("Alt","dragblock"),(0,r.__)("Name","dragblock"),(0,r.__)("Placeholder","dragblock"),(0,r.__)("Title","dragblock"),(0,r.__)("Type","dragblock"),(0,r.__)("Value","dragblock"),(0,r.__)("Disabled","dragblock"),(0,r.__)("Required","dragblock"),(0,r.__)("Selected","dragblock"),(0,r.__)("Action","dragblock"),(0,r.__)("Method","dragblock"),(0,r.__)("For","dragblock"),(0,r.__)("Sizes","dragblock"),(0,r.__)("Loading","dragblock"),(0,r.__)("Loading immediately or wait viewport","dragblock"),(0,r.__)("Default","dragblock"),(0,r.__)("Lazy","dragblock"),(0,r.__)("Eager","dragblock");wp.hooks.addFilter("blocks.registerBlockType","dragblock/attributes-register",(function(e,o){return e=Object.assign({},e,{attributes:Object.assign({},e.attributes,{dragBlockClientId:{type:"string"},anchor:{type:"string",source:"attribute",default:"",attribute:"id",selector:"*"},className:{type:"string",default:""},dragBlockAttrs:{type:"array",default:""}})}),-1!==o.indexOf("dragblock")&&(e=Object.assign({},e,{attributes:Object.assign({},e.attributes,{}),supports:Object.assign({},e.supports,{anchor:!0})})),e}));var k=window.wp.components;function m(e){const{className:o,title:t,text:l,popOverTitle:a,popOverContent:r,popOverClassName:c,noPadding:i,position:s,closeOnMouseLeave:d}=e,[g,u]=(0,n.useState)(!1),[m,p]=(0,n.useState)(null),[b,B]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useRef)(null),_=()=>{u(!1)};(0,n.useEffect)((()=>(document.addEventListener("mousedown",v),document.addEventListener("mouseup",I),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("mouseup",I)})),[]);const v=e=>{f.current&&f.current.contains(e.target)||h.current&&h.current.contains(e.target)||e.target.classList.contains("dragblock-toolbar-popover")||null!==e.target.closest(".dragblock-toolbar-popover")?B(!0):_()},I=()=>{B(!1)};return(0,n.createElement)("div",{ref:f,className:"dragblock-toolbar-button-wrapper",onMouseEnter:()=>{m&&(clearTimeout(m),p(null))}},(0,n.createElement)("a",{className:"dragblock-toolbar-button"+(o?" "+o:""),title:t||"",onClick:()=>{u(!g)}},l),!!g&&!!r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(k.Popover,{focusOnMount:!1,ref:h,className:"dragblock-toolbar-popover"+(i?" no-padding":"")+(c?" "+c:""),position:s||"bottom right",onMouseLeave:()=>{d&&p(setTimeout((function(){p(null),b||_()}),300))}},!(!a&&!t)&&(0,n.createElement)("h3",{className:"popover-title"},a||t),(0,n.createElement)("div",{className:"popover-content"},r({open:()=>{m&&(clearTimeout(m),p(null)),u(!0)},close:_,closeTimer:m,setCloseTimer:p,ref:h})))))}function p(e){const{onChange:o,value:t}=e;return(0,n.createElement)("div",{className:"dragblock-html-tag-picker"},[["h1","h2","h3","h4","h5","h6"],["p","ul","li","div","nav","pre"],["span","label","button","header","footer","main"],["aside","legend","section","article","fieldset","blockquote"]].map(((e,l)=>(0,n.createElement)("div",{key:l,className:"line"},e.map(((e,l)=>(0,n.createElement)("a",{className:"text"+(t===e?" active":""),key:l,onClick:()=>{o(e)}},e)))))))}function b(e){const{attributes:o,setAttributes:t,name:l}=e;if(function(e,o=!0){const{clientId:t,isSelected:n,isMultiSelected:l,name:a,attributes:r}=e,{dragBlockRenderability:c}=r;return!n||l||["core/block"].includes(a)||o&&function(e){if(e&&e.length)for(let o of e)if(!o.disabled&&"render"===o.slug&&"never"===o.value)return!0;return!1}(c)}(e)||"dragblock/wrapper"!==l&&"dragblock/text"!==l)return null;let{dragBlockTagName:a,dragBlockAttrs:c}=o,i=c?((e,o)=>{let t=((e,o)=>{if(e)for(let[t,n]of e.entries())if(n.slug===o&&!n.disabled)return t;return-1})(e,o);return-1===t?null:e[t].value})(c,"href"):"";return a||(a="dragblock/text"===l?i?"a":"span":"div"),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(m,{popOverClassName:"dragblock-editor-toolbar-popover",className:"text-icon tag-selector",text:a.toUpperCase(),title:(0,r.__)("Tag Name","dragBlock"),popOverContent:e=>(0,n.createElement)(p,{value:a,onChange:e=>{t({dragBlockTagName:e})}})}))}function B(e,o,t="",n=""){if(!e||!e.length)return-1;for(let l=0;l<e.length;l++){let a=e[l];if(a.slug===o&&!a.disabled&&!((t||a.devices)&&t!==a.devices||(n||a.selectors)&&n!==a.selectors))return l}return-1}const h=(e,o,t="",n="")=>{let l=B(e,o,t,n);return-1===l?"":(0,c.isString)(e[l].value)?e[l].value.trim():e[l].value},f=(e,o,t="",n="")=>{let l=B(e,o,t,n);return l>-1&&e.splice(l,1),e},_=(e,o,t,n="",l="")=>{let a=B(e,o,n,l);if(e||(e=[]),(0,c.isString)(t)&&(t=t.trim()),""!==t){if(-1===a){let a={slug:o,value:t};return n&&(a.devices=n),l&&(a.selectors=l),e.unshift(a),e}return e[a].value=t,e}return-1!==a?(e.splice(a,1),e):e};var v=t(4184),I=t.n(v);const C={px:{min:0,default:0,max:3e3,step:1},"%":{min:0,default:0,max:100,step:1},em:{min:0,default:0,max:50,step:.1},rem:{min:0,default:0,max:50,step:.1},vw:{min:0,default:0,max:100,step:1},vh:{min:0,default:0,max:100,step:1}},y={deg:{min:0,default:0,max:360,step:1}},E="var(--wp--style--global--content-size)",x="var(--wp--style--global--wide-size)",N={"":(0,r.__)("Default","dragblock"),[E]:"Content",[x]:"Wide","100%":"100%",auto:"Auto","fit-content":"Huge"},S={"":(0,r.__)("Default","dragblock"),[E]:"Content",[x]:"Wide","100%":"100%",0:"None"},w={"":(0,r.__)("Default","dragblock"),"8px":"XXS","11px":"XS","13px":"S","20px":"M","36px":"L","42px":"XL","60px":"XXL","96px":"XXL"};function L({value:e,onChange:o,placeholder:t,className:l,units:r,presets:i,forceUnit:s,before:d,after:g}){const u=(0,a.useSetting)("layout.contentSize"),m=(0,a.useSetting)("layout.wideSize");function p(e){return e===u?e=E:e===m&&(e=x),e}if(null===(e=function(e){return e===E?e=u:e===x&&(e=m),e}(e))&&(e=""),i&&(0,c.isString)(i))switch(i){case"width":i=N;break;case"max-width":i=S;break;case"font-size":i=w;break;default:i=null}return r||(r=C),s&&r[s]&&(r={[s]:r[s]}),r=Object.entries(r).map((([e,o])=>(o.label=e,o.value=e,o))),(0,n.createElement)("div",{className:"dragblock-dimension-input"+(l?" "+l:"")+(s||r.length<=1?" force-unit":"")},(0,n.createElement)("div",{className:"db-input-wrapper"},d,(0,n.createElement)(k.__experimentalUnitControl,{value:e,onChange:o,placeholder:t,units:r}),g),!!i&&(0,n.createElement)("div",{className:"presets"},Object.entries(i).map((([t,l],a)=>(0,n.createElement)("a",{key:a,className:"item"+(t===p(e)?" active":""),onClick:()=>{o(t)}},t?l:"—")))))}function D({value:e,onChange:o,className:t,control:l,placeholder:a,placeholders:r,layout:c,separator:i}){if(c=c&&["stack","row","corner","side"].includes(c)?c:"stack",i=i||" ",(e=e?e.trim():"")&&e.includes(i)){let o=e.split(i);o.every((e=>e===o[0]))&&(e=o[0])}let d=new Array(r.length).fill(null),g=e.split(i).map(((e,o)=>{d[o]=e})).length;if(g<d.length)for(let e=g;e<d.length;e++)d[e]=d[g-1];const[u,k]=(0,n.useState)(!e.includes(i));let m=null;return m=u?(0,n.createElement)("div",{className:"controls"},(0,n.createElement)("a",{className:"toggle",onClick:()=>{k(!1)}},s.linkOff()),(0,n.createElement)("div",{className:"control"},l({placeholder:a,value:e,onChange:o}))):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"controls"},r.map(((e,t)=>(0,n.createElement)("div",{key:t,className:"control control-"+t+(0===t?" first":"")+(t===r.length-1?" last":"")},(0,n.createElement)("div",{className:"connector"}),l({placeholder:e,value:d[t],onChange:e=>{((e,t)=>{let n=0;isNaN(parseFloat(e))&&!e.startsWith("-")&&(n="none");for(let e=0;e<d.length;e++)e!==t&&""===d[e]&&(d[e]=n);d[t]=e?e.trim():"0",0!==d.filter((e=>!!e&&"0"!==e&&"none"!==e)).length?o(d.join(i)):o("")})(e,t)}}))))),(0,n.createElement)("a",{className:"toggle",onClick:()=>{k(!0)}},s.link())),(0,n.createElement)("div",{className:"dragblock-connected-controls"+(c?" "+c:"")+(u?" linked":" unlinked")+(t?" "+t:"")},m)}function R({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:l,placeholder:e,placeholders:[(0,r.__)("Row","dragblock"),(0,r.__)("Column","dragblock")],control:e=>(0,n.createElement)(L,{...e})})}function O({placeholder:e,value:o,onChange:t}){const l="auto"===o;return(0,n.createElement)("div",{class:"dragblock-margin-single-control"+(l?" auto":"")},(0,n.createElement)(L,{placeholder:e,value:o,onChange:t,units:{px:{min:-1e3},"%":{min:-100},em:{min:-50},rem:{min:-50},vw:{min:-100},vh:{min:-100}}}),(0,n.createElement)("a",{className:"auto",onClick:()=>{t(l?"":"auto")},title:"Auto"},l?"Auto":"A"))}function T({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:"dragblock-margin-control"+(l?" "+l:""),layout:"side",placeholder:e,placeholders:[(0,r.__)("Top","dragblock"),(0,r.__)("Right","dragblock"),(0,r.__)("Bottom","dragblock"),(0,r.__)("Left","dragblock")],control:({placeholder:e,value:o,onChange:t})=>(0,n.createElement)(O,{placeholder:e,value:o,onChange:t})})}function A({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:"dragblock-padding-control"+(l?" "+l:""),layout:"side",placeholder:e,placeholders:[(0,r.__)("Top","dragblock"),(0,r.__)("Right","dragblock"),(0,r.__)("Bottom","dragblock"),(0,r.__)("Left","dragblock")],control:({placeholder:e,value:o,onChange:t})=>(0,n.createElement)(L,{placeholder:e,value:o,onChange:t})})}const F={display:{"":{text:(0,r.__)("Default","dragblock"),icon:s.layoutBlockBlueBoxO()},flex:{text:(0,r.__)("Flex Box","dragblock"),icon:s.layoutFlexBlueBoxO()},grid:{text:(0,r.__)("Grid Box","dragblock"),icon:s.layoutGridBlueBoxO()}},"text-align":{"":{text:(0,r.__)("Left","dragblock"),icon:s.alignLeft()},center:{text:(0,r.__)("Center","dragblock"),icon:s.alignCenter()},right:{text:(0,r.__)("Right","dragblock"),icon:s.alignRight()},justify:{text:(0,r.__)("Justify","dragblock"),icon:s.alignJustify()}},"flex-direction":{"":{text:(0,r.__)("Row - Horizontal","dragblock"),icon:s.arrowRight()},column:{text:(0,r.__)("Column - Vertical","dragblock"),icon:s.arrowDown()},"row-reverse":{text:(0,r.__)("Row - Reverse","dragblock"),icon:s.arrowLeft()},"column-reverse":{text:(0,r.__)("Column - Reverse","dragblock"),icon:s.arrowUp()}},"justify-content":{"":{text:(0,r.__)("Start - Left","dragblock"),icon:s.justifyContentStart()},center:{text:(0,r.__)("Center - Middle","dragblock"),icon:s.justifyContentCenter()},"space-between":{text:(0,r.__)("Space Between","dragblock"),icon:s.justifyContentSpaceBetween()},end:{text:(0,r.__)("End - Right","dragblock"),icon:s.justifyContentEnd()},"space-evenly":{text:(0,r.__)("Space Evenly","dragblock"),icon:s.justifyContentSpaceEvenly()},stretch:{text:(0,r.__)("Stretch","dragblock"),icon:s.justifyContentStretch()}},"align-items":{"":{text:(0,r.__)("Start - Top","dragblock"),icon:s.alginItemsStart()},center:{text:(0,r.__)("Center - Middle","dragblock"),icon:s.alignItemsCenter()},end:{text:(0,r.__)("End - Bottom","dragblock"),icon:s.alignItemsEnd()},stretch:{text:(0,r.__)("Stretch","dragblock"),icon:s.alignItemsStretch()}},"flex-wrap":{"":{text:(0,r.__)("No Wrap","dragblock"),icon:s.flexWrapNoWrap()},wrap:{text:(0,r.__)("Wrap","dragblock"),icon:s.flexWrapWrap()},"wrap-reverse":{text:(0,r.__)("Wrap Reverse","dragblock"),icon:s.flexWrapWrapReverse()}},"text-transform":{"":{text:(0,r.__)("Default","dragblock"),icon:s.lineSolid()},uppercase:{text:(0,r.__)("Uppercase","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon"},"AB")},lowercase:{text:(0,r.__)("Lowercase","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon"},"ab")},capitalize:{text:(0,r.__)("Capitalize","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon"},"Ab")}},"font-style":{"":{text:(0,r.__)("Default","dragblock"),icon:s.lineSolid()},italic:{text:(0,r.__)("Italic","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon",style:{fontStyle:"italic"}},(0,r.__)("Italic","dragblock"))},normal:{text:(0,r.__)("Normal","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon",style:{fontStyle:"normal"}},(0,r.__)("Normal","dragblock"))}},"text-decoration-line":{"":{text:(0,r.__)("Default","dragblock"),icon:s.lineSolid()},underline:{text:(0,r.__)("Underline","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline"}},"U")},"line-through":{text:(0,r.__)("Line Through","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"line-through"}},"S")},overline:{text:(0,r.__)("Overline","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"overline"}},"O")},none:{text:(0,r.__)("None","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon"},"X")}},"text-decoration-style":{"":{text:(0,r.__)("Default","dragblock"),icon:s.lineSolid()},solid:{text:(0,r.__)("Solid","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"solid"}},(0,r.__)("Solid","dragblock"))},dashed:{text:(0,r.__)("Dashed","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"dashed"}},(0,r.__)("Dashed","dragblock"))},dotted:{text:(0,r.__)("Dotted","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"dotted"}},(0,r.__)("Dotted","dragblock"))},double:{text:(0,r.__)("Double","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"double"}},(0,r.__)("Double","dragblock"))},wavy:{text:(0,r.__)("Wavy","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"wavy"}},(0,r.__)("Wavy","dragblock"))}},devices:{"":{text:(0,r.__)("Desktop/Default","dragblock"),icon:s.desktop()},t:{text:(0,r.__)("Tablet","dragblock"),icon:s.tablet()},m:{text:(0,r.__)("Mobile","dragblock"),icon:s.mobile()}}};function P(e,o){return F[e]&&F[e][o]&&F[e][o].icon?F[e][o].icon:null}function j(e){let{options:o,value:t,onChange:l,className:a,vertical:r,multiSelect:i}=e;if(!o)return null;let s="";if((0,c.isString)(o)){if(s=o,!F[s])return null;o=F[s]}const d=new Set((t||"").trim().split(" "));let g=Object.keys(o);""===g.at(-1)&&(g.pop(),g.unshift(""));const u=g.map(((e,a)=>{const{icon:c,text:s}=o[e],g=(0,n.createElement)(n.Fragment,null,!!c&&(0,n.createElement)("span",{className:"icon"},c),r&&s&&(0,n.createElement)("span",{className:"text"},s)),u=s&&!r?(0,n.createElement)(k.Tooltip,{text:s,position:"bottom",delay:0},g):g;return(0,n.createElement)("a",{key:a,className:I()("option",{active:d.has(e)}),title:s||"",onClick:o=>{if(i&&(o.ctrlKey||o.metaKey)&&""!==e&&"none"!==e&&t&&"none"!==t)d.has(e)?d.delete(e):d.add(e),l(Array.from(d).join(" "));else{if(e===(t||""))return;l(e)}}},u)}));return(0,n.createElement)("div",{className:"dragblock-options "+(r?"vertical":"horizontal")+(a?" "+a:"")+(s?" "+s:"")},u)}function W(e){let{props:o,title:t,listName:l,devices:a,tab:i,slug:s,content:d,onReset:g,onChange:u,value:k}=e;if(s&&o){const{attributes:e,setAttributes:t}=o;l||(l="dragBlockStyles");let r=e[l]||[];k||(k=h(r,s,a,i)),(0,c.isFunction)(u)||!1===u||(u=e=>{let o={};o[l]=(0,c.cloneDeep)(_(r,s,e,a,i)),t({...o})}),!(0,c.isFunction)(g)&&!1!==g&&k&&(g=()=>{let e={};e[l]=(0,c.cloneDeep)(f(r,s,a,i)),t({...e})}),d||(d=({value:e,onChange:o,slug:t})=>(0,n.createElement)(j,{options:t,value:e,onChange:o}))}return(0,n.createElement)("div",{className:"dragblock-editor-toolbars-section"+(s?" "+s:"")},function(e){const{title:o,onReset:t}=e;return(0,n.createElement)("h4",{className:"section-title"+(t?" has-reset":"")},o||"",!!t&&(0,n.createElement)("a",{className:"reset",onClick:t},(0,r.__)("Reset","dragblock")))}({title:t,onReset:g}),!!d&&d({value:k,onChange:u,slug:s}))}function U(e){let{title:o,text:t,className:l,noPadding:a,popOverContent:i,popOverClassName:s,tabs:d,isResponsive:g}=e;d&&(d.includes("")||d.unshift(""));const[u,k]=(0,n.useState)(""),[p,b]=(0,n.useState)(d?d[0]:"");let B=null;d&&(B=(0,n.createElement)("span",{className:"tabs"+(p?" selected":"")},d.map(((e,o)=>{const t=""===e?(0,r.__)("Normal","dragblock"):(0,c.capitalize)(e.replace(":",""));return(0,n.createElement)("a",{key:o,className:"tab"+(e===p?" active":""),onClick:()=>{b(e)}},t)})))),!1!==g&&(B=(0,n.createElement)(n.Fragment,null,B,(0,n.createElement)(j,{className:"devices",options:"devices",value:u,onChange:e=>{k(e)}})));let h=o||"";return B&&(h=(0,n.createElement)(n.Fragment,null,h,(0,n.createElement)("span",{className:"extra"},B))),(0,n.createElement)(m,{noPadding:a,title:o,text:t,className:"dragblock-editor-toolbars-item-button"+(l?" "+l:""),popOverClassName:"dragblock-editor-toolbars-item-popover"+(s?" "+s:""),popOverTitle:h,popOverContent:()=>i({devices:u,tab:p})})}const M="{c=",H="}";function z({value:e,colors:o}){return e&&(0,c.isString)(e)?e=e.split(" ").map((e=>{if(0!==e.indexOf("#"))return e;let t=e.substring(7).toLowerCase(),n=e.substring(0,7).toLowerCase();for(let e of o){let o=e.color.toLowerCase(),l=o.substring(0,7);if(n+t===o)return M+e.slug+H;if(n===l)return M+e.slug+"@"+H+t}return e})).join(" "):e}function G(e ,o){return e&&e.includes("block")||!e&&["dragblock/wrapper","dragblock/form"].includes(o)}function J(e,o){return e&&e.includes("flex")||!e&&["dragblock/link","dragblock/text","dragblock/icon"].includes(o)}function V(e,o){return e&&e.includes("grid")}function X(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o,c=h(a,"display");return J(c,l)||V(c)||G(c,l)?(0,n.createElement)(U,{title:(0,r.__)("Spacing","dragblock"),text:s.spacing(),popOverContent:({devices:o,tab:t})=>(0,n.createElement)(n.Fragment,null,(J(c,l)||V(c))&&(0,n.createElement)(W,{title:(0,r.__)("Gap","dragblock"),slug:"gap",props:e,devices:o,tab:t,content:({value:e,onChange:o})=>(0,n.createElement)(R,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Margin","dragblock"),slug:"margin",props:e,devices:o,tab:t,content:({value:e,onChange:o})=>(0,n.createElement)(T,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Padding","dragblock"),slug:"padding",props:e,devices:o,tab:t,content:({value:e,onChange:o})=>(0,n.createElement)(A,{value:e,onChange:o})}))}):null}function q({props:e,devices:o,tab:t}){const{attributes:l,setAttributes:a,clientId:s}=e,{dragBlockStyles:d}=l,g="grid-template-columns";let u=h(d,g,o=o||"d");u=u&&u.includes("(")?u.split("(")[1]:"",u=u.split(",")[0],u=!u||isNaN(u)?1:Number(u);const k=(0,n.createElement)(W,{title:(0,r.__)("Number Grid Columns","dragblock"),slug:"grid-template-columns",props:e,devices:o,tab:t,content:()=>(0,n.createElement)("div",{className:"grid-column-number item-selector"},Array.from({length:12}).map(((e,t)=>(0,n.createElement)("a",{key:t,className:"item"+(u===t+1?" selected":""),onClick:()=>{let e=`repeat(${t+1},1fr)`;0===t&&(e=""),a({dragBlockStyles:(0,c.cloneDeep)(_(d,g,e,o))})}},t+1))))}),[m,p]=(0,n.useState)(-1),[b,B]=(0,n.useState)(""),[f,v]=(0,n.useState)(!1),C=(0,i.select)("core/block-editor").getBlockOrder(s);let y=C.map((e=>(0,i.select)("core/block-editor").getBlock(e).attributes.dragBlockStyles||{}));const E=(e,t)=>{v(!1),B(""),(0,i.dispatch)("core/block-editor").updateBlockAttributes(C[e],{dragBlockStyles:(0,c.cloneDeep)(_(y[e],"grid-area",t,o))})},x=(0,n.createElement)("div",{className:"item-selector"},C.map(((e,o)=>(0,n.createElement)("a",{key:o,className:I()("item",{selected:o===m}),onClick:()=>{p(o)}},o+1))),m>-1&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("a",{className:"clear-single item",onClick:()=>{E(m,""),p(m>-1?-1:m-1)}},(0,r.__)("Resest ","dragblock")+(m+1))),(0,n.createElement)("a",{className:"clear-all item",onClick:()=>{C.map(((e,o)=>{E(o,"")})),p(m>-1?-1:m-1)}},(0,r.__)("Resest All","dragblock"))),N=(0,n.createElement)("div",{className:"canvas"},Array.from({length:5}).map(((e,o)=>(0,n.createElement)("div",{key:o,className:"row"},Array.from({length:12}).map(((e,o)=>(0,n.createElement)("div",{key:o,className:"cell"+(o+1>u?" out":"")}))))))),S=(0,n.createElement)("div",{className:"display"},y.map(((e,t)=>{let l=h(e,"grid-area",o);return f&&t===m&&(l=b),(0,n.createElement)("a",{key:t,style:{gridArea:l},className:I()("item",{active:l&&"0/0/0/0"!==l,selected:t===m})},t+1)}))),w=(0,n.createElement)("div",{className:"painter"},Array.from({length:5}).map(((e,o)=>(0,n.createElement)("div",{key:o,className:"row"},Array.from({length:u}).map(((e,t)=>(0,n.createElement)("a",{key:t,className:"cell",onMouseDown:()=>{((e,o)=>{-1!==m&&(v(!0),B([e+1,o+1,e+2,o+2].join("/")))})(o,t)},onMouseEnter:()=>{((e,o)=>{if(!f)return;let[t,n,l,a]=(e=>{if(!e)return[0,0,0,0];let o=e.split("/");if(4===o.length){for(let e of o)if(isNaN(e))return[0,0,0,0];return o.map((e=>parseInt(e)))}return[0,0,0,0]})(b),[r,c,i,s]=[e+1,o+1,e+2,o+2];t<=r&&i<=l&&n<=c&&s<=a?(t<r&&(t=r),n<c&&(n=c),l>i&&(l=i),a>s&&(a=s)):(t>r&&(t=r),n>c&&(n=c),l<i&&(l=i),a<s&&(a=s)),B([t,n,l,a].join("/"))})(o,t)},onMouseUp:()=>{E(m,b)}}))))))),L=(0,n.createElement)(W,{title:(0,r.__)("Grid Template","dragblock"),content:()=>(0,n.createElement)("div",{className:"grid-template"},x,(0,n.createElement)("div",{className:"workspace"},N,S,w))}),D=e=>{if(isNaN(e.key))return;let o=Number(e.key)-1;o>=C.length&&(o=C.length-1),p(o)};return(0,n.useEffect)((()=>(document.addEventListener("keydown",D),()=>{document.removeEventListener("keydown",D)})),[]),(0,n.createElement)("div",{class:"grid-layout"},k,u>1&&!!C.length&&L)}function $(e){const{attributes:o,name:t}=e,{dragBlockStyles:l}=o,a=h(l,"display");return J(a,t)||V(a)||G(a,t)?(0,n.createElement)(U,{title:(0,r.__)("Layout","dragblock"),text:s.layout(),popOverContent:({devices:o,tab:l})=>(0,n.createElement)(n.Fragment,null,G(a,t)&&(0,n.createElement)(W,{title:(0,r.__)("Text Align","dragblock"),slug:"text-align",props:e,devices:o,tab:l}),J(a,t)&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(W,{title:(0,r.__)("Justify Content","dragblock"),slug:"justify-content",props:e,devices:o,tab:l}),(0,n.createElement)(W,{title:(0,r.__)("Align Items","dragblock"),slug:"align-items",props:e,devices:o,tab:l}),(0,n.createElement)(W,{title:(0,r.__)("Flex Direction","dragblock"),slug:"flex-direction",props:e,devices:o,tab:l})),V(a)&&(0,n.createElement)(q,{props:e,devices:o,tab:l}))}):null}function K(e){const{attributes:o,name:t}=e,{dragBlockStyles:l}=o,a=h(l,"display");return J(a,t)||V(a)||G(a,t)?(0,n.createElement)(U,{title:(0,r.__)("Sizing","dragblock"),text:s.sizing(),tabs:["max"],popOverContent:({devices:o,tab:t})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(W,{title:t?(0,r.__)("Max Width","dragblock"):(0,r.__)("Width","dragblock"),slug:t?"max-width":"width",props:e,devices:o,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{value:e,onChange:o,presets:t})}),(0,n.createElement)(W,{title:t?(0,r.__)("Max Height","dragblock"):(0,r.__)("Height","dragblock"),slug:t?"max-height":"height",props:e,devices:o,content:({value:e,onChange:o})=>(0,n.createElement)(L,{value:e,onChange:o})}))}):null}function Q({placeholder:e,value:o,onChange:t}){const l=(0,a.useSetting)("color.palette.theme").concat((0,a.useSetting)("color.palette.custom")||[]),r=(0,n.useRef)(null);return o=function(e,o){return e&&(0,c.isString)(e)?e.split(" ").map((e=>{if(0!==e.indexOf(M))return e;if((e=e.split(H)).length<=2){let t=2===e.length?e[1]:"",n=e[0].substring(M.length);for(let e of o){if(n===e.slug)return e.color;if(n===e.slug+"@")return e.color.substring(0,7)+t}}return e.join(H)})).join(" "):e}(o,l),(0,n.createElement)("div",{className:"dragblock-color-picker"},(0,n.createElement)("div",{className:"db-input-wrapper"},(0,n.createElement)("input",{ref:r,value:o,placeholder:e,onChange:e=>{t(z({value:e.target.value,colors:l}))}}),(0,n.createElement)(m,{popOverClassName:"dragblock-color-picker-popover",closeOnMouseLeave:!0,text:(0,n.createElement)("span",{className:"color-previewer "+(o?"active":"none"),style:{backgroundColor:o||"transparent"}}),popOverContent:e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(k.ColorPicker,{color:o,enableAlpha:!0,defaultValue:"#000",onChange:e=>{t(z({value:e,colors:l}))}}),(0,n.createElement)("div",{className:"color-palette"},Object.values(l).map(((e,a)=>(0,n.createElement)("a",{key:a,className:"color"+(e.color===o?" selected":""),title:e.name,style:{backgroundColor:e.color},onClick:()=>{t(z({value:e.color,colors:l}))}})))))})))}const Y={"":(0,r.__)("Default","dragblock"),solid:"Solid",dashed:"Dashed",dotted:"Dotted",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset",none:"None",hidden:"Hidden",inherit:"Inherit",initial:"Initial",revert:"Revert",auto:"Auto"};function Z({value:e,onChange:o}){return(0,n.createElement)(m,{closeOnMouseLeave:!0,className:"dragblock-line-style-picker db-input-wrapper border"+(e?" "+e:""),text:(0,n.createElement)("span",{className:"previewer",style:["solid","dashed","dotted","double","groove","ridge","inset","outset"].includes(e)?{borderStyle:e}:{}},e||(0,r.__)("Style","dragblock")),popOverContent:t=>(0,n.createElement)("div",{className:"dragblock-line-style-picker-items border"},Object.entries(Y).map((([t,l],a)=>(0,n.createElement)("a",{key:a,title:l,className:"item "+(t||"default")+(t===e?" selected":""),style:{borderStyle:t},onClick:()=>{o(t)}},l))))})}function ee({value:e,onChange:o}){const t=["","",""];let[l,a,c]=t;return(e?e.trim().split(" "):t).map((e=>{if(Y[e])return void(a=e);let o=parseFloat(e);if(!isNaN(o)){const t=e.replace(o,"");if(C[t])return void(l=e)}c=e})),(0,n.createElement)("div",{class:"dragblock-border-single-control dragblock-dimension-single-complex-control"},(0,n.createElement)(L,{placeholder:(0,r.__)("Width"),value:l,onChange:function(e){o([e,a,c].filter((e=>!!e)).join(" "))},forceUnit:"px"}),(0,n.createElement)(Z,{value:a,onChange:function(e){o([l,e,c].filter((e=>!!e)).join(" "))}}),(0,n.createElement)(Q,{placeholder:(0,r.__)("Color"),value:c,onChange:function(e){o([l,a,e].filter((e=>!!e)).join(" "))}}))}function oe({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:"dragblock-border-control"+(l?" "+l:""),layout:"side",separator:",",placeholder:e,placeholders:[(0,r.__)("Top","dragblock"),(0,r.__)("Right","dragblock"),(0,r.__)("Bottom","dragblock"),(0,r.__)("Left","dragblock")],control:({placeholder:e,value:o,onChange:t})=>(0,n.createElement)(ee,{placeholder:e,value:o,onChange:t})})}function te({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:"dragblock-border-radius-control"+(l?" "+l:""),layout:"corner",placeholder:e,placeholders:[(0,r.__)("Top Left","dragblock"),(0,r.__)("Top Right","dragblock"),(0,r.__)("Bottom Right","dragblock"),(0,r.__)("Bottom Left","dragblock")],control:({placeholder:e,value:o,onChange:t})=>(0,n.createElement)(L,{placeholder:e,value:o,onChange:t})})}function ne(e){const{attributes:o,setAttributes:t}=e,{dragBlockStyles:l}=o;return(0,n.createElement)(U,{title:(0,r.__)("Borders","dragblock"),text:s.container(),tabs:[":hover"],popOverContent:({devices:o,tab:a})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(W,{title:(0,r.__)("Border","dragblock"),slug:"border",props:e,devices:o,tab:a,content:({slug:e})=>{let r="";const i=B(l,e,o,a),s=B(l,"border-top",o,a),d=B(l,"border-right",o,a),g=B(l,"border-bottom",o,a),u=B(l,"border-left",o,a),k=-1===s&&-1===d&&-1===g&&-1===u||i>-1&&i<s&&i<d&&i<g&&i<u;return r=k?h(l,e,o,a):[h(l,"border-top",o,a),h(l,"border-right",o,a),h(l,"border-bottom",o,a),h(l,"border-left",o,a)].join(","),(0,n.createElement)(oe,{value:r,onChange:e=>{if(e.includes(",")){const[t,n,r,c]=e.split(",");_(l,"border-top",t,o,a),_(l,"border-right",n,o,a),_(l,"border-bottom",r,o,a),_(l,"border-left",c,o,a),k&&f(l,"border",o,a)}else _(l,"border",e,o,a),k||(f(l,"border-top",o,a),f(l,"border-right",o,a),f(l,"border-bottom",o,a),f(l,"border-left",o,a));t({dragBlockStyles:(0,c.cloneDeep)(l)})}})}}),(0,n.createElement)(W,{title:(0,r.__)("Corner Radius","dragblock"),slug:"border-radius",props:e,devices:o,tab:a,content:({value:e,onChange:o})=>(0,n.createElement)(te,{value:e,onChange:o})}))})}const le=[{value:"",label:(0,r.__)("Default","dragblock")},{value:"100",label:(0,r.__)("Thin","dragblock")},{value:"200",label:(0,r.__)("Extra Light","dragblock")},{value:"300",label:(0,r.__)("Light","dragblock")},{value:"400",label:(0,r.__)("Regular","dragblock")},{value:"500",label:(0,r.__)("Medium","dragblock")},{value:"600",label:(0,r.__)("Semi Bold","dragblock")},{value:"700",label:(0,r.__)("Bold","dragblock")},{value:"800",label:(0,r.__)("Extra Bold","dragblock")},{value:"900",label:(0,r.__)("Black","dragblock")}];function ae({options:e,value:o,onChange:t}){if(!e)return null;let l="";if((0,c.isString)(e))switch(l=e,e){case"font-family":e=[{value:"",label:(0,r.__)("Default","dragblock")},...dragBlockEditorInit.fontName.map((e=>({value:e,label:e})))];break;case"font-weight":e=le;break;default:return null}return(0,n.createElement)("div",{className:"dragblock-select db-input-wrapper"},(0,n.createElement)("select",{onChange:e=>{t(e.target.value)},value:o,style:"font-family"===l?{fontFamily:o}:"font-weight"===l?{fontWeight:o}:{}},e.map(((e,o)=>(0,n.createElement)("option",{key:o,value:e.value,style:"font-family"===l?{fontFamily:e.value}:"font-weight"===l?{fontWeight:e.value}:{}},e.value?e.label||e.value:"—")))))}function re({value:e,onChange:o}){const t={textDecorationStyle:e,textDecorationLine:e?"underline":""};return(0,n.createElement)(m,{closeOnMouseLeave:!0,className:"dragblock-line-style-picker text-decoration-style"+(e?" "+e:""),text:(0,n.createElement)("span",{className:"previewer",style:t},e||(0,r.__)("Style","dragblock")),popOverContent:t=>(0,n.createElement)("div",{className:"dragblock-line-style-picker-items text-decoration-style"},Object.entries(F["text-decoration-style"]).map((([t,{text:l,icon:a}],r)=>(0,n.createElement)("a",{key:r,title:l,className:"item "+(t||"default")+(t===e?" selected":""),onClick:()=>{o(t)}},a))))})}function ce({value:e,onChange:o}){const t=["","",""];let[l,a,c,i]=t;return(e?e.trim().split(" "):t).map((e=>{if(F["text-decoration-line"][e])return void(a+=(a?" ":"")+e);if(F["text-decoration-style"][e])return void(c=e);let o=parseFloat(e);if(!isNaN(o)){const t=e.replace(o,"");if(C[t])return void(l=e)}i=e})),(0,n.createElement)("div",{class:"dragblock-text-decoration-single-control"},(0,n.createElement)(j,{value:a,options:"text-decoration-line",multiSelect:!0,onChange:function(t){o(e&&t&&"none"!==t?[t,l,c,i].filter((e=>!!e)).join(" "):t)}}),!!a&&"none"!=a&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("br",null),(0,n.createElement)("div",{className:"dragblock-dimension-single-complex-control advanced"},(0,n.createElement)(L,{placeholder:(0,r.__)("Thick"),value:l,onChange:function(e){o([a,e,c,i].filter((e=>!!e)).join(" "))},forceUnit:"px"}),(0,n.createElement)(re,{value:c,onChange:function(e){o([a,l,e,i].filter((e=>!!e)).join(" "))}}),(0,n.createElement)(Q,{placeholder:(0,r.__)("Color"),value:i,onChange:function(e){o([a,l,c,e].filter((e=>!!e)).join(" "))}}))))}function ie(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o;if("dragblock/image"===l)return null;(0,r.__)("Normal","dragblock"),(0,r.__)("Hover","dragblock");const c={fontFamily:h(a,"font-family"),fontWeight:h(a,"font-weight"),fontStyle:h(a,"font-style"),textTransfrom:h(a,"text-transfrom"),textDecoration:h(a,"text-decoration")};return(0,n.createElement)(U,{title:(0,r.__)("Typography","dragblock"),text:(0,n.createElement)("span",{style:c},"Aa"),className:"text-icon",tabs:[":hover"],popOverContent:({devices:o,tab:t})=>(0,n.createElement)("div",{className:"dragblock-editor-toolbar-typography"},(0,n.createElement)("div",{className:"column-1"},(0,n.createElement)(W,{title:(0,r.__)("Font","dragblock"),slug:"font-family",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(ae,{options:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Weight","dragblock"),slug:"font-weight",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(ae,{options:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Weight","dragblock"),slug:"font-style",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(j,{options:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Case","dragblock"),slug:"text-transform",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(j,{options:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Decoration","dragblock"),slug:"text-decoration",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(ce,{value:e,onChange:o})})),(0,n.createElement)("div",{className:"column-2"},(0,n.createElement)(W,{title:(0,r.__)("Size","dragblock"),slug:"font-size",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{presets:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Line Height","dragblock"),slug:"line-height",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Letter Space","dragblock"),slug:"letter-spacing",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Word Space","dragblock"),slug:"word-spacing",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{value:e,onChange:o})})))})}function se(e){const{checked:o,label:t,onChange:l,children:a}=e;return(0,n.createElement)("label",{className:"dragblock-checkbox"},(0,n.createElement)("input",{type:"checkbox",checked:o,onChange:()=>{l(!o)}})," ",(0,n.createElement)("span",null,t||a))}(0,r.__)("Default","dragblock"),(0,r.__)("Default","dragblock");const de={"[dragblock.home.url]":{label:(0,r.__)("Home URL","dragblock"),note:(0,r.__)("Home URL","dragblock"),render:e=>{}},"[dragblock.form.message.error]":{label:(0,r.__)("Form Submission Error Message","dragblock"),note:(0,r.__)("Error message after submitting form","dragblock"),placeholder:(0,r.__)("DragBlock Form Error: There is an uknown server error.","dragblock"),render:e=>{}},"[dragblock.post.title]":{label:(0,r.__)("Post Title","dragblock"),note:(0,r.__)("The parsed post's Title","dragblock"),placeholder:(0,r.__)("The DragBlock Post Title","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.title)return _DragBlockDB.post.title}},"[dragblock.post.url]":{label:(0,r.__)("Post URL","dragblock"),note:(0,r.__)("The parsed post's url","dragblock"),render:e=>{}},"[dragblock.post.image.src]":{label:(0,r.__)("Post Image Thumbnail SRC","dragblock"),note:(0,r.__)("the parsed post's image src","dragblock"),render:e=>_DragBlockDB.post&&_DragBlockDB.post.image_src?_DragBlockDB.post.image_src:""},"[dragblock.post.author.url]":{label:(0,r.__)("Post Author URL","dragblock"),note:(0,r.__)("the parsed post's author page url","dragblock"),render:e=>{}},"[dragblock.post.author.name]":{label:(0,r.__)("Post Author Name","dragblock"),note:(0,r.__)("The parsed post's author name","dragblock"),placeholder:(0,r.__)("Author Name","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.author_name)return _DragBlockDB.post.author_name}},"[dragblock.post.author.avatar.src]":{label:(0,r.__)("Post Author Avatar SRC","dragblock"),note:(0,r.__)("The parsed post's author's avatar SRC","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.author_avatar_src)return _DragBlockDB.post.author_avatar_src}},"[dragblock.post.date]":{label:(0,r.__)("Post Date Name","dragblock"),note:(0,r.__)("The parsed post's date","dragblock"),placeholder:(0,r.__)("July 01, 2086","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.date)return _DragBlockDB.post.date}},"[dragblock.post.comment.number]":{label:(0,r.__)("Post Comment Number","dragblock"),note:(0,r.__)("The parsed post's comment number","dragblock"),placeholder:"0",render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.comment_number)return _DragBlockDB.post.comment_number}},"[dragblock.post.snippet]":{label:(0,r.__)("Post Snippet","dragblock"),note:(0,r.__)("The parsed post's snippet","dragblock"),placeholder:(0,r.__)("Get the first paragraph of the post content. If the post excerpt, a custom summary of the post that author manually inputted when composing the post content, exists, use that instead","dragblock"),render:e=>{if(!_DragBlockDB.post||!_DragBlockDB.post.snippet)return;let o=_DragBlockDB.post.snippet;if(e&&e.len&&!isNaN(e.len)&&o.length>Number(e.len)){let t="",n=Number(e.len);o.split(" ").map((e=>{t.length<n?t+=(t?" ":"")+e:e.endsWith(",")||e.endsWith("!")||e.endsWith(".")||e.endsWith(":")||e.endsWith("?")||e.endsWith(";")||(t+=(t?" ":"")+e)})),o=o.substring(0,Number(e.len))}return o}},"[dragblock.post.cat.name]":{label:(0,r.__)("Post Category Name","dragblock"),placeholder:(0,r.__)("Category Name","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.cat_name)return _DragBlockDB.post.cat_name}},"[dragblock.post.cat.url]":{label:(0,r.__)("Post Category URL","dragblock"),render:e=>{}},"[dragblock.post.tag.name]":{label:(0,r.__)("Post Tag Name","dragblock"),placeholder:(0,r.__)("Tag Name","dragblock"),render:e=>{}},"[dragblock.post.tag.url]":{label:(0,r.__)("Post Tag URL","dragblock"),render:e=>{}},"[dragblock.share.url.twitter]":{label:(0,r.__)("Twitter Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.facebook]":{label:(0,r.__)("Facebook Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.whatsapp]":{label:(0,r.__)("Whatsapp Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.telegram]":{label:(0,r.__)("Telegram Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.tumblr]":{label:(0,r.__)("Tumblr Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.reddit]":{label:(0,r.__)("Reddit Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.linkedin]":{label:(0,r.__)("LinkedIn Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.gmail]":{label:(0,r.__)("Gmail Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.navigator]":{label:(0,r.__)("Navigator Share URL","dragblock"),render:e=>{}}};function ge({value:e,onChange:o,type:t,placeholder:l}){const i=(0,n.useRef)(null),[d,g]=(0,n.useState)(ke(e,5,t)),[u,k]=(0,n.useState)(null);return(0,n.createElement)("div",{className:"dragblock-url-input "+(t||"url")},(0,n.createElement)("div",{className:"db-input-wrapper"},(0,n.createElement)("input",{placeholder:l||(0,r.__)("Input URL or keywords","dragblock"),ref:i,type:"url",value:e,onChange:e=>{o(e.target.value),(e=>{const o=ke(e,5,t);if(g(o),u&&clearTimeout(u),!ue(e)||Object.keys(o).length>=5)return void k(null);let n=setTimeout((()=>{jQuery.post(dragBlockEditorInit.ajaxUrl,{action:"dragblock_url_search",search:me(e),nonce:dragBlockEditorInit.nonce}).fail((function(e){k(null)})).done((function(e){if(k(null),!1===(e=function(e,o=function(){},t=!1){if(0!==e&&!e)return!1;let n="";if((0,c.isObject)(e)&&e.responseText&&e.statusText&&(n=e.statusText,e=e.responseText),(0,c.isString)(e)&&-1!==e.indexOf(" https://wordpress.org/documentation/article/faq-troubleshooting/"))return o(__("WordPress Server Error","sneeit-core")),!1;if(function(e){if(!(0,c.isString)(e))return!1;if(-1===e.indexOf("on line")||-1===e.indexOf(".php")||-1===e.indexOf(": "))return!1;let o=["Parse error","Warning","Notice","Fatal error"];for(let t of o)if(-1!==e.indexOf(t))return!0;return!1}(e))return o(n+" : "+(e=(e=e.split(": ")[1]).split("Stack trace:")[0])),!1;if(t)return o((0,c.isString)(e)?e:JSON.stringify(e)),!1;try{e=JSON.parse(e)}catch(t){return o("Invalid JSON: "+t+": "+e),!1}return e&&e.error?(o(e.error),!1):e}(e))||!e.search||!i||!i.current)return clearTimeout(n),void k(null);if(me(i.current.value||"")!=me(e.search))return clearTimeout(n),void k(null);if(Object.keys(o).length<5&&e.results)for(let t in e.results)if(t!==i.current.value&&(o[t]=e.results[t],Object.keys(o).length>=5))break;g((0,c.cloneDeep)(o)),clearTimeout(n),k(null)}))}),500);k(n)})(e.target.value)}}),!!e&&(0,n.createElement)("a",{className:"clear",onClick:()=>{o(""),g(ke("",5,t)),i.current.focus()}},s.close()),"src"===t&&(0,n.createElement)(a.MediaUploadCheck,null,(0,n.createElement)(a.MediaUpload,{title:l,modalClass:"dragblock-toolbar-popover media-uploader",onSelect:e=>{o(e.url)},allowedTypes:["image"],value:e,render:({open:e})=>(0,n.createElement)("a",{className:"uploader-toggle",onClick:()=>{e()}},s.upload())}))),(!!Object.keys(d).length||ue(e))&&(0,n.createElement)("div",{className:"search-results"},Object.entries(d).map((([e,t],l)=>(0,n.createElement)("a",{className:"item",key:l,title:e,onClick:()=>{o(e),i.current.focus(),g({})}},(0,n.createElement)("span",{className:"title"},t.title),(0,n.createElement)("span",{className:"type"},t.type)))),ue(e)&&0===Object.entries(d).length&&null===u&&(0,n.createElement)("span",null,(0,r.__)("No result found","dragblock"))),!!u&&(0,n.createElement)("div",{className:"loading"},s.moreHorizontal()))}function ue(e){return!!e&&!(e.length<2||e.includes("[")||e.includes("://")||e.includes("http"))}function ke(e="",o,t="url"){if(!ue(e)&&e)return{};const n={};for(let e in de)e.includes("."+t)&&(n[e]={title:de[e].label||e,type:"shortcode"});const l={};if(ue(e)){for(let t in n)if((u(t,e)||u(n[t].title,e))&&t!==e&&(l[t]=(0,c.cloneDeep)(n[t]),Object.keys(l).length>=o))break}else for(let t in n)if(t!==e&&(l[t]=(0,c.cloneDeep)(n[t]),Object.keys(l).length>=o))break;return(0,c.cloneDeep)(l)}function me(e){return e.toLowerCase().replace(/[/\-]/g," ").split(/\s+/).filter((e=>!!e.trim())).join(" ")}function pe(e){const{href:o,target:t,rel:l,onChange:a}=e,c=new Set(l?l.split(" ").map((e=>e.trim())).filter((e=>!!e)):[]);return(0,n.createElement)("div",{className:"dragblock-link-picker"},(0,n.createElement)(ge,{value:o,onChange:e=>{a({href:e,target:t,rel:Array.from(c).join(" ")})}}),!!o&&!ue(o)&&(0,n.createElement)("div",{className:"extra"},(0,n.createElement)(se,{checked:"_blank"===t,label:(0,r.__)("Open in new window","dragblock"),onChange:e=>{e?(c.add("noreferrer"),c.add("noopener")):(c.delete("noreferrer"),c.delete("noopener")),a({href:o,target:e?"_blank":"",rel:Array.from(c).join(" ")})}}),(0,n.createElement)(se,{checked:c.has("nofollow"),label:(0,r.__)("Add no follow","dragblock"),onChange:e=>{e?c.add("nofollow"):c.delete("nofollow"),a({href:o,target:t,rel:Array.from(c).join(" ")})}})))}function be(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockAttrs:a}=o;return"dragblock/link"!==l?null:(0,n.createElement)(U,{isResponsive:!1,title:(0,r.__)("Link","dragblock"),text:s.linkDiagonal(),noPadding:!0,popOverContent:()=>{const e=h(a,"href"),o=h(a,"target"),l=h(a,"rel");return(0,n.createElement)(pe,{href:e,target:o,rel:l,onChange:e=>{_(a,"href",e.href),_(a,"rel",e.rel),_(a,"target",e.target),t({dragBlockAttrs:(0,c.cloneDeep)(a)})}})}})}function Be(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockAttrs:a}=o;return"dragblock/image"!==l?null:(0,n.createElement)(U,{isResponsive:!1,title:(0,r.__)("Image SRC","dragblock"),text:s.image(),popOverContent:()=>(0,n.createElement)(ge,{type:"src",placeholder:(0,r.__)("Image SRC","dragblock"),value:h(a,"src"),onChange:e=>{t({dragBlockAttrs:(0,c.cloneDeep)(_(a,"src",e))})}})})}function he(e){const{name:o,clientId:t}=e;return["dragblock/wrapper","dragblock/link","dragblock/form","dragblock/select"].includes(o)?(0,n.createElement)("div",{className:"dragblock-toolbar-button-wrapper"},(0,n.createElement)("div",{className:"dragblock-toolbar-button"},(0,n.createElement)(a.Inserter,{position:"bottom center",rootClientId:t,__experimentalIsQuick:!0,renderToggle:({onToggle:e})=>(0,n.createElement)("a",{title:(0,r.__)("Add a Child","dragblock"),onClick:e},s.plus()),isAppender:!0}))):null}function fe(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o;return"dragblock/image"===l?null:(0,n.createElement)(U,{title:(0,r.__)("Colors","dragblock"),text:s.colorPaletteLen(),tabs:[":hover"],popOverContent:({devices:o,tab:t})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(W,{title:(0,r.__)("Text Color","dragblock"),slug:"color",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(Q,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Background Color","dragblock"),slug:"background-color",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(Q,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Background Image","dragblock"),slug:"background-image",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(ge,{type:"src",placeholder:(0,r.__)("Background Image SRC","dragblock"),value:e,onChange:o})}))})}function _e(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o;if(!["dragblock/wrapper","dragblock/link","dragblock/form"].includes(l))return null;const i="display",d=h(a,i);return(0,n.createElement)(m,{noPadding:!0,title:(0,r.__)("Display","dragblock"),text:P(i,d)||s.close(),popOverContent:e=>(0,n.createElement)(j,{options:i,value:d,onChange:e=>{t({dragBlockStyles:(0,c.cloneDeep)(_(a,i,e))})},vertical:!0})})}function ve({value:e,onChange:o}){let t=parseFloat(e||"0");return isNaN(t)&&(t=0),(0,n.createElement)(L,{before:(0,n.createElement)("a",{style:{transform:"rotate("+t+"deg)"},className:"rotate-button db-clickable-icon",onClick:()=>{let e=t+45;e>=360&&(e%=360),o(`${e}deg`)}},s.rotateRight()),units:y,value:e,onChange:o})}function Ie({value:e,onChange:o}){let t=parseFloat(e||"0");return isNaN(t)&&(t=0),(0,n.createElement)(L,{before:(0,n.createElement)("a",{style:{transform:"rotateZ(90deg) rotateX("+(t>=180?180:0)+"deg)"},className:"rotate-x-button db-clickable-icon",onClick:()=>{let e=t+180;e>=360&&(e%=360),o(`${e}deg`)}},s.filter()),units:y,value:e,onChange:o})}function Ce({value:e,onChange:o}){let t=parseFloat(e||"0");return isNaN(t)&&(t=0),(0,n.createElement)(L,{before:(0,n.createElement)("a",{style:{transform:"rotateY("+(t>=180?180:0)+"deg)"},className:"rotate-x-button db-clickable-icon",onClick:()=>{let e=t+180;e>=360&&(e%=360),o(`${e}deg`)}},s.filter()),units:y,value:e,onChange:o})}function ye(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o;return(0,n.createElement)(U,{title:(0,r.__)("Transform","dragblock"),text:s.es(),tabs:[":hover"],popOverContent:({devices:o,tab:l})=>{const i=function(e,o,t){const n={};for(const[l,a]of(e||[]).entries()){const{slug:e,value:r,devices:c,selectors:i,disabled:s}=a;if("transform"!==e||s)continue;if((o||c)&&o!=c)continue;if((t||i)&&t!==i)continue;if(!r.includes("(")||!r.includes(")"))continue;const d=r.split("(")[0],g=r.split("(")[1].split(")")[0];d&&(n[d]={value:g,index:l})}return n}(a,o,l),s=(e,n)=>{""!==n&&"deg"!==n||d(e);const r=(0,c.cloneDeep)(a);if(i[e])r[i[e].index].value=`${e}(${n})`;else{let t={slug:"transform",value:`${e}(${n})`};o&&(t.devices=o),l&&(t.selectors=l),o&&(t.devices=o),l&&(t.selectors=l),r.unshift(t)}t({dragBlockStyles:r})},d=e=>{if(!i[e])return;const o=(0,c.cloneDeep)(a);i[e].index>-1&&o.splice(i[e].index,1),t({dragBlockStyles:o})};return(0,n.createElement)("div",{className:"dragblock-editor-toolbar-transform"},(0,n.createElement)(W,{title:(0,r.__)("Rotate","dragblock"),onReset:!!i?.rotate?.value&&(()=>{d("rotate")}),props:e,devices:o,tab:l,content:({})=>(0,n.createElement)(ve,{value:i?.rotate?.value,onChange:e=>{s("rotate",e)}})}),(0,n.createElement)(W,{title:(0,r.__)("Flip Horizontal","dragblock"),onReset:!!i?.rotateY?.value&&(()=>{d("rotateY")}),props:e,devices:o,tab:l,content:({})=>(0,n.createElement)(Ce,{value:i?.rotateY?.value,onChange:e=>{s("rotateY",e)}})}),(0,n.createElement)(W,{title:(0,r.__)("Flip Vertical","dragblock"),onReset:!!i?.rotateX?.value&&(()=>{d("rotateX")}),props:e,devices:o,tab:l,content:({})=>(0,n.createElement)(Ie,{value:i?.rotateX?.value,onChange:e=>{s("rotateX",e)}})}))}})}function Ee(e){const{attributes:o,setAttributes:t}=e;let{dragBlockRenderability:l}=o;if(!l||!l.length)return null;let a=null;for(let e of l)if(!e.disabled&&"render"===e.slug){a=e.value;break}return null===a?null:(0,n.createElement)(k.ToolbarButton,{className:"dragblock-render-toolbar-button",onClick:()=>{let e=(0,c.cloneDeep)(l);for(let o=0;o<e.length;o++){let n=e[o];if(!n.disabled&&"render"===n.slug){"never"===n.value?n.value="":n.value="never",e[o]=n,t({dragBlockRenderability:e});break}}}},"never"===a?s.eyeClosed():s.eye())}const xe=(0,l.createHigherOrderComponent)((e=>o=>{const{isSelected:t}=o,l=(0,n.createElement)("div",{className:"dragblock-toolbar-separator"});return t?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(e,{...o}),(0,n.createElement)(a.BlockControls,null,(0,n.createElement)(g,{...o}),(0,n.createElement)(b,{...o}),(0,n.createElement)(_e,{...o}),(0,n.createElement)($,{...o}),l,(0,n.createElement)(X,{...o}),(0,n.createElement)(K,{...o}),(0,n.createElement)(ne,{...o}),l,(0,n.createElement)(ie,{...o}),(0,n.createElement)(fe,{...o}),(0,n.createElement)(ye,{...o}),l,(0,n.createElement)(be,{...o}),(0,n.createElement)(Be,{...o}),(0,n.createElement)(Ee,{...o}),(0,n.createElement)(he,{...o}),l)):(0,n.createElement)(e,{...o})}),"dragBlockEditorToolbars");wp.hooks.addFilter("editor.BlockEdit","dragblock/editor-toolbars",xe)},4184:function(e,o){var t;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e=[],o=0;o<arguments.length;o++){var t=arguments[o];if(t){var a=typeof t;if("string"===a||"number"===a)e.push(t);else if(Array.isArray(t)){if(t.length){var r=l.apply(null,t);r&&e.push(r)}}else if("object"===a){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var c in t)n.call(t,c)&&t[c]&&e.push(c)}}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(t=function(){return l}.apply(o,[]))||(e.exports=t)}()}},t={};function n(e){var l=t[e];if(void 0!==l)return l.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.m=o,e=[],n.O=function(o,t,l,a){if(!t){var r=1/0;for(d=0;d<e.length;d++){t=e[d][0],l=e[d][1],a=e[d][2];for(var c=!0,i=0;i<t.length;i++)(!1&a||r>=a)&&Object.keys(n.O).every((function(e){return n.O[e](t[i])}))?t.splice(i--,1):(c=!1,a<r&&(r=a));if(c){e.splice(d--,1);var s=l();void 0!==s&&(o=s)}}return o}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,l,a]},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,{a:o}),o},n.d=function(e,o){for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},function(){var e={6612:0,7174:0};n.O.j=function(o){return 0===e[o]};var o=function(o,t){var l,a,r=t[0],c=t[1],i=t[2],s=0;if(r.some((function(o){return 0!==e[o]}))){for(l in c)n.o(c,l)&&(n.m[l]=c[l]);if(i)var d=i(n)}for(o&&o(t);s<r.length;s++)a=r[s],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},t=self.webpackChunkdragblock=self.webpackChunkdragblock||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))}();var l=n.O(void 0,[7174],(function(){return n(9061)}));l=n.O(l)}();1 !function(){var e,o={9061:function(e,o,t){"use strict";var n=window.wp.element,l=window.wp.compose,a=window.wp.blockEditor,r=window.wp.i18n,c=window.lodash,i=window.wp.data;const s={aesthetic:()=>dragBlockIcons?.iconAesthetic,alignItemsCenter:()=>dragBlockIcons?.iconAlignItemsCenter,alignItemsEnd:()=>dragBlockIcons?.iconAlignItemsEnd,alginItemsStart:()=>dragBlockIcons?.iconAlginItemsStart,alignItemsStretch:()=>dragBlockIcons?.iconAlignItemsStretch,colorPaletteLen:()=>dragBlockIcons?.iconColorPaletteLen,flexWrapNoWrap:()=>dragBlockIcons?.iconFlexWrapNoWrap,flexWrapWrapReverse:()=>dragBlockIcons?.iconFlexWrapWrapReverse,flexWrapWrap:()=>dragBlockIcons?.iconFlexWrapWrap,gap:()=>dragBlockIcons?.iconGap,justifyContentCenter:()=>dragBlockIcons?.iconJustifyContentCenter,justifyContentEnd:()=>dragBlockIcons?.iconJustifyContentEnd,justifyContentSpaceBetween:()=>dragBlockIcons?.iconJustifyContentSpaceBetween,justifyContentSpaceEvenly:()=>dragBlockIcons?.iconJustifyContentSpaceEvenly,justifyContentStart:()=>dragBlockIcons?.iconJustifyContentStart,justifyContentStretch:()=>dragBlockIcons?.iconJustifyContentStretch,sizing:()=>dragBlockIcons?.iconSizing,spacing:()=>dragBlockIcons?.iconSpacing,alignBottomBoxO:()=>dragBlockIcons?.iconAlignBottomBoxO,alignCenterBoxO:()=>dragBlockIcons?.iconAlignCenterBoxO,alignNoneBoxO:()=>dragBlockIcons?.iconAlignNoneBoxO,alignTopBoxO:()=>dragBlockIcons?.iconAlignTopBoxO,carKey:()=>dragBlockIcons?.iconCarKey,circle:()=>dragBlockIcons?.iconCircle,clipboardCheck:()=>dragBlockIcons?.iconClipboardCheck,clipboardMinus:()=>dragBlockIcons?.iconClipboardMinus,clipboardPlus:()=>dragBlockIcons?.iconClipboardPlus,col3RCO:()=>dragBlockIcons?.iconCol3RCO,colorPalletePaint:()=>dragBlockIcons?.iconColorPalletePaint,container:()=>dragBlockIcons?.iconContainer,doubleToggle:()=>dragBlockIcons?.iconDoubleToggle,eyeClosed:()=>dragBlockIcons?.iconEyeClosed,eyeInSpeechBubble:()=>dragBlockIcons?.iconEyeInSpeechBubble,eyeMonster:()=>dragBlockIcons?.iconEyeMonster,eye:()=>dragBlockIcons?.iconEye,facebookF:()=>dragBlockIcons?.iconFacebookF,fixedWidth:()=>dragBlockIcons?.iconFixedWidth,gearNuclear:()=>dragBlockIcons?.iconGearNuclear,gmail:()=>dragBlockIcons?.iconGmail,gridSelectCol14Row12:()=>dragBlockIcons?.iconGridSelectCol14Row12,grid1x2RC:()=>dragBlockIcons?.iconGrid1x2RC,justifyCenterO:()=>dragBlockIcons?.iconJustifyCenterO,justifyLeftO:()=>dragBlockIcons?.iconJustifyLeftO,justifyNoneO:()=>dragBlockIcons?.iconJustifyNoneO,justifyRightO:()=>dragBlockIcons?.iconJustifyRightO,justifySpaceBetweenO:()=>dragBlockIcons?.iconJustifySpaceBetweenO,layoutBlockBlueBoxO:()=>dragBlockIcons?.iconLayoutBlockBlueBoxO,layoutBlockGreenBoxO:()=>dragBlockIcons?.iconLayoutBlockGreenBoxO,layoutFlexBlueBoxO:()=>dragBlockIcons?.iconLayoutFlexBlueBoxO,layoutFlexComplexBlueBoxO:()=>dragBlockIcons?.iconLayoutFlexComplexBlueBoxO,layoutFlexComplexGreenBoxO:()=>dragBlockIcons?.iconLayoutFlexComplexGreenBoxO,layoutFlexGreenBoxO:()=>dragBlockIcons?.iconLayoutFlexGreenBoxO,layoutGridBlueBoxO:()=>dragBlockIcons?.iconLayoutGridBlueBoxO,layoutGridGreenBoxO:()=>dragBlockIcons?.iconLayoutGridGreenBoxO,layoutLeftFill:()=>dragBlockIcons?.iconLayoutLeftFill,layoutThree:()=>dragBlockIcons?.iconLayoutThree,linkDiagonal:()=>dragBlockIcons?.iconLinkDiagonal,minusCircle:()=>dragBlockIcons?.iconMinusCircle,monalisa:()=>dragBlockIcons?.iconMonalisa,overline:()=>dragBlockIcons?.iconOverline,postHeart:()=>dragBlockIcons?.iconPostHeart,solidPlay:()=>dragBlockIcons?.iconSolidPlay,stopORC:()=>dragBlockIcons?.iconStopORC,stopRC:()=>dragBlockIcons?.iconStopRC,threeColsRC:()=>dragBlockIcons?.iconThreeColsRC,translate:()=>dragBlockIcons?.iconTranslate,ward:()=>dragBlockIcons?.iconWard,whatsapp:()=>dragBlockIcons?.iconWhatsapp,addCard:()=>dragBlockIcons?.iconAddCard,addSubmenu:()=>dragBlockIcons?.iconAddSubmenu,addTemplate:()=>dragBlockIcons?.iconAddTemplate,alignCenter:()=>dragBlockIcons?.iconAlignCenter,alignJustify:()=>dragBlockIcons?.iconAlignJustify,alignLeft:()=>dragBlockIcons?.iconAlignLeft,alignNone:()=>dragBlockIcons?.iconAlignNone,alignRight:()=>dragBlockIcons?.iconAlignRight,archive:()=>dragBlockIcons?.iconArchive,arrowDown:()=>dragBlockIcons?.iconArrowDown,arrowLeft:()=>dragBlockIcons?.iconArrowLeft,arrowRight:()=>dragBlockIcons?.iconArrowRight,arrowUp:()=>dragBlockIcons?.iconArrowUp,aspectRatio:()=>dragBlockIcons?.iconAspectRatio,atSymbol:()=>dragBlockIcons?.iconAtSymbol,audio:()=>dragBlockIcons?.iconAudio,backup:()=>dragBlockIcons?.iconBackup,blockDefault:()=>dragBlockIcons?.iconBlockDefault,blockMeta:()=>dragBlockIcons?.iconBlockMeta,blockTable:()=>dragBlockIcons?.iconBlockTable,border:()=>dragBlockIcons?.iconBorder,box:()=>dragBlockIcons?.iconBox,brush:()=>dragBlockIcons?.iconBrush,bug:()=>dragBlockIcons?.iconBug,button:()=>dragBlockIcons?.iconButton,buttons:()=>dragBlockIcons?.iconButtons,calendar:()=>dragBlockIcons?.iconCalendar,cancelCircleFilled:()=>dragBlockIcons?.iconCancelCircleFilled,caption:()=>dragBlockIcons?.iconCaption,capturePhoto:()=>dragBlockIcons?.iconCapturePhoto,captureVideo:()=>dragBlockIcons?.iconCaptureVideo,category:()=>dragBlockIcons?.iconCategory,chartBar:()=>dragBlockIcons?.iconChartBar,check:()=>dragBlockIcons?.iconCheck,chevronDown:()=>dragBlockIcons?.iconChevronDown,chevronLeftSmall:()=>dragBlockIcons?.iconChevronLeftSmall,chevronLeft:()=>dragBlockIcons?.iconChevronLeft,chevronRightSmall:()=>dragBlockIcons?.iconChevronRightSmall,chevronRight:()=>dragBlockIcons?.iconChevronRight,chevronUpDown:()=>dragBlockIcons?.iconChevronUpDown,chevronUp:()=>dragBlockIcons?.iconChevronUp,classic:()=>dragBlockIcons?.iconClassic,closeSmall:()=>dragBlockIcons?.iconCloseSmall,close:()=>dragBlockIcons?.iconClose,cloudUpload:()=>dragBlockIcons?.iconCloudUpload,cloud:()=>dragBlockIcons?.iconCloud,code:()=>dragBlockIcons?.iconCode,cog:()=>dragBlockIcons?.iconCog,color:()=>dragBlockIcons?.iconColor,column:()=>dragBlockIcons?.iconColumn,columns:()=>dragBlockIcons?.iconColumns,commentAuthorAvatar:()=>dragBlockIcons?.iconCommentAuthorAvatar,commentAuthorName:()=>dragBlockIcons?.iconCommentAuthorName,commentContent:()=>dragBlockIcons?.iconCommentContent,commentEditLink:()=>dragBlockIcons?.iconCommentEditLink,commentReplyLink:()=>dragBlockIcons?.iconCommentReplyLink,comment:()=>dragBlockIcons?.iconComment,copy:()=>dragBlockIcons?.iconCopy,cover:()=>dragBlockIcons?.iconCover,create:()=>dragBlockIcons?.iconCreate,crop:()=>dragBlockIcons?.iconCrop,currencyDollar:()=>dragBlockIcons?.iconCurrencyDollar,currencyEuro:()=>dragBlockIcons?.iconCurrencyEuro,currencyPound:()=>dragBlockIcons?.iconCurrencyPound,customLink:()=>dragBlockIcons?.iconCustomLink,customPostType:()=>dragBlockIcons?.iconCustomPostType,desktop:()=>dragBlockIcons?.iconDesktop,details:()=>dragBlockIcons?.iconDetails,download:()=>dragBlockIcons?.iconDownload,dragHandle:()=>dragBlockIcons?.iconDragHandle,drawerLeft:()=>dragBlockIcons?.iconDrawerLeft,drawerRight:()=>dragBlockIcons?.iconDrawerRight,edit:()=>dragBlockIcons?.iconEdit,external:()=>dragBlockIcons?.iconExternal,file:()=>dragBlockIcons?.iconFile,filter:()=>dragBlockIcons?.iconFilter,flipHorizontal:()=>dragBlockIcons?.iconFlipHorizontal,flipVertical:()=>dragBlockIcons?.iconFlipVertical,footer:()=>dragBlockIcons?.iconFooter,formatBold:()=>dragBlockIcons?.iconFormatBold,formatCapitalize:()=>dragBlockIcons?.iconFormatCapitalize,formatIndentRTL:()=>dragBlockIcons?.iconFormatIndentRTL,formatIndent:()=>dragBlockIcons?.iconFormatIndent,formatItalic:()=>dragBlockIcons?.iconFormatItalic,formatListBulletsRTL:()=>dragBlockIcons?.iconFormatListBulletsRTL,formatListBullets:()=>dragBlockIcons?.iconFormatListBullets,formatListNumberedRTL:()=>dragBlockIcons?.iconFormatListNumberedRTL,formatListNumbered:()=>dragBlockIcons?.iconFormatListNumbered,formatLowercase:()=>dragBlockIcons?.iconFormatLowercase,formatLtr:()=>dragBlockIcons?.iconFormatLtr,formatOutdentRTL:()=>dragBlockIcons?.iconFormatOutdentRTL,formatOutdent:()=>dragBlockIcons?.iconFormatOutdent,formatRtl:()=>dragBlockIcons?.iconFormatRtl,formatStrikethrough:()=>dragBlockIcons?.iconFormatStrikethrough,formatUnderline:()=>dragBlockIcons?.iconFormatUnderline,formatUppercase:()=>dragBlockIcons?.iconFormatUppercase,fullscreen:()=>dragBlockIcons?.iconFullscreen,ery:()=>dragBlockIcons?.gallery,globe:()=>dragBlockIcons?.iconGlobe,grid:()=>dragBlockIcons?.iconGrid,group:()=>dragBlockIcons?.iconGroup,handle:()=>dragBlockIcons?.iconHandle,header:()=>dragBlockIcons?.iconHeader,headingLevel1:()=>dragBlockIcons?.iconHeadingLevel1,headingLevel2:()=>dragBlockIcons?.iconHeadingLevel2,headingLevel3:()=>dragBlockIcons?.iconHeadingLevel3,headingLevel4:()=>dragBlockIcons?.iconHeadingLevel4,headingLevel5:()=>dragBlockIcons?.iconHeadingLevel5,headingLevel6:()=>dragBlockIcons?.iconHeadingLevel6,heading:()=>dragBlockIcons?.iconHeading,helpFilled:()=>dragBlockIcons?.iconHelpFilled,help:()=>dragBlockIcons?.iconHelp,home:()=>dragBlockIcons?.iconHome,html:()=>dragBlockIcons?.iconHtml,image:()=>dragBlockIcons?.iconImage,inbox:()=>dragBlockIcons?.iconInbox,info:()=>dragBlockIcons?.iconInfo,insertAfter:()=>dragBlockIcons?.iconInsertAfter,insertBefore:()=>dragBlockIcons?.iconInsertBefore,institute:()=>dragBlockIcons?.iconInstitute,justifyCenter:()=>dragBlockIcons?.iconJustifyCenter,justifyLeft:()=>dragBlockIcons?.iconJustifyLeft,justifyRight:()=>dragBlockIcons?.iconJustifyRight,justifySpaceBetween:()=>dragBlockIcons?.iconJustifySpaceBetween,justifyStretch:()=>dragBlockIcons?.iconJustifyStretch,key:()=>dragBlockIcons?.iconKey,keyboardClose:()=>dragBlockIcons?.iconKeyboardClose,keyboardReturn:()=>dragBlockIcons?.iconKeyboardReturn,keyboard:()=>dragBlockIcons?.iconKeyboard,language:()=>dragBlockIcons?.iconLanguage,layout:()=>dragBlockIcons?.iconLayout,levelUp:()=>dragBlockIcons?.iconLevelUp,lifesaver:()=>dragBlockIcons?.iconLifesaver,lineDashed:()=>dragBlockIcons?.iconLineDashed,lineDotted:()=>dragBlockIcons?.iconLineDotted,lineSolid:()=>dragBlockIcons?.iconLineSolid,linkOff:()=>dragBlockIcons?.iconLinkOff,link:()=>dragBlockIcons?.iconLink,listItem:()=>dragBlockIcons?.iconListItem,listView:()=>dragBlockIcons?.iconListView,list:()=>dragBlockIcons?.iconList,lockOutline:()=>dragBlockIcons?.iconLockOutline,lockSmall:()=>dragBlockIcons?.iconLockSmall,lock:()=>dragBlockIcons?.iconLock,login:()=>dragBlockIcons?.iconLogin,loop:()=>dragBlockIcons?.iconLoop,mapMarker:()=>dragBlockIcons?.iconMapMarker,mediaAndText:()=>dragBlockIcons?.iconMediaAndText,media:()=>dragBlockIcons?.iconMedia,megaphone:()=>dragBlockIcons?.iconMegaphone,menu:()=>dragBlockIcons?.iconMenu,mobile:()=>dragBlockIcons?.iconMobile,moreHorizontalMobile:()=>dragBlockIcons?.iconMoreHorizontalMobile,moreHorizontal:()=>dragBlockIcons?.iconMoreHorizontal,moreVertical:()=>dragBlockIcons?.iconMoreVertical,more:()=>dragBlockIcons?.iconMore,moveTo:()=>dragBlockIcons?.iconMoveTo,navigation:()=>dragBlockIcons?.iconNavigation,next:()=>dragBlockIcons?.iconNext,notFound:()=>dragBlockIcons?.iconNotFound,overlayText:()=>dragBlockIcons?.iconOverlayText,pageBreak:()=>dragBlockIcons?.iconPageBreak,page:()=>dragBlockIcons?.iconPage,pages:()=>dragBlockIcons?.iconPages,paragraph:()=>dragBlockIcons?.iconParagraph,payment:()=>dragBlockIcons?.iconPayment,pencil:()=>dragBlockIcons?.iconPencil,people:()=>dragBlockIcons?.iconPeople,percent:()=>dragBlockIcons?.iconPercent,pinSmall:()=>dragBlockIcons?.iconPinSmall,pin:()=>dragBlockIcons?.iconPin,plugins:()=>dragBlockIcons?.iconPlugins,plusCircleFilled:()=>dragBlockIcons?.iconPlusCircleFilled,plusCircle:()=>dragBlockIcons?.iconPlusCircle,plus:()=>dragBlockIcons?.iconPlus,positionCenter:()=>dragBlockIcons?.iconPositionCenter,positionLeft:()=>dragBlockIcons?.iconPositionLeft,positionRight:()=>dragBlockIcons?.iconPositionRight,postAuthor:()=>dragBlockIcons?.iconPostAuthor,postCategories:()=>dragBlockIcons?.iconPostCategories,postCommentsCount:()=>dragBlockIcons?.iconPostCommentsCount,postCommentsForm:()=>dragBlockIcons?.iconPostCommentsForm,postComments:()=>dragBlockIcons?.iconPostComments,postContent:()=>dragBlockIcons?.iconPostContent,postDate:()=>dragBlockIcons?.iconPostDate,postExcerpt:()=>dragBlockIcons?.iconPostExcerpt,postFeaturedImage:()=>dragBlockIcons?.iconPostFeaturedImage,postList:()=>dragBlockIcons?.iconPostList,postTerms:()=>dragBlockIcons?.iconPostTerms,post:()=>dragBlockIcons?.iconPost,preformatted:()=>dragBlockIcons?.iconPreformatted,previous:()=>dragBlockIcons?.iconPrevious,pullLeft:()=>dragBlockIcons?.iconPullLeft,pullRight:()=>dragBlockIcons?.iconPullRight,pullquote:()=>dragBlockIcons?.iconPullquote,queryPaginationNext:()=>dragBlockIcons?.iconQueryPaginationNext,queryPaginationNumbers:()=>dragBlockIcons?.iconQueryPaginationNumbers,queryPaginationPrevious:()=>dragBlockIcons?.iconQueryPaginationPrevious,queryPagination:()=>dragBlockIcons?.iconQueryPagination,quote:()=>dragBlockIcons?.iconQuote,receipt:()=>dragBlockIcons?.iconReceipt,redo:()=>dragBlockIcons?.iconRedo,removeBug:()=>dragBlockIcons?.iconRemoveBug,removeSubmenu:()=>dragBlockIcons?.iconRemoveSubmenu,replace:()=>dragBlockIcons?.iconReplace,reset:()=>dragBlockIcons?.iconReset,resizeCornerNE:()=>dragBlockIcons?.iconResizeCornerNE,reusableBlock:()=>dragBlockIcons?.iconReusableBlock,rotateLeft:()=>dragBlockIcons?.iconRotateLeft,rotateRight:()=>dragBlockIcons?.iconRotateRight,row:()=>dragBlockIcons?.iconRow,rss:()=>dragBlockIcons?.iconRss,search:()=>dragBlockIcons?.iconSearch,seen:()=>dragBlockIcons?.iconSeen,separator:()=>dragBlockIcons?.iconSeparator,settings:()=>dragBlockIcons?.iconSettings,shadow:()=>dragBlockIcons?.iconShadow,share:()=>dragBlockIcons?.iconShare,shield:()=>dragBlockIcons?.iconShield,shipping:()=>dragBlockIcons?.iconShipping,shortcode:()=>dragBlockIcons?.iconShortcode,shuffle:()=>dragBlockIcons?.iconShuffle,sidebar:()=>dragBlockIcons?.iconSidebar,sidesAll:()=>dragBlockIcons?.iconSidesAll,sidesAxial:()=>dragBlockIcons?.iconSidesAxial,sidesBottom:()=>dragBlockIcons?.iconSidesBottom,sidesHorizontal:()=>dragBlockIcons?.iconSidesHorizontal,sidesLeft:()=>dragBlockIcons?.iconSidesLeft,sidesRight:()=>dragBlockIcons?.iconSidesRight,sidesTop:()=>dragBlockIcons?.iconSidesTop,sidesVertical:()=>dragBlockIcons?.iconSidesVertical,siteLogo:()=>dragBlockIcons?.iconSiteLogo,stack:()=>dragBlockIcons?.iconStack,starEmpty:()=>dragBlockIcons?.iconStarEmpty,starFilled:()=>dragBlockIcons?.iconStarFilled,starHalf:()=>dragBlockIcons?.iconStarHalf,store:()=>dragBlockIcons?.iconStore,stretchFullWidth:()=>dragBlockIcons?.iconStretchFullWidth,stretchWide:()=>dragBlockIcons?.iconStretchWide,es:()=>dragBlockIcons?.styles,subscript:()=>dragBlockIcons?.iconSubscript,superscript:()=>dragBlockIcons?.iconSuperscript,swatch:()=>dragBlockIcons?.iconSwatch,symbolFilled:()=>dragBlockIcons?.iconSymbolFilled,symbol:()=>dragBlockIcons?.iconSymbol,tableColumnAfter:()=>dragBlockIcons?.iconTableColumnAfter,tableColumnBefore:()=>dragBlockIcons?.iconTableColumnBefore,tableColumnDelete:()=>dragBlockIcons?.iconTableColumnDelete,tableRowAfter:()=>dragBlockIcons?.iconTableRowAfter,tableRowBefore:()=>dragBlockIcons?.iconTableRowBefore,tableRowDelete:()=>dragBlockIcons?.iconTableRowDelete,table:()=>dragBlockIcons?.iconTable,tablet:()=>dragBlockIcons?.iconTablet,tag:()=>dragBlockIcons?.iconTag,textColor:()=>dragBlockIcons?.iconTextColor,textHorizontal:()=>dragBlockIcons?.iconTextHorizontal,textVertical:()=>dragBlockIcons?.iconTextVertical,tip:()=>dragBlockIcons?.iconTip,title:()=>dragBlockIcons?.iconTitle,tool:()=>dragBlockIcons?.iconTool,trash:()=>dragBlockIcons?.iconTrash,trendingDown:()=>dragBlockIcons?.iconTrendingDown,trendingUp:()=>dragBlockIcons?.iconTrendingUp,typography:()=>dragBlockIcons?.iconTypography,undo:()=>dragBlockIcons?.iconUndo,ungroup:()=>dragBlockIcons?.iconUngroup,unlock:()=>dragBlockIcons?.iconUnlock,unseen:()=>dragBlockIcons?.iconUnseen,update:()=>dragBlockIcons?.iconUpdate,upload:()=>dragBlockIcons?.iconUpload,verse:()=>dragBlockIcons?.iconVerse,video:()=>dragBlockIcons?.iconVideo,warning:()=>dragBlockIcons?.iconWarning,widget:()=>dragBlockIcons?.iconWidget,wordpress:()=>dragBlockIcons?.iconWordpress};var d=window.wp.blocks;function g(e){const{clientId:o}=e,t=(0,i.select)("core/block-editor").getBlockParents(o),l=t.length?t.at(-1):"",a=t.length>1?t.at(-2):"",g=(0,i.select)("core/block-editor").getBlockOrder(o),u=g.length?g[0]:"",k=(e,o="",t=!1)=>{if(!e)return null;const l=(0,i.select)("core/block-editor").getBlock(e);if(!l)return null;let a="",r="",s="";l?.attributes?.className&&(r="."+l.attributes.className.split(" ").join(".")),l?.attributes?.dragBlockTagName&&(s=l.attributes.dragBlockTagName),a=l.name,a.includes("/")&&(a=a.split("/")[1]),a=a.split("-").map((e=>(0,c.capitalize)(e))).join(" "),t&&(s||r)&&(s||r.replace(".","")!==a.toLowerCase()||(r=""),a+=(s?" - ":"")+s+r);let g=null;if(t){let e=(0,d.getBlockType)(l.name);e&&e.icon&&e.icon.src&&(g=(0,c.isString)(e.icon.src)?(0,n.createElement)("span",{class:`icon dashicon dashicons dashicons-${e.icon.src}`}):(0,n.createElement)("span",{className:"icon"},e.icon.src))}return(0,n.createElement)("a",{title:t||!s&&!r?o:s+r,className:"item"+(t?" current":""),onClick:()=>{t||(0,i.dispatch)("core/block-editor").selectBlock(e)}},g,(0,n.createElement)("span",{className:"label"},a))};let m=k(l,(0,r.__)("Parent block","dragblock")),p=k(a,(0,r.__)("Parent block","dragblock")),b=k(u,(0,r.__)("Child block","dragblock")),B=k(o,(0,r.__)("Current Block","dragblock"),!0);return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"dragblock-block-toolbar-navigator"},p,!!p&&(0,n.createElement)("span",{className:"separator"},s.chevronRight()),m,!!m&&(0,n.createElement)("span",{className:"separator"},s.chevronRight()),B,!!b&&(0,n.createElement)("span",{className:"separator"},s.chevronRight()),b))}function u(e,o){return e=e.toLowerCase().replace(/[/\-]/g,"").split(/\s+/).filter((e=>!!e.trim())).join(""),(o=o.toLowerCase().replace(/[/\-]/g," ").split(/\s+/).filter((e=>!!e.trim()))).every((o=>e.includes(o)))}(0,r.__)("Href","dragblock"),(0,r.__)("Target","dragblock"),(0,r.__)("default","dragblock"),(0,r.__)("New Tab","dragblock"),(0,r.__)("Parent Tab","dragblock"),(0,r.__)("Same Tab","dragblock"),(0,r.__)("Out of Iframe","dragblock"),(0,r.__)("Rel","dragblock"),(0,r.__)("Tab Index","dragblock"),(0,r.__)("Src","dragblock"),(0,r.__)("Alt","dragblock"),(0,r.__)("Name","dragblock"),(0,r.__)("Placeholder","dragblock"),(0,r.__)("Title","dragblock"),(0,r.__)("Type","dragblock"),(0,r.__)("Value","dragblock"),(0,r.__)("Disabled","dragblock"),(0,r.__)("Required","dragblock"),(0,r.__)("Selected","dragblock"),(0,r.__)("Action","dragblock"),(0,r.__)("Method","dragblock"),(0,r.__)("For","dragblock"),(0,r.__)("Sizes","dragblock"),(0,r.__)("Loading","dragblock"),(0,r.__)("Loading immediately or wait viewport","dragblock"),(0,r.__)("Default","dragblock"),(0,r.__)("Lazy","dragblock"),(0,r.__)("Eager","dragblock");wp.hooks.addFilter("blocks.registerBlockType","dragblock/attributes-register",(function(e,o){return e=Object.assign({},e,{attributes:Object.assign({},e.attributes,{dragBlockClientId:{type:"string"},anchor:{type:"string",source:"attribute",default:"",attribute:"id",selector:"*"},className:{type:"string",default:""},dragBlockAttrs:{type:"array",default:""}})}),-1!==o.indexOf("dragblock")&&(e=Object.assign({},e,{attributes:Object.assign({},e.attributes,{}),supports:Object.assign({},e.supports,{anchor:!0})})),e}));var k=window.wp.components;function m(e){const{className:o,title:t,text:l,popOverTitle:a,popOverContent:r,popOverClassName:c,noPadding:i,position:s,closeOnMouseLeave:d}=e,[g,u]=(0,n.useState)(!1),[m,p]=(0,n.useState)(null),[b,B]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useRef)(null),_=()=>{u(!1)};(0,n.useEffect)((()=>(document.addEventListener("mousedown",v),document.addEventListener("mouseup",I),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("mouseup",I)})),[]);const v=e=>{f.current&&f.current.contains(e.target)||h.current&&h.current.contains(e.target)||e.target.classList.contains("dragblock-toolbar-popover")||null!==e.target.closest(".dragblock-toolbar-popover")?B(!0):_()},I=()=>{B(!1)};return(0,n.createElement)("div",{ref:f,className:"dragblock-toolbar-button-wrapper",onMouseEnter:()=>{m&&(clearTimeout(m),p(null))}},(0,n.createElement)("a",{className:"dragblock-toolbar-button"+(o?" "+o:""),title:t||"",onClick:()=>{u(!g)}},l),!!g&&!!r&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(k.Popover,{focusOnMount:!1,ref:h,className:"dragblock-toolbar-popover"+(i?" no-padding":"")+(c?" "+c:""),position:s||"bottom right",onMouseLeave:()=>{d&&p(setTimeout((function(){p(null),b||_()}),300))}},!(!a&&!t)&&(0,n.createElement)("h3",{className:"popover-title"},a||t),(0,n.createElement)("div",{className:"popover-content"},r({open:()=>{m&&(clearTimeout(m),p(null)),u(!0)},close:_,closeTimer:m,setCloseTimer:p,ref:h})))))}function p(e){const{onChange:o,value:t}=e;return(0,n.createElement)("div",{className:"dragblock-html-tag-picker"},[["h1","h2","h3","h4","h5","h6"],["p","ul","li","div","nav","pre"],["span","label","button","header","footer","main"],["aside","legend","section","article","fieldset","blockquote"]].map(((e,l)=>(0,n.createElement)("div",{key:l,className:"line"},e.map(((e,l)=>(0,n.createElement)("a",{className:"text"+(t===e?" active":""),key:l,onClick:()=>{o(e)}},e)))))))}function b(e){const{attributes:o,setAttributes:t,name:l}=e;if(function(e,o=!0){const{clientId:t,isSelected:n,isMultiSelected:l,name:a,attributes:r}=e,{dragBlockRenderability:c}=r;return!n||l||["core/block"].includes(a)||o&&function(e){if(e&&e.length)for(let o of e)if(!o.disabled&&"render"===o.slug&&"never"===o.value)return!0;return!1}(c)}(e)||"dragblock/wrapper"!==l&&"dragblock/text"!==l)return null;let{dragBlockTagName:a,dragBlockAttrs:c}=o,i=c?((e,o)=>{let t=((e,o)=>{if(e)for(let[t,n]of e.entries())if(n.slug===o&&!n.disabled)return t;return-1})(e,o);return-1===t?null:e[t].value})(c,"href"):"";return a||(a="dragblock/text"===l?i?"a":"span":"div"),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(m,{popOverClassName:"dragblock-editor-toolbar-popover",className:"text-icon tag-selector",text:a.toUpperCase(),title:(0,r.__)("Tag Name","dragBlock"),popOverContent:e=>(0,n.createElement)(p,{value:a,onChange:e=>{t({dragBlockTagName:e})}})}))}function B(e,o,t="",n=""){if(!e||!e.length)return-1;for(let l=0;l<e.length;l++){let a=e[l];if(a.slug===o&&!a.disabled&&!((t||a.devices)&&t!==a.devices||(n||a.selectors)&&n!==a.selectors))return l}return-1}const h=(e,o,t="",n="")=>{let l=B(e,o,t,n);return-1===l?"":(0,c.isString)(e[l].value)?e[l].value.trim():e[l].value},f=(e,o,t="",n="")=>{let l=B(e,o,t,n);return l>-1&&e.splice(l,1),e},_=(e,o,t,n="",l="")=>{let a=B(e,o,n,l);if(e||(e=[]),(0,c.isString)(t)&&(t=t.trim()),""!==t){if(-1===a){let a={slug:o,value:t};return n&&(a.devices=n),l&&(a.selectors=l),e.unshift(a),e}return e[a].value=t,e}return-1!==a?(e.splice(a,1),e):e};var v=t(4184),I=t.n(v);const C={px:{min:0,default:0,max:3e3,step:1},"%":{min:0,default:0,max:100,step:1},em:{min:0,default:0,max:50,step:.1},rem:{min:0,default:0,max:50,step:.1},vw:{min:0,default:0,max:100,step:1},vh:{min:0,default:0,max:100,step:1}},y={deg:{min:0,default:0,max:360,step:1}},E="var(--wp--style--global--content-size)",x="var(--wp--style--global--wide-size)",N={"":(0,r.__)("Default","dragblock"),[E]:"Content",[x]:"Wide","100%":"100%",auto:"Auto","fit-content":"Huge"},S={"":(0,r.__)("Default","dragblock"),[E]:"Content",[x]:"Wide","100%":"100%",0:"None"},w={"":(0,r.__)("Default","dragblock"),"8px":"XXS","11px":"XS","13px":"S","20px":"M","36px":"L","42px":"XL","60px":"XXL","96px":"XXL"};function L({value:e,onChange:o,placeholder:t,className:l,units:r,presets:i,forceUnit:s,before:d,after:g}){const u=(0,a.useSetting)("layout.contentSize"),m=(0,a.useSetting)("layout.wideSize");function p(e){return e===u?e=E:e===m&&(e=x),e}if(null===(e=function(e){return e===E?e=u:e===x&&(e=m),e}(e))&&(e=""),i&&(0,c.isString)(i))switch(i){case"width":i=N;break;case"max-width":i=S;break;case"font-size":i=w;break;default:i=null}return r||(r=C),s&&r[s]&&(r={[s]:r[s]}),r=Object.entries(r).map((([e,o])=>(o.label=e,o.value=e,o))),(0,n.createElement)("div",{className:"dragblock-dimension-input"+(l?" "+l:"")+(s||r.length<=1?" force-unit":"")},(0,n.createElement)("div",{className:"db-input-wrapper"},d,(0,n.createElement)(k.__experimentalUnitControl,{value:e,onChange:o,placeholder:t,units:r}),g),!!i&&(0,n.createElement)("div",{className:"presets"},Object.entries(i).map((([t,l],a)=>(0,n.createElement)("a",{key:a,className:"item"+(t===p(e)?" active":""),onClick:()=>{o(t)}},t?l:"—")))))}function D({value:e,onChange:o,className:t,control:l,placeholder:a,placeholders:r,layout:c,separator:i}){if(c=c&&["stack","row","corner","side"].includes(c)?c:"stack",i=i||" ",(e=e?e.trim():"")&&e.includes(i)){let o=e.split(i);o.every((e=>e===o[0]))&&(e=o[0])}let d=new Array(r.length).fill(null),g=e.split(i).map(((e,o)=>{d[o]=e})).length;if(g<d.length)for(let e=g;e<d.length;e++)d[e]=d[g-1];const[u,k]=(0,n.useState)(!e.includes(i));let m=null;return m=u?(0,n.createElement)("div",{className:"controls"},(0,n.createElement)("a",{className:"toggle",onClick:()=>{k(!1)}},s.linkOff()),(0,n.createElement)("div",{className:"control"},l({placeholder:a,value:e,onChange:o}))):(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{className:"controls"},r.map(((e,t)=>(0,n.createElement)("div",{key:t,className:"control control-"+t+(0===t?" first":"")+(t===r.length-1?" last":"")},(0,n.createElement)("div",{className:"connector"}),l({placeholder:e,value:d[t],onChange:e=>{((e,t)=>{let n=0;isNaN(parseFloat(e))&&!e.startsWith("-")&&(n="none");for(let e=0;e<d.length;e++)e!==t&&""===d[e]&&(d[e]=n);d[t]=e?e.trim():"0",0!==d.filter((e=>!!e&&"0"!==e&&"none"!==e)).length?o(d.join(i)):o("")})(e,t)}}))))),(0,n.createElement)("a",{className:"toggle",onClick:()=>{k(!0)}},s.link())),(0,n.createElement)("div",{className:"dragblock-connected-controls"+(c?" "+c:"")+(u?" linked":" unlinked")+(t?" "+t:"")},m)}function R({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:l,placeholder:e,placeholders:[(0,r.__)("Row","dragblock"),(0,r.__)("Column","dragblock")],control:e=>(0,n.createElement)(L,{...e})})}function O({placeholder:e,value:o,onChange:t}){const l="auto"===o;return(0,n.createElement)("div",{class:"dragblock-margin-single-control"+(l?" auto":"")},(0,n.createElement)(L,{placeholder:e,value:o,onChange:t,units:{px:{min:-1e3},"%":{min:-100},em:{min:-50},rem:{min:-50},vw:{min:-100},vh:{min:-100}}}),(0,n.createElement)("a",{className:"auto",onClick:()=>{t(l?"":"auto")},title:"Auto"},l?"Auto":"A"))}function T({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:"dragblock-margin-control"+(l?" "+l:""),layout:"side",placeholder:e,placeholders:[(0,r.__)("Top","dragblock"),(0,r.__)("Right","dragblock"),(0,r.__)("Bottom","dragblock"),(0,r.__)("Left","dragblock")],control:({placeholder:e,value:o,onChange:t})=>(0,n.createElement)(O,{placeholder:e,value:o,onChange:t})})}function A({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:"dragblock-padding-control"+(l?" "+l:""),layout:"side",placeholder:e,placeholders:[(0,r.__)("Top","dragblock"),(0,r.__)("Right","dragblock"),(0,r.__)("Bottom","dragblock"),(0,r.__)("Left","dragblock")],control:({placeholder:e,value:o,onChange:t})=>(0,n.createElement)(L,{placeholder:e,value:o,onChange:t})})}const F={display:{"":{text:(0,r.__)("Default","dragblock"),icon:s.layoutBlockBlueBoxO()},flex:{text:(0,r.__)("Flex Box","dragblock"),icon:s.layoutFlexBlueBoxO()},grid:{text:(0,r.__)("Grid Box","dragblock"),icon:s.layoutGridBlueBoxO()}},"text-align":{"":{text:(0,r.__)("Left","dragblock"),icon:s.alignLeft()},center:{text:(0,r.__)("Center","dragblock"),icon:s.alignCenter()},right:{text:(0,r.__)("Right","dragblock"),icon:s.alignRight()},justify:{text:(0,r.__)("Justify","dragblock"),icon:s.alignJustify()}},"flex-direction":{"":{text:(0,r.__)("Row - Horizontal","dragblock"),icon:s.arrowRight()},column:{text:(0,r.__)("Column - Vertical","dragblock"),icon:s.arrowDown()},"row-reverse":{text:(0,r.__)("Row - Reverse","dragblock"),icon:s.arrowLeft()},"column-reverse":{text:(0,r.__)("Column - Reverse","dragblock"),icon:s.arrowUp()}},"justify-content":{"":{text:(0,r.__)("Start - Left","dragblock"),icon:s.justifyContentStart()},center:{text:(0,r.__)("Center - Middle","dragblock"),icon:s.justifyContentCenter()},"space-between":{text:(0,r.__)("Space Between","dragblock"),icon:s.justifyContentSpaceBetween()},end:{text:(0,r.__)("End - Right","dragblock"),icon:s.justifyContentEnd()},"space-evenly":{text:(0,r.__)("Space Evenly","dragblock"),icon:s.justifyContentSpaceEvenly()},stretch:{text:(0,r.__)("Stretch","dragblock"),icon:s.justifyContentStretch()}},"align-items":{"":{text:(0,r.__)("Start - Top","dragblock"),icon:s.alginItemsStart()},center:{text:(0,r.__)("Center - Middle","dragblock"),icon:s.alignItemsCenter()},end:{text:(0,r.__)("End - Bottom","dragblock"),icon:s.alignItemsEnd()},stretch:{text:(0,r.__)("Stretch","dragblock"),icon:s.alignItemsStretch()}},"flex-wrap":{"":{text:(0,r.__)("No Wrap","dragblock"),icon:s.flexWrapNoWrap()},wrap:{text:(0,r.__)("Wrap","dragblock"),icon:s.flexWrapWrap()},"wrap-reverse":{text:(0,r.__)("Wrap Reverse","dragblock"),icon:s.flexWrapWrapReverse()}},"text-transform":{"":{text:(0,r.__)("Default","dragblock"),icon:s.lineSolid()},uppercase:{text:(0,r.__)("Uppercase","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon"},"AB")},lowercase:{text:(0,r.__)("Lowercase","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon"},"ab")},capitalize:{text:(0,r.__)("Capitalize","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon"},"Ab")}},"font-style":{"":{text:(0,r.__)("Default","dragblock"),icon:s.lineSolid()},italic:{text:(0,r.__)("Italic","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon",style:{fontStyle:"italic"}},(0,r.__)("Italic","dragblock"))},normal:{text:(0,r.__)("Normal","dragblock"),icon:(0,n.createElement)("span",{className:"text-icon",style:{fontStyle:"normal"}},(0,r.__)("Normal","dragblock"))}},"text-decoration-line":{"":{text:(0,r.__)("Default","dragblock"),icon:s.lineSolid()},underline:{text:(0,r.__)("Underline","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline"}},"U")},"line-through":{text:(0,r.__)("Line Through","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"line-through"}},"S")},overline:{text:(0,r.__)("Overline","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"overline"}},"O")},none:{text:(0,r.__)("None","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon"},"X")}},"text-decoration-style":{"":{text:(0,r.__)("Default","dragblock"),icon:s.lineSolid()},solid:{text:(0,r.__)("Solid","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"solid"}},(0,r.__)("Solid","dragblock"))},dashed:{text:(0,r.__)("Dashed","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"dashed"}},(0,r.__)("Dashed","dragblock"))},dotted:{text:(0,r.__)("Dotted","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"dotted"}},(0,r.__)("Dotted","dragblock"))},double:{text:(0,r.__)("Double","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"double"}},(0,r.__)("Double","dragblock"))},wavy:{text:(0,r.__)("Wavy","dragblock"),icon:(0,n.createElement)("span",{class:"text-icon",style:{textDecorationLine:"underline",textDecorationStyle:"wavy"}},(0,r.__)("Wavy","dragblock"))}},devices:{"":{text:(0,r.__)("Desktop/Default","dragblock"),icon:s.desktop()},t:{text:(0,r.__)("Tablet","dragblock"),icon:s.tablet()},m:{text:(0,r.__)("Mobile","dragblock"),icon:s.mobile()}}};function P(e,o){return F[e]&&F[e][o]&&F[e][o].icon?F[e][o].icon:null}function j(e){let{options:o,value:t,onChange:l,className:a,vertical:r,multiSelect:i}=e;if(!o)return null;let s="";if((0,c.isString)(o)){if(s=o,!F[s])return null;o=F[s]}const d=new Set((t||"").trim().split(" "));let g=Object.keys(o);""===g.at(-1)&&(g.pop(),g.unshift(""));const u=g.map(((e,a)=>{const{icon:c,text:s}=o[e],g=(0,n.createElement)(n.Fragment,null,!!c&&(0,n.createElement)("span",{className:"icon"},c),r&&s&&(0,n.createElement)("span",{className:"text"},s)),u=s&&!r?(0,n.createElement)(k.Tooltip,{text:s,position:"bottom",delay:0},g):g;return(0,n.createElement)("a",{key:a,className:I()("option",{active:d.has(e)}),title:s||"",onClick:o=>{if(i&&(o.ctrlKey||o.metaKey)&&""!==e&&"none"!==e&&t&&"none"!==t)d.has(e)?d.delete(e):d.add(e),l(Array.from(d).join(" "));else{if(e===(t||""))return;l(e)}}},u)}));return(0,n.createElement)("div",{className:"dragblock-options "+(r?"vertical":"horizontal")+(a?" "+a:"")+(s?" "+s:"")},u)}function W(e){let{props:o,title:t,listName:l,devices:a,tab:i,slug:s,content:d,onReset:g,onChange:u,value:k}=e;if(s&&o){const{attributes:e,setAttributes:t}=o;l||(l="dragBlockStyles");let r=e[l]||[];k||(k=h(r,s,a,i)),(0,c.isFunction)(u)||!1===u||(u=e=>{let o={};o[l]=(0,c.cloneDeep)(_(r,s,e,a,i)),t({...o})}),!(0,c.isFunction)(g)&&!1!==g&&k&&(g=()=>{let e={};e[l]=(0,c.cloneDeep)(f(r,s,a,i)),t({...e})}),d||(d=({value:e,onChange:o,slug:t})=>(0,n.createElement)(j,{options:t,value:e,onChange:o}))}return(0,n.createElement)("div",{className:"dragblock-editor-toolbars-section"+(s?" "+s:"")},function(e){const{title:o,onReset:t}=e;return(0,n.createElement)("h4",{className:"section-title"+(t?" has-reset":"")},o||"",!!t&&(0,n.createElement)("a",{className:"reset",onClick:t},(0,r.__)("Reset","dragblock")))}({title:t,onReset:g}),!!d&&d({value:k,onChange:u,slug:s}))}function U(e){let{title:o,text:t,className:l,noPadding:a,popOverContent:i,popOverClassName:s,tabs:d,isResponsive:g}=e;d&&(d.includes("")||d.unshift(""));const[u,k]=(0,n.useState)(""),[p,b]=(0,n.useState)(d?d[0]:"");let B=null;d&&(B=(0,n.createElement)("span",{className:"tabs"+(p?" selected":"")},d.map(((e,o)=>{const t=""===e?(0,r.__)("Normal","dragblock"):(0,c.capitalize)(e.replace(":",""));return(0,n.createElement)("a",{key:o,className:"tab"+(e===p?" active":""),onClick:()=>{b(e)}},t)})))),!1!==g&&(B=(0,n.createElement)(n.Fragment,null,B,(0,n.createElement)(j,{className:"devices",options:"devices",value:u,onChange:e=>{k(e)}})));let h=o||"";return B&&(h=(0,n.createElement)(n.Fragment,null,h,(0,n.createElement)("span",{className:"extra"},B))),(0,n.createElement)(m,{noPadding:a,title:o,text:t,className:"dragblock-editor-toolbars-item-button"+(l?" "+l:""),popOverClassName:"dragblock-editor-toolbars-item-popover"+(s?" "+s:""),popOverTitle:h,popOverContent:()=>i({devices:u,tab:p})})}const M="{c=",H="}";function z({value:e,colors:o}){return e&&(0,c.isString)(e)?e=e.split(" ").map((e=>{if(0!==e.indexOf("#"))return e;let t=e.substring(7).toLowerCase(),n=e.substring(0,7).toLowerCase();for(let e of o){let o=e.color.toLowerCase(),l=o.substring(0,7);if(n+t===o)return M+e.slug+H;if(n===l)return M+e.slug+"@"+H+t}return e})).join(" "):e}function G(e){if(!e)return;if(!e.startsWith("url(")||!e.endsWith(")"))return null;const o=e.match(/url\((['"]?)(.*?)\1\)/);return o?o[2]:null}function J(e,o){return e&&e.includes("block")||!e&&["dragblock/wrapper","dragblock/form"].includes(o)}function V(e,o){return e&&e.includes("flex")||!e&&["dragblock/link","dragblock/text","dragblock/icon"].includes(o)}function X(e,o){return e&&e.includes("grid")}function q(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o,c=h(a,"display");return V(c,l)||X(c)||J(c,l)?(0,n.createElement)(U,{title:(0,r.__)("Spacing","dragblock"),text:s.spacing(),popOverContent:({devices:o,tab:t})=>(0,n.createElement)(n.Fragment,null,(V(c,l)||X(c))&&(0,n.createElement)(W,{title:(0,r.__)("Gap","dragblock"),slug:"gap",props:e,devices:o,tab:t,content:({value:e,onChange:o})=>(0,n.createElement)(R,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Margin","dragblock"),slug:"margin",props:e,devices:o,tab:t,content:({value:e,onChange:o})=>(0,n.createElement)(T,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Padding","dragblock"),slug:"padding",props:e,devices:o,tab:t,content:({value:e,onChange:o})=>(0,n.createElement)(A,{value:e,onChange:o})}))}):null}function $({props:e,devices:o,tab:t}){const{attributes:l,setAttributes:a,clientId:s}=e,{dragBlockStyles:d}=l,g="grid-template-columns";let u=h(d,g,o=o||"d");u=u&&u.includes("(")?u.split("(")[1]:"",u=u.split(",")[0],u=!u||isNaN(u)?1:Number(u);const k=(0,n.createElement)(W,{title:(0,r.__)("Number Grid Columns","dragblock"),slug:"grid-template-columns",props:e,devices:o,tab:t,content:()=>(0,n.createElement)("div",{className:"grid-column-number item-selector"},Array.from({length:12}).map(((e,t)=>(0,n.createElement)("a",{key:t,className:"item"+(u===t+1?" selected":""),onClick:()=>{let e=`repeat(${t+1},1fr)`;0===t&&(e=""),a({dragBlockStyles:(0,c.cloneDeep)(_(d,g,e,o))})}},t+1))))}),[m,p]=(0,n.useState)(-1),[b,B]=(0,n.useState)(""),[f,v]=(0,n.useState)(!1),C=(0,i.select)("core/block-editor").getBlockOrder(s);let y=C.map((e=>(0,i.select)("core/block-editor").getBlock(e).attributes.dragBlockStyles||{}));const E=(e,t)=>{v(!1),B(""),(0,i.dispatch)("core/block-editor").updateBlockAttributes(C[e],{dragBlockStyles:(0,c.cloneDeep)(_(y[e],"grid-area",t,o))})},x=(0,n.createElement)("div",{className:"item-selector"},C.map(((e,o)=>(0,n.createElement)("a",{key:o,className:I()("item",{selected:o===m}),onClick:()=>{p(o)}},o+1))),m>-1&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("a",{className:"clear-single item",onClick:()=>{E(m,""),p(m>-1?-1:m-1)}},(0,r.__)("Resest ","dragblock")+(m+1))),(0,n.createElement)("a",{className:"clear-all item",onClick:()=>{C.map(((e,o)=>{E(o,"")})),p(m>-1?-1:m-1)}},(0,r.__)("Resest All","dragblock"))),N=(0,n.createElement)("div",{className:"canvas"},Array.from({length:5}).map(((e,o)=>(0,n.createElement)("div",{key:o,className:"row"},Array.from({length:12}).map(((e,o)=>(0,n.createElement)("div",{key:o,className:"cell"+(o+1>u?" out":"")}))))))),S=(0,n.createElement)("div",{className:"display"},y.map(((e,t)=>{let l=h(e,"grid-area",o);return f&&t===m&&(l=b),(0,n.createElement)("a",{key:t,style:{gridArea:l},className:I()("item",{active:l&&"0/0/0/0"!==l,selected:t===m})},t+1)}))),w=(0,n.createElement)("div",{className:"painter"},Array.from({length:5}).map(((e,o)=>(0,n.createElement)("div",{key:o,className:"row"},Array.from({length:u}).map(((e,t)=>(0,n.createElement)("a",{key:t,className:"cell",onMouseDown:()=>{((e,o)=>{-1!==m&&(v(!0),B([e+1,o+1,e+2,o+2].join("/")))})(o,t)},onMouseEnter:()=>{((e,o)=>{if(!f)return;let[t,n,l,a]=(e=>{if(!e)return[0,0,0,0];let o=e.split("/");if(4===o.length){for(let e of o)if(isNaN(e))return[0,0,0,0];return o.map((e=>parseInt(e)))}return[0,0,0,0]})(b),[r,c,i,s]=[e+1,o+1,e+2,o+2];t<=r&&i<=l&&n<=c&&s<=a?(t<r&&(t=r),n<c&&(n=c),l>i&&(l=i),a>s&&(a=s)):(t>r&&(t=r),n>c&&(n=c),l<i&&(l=i),a<s&&(a=s)),B([t,n,l,a].join("/"))})(o,t)},onMouseUp:()=>{E(m,b)}}))))))),L=(0,n.createElement)(W,{title:(0,r.__)("Grid Template","dragblock"),content:()=>(0,n.createElement)("div",{className:"grid-template"},x,(0,n.createElement)("div",{className:"workspace"},N,S,w))}),D=e=>{if(isNaN(e.key))return;let o=Number(e.key)-1;o>=C.length&&(o=C.length-1),p(o)};return(0,n.useEffect)((()=>(document.addEventListener("keydown",D),()=>{document.removeEventListener("keydown",D)})),[]),(0,n.createElement)("div",{class:"grid-layout"},k,u>1&&!!C.length&&L)}function K(e){const{attributes:o,name:t}=e,{dragBlockStyles:l}=o,a=h(l,"display");return V(a,t)||X(a)||J(a,t)?(0,n.createElement)(U,{title:(0,r.__)("Layout","dragblock"),text:s.layout(),popOverContent:({devices:o,tab:l})=>(0,n.createElement)(n.Fragment,null,J(a,t)&&(0,n.createElement)(W,{title:(0,r.__)("Text Align","dragblock"),slug:"text-align",props:e,devices:o,tab:l}),V(a,t)&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(W,{title:(0,r.__)("Justify Content","dragblock"),slug:"justify-content",props:e,devices:o,tab:l}),(0,n.createElement)(W,{title:(0,r.__)("Align Items","dragblock"),slug:"align-items",props:e,devices:o,tab:l}),(0,n.createElement)(W,{title:(0,r.__)("Flex Direction","dragblock"),slug:"flex-direction",props:e,devices:o,tab:l})),X(a)&&(0,n.createElement)($,{props:e,devices:o,tab:l}))}):null}function Q(e){const{attributes:o,name:t}=e,{dragBlockStyles:l}=o,a=h(l,"display");return V(a,t)||X(a)||J(a,t)?(0,n.createElement)(U,{title:(0,r.__)("Sizing","dragblock"),text:s.sizing(),tabs:["max"],popOverContent:({devices:o,tab:t})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(W,{title:t?(0,r.__)("Max Width","dragblock"):(0,r.__)("Width","dragblock"),slug:t?"max-width":"width",props:e,devices:o,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{value:e,onChange:o,presets:t})}),(0,n.createElement)(W,{title:t?(0,r.__)("Max Height","dragblock"):(0,r.__)("Height","dragblock"),slug:t?"max-height":"height",props:e,devices:o,content:({value:e,onChange:o})=>(0,n.createElement)(L,{value:e,onChange:o})}))}):null}function Y({placeholder:e,value:o,onChange:t}){const l=(0,a.useSetting)("color.palette.theme").concat((0,a.useSetting)("color.palette.custom")||[]),r=(0,n.useRef)(null);return o=function(e,o){return e&&(0,c.isString)(e)?e.split(" ").map((e=>{if(0!==e.indexOf(M))return e;if((e=e.split(H)).length<=2){let t=2===e.length?e[1]:"",n=e[0].substring(M.length);for(let e of o){if(n===e.slug)return e.color;if(n===e.slug+"@")return e.color.substring(0,7)+t}}return e.join(H)})).join(" "):e}(o,l),(0,n.createElement)("div",{className:"dragblock-color-picker"},(0,n.createElement)("div",{className:"db-input-wrapper"},(0,n.createElement)("input",{ref:r,value:o,placeholder:e,onChange:e=>{t(z({value:e.target.value,colors:l}))}}),(0,n.createElement)(m,{popOverClassName:"dragblock-color-picker-popover",closeOnMouseLeave:!0,text:(0,n.createElement)("span",{className:"color-previewer "+(o?"active":"none"),style:{backgroundColor:o||"transparent"}}),popOverContent:e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(k.ColorPicker,{color:o,enableAlpha:!0,defaultValue:"#000",onChange:e=>{t(z({value:e,colors:l}))}}),(0,n.createElement)("div",{className:"color-palette"},Object.values(l).map(((e,a)=>(0,n.createElement)("a",{key:a,className:"color"+(e.color===o?" selected":""),title:e.name,style:{backgroundColor:e.color},onClick:()=>{t(z({value:e.color,colors:l}))}})))))})))}const Z={"":(0,r.__)("Default","dragblock"),solid:"Solid",dashed:"Dashed",dotted:"Dotted",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset",none:"None",hidden:"Hidden",inherit:"Inherit",initial:"Initial",revert:"Revert",auto:"Auto"};function ee({value:e,onChange:o}){return(0,n.createElement)(m,{closeOnMouseLeave:!0,className:"dragblock-line-style-picker db-input-wrapper border"+(e?" "+e:""),text:(0,n.createElement)("span",{className:"previewer",style:["solid","dashed","dotted","double","groove","ridge","inset","outset"].includes(e)?{borderStyle:e}:{}},e||(0,r.__)("Style","dragblock")),popOverContent:t=>(0,n.createElement)("div",{className:"dragblock-line-style-picker-items border"},Object.entries(Z).map((([t,l],a)=>(0,n.createElement)("a",{key:a,title:l,className:"item "+(t||"default")+(t===e?" selected":""),style:{borderStyle:t},onClick:()=>{o(t)}},l))))})}function oe({value:e,onChange:o}){const t=["","",""];let[l,a,c]=t;return(e?e.trim().split(" "):t).map((e=>{if(Z[e])return void(a=e);let o=parseFloat(e);if(!isNaN(o)){const t=e.replace(o,"");if(C[t])return void(l=e)}c=e})),(0,n.createElement)("div",{class:"dragblock-border-single-control dragblock-dimension-single-complex-control"},(0,n.createElement)(L,{placeholder:(0,r.__)("Width"),value:l,onChange:function(e){o([e,a,c].filter((e=>!!e)).join(" "))},forceUnit:"px"}),(0,n.createElement)(ee,{value:a,onChange:function(e){o([l,e,c].filter((e=>!!e)).join(" "))}}),(0,n.createElement)(Y,{placeholder:(0,r.__)("Color"),value:c,onChange:function(e){o([l,a,e].filter((e=>!!e)).join(" "))}}))}function te({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:"dragblock-border-control"+(l?" "+l:""),layout:"side",separator:",",placeholder:e,placeholders:[(0,r.__)("Top","dragblock"),(0,r.__)("Right","dragblock"),(0,r.__)("Bottom","dragblock"),(0,r.__)("Left","dragblock")],control:({placeholder:e,value:o,onChange:t})=>(0,n.createElement)(oe,{placeholder:e,value:o,onChange:t})})}function ne({placeholder:e,value:o,onChange:t,className:l}){return(0,n.createElement)(D,{value:o,onChange:t,className:"dragblock-border-radius-control"+(l?" "+l:""),layout:"corner",placeholder:e,placeholders:[(0,r.__)("Top Left","dragblock"),(0,r.__)("Top Right","dragblock"),(0,r.__)("Bottom Right","dragblock"),(0,r.__)("Bottom Left","dragblock")],control:({placeholder:e,value:o,onChange:t})=>(0,n.createElement)(L,{placeholder:e,value:o,onChange:t})})}function le(e){const{attributes:o,setAttributes:t}=e,{dragBlockStyles:l}=o;return(0,n.createElement)(U,{title:(0,r.__)("Borders","dragblock"),text:s.container(),tabs:[":hover"],popOverContent:({devices:o,tab:a})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(W,{title:(0,r.__)("Border","dragblock"),slug:"border",props:e,devices:o,tab:a,content:({slug:e})=>{let r="";const i=B(l,e,o,a),s=B(l,"border-top",o,a),d=B(l,"border-right",o,a),g=B(l,"border-bottom",o,a),u=B(l,"border-left",o,a),k=-1===s&&-1===d&&-1===g&&-1===u||i>-1&&i<s&&i<d&&i<g&&i<u;return r=k?h(l,e,o,a):[h(l,"border-top",o,a),h(l,"border-right",o,a),h(l,"border-bottom",o,a),h(l,"border-left",o,a)].join(","),(0,n.createElement)(te,{value:r,onChange:e=>{if(e.includes(",")){const[t,n,r,c]=e.split(",");_(l,"border-top",t,o,a),_(l,"border-right",n,o,a),_(l,"border-bottom",r,o,a),_(l,"border-left",c,o,a),k&&f(l,"border",o,a)}else _(l,"border",e,o,a),k||(f(l,"border-top",o,a),f(l,"border-right",o,a),f(l,"border-bottom",o,a),f(l,"border-left",o,a));t({dragBlockStyles:(0,c.cloneDeep)(l)})}})}}),(0,n.createElement)(W,{title:(0,r.__)("Corner Radius","dragblock"),slug:"border-radius",props:e,devices:o,tab:a,content:({value:e,onChange:o})=>(0,n.createElement)(ne,{value:e,onChange:o})}))})}const ae=[{value:"",label:(0,r.__)("Default","dragblock")},{value:"100",label:(0,r.__)("Thin","dragblock")},{value:"200",label:(0,r.__)("Extra Light","dragblock")},{value:"300",label:(0,r.__)("Light","dragblock")},{value:"400",label:(0,r.__)("Regular","dragblock")},{value:"500",label:(0,r.__)("Medium","dragblock")},{value:"600",label:(0,r.__)("Semi Bold","dragblock")},{value:"700",label:(0,r.__)("Bold","dragblock")},{value:"800",label:(0,r.__)("Extra Bold","dragblock")},{value:"900",label:(0,r.__)("Black","dragblock")}];function re({options:e,value:o,onChange:t}){if(!e)return null;let l="";if((0,c.isString)(e))switch(l=e,e){case"font-family":e=[{value:"",label:(0,r.__)("Default","dragblock")},...dragBlockEditorInit.fontName.map((e=>({value:e,label:e})))];break;case"font-weight":e=ae;break;default:return null}return(0,n.createElement)("div",{className:"dragblock-select db-input-wrapper"},(0,n.createElement)("select",{onChange:e=>{t(e.target.value)},value:o,style:"font-family"===l?{fontFamily:o}:"font-weight"===l?{fontWeight:o}:{}},e.map(((e,o)=>(0,n.createElement)("option",{key:o,value:e.value,style:"font-family"===l?{fontFamily:e.value}:"font-weight"===l?{fontWeight:e.value}:{}},e.value?e.label||e.value:"—")))))}function ce({value:e,onChange:o}){const t={textDecorationStyle:e,textDecorationLine:e?"underline":""};return(0,n.createElement)(m,{closeOnMouseLeave:!0,className:"dragblock-line-style-picker text-decoration-style"+(e?" "+e:""),text:(0,n.createElement)("span",{className:"previewer",style:t},e||(0,r.__)("Style","dragblock")),popOverContent:t=>(0,n.createElement)("div",{className:"dragblock-line-style-picker-items text-decoration-style"},Object.entries(F["text-decoration-style"]).map((([t,{text:l,icon:a}],r)=>(0,n.createElement)("a",{key:r,title:l,className:"item "+(t||"default")+(t===e?" selected":""),onClick:()=>{o(t)}},a))))})}function ie({value:e,onChange:o}){const t=["","",""];let[l,a,c,i]=t;return(e?e.trim().split(" "):t).map((e=>{if(F["text-decoration-line"][e])return void(a+=(a?" ":"")+e);if(F["text-decoration-style"][e])return void(c=e);let o=parseFloat(e);if(!isNaN(o)){const t=e.replace(o,"");if(C[t])return void(l=e)}i=e})),(0,n.createElement)("div",{class:"dragblock-text-decoration-single-control"},(0,n.createElement)(j,{value:a,options:"text-decoration-line",multiSelect:!0,onChange:function(t){o(e&&t&&"none"!==t?[t,l,c,i].filter((e=>!!e)).join(" "):t)}}),!!a&&"none"!=a&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)("br",null),(0,n.createElement)("div",{className:"dragblock-dimension-single-complex-control advanced"},(0,n.createElement)(L,{placeholder:(0,r.__)("Thick"),value:l,onChange:function(e){o([a,e,c,i].filter((e=>!!e)).join(" "))},forceUnit:"px"}),(0,n.createElement)(ce,{value:c,onChange:function(e){o([a,l,e,i].filter((e=>!!e)).join(" "))}}),(0,n.createElement)(Y,{placeholder:(0,r.__)("Color"),value:i,onChange:function(e){o([a,l,c,e].filter((e=>!!e)).join(" "))}}))))}function se(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o;if("dragblock/image"===l)return null;(0,r.__)("Normal","dragblock"),(0,r.__)("Hover","dragblock");const c={fontFamily:h(a,"font-family"),fontWeight:h(a,"font-weight"),fontStyle:h(a,"font-style"),textTransfrom:h(a,"text-transfrom"),textDecoration:h(a,"text-decoration")};return(0,n.createElement)(U,{title:(0,r.__)("Typography","dragblock"),text:(0,n.createElement)("span",{style:c},"Aa"),className:"text-icon",tabs:[":hover"],popOverContent:({devices:o,tab:t})=>(0,n.createElement)("div",{className:"dragblock-editor-toolbar-typography"},(0,n.createElement)("div",{className:"column-1"},(0,n.createElement)(W,{title:(0,r.__)("Font","dragblock"),slug:"font-family",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(re,{options:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Weight","dragblock"),slug:"font-weight",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(re,{options:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Weight","dragblock"),slug:"font-style",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(j,{options:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Case","dragblock"),slug:"text-transform",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(j,{options:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Decoration","dragblock"),slug:"text-decoration",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(ie,{value:e,onChange:o})})),(0,n.createElement)("div",{className:"column-2"},(0,n.createElement)(W,{title:(0,r.__)("Size","dragblock"),slug:"font-size",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{presets:t,value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Line Height","dragblock"),slug:"line-height",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Letter Space","dragblock"),slug:"letter-spacing",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Word Space","dragblock"),slug:"word-spacing",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(L,{value:e,onChange:o})})))})}function de(e){const{checked:o,label:t,onChange:l,children:a}=e;return(0,n.createElement)("label",{className:"dragblock-checkbox"},(0,n.createElement)("input",{type:"checkbox",checked:o,onChange:()=>{l(!o)}})," ",(0,n.createElement)("span",null,t||a))}(0,r.__)("Default","dragblock"),(0,r.__)("Default","dragblock");const ge={"[dragblock.home.url]":{label:(0,r.__)("Home URL","dragblock"),note:(0,r.__)("Home URL","dragblock"),render:e=>{}},"[dragblock.form.message.error]":{label:(0,r.__)("Form Submission Error Message","dragblock"),note:(0,r.__)("Error message after submitting form","dragblock"),placeholder:(0,r.__)("DragBlock Form Error: There is an uknown server error.","dragblock"),render:e=>{}},"[dragblock.post.title]":{label:(0,r.__)("Post Title","dragblock"),note:(0,r.__)("The parsed post's Title","dragblock"),placeholder:(0,r.__)("The DragBlock Post Title","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.title)return _DragBlockDB.post.title}},"[dragblock.post.url]":{label:(0,r.__)("Post URL","dragblock"),note:(0,r.__)("The parsed post's url","dragblock"),render:e=>{}},"[dragblock.post.image.src]":{label:(0,r.__)("Post Image Thumbnail SRC","dragblock"),note:(0,r.__)("the parsed post's image src","dragblock"),render:e=>_DragBlockDB.post&&_DragBlockDB.post.image_src?_DragBlockDB.post.image_src:""},"[dragblock.post.author.url]":{label:(0,r.__)("Post Author URL","dragblock"),note:(0,r.__)("the parsed post's author page url","dragblock"),render:e=>{}},"[dragblock.post.author.name]":{label:(0,r.__)("Post Author Name","dragblock"),note:(0,r.__)("The parsed post's author name","dragblock"),placeholder:(0,r.__)("Author Name","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.author_name)return _DragBlockDB.post.author_name}},"[dragblock.post.author.avatar.src]":{label:(0,r.__)("Post Author Avatar SRC","dragblock"),note:(0,r.__)("The parsed post's author's avatar SRC","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.author_avatar_src)return _DragBlockDB.post.author_avatar_src}},"[dragblock.post.date]":{label:(0,r.__)("Post Date Name","dragblock"),note:(0,r.__)("The parsed post's date","dragblock"),placeholder:(0,r.__)("July 01, 2086","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.date)return _DragBlockDB.post.date}},"[dragblock.post.comment.number]":{label:(0,r.__)("Post Comment Number","dragblock"),note:(0,r.__)("The parsed post's comment number","dragblock"),placeholder:"0",render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.comment_number)return _DragBlockDB.post.comment_number}},"[dragblock.post.snippet]":{label:(0,r.__)("Post Snippet","dragblock"),note:(0,r.__)("The parsed post's snippet","dragblock"),placeholder:(0,r.__)("Get the first paragraph of the post content. If the post excerpt, a custom summary of the post that author manually inputted when composing the post content, exists, use that instead","dragblock"),render:e=>{if(!_DragBlockDB.post||!_DragBlockDB.post.snippet)return;let o=_DragBlockDB.post.snippet;if(e&&e.len&&!isNaN(e.len)&&o.length>Number(e.len)){let t="",n=Number(e.len);o.split(" ").map((e=>{t.length<n?t+=(t?" ":"")+e:e.endsWith(",")||e.endsWith("!")||e.endsWith(".")||e.endsWith(":")||e.endsWith("?")||e.endsWith(";")||(t+=(t?" ":"")+e)})),o=o.substring(0,Number(e.len))}return o}},"[dragblock.post.cat.name]":{label:(0,r.__)("Post Category Name","dragblock"),placeholder:(0,r.__)("Category Name","dragblock"),render:e=>{if(_DragBlockDB.post&&_DragBlockDB.post.cat_name)return _DragBlockDB.post.cat_name}},"[dragblock.post.cat.url]":{label:(0,r.__)("Post Category URL","dragblock"),render:e=>{}},"[dragblock.post.tag.name]":{label:(0,r.__)("Post Tag Name","dragblock"),placeholder:(0,r.__)("Tag Name","dragblock"),render:e=>{}},"[dragblock.post.tag.url]":{label:(0,r.__)("Post Tag URL","dragblock"),render:e=>{}},"[dragblock.share.url.twitter]":{label:(0,r.__)("Twitter Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.facebook]":{label:(0,r.__)("Facebook Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.whatsapp]":{label:(0,r.__)("Whatsapp Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.telegram]":{label:(0,r.__)("Telegram Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.tumblr]":{label:(0,r.__)("Tumblr Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.reddit]":{label:(0,r.__)("Reddit Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.linkedin]":{label:(0,r.__)("LinkedIn Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.gmail]":{label:(0,r.__)("Gmail Share URL","dragblock"),render:e=>{}},"[dragblock.share.url.navigator]":{label:(0,r.__)("Navigator Share URL","dragblock"),render:e=>{}}};function ue({value:e,onChange:o,type:t,placeholder:l}){const i=(0,n.useRef)(null),[d,g]=(0,n.useState)(me(e,5,t)),[u,k]=(0,n.useState)(null);return(0,n.createElement)("div",{className:"dragblock-url-input "+(t||"url")},(0,n.createElement)("div",{className:"db-input-wrapper"},(0,n.createElement)("input",{placeholder:l||(0,r.__)("Input URL or keywords","dragblock"),ref:i,type:"url",value:e,onChange:e=>{o(e.target.value),(e=>{const o=me(e,5,t);if(g(o),u&&clearTimeout(u),!ke(e)||Object.keys(o).length>=5)return void k(null);let n=setTimeout((()=>{jQuery.post(dragBlockEditorInit.ajaxUrl,{action:"dragblock_url_search",search:pe(e),nonce:dragBlockEditorInit.nonce}).fail((function(e){k(null)})).done((function(e){if(k(null),!1===(e=function(e,o=function(){},t=!1){if(0!==e&&!e)return!1;let n="";if((0,c.isObject)(e)&&e.responseText&&e.statusText&&(n=e.statusText,e=e.responseText),(0,c.isString)(e)&&-1!==e.indexOf(" https://wordpress.org/documentation/article/faq-troubleshooting/"))return o(__("WordPress Server Error","sneeit-core")),!1;if(function(e){if(!(0,c.isString)(e))return!1;if(-1===e.indexOf("on line")||-1===e.indexOf(".php")||-1===e.indexOf(": "))return!1;let o=["Parse error","Warning","Notice","Fatal error"];for(let t of o)if(-1!==e.indexOf(t))return!0;return!1}(e))return o(n+" : "+(e=(e=e.split(": ")[1]).split("Stack trace:")[0])),!1;if(t)return o((0,c.isString)(e)?e:JSON.stringify(e)),!1;try{e=JSON.parse(e)}catch(t){return o("Invalid JSON: "+t+": "+e),!1}return e&&e.error?(o(e.error),!1):e}(e))||!e.search||!i||!i.current)return clearTimeout(n),void k(null);if(pe(i.current.value||"")!=pe(e.search))return clearTimeout(n),void k(null);if(Object.keys(o).length<5&&e.results)for(let t in e.results)if(t!==i.current.value&&(o[t]=e.results[t],Object.keys(o).length>=5))break;g((0,c.cloneDeep)(o)),clearTimeout(n),k(null)}))}),500);k(n)})(e.target.value)}}),!!e&&(0,n.createElement)("a",{className:"clear",onClick:()=>{o(""),g(me("",5,t)),i.current.value="",i.current.focus()}},s.close()),"src"===t&&(0,n.createElement)(a.MediaUploadCheck,null,(0,n.createElement)(a.MediaUpload,{title:l,modalClass:"dragblock-toolbar-popover media-uploader",onSelect:e=>{o(e.url)},allowedTypes:["image"],value:e,render:({open:e})=>(0,n.createElement)("a",{className:"uploader-toggle",onClick:()=>{e()}},s.upload())}))),(!!Object.keys(d).length||ke(e))&&(0,n.createElement)("div",{className:"search-results"},Object.entries(d).map((([e,t],l)=>(0,n.createElement)("a",{className:"item",key:l,title:e,onClick:()=>{o(e),i.current.focus(),g({})}},(0,n.createElement)("span",{className:"title"},t.title),(0,n.createElement)("span",{className:"type"},t.type)))),ke(e)&&0===Object.entries(d).length&&null===u&&(0,n.createElement)("span",null,(0,r.__)("No result found","dragblock"))),!!u&&(0,n.createElement)("div",{className:"loading"},s.moreHorizontal()))}function ke(e){return!!e&&!(e.length<2||e.includes("[")||e.includes("://")||e.includes("http"))}function me(e="",o,t="url"){if(!ke(e)&&e)return{};const n={};for(let e in ge)e.includes("."+t)&&(n[e]={title:ge[e].label||e,type:"shortcode"});const l={};if(ke(e)){for(let t in n)if((u(t,e)||u(n[t].title,e))&&t!==e&&(l[t]=(0,c.cloneDeep)(n[t]),Object.keys(l).length>=o))break}else for(let t in n)if(t!==e&&(l[t]=(0,c.cloneDeep)(n[t]),Object.keys(l).length>=o))break;return(0,c.cloneDeep)(l)}function pe(e){return e.toLowerCase().replace(/[/\-]/g," ").split(/\s+/).filter((e=>!!e.trim())).join(" ")}function be(e){const{href:o,target:t,rel:l,onChange:a}=e,c=new Set(l?l.split(" ").map((e=>e.trim())).filter((e=>!!e)):[]);return(0,n.createElement)("div",{className:"dragblock-link-picker"},(0,n.createElement)(ue,{value:o,onChange:e=>{a({href:e,target:t,rel:Array.from(c).join(" ")})}}),!!o&&!ke(o)&&(0,n.createElement)("div",{className:"extra"},(0,n.createElement)(de,{checked:"_blank"===t,label:(0,r.__)("Open in new window","dragblock"),onChange:e=>{e?(c.add("noreferrer"),c.add("noopener")):(c.delete("noreferrer"),c.delete("noopener")),a({href:o,target:e?"_blank":"",rel:Array.from(c).join(" ")})}}),(0,n.createElement)(de,{checked:c.has("nofollow"),label:(0,r.__)("Add no follow","dragblock"),onChange:e=>{e?c.add("nofollow"):c.delete("nofollow"),a({href:o,target:t,rel:Array.from(c).join(" ")})}})))}function Be(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockAttrs:a}=o;return"dragblock/link"!==l?null:(0,n.createElement)(U,{isResponsive:!1,title:(0,r.__)("Link","dragblock"),text:s.linkDiagonal(),noPadding:!0,popOverContent:()=>{const e=h(a,"href"),o=h(a,"target"),l=h(a,"rel");return(0,n.createElement)(be,{href:e,target:o,rel:l,onChange:e=>{_(a,"href",e.href),_(a,"rel",e.rel),_(a,"target",e.target),t({dragBlockAttrs:(0,c.cloneDeep)(a)})}})}})}function he(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockAttrs:a}=o;return"dragblock/image"!==l?null:(0,n.createElement)(U,{isResponsive:!1,title:(0,r.__)("Image SRC","dragblock"),text:s.image(),popOverContent:()=>(0,n.createElement)(ue,{type:"src",placeholder:(0,r.__)("Image SRC","dragblock"),value:h(a,"src"),onChange:e=>{t({dragBlockAttrs:(0,c.cloneDeep)(_(a,"src",e))})}})})}function fe(e){const{name:o,clientId:t}=e;return["dragblock/wrapper","dragblock/link","dragblock/form","dragblock/select"].includes(o)?(0,n.createElement)("div",{className:"dragblock-toolbar-button-wrapper"},(0,n.createElement)("div",{className:"dragblock-toolbar-button"},(0,n.createElement)(a.Inserter,{position:"bottom center",rootClientId:t,__experimentalIsQuick:!0,renderToggle:({onToggle:e})=>(0,n.createElement)("a",{title:(0,r.__)("Add a Child","dragblock"),onClick:e},s.plus()),isAppender:!0}))):null}function _e(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o;return"dragblock/image"===l?null:(0,n.createElement)(U,{title:(0,r.__)("Colors","dragblock"),text:s.colorPaletteLen(),tabs:[":hover"],popOverContent:({devices:o,tab:t})=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(W,{title:(0,r.__)("Text Color","dragblock"),slug:"color",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(Y,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Background Color","dragblock"),slug:"background-color",props:e,devices:o,tab:t,content:({value:e,onChange:o,slug:t})=>(0,n.createElement)(Y,{value:e,onChange:o})}),(0,n.createElement)(W,{title:(0,r.__)("Background Image","dragblock"),slug:"background-image",props:e,devices:o,tab:t,content:({value:e,onChange:l,slug:c})=>(0,n.createElement)(ue,{type:"src",placeholder:(0,r.__)("Background Image SRC","dragblock"),value:G(h(a,"background-image",o,t)),onChange:e=>{var o;l((o=e)?`url("${o}")`:o)}})}))})}function ve(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o;if(!["dragblock/wrapper","dragblock/link","dragblock/form"].includes(l))return null;const i="display",d=h(a,i);return(0,n.createElement)(m,{noPadding:!0,title:(0,r.__)("Display","dragblock"),text:P(i,d)||s.close(),popOverContent:e=>(0,n.createElement)(j,{options:i,value:d,onChange:e=>{t({dragBlockStyles:(0,c.cloneDeep)(_(a,i,e))})},vertical:!0})})}function Ie({value:e,onChange:o}){let t=parseFloat(e||"0");return isNaN(t)&&(t=0),(0,n.createElement)(L,{before:(0,n.createElement)("a",{style:{transform:"rotate("+t+"deg)"},className:"rotate-button db-clickable-icon",onClick:()=>{let e=t+45;e>=360&&(e%=360),o(`${e}deg`)}},s.rotateRight()),units:y,value:e,onChange:o})}function Ce({value:e,onChange:o}){let t=parseFloat(e||"0");return isNaN(t)&&(t=0),(0,n.createElement)(L,{before:(0,n.createElement)("a",{style:{transform:"rotateZ(90deg) rotateX("+(t>=180?180:0)+"deg)"},className:"rotate-x-button db-clickable-icon",onClick:()=>{let e=t+180;e>=360&&(e%=360),o(`${e}deg`)}},s.filter()),units:y,value:e,onChange:o})}function ye({value:e,onChange:o}){let t=parseFloat(e||"0");return isNaN(t)&&(t=0),(0,n.createElement)(L,{before:(0,n.createElement)("a",{style:{transform:"rotateY("+(t>=180?180:0)+"deg)"},className:"rotate-x-button db-clickable-icon",onClick:()=>{let e=t+180;e>=360&&(e%=360),o(`${e}deg`)}},s.filter()),units:y,value:e,onChange:o})}function Ee(e){const{attributes:o,setAttributes:t,name:l}=e,{dragBlockStyles:a}=o;return(0,n.createElement)(U,{title:(0,r.__)("Transform","dragblock"),text:s.es(),tabs:[":hover"],popOverContent:({devices:o,tab:l})=>{const i=function(e,o,t){const n={};for(const[l,a]of(e||[]).entries()){const{slug:e,value:r,devices:c,selectors:i,disabled:s}=a;if("transform"!==e||s)continue;if((o||c)&&o!=c)continue;if((t||i)&&t!==i)continue;if(!r.includes("(")||!r.includes(")"))continue;const d=r.split("(")[0],g=r.split("(")[1].split(")")[0];d&&(n[d]={value:g,index:l})}return n}(a,o,l),s=(e,n)=>{""!==n&&"deg"!==n||d(e);const r=(0,c.cloneDeep)(a);if(i[e])r[i[e].index].value=`${e}(${n})`;else{let t={slug:"transform",value:`${e}(${n})`};o&&(t.devices=o),l&&(t.selectors=l),o&&(t.devices=o),l&&(t.selectors=l),r.unshift(t)}t({dragBlockStyles:r})},d=e=>{if(!i[e])return;const o=(0,c.cloneDeep)(a);i[e].index>-1&&o.splice(i[e].index,1),t({dragBlockStyles:o})};return(0,n.createElement)("div",{className:"dragblock-editor-toolbar-transform"},(0,n.createElement)(W,{title:(0,r.__)("Rotate","dragblock"),onReset:!!i?.rotate?.value&&(()=>{d("rotate")}),props:e,devices:o,tab:l,content:({})=>(0,n.createElement)(Ie,{value:i?.rotate?.value,onChange:e=>{s("rotate",e)}})}),(0,n.createElement)(W,{title:(0,r.__)("Flip Horizontal","dragblock"),onReset:!!i?.rotateY?.value&&(()=>{d("rotateY")}),props:e,devices:o,tab:l,content:({})=>(0,n.createElement)(ye,{value:i?.rotateY?.value,onChange:e=>{s("rotateY",e)}})}),(0,n.createElement)(W,{title:(0,r.__)("Flip Vertical","dragblock"),onReset:!!i?.rotateX?.value&&(()=>{d("rotateX")}),props:e,devices:o,tab:l,content:({})=>(0,n.createElement)(Ce,{value:i?.rotateX?.value,onChange:e=>{s("rotateX",e)}})}))}})}function xe(e){const{attributes:o,setAttributes:t}=e;let{dragBlockRenderability:l}=o;if(!l||!l.length)return null;let a=null;for(let e of l)if(!e.disabled&&"render"===e.slug){a=e.value;break}return null===a?null:(0,n.createElement)(k.ToolbarButton,{className:"dragblock-render-toolbar-button",onClick:()=>{let e=(0,c.cloneDeep)(l);for(let o=0;o<e.length;o++){let n=e[o];if(!n.disabled&&"render"===n.slug){"never"===n.value?n.value="":n.value="never",e[o]=n,t({dragBlockRenderability:e});break}}}},"never"===a?s.eyeClosed():s.eye())}const Ne=(0,l.createHigherOrderComponent)((e=>o=>{const{isSelected:t}=o,l=(0,n.createElement)("div",{className:"dragblock-toolbar-separator"});return t?(0,n.createElement)(n.Fragment,null,(0,n.createElement)(e,{...o}),(0,n.createElement)(a.BlockControls,null,(0,n.createElement)(g,{...o}),(0,n.createElement)(b,{...o}),(0,n.createElement)(ve,{...o}),(0,n.createElement)(K,{...o}),l,(0,n.createElement)(q,{...o}),(0,n.createElement)(Q,{...o}),(0,n.createElement)(le,{...o}),l,(0,n.createElement)(se,{...o}),(0,n.createElement)(_e,{...o}),(0,n.createElement)(Ee,{...o}),l,(0,n.createElement)(Be,{...o}),(0,n.createElement)(he,{...o}),(0,n.createElement)(xe,{...o}),(0,n.createElement)(fe,{...o}),l)):(0,n.createElement)(e,{...o})}),"dragBlockEditorToolbars");wp.hooks.addFilter("editor.BlockEdit","dragblock/editor-toolbars",Ne)},4184:function(e,o){var t;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e=[],o=0;o<arguments.length;o++){var t=arguments[o];if(t){var a=typeof t;if("string"===a||"number"===a)e.push(t);else if(Array.isArray(t)){if(t.length){var r=l.apply(null,t);r&&e.push(r)}}else if("object"===a){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var c in t)n.call(t,c)&&t[c]&&e.push(c)}}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(t=function(){return l}.apply(o,[]))||(e.exports=t)}()}},t={};function n(e){var l=t[e];if(void 0!==l)return l.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.m=o,e=[],n.O=function(o,t,l,a){if(!t){var r=1/0;for(d=0;d<e.length;d++){t=e[d][0],l=e[d][1],a=e[d][2];for(var c=!0,i=0;i<t.length;i++)(!1&a||r>=a)&&Object.keys(n.O).every((function(e){return n.O[e](t[i])}))?t.splice(i--,1):(c=!1,a<r&&(r=a));if(c){e.splice(d--,1);var s=l();void 0!==s&&(o=s)}}return o}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,l,a]},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,{a:o}),o},n.d=function(e,o){for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},function(){var e={6612:0,7174:0};n.O.j=function(o){return 0===e[o]};var o=function(o,t){var l,a,r=t[0],c=t[1],i=t[2],s=0;if(r.some((function(o){return 0!==e[o]}))){for(l in c)n.o(c,l)&&(n.m[l]=c[l]);if(i)var d=i(n)}for(o&&o(t);s<r.length;s++)a=r[s],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},t=self.webpackChunkdragblock=self.webpackChunkdragblock||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))}();var l=n.O(void 0,[7174],(function(){return n(9061)}));l=n.O(l)}(); -
dragblock/trunk/build/applications/patterns/server/patterns-loader.php
r3004800 r3005080 18 18 */ 19 19 function dragblock_patterns_rest_api_init() { 20 $dragblock_pl_cache = 60 * 60 * 24; // dev-reply#511. 21 $dragblock_pl_t = DRAGBLOCK_K_PATTERN_CACHE . '--time'; 22 $dragblock_pl_k = get_transient( DRAGBLOCK_K_PATTERN_CACHE ); 23 $dragblock_pl_time = get_transient( $dragblock_pl_t ); 24 // dev-reply#515. 25 $dragblock_pl_pattern = 'https://sneeit.com/api/validation/'; 20 $dragblock_pl_pattern = 60 * 60 * 24; // dev-reply#511. 21 $dragblock_pl_duration = DRAGBLOCK_K_PATTERN_CACHE . '--time'; 22 delete_transient( $dragblock_pl_duration ); 23 $dragblock_pl_timer = get_transient( DRAGBLOCK_K_PATTERN_CACHE ); 24 $dragblock_pl_key = get_transient( $dragblock_pl_duration ); 25 // dev-reply#516. 26 $dragblock_pl_data = 'https://sneeit.com/api/validation/'; 26 27 // dev-reply#519. 27 if ( ! $dragblock_pl_ time|| DRAGBLOCK_IS_LOCAL ) {28 // dev-reply#52 2.29 $dragblock_pl_ data = wp_remote_request( $dragblock_pl_pattern, array(28 if ( ! $dragblock_pl_key || DRAGBLOCK_IS_LOCAL ) { 29 // dev-reply#524. 30 $dragblock_pl_time = wp_remote_request( $dragblock_pl_data, array( 30 31 'body' => array( 31 32 'get' => 'patterns', … … 33 34 'method' => 'POST', 34 35 ) ); 35 if ( ! is_wp_error( $dragblock_pl_ data) ) {36 $dragblock_pl_ k = json_decode( wp_remote_retrieve_body( $dragblock_pl_data), true );37 if ( ! empty( $dragblock_pl_ k['error'] ) || empty( $dragblock_pl_k['patterns'] ) ) {38 // dev-reply#53 4.39 $dragblock_pl_ k= get_transient( DRAGBLOCK_K_PATTERN_CACHE );36 if ( ! is_wp_error( $dragblock_pl_time ) ) { 37 $dragblock_pl_timer = json_decode( wp_remote_retrieve_body( $dragblock_pl_time ), true ); 38 if ( ! empty( $dragblock_pl_timer['error'] ) || empty( $dragblock_pl_timer['patterns'] ) ) { 39 // dev-reply#536. 40 $dragblock_pl_timer = get_transient( DRAGBLOCK_K_PATTERN_CACHE ); 40 41 } else { 41 set_transient( DRAGBLOCK_K_PATTERN_CACHE, $dragblock_pl_k ); 42 set_transient( $dragblock_pl_t, true, $dragblock_pl_cache ); 42 // dev-reply#541. 43 set_transient( DRAGBLOCK_K_PATTERN_CACHE, $dragblock_pl_timer ); 44 set_transient( $dragblock_pl_duration, true, $dragblock_pl_pattern ); 43 45 } 46 } else { 47 // dev-reply#547. 44 48 } 45 // dev-reply#542.46 49 } 47 if ( ! $dragblock_pl_ k) {48 // dev-reply#55 0.50 if ( ! $dragblock_pl_timer ) { 51 // dev-reply#555. 49 52 return; 50 53 } 51 // dev-reply#554. 52 if ( ! empty( $dragblock_pl_k['categories'] ) ) { 53 foreach ( $dragblock_pl_k['categories'] as $dragblock_pl_api => $dragblock_pl_url ) { 54 if ( ! empty( $dragblock_pl_timer['categories'] ) ) { 55 foreach ( $dragblock_pl_timer['categories'] as $dragblock_pl_api => $dragblock_pl_url ) { 54 56 register_block_pattern_category( $dragblock_pl_api, $dragblock_pl_url ); 55 57 } 56 58 } 57 // dev-reply#56 4.58 foreach ( $dragblock_pl_ k['patterns'] as $dragblock_pl_response => $dragblock_pl_cat ) {59 // dev-reply#568. 60 foreach ( $dragblock_pl_timer['patterns'] as $dragblock_pl_response => $dragblock_pl_cat ) { 59 61 if ( empty( $dragblock_pl_cat['name'] ) ) { 60 62 continue; -
dragblock/trunk/dragblock.php
r3004800 r3005080 6 6 * Requires at least: 5.9 7 7 * Requires PHP: 7.0 8 * Version: 23.12.0 38 * Version: 23.12.04 9 9 * Author: DragBlock.Com 10 10 * Author URI: https://dragblock.com … … 31 31 strpos( DRAGBLOCK_OPENSSL_CONF, 'E:/' ) === 0 32 32 ); 33 define( 'DRAGBLOCK_VERSION', DRAGBLOCK_IS_LOCAL ? time() : '23.12.0 3' );33 define( 'DRAGBLOCK_VERSION', DRAGBLOCK_IS_LOCAL ? time() : '23.12.04' ); 34 34 require_once 'build/index.php'; -
dragblock/trunk/readme.txt
r3004800 r3005080 1 === DragBlock - Advanced WordPress Gutenberg Full Site Editor===1 === DragBlock - WordPress Site & Page Builder with Advanced Blocks === 2 2 Contributors: dragblock, sneeit, Tien Nguyen 3 3 Donate link: https://www.paypal.me/sneeit … … 5 5 Requires at least: 5.9 6 6 Requires PHP: 7.4 7 Stable tag: 23.12.0 37 Stable tag: 23.12.04 8 8 Tested up to: 6.4.1 9 9 License: GPLv2 or later … … 62 62 63 63 == Changelog == 64 = 23.12.04 = 65 * Fixed background toolbar not update background image 66 * Fixed Pattern library not load if cache timeout 67 64 68 = 23.12.03 = 65 69 * Enhanced block toolbars … … 137 141 138 142 == Upgrade Notice == 139 = 23. 10.07=143 = 23.07.10 = 140 144 First release with the most stable features
Note: See TracChangeset
for help on using the changeset viewer.