Changeset 3241505
- Timestamp:
- 02/16/2025 07:59:39 PM (12 months ago)
- Location:
- uikit-editor-blocks/trunk
- Files:
-
- 12 added
- 1 deleted
- 49 edited
-
build/index-rtl.css (modified) (1 diff)
-
build/index.asset.php (modified) (1 diff)
-
build/index.css (modified) (1 diff)
-
build/index.js (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
-
src/accordion-item/block.js (modified) (1 diff)
-
src/accordion/block.js (modified) (2 diffs)
-
src/accordion/edit.js (modified) (1 diff)
-
src/button/block.js (modified) (1 diff)
-
src/button/class-button-block-type.php (modified) (3 diffs)
-
src/button/edit.js (modified) (3 diffs)
-
src/card/block.js (modified) (1 diff)
-
src/class-uikit-editor-blocks.php (modified) (7 diffs)
-
src/container/block.js (modified) (2 diffs)
-
src/divider/block.js (modified) (1 diff)
-
src/dropdown-item/block.js (modified) (1 diff)
-
src/dropdown/block.js (modified) (2 diffs)
-
src/dropdown/edit.js (modified) (1 diff)
-
src/grid-column/block.js (modified) (2 diffs)
-
src/grid/block.js (modified) (2 diffs)
-
src/grid/edit.js (modified) (3 diffs)
-
src/heading/block.js (modified) (1 diff)
-
src/icon (added)
-
src/icon/block.js (added)
-
src/icon/class-icon-block-type.php (added)
-
src/icon/edit.js (added)
-
src/icon/editor.scss (added)
-
src/icons.js (deleted)
-
src/image/block.js (modified) (1 diff)
-
src/index.js (modified) (3 diffs)
-
src/overlay-slider-item/block.js (modified) (1 diff)
-
src/overlay-slider/block.js (modified) (2 diffs)
-
src/overlay-slider/edit.js (modified) (1 diff)
-
src/overlay/block.js (modified) (1 diff)
-
src/panel-slider-item/block.js (modified) (1 diff)
-
src/panel-slider/block.js (modified) (2 diffs)
-
src/panel-slider/edit.js (modified) (1 diff)
-
src/panel/block.js (modified) (1 diff)
-
src/panel/edit.js (modified) (2 diffs)
-
src/panel/editor.scss (modified) (2 diffs)
-
src/quotation (added)
-
src/quotation/block.js (added)
-
src/quotation/class-quotation-block-type.php (added)
-
src/quotation/edit.js (added)
-
src/quotation/editor.scss (added)
-
src/section/block.js (modified) (2 diffs)
-
src/slideshow-item/block.js (modified) (1 diff)
-
src/slideshow/block.js (modified) (2 diffs)
-
src/slideshow/edit.js (modified) (1 diff)
-
src/social-icons-item/block.js (modified) (1 diff)
-
src/social-icons/block.js (modified) (2 diffs)
-
src/social-icons/edit.js (modified) (1 diff)
-
src/switcher-item/block.js (modified) (2 diffs)
-
src/switcher/block.js (modified) (2 diffs)
-
src/switcher/edit.js (modified) (1 diff)
-
src/templates/button.php (modified) (5 diffs)
-
src/templates/icon.php (added)
-
src/templates/image.php (modified) (2 diffs)
-
src/templates/quotation.php (added)
-
src/text/block.js (modified) (1 diff)
-
src/text/edit.js (modified) (1 diff)
-
uikit-editor-blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uikit-editor-blocks/trunk/build/index-rtl.css
r3235858 r3241505 8 8 [data-type="uikit-editor-blocks/grid"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/grid"]:before{background:#eee;content:"Grid (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout,[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"]{box-sizing:border-box;margin:0;overflow-wrap:break-word;word-break:break-word}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-1"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-1"]{flex:0 0 100%;max-width:100%}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-2"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-2"]{flex:0 0 calc(50% - 5px);max-width:calc(50% - 5px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-3"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-3"]{flex:0 0 calc(33.33333% - 6.66667px);max-width:calc(33.33333% - 6.66667px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="2-3"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="2-3"]{flex:0 0 calc(66.66667% - 3.33333px);max-width:calc(66.66667% - 3.33333px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-4"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-4"]{flex:0 0 calc(25% - 7.5px);max-width:calc(25% - 7.5px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="3-4"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="3-4"]{flex:0 0 calc(75% - 2.5px);max-width:calc(75% - 2.5px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-5"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-5"]{flex:0 0 calc(20% - 8px);max-width:calc(20% - 8px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="2-5"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="2-5"]{flex:0 0 calc(40% - 6px);max-width:calc(40% - 6px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="3-5"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="3-5"]{flex:0 0 calc(60% - 4px);max-width:calc(60% - 4px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="4-5"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="4-5"]{flex:0 0 calc(80% - 2px);max-width:calc(80% - 2px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-6"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-6"]{flex:0 0 calc(16.66667% - 8.33333px);max-width:calc(16.66667% - 8.33333px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="5-6"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="5-6"]{flex:0 0 calc(83.33333% - 1.66667px);max-width:calc(83.33333% - 1.66667px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width=expand],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width=expand]{flex:1;min-width:1px}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width=auto],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width=auto]{width:auto}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender,[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>.block-list-appender{width:100%}[data-type="uikit-editor-blocks/grid"][data-align=full] .wp-block .block-editor-block-toolbar,[data-type="uikit-editor-blocks/grid"][data-align=full] .wp-block .editor-block-toolbar{right:14px}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/grid"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/grid"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"]:before{background:#eee;content:"Grid Column (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px}.uikit-editor-blocks-template-selector-list{display:flex;flex-wrap:wrap}.uikit-editor-blocks-template-selector-button{display:flex;flex:0 0 50%}.uikit-editor-blocks-template-selector-button>.components-button.has-icon,.uikit-editor-blocks-template-selector-button>.components-icon-button{flex-direction:column;height:auto;justify-content:center;padding:8px;width:100%}.uikit-editor-blocks-template-selector-button>.components-button.has-icon.has-text svg,.uikit-editor-blocks-template-selector-button>.components-icon-button.has-text svg{margin-bottom:4px;margin-left:0}.uikit-editor-blocks-template-selector-button>.components-button.has-icon.is-active,.uikit-editor-blocks-template-selector-button>.components-button.has-icon.is-active:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.uikit-editor-blocks-template-selector-button>.components-icon-button.is-active,.uikit-editor-blocks-template-selector-button>.components-icon-button.is-active:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:inset 0 0 0 2px #757575;color:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.uikit-editor-blocks-template-selector-button-label{font-size:12px}[data-type="uikit-editor-blocks/grid-column"]:not(.is-selected):not(.has-child-selected):hover{background-color:hsla(0,0%,100%,.7);outline:1px dashed #949494} 9 9 [data-type="uikit-editor-blocks/heading"]{border:1px dashed #eee;box-sizing:border-box;padding:10px} 10 [data-type="uikit-editor-blocks/icon"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/icon"]:before{background:#eee;content:"Icon (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px} 10 11 [data-type="uikit-editor-blocks/image"]{border:1px dashed #eee;box-sizing:border-box;padding:10px} 11 12 [data-type="uikit-editor-blocks/overlay"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/overlay"]:before{background:#eee;content:"Overlay (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px} 12 13 [data-type="uikit-editor-blocks/overlay-slider"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/overlay-slider"]:before{background:#eee;content:"Overlay Slider (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px}[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.block-editor-inner-blocks>.block-editor-block-list__layout,[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.editor-inner-blocks>.editor-block-list__layout{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;justify-content:flex-start}[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/overlay-slider-item"],[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/overlay-slider-item"]{box-sizing:border-box;flex:0 0 100%;margin:0;max-width:100%;overflow-wrap:break-word;word-break:break-word}[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender,[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.editor-inner-blocks>.editor-block-list__layout>.block-list-appender{width:100%}[data-type="uikit-editor-blocks/overlay-slider"][data-align=full] .wp-block .block-editor-block-toolbar,[data-type="uikit-editor-blocks/overlay-slider"][data-align=full] .wp-block .editor-block-toolbar{right:14px}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/overlay-slider"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-overlay-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/overlay-slider-item"]{border:1px dashed #eee;box-sizing:border-box;padding:10px}[data-type="uikit-editor-blocks/overlay-slider-item"]:not(.is-selected):not(.has-child-selected):hover{background-color:hsla(0,0%,100%,.7);outline:1px dashed #949494} 13 [data-type="uikit-editor-blocks/panel"]{b ackground-color:#fbfbfb;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/panel"]:before{background:#f7f7f7;content:"Panel (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px}[data-type="uikit-editor-blocks/panel"] .wp-block-uikit-editor-blocks-panel p{margin:0}14 [data-type="uikit-editor-blocks/panel"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/panel"]:before{background:#eee;content:"Panel (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px}[data-type="uikit-editor-blocks/panel"] .wp-block-uikit-editor-blocks-panel p{margin:0} 14 15 [data-type="uikit-editor-blocks/panel-slider"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/panel-slider"]:before{background:#eee;content:"Panel Slider (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px}[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.block-editor-inner-blocks>.block-editor-block-list__layout,[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.editor-inner-blocks>.editor-block-list__layout{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;justify-content:flex-start}[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/panel-slider-item"],[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/panel-slider-item"]{box-sizing:border-box;flex:0 0 100%;margin:0;max-width:100%;overflow-wrap:break-word;word-break:break-word}[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender,[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.editor-inner-blocks>.editor-block-list__layout>.block-list-appender{width:100%}[data-type="uikit-editor-blocks/panel-slider"][data-align=full] .wp-block .block-editor-block-toolbar,[data-type="uikit-editor-blocks/panel-slider"][data-align=full] .wp-block .editor-block-toolbar{right:14px}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/panel-slider"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-panel-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/panel-slider-item"]{border:1px dashed #eee;box-sizing:border-box;padding:10px}[data-type="uikit-editor-blocks/panel-slider-item"]:not(.is-selected):not(.has-child-selected):hover{background-color:hsla(0,0%,100%,.7);outline:1px dashed #949494} 16 [data-type="uikit-editor-blocks/quotation"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/quotation"]:before{background:#eee;content:"Quotation (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px} 15 17 [data-type="uikit-editor-blocks/section"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/section"]:before{background:#eee;content:"Section (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px} 16 18 [data-type="uikit-editor-blocks/slideshow"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/slideshow"]:before{background:#eee;content:"Slideshow (UIkit)";font-size:10pt;height:40px;right:-1px;line-height:40px;padding:0 20px;position:absolute;left:-1px;top:-1px}[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.block-editor-inner-blocks>.block-editor-block-list__layout,[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.editor-inner-blocks>.editor-block-list__layout{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;justify-content:flex-start}[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/slideshow-item"],[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/slideshow-item"]{box-sizing:border-box;flex:0 0 100%;margin:0;max-width:100%;overflow-wrap:break-word;word-break:break-word}[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender,[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.editor-inner-blocks>.editor-block-list__layout>.block-list-appender{width:100%}[data-type="uikit-editor-blocks/slideshow"][data-align=full] .wp-block .block-editor-block-toolbar,[data-type="uikit-editor-blocks/slideshow"][data-align=full] .wp-block .editor-block-toolbar{right:14px}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/slideshow"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-slideshow>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/slideshow-item"]{border:1px dashed #eee;box-sizing:border-box;padding:10px}[data-type="uikit-editor-blocks/slideshow-item"]:not(.is-selected):not(.has-child-selected):hover{background-color:hsla(0,0%,100%,.7);outline:1px dashed #949494} -
uikit-editor-blocks/trunk/build/index.asset.php
r3235858 r3241505 1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n' ), 'version' => '68e444202d12d864614d');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => '1c82cea73b625028fe14'); -
uikit-editor-blocks/trunk/build/index.css
r3235858 r3241505 8 8 [data-type="uikit-editor-blocks/grid"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/grid"]:before{background:#eee;content:"Grid (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout,[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"]{box-sizing:border-box;margin:0;overflow-wrap:break-word;word-break:break-word}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-1"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-1"]{flex:0 0 100%;max-width:100%}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-2"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-2"]{flex:0 0 calc(50% - 5px);max-width:calc(50% - 5px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-3"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-3"]{flex:0 0 calc(33.33333% - 6.66667px);max-width:calc(33.33333% - 6.66667px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="2-3"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="2-3"]{flex:0 0 calc(66.66667% - 3.33333px);max-width:calc(66.66667% - 3.33333px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-4"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-4"]{flex:0 0 calc(25% - 7.5px);max-width:calc(25% - 7.5px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="3-4"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="3-4"]{flex:0 0 calc(75% - 2.5px);max-width:calc(75% - 2.5px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-5"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-5"]{flex:0 0 calc(20% - 8px);max-width:calc(20% - 8px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="2-5"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="2-5"]{flex:0 0 calc(40% - 6px);max-width:calc(40% - 6px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="3-5"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="3-5"]{flex:0 0 calc(60% - 4px);max-width:calc(60% - 4px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="4-5"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="4-5"]{flex:0 0 calc(80% - 2px);max-width:calc(80% - 2px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-6"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="1-6"]{flex:0 0 calc(16.66667% - 8.33333px);max-width:calc(16.66667% - 8.33333px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="5-6"],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width="5-6"]{flex:0 0 calc(83.33333% - 1.66667px);max-width:calc(83.33333% - 1.66667px)}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width=expand],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width=expand]{flex:1;min-width:1px}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width=auto],[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"][data-width=auto]{width:auto}[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender,[data-type="uikit-editor-blocks/grid"] .wp-block-uikit-editor-blocks-grid>.editor-inner-blocks>.editor-block-list__layout>.block-list-appender{width:100%}[data-type="uikit-editor-blocks/grid"][data-align=full] .wp-block .block-editor-block-toolbar,[data-type="uikit-editor-blocks/grid"][data-align=full] .wp-block .editor-block-toolbar{left:14px}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/grid"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/grid"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-grid>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/grid-column"]:before{background:#eee;content:"Grid Column (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px}.uikit-editor-blocks-template-selector-list{display:flex;flex-wrap:wrap}.uikit-editor-blocks-template-selector-button{display:flex;flex:0 0 50%}.uikit-editor-blocks-template-selector-button>.components-button.has-icon,.uikit-editor-blocks-template-selector-button>.components-icon-button{flex-direction:column;height:auto;justify-content:center;padding:8px;width:100%}.uikit-editor-blocks-template-selector-button>.components-button.has-icon.has-text svg,.uikit-editor-blocks-template-selector-button>.components-icon-button.has-text svg{margin-bottom:4px;margin-right:0}.uikit-editor-blocks-template-selector-button>.components-button.has-icon.is-active,.uikit-editor-blocks-template-selector-button>.components-button.has-icon.is-active:not(:disabled):not([aria-disabled=true]):not(.is-default):hover,.uikit-editor-blocks-template-selector-button>.components-icon-button.is-active,.uikit-editor-blocks-template-selector-button>.components-icon-button.is-active:not(:disabled):not([aria-disabled=true]):not(.is-default):hover{box-shadow:inset 0 0 0 2px #757575;color:#1e1e1e;outline:2px solid transparent;outline-offset:-2px}.uikit-editor-blocks-template-selector-button-label{font-size:12px}[data-type="uikit-editor-blocks/grid-column"]:not(.is-selected):not(.has-child-selected):hover{background-color:hsla(0,0%,100%,.7);outline:1px dashed #949494} 9 9 [data-type="uikit-editor-blocks/heading"]{border:1px dashed #eee;box-sizing:border-box;padding:10px} 10 [data-type="uikit-editor-blocks/icon"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/icon"]:before{background:#eee;content:"Icon (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px} 10 11 [data-type="uikit-editor-blocks/image"]{border:1px dashed #eee;box-sizing:border-box;padding:10px} 11 12 [data-type="uikit-editor-blocks/overlay"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/overlay"]:before{background:#eee;content:"Overlay (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px} 12 13 [data-type="uikit-editor-blocks/overlay-slider"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/overlay-slider"]:before{background:#eee;content:"Overlay Slider (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px}[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.block-editor-inner-blocks>.block-editor-block-list__layout,[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.editor-inner-blocks>.editor-block-list__layout{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;justify-content:flex-start}[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/overlay-slider-item"],[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/overlay-slider-item"]{box-sizing:border-box;flex:0 0 100%;margin:0;max-width:100%;overflow-wrap:break-word;word-break:break-word}[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender,[data-type="uikit-editor-blocks/overlay-slider"] .wp-block-uikit-editor-blocks-overlay-slider>.editor-inner-blocks>.editor-block-list__layout>.block-list-appender{width:100%}[data-type="uikit-editor-blocks/overlay-slider"][data-align=full] .wp-block .block-editor-block-toolbar,[data-type="uikit-editor-blocks/overlay-slider"][data-align=full] .wp-block .editor-block-toolbar{left:14px}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/overlay-slider"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-overlay-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/overlay-slider-item"]{border:1px dashed #eee;box-sizing:border-box;padding:10px}[data-type="uikit-editor-blocks/overlay-slider-item"]:not(.is-selected):not(.has-child-selected):hover{background-color:hsla(0,0%,100%,.7);outline:1px dashed #949494} 13 [data-type="uikit-editor-blocks/panel"]{b ackground-color:#fbfbfb;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/panel"]:before{background:#f7f7f7;content:"Panel (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px}[data-type="uikit-editor-blocks/panel"] .wp-block-uikit-editor-blocks-panel p{margin:0}14 [data-type="uikit-editor-blocks/panel"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/panel"]:before{background:#eee;content:"Panel (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px}[data-type="uikit-editor-blocks/panel"] .wp-block-uikit-editor-blocks-panel p{margin:0} 14 15 [data-type="uikit-editor-blocks/panel-slider"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/panel-slider"]:before{background:#eee;content:"Panel Slider (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px}[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.block-editor-inner-blocks>.block-editor-block-list__layout,[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.editor-inner-blocks>.editor-block-list__layout{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;justify-content:flex-start}[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/panel-slider-item"],[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/panel-slider-item"]{box-sizing:border-box;flex:0 0 100%;margin:0;max-width:100%;overflow-wrap:break-word;word-break:break-word}[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender,[data-type="uikit-editor-blocks/panel-slider"] .wp-block-uikit-editor-blocks-panel-slider>.editor-inner-blocks>.editor-block-list__layout>.block-list-appender{width:100%}[data-type="uikit-editor-blocks/panel-slider"][data-align=full] .wp-block .block-editor-block-toolbar,[data-type="uikit-editor-blocks/panel-slider"][data-align=full] .wp-block .editor-block-toolbar{left:14px}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/panel-slider"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-panel-slider>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/panel-slider-item"]{border:1px dashed #eee;box-sizing:border-box;padding:10px}[data-type="uikit-editor-blocks/panel-slider-item"]:not(.is-selected):not(.has-child-selected):hover{background-color:hsla(0,0%,100%,.7);outline:1px dashed #949494} 16 [data-type="uikit-editor-blocks/quotation"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/quotation"]:before{background:#eee;content:"Quotation (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px} 15 17 [data-type="uikit-editor-blocks/section"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/section"]:before{background:#eee;content:"Section (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px} 16 18 [data-type="uikit-editor-blocks/slideshow"]{border:1px dashed #eee;box-sizing:border-box;padding:60px 20px 20px;position:relative}[data-type="uikit-editor-blocks/slideshow"]:before{background:#eee;content:"Slideshow (UIkit)";font-size:10pt;height:40px;left:-1px;line-height:40px;padding:0 20px;position:absolute;right:-1px;top:-1px}[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.block-editor-inner-blocks>.block-editor-block-list__layout,[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.editor-inner-blocks>.editor-block-list__layout{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;justify-content:flex-start}[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/slideshow-item"],[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.editor-inner-blocks>.editor-block-list__layout>[data-type="uikit-editor-blocks/slideshow-item"]{box-sizing:border-box;flex:0 0 100%;margin:0;max-width:100%;overflow-wrap:break-word;word-break:break-word}[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender,[data-type="uikit-editor-blocks/slideshow"] .wp-block-uikit-editor-blocks-slideshow>.editor-inner-blocks>.editor-block-list__layout>.block-list-appender{width:100%}[data-type="uikit-editor-blocks/slideshow"][data-align=full] .wp-block .block-editor-block-toolbar,[data-type="uikit-editor-blocks/slideshow"][data-align=full] .wp-block .editor-block-toolbar{left:14px}body:not(.branch-5-2):not(.branch-5-3) [data-type="uikit-editor-blocks/slideshow"]:not([data-no-gutters=true]):not([data-horizontal-gutters=gx-0]) .wp-block-uikit-editor-blocks-slideshow>.block-editor-inner-blocks>.block-editor-block-list__layout>[data-type="uikit-editor-blocks/slideshow-item"]{border:1px dashed #eee;box-sizing:border-box;padding:10px}[data-type="uikit-editor-blocks/slideshow-item"]:not(.is-selected):not(.has-child-selected):hover{background-color:hsla(0,0%,100%,.7);outline:1px dashed #949494} -
uikit-editor-blocks/trunk/build/index.js
r3235858 r3241505 1 (()=>{"use strict";const e=window.wp.blocks,l=window.wp.i18n,i=window.wp.blockEditor,t=window.wp.editor,o=window.wp.element,a=window.wp.components,r=window.wp.compose,d=window.wp.data, k=window.ReactJSXRuntime,s=(0,k.jsx)(a.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M23.58 26.28c0-.600003.1499985-1.099998.45-1.5.3000015-.400002.7433304-.8399976 1.33-1.32.5600028-.4533356.9833319-.8699981 1.27-1.25s.43-.8433306.43-1.39c0-.5466694-.1733316-1.0566643-.52-1.53s-.986662-.71-1.92-.71c-1.1066722 0-1.8533314.2766639-2.24.83-.3866686.5533361-.58 1.1766632-.58 1.87 0 .1466674.0033333.2666662.01.36.0066667.0933338.01.1533332.01.18h-1.78c-.0133334-.0533336-.0266666-.146666-.04-.28-.0133334-.133334-.02-.2733326-.02-.42 0-.7733372.1766649-1.4666636.53-2.08.3533351-.6133364.8899964-1.0999982 1.61-1.46.7200036-.3600018 1.5999948-.54 2.64-.54 1.2133394 0 2.2033295.3233301 2.97.97s1.15 1.5099946 1.15 2.59c0 .7066702-.1033323 1.3033309-.31 1.79-.2066677.4866691-.4533319.8799985-.74 1.18-.2866681.3000015-.6566644.6233316-1.11.97-.4800024.3866686-.8333322.7166653-1.06.99-.2266678.2733347-.34.6233312-.34 1.05v.82h-1.74zm-.14 2.56h2V31h-2zM39 12c1.1046 0 2 .8954 2 2v20c0 1.1046-.8954 2-2 2H9c-1.10457 0-2-.8954-2-2V14c0-1.1046.89543-2 2-2h30zm0 22V14H9v20h30z"})}),u=(0,k.jsx)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)(a.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 12.8h8v-1.5H8v1.5z"})}),n=(0,k.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,k.jsx)(a.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})}),b=(0,k.jsx)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,k.jsx)(a.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"})}),c=(0,k.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,k.jsx)(a.Path,{d:"M16 4v5.2c0 .3-.2.5-.5.5h-7c-.3.1-.5-.2-.5-.5V4H6.5v5.2c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4H16zm-.5 8.8h-7c-1.1 0-2 .9-2 2V20H8v-5.2c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5V20h1.5v-5.2c0-1.2-.9-2-2-2z"})}),{InnerBlocks:_,InspectorControls:g}=i||t,v=["uikit-editor-blocks/accordion-item"];class m extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:s}=this.props,{blockId:u,multiple:n,collapsible:b,contentStyle:c,contentTopMargin:m}=i;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(g,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Accordion","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Allow Multiple Open Items","uikit-editor-blocks"),checked:n,onChange:e=>t({multiple:e})}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Start With All Items Closed","uikit-editor-blocks"),checked:b,onChange:e=>t({collapsible:e})})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Meta","uikit-editor-blocks"),value:"meta"},{label:(0,l.__)("Lead","uikit-editor-blocks"),value:"lead"}],onChange:e=>{t({contentStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:m,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({contentTopMargin:e})}})]})]}),(0,k.jsx)("div",{className:e,children:(0,k.jsx)(_,{allowedBlocks:v})})]})}}const h=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),x=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),p=(0,r.compose)(h,x)(m),{InnerBlocks:C}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/accordion",{title:(0,l.__)("Accordion (UIkit)","uikit-editor-blocks"),icon:b,category:"uikit-editor-blocks",keywords:[(0,l.__)("Accordion","uikit-editor-blocks"),(0,l.__)("UIkit Accordion","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:p,save:()=>(0,k.jsx)(C.Content,{})});const{InspectorControls:j}=i||t;class S extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,titleText:s,contentText:u}=e;return d||t({blockId:r}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(j,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:s,onChange:e=>t({titleText:e})}),(0,k.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:u,onChange:e=>t({contentText:e})})]})}),(0,k.jsx)("div",{className:i,children:""!=s?s:(0,l.__)("Title","uikit-editor-blocks")})]})}}const y=S;(0,e.registerBlockType)("uikit-editor-blocks/accordion-item",{title:(0,l.__)("Accordion Item (UIkit)","uikit-editor-blocks"),icon:n,category:"uikit-editor-blocks",keywords:[(0,l.__)("Accordion Item","uikit-editor-blocks"),(0,l.__)("UIkit Accordion Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/accordion"],edit:y,save:()=>null});const{InspectorControls:T,RichText:f}=i||t,H="noreferrer noopener";class L extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,isSelected:r,clientId:d}=this.props,{blockId:s,text:u,linkUrl:n,linkTarget:b,linkRel:c,linkTitle:_,linkAriaLabel:g,style:v,size:m}=e;return s||t({blockId:d}),(0,k.jsx)(o.Fragment,{children:(0,k.jsxs)("div",{className:i,children:[(0,k.jsx)(f,{placeholder:(0,l.__)("Add text...","uikit-editor-blocks"),value:u,onChange:e=>t({text:e}),formattingControls:[],keepPlaceholderOnFocus:!0}),(0,k.jsxs)(T,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Text","uikit-editor-blocks"),value:u,onChange:e=>t({text:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link URL","uikit-editor-blocks"),value:n,onChange:e=>t({linkUrl:e})}),n&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=c;l&&!c?i=H:l||c!==H||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===b}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:c||"",onChange:e=>{t({linkRel:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:_,onChange:e=>{t({linkTitle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:g,onChange:e=>{t({linkAriaLabel:e})}})]})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Button","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Text","uikit-editor-blocks"),value:"text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"}],onChange:e=>{t({style:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Size","uikit-editor-blocks"),value:m,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({size:e})}})]})]})]})})}}const B=L;(0,e.registerBlockType)("uikit-editor-blocks/button",{title:(0,l.__)("Button (UIkit)","uikit-editor-blocks"),icon:u,category:"uikit-editor-blocks",keywords:[(0,l.__)("Button","uikit-editor-blocks"),(0,l.__)("UIkit Button","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:B,save:()=>null});const{InspectorControls:I,RichText:W}=i||t;class M extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,titleText:s,contentText:u,style:n,size:b,titleElement:c,contentElement:_}=e;return d||t({blockId:r}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(I,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:s,onChange:e=>t({titleText:e})}),(0,k.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:u,onChange:e=>t({contentText:e})})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Card","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"}],onChange:e=>{t({style:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Size","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({size:e})}})]}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}})}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("p","uikit-editor-blocks"),value:"p"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({contentElement:e})}})})]}),(0,k.jsx)("div",{className:i,children:""!=s?s:(0,l.__)("Title","uikit-editor-blocks")})]})}}const w=M;(0,e.registerBlockType)("uikit-editor-blocks/card",{title:(0,l.__)("Card (UIkit)","uikit-editor-blocks"),icon:u,category:"uikit-editor-blocks",keywords:[(0,l.__)("Card","uikit-editor-blocks"),(0,l.__)("UIkit Card","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:w,save:()=>null});const{InspectorControls:P,InnerBlocks:D}=i||t;class N extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,hasChildBlocks:r,clientId:d}=this.props,{blockId:s,size:u}=e;return s||t({blockId:d}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(P,{children:(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Container","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Size","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("X-Small","uikit-editor-blocks"),value:"xsmall"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("Expand","uikit-editor-blocks"),value:"expand"}],onChange:e=>{t({size:e})}})})}),(0,k.jsx)("div",{className:i,children:(0,k.jsx)(D,{renderAppender:r?void 0:()=>(0,k.jsx)(D.ButtonBlockAppender,{})})})]})}}const A=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{clientId:i}=l,{getBlockOrder:t}=e("core/block-editor")||e("core/editor");return{hasChildBlocks:t(i).length>0}})))(N),{InnerBlocks:R}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/container",{title:(0,l.__)("Container (UIkit)","uikit-editor-blocks"),icon:c,category:"uikit-editor-blocks",keywords:[(0,l.__)("Container","uikit-editor-blocks"),(0,l.__)("UIkit Container","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:A,save:()=>(0,k.jsx)(R.Content,{})}),e.updateCategory&&(0,e.updateCategory)("uikit-editor-blocks",{icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,k.jsx)("path",{d:"M443.9 128v256L218 512 0 384V169.7l87.6 45.1v117l133.5 75.5 135.8-75.5v-151l-101.1-57.6 87.6-53.1L443.9 128zM308.6 49.1L223.8 0l-88.6 54.8 86 47.3 87.4-53z"})})});const{InspectorControls:V}=i||t;class O extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,style:s,element:u,alignment:n,alignmentBreakpoint:b,alignmentFallback:c}=e;return d||t({blockId:r}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(V,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Divider","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:s,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Icon","uikit-editor-blocks"),value:"icon"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Vertical","uikit-editor-blocks"),value:"vertical"}],onChange:e=>{t({style:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("hr","uikit-editor-blocks"),value:"hr"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({element:e})}}),"small"==s&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{t({alignment:e})}}),""!=n&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment Breakpoint","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({alignmentBreakpoint:e})}}),""!=n&&""!=b&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment Fallback","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Justify","uikit-editor-blocks"),value:"justify"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({alignmentFallback:e})}})]})]})}),(0,k.jsx)("div",{className:i})]})}}const U=O;(0,e.registerBlockType)("uikit-editor-blocks/divider",{title:(0,l.__)("Divider (UIkit)","uikit-editor-blocks"),icon:u,category:"uikit-editor-blocks",keywords:[(0,l.__)("Divider","uikit-editor-blocks"),(0,l.__)("UIkit Divider","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:U,save:()=>null});const{InspectorControls:X,InnerBlocks:E}=i||t,F=["uikit-editor-blocks/dropdown-item"];class z extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:s}=this.props,{blockId:u,titleText:n,position:b,buttonSize:c,buttonStyle:_,buttonIcon:g}=i;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(X,{children:[(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:n,onChange:e=>{t({titleText:e})}})}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Dropdown","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("top-left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("top-center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("top-right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("bottom-left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("bottom-center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("bottom-right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("left-top","uikit-editor-blocks"),value:"left-top"},{label:(0,l.__)("left-center","uikit-editor-blocks"),value:"left-center"},{label:(0,l.__)("left-bottom","uikit-editor-blocks"),value:"left-bottom"},{label:(0,l.__)("right-top","uikit-editor-blocks"),value:"right-top"},{label:(0,l.__)("right-center","uikit-editor-blocks"),value:"right-center"},{label:(0,l.__)("right-bottom","uikit-editor-blocks"),value:"right-bottom"}],onChange:e=>{t({position:e})}})}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Button","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({buttonSize:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Button Style","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Text","uikit-editor-blocks"),value:"text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"}],onChange:e=>{t({buttonStyle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Button Icon","uikit-editor-blocks"),value:g,onChange:e=>{t({buttonIcon:e})}})]})]}),(0,k.jsx)("div",{className:e,children:(0,k.jsx)(E,{allowedBlocks:F})})]})}}const G=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),Q=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),J=(0,r.compose)(G,Q)(z),{InnerBlocks:q}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/dropdown",{title:(0,l.__)("Dropdown (UIkit)","uikit-editor-blocks"),icon:b,category:"uikit-editor-blocks",keywords:[(0,l.__)("Dropdown","uikit-editor-blocks"),(0,l.__)("UIkit Dropdown","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:J,save:()=>(0,k.jsx)(q.Content,{})});const{InspectorControls:K,InnerBlocks:Y}=i||t;class Z extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,bgImage:r,clientId:d}=this.props,{blockId:s,titleText:u}=e;return s||t({blockId:d}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(K,{children:(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:u,onChange:e=>t({titleText:e})})})}),(0,k.jsx)("div",{className:i,children:""!=u?u:(0,l.__)("Title","uikit-editor-blocks")})]})}}const $=Z;(0,e.registerBlockType)("uikit-editor-blocks/dropdown-item",{title:(0,l.__)("Dropdown Item (UIkit)","uikit-editor-blocks"),icon:n,category:"uikit-editor-blocks",keywords:[(0,l.__)("Dropdown Item","uikit-editor-blocks"),(0,l.__)("UIkit Dropdown Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/dropdown"],edit:$,save:()=>null});const ee=window.wp.hooks,le=(0,r.createHigherOrderComponent)((e=>t=>{const{attributes:r,setAttributes:d}=t,{ueb_margin:s,ueb_removeTopMargin:u,ueb_removeBottomMargin:n,ueb_textAlignment:b,ueb_textAlignmentBreakpoint:c,ueb_textAlignmentFallback:_,ueb_maxWidth:g,ueb_maxWidthBreakpoint:v,ueb_blockAlignment:m,ueb_blockAlignmentBreakpoint:h,ueb_blockAlignmentFallback:x,ueb_visibility:p,ueb_animation:C,ueb_animationDelay:j,ueb_parallaxHorizontalStart:S,ueb_parallaxHorizontalEnd:y,ueb_parallaxVerticalStart:T,ueb_parallaxVerticalEnd:f,ueb_parallaxScaleStart:H,ueb_parallaxScaleEnd:L,ueb_parallaxRotateStart:B,ueb_parallaxRotateEnd:I,ueb_parallaxOpacityStart:W,ueb_parallaxOpacityEnd:M,ueb_disableBlock:w}=r;return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(e,{...t}),(0,k.jsx)(i.InspectorControls,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("General (UIkit)","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:s,options:[{label:(0,l.__)("Keep existing","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{d({ueb_margin:e})}}),""!=s&&(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Remove top margin","uikit-editor-blocks"),checked:u,onChange:e=>d({ueb_removeTopMargin:e})}),""!=s&&(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Remove bottom margin","uikit-editor-blocks"),checked:n,onChange:e=>d({ueb_removeBottomMargin:e})}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Text alignment","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Justify","uikit-editor-blocks"),value:"justify"}],onChange:e=>{d({ueb_textAlignment:e})}}),""!=b&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Text alignment breakpoint","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{d({ueb_textAlignmentBreakpoint:e})}}),""!=b&&""!=c&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Text alignment fallback","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Justify","uikit-editor-blocks"),value:"justify"}],onChange:e=>{d({ueb_textAlignmentFallback:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Max width","uikit-editor-blocks"),value:g,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("2X-Large","uikit-editor-blocks"),value:"2xlarge"}],onChange:e=>{d({ueb_maxWidth:e})}}),""!=g&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Max width breakpoint","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{d({ueb_maxWidthBreakpoint:e})}}),""!=g&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Block alignment","uikit-editor-blocks"),value:m,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{d({ueb_blockAlignment:e})}}),""!=g&&""!=m&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Block Alignment Breakpoint","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{d({ueb_blockAlignmentBreakpoint:e})}}),""!=g&&""!=h&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Block Alignment Fallback","uikit-editor-blocks"),value:x,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{d({ueb_blockAlignmentFallback:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Visibility","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Visible Small (Phone Landscape)","uikit-editor-blocks"),value:"visible-small"},{label:(0,l.__)("Visible Medium (Tablet Landscape)","uikit-editor-blocks"),value:"visible-medium"},{label:(0,l.__)("Visible Large (Desktop)","uikit-editor-blocks"),value:"visible-large"},{label:(0,l.__)("Visible X-Large (Large Screens)","uikit-editor-blocks"),value:"visible-xlarge"},{label:(0,l.__)("Hidden Small (Phone Landscape)","uikit-editor-blocks"),value:"hidden-small"},{label:(0,l.__)("Hidden Medium (Tablet Landscape)","uikit-editor-blocks"),value:"hidden-medium"},{label:(0,l.__)("Hidden Large (Desktop)","uikit-editor-blocks"),value:"hidden-large"},{label:(0,l.__)("Hidden X-Large (Large Screens)","uikit-editor-blocks"),value:"hidden-xlarge"}],onChange:e=>{d({ueb_visibility:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Animation","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Fade","uikit-editor-blocks"),value:"fade"},{label:(0,l.__)("Scale Up","uikit-editor-blocks"),value:"scale-up"},{label:(0,l.__)("Scale Down","uikit-editor-blocks"),value:"scale-down"},{label:(0,l.__)("Slide Top Small","uikit-editor-blocks"),value:"slide-top-small"},{label:(0,l.__)("Slide Bottom Small","uikit-editor-blocks"),value:"slide-bottom-small"},{label:(0,l.__)("Slide Left Small","uikit-editor-blocks"),value:"slide-left-small"},{label:(0,l.__)("Slide Right Small","uikit-editor-blocks"),value:"slide-right-small"},{label:(0,l.__)("Slide Top Medium","uikit-editor-blocks"),value:"slide-top-medium"},{label:(0,l.__)("Slide Bottom Medium","uikit-editor-blocks"),value:"slide-bottom-medium"},{label:(0,l.__)("Slide Left Medium","uikit-editor-blocks"),value:"slide-left-medium"},{label:(0,l.__)("Slide Right Medium","uikit-editor-blocks"),value:"slide-right-medium"},{label:(0,l.__)("Slide Top 100%","uikit-editor-blocks"),value:"slide-top"},{label:(0,l.__)("Slide Bottom 100%","uikit-editor-blocks"),value:"slide-bottom"},{label:(0,l.__)("Slide Left 100%","uikit-editor-blocks"),value:"slide-left"},{label:(0,l.__)("Slide Right 100%","uikit-editor-blocks"),value:"slide-right"},{label:(0,l.__)("Parallax","uikit-editor-blocks"),value:"parallax"}],onChange:e=>{d({ueb_animation:e})}}),""!=C&&"parallax"!=C&&(0,k.jsx)(a.__experimentalNumberControl,{label:(0,l.__)("Animation delay","uikit-editor-blocks"),value:j,onChange:e=>d({ueb_animationDelay:e}),help:(0,l.__)("Delay the element animations in milliseconds, e.g. 100.","uikit-editor-blocks")}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Horizontal start",value:S,onChange:e=>{d({ueb_parallaxHorizontalStart:e})},min:-600,max:600,step:10}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Horizontal end",value:y,onChange:e=>{d({ueb_parallaxHorizontalEnd:e})},min:-600,max:600,step:10}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Vertical start",value:T,onChange:e=>{d({ueb_parallaxVerticalStart:e})},min:-600,max:600,step:10}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Vertical end",value:f,onChange:e=>{d({ueb_parallaxVerticalEnd:e})},min:-600,max:600,step:10}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Scale start",value:H,onChange:e=>{d({ueb_parallaxScaleStart:e})},min:.5,max:2,step:.1}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Scale end",value:L,onChange:e=>{d({ueb_parallaxScaleEnd:e})},min:.5,max:2,step:.1}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Rotate start",value:B,onChange:e=>{d({ueb_parallaxRotateStart:e})},min:0,max:360,step:10}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Rotate end",value:I,onChange:e=>{d({ueb_parallaxRotateEnd:e})},min:0,max:360,step:10}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Opacity start",value:W,onChange:e=>{d({ueb_parallaxOpacityStart:e})},min:0,max:1,step:.1}),"parallax"==C&&(0,k.jsx)(a.RangeControl,{label:"Opacity end",value:M,onChange:e=>{d({ueb_parallaxOpacityEnd:e})},min:0,max:1,step:.1}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Disable Block","uikit-editor-blocks"),checked:w,onChange:e=>d({ueb_disableBlock:e})})]})},"InspectorControls")]})}),"uikitGeneralInspectorControls");(0,ee.addFilter)("blocks.registerBlockType","uikit-editor-blocks/general-attributes",((e,l)=>({...e,attributes:{...e.attributes,ueb_margin:{type:"string",default:""},ueb_removeTopMargin:{type:"boolean",default:!1},ueb_removeBottomMargin:{type:"boolean",default:!1},ueb_textAlignment:{type:"string",default:""},ueb_textAlignmentBreakpoint:{type:"string",default:""},ueb_textAlignmentFallback:{type:"string",default:""},ueb_maxWidth:{type:"string",default:""},ueb_maxWidthBreakpoint:{type:"string",default:""},ueb_blockAlignment:{type:"string",default:"left"},ueb_blockAlignmentBreakpoint:{type:"string",default:""},ueb_blockAlignmentFallback:{type:"string",default:""},ueb_visibility:{type:"string",default:""},ueb_animation:{type:"string",default:""},ueb_animationDelay:{type:"string",default:""},ueb_parallaxHorizontalStart:{type:"number",default:0},ueb_parallaxHorizontalEnd:{type:"number",default:0},ueb_parallaxVerticalStart:{type:"number",default:0},ueb_parallaxVerticalEnd:{type:"number",default:0},ueb_parallaxScaleStart:{type:"decimalPoint",default:1},ueb_parallaxScaleEnd:{type:"decimalPoint",default:1},ueb_parallaxRotateStart:{type:"number",default:0},ueb_parallaxRotateEnd:{type:"number",default:0},ueb_parallaxOpacityStart:{type:"decimalPoint",default:1},ueb_parallaxOpacityEnd:{type:"decimalPoint",default:1},ueb_disableBlock:{type:"boolean",default:!1}}}))),(0,ee.addFilter)("editor.BlockEdit","uikit-editor-blocks/general-inspector",le);const{InspectorControls:ie,InnerBlocks:te}=i||t,oe="custom",ae=["uikit-editor-blocks/grid-column"];let re=[{name:"1-1",title:(0,l.__)("Whole","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-1",xlargeWidth:""}]]},{name:"1-2+1-2",title:(0,l.__)("Halves","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 30 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}]]},{name:"1-3+2-3",title:(0,l.__)("Thirds 1-2","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 20 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}]]},{name:"2-3+1-3",title:(0,l.__)("Thirds 2-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 40 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}]]},{name:"1-3+1-3+1-3",title:(0,l.__)("Thirds","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 20 0 V 30 M 40 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}]]},{name:"1-4+3-4",title:(0,l.__)("Quarters 1-3","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 15 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-4",xlargeWidth:""}]]},{name:"3-4+1-4",title:(0,l.__)("Quarters 3-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 45 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}]]},{name:"1-4+1-4+2-4",title:(0,l.__)("Quarters 1-1-2","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 15 0 V 30 M 30 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}]]},{name:"2-4+1-4+1-4",title:(0,l.__)("Quarters 2-1-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 30 0 V 30 M 45 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}]]},{name:"1-4+2-4+1-4",title:(0,l.__)("Quarters 1-2-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 15 0 V 30 M 45 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}]]},{name:"1-4+1-4+1-4+1-4",title:(0,l.__)("Quarters","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 15 0 V 30 M 30 0 V 30 M 45 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}]]},{name:"1-5+4-5",title:(0,l.__)("Fifths 1-4","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 12 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"4-5",xlargeWidth:""}]]},{name:"4-5+1-5",title:(0,l.__)("Fifths 4-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 48 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"4-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}]]},{name:"2-5+3-5",title:(0,l.__)("Fifths 2-3","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 24 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-5",xlargeWidth:""}]]},{name:"3-5+2-5",title:(0,l.__)("Fifths 3-2","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 36 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-5",xlargeWidth:""}]]},{name:"1-5+1-5+3-5",title:(0,l.__)("Fifths 1-1-3","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 12 0 V 30 M 24 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-5",xlargeWidth:""}]]},{name:"3-5+1-5+1-5",title:(0,l.__)("Fifths 3-1-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 36 0 V 30 M 48 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}]]},{name:"1-5+1-5+1-5+1-5+1-5",title:(0,l.__)("Fifths","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 12 0 V 30 M 24 0 V 30 M 36 0 V 30 M 48 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}]]},{name:"4-6+1-6+1-6",title:(0,l.__)("Sixths 4-1-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 30 0 V 30 M 40 0 V 30 M 50 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}]]},{name:"1-6+1-6+4-6",title:(0,l.__)("Sixths 1-1-4","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 10 0 V 30 M 20 0 V 30 M 30 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}]]},{name:"1-6+4-6+1-6",title:(0,l.__)("Sixths 1-4-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 10 0 V 30 M 50 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}]]},{name:"1-6+1-6+1-6+1-6+1-6+1-6",title:(0,l.__)("Sixths 1-1-1-1-1-1","uikit-editor-blocks"),icon:(0,k.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,k.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 10 0 V 30 M 20 0 V 30 M 30 0 V 30 M 40 0 V 30 M 50 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}]]}];re=(e=>e.map((e=>({icon:s,...e}))))(re);const de=(0,ee.applyFilters)("uikitEditorBlocks.grid.enableCustomTemplate",!0);de&&re.push({name:oe,title:(0,l.__)("Custom","uikit-editor-blocks"),icon:s,templateLock:!1,template:[["uikit-editor-blocks/grid-column"]]});let ke=[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}];const se=e=>{const l=re.find((l=>l.name===e));return l?l.template:[]},ue=e=>{const l=re.find((l=>l.name===e));return!!l&&l.templateLock};class ne extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:s}=this.props,{blockId:u,layout:n,columnGap:b,rowGap:c,columnMatch:_,divider:g,centerColumns:v,centerRows:m}=i;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(ie,{children:[(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Layout","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)("ul",{className:"uikit-editor-blocks-template-selector-list",children:re.map(((e,l)=>(0,k.jsx)("li",{className:"uikit-editor-blocks-template-selector-button",children:(0,k.jsx)(a.IconButton,{label:e.title,icon:e.icon,onClick:()=>{(e=>{const l=re.find((l=>l.name===e));l&&(r.forEach(((e,i)=>{if(l.template.length>i){const t=l.template[i][1];d(e.clientId,t)}})),t({layout:e}))})(e.name)},className:n===e.name?"is-active":null,children:(0,k.jsx)("div",{className:"uikit-editor-blocks-template-selector-button-label",children:e.title})})},l)))})}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Grid","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Column Gap","uikit-editor-blocks"),value:b,options:ke,onChange:e=>{t({columnGap:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Row Gap","uikit-editor-blocks"),value:c,options:ke,onChange:e=>{t({rowGap:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Column Equal Height","uikit-editor-blocks"),checked:_,onChange:e=>t({columnMatch:e})}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Show Divider","uikit-editor-blocks"),checked:g,onChange:e=>t({divider:e})}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Center Columns","uikit-editor-blocks"),checked:v,onChange:e=>t({centerColumns:e})}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Center Rows","uikit-editor-blocks"),checked:m,onChange:e=>t({centerRows:e})})]})]}),(0,k.jsx)("div",{className:e,children:(0,k.jsx)(te,{allowedBlocks:ae,template:se(n),templateLock:ue(n),orientation:"horizontal"})})]})}}const be=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),ce=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),_e=(0,r.compose)(be,ce)(ne),ge=de&&e.createBlocksFromInnerBlocksTemplate?{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:l=>{const i=Math.max(Math.round(12/l.length),3),t=l.map((({name:e,attributes:l,innerBlocks:t})=>["uikit-editor-blocks/grid-column",{sizeMd:i},[[e,{...l},t]]]));return(0,e.createBlock)("uikit-editor-blocks/grid",{template:oe},(0,e.createBlocksFromInnerBlocksTemplate)(t))}}]}:{},{InnerBlocks:ve}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/grid",{title:(0,l.__)("Grid (UIkit)","uikit-editor-blocks"),icon:b,category:"uikit-editor-blocks",keywords:[(0,l.__)("Grid","uikit-editor-blocks"),(0,l.__)("UIkit Grid","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],transforms:ge,edit:_e,save:()=>(0,k.jsx)(ve.Content,{})});const{InspectorControls:me,ColorPalette:he,MediaUploadCheck:xe,MediaUpload:pe,InnerBlocks:Ce}=i||t,je=["image"];let Se=[{label:(0,l.__)("Inherit","uikit-editor-blocks"),value:""},{label:(0,l.__)("1/1","uikit-editor-blocks"),value:"1-1"},{label:(0,l.__)("1/2","uikit-editor-blocks"),value:"1-2"},{label:(0,l.__)("1/3","uikit-editor-blocks"),value:"1-3"},{label:(0,l.__)("2/3","uikit-editor-blocks"),value:"2-3"},{label:(0,l.__)("1/4","uikit-editor-blocks"),value:"1-4"},{label:(0,l.__)("3/4","uikit-editor-blocks"),value:"3-4"},{label:(0,l.__)("1/5","uikit-editor-blocks"),value:"1-5"},{label:(0,l.__)("2/5","uikit-editor-blocks"),value:"2-5"},{label:(0,l.__)("3/5","uikit-editor-blocks"),value:"3-5"},{label:(0,l.__)("4/5","uikit-editor-blocks"),value:"4-5"},{label:(0,l.__)("1/6","uikit-editor-blocks"),value:"1-6"},{label:(0,l.__)("5/6","uikit-editor-blocks"),value:"5-6"},{label:(0,l.__)("Expand","uikit-editor-blocks"),value:"expand"},{label:(0,l.__)("Auto","uikit-editor-blocks"),value:"auto"}];class ye extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,hasChildBlocks:r,bgImage:d,clientId:s}=this.props,{blockId:u,defaultWidth:n,smallWidth:b,mediumWidth:c,largeWidth:_,xlargeWidth:g,orderFirst:v,bgColor:m,bgImageMediaId:h,bgImageSize:x,bgImagePosition:p,bgImageEffect:C,bgImageParallaxHorizontalStart:j,bgImageParallaxHorizontalEnd:S,bgImageParallaxVerticalStart:y,bgImageParallaxVerticalEnd:T,bgImageVisibility:f,bgImageOverlay:H,bgImageOverlayColor:L}=e;u||t({blockId:s});const B=e=>{t({bgImageMediaId:e.id})};return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(me,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Grid Column","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Phone Portrait","uikit-editor-blocks"),value:n,options:Se.filter((e=>""!==e.value)),onChange:e=>{t({defaultWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Phone Landscape","uikit-editor-blocks"),value:b,options:Se,onChange:e=>{t({smallWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Tablet Landscape","uikit-editor-blocks"),value:c,options:Se,onChange:e=>{t({mediumWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Desktop","uikit-editor-blocks"),value:_,options:Se,onChange:e=>{t({largeWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Large Screens","uikit-editor-blocks"),value:g,options:Se,onChange:e=>{t({xlargeWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Order First","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Always","uikit-editor-blocks"),value:"always"},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({orderFirst:e})}})]}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Background Color","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(he,{value:m,onChange:e=>{t({bgColor:e})}})}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Background Image","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.BaseControl,{children:(0,k.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,k.jsx)(xe,{fallback:(0,k.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,k.jsx)(pe,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:B,allowedTypes:je,value:h,render:({open:e})=>(0,k.jsxs)(a.Button,{className:h?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!h&&(0,l.__)("Set image","uikit-editor-blocks"),!!h&&!d&&(0,k.jsx)(a.Spinner,{}),!!h&&d&&(0,k.jsx)(a.ResponsiveWrapper,{naturalWidth:d.media_details.width,naturalHeight:d.media_details.height,children:(0,k.jsx)("img",{src:d.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!h&&d&&(0,k.jsx)(xe,{children:(0,k.jsx)(pe,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:B,allowedTypes:je,value:h,render:({open:e})=>(0,k.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!h&&(0,k.jsx)(xe,{children:(0,k.jsx)(a.Button,{onClick:()=>{t({bgImageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),h&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Image Size","uikit-editor-blocks"),value:x,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:""},{label:(0,l.__)("Cover","uikit-editor-blocks"),value:"cover"},{label:(0,l.__)("Contain","uikit-editor-blocks"),value:"contain"},{label:(0,l.__)("Width 100%","uikit-editor-blocks"),value:"full-width"},{label:(0,l.__)("Height 100%","uikit-editor-blocks"),value:"full-height"}],onChange:e=>{t({bgImageSize:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Image Position","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Center","uikit-editor-blocks"),value:"center-center"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"}],onChange:e=>{t({bgImagePosition:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Image Effect","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("Parallax","uikit-editor-blocks"),value:"parallax"},{label:(0,l.__)("Fixed","uikit-editor-blocks"),value:"fixed"},{label:(0,l.__)("None","uikit-editor-blocks"),value:" "}],onChange:e=>{t({bgImageEffect:e})}}),"parallax"==C&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.RangeControl,{label:(0,l.__)("Horizontal Start","uikit-editor-blocks"),value:j,onChange:e=>{t({bgImageParallaxHorizontalStart:e})},min:-600,max:600,step:10}),(0,k.jsx)(a.RangeControl,{label:(0,l.__)("Horizontal End","uikit-editor-blocks"),value:S,onChange:e=>{t({bgImageParallaxHorizontalEnd:e})},min:-600,max:600,step:10}),(0,k.jsx)(a.RangeControl,{label:(0,l.__)("Vertical Start","uikit-editor-blocks"),value:y,onChange:e=>{t({bgImageParallaxVerticalStart:e})},min:-600,max:600,step:10}),(0,k.jsx)(a.RangeControl,{label:(0,l.__)("Vertical End","uikit-editor-blocks"),value:T,onChange:e=>{t({bgImageParallaxVerticalEnd:e})},min:-600,max:600,step:10})]}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Visibility","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({bgImageVisibility:e})}}),(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Overlay","uikit-editor-blocks"),checked:!!H,onChange:e=>{t({bgImageOverlay:e})}},"togglecontrol")]}),h&&H&&(0,k.jsx)(he,{value:L,enableAlpha:!0,onChange:e=>{t({bgImageOverlayColor:e})}})]})]}),(0,k.jsx)("div",{className:i,children:(0,k.jsx)(Ce,{templateLock:!1,renderAppender:r?void 0:()=>(0,k.jsx)(Ce.ButtonBlockAppender,{})})})]})}}const Te=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{bgImageMediaId:i}=l.attributes,{getMedia:t}=e("core"),{clientId:o}=l,{getBlockOrder:a}=e("core/block-editor")||e("core/editor");return{hasChildBlocks:a(o).length>0,bgImage:i?t(i):null}})))(ye),{InnerBlocks:fe}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/grid-column",{title:(0,l.__)("Grid Column (UIkit)","uikit-editor-blocks"),icon:n,category:"uikit-editor-blocks",keywords:[(0,l.__)("Grid Column","uikit-editor-blocks"),(0,l.__)("UIkit Grid Column","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/grid"],getEditWrapperProps(e){const{defaultWidth:l,smallWidth:i,mediumWidth:t,largeWidth:o,xlargeWidth:a}=e;return{"data-width":o}},edit:Te,save:()=>(0,k.jsx)(fe.Content,{})});const{RichText:He,InspectorControls:Le}=i||t;class Be extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,text:s,style:u,decoration:n,color:b,element:c}=e;return d||t({blockId:r}),(0,k.jsx)(o.Fragment,{children:(0,k.jsxs)("div",{className:i,children:[(0,k.jsx)(He,{placeholder:(0,l.__)("Heading ","uikit-editor-blocks"),value:s,onChange:e=>t({text:e}),formattingControls:[],keepPlaceholderOnFocus:!0}),(0,k.jsx)(Le,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Heading","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({style:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({decoration:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{t({color:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({element:e})}})]})})]})})}}const Ie=Be;(0,e.registerBlockType)("uikit-editor-blocks/heading",{title:(0,l.__)("Heading (UIkit)","uikit-editor-blocks"),icon:u,category:"uikit-editor-blocks",keywords:[(0,l.__)("Heading","uikit-editor-blocks"),(0,l.__)("UIkit Heading","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Ie,save:()=>null});const{InspectorControls:We,MediaUploadCheck:Me,MediaUpload:we}=i||t,Pe="noreferrer noopener",De=["image"];class Ne extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,image:r,clientId:d}=this.props,{blockId:s,mediaId:u,mediaUrl:n,width:b,height:c,alt:_,linkUrl:g,linkTarget:v,linkRel:m,linkTitle:h,linkAriaLabel:x,border:p}=e;s||t({blockId:d});const C=e=>{t({mediaId:e.id,mediaUrl:e.url})};return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(We,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.BaseControl,{children:(0,k.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,k.jsx)(Me,{fallback:(0,k.jsx)("p",{children:(0,l.__)("To edit the image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,k.jsx)(we,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:C,allowedTypes:De,value:u,render:({open:e})=>(0,k.jsxs)(a.Button,{className:u?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!u&&(0,l.__)("Set image","uikit-editor-blocks"),!!u&&!r&&(0,k.jsx)(a.Spinner,{}),!!u&&r&&(0,k.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,k.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!u&&r&&(0,k.jsx)(Me,{children:(0,k.jsx)(we,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:C,allowedTypes:De,value:u,render:({open:e})=>(0,k.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!u&&(0,k.jsx)(Me,{children:(0,k.jsx)(a.Button,{onClick:()=>{t({mediaId:void 0,mediaUrl:""})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),u&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Image Width","uikit-editor-blocks"),value:b,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>t({width:e})}),(0,k.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Image Height","uikit-editor-blocks"),placeholder:(0,l.__)("Auto","uikit-editor-blocks"),value:c,onChange:e=>t({height:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:_,onChange:e=>t({alt:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:g,onChange:e=>t({linkUrl:e})}),g&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=m;l&&!m?i=Pe:l||m!==Pe||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===v}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:m||"",onChange:e=>{t({linkRel:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:h,onChange:e=>{t({linkTitle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:x,onChange:e=>{t({linkAriaLabel:e})}})]})]})]}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Image","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Border","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Rounded","uikit-editor-blocks"),value:"rounded"},{label:(0,l.__)("Circle","uikit-editor-blocks"),value:"circle"},{label:(0,l.__)("Pill","uikit-editor-blocks"),value:"pill"}],onChange:e=>{t({border:e})}})})]}),(0,k.jsx)("div",{className:i,children:(0,k.jsx)("img",{src:n})})]})}}const Ae=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{mediaId:i}=l.attributes,{getMedia:t}=e("core");return{image:i?t(i):void 0}})))(Ne);(0,e.registerBlockType)("uikit-editor-blocks/image",{title:(0,l.__)("Image (UIkit)","uikit-editor-blocks"),icon:u,category:"uikit-editor-blocks",keywords:[(0,l.__)("Image","uikit-editor-blocks"),(0,l.__)("UIkit Image","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Ae,save:()=>null});const{InspectorControls:Re,MediaUploadCheck:Ve,MediaUpload:Oe}=i||t,Ue="noreferrer noopener",Xe=["image"];class Ee extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,imageMedia:r,clientId:d}=this.props,{blockId:s,imageMediaId:u,imageWidth:n,imageHeight:b,imageAlt:c,titleText:_,metaText:g,contentText:v,linkUrl:m,linkText:h,linkTarget:x,linkRel:p,linkTitle:C,linkAriaLabel:j,mode:S,hover:y,style:T,textColor:f,padding:H,position:L,margin:B,maxWidth:I,link:W,titleStyle:M,titleDecoration:w,titleColor:P,titleElement:D,titleTopMargin:N,metaStyle:A,metaColor:R,metaAlignment:V,metaElement:O,metaTopMargin:U,contentStyle:X,contentTopMargin:E,linkStyle:F,linkButtonSize:z,linkTopMargin:G}=e;s||t({blockId:d});const Q=e=>{t({imageMediaId:e.id})};return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(Re,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.BaseControl,{children:(0,k.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,k.jsx)(Ve,{fallback:(0,k.jsx)("p",{children:(0,l.__)("To edit the image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,k.jsx)(Oe,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:Q,allowedTypes:Xe,value:u,render:({open:e})=>(0,k.jsxs)(a.Button,{className:u?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!u&&(0,l.__)("Set image","uikit-editor-blocks"),!!u&&!r&&(0,k.jsx)(a.Spinner,{}),!!u&&r&&(0,k.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,k.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!u&&r&&(0,k.jsx)(Ve,{children:(0,k.jsx)(Oe,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:Q,allowedTypes:Xe,value:u,render:({open:e})=>(0,k.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!u&&(0,k.jsx)(Ve,{children:(0,k.jsx)(a.Button,{onClick:()=>{t({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),u&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Image Width","uikit-editor-blocks"),value:n,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageWidth:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Image Height","uikit-editor-blocks"),value:b,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageHeight:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:c,onChange:e=>{t({imageAlt:e})}})]}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:_,onChange:e=>{t({titleText:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:g,onChange:e=>{t({metaText:e})}}),(0,k.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:v,onChange:e=>{t({contentText:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:m,onChange:e=>t({linkUrl:e})}),m&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:h,onChange:e=>{t({linkText:e})}}),(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=p;l&&!p?i=Ue:l||p!==Ue||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===x}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:p||"",onChange:e=>{t({linkRel:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:C,onChange:e=>{t({linkTitle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:j,onChange:e=>{t({linkAriaLabel:e})}})]})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Overlay","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Mode","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("Cover","uikit-editor-blocks"),value:"cover"},{label:(0,l.__)("Caption","uikit-editor-blocks"),value:"caption"}],onChange:e=>{t({mode:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Display Overlay on Hover","uikit-editor-blocks"),checked:y,onChange:e=>t({hover:e})}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:T,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Overlay Default","uikit-editor-blocks"),value:"overlay-default"},{label:(0,l.__)("Overlay Primary","uikit-editor-blocks"),value:"overlay-primary"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{t({style:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({textColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({padding:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("Top","uikit-editor-blocks"),value:"top"},{label:(0,l.__)("Bottom","uikit-editor-blocks"),value:"bottom"},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"}],onChange:e=>{t({position:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({margin:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Max Width","uikit-editor-blocks"),value:I,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("Xlarge","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("2Xlarge","uikit-editor-blocks"),value:"2xlarge"}],onChange:e=>{t({maxWidth:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Link Overlay","uikit-editor-blocks"),checked:W,onChange:e=>t({link:e})})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:M,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({titleStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({titleDecoration:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:P,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({titleColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({titleTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({metaStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({metaColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{t({metaAlignment:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:O,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({metaElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:U,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({metaTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:X,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({contentStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:E,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({contentTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:F,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{t({linkStyle:e})}}),("button-default"==F||"button-primary"==F||"button-secondary"==F||"button-danger"==F||"button-text"==F)&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:z,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({linkButtonSize:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:G,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({linkTopMargin:e})}})]})]}),(0,k.jsx)("div",{className:i,children:""!=_?_:(0,l.__)("Title","uikit-editor-blocks")})]})}}const Fe=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{getMedia:i}=e("core"),{imageMediaId:t}=l.attributes;return{imageMedia:t?i(t):t}})))(Ee);(0,e.registerBlockType)("uikit-editor-blocks/overlay",{title:(0,l.__)("Overlay (UIkit)","uikit-editor-blocks"),icon:u,category:"uikit-editor-blocks",keywords:[(0,l.__)("Overlay","uikit-editor-blocks"),(0,l.__)("UIkit Overlay","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Fe,save:()=>null});const{InspectorControls:ze,InnerBlocks:Ge}=i||t,Qe=["uikit-editor-blocks/overlay-slider-item"];let Je=[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],qe=[{label:(0,l.__)("Inherit","uikit-editor-blocks"),value:""},{label:(0,l.__)("100%","uikit-editor-blocks"),value:"1-1"},{label:(0,l.__)("83%","uikit-editor-blocks"),value:"5-6"},{label:(0,l.__)("80%","uikit-editor-blocks"),value:"4-5"},{label:(0,l.__)("60%","uikit-editor-blocks"),value:"3-5"},{label:(0,l.__)("50%","uikit-editor-blocks"),value:"1-2"},{label:(0,l.__)("33%","uikit-editor-blocks"),value:"1-3"},{label:(0,l.__)("25%","uikit-editor-blocks"),value:"1-4"},{label:(0,l.__)("20%","uikit-editor-blocks"),value:"1-5"},{label:(0,l.__)("16%","uikit-editor-blocks"),value:"1-6"}];class Ke extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:s}=this.props,{blockId:u,sliderWidth:n,sliderHeight:b,sliderMinHeight:c,sliderGap:_,sliderDivider:g,sliderDefaultWidth:v,sliderSmallWidth:m,sliderMediumWidth:h,sliderLargeWidth:x,sliderXlargeWidth:p,sliderAutoplay:C,navigation:j,navigationPosition:S,navigationMargin:y,navigationBreakpoint:T,navigationColor:f,slidenavPosition:H,slidenavMargin:L,slidenavBreakpoint:B,slidenavColor:I,overlayMode:W,overlayHover:M,overlayStyle:w,overlayTextColor:P,overlayPadding:D,overlayPosition:N,overlayMargin:A,overlayMaxWidth:R,overlayLink:V,imageWidth:O,imageHeight:U,titleStyle:X,titleDecoration:E,titleColor:F,titleElement:z,titleTopMargin:G,metaStyle:Q,metaColor:J,metaAlignment:q,metaElement:K,metaTopMargin:Y,contentStyle:Z,contentTopMargin:$,linkStyle:ee,linkButtonSize:le,linkTopMargin:ie}=i;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(ze,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Slider","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Item Width Mode","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("Fixed","uikit-editor-blocks"),value:"fixed"},{label:(0,l.__)("Auto","uikit-editor-blocks"),value:"auto"}],onChange:e=>{t({sliderWidth:e})}}),"auto"!=n&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Height","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:""},{label:(0,l.__)("Viewport","uikit-editor-blocks"),value:"viewport"}],onChange:e=>{t({sliderHeight:e})}}),(0,k.jsx)(a.BaseControl,{children:(0,k.jsx)(a.__experimentalNumberControl,{label:(0,l.__)("Min Height","uikit-editor-blocks"),value:c,onChange:e=>{t({sliderMinHeight:e})}})}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Column Gap","uikit-editor-blocks"),value:_,options:Je,onChange:e=>{t({sliderGap:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Show Divider","uikit-editor-blocks"),checked:g,onChange:e=>t({sliderDivider:e})})]}),"auto"!=n&&(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Items","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Phone Portrait","uikit-editor-blocks"),value:v,options:qe.filter((e=>""!==e.value)),onChange:e=>{t({sliderDefaultWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Phone Landscape","uikit-editor-blocks"),value:m,options:qe,onChange:e=>{t({sliderSmallWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Tablet Landscape","uikit-editor-blocks"),value:h,options:qe,onChange:e=>{t({sliderMediumWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Desktop","uikit-editor-blocks"),value:x,options:qe,onChange:e=>{t({sliderLargeWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Large Screens","uikit-editor-blocks"),value:p,options:qe,onChange:e=>{t({sliderXlargeWidth:e})}})]}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Animation","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Autoplay","uikit-editor-blocks"),checked:C,onChange:e=>t({sliderAutoplay:e})})}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Navigation","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Navigation","uikit-editor-blocks"),value:j,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Dotnav","uikit-editor-blocks"),value:"dotnav"}],onChange:e=>{t({navigation:e})}}),""!=j&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{t({navigationPosition:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:y,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({navigationMargin:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Breakpoint","uikit-editor-blocks"),value:T,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({navigationBreakpoint:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({navigationColor:e})}})]})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Slidenav","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavPosition:e})}}),""!=H&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavMargin:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Breakpoint","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({slidenavBreakpoint:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:I,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({slidenavColor:e})}})]})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Overlay","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Mode","uikit-editor-blocks"),value:W,options:[{label:(0,l.__)("Cover","uikit-editor-blocks"),value:"cover"},{label:(0,l.__)("Caption","uikit-editor-blocks"),value:"caption"}],onChange:e=>{t({overlayMode:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Display Overlay on Hover","uikit-editor-blocks"),checked:M,onChange:e=>t({overlayHover:e})}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Overlay Default","uikit-editor-blocks"),value:"overlay-default"},{label:(0,l.__)("Overlay Primary","uikit-editor-blocks"),value:"overlay-primary"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{t({overlayStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:P,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({overlayTextColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({overlayPadding:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("Top","uikit-editor-blocks"),value:"top"},{label:(0,l.__)("Bottom","uikit-editor-blocks"),value:"bottom"},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"}],onChange:e=>{t({overlayPosition:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({overlayMargin:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Max Width","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("Xlarge","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("2Xlarge","uikit-editor-blocks"),value:"2xlarge"}],onChange:e=>{t({overlayMaxWidth:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Link Overlay","uikit-editor-blocks"),checked:V,onChange:e=>t({overlayLink:e})})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Image","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Width","uikit-editor-blocks"),value:O,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageWidth:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Height","uikit-editor-blocks"),value:U,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageHeight:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:X,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({titleStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:E,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({titleDecoration:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:F,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({titleColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:z,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:G,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({titleTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:Q,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({metaStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:J,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({metaColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:q,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{t({metaAlignment:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:K,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({metaElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:Y,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({metaTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:Z,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({contentStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:$,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({contentTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:ee,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{t({linkStyle:e})}}),("button-default"==ee||"button-primary"==ee||"button-secondary"==ee||"button-danger"==ee||"button-text"==ee)&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:le,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({linkButtonSize:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:ie,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({linkTopMargin:e})}})]})]}),(0,k.jsx)("div",{className:e,children:(0,k.jsx)(Ge,{allowedBlocks:Qe})})]})}}const Ye=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),Ze=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),$e=(0,r.compose)(Ye,Ze)(Ke),{InnerBlocks:el}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/overlay-slider",{title:(0,l.__)("Overlay Slider (UIkit)","uikit-editor-blocks"),icon:b,category:"uikit-editor-blocks",keywords:[(0,l.__)("Overlay Slider","uikit-editor-blocks"),(0,l.__)("UIkit Overlay Slider","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:$e,save:()=>(0,k.jsx)(el.Content,{})});const{InspectorControls:ll,MediaUploadCheck:il,MediaUpload:tl}=i||t,ol=["image"],al="noreferrer noopener";class rl extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,bgImage:r,clientId:d}=this.props,{blockId:s,imageMediaId:u,imageAlt:n,titleText:b,metaText:c,contentText:_,linkUrl:g,linkText:v,linkTarget:m,linkRel:h,linkTitle:x,linkAriaLabel:p}=e;s||t({blockId:d});const C=(0,k.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),j=e=>{t({imageMediaId:e.id})};return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(ll,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.BaseControl,{children:(0,k.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,k.jsx)(il,{fallback:C,children:(0,k.jsx)(tl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:ol,value:u,render:({open:e})=>(0,k.jsxs)(a.Button,{className:u?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!u&&(0,l.__)("Set image","uikit-editor-blocks"),!!u&&!r&&(0,k.jsx)(a.Spinner,{}),!!u&&r&&(0,k.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,k.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!u&&r&&(0,k.jsx)(il,{children:(0,k.jsx)(tl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:ol,value:u,render:({open:e})=>(0,k.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!u&&(0,k.jsx)(il,{children:(0,k.jsx)(a.Button,{onClick:()=>{t({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),u&&(0,k.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:n,onChange:e=>t({imageAlt:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:b,onChange:e=>t({titleText:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:c,onChange:e=>t({metaText:e})}),(0,k.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:_,onChange:e=>t({contentText:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:g,onChange:e=>t({linkUrl:e})}),g&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:v,onChange:e=>t({linkText:e})}),(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=h;l&&!h?i=al:l||h!==al||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===m}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:h||"",onChange:e=>{t({linkRel:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:x,onChange:e=>{t({linkTitle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:p,onChange:e=>{t({linkAriaLabel:e})}})]})]})}),(0,k.jsx)("div",{className:i,children:""!=b?b:(0,l.__)("Title","uikit-editor-blocks")})]})}}const dl=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{clientId:i}=l,{getBlockOrder:t}=e("core/block-editor")||e("core/editor"),{getMedia:o}=e("core"),{imageMediaId:a}=l.attributes;return{bgImage:a?o(a):null}})))(rl);(0,e.registerBlockType)("uikit-editor-blocks/overlay-slider-item",{title:(0,l.__)("Overlay Slider Item (UIkit)","uikit-editor-blocks"),icon:n,category:"uikit-editor-blocks",keywords:[(0,l.__)("Overlay Slider Item","uikit-editor-blocks"),(0,l.__)("UIkit Overlay Slider Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/overlay-slider"],edit:dl,save:()=>null});const{InspectorControls:kl,MediaUploadCheck:sl,MediaUpload:ul}=i||t,nl="noreferrer noopener",bl=["image"];class cl extends o.Component{render(){const{attributes:e,setAttributes:i,className:t,image:r,clientId:d}=this.props,{blockId:s,titleText:u,metaText:n,contentText:b,imageMediaId:c,imageWidth:_,imageHeight:g,imageAlt:v,linkUrl:m,linkText:h,linkTarget:x,linkRel:p,linkTitle:C,linkAriaLabel:j,style:S,padding:y,link:T,titleStyle:f,titleDecoration:H,titleColor:L,titleElement:B,titleTopMargin:I,metaStyle:W,metaColor:M,metaAlignment:w,metaElement:P,metaTopMargin:D,contentStyle:N,contentTopMargin:A,linkStyle:R,linkButtonSize:V,linkTopMargin:O}=e;s||i({blockId:d});const U=e=>{i({imageMediaId:e.id})};return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(kl,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:u,onChange:e=>i({titleText:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:n,onChange:e=>i({metaText:e})}),(0,k.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:b,onChange:e=>i({contentText:e})}),(0,k.jsx)(a.BaseControl,{children:(0,k.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,k.jsx)(sl,{fallback:(0,k.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,k.jsx)(ul,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:U,allowedTypes:bl,value:c,render:({open:e})=>(0,k.jsxs)(a.Button,{className:c?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!c&&(0,l.__)("Set image","uikit-editor-blocks"),!!c&&!r&&(0,k.jsx)(a.Spinner,{}),!!c&&r&&(0,k.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,k.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!c&&r&&(0,k.jsx)(sl,{children:(0,k.jsx)(ul,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:U,allowedTypes:bl,value:c,render:({open:e})=>(0,k.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!c&&(0,k.jsx)(sl,{children:(0,k.jsx)(a.Button,{onClick:()=>{i({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),c&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Image Width","uikit-editor-blocks"),value:_,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>i({imageWidth:e})}),(0,k.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Image Height","uikit-editor-blocks"),placeholder:(0,l.__)("Auto","uikit-editor-blocks"),value:g,onChange:e=>i({imageHeight:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Image ALT","uikit-editor-blocks"),value:v,onChange:e=>i({imageAlt:e})})]}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:m,onChange:e=>i({linkUrl:e})}),m&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:h,onChange:e=>{i({linkText:e})}}),(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let t=p;l&&!p?t=nl:l||p!==nl||(t=void 0),i({linkTarget:l,linkRel:t})},checked:"_blank"===x}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:p||"",onChange:e=>{i({linkRel:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:C,onChange:e=>{i({linkTitle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:j,onChange:e=>{i({linkAriaLabel:e})}})]})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Panel","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Card Default","uikit-editor-blocks"),value:"card-default"},{label:(0,l.__)("Card Primary","uikit-editor-blocks"),value:"card-primary"},{label:(0,l.__)("Card Secondary","uikit-editor-blocks"),value:"card-secondary"},{label:(0,l.__)("Card Hover","uikit-editor-blocks"),value:"card-hover"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{i({style:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:y,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{i({padding:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Link panel","uikit-editor-blocks"),checked:T,onChange:e=>i({link:e})})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{i({titleStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{i({titleDecoration:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Mute","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{i({titleColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{i({titleElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:I,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{i({titleTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:W,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{i({metaStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:M,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Mute","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{i({metaColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{i({metaAlignment:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:P,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{i({metaElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{i({metaTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{i({contentStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{i({contentTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{i({linkStyle:e})}}),("button-default"==R||"button-primary"==R||"button-secondary"==R||"button-danger"==R||"button-text"==R)&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{i({linkButtonSize:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:O,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{i({linkTopMargin:e})}})]})]}),(0,k.jsx)("div",{className:t,children:(0,k.jsx)("div",{children:""!=u?u:(0,l.__)("Title","uikit-editor-blocks")})})]})}}const _l=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{imageMediaId:i}=l.attributes,{getMedia:t}=e("core");return{image:i?t(i):null}})))(cl);(0,e.registerBlockType)("uikit-editor-blocks/panel",{title:(0,l.__)("Panel (UIkit)","uikit-editor-blocks"),icon:u,category:"uikit-editor-blocks",keywords:[(0,l.__)("Panel","uikit-editor-blocks"),(0,l.__)("UIkit Panel","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:_l,save:()=>null});const{InspectorControls:gl,InnerBlocks:vl}=i||t,ml=["uikit-editor-blocks/panel-slider-item"];let hl=[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],xl=[{label:(0,l.__)("Inherit","uikit-editor-blocks"),value:""},{label:(0,l.__)("100%","uikit-editor-blocks"),value:"1-1"},{label:(0,l.__)("83%","uikit-editor-blocks"),value:"5-6"},{label:(0,l.__)("80%","uikit-editor-blocks"),value:"4-5"},{label:(0,l.__)("60%","uikit-editor-blocks"),value:"3-5"},{label:(0,l.__)("50%","uikit-editor-blocks"),value:"1-2"},{label:(0,l.__)("33%","uikit-editor-blocks"),value:"1-3"},{label:(0,l.__)("25%","uikit-editor-blocks"),value:"1-4"},{label:(0,l.__)("20%","uikit-editor-blocks"),value:"1-5"},{label:(0,l.__)("16%","uikit-editor-blocks"),value:"1-6"}];class pl extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:s}=this.props,{blockId:u,sliderWidth:n,sliderGap:b,sliderDivider:c,sliderDefaultWidth:_,sliderSmallWidth:g,sliderMediumWidth:v,sliderLargeWidth:m,sliderXlargeWidth:h,sliderAutoplay:x,navigation:p,navigationPosition:C,navigationMargin:j,navigationBreakpoint:S,navigationColor:y,slidenavPosition:T,slidenavMargin:f,slidenavBreakpoint:H,slidenavColor:L,panelStyle:B,panelPadding:I,panelMatch:W,panelLink:M,imageWidth:w,imageHeight:P,titleStyle:D,titleDecoration:N,titleColor:A,titleElement:R,titleTopMargin:V,metaStyle:O,metaColor:U,metaAlignment:X,metaElement:E,metaTopMargin:F,contentStyle:z,contentTopMargin:G,linkStyle:Q,linkButtonSize:J,linkTopMargin:q}=i;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(gl,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Slider","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Item Width Mode","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("Fixed","uikit-editor-blocks"),value:"fixed"},{label:(0,l.__)("Auto","uikit-editor-blocks"),value:"auto"}],onChange:e=>{t({sliderWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Column Gap","uikit-editor-blocks"),value:b,options:hl,onChange:e=>{t({sliderGap:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Show Divider","uikit-editor-blocks"),checked:c,onChange:e=>t({sliderDivider:e})})]}),"auto"!=n&&(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Items","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Phone Portrait","uikit-editor-blocks"),value:_,options:xl.filter((e=>""!==e.value)),onChange:e=>{t({sliderDefaultWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Phone Landscape","uikit-editor-blocks"),value:g,options:xl,onChange:e=>{t({sliderSmallWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Tablet Landscape","uikit-editor-blocks"),value:v,options:xl,onChange:e=>{t({sliderMediumWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Desktop","uikit-editor-blocks"),value:m,options:xl,onChange:e=>{t({sliderLargeWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Large Screens","uikit-editor-blocks"),value:h,options:xl,onChange:e=>{t({sliderXlargeWidth:e})}})]}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Animation","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Autoplay","uikit-editor-blocks"),checked:x,onChange:e=>t({sliderAutoplay:e})})}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Navigation","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Navigation Settings","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Dotnav","uikit-editor-blocks"),value:"dotnav"}],onChange:e=>{t({navigation:e})}}),""!=p&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{t({navigationPosition:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:j,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({navigationMargin:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Breakpoint","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({navigationBreakpoint:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:y,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({navigationColor:e})}})]})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Slidenav","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:T,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("Outsite","uikit-editor-blocks"),value:"outside"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavPosition:e})}}),""!=T&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavMargin:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Breakpoint","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({slidenavBreakpoint:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({slidenavColor:e})}})]})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Panel","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"},{label:(0,l.__)("Card Default","uikit-editor-blocks"),value:"card-default"},{label:(0,l.__)("Card Primary","uikit-editor-blocks"),value:"card-primary"},{label:(0,l.__)("Card Secondary","uikit-editor-blocks"),value:"card-secondary"},{label:(0,l.__)("Card Hover","uikit-editor-blocks"),value:"card-hover"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{t({panelStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:I,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({panelPadding:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Match Height","uikit-editor-blocks"),checked:W,onChange:e=>t({panelMatch:e})}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Link Panel","uikit-editor-blocks"),checked:M,onChange:e=>{t({panelLink:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Image","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Width","uikit-editor-blocks"),value:w,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageWidth:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Height","uikit-editor-blocks"),value:P,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageHeight:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({titleStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({titleDecoration:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({titleColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({titleTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:O,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({metaStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:U,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({metaColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:X,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{t({metaAlignment:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:E,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({metaElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:F,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({metaTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:z,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({contentStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:G,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({contentTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:Q,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{t({linkStyle:e})}}),("button-default"==Q||"button-primary"==Q||"button-secondary"==Q||"button-danger"==Q||"button-text"==Q)&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:J,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({linkButtonSize:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:q,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({linkTopMargin:e})}})]})]}),(0,k.jsx)("div",{className:e,children:(0,k.jsx)(vl,{allowedBlocks:ml})})]})}}const Cl=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),jl=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),Sl=(0,r.compose)(Cl,jl)(pl),{InnerBlocks:yl}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/panel-slider",{title:(0,l.__)("Panel Slider (UIkit)","uikit-editor-blocks"),icon:b,category:"uikit-editor-blocks",keywords:[(0,l.__)("Panel Slider","uikit-editor-blocks"),(0,l.__)("UIkit Panel Slider","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Sl,save:()=>(0,k.jsx)(yl.Content,{})});const{InspectorControls:Tl,MediaUploadCheck:fl,MediaUpload:Hl}=i||t,Ll=["image"],Bl="noreferrer noopener";class Il extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,bgImage:r,clientId:d}=this.props,{blockId:s,titleText:u,metaText:n,contentText:b,imageMediaId:c,imageAlt:_,linkUrl:g,linkText:v,linkTarget:m,linkRel:h,linkTitle:x,linkAriaLabel:p}=e;s||t({blockId:d});const C=(0,k.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),j=e=>{t({imageMediaId:e.id})};return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(Tl,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:u,onChange:e=>t({titleText:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:n,onChange:e=>t({metaText:e})}),(0,k.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:b,onChange:e=>t({contentText:e})}),(0,k.jsx)(a.BaseControl,{children:(0,k.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,k.jsx)(fl,{fallback:C,children:(0,k.jsx)(Hl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:Ll,value:c,render:({open:e})=>(0,k.jsxs)(a.Button,{className:c?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!c&&(0,l.__)("Set image","uikit-editor-blocks"),!!c&&!r&&(0,k.jsx)(a.Spinner,{}),!!c&&r&&(0,k.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,k.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!c&&r&&(0,k.jsx)(fl,{children:(0,k.jsx)(Hl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:Ll,value:c,render:({open:e})=>(0,k.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!c&&(0,k.jsx)(fl,{children:(0,k.jsx)(a.Button,{onClick:()=>{t({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),c&&(0,k.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:_,onChange:e=>t({imageAlt:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:g,onChange:e=>t({linkUrl:e})}),g&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:v,onChange:e=>t({linkText:e})}),(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=h;l&&!h?i=Bl:l||h!==Bl||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===m}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:h||"",onChange:e=>{t({linkRel:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:x,onChange:e=>{t({linkTitle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:p,onChange:e=>{t({linkAriaLabel:e})}})]})]})}),(0,k.jsx)("div",{className:i,children:""!=u?u:(0,l.__)("Title","uikit-editor-blocks")})]})}}const Wl=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{clientId:i}=l,{getBlockOrder:t}=e("core/block-editor")||e("core/editor"),{getMedia:o}=e("core"),{imageMediaId:a}=l.attributes;return{bgImage:a?o(a):null}})))(Il);(0,e.registerBlockType)("uikit-editor-blocks/panel-slider-item",{title:(0,l.__)("Panel Slider Item (UIkit)","uikit-editor-blocks"),icon:n,category:"uikit-editor-blocks",keywords:[(0,l.__)("Panel Slider Item","uikit-editor-blocks"),(0,l.__)("UIkit Panel Slider Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/panel-slider"],edit:Wl,save:()=>null});const{InspectorControls:Ml,ColorPalette:wl,InnerBlocks:Pl,MediaUploadCheck:Dl,MediaUpload:Nl}=i||t,Al=["image"];class Rl extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,hasChildBlocks:r,bgImage:d,clientId:s}=this.props,{blockId:u,style:n,textColor:b,padding:c,removeTopPadding:_,removeBottomPadding:g,container:v,bgColor:m,bgImageMediaId:h,bgImageSize:x,bgImagePosition:p,bgImageEffect:C,bgImageParallaxHorizontalStart:j,bgImageParallaxHorizontalEnd:S,bgImageParallaxVerticalStart:y,bgImageParallaxVerticalEnd:T,bgImageVisibility:f,bgImageOverlay:H,bgImageOverlayColor:L}=e;u||t({blockId:s});const B=e=>{t({bgImageMediaId:e.id})};return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(Ml,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Section","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"}],onChange:e=>{t({style:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({textColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("X-Small","uikit-editor-blocks"),value:"xsmall"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({padding:e})}}),"none"!=c&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Remove Top Padding","uikit-editor-blocks"),checked:_,onChange:e=>t({removeTopPadding:e})}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Remove Bottom Padding","uikit-editor-blocks"),checked:g,onChange:e=>t({removeBottomPadding:e})})]}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Container","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("X-Small","uikit-editor-blocks"),value:"xsmall"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("Expand","uikit-editor-blocks"),value:"expand"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({container:e})}})]}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Background Color","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(wl,{value:m,onChange:e=>{t({bgColor:e})}})}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Background Image","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.BaseControl,{children:(0,k.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,k.jsx)(Dl,{fallback:(0,k.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,k.jsx)(Nl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:B,allowedTypes:Al,value:h,render:({open:e})=>(0,k.jsxs)(a.Button,{className:h?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!h&&(0,l.__)("Set image","uikit-editor-blocks"),!!h&&!d&&(0,k.jsx)(a.Spinner,{}),!!h&&d&&(0,k.jsx)(a.ResponsiveWrapper,{naturalWidth:d.media_details.width,naturalHeight:d.media_details.height,children:(0,k.jsx)("img",{src:d.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!h&&d&&(0,k.jsx)(Dl,{children:(0,k.jsx)(Nl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:B,allowedTypes:Al,value:h,render:({open:e})=>(0,k.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!h&&(0,k.jsx)(Dl,{children:(0,k.jsx)(a.Button,{onClick:()=>{t({bgImageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),h&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Image Size","uikit-editor-blocks"),value:x,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:""},{label:(0,l.__)("Cover","uikit-editor-blocks"),value:"cover"},{label:(0,l.__)("Contain","uikit-editor-blocks"),value:"contain"},{label:(0,l.__)("Width 100%","uikit-editor-blocks"),value:"full-width"},{label:(0,l.__)("Height 100%","uikit-editor-blocks"),value:"full-height"}],onChange:e=>{t({bgImageSize:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Image Position","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Center","uikit-editor-blocks"),value:"center-center"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"}],onChange:e=>{t({bgImagePosition:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Image Effect","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Parallax","uikit-editor-blocks"),value:"parallax"},{label:(0,l.__)("Fixed","uikit-editor-blocks"),value:"fixed"}],onChange:e=>{t({bgImageEffect:e})}}),"parallax"==C&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.RangeControl,{label:(0,l.__)("Horizontal Start","uikit-editor-blocks"),value:j,onChange:e=>{t({bgImageParallaxHorizontalStart:e})},min:-600,max:600,step:10}),(0,k.jsx)(a.RangeControl,{label:(0,l.__)("Horizontal End","uikit-editor-blocks"),value:S,onChange:e=>{t({bgImageParallaxHorizontalEnd:e})},min:-600,max:600,step:10}),(0,k.jsx)(a.RangeControl,{label:(0,l.__)("Vertical Start","uikit-editor-blocks"),value:y,onChange:e=>{t({bgImageParallaxVerticalStart:e})},min:-600,max:600,step:10}),(0,k.jsx)(a.RangeControl,{label:(0,l.__)("Vertical End","uikit-editor-blocks"),value:T,onChange:e=>{t({bgImageParallaxVerticalEnd:e})},min:-600,max:600,step:10})]}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Visibility","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({bgImageVisibility:e})}}),(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Overlay","uikit-editor-blocks"),checked:!!H,onChange:e=>{t({bgImageOverlay:e})}},"togglecontrol")]}),h&&H&&(0,k.jsx)(wl,{value:L,enableAlpha:!0,onChange:e=>{t({bgImageOverlayColor:e})}})]})]}),(0,k.jsx)("div",{className:i,children:(0,k.jsx)(Pl,{renderAppender:r?void 0:()=>(0,k.jsx)(Pl.ButtonBlockAppender,{})})})]})}}const Vl=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{bgImageMediaId:i}=l.attributes,{getMedia:t}=e("core"),{clientId:o}=l,{getBlockOrder:a}=e("core/block-editor")||e("core/editor");return{hasChildBlocks:a(o).length>0,bgImage:i?t(i):null}})))(Rl),{InnerBlocks:Ol}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/section",{title:(0,l.__)("Section (UIkit)","uikit-editor-blocks"),icon:c,category:"uikit-editor-blocks",keywords:[(0,l.__)("Section","uikit-editor-blocks"),(0,l.__)("UIkit Section","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Vl,save:()=>(0,k.jsx)(Ol.Content,{})});const{InspectorControls:Ul,InnerBlocks:Xl}=i||t,El=["uikit-editor-blocks/slideshow-item"];class Fl extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:s}=this.props,{blockId:u,height:n,heightViewport:b,ratio:c,minHeight:_,maxHeight:g,textColor:v,boxShadow:m,animation:h,autoplay:x,navigation:p,navigationPosition:C,navigationMargin:j,slidenavPosition:S,slidenavMargin:y,overlayContainerWidth:T,overlayContainerPadding:f,overlayMargin:H,overlayPosition:L,overlayStyle:B,overlayPadding:I,overlayWidth:W,overlayAnimation:M,titleStyle:w,titleDecoration:P,titleColor:D,titleElement:N,titleTopMargin:A,metaStyle:R,metaColor:V,metaAlignment:O,metaElement:U,metaTopMargin:X,contentStyle:E,contentTopMargin:F,linkStyle:z,linkButtonSize:G,linkTopMargin:Q}=i;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(Ul,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Slideshow","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Height","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:""},{label:(0,l.__)("Viewport","uikit-editor-blocks"),value:"viewport"}],onChange:e=>{t({height:e})}}),"viewport"===n&&(0,k.jsx)(a.TextControl,{label:(0,l.__)("Height Viewport","uikit-editor-blocks"),placeholder:(0,l.__)("100","uikit-editor-blocks"),value:b,onChange:e=>{t({heightViewport:e})}}),""===n&&(0,k.jsx)(a.TextControl,{label:(0,l.__)("Ratio","uikit-editor-blocks"),placeholder:(0,l.__)("16:9","uikit-editor-blocks"),value:c,onChange:e=>{t({ratio:e})}}),(0,k.jsx)(a.BaseControl,{children:(0,k.jsx)(a.__experimentalNumberControl,{label:(0,l.__)("Min Height","uikit-editor-blocks"),value:_,onChange:e=>{t({minHeight:e})}})}),""===n&&(0,k.jsx)(a.BaseControl,{children:(0,k.jsx)(a.__experimentalNumberControl,{label:(0,l.__)("Max Height","uikit-editor-blocks"),value:g,onChange:e=>{t({maxHeight:e})}})}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({textColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Box Shadow","uikit-editor-blocks"),value:m,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({boxShadow:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Animation","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Transition","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("Slide","uikit-editor-blocks"),value:"slide"},{label:(0,l.__)("Pull","uikit-editor-blocks"),value:"pull"},{label:(0,l.__)("Push","uikit-editor-blocks"),value:"push"},{label:(0,l.__)("Fade","uikit-editor-blocks"),value:"fade"},{label:(0,l.__)("Scale","uikit-editor-blocks"),value:"scale"}],onChange:e=>{t({animation:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Autoplay","uikit-editor-blocks"),checked:x,onChange:e=>t({autoplay:e})})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Navigation","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Navigation","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Dotnav","uikit-editor-blocks"),value:"dotnav"}],onChange:e=>{t({navigation:e})}}),""!=p&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"}],onChange:e=>{t({navigationPosition:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:j,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({navigationMargin:e})}})]})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Slidenav","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavPosition:e})}}),""!=S&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:y,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Overlay","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Container Width","uikit-editor-blocks"),value:T,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("Expand","uikit-editor-blocks"),value:"expand"}],onChange:e=>{t({overlayContainerWidth:e})}}),""!=T&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Container Padding","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("X-Small","uikit-editor-blocks"),value:"xsmall"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({overlayContainerPadding:e})}}),""==T&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({overlayMargin:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("Top","uikit-editor-blocks"),value:"top"},{label:(0,l.__)("Bottom","uikit-editor-blocks"),value:"bottom"},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Center","uikit-editor-blocks"),value:"center-center"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"}],onChange:e=>{t({overlayPosition:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Overlay Default","uikit-editor-blocks"),value:"overlay-default"},{label:(0,l.__)("Overlay Primary","uikit-editor-blocks"),value:"overlay-primary"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{t({overlayStyle:e})}}),""!=B&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:I,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({overlayPadding:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Width","uikit-editor-blocks"),value:W,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("2X-Large","uikit-editor-blocks"),value:"2xlarge"}],onChange:e=>{t({overlayWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Animation","uikit-editor-blocks"),value:M,options:[{label:(0,l.__)("Fade","uikit-editor-blocks"),value:"fade"},{label:(0,l.__)("Scale Up","uikit-editor-blocks"),value:"scale-up"},{label:(0,l.__)("Scale Down","uikit-editor-blocks"),value:"scale-down"},{label:(0,l.__)("Slide Top Small","uikit-editor-blocks"),value:"slide-top-small"},{label:(0,l.__)("Slide Bottom Small","uikit-editor-blocks"),value:"slide-bottom-small"},{label:(0,l.__)("Slide Left Small","uikit-editor-blocks"),value:"slide-left-small"},{label:(0,l.__)("Slide Right Small","uikit-editor-blocks"),value:"slide-right-small"},{label:(0,l.__)("Slide Top Medium","uikit-editor-blocks"),value:"slide-top-medium"},{label:(0,l.__)("Slide Bottom Medium","uikit-editor-blocks"),value:"slide-bottom-medium"},{label:(0,l.__)("Slide Left Medium","uikit-editor-blocks"),value:"slide-left-medium"},{label:(0,l.__)("Slide Right Medium","uikit-editor-blocks"),value:"slide-right-medium"},{label:(0,l.__)("Slide Top 100%","uikit-editor-blocks"),value:"slide-top"},{label:(0,l.__)("Slide Bottom 100%","uikit-editor-blocks"),value:"slide-bottom"},{label:(0,l.__)("Slide Left 100%","uikit-editor-blocks"),value:"slide-left"},{label:(0,l.__)("Slide Right 100%","uikit-editor-blocks"),value:"slide-right"}],onChange:e=>{t({overlayAnimation:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({titleStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:P,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({titleDecoration:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({titleColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({titleTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({metaStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({metaColor:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:O,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{t({metaAlignment:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:U,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({metaElement:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:X,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({metaTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:E,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({contentStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:F,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({contentTopMargin:e})}})]}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:z,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{t({linkStyle:e})}}),("button-default"==z||"button-primary"==z||"button-secondary"==z||"button-danger"==z||"button-text"==z)&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:G,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({linkButtonSize:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:Q,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({linkTopMargin:e})}})]})]}),(0,k.jsx)("div",{className:e,children:(0,k.jsx)(Xl,{allowedBlocks:El})})]})}}const zl=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),Gl=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),Ql=(0,r.compose)(zl,Gl)(Fl),{InnerBlocks:Jl}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/slideshow",{title:(0,l.__)("Slideshow (UIkit)","uikit-editor-blocks"),icon:b,category:"uikit-editor-blocks",keywords:[(0,l.__)("Slideshow","uikit-editor-blocks"),(0,l.__)("UIkit Slideshow","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Ql,save:()=>(0,k.jsx)(Jl.Content,{})});const{InspectorControls:ql,MediaUploadCheck:Kl,MediaUpload:Yl}=i||t,Zl=["image"],$l="noreferrer noopener";class ei extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,imageMedia:r,clientId:d}=this.props,{blockId:s,imageMediaId:u,imageAlt:n,titleText:b,metaText:c,contentText:_,linkUrl:g,linkText:v,linkTarget:m,linkRel:h,linkTitle:x,linkAriaLabel:p,textColor:C}=e;s||t({blockId:d});const j=e=>{t({imageMediaId:e.id})};return(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(ql,{children:[(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.BaseControl,{children:(0,k.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,k.jsx)(Kl,{fallback:(0,k.jsx)("p",{children:(0,l.__)("To edit the image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,k.jsx)(Yl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:Zl,value:u,render:({open:e})=>(0,k.jsxs)(a.Button,{className:u?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!u&&(0,l.__)("Set image","uikit-editor-blocks"),!!u&&!r&&(0,k.jsx)(a.Spinner,{}),!!u&&r&&(0,k.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,k.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!u&&r&&(0,k.jsx)(Kl,{children:(0,k.jsx)(Yl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:Zl,value:u,render:({open:e})=>(0,k.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!u&&(0,k.jsx)(Kl,{children:(0,k.jsx)(a.Button,{onClick:()=>{t({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),u&&(0,k.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:n,onChange:e=>t({imageAlt:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:b,onChange:e=>t({titleText:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:c,onChange:e=>t({metaText:e})}),(0,k.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:_,onChange:e=>t({contentText:e})}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link url","uikit-editor-blocks"),value:g,onChange:e=>t({linkUrl:e})}),g&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:v,onChange:e=>t({linkText:e})}),(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=h;l&&!h?i=$l:l||h!==$l||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===m}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:h||"",onChange:e=>{t({linkRel:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:x,onChange:e=>{t({linkTitle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:p,onChange:e=>{t({linkAriaLabel:e})}})]})]}),(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Slideshow Item","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({textColor:e})}})})]}),(0,k.jsx)("div",{className:i,children:""!=b?b:(0,l.__)("Title","uikit-editor-blocks")})]})}}const li=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{clientId:i}=l,{getBlockOrder:t}=e("core/block-editor")||e("core/editor"),{getMedia:o}=e("core"),{imageMediaId:a}=l.attributes;return{imageMedia:a?o(a):null}})))(ei);(0,e.registerBlockType)("uikit-editor-blocks/slideshow-item",{title:(0,l.__)("Slideshow Item (UIkit)","uikit-editor-blocks"),icon:n,category:"uikit-editor-blocks",keywords:[(0,l.__)("Slideshow Item","uikit-editor-blocks"),(0,l.__)("UIkit Slideshow Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/slideshow"],edit:li,save:()=>null});const{InnerBlocks:ii,InspectorControls:ti}=i||t,oi=["uikit-editor-blocks/social-icons-item"];class ai extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:s}=this.props,{blockId:u,linkStyle:n,grid:b,gridBreakpoint:c,gridGap:_}=i;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(ti,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Social Icons","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Button","uikit-editor-blocks"),value:"button"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:""},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"},{label:(0,l.__)("Link Reset","uikit-editor-blocks"),value:"link-reset"}],onChange:e=>{t({linkStyle:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Grid","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Horizontal","uikit-editor-blocks"),value:""},{label:(0,l.__)("Vertical","uikit-editor-blocks"),value:"vertical"}],onChange:e=>{t({grid:e})}}),"vertical"==b&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Grid Breakpoint","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({gridBreakpoint:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Grid Gap","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({gridGap:e})}})]})}),(0,k.jsx)("div",{className:e,children:(0,k.jsx)(ii,{allowedBlocks:oi})})]})}}const ri=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),di=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),ki=(0,r.compose)(ri,di)(ai),{InnerBlocks:si}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/social-icons",{title:(0,l.__)("Social Icons (UIkit)","uikit-editor-blocks"),icon:b,category:"uikit-editor-blocks",keywords:[(0,l.__)("Social Icons","uikit-editor-blocks"),(0,l.__)("UIkit Social Icons","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:ki,save:()=>(0,k.jsx)(si.Content,{})});const{InspectorControls:ui}=i||t,ni="noreferrer noopener";class bi extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,icon:s,linkUrl:u,linkTarget:n,linkRel:b,linkTitle:c,linkAriaLabel:_}=e;return d||t({blockId:r}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(ui,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Icon","uikit-editor-blocks"),value:s,options:[{label:(0,l.__)("Facebook","uikit-editor-blocks"),value:"facebook"},{label:(0,l.__)("WhatsApp","uikit-editor-blocks"),value:"whatsapp"},{label:(0,l.__)("Instagram","uikit-editor-blocks"),value:"instagram"},{label:(0,l.__)("YouTube","uikit-editor-blocks"),value:"youtube"},{label:(0,l.__)("Telegram","uikit-editor-blocks"),value:"telegram"},{label:(0,l.__)("GitHub","uikit-editor-blocks"),value:"github"},{label:(0,l.__)("Vimeo","uikit-editor-blocks"),value:"vimeo"},{label:(0,l.__)("Twitch","uikit-editor-blocks"),value:"twitch"},{label:(0,l.__)("SoundCloud","uikit-editor-blocks"),value:"soundcloud"},{label:(0,l.__)("Reddit","uikit-editor-blocks"),value:"reddit"},{label:(0,l.__)("Discord","uikit-editor-blocks"),value:"discord"},{label:(0,l.__)("LinkedIn","uikit-editor-blocks"),value:"linkedin"},{label:(0,l.__)("TikTok","uikit-editor-blocks"),value:"tiktok"},{label:(0,l.__)("Google","uikit-editor-blocks"),value:"google"},{label:(0,l.__)("Pinterest","uikit-editor-blocks"),value:"pinterest"},{label:(0,l.__)("Signal","uikit-editor-blocks"),value:"signal"},{label:(0,l.__)("Threads","uikit-editor-blocks"),value:"threads"}],onChange:e=>{t({icon:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:u,onChange:e=>t({linkUrl:e})}),u&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=b;l&&!b?i=ni:l||b!==ni||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===n}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:b||"",onChange:e=>{t({linkRel:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:c,onChange:e=>{t({linkTitle:e})}}),(0,k.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:_,onChange:e=>{t({linkAriaLabel:e})}})]})]})}),(0,k.jsx)("div",{className:i,children:""!=s?s:(0,l.__)("Title","uikit-editor-blocks")})]})}}const ci=bi;(0,e.registerBlockType)("uikit-editor-blocks/social-icons-item",{title:(0,l.__)("Social Icons Item (UIkit)","uikit-editor-blocks"),icon:n,category:"uikit-editor-blocks",keywords:[(0,l.__)("Social Icons Item","uikit-editor-blocks"),(0,l.__)("UIkit Social Icons Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/social-icons"],edit:ci,save:()=>null});const{InspectorControls:_i,InnerBlocks:gi}=i||t,vi=["uikit-editor-blocks/switcher-item"];class mi extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:s}=this.props,{blockId:u,animation:n,navigation:b,navigationPosition:c,navigationAlignment:_,navigationMargin:g,navigationGridWidth:v,navigationGridColumnGap:m,navigationGridRowGap:h,navigationGridBreakpoint:x,navigationVerticalAlignment:p}=i;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsxs)(_i,{children:[(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Switcher","uikit-editor-blocks"),initialOpen:!1,children:(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Animation","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Fade","uikit-editor-blocks"),value:"fade"},{label:(0,l.__)("Scale Up","uikit-editor-blocks"),value:"scale-up"},{label:(0,l.__)("Scale Down","uikit-editor-blocks"),value:"scale-down"},{label:(0,l.__)("Slide Top Small","uikit-editor-blocks"),value:"slide-top-small"},{label:(0,l.__)("Slide Bottom Small","uikit-editor-blocks"),value:"slide-bottom-small"},{label:(0,l.__)("Slide Left Small","uikit-editor-blocks"),value:"slide-left-small"},{label:(0,l.__)("Slide Right Small","uikit-editor-blocks"),value:"slide-right-small"},{label:(0,l.__)("Slide Top Medium","uikit-editor-blocks"),value:"slide-top-medium"},{label:(0,l.__)("Slide Bottom Medium","uikit-editor-blocks"),value:"slide-bottom-medium"},{label:(0,l.__)("Slide Left Medium","uikit-editor-blocks"),value:"slide-left-medium"},{label:(0,l.__)("Slide Right Medium","uikit-editor-blocks"),value:"slide-right-medium"},{label:(0,l.__)("Slide Top 100%","uikit-editor-blocks"),value:"slide-top"},{label:(0,l.__)("Slide Bottom 100%","uikit-editor-blocks"),value:"slide-bottom"},{label:(0,l.__)("Slide Left 100%","uikit-editor-blocks"),value:"slide-left"},{label:(0,l.__)("Slide Right 100%","uikit-editor-blocks"),value:"slide-right"}],onChange:e=>{t({animation:e})}})}),(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Navigation","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Navigation","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Tabs","uikit-editor-blocks"),value:"tabs"},{label:(0,l.__)("Subnav Pill (Nav)","uikit-editor-blocks"),value:"subnav-pill"},{label:(0,l.__)("Subnav Divider (Nav)","uikit-editor-blocks"),value:"subnav-divider"},{label:(0,l.__)("Subnav (Nav)","uikit-editor-blocks"),value:"subnav"}],onChange:e=>{t({navigation:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Top","uikit-editor-blocks"),value:"top"},{label:(0,l.__)("Bottom","uikit-editor-blocks"),value:"bottom"},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{t({navigationPosition:e})}}),("top"==c||"bottom"==c)&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Justify","uikit-editor-blocks"),value:"justify"}],onChange:e=>{t({navigationAlignment:e})}}),("top"==c||"bottom"==c)&&(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:g,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"}],onChange:e=>{t({navigationMargin:e})}}),("left"==c||"right"==c)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Grid Width","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:"auto"},{label:(0,l.__)("50%","uikit-editor-blocks"),value:"1-2"},{label:(0,l.__)("33%","uikit-editor-blocks"),value:"1-3"},{label:(0,l.__)("25%","uikit-editor-blocks"),value:"1-4"},{label:(0,l.__)("20%","uikit-editor-blocks"),value:"1-5"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({navigationGridWidth:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Grid Column Gap","uikit-editor-blocks"),value:m,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({navigationGridColumnGap:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Grid Row Gap","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({navigationGridRowGap:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Grid Breakpoint","uikit-editor-blocks"),value:x,options:[{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({navigationGridBreakpoint:e})}}),(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Vertical Alignment","uikit-editor-blocks"),checked:p,onChange:e=>t({navigationVerticalAlignment:e})})]})]})]}),(0,k.jsx)("div",{className:e,children:(0,k.jsx)(gi,{allowedBlocks:vi})})]})}}const hi=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),xi=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),pi=(0,r.compose)(hi,xi)(mi),{InnerBlocks:Ci}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/switcher",{title:(0,l.__)("Switcher (UIkit)","uikit-editor-blocks"),icon:b,category:"uikit-editor-blocks",keywords:[(0,l.__)("Switcher","uikit-editor-blocks"),(0,l.__)("UIkit Switcher","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:pi,save:()=>(0,k.jsx)(Ci.Content,{})});const{InspectorControls:ji,InnerBlocks:Si}=i||t;class yi extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,hasChildBlocks:r,bgImage:d,clientId:s}=this.props,{blockId:u,titleText:n}=e;return u||t({blockId:s}),(0,k.jsxs)(o.Fragment,{children:[(0,k.jsx)(ji,{children:(0,k.jsx)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:(0,k.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:n,onChange:e=>t({titleText:e})})})}),(0,k.jsx)("div",{className:i,children:(0,k.jsx)(Si,{renderAppender:r?void 0:()=>(0,k.jsx)(Si.ButtonBlockAppender,{})})})]})}}const Ti=yi,{InnerBlocks:fi}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/switcher-item",{title:(0,l.__)("Switcher Item (UIkit)","uikit-editor-blocks"),icon:n,category:"uikit-editor-blocks",keywords:[(0,l.__)("Switcher Item","uikit-editor-blocks"),(0,l.__)("UIkit Switcher Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/switcher"],edit:Ti,save:()=>(0,k.jsx)(fi.Content,{})});const{BlockControls:Hi,AlignmentToolbar:Li,RichText:Bi,InspectorControls:Ii}=i||t;class Wi extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,text:s,dropCap:u,style:n,color:b,size:c,element:_,alignment:g}=e;return d||t({blockId:r}),(0,k.jsx)(o.Fragment,{children:(0,k.jsxs)("div",{className:i,children:[(0,k.jsx)(Hi,{children:(0,k.jsx)(Li,{value:g,onChange:e=>{t({alignment:void 0===e?"none":e})}})}),(0,k.jsx)(Bi,{placeholder:(0,l.__)("Enter text here...","uikit-editor-blocks"),value:s,tagName:"div",onChange:e=>t({text:e}),keepPlaceholderOnFocus:!0}),(0,k.jsx)(Ii,{children:(0,k.jsxs)(a.PanelBody,{title:(0,l.__)("Text","uikit-editor-blocks"),initialOpen:!1,children:[(0,k.jsx)(a.CheckboxControl,{label:(0,l.__)("Drop Cap","uikit-editor-blocks"),checked:u,onChange:e=>t({dropCap:e})}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Lead","uikit-editor-blocks"),value:"lead"},{label:(0,l.__)("Meta","uikit-editor-blocks"),value:"meta"}],onChange:e=>{t({style:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Mute","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{t({color:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("Size","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({size:e})}}),(0,k.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("P","uikit-editor-blocks"),value:"p"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({element:e})}})]})})]})})}}const Mi=Wi;(0,e.registerBlockType)("uikit-editor-blocks/text",{title:(0,l.__)("Text (UIkit)","uikit-editor-blocks"),icon:u,category:"uikit-editor-blocks",keywords:[(0,l.__)("Text","uikit-editor-blocks"),(0,l.__)("UIkit Text","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Mi,save:()=>null})})();1 (()=>{"use strict";const e=window.wp.blocks,l=window.wp.i18n,i=window.wp.blockEditor,t=window.wp.editor,o=window.wp.element,a=window.wp.components,r=window.wp.compose,d=window.wp.data,s=window.ReactJSXRuntime,{InnerBlocks:k,InspectorControls:n}=i||t,u=["uikit-editor-blocks/accordion-item"];class b extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:b}=this.props,{blockId:c,multiple:_,collapsible:g,contentStyle:v,contentTopMargin:h}=i;return c||t({blockId:b}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(n,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Accordion","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Allow Multiple Open Items","uikit-editor-blocks"),checked:_,onChange:e=>t({multiple:e})}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Start With All Items Closed","uikit-editor-blocks"),checked:g,onChange:e=>t({collapsible:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Meta","uikit-editor-blocks"),value:"meta"},{label:(0,l.__)("Lead","uikit-editor-blocks"),value:"lead"}],onChange:e=>{t({contentStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({contentTopMargin:e})}})]})]}),(0,s.jsx)("div",{className:e,children:(0,s.jsx)(k,{allowedBlocks:u})})]})}}const c=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),_=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),g=(0,r.compose)(c,_)(b),v=window.wp.primitives,h=(0,s.jsx)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(v.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})}),{InnerBlocks:m}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/accordion",{title:(0,l.__)("Accordion (UIkit)","uikit-editor-blocks"),icon:h,category:"uikit-editor-blocks",keywords:[(0,l.__)("Accordion","uikit-editor-blocks"),(0,l.__)("UIkit Accordion","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:g,save:()=>(0,s.jsx)(m.Content,{})});const{InspectorControls:x}=i||t;class p extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,titleText:k,contentText:n}=e;return d||t({blockId:r}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(x,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:k,onChange:e=>t({titleText:e})}),(0,s.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:n,onChange:e=>t({contentText:e})})]})}),(0,s.jsx)("div",{className:i,children:""!=k?k:(0,l.__)("Title","uikit-editor-blocks")})]})}}const C=p;(0,e.registerBlockType)("uikit-editor-blocks/accordion-item",{title:(0,l.__)("Accordion Item (UIkit)","uikit-editor-blocks"),icon:h,category:"uikit-editor-blocks",keywords:[(0,l.__)("Accordion Item","uikit-editor-blocks"),(0,l.__)("UIkit Accordion Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/accordion"],edit:C,save:()=>null});const{InspectorControls:j,RichText:S}=i||t,y="noreferrer noopener";class T extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,isSelected:r,clientId:d}=this.props,{blockId:k,text:n,linkUrl:u,linkTarget:b,linkRel:c,linkTitle:_,linkAriaLabel:g,style:v,size:h,fullWidth:m}=e;return k||t({blockId:d}),(0,s.jsx)(o.Fragment,{children:(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(S,{placeholder:(0,l.__)("Add text...","uikit-editor-blocks"),value:n,onChange:e=>t({text:e}),formattingControls:[],keepPlaceholderOnFocus:!0}),(0,s.jsxs)(j,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Text","uikit-editor-blocks"),value:n,onChange:e=>t({text:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link URL","uikit-editor-blocks"),value:u,onChange:e=>t({linkUrl:e})}),u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=c;l&&!c?i=y:l||c!==y||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===b}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:c||"",onChange:e=>{t({linkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:_,onChange:e=>{t({linkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:g,onChange:e=>{t({linkAriaLabel:e})}})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Button","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Text","uikit-editor-blocks"),value:"text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"}],onChange:e=>{t({style:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Size","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({size:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Full Width","uikit-editor-blocks"),checked:m,onChange:e=>t({fullWidth:e})})]})]})]})})}}const H=T,L=(0,s.jsx)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(v.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})});(0,e.registerBlockType)("uikit-editor-blocks/button",{title:(0,l.__)("Button (UIkit)","uikit-editor-blocks"),icon:L,category:"uikit-editor-blocks",keywords:[(0,l.__)("Button","uikit-editor-blocks"),(0,l.__)("UIkit Button","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:H,save:()=>null});const{InspectorControls:f,RichText:w}=i||t;class B extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,titleText:k,contentText:n,style:u,size:b,titleElement:c,contentElement:_}=e;return d||t({blockId:r}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(f,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:k,onChange:e=>t({titleText:e})}),(0,s.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:n,onChange:e=>t({contentText:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Card","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"}],onChange:e=>{t({style:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Size","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({size:e})}})]}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}})}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("p","uikit-editor-blocks"),value:"p"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({contentElement:e})}})})]}),(0,s.jsx)("div",{className:i,children:""!=k?k:(0,l.__)("Title","uikit-editor-blocks")})]})}}const I=B,M=(0,s.jsx)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(v.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})});(0,e.registerBlockType)("uikit-editor-blocks/card",{title:(0,l.__)("Card (UIkit)","uikit-editor-blocks"),icon:M,category:"uikit-editor-blocks",keywords:[(0,l.__)("Card","uikit-editor-blocks"),(0,l.__)("UIkit Card","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:I,save:()=>null});const{InspectorControls:W,InnerBlocks:P}=i||t;class N extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,hasChildBlocks:r,clientId:d}=this.props,{blockId:k,size:n}=e;return k||t({blockId:d}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(W,{children:(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Container","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Size","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("X-Small","uikit-editor-blocks"),value:"xsmall"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("Expand","uikit-editor-blocks"),value:"expand"}],onChange:e=>{t({size:e})}})})}),(0,s.jsx)("div",{className:i,children:(0,s.jsx)(P,{renderAppender:r?void 0:()=>(0,s.jsx)(P.ButtonBlockAppender,{})})})]})}}const A=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{clientId:i}=l,{getBlockOrder:t}=e("core/block-editor")||e("core/editor");return{hasChildBlocks:t(i).length>0}})))(N),D=(0,s.jsx)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(v.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})}),{InnerBlocks:V}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/container",{title:(0,l.__)("Container (UIkit)","uikit-editor-blocks"),icon:D,category:"uikit-editor-blocks",keywords:[(0,l.__)("Container","uikit-editor-blocks"),(0,l.__)("UIkit Container","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:A,save:()=>(0,s.jsx)(V.Content,{})}),e.updateCategory&&(0,e.updateCategory)("uikit-editor-blocks",{icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.jsx)("path",{d:"M443.9 128v256L218 512 0 384V169.7l87.6 45.1v117l133.5 75.5 135.8-75.5v-151l-101.1-57.6 87.6-53.1L443.9 128zM308.6 49.1L223.8 0l-88.6 54.8 86 47.3 87.4-53z"})})});const{InspectorControls:R}=i||t;class O extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,style:k,element:n,alignment:u,alignmentBreakpoint:b,alignmentFallback:c}=e;return d||t({blockId:r}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(R,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Divider","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:k,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Icon","uikit-editor-blocks"),value:"icon"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Vertical","uikit-editor-blocks"),value:"vertical"}],onChange:e=>{t({style:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("hr","uikit-editor-blocks"),value:"hr"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({element:e})}}),"small"==k&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{t({alignment:e})}}),""!=u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment Breakpoint","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({alignmentBreakpoint:e})}}),""!=u&&""!=b&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment Fallback","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Justify","uikit-editor-blocks"),value:"justify"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({alignmentFallback:e})}})]})]})}),(0,s.jsx)("div",{className:i})]})}}const U=O,X=(0,s.jsx)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(v.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});(0,e.registerBlockType)("uikit-editor-blocks/divider",{title:(0,l.__)("Divider (UIkit)","uikit-editor-blocks"),icon:X,category:"uikit-editor-blocks",keywords:[(0,l.__)("Divider","uikit-editor-blocks"),(0,l.__)("UIkit Divider","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:U,save:()=>null});const{InspectorControls:E,InnerBlocks:z}=i||t,F=["uikit-editor-blocks/dropdown-item"];class G extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:k}=this.props,{blockId:n,titleText:u,position:b,buttonSize:c,buttonStyle:_,buttonIcon:g}=i;return n||t({blockId:k}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(E,{children:[(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:u,onChange:e=>{t({titleText:e})}})}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Dropdown","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("top-left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("top-center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("top-right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("bottom-left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("bottom-center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("bottom-right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("left-top","uikit-editor-blocks"),value:"left-top"},{label:(0,l.__)("left-center","uikit-editor-blocks"),value:"left-center"},{label:(0,l.__)("left-bottom","uikit-editor-blocks"),value:"left-bottom"},{label:(0,l.__)("right-top","uikit-editor-blocks"),value:"right-top"},{label:(0,l.__)("right-center","uikit-editor-blocks"),value:"right-center"},{label:(0,l.__)("right-bottom","uikit-editor-blocks"),value:"right-bottom"}],onChange:e=>{t({position:e})}})}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Button","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({buttonSize:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Style","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Text","uikit-editor-blocks"),value:"text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"}],onChange:e=>{t({buttonStyle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Button Icon","uikit-editor-blocks"),value:g,onChange:e=>{t({buttonIcon:e})}})]})]}),(0,s.jsx)("div",{className:e,children:(0,s.jsx)(z,{allowedBlocks:F})})]})}}const Z=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),Q=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),J=(0,r.compose)(Z,Q)(G),q=(0,s.jsx)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(v.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),{InnerBlocks:K}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/dropdown",{title:(0,l.__)("Dropdown (UIkit)","uikit-editor-blocks"),icon:q,category:"uikit-editor-blocks",keywords:[(0,l.__)("Dropdown","uikit-editor-blocks"),(0,l.__)("UIkit Dropdown","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:J,save:()=>(0,s.jsx)(K.Content,{})});const{InspectorControls:Y,InnerBlocks:$}=i||t;class ee extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,bgImage:r,clientId:d}=this.props,{blockId:k,titleText:n}=e;return k||t({blockId:d}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(Y,{children:(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:n,onChange:e=>t({titleText:e})})})}),(0,s.jsx)("div",{className:i,children:""!=n?n:(0,l.__)("Title","uikit-editor-blocks")})]})}}const le=ee;(0,e.registerBlockType)("uikit-editor-blocks/dropdown-item",{title:(0,l.__)("Dropdown Item (UIkit)","uikit-editor-blocks"),icon:q,category:"uikit-editor-blocks",keywords:[(0,l.__)("Dropdown Item","uikit-editor-blocks"),(0,l.__)("UIkit Dropdown Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/dropdown"],edit:le,save:()=>null});const ie=window.wp.hooks,te=(0,r.createHigherOrderComponent)((e=>t=>{const{attributes:r,setAttributes:d}=t,{ueb_margin:k,ueb_removeTopMargin:n,ueb_removeBottomMargin:u,ueb_textAlignment:b,ueb_textAlignmentBreakpoint:c,ueb_textAlignmentFallback:_,ueb_maxWidth:g,ueb_maxWidthBreakpoint:v,ueb_blockAlignment:h,ueb_blockAlignmentBreakpoint:m,ueb_blockAlignmentFallback:x,ueb_visibility:p,ueb_animation:C,ueb_animationDelay:j,ueb_parallaxHorizontalStart:S,ueb_parallaxHorizontalEnd:y,ueb_parallaxVerticalStart:T,ueb_parallaxVerticalEnd:H,ueb_parallaxScaleStart:L,ueb_parallaxScaleEnd:f,ueb_parallaxRotateStart:w,ueb_parallaxRotateEnd:B,ueb_parallaxOpacityStart:I,ueb_parallaxOpacityEnd:M,ueb_disableBlock:W}=r;return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(e,{...t}),(0,s.jsx)(i.InspectorControls,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("General (UIkit)","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:k,options:[{label:(0,l.__)("Keep existing","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{d({ueb_margin:e})}}),""!=k&&(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Remove top margin","uikit-editor-blocks"),checked:n,onChange:e=>d({ueb_removeTopMargin:e})}),""!=k&&(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Remove bottom margin","uikit-editor-blocks"),checked:u,onChange:e=>d({ueb_removeBottomMargin:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Text alignment","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Justify","uikit-editor-blocks"),value:"justify"}],onChange:e=>{d({ueb_textAlignment:e})}}),""!=b&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Text alignment breakpoint","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{d({ueb_textAlignmentBreakpoint:e})}}),""!=b&&""!=c&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Text alignment fallback","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Justify","uikit-editor-blocks"),value:"justify"}],onChange:e=>{d({ueb_textAlignmentFallback:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Max width","uikit-editor-blocks"),value:g,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("2X-Large","uikit-editor-blocks"),value:"2xlarge"}],onChange:e=>{d({ueb_maxWidth:e})}}),""!=g&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Max width breakpoint","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{d({ueb_maxWidthBreakpoint:e})}}),""!=g&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Block alignment","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{d({ueb_blockAlignment:e})}}),""!=g&&""!=h&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Block Alignment Breakpoint","uikit-editor-blocks"),value:m,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{d({ueb_blockAlignmentBreakpoint:e})}}),""!=g&&""!=m&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Block Alignment Fallback","uikit-editor-blocks"),value:x,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{d({ueb_blockAlignmentFallback:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Visibility","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Visible Small (Phone Landscape)","uikit-editor-blocks"),value:"visible-small"},{label:(0,l.__)("Visible Medium (Tablet Landscape)","uikit-editor-blocks"),value:"visible-medium"},{label:(0,l.__)("Visible Large (Desktop)","uikit-editor-blocks"),value:"visible-large"},{label:(0,l.__)("Visible X-Large (Large Screens)","uikit-editor-blocks"),value:"visible-xlarge"},{label:(0,l.__)("Hidden Small (Phone Landscape)","uikit-editor-blocks"),value:"hidden-small"},{label:(0,l.__)("Hidden Medium (Tablet Landscape)","uikit-editor-blocks"),value:"hidden-medium"},{label:(0,l.__)("Hidden Large (Desktop)","uikit-editor-blocks"),value:"hidden-large"},{label:(0,l.__)("Hidden X-Large (Large Screens)","uikit-editor-blocks"),value:"hidden-xlarge"}],onChange:e=>{d({ueb_visibility:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Animation","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Fade","uikit-editor-blocks"),value:"fade"},{label:(0,l.__)("Scale Up","uikit-editor-blocks"),value:"scale-up"},{label:(0,l.__)("Scale Down","uikit-editor-blocks"),value:"scale-down"},{label:(0,l.__)("Slide Top Small","uikit-editor-blocks"),value:"slide-top-small"},{label:(0,l.__)("Slide Bottom Small","uikit-editor-blocks"),value:"slide-bottom-small"},{label:(0,l.__)("Slide Left Small","uikit-editor-blocks"),value:"slide-left-small"},{label:(0,l.__)("Slide Right Small","uikit-editor-blocks"),value:"slide-right-small"},{label:(0,l.__)("Slide Top Medium","uikit-editor-blocks"),value:"slide-top-medium"},{label:(0,l.__)("Slide Bottom Medium","uikit-editor-blocks"),value:"slide-bottom-medium"},{label:(0,l.__)("Slide Left Medium","uikit-editor-blocks"),value:"slide-left-medium"},{label:(0,l.__)("Slide Right Medium","uikit-editor-blocks"),value:"slide-right-medium"},{label:(0,l.__)("Slide Top 100%","uikit-editor-blocks"),value:"slide-top"},{label:(0,l.__)("Slide Bottom 100%","uikit-editor-blocks"),value:"slide-bottom"},{label:(0,l.__)("Slide Left 100%","uikit-editor-blocks"),value:"slide-left"},{label:(0,l.__)("Slide Right 100%","uikit-editor-blocks"),value:"slide-right"},{label:(0,l.__)("Parallax","uikit-editor-blocks"),value:"parallax"}],onChange:e=>{d({ueb_animation:e})}}),""!=C&&"parallax"!=C&&(0,s.jsx)(a.__experimentalNumberControl,{label:(0,l.__)("Animation delay","uikit-editor-blocks"),value:j,onChange:e=>d({ueb_animationDelay:e}),help:(0,l.__)("Delay the element animations in milliseconds, e.g. 100.","uikit-editor-blocks")}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Horizontal start",value:S,onChange:e=>{d({ueb_parallaxHorizontalStart:e})},min:-600,max:600,step:10}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Horizontal end",value:y,onChange:e=>{d({ueb_parallaxHorizontalEnd:e})},min:-600,max:600,step:10}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Vertical start",value:T,onChange:e=>{d({ueb_parallaxVerticalStart:e})},min:-600,max:600,step:10}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Vertical end",value:H,onChange:e=>{d({ueb_parallaxVerticalEnd:e})},min:-600,max:600,step:10}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Scale start",value:L,onChange:e=>{d({ueb_parallaxScaleStart:e})},min:.5,max:2,step:.1}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Scale end",value:f,onChange:e=>{d({ueb_parallaxScaleEnd:e})},min:.5,max:2,step:.1}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Rotate start",value:w,onChange:e=>{d({ueb_parallaxRotateStart:e})},min:0,max:360,step:10}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Rotate end",value:B,onChange:e=>{d({ueb_parallaxRotateEnd:e})},min:0,max:360,step:10}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Opacity start",value:I,onChange:e=>{d({ueb_parallaxOpacityStart:e})},min:0,max:1,step:.1}),"parallax"==C&&(0,s.jsx)(a.RangeControl,{label:"Opacity end",value:M,onChange:e=>{d({ueb_parallaxOpacityEnd:e})},min:0,max:1,step:.1}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Disable Block","uikit-editor-blocks"),checked:W,onChange:e=>d({ueb_disableBlock:e})})]})},"InspectorControls")]})}),"uikitGeneralInspectorControls");(0,ie.addFilter)("blocks.registerBlockType","uikit-editor-blocks/general-attributes",((e,l)=>({...e,attributes:{...e.attributes,ueb_margin:{type:"string",default:""},ueb_removeTopMargin:{type:"boolean",default:!1},ueb_removeBottomMargin:{type:"boolean",default:!1},ueb_textAlignment:{type:"string",default:""},ueb_textAlignmentBreakpoint:{type:"string",default:""},ueb_textAlignmentFallback:{type:"string",default:""},ueb_maxWidth:{type:"string",default:""},ueb_maxWidthBreakpoint:{type:"string",default:""},ueb_blockAlignment:{type:"string",default:"left"},ueb_blockAlignmentBreakpoint:{type:"string",default:""},ueb_blockAlignmentFallback:{type:"string",default:""},ueb_visibility:{type:"string",default:""},ueb_animation:{type:"string",default:""},ueb_animationDelay:{type:"string",default:""},ueb_parallaxHorizontalStart:{type:"number",default:0},ueb_parallaxHorizontalEnd:{type:"number",default:0},ueb_parallaxVerticalStart:{type:"number",default:0},ueb_parallaxVerticalEnd:{type:"number",default:0},ueb_parallaxScaleStart:{type:"decimalPoint",default:1},ueb_parallaxScaleEnd:{type:"decimalPoint",default:1},ueb_parallaxRotateStart:{type:"number",default:0},ueb_parallaxRotateEnd:{type:"number",default:0},ueb_parallaxOpacityStart:{type:"decimalPoint",default:1},ueb_parallaxOpacityEnd:{type:"decimalPoint",default:1},ueb_disableBlock:{type:"boolean",default:!1}}}))),(0,ie.addFilter)("editor.BlockEdit","uikit-editor-blocks/general-inspector",te);const{InspectorControls:oe,InnerBlocks:ae}=i||t,re="custom",de=["uikit-editor-blocks/grid-column"];let se=[{name:"1-1",title:(0,l.__)("Whole","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-1",xlargeWidth:""}]]},{name:"1-2+1-2",title:(0,l.__)("Halves","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 30 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}]]},{name:"1-3+2-3",title:(0,l.__)("Thirds 1-2","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 20 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}]]},{name:"2-3+1-3",title:(0,l.__)("Thirds 2-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 40 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}]]},{name:"1-3+1-3+1-3",title:(0,l.__)("Thirds","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 20 0 V 30 M 40 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-3",xlargeWidth:""}]]},{name:"1-4+3-4",title:(0,l.__)("Quarters 1-3","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 15 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-4",xlargeWidth:""}]]},{name:"3-4+1-4",title:(0,l.__)("Quarters 3-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 45 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}]]},{name:"1-4+1-4+2-4",title:(0,l.__)("Quarters 1-1-2","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 15 0 V 30 M 30 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}]]},{name:"2-4+1-4+1-4",title:(0,l.__)("Quarters 2-1-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 30 0 V 30 M 45 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}]]},{name:"1-4+2-4+1-4",title:(0,l.__)("Quarters 1-2-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 15 0 V 30 M 45 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-2",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}]]},{name:"1-4+1-4+1-4+1-4",title:(0,l.__)("Quarters","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 15 0 V 30 M 30 0 V 30 M 45 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-4",xlargeWidth:""}]]},{name:"1-5+4-5",title:(0,l.__)("Fifths 1-4","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 12 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"4-5",xlargeWidth:""}]]},{name:"4-5+1-5",title:(0,l.__)("Fifths 4-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 48 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"4-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}]]},{name:"2-5+3-5",title:(0,l.__)("Fifths 2-3","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 24 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-5",xlargeWidth:""}]]},{name:"3-5+2-5",title:(0,l.__)("Fifths 3-2","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 36 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-5",xlargeWidth:""}]]},{name:"1-5+1-5+3-5",title:(0,l.__)("Fifths 1-1-3","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 12 0 V 30 M 24 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-5",xlargeWidth:""}]]},{name:"3-5+1-5+1-5",title:(0,l.__)("Fifths 3-1-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 36 0 V 30 M 48 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"3-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}]]},{name:"1-5+1-5+1-5+1-5+1-5",title:(0,l.__)("Fifths","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 12 0 V 30 M 24 0 V 30 M 36 0 V 30 M 48 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-5",xlargeWidth:""}]]},{name:"4-6+1-6+1-6",title:(0,l.__)("Sixths 4-1-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 30 0 V 30 M 40 0 V 30 M 50 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}]]},{name:"1-6+1-6+4-6",title:(0,l.__)("Sixths 1-1-4","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 10 0 V 30 M 20 0 V 30 M 30 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}]]},{name:"1-6+4-6+1-6",title:(0,l.__)("Sixths 1-4-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 10 0 V 30 M 50 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"2-3",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}]]},{name:"1-6+1-6+1-6+1-6+1-6+1-6",title:(0,l.__)("Sixths 1-1-1-1-1-1","uikit-editor-blocks"),icon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 64 34",children:(0,s.jsx)("path",{d:"M 0 0 H 60 V 30 H 0 V 0 M 10 0 V 30 M 20 0 V 30 M 30 0 V 30 M 40 0 V 30 M 50 0 V 30",stroke:"#000","stroke-width":"2",fill:"#fff"})}),templateLock:"all",template:[["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}],["uikit-editor-blocks/grid-column",{defaultWidth:"1-1",smallWidth:"",mediumWidth:"",largeWidth:"1-6",xlargeWidth:""}]]}];se=(e=>e.map((e=>({icon:(0,s.jsx)(a.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M23.58 26.28c0-.600003.1499985-1.099998.45-1.5.3000015-.400002.7433304-.8399976 1.33-1.32.5600028-.4533356.9833319-.8699981 1.27-1.25s.43-.8433306.43-1.39c0-.5466694-.1733316-1.0566643-.52-1.53s-.986662-.71-1.92-.71c-1.1066722 0-1.8533314.2766639-2.24.83-.3866686.5533361-.58 1.1766632-.58 1.87 0 .1466674.0033333.2666662.01.36.0066667.0933338.01.1533332.01.18h-1.78c-.0133334-.0533336-.0266666-.146666-.04-.28-.0133334-.133334-.02-.2733326-.02-.42 0-.7733372.1766649-1.4666636.53-2.08.3533351-.6133364.8899964-1.0999982 1.61-1.46.7200036-.3600018 1.5999948-.54 2.64-.54 1.2133394 0 2.2033295.3233301 2.97.97s1.15 1.5099946 1.15 2.59c0 .7066702-.1033323 1.3033309-.31 1.79-.2066677.4866691-.4533319.8799985-.74 1.18-.2866681.3000015-.6566644.6233316-1.11.97-.4800024.3866686-.8333322.7166653-1.06.99-.2266678.2733347-.34.6233312-.34 1.05v.82h-1.74zm-.14 2.56h2V31h-2zM39 12c1.1046 0 2 .8954 2 2v20c0 1.1046-.8954 2-2 2H9c-1.10457 0-2-.8954-2-2V14c0-1.1046.89543-2 2-2h30zm0 22V14H9v20h30z"})}),...e}))))(se);const ke=(0,ie.applyFilters)("uikitEditorBlocks.grid.enableCustomTemplate",!0);ke&&se.push({name:re,title:(0,l.__)("Custom","uikit-editor-blocks"),icon:(0,s.jsx)(a.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(a.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M23.58 26.28c0-.600003.1499985-1.099998.45-1.5.3000015-.400002.7433304-.8399976 1.33-1.32.5600028-.4533356.9833319-.8699981 1.27-1.25s.43-.8433306.43-1.39c0-.5466694-.1733316-1.0566643-.52-1.53s-.986662-.71-1.92-.71c-1.1066722 0-1.8533314.2766639-2.24.83-.3866686.5533361-.58 1.1766632-.58 1.87 0 .1466674.0033333.2666662.01.36.0066667.0933338.01.1533332.01.18h-1.78c-.0133334-.0533336-.0266666-.146666-.04-.28-.0133334-.133334-.02-.2733326-.02-.42 0-.7733372.1766649-1.4666636.53-2.08.3533351-.6133364.8899964-1.0999982 1.61-1.46.7200036-.3600018 1.5999948-.54 2.64-.54 1.2133394 0 2.2033295.3233301 2.97.97s1.15 1.5099946 1.15 2.59c0 .7066702-.1033323 1.3033309-.31 1.79-.2066677.4866691-.4533319.8799985-.74 1.18-.2866681.3000015-.6566644.6233316-1.11.97-.4800024.3866686-.8333322.7166653-1.06.99-.2266678.2733347-.34.6233312-.34 1.05v.82h-1.74zm-.14 2.56h2V31h-2zM39 12c1.1046 0 2 .8954 2 2v20c0 1.1046-.8954 2-2 2H9c-1.10457 0-2-.8954-2-2V14c0-1.1046.89543-2 2-2h30zm0 22V14H9v20h30z"})}),templateLock:!1,template:[["uikit-editor-blocks/grid-column"]]});let ne=[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}];const ue=e=>{const l=se.find((l=>l.name===e));return l?l.template:[]},be=e=>{const l=se.find((l=>l.name===e));return!!l&&l.templateLock};class ce extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:k}=this.props,{blockId:n,layout:u,columnGap:b,rowGap:c,columnMatch:_,divider:g,centerColumns:v,centerRows:h}=i;return n||t({blockId:k}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(oe,{children:[(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Layout","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)("ul",{className:"uikit-editor-blocks-template-selector-list",children:se.map(((e,l)=>(0,s.jsx)("li",{className:"uikit-editor-blocks-template-selector-button",children:(0,s.jsx)(a.IconButton,{label:e.title,icon:e.icon,onClick:()=>{(e=>{const l=se.find((l=>l.name===e));l&&(r.forEach(((e,i)=>{if(l.template.length>i){const t=l.template[i][1];d(e.clientId,t)}})),t({layout:e}))})(e.name)},className:u===e.name?"is-active":null,children:(0,s.jsx)("div",{className:"uikit-editor-blocks-template-selector-button-label",children:e.title})})},l)))})}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Grid","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Column Gap","uikit-editor-blocks"),value:b,options:ne,onChange:e=>{t({columnGap:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Row Gap","uikit-editor-blocks"),value:c,options:ne,onChange:e=>{t({rowGap:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Column Equal Height","uikit-editor-blocks"),checked:_,onChange:e=>t({columnMatch:e})}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Show Divider","uikit-editor-blocks"),checked:g,onChange:e=>t({divider:e})}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Center Columns","uikit-editor-blocks"),checked:v,onChange:e=>t({centerColumns:e})}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Center Rows","uikit-editor-blocks"),checked:h,onChange:e=>t({centerRows:e})})]})]}),(0,s.jsx)("div",{className:e,children:(0,s.jsx)(ae,{allowedBlocks:de,template:ue(u),templateLock:be(u),orientation:"horizontal"})})]})}}const _e=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),ge=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),ve=(0,r.compose)(_e,ge)(ce),he=ke&&e.createBlocksFromInnerBlocksTemplate?{from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:l=>{const i=Math.max(Math.round(12/l.length),3),t=l.map((({name:e,attributes:l,innerBlocks:t})=>["uikit-editor-blocks/grid-column",{sizeMd:i},[[e,{...l},t]]]));return(0,e.createBlock)("uikit-editor-blocks/grid",{template:re},(0,e.createBlocksFromInnerBlocksTemplate)(t))}}]}:{},me=(0,s.jsx)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(v.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})}),{InnerBlocks:xe}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/grid",{title:(0,l.__)("Grid (UIkit)","uikit-editor-blocks"),icon:me,category:"uikit-editor-blocks",keywords:[(0,l.__)("Grid","uikit-editor-blocks"),(0,l.__)("UIkit Grid","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],transforms:he,edit:ve,save:()=>(0,s.jsx)(xe.Content,{})});const{InspectorControls:pe,ColorPalette:Ce,MediaUploadCheck:je,MediaUpload:Se,InnerBlocks:ye}=i||t,Te=["image"];let He=[{label:(0,l.__)("Inherit","uikit-editor-blocks"),value:""},{label:(0,l.__)("1/1","uikit-editor-blocks"),value:"1-1"},{label:(0,l.__)("1/2","uikit-editor-blocks"),value:"1-2"},{label:(0,l.__)("1/3","uikit-editor-blocks"),value:"1-3"},{label:(0,l.__)("2/3","uikit-editor-blocks"),value:"2-3"},{label:(0,l.__)("1/4","uikit-editor-blocks"),value:"1-4"},{label:(0,l.__)("3/4","uikit-editor-blocks"),value:"3-4"},{label:(0,l.__)("1/5","uikit-editor-blocks"),value:"1-5"},{label:(0,l.__)("2/5","uikit-editor-blocks"),value:"2-5"},{label:(0,l.__)("3/5","uikit-editor-blocks"),value:"3-5"},{label:(0,l.__)("4/5","uikit-editor-blocks"),value:"4-5"},{label:(0,l.__)("1/6","uikit-editor-blocks"),value:"1-6"},{label:(0,l.__)("5/6","uikit-editor-blocks"),value:"5-6"},{label:(0,l.__)("Expand","uikit-editor-blocks"),value:"expand"},{label:(0,l.__)("Auto","uikit-editor-blocks"),value:"auto"}];class Le extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,hasChildBlocks:r,bgImage:d,clientId:k}=this.props,{blockId:n,defaultWidth:u,smallWidth:b,mediumWidth:c,largeWidth:_,xlargeWidth:g,orderFirst:v,bgColor:h,bgImageMediaId:m,bgImageSize:x,bgImagePosition:p,bgImageEffect:C,bgImageParallaxHorizontalStart:j,bgImageParallaxHorizontalEnd:S,bgImageParallaxVerticalStart:y,bgImageParallaxVerticalEnd:T,bgImageVisibility:H,bgImageOverlay:L,bgImageOverlayColor:f}=e;n||t({blockId:k});const w=e=>{t({bgImageMediaId:e.id})};return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(pe,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Grid Column","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Phone Portrait","uikit-editor-blocks"),value:u,options:He.filter((e=>""!==e.value)),onChange:e=>{t({defaultWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Phone Landscape","uikit-editor-blocks"),value:b,options:He,onChange:e=>{t({smallWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Tablet Landscape","uikit-editor-blocks"),value:c,options:He,onChange:e=>{t({mediumWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Desktop","uikit-editor-blocks"),value:_,options:He,onChange:e=>{t({largeWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Large Screens","uikit-editor-blocks"),value:g,options:He,onChange:e=>{t({xlargeWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Order First","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Always","uikit-editor-blocks"),value:"always"},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({orderFirst:e})}})]}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Background Color","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(Ce,{value:h,onChange:e=>{t({bgColor:e})}})}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Background Image","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.BaseControl,{children:(0,s.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,s.jsx)(je,{fallback:(0,s.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,s.jsx)(Se,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:w,allowedTypes:Te,value:m,render:({open:e})=>(0,s.jsxs)(a.Button,{className:m?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!m&&(0,l.__)("Set image","uikit-editor-blocks"),!!m&&!d&&(0,s.jsx)(a.Spinner,{}),!!m&&d&&(0,s.jsx)(a.ResponsiveWrapper,{naturalWidth:d.media_details.width,naturalHeight:d.media_details.height,children:(0,s.jsx)("img",{src:d.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!m&&d&&(0,s.jsx)(je,{children:(0,s.jsx)(Se,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:w,allowedTypes:Te,value:m,render:({open:e})=>(0,s.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!m&&(0,s.jsx)(je,{children:(0,s.jsx)(a.Button,{onClick:()=>{t({bgImageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Size","uikit-editor-blocks"),value:x,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:""},{label:(0,l.__)("Cover","uikit-editor-blocks"),value:"cover"},{label:(0,l.__)("Contain","uikit-editor-blocks"),value:"contain"},{label:(0,l.__)("Width 100%","uikit-editor-blocks"),value:"full-width"},{label:(0,l.__)("Height 100%","uikit-editor-blocks"),value:"full-height"}],onChange:e=>{t({bgImageSize:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Position","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Center","uikit-editor-blocks"),value:"center-center"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"}],onChange:e=>{t({bgImagePosition:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Effect","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("Parallax","uikit-editor-blocks"),value:"parallax"},{label:(0,l.__)("Fixed","uikit-editor-blocks"),value:"fixed"},{label:(0,l.__)("None","uikit-editor-blocks"),value:" "}],onChange:e=>{t({bgImageEffect:e})}}),"parallax"==C&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Horizontal Start","uikit-editor-blocks"),value:j,onChange:e=>{t({bgImageParallaxHorizontalStart:e})},min:-600,max:600,step:10}),(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Horizontal End","uikit-editor-blocks"),value:S,onChange:e=>{t({bgImageParallaxHorizontalEnd:e})},min:-600,max:600,step:10}),(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Vertical Start","uikit-editor-blocks"),value:y,onChange:e=>{t({bgImageParallaxVerticalStart:e})},min:-600,max:600,step:10}),(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Vertical End","uikit-editor-blocks"),value:T,onChange:e=>{t({bgImageParallaxVerticalEnd:e})},min:-600,max:600,step:10})]}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Visibility","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({bgImageVisibility:e})}}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Overlay","uikit-editor-blocks"),checked:!!L,onChange:e=>{t({bgImageOverlay:e})}},"togglecontrol")]}),m&&L&&(0,s.jsx)(Ce,{value:f,enableAlpha:!0,onChange:e=>{t({bgImageOverlayColor:e})}})]})]}),(0,s.jsx)("div",{className:i,children:(0,s.jsx)(ye,{templateLock:!1,renderAppender:r?void 0:()=>(0,s.jsx)(ye.ButtonBlockAppender,{})})})]})}}const fe=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{bgImageMediaId:i}=l.attributes,{getMedia:t}=e("core"),{clientId:o}=l,{getBlockOrder:a}=e("core/block-editor")||e("core/editor");return{hasChildBlocks:a(o).length>0,bgImage:i?t(i):null}})))(Le),we=(0,s.jsx)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(v.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})}),{InnerBlocks:Be}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/grid-column",{title:(0,l.__)("Grid Column (UIkit)","uikit-editor-blocks"),icon:we,category:"uikit-editor-blocks",keywords:[(0,l.__)("Grid Column","uikit-editor-blocks"),(0,l.__)("UIkit Grid Column","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/grid"],getEditWrapperProps(e){const{defaultWidth:l,smallWidth:i,mediumWidth:t,largeWidth:o,xlargeWidth:a}=e;return{"data-width":o}},edit:fe,save:()=>(0,s.jsx)(Be.Content,{})});const{RichText:Ie,InspectorControls:Me}=i||t;class We extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,text:k,style:n,decoration:u,color:b,element:c}=e;return d||t({blockId:r}),(0,s.jsx)(o.Fragment,{children:(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(Ie,{placeholder:(0,l.__)("Heading ","uikit-editor-blocks"),value:k,onChange:e=>t({text:e}),formattingControls:[],keepPlaceholderOnFocus:!0}),(0,s.jsx)(Me,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Heading","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({style:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({decoration:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{t({color:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({element:e})}})]})})]})})}}const Pe=We,Ne=(0,s.jsx)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(v.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});(0,e.registerBlockType)("uikit-editor-blocks/heading",{title:(0,l.__)("Heading (UIkit)","uikit-editor-blocks"),icon:Ne,category:"uikit-editor-blocks",keywords:[(0,l.__)("Heading","uikit-editor-blocks"),(0,l.__)("UIkit Heading","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Pe,save:()=>null});const{InspectorControls:Ae}=i||t;class De extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,icon:k,color:n,width:u}=e;return d||t({blockId:r}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(Ae,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Icon","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Icon","uikit-editor-blocks"),help:(0,l.__)("Enter icon name from UIkit","uikit-editor-blocks"),value:k,onChange:e=>{t({icon:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:n,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{t({color:e})}}),(0,s.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Width","uikit-editor-blocks"),help:(0,l.__)("Icon width size in px without unit.","uikit-editor-blocks"),value:u,onChange:e=>{t({width:e})}})]})}),(0,s.jsx)("div",{className:i,children:k})]})}}const Ve=De,Re=(0,s.jsx)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(v.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})});(0,e.registerBlockType)("uikit-editor-blocks/icon",{title:(0,l.__)("Icon (UIkit)","uikit-editor-blocks"),icon:Re,category:"uikit-editor-blocks",keywords:[(0,l.__)("Icon","uikit-editor-blocks"),(0,l.__)("UIkit Icon","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Ve,save:()=>null});const{InspectorControls:Oe,MediaUploadCheck:Ue,MediaUpload:Xe}=i||t,Ee="noreferrer noopener",ze=["image"];class Fe extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,image:r,clientId:d}=this.props,{blockId:k,mediaId:n,mediaUrl:u,width:b,height:c,alt:_,linkUrl:g,linkTarget:v,linkRel:h,linkTitle:m,linkAriaLabel:x,border:p}=e;k||t({blockId:d});const C=e=>{t({mediaId:e.id,mediaUrl:e.url})};return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(Oe,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.BaseControl,{children:(0,s.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,s.jsx)(Ue,{fallback:(0,s.jsx)("p",{children:(0,l.__)("To edit the image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,s.jsx)(Xe,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:C,allowedTypes:ze,value:n,render:({open:e})=>(0,s.jsxs)(a.Button,{className:n?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!n&&(0,l.__)("Set image","uikit-editor-blocks"),!!n&&!r&&(0,s.jsx)(a.Spinner,{}),!!n&&r&&(0,s.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,s.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!n&&r&&(0,s.jsx)(Ue,{children:(0,s.jsx)(Xe,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:C,allowedTypes:ze,value:n,render:({open:e})=>(0,s.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!n&&(0,s.jsx)(Ue,{children:(0,s.jsx)(a.Button,{onClick:()=>{t({mediaId:void 0,mediaUrl:""})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Image Width","uikit-editor-blocks"),value:b,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>t({width:e})}),(0,s.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Image Height","uikit-editor-blocks"),placeholder:(0,l.__)("Auto","uikit-editor-blocks"),value:c,onChange:e=>t({height:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:_,onChange:e=>t({alt:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:g,onChange:e=>t({linkUrl:e})}),g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=h;l&&!h?i=Ee:l||h!==Ee||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===v}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:h||"",onChange:e=>{t({linkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:m,onChange:e=>{t({linkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:x,onChange:e=>{t({linkAriaLabel:e})}})]})]})]}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Image","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Border","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Rounded","uikit-editor-blocks"),value:"rounded"},{label:(0,l.__)("Circle","uikit-editor-blocks"),value:"circle"},{label:(0,l.__)("Pill","uikit-editor-blocks"),value:"pill"}],onChange:e=>{t({border:e})}})})]}),(0,s.jsx)("div",{className:i,children:(0,s.jsx)("img",{src:u})})]})}}const Ge=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{mediaId:i}=l.attributes,{getMedia:t}=e("core");return{image:i?t(i):void 0}})))(Fe),Ze=(0,s.jsx)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(v.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})});(0,e.registerBlockType)("uikit-editor-blocks/image",{title:(0,l.__)("Image (UIkit)","uikit-editor-blocks"),icon:Ze,category:"uikit-editor-blocks",keywords:[(0,l.__)("Image","uikit-editor-blocks"),(0,l.__)("UIkit Image","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Ge,save:()=>null});const{InspectorControls:Qe,MediaUploadCheck:Je,MediaUpload:qe}=i||t,Ke="noreferrer noopener",Ye=["image"];class $e extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,imageMedia:r,clientId:d}=this.props,{blockId:k,imageMediaId:n,imageWidth:u,imageHeight:b,imageAlt:c,titleText:_,metaText:g,contentText:v,linkUrl:h,linkText:m,linkTarget:x,linkRel:p,linkTitle:C,linkAriaLabel:j,mode:S,hover:y,style:T,textColor:H,padding:L,position:f,margin:w,maxWidth:B,link:I,titleStyle:M,titleDecoration:W,titleColor:P,titleElement:N,titleTopMargin:A,metaStyle:D,metaColor:V,metaAlignment:R,metaElement:O,metaTopMargin:U,contentStyle:X,contentTopMargin:E,linkStyle:z,linkButtonSize:F,linkTopMargin:G}=e;k||t({blockId:d});const Z=e=>{t({imageMediaId:e.id})};return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(Qe,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.BaseControl,{children:(0,s.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,s.jsx)(Je,{fallback:(0,s.jsx)("p",{children:(0,l.__)("To edit the image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,s.jsx)(qe,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:Z,allowedTypes:Ye,value:n,render:({open:e})=>(0,s.jsxs)(a.Button,{className:n?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!n&&(0,l.__)("Set image","uikit-editor-blocks"),!!n&&!r&&(0,s.jsx)(a.Spinner,{}),!!n&&r&&(0,s.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,s.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!n&&r&&(0,s.jsx)(Je,{children:(0,s.jsx)(qe,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:Z,allowedTypes:Ye,value:n,render:({open:e})=>(0,s.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!n&&(0,s.jsx)(Je,{children:(0,s.jsx)(a.Button,{onClick:()=>{t({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Image Width","uikit-editor-blocks"),value:u,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageWidth:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Image Height","uikit-editor-blocks"),value:b,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageHeight:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:c,onChange:e=>{t({imageAlt:e})}})]}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:_,onChange:e=>{t({titleText:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:g,onChange:e=>{t({metaText:e})}}),(0,s.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:v,onChange:e=>{t({contentText:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:h,onChange:e=>t({linkUrl:e})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:m,onChange:e=>{t({linkText:e})}}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=p;l&&!p?i=Ke:l||p!==Ke||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===x}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:p||"",onChange:e=>{t({linkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:C,onChange:e=>{t({linkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:j,onChange:e=>{t({linkAriaLabel:e})}})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Overlay","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Mode","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("Cover","uikit-editor-blocks"),value:"cover"},{label:(0,l.__)("Caption","uikit-editor-blocks"),value:"caption"}],onChange:e=>{t({mode:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Display Overlay on Hover","uikit-editor-blocks"),checked:y,onChange:e=>t({hover:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:T,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Overlay Default","uikit-editor-blocks"),value:"overlay-default"},{label:(0,l.__)("Overlay Primary","uikit-editor-blocks"),value:"overlay-primary"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{t({style:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({textColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({padding:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("Top","uikit-editor-blocks"),value:"top"},{label:(0,l.__)("Bottom","uikit-editor-blocks"),value:"bottom"},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"}],onChange:e=>{t({position:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({margin:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Max Width","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("Xlarge","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("2Xlarge","uikit-editor-blocks"),value:"2xlarge"}],onChange:e=>{t({maxWidth:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Link Overlay","uikit-editor-blocks"),checked:I,onChange:e=>t({link:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:M,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({titleStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:W,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({titleDecoration:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:P,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({titleColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({titleTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({metaStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({metaColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{t({metaAlignment:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:O,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({metaElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:U,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({metaTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:X,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({contentStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:E,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({contentTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:z,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{t({linkStyle:e})}}),("button-default"==z||"button-primary"==z||"button-secondary"==z||"button-danger"==z||"button-text"==z)&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:F,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({linkButtonSize:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:G,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({linkTopMargin:e})}})]})]}),(0,s.jsx)("div",{className:i,children:""!=_?_:(0,l.__)("Title","uikit-editor-blocks")})]})}}const el=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{getMedia:i}=e("core"),{imageMediaId:t}=l.attributes;return{imageMedia:t?i(t):t}})))($e);(0,e.registerBlockType)("uikit-editor-blocks/overlay",{title:(0,l.__)("Overlay (UIkit)","uikit-editor-blocks"),icon:M,category:"uikit-editor-blocks",keywords:[(0,l.__)("Overlay","uikit-editor-blocks"),(0,l.__)("UIkit Overlay","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:el,save:()=>null});const{InspectorControls:ll,InnerBlocks:il}=i||t,tl=["uikit-editor-blocks/overlay-slider-item"];let ol=[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],al=[{label:(0,l.__)("Inherit","uikit-editor-blocks"),value:""},{label:(0,l.__)("100%","uikit-editor-blocks"),value:"1-1"},{label:(0,l.__)("83%","uikit-editor-blocks"),value:"5-6"},{label:(0,l.__)("80%","uikit-editor-blocks"),value:"4-5"},{label:(0,l.__)("60%","uikit-editor-blocks"),value:"3-5"},{label:(0,l.__)("50%","uikit-editor-blocks"),value:"1-2"},{label:(0,l.__)("33%","uikit-editor-blocks"),value:"1-3"},{label:(0,l.__)("25%","uikit-editor-blocks"),value:"1-4"},{label:(0,l.__)("20%","uikit-editor-blocks"),value:"1-5"},{label:(0,l.__)("16%","uikit-editor-blocks"),value:"1-6"}];class rl extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:k}=this.props,{blockId:n,sliderWidth:u,sliderHeight:b,sliderMinHeight:c,sliderGap:_,sliderDivider:g,sliderDefaultWidth:v,sliderSmallWidth:h,sliderMediumWidth:m,sliderLargeWidth:x,sliderXlargeWidth:p,sliderAutoplay:C,navigation:j,navigationPosition:S,navigationMargin:y,navigationBreakpoint:T,navigationColor:H,slidenavPosition:L,slidenavMargin:f,slidenavBreakpoint:w,slidenavColor:B,overlayMode:I,overlayHover:M,overlayStyle:W,overlayTextColor:P,overlayPadding:N,overlayPosition:A,overlayMargin:D,overlayMaxWidth:V,overlayLink:R,imageWidth:O,imageHeight:U,titleStyle:X,titleDecoration:E,titleColor:z,titleElement:F,titleTopMargin:G,metaStyle:Z,metaColor:Q,metaAlignment:J,metaElement:q,metaTopMargin:K,contentStyle:Y,contentTopMargin:$,linkStyle:ee,linkButtonSize:le,linkTopMargin:ie}=i;return n||t({blockId:k}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(ll,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Slider","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Item Width Mode","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("Fixed","uikit-editor-blocks"),value:"fixed"},{label:(0,l.__)("Auto","uikit-editor-blocks"),value:"auto"}],onChange:e=>{t({sliderWidth:e})}}),"auto"!=u&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Height","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:""},{label:(0,l.__)("Viewport","uikit-editor-blocks"),value:"viewport"}],onChange:e=>{t({sliderHeight:e})}}),(0,s.jsx)(a.BaseControl,{children:(0,s.jsx)(a.__experimentalNumberControl,{label:(0,l.__)("Min Height","uikit-editor-blocks"),value:c,onChange:e=>{t({sliderMinHeight:e})}})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Column Gap","uikit-editor-blocks"),value:_,options:ol,onChange:e=>{t({sliderGap:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Show Divider","uikit-editor-blocks"),checked:g,onChange:e=>t({sliderDivider:e})})]}),"auto"!=u&&(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Items","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Phone Portrait","uikit-editor-blocks"),value:v,options:al.filter((e=>""!==e.value)),onChange:e=>{t({sliderDefaultWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Phone Landscape","uikit-editor-blocks"),value:h,options:al,onChange:e=>{t({sliderSmallWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Tablet Landscape","uikit-editor-blocks"),value:m,options:al,onChange:e=>{t({sliderMediumWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Desktop","uikit-editor-blocks"),value:x,options:al,onChange:e=>{t({sliderLargeWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Large Screens","uikit-editor-blocks"),value:p,options:al,onChange:e=>{t({sliderXlargeWidth:e})}})]}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Animation","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Autoplay","uikit-editor-blocks"),checked:C,onChange:e=>t({sliderAutoplay:e})})}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Navigation","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Navigation","uikit-editor-blocks"),value:j,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Dotnav","uikit-editor-blocks"),value:"dotnav"}],onChange:e=>{t({navigation:e})}}),""!=j&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{t({navigationPosition:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:y,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({navigationMargin:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Breakpoint","uikit-editor-blocks"),value:T,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({navigationBreakpoint:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({navigationColor:e})}})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Slidenav","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavPosition:e})}}),""!=L&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavMargin:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Breakpoint","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({slidenavBreakpoint:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({slidenavColor:e})}})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Overlay","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Mode","uikit-editor-blocks"),value:I,options:[{label:(0,l.__)("Cover","uikit-editor-blocks"),value:"cover"},{label:(0,l.__)("Caption","uikit-editor-blocks"),value:"caption"}],onChange:e=>{t({overlayMode:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Display Overlay on Hover","uikit-editor-blocks"),checked:M,onChange:e=>t({overlayHover:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:W,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Overlay Default","uikit-editor-blocks"),value:"overlay-default"},{label:(0,l.__)("Overlay Primary","uikit-editor-blocks"),value:"overlay-primary"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{t({overlayStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:P,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({overlayTextColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({overlayPadding:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("Top","uikit-editor-blocks"),value:"top"},{label:(0,l.__)("Bottom","uikit-editor-blocks"),value:"bottom"},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"}],onChange:e=>{t({overlayPosition:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({overlayMargin:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Max Width","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("Xlarge","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("2Xlarge","uikit-editor-blocks"),value:"2xlarge"}],onChange:e=>{t({overlayMaxWidth:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Link Overlay","uikit-editor-blocks"),checked:R,onChange:e=>t({overlayLink:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Image","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Width","uikit-editor-blocks"),value:O,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageWidth:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Height","uikit-editor-blocks"),value:U,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageHeight:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:X,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({titleStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:E,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({titleDecoration:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:z,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({titleColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:F,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:G,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({titleTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:Z,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({metaStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:Q,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({metaColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:J,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{t({metaAlignment:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:q,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({metaElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:K,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({metaTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:Y,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({contentStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:$,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({contentTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:ee,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{t({linkStyle:e})}}),("button-default"==ee||"button-primary"==ee||"button-secondary"==ee||"button-danger"==ee||"button-text"==ee)&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:le,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({linkButtonSize:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:ie,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({linkTopMargin:e})}})]})]}),(0,s.jsx)("div",{className:e,children:(0,s.jsx)(il,{allowedBlocks:tl})})]})}}const dl=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),sl=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),kl=(0,r.compose)(dl,sl)(rl),{InnerBlocks:nl}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/overlay-slider",{title:(0,l.__)("Overlay Slider (UIkit)","uikit-editor-blocks"),icon:M,category:"uikit-editor-blocks",keywords:[(0,l.__)("Overlay Slider","uikit-editor-blocks"),(0,l.__)("UIkit Overlay Slider","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:kl,save:()=>(0,s.jsx)(nl.Content,{})});const{InspectorControls:ul,MediaUploadCheck:bl,MediaUpload:cl}=i||t,_l=["image"],gl="noreferrer noopener";class vl extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,bgImage:r,clientId:d}=this.props,{blockId:k,imageMediaId:n,imageAlt:u,titleText:b,metaText:c,contentText:_,linkUrl:g,linkText:v,linkTarget:h,linkRel:m,linkTitle:x,linkAriaLabel:p}=e;k||t({blockId:d});const C=(0,s.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),j=e=>{t({imageMediaId:e.id})};return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(ul,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.BaseControl,{children:(0,s.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,s.jsx)(bl,{fallback:C,children:(0,s.jsx)(cl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:_l,value:n,render:({open:e})=>(0,s.jsxs)(a.Button,{className:n?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!n&&(0,l.__)("Set image","uikit-editor-blocks"),!!n&&!r&&(0,s.jsx)(a.Spinner,{}),!!n&&r&&(0,s.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,s.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!n&&r&&(0,s.jsx)(bl,{children:(0,s.jsx)(cl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:_l,value:n,render:({open:e})=>(0,s.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!n&&(0,s.jsx)(bl,{children:(0,s.jsx)(a.Button,{onClick:()=>{t({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),n&&(0,s.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:u,onChange:e=>t({imageAlt:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:b,onChange:e=>t({titleText:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:c,onChange:e=>t({metaText:e})}),(0,s.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:_,onChange:e=>t({contentText:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:g,onChange:e=>t({linkUrl:e})}),g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:v,onChange:e=>t({linkText:e})}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=m;l&&!m?i=gl:l||m!==gl||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===h}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:m||"",onChange:e=>{t({linkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:x,onChange:e=>{t({linkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:p,onChange:e=>{t({linkAriaLabel:e})}})]})]})}),(0,s.jsx)("div",{className:i,children:""!=b?b:(0,l.__)("Title","uikit-editor-blocks")})]})}}const hl=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{clientId:i}=l,{getBlockOrder:t}=e("core/block-editor")||e("core/editor"),{getMedia:o}=e("core"),{imageMediaId:a}=l.attributes;return{bgImage:a?o(a):null}})))(vl);(0,e.registerBlockType)("uikit-editor-blocks/overlay-slider-item",{title:(0,l.__)("Overlay Slider Item (UIkit)","uikit-editor-blocks"),icon:M,category:"uikit-editor-blocks",keywords:[(0,l.__)("Overlay Slider Item","uikit-editor-blocks"),(0,l.__)("UIkit Overlay Slider Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/overlay-slider"],edit:hl,save:()=>null});const{InspectorControls:ml,MediaUploadCheck:xl,MediaUpload:pl}=i||t,Cl="noreferrer noopener",jl=["image"];class Sl extends o.Component{render(){const{attributes:e,setAttributes:i,className:t,image:r,clientId:d}=this.props,{blockId:k,titleText:n,metaText:u,contentText:b,imageMediaId:c,imageWidth:_,imageHeight:g,imageAlt:v,linkUrl:h,linkText:m,linkTarget:x,linkRel:p,linkTitle:C,linkAriaLabel:j,style:S,padding:y,link:T,titleStyle:H,titleDecoration:L,titleColor:f,titleElement:w,titleTopMargin:B,metaStyle:I,metaColor:M,metaAlignment:W,metaElement:P,metaTopMargin:N,contentStyle:A,contentTopMargin:D,linkStyle:V,linkButtonSize:R,linkTopMargin:O}=e;k||i({blockId:d});const U=e=>{i({imageMediaId:e.id})};return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(ml,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:n,onChange:e=>i({titleText:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:u,onChange:e=>i({metaText:e})}),(0,s.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:b,onChange:e=>i({contentText:e})}),(0,s.jsx)(a.BaseControl,{children:(0,s.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,s.jsx)(xl,{fallback:(0,s.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,s.jsx)(pl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:U,allowedTypes:jl,value:c,render:({open:e})=>(0,s.jsxs)(a.Button,{className:c?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!c&&(0,l.__)("Set image","uikit-editor-blocks"),!!c&&!r&&(0,s.jsx)(a.Spinner,{}),!!c&&r&&(0,s.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,s.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!c&&r&&(0,s.jsx)(xl,{children:(0,s.jsx)(pl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:U,allowedTypes:jl,value:c,render:({open:e})=>(0,s.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!c&&(0,s.jsx)(xl,{children:(0,s.jsx)(a.Button,{onClick:()=>{i({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Image Width","uikit-editor-blocks"),value:_,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>i({imageWidth:e})}),(0,s.jsx)(a.TextControl,{type:"number",label:(0,l.__)("Image Height","uikit-editor-blocks"),placeholder:(0,l.__)("Auto","uikit-editor-blocks"),value:g,onChange:e=>i({imageHeight:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Image ALT","uikit-editor-blocks"),value:v,onChange:e=>i({imageAlt:e})})]}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:h,onChange:e=>i({linkUrl:e})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:m,onChange:e=>{i({linkText:e})}}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let t=p;l&&!p?t=Cl:l||p!==Cl||(t=void 0),i({linkTarget:l,linkRel:t})},checked:"_blank"===x}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:p||"",onChange:e=>{i({linkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:C,onChange:e=>{i({linkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:j,onChange:e=>{i({linkAriaLabel:e})}})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Panel","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Card Default","uikit-editor-blocks"),value:"card-default"},{label:(0,l.__)("Card Primary","uikit-editor-blocks"),value:"card-primary"},{label:(0,l.__)("Card Secondary","uikit-editor-blocks"),value:"card-secondary"},{label:(0,l.__)("Card Hover","uikit-editor-blocks"),value:"card-hover"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{i({style:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:y,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{i({padding:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Link panel","uikit-editor-blocks"),checked:T,onChange:e=>i({link:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{i({titleStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{i({titleDecoration:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{i({titleColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{i({titleElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{i({titleTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:I,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{i({metaStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:M,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{i({metaColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:W,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{i({metaAlignment:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:P,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("div","uikit-editor-blocks"),value:"div"}],onChange:e=>{i({metaElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{i({metaTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{i({contentStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{i({contentTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{i({linkStyle:e})}}),("button-default"==V||"button-primary"==V||"button-secondary"==V||"button-danger"==V||"button-text"==V)&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{i({linkButtonSize:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:O,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{i({linkTopMargin:e})}})]})]}),(0,s.jsx)("div",{className:t,children:(0,s.jsx)("div",{children:""!=n?n:(0,l.__)("Title","uikit-editor-blocks")})})]})}}const yl=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{imageMediaId:i}=l.attributes,{getMedia:t}=e("core");return{image:i?t(i):null}})))(Sl);(0,e.registerBlockType)("uikit-editor-blocks/panel",{title:(0,l.__)("Panel (UIkit)","uikit-editor-blocks"),icon:M,category:"uikit-editor-blocks",keywords:[(0,l.__)("Panel","uikit-editor-blocks"),(0,l.__)("UIkit Panel","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:yl,save:()=>null});const{InspectorControls:Tl,InnerBlocks:Hl}=i||t,Ll=["uikit-editor-blocks/panel-slider-item"];let fl=[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],wl=[{label:(0,l.__)("Inherit","uikit-editor-blocks"),value:""},{label:(0,l.__)("100%","uikit-editor-blocks"),value:"1-1"},{label:(0,l.__)("83%","uikit-editor-blocks"),value:"5-6"},{label:(0,l.__)("80%","uikit-editor-blocks"),value:"4-5"},{label:(0,l.__)("60%","uikit-editor-blocks"),value:"3-5"},{label:(0,l.__)("50%","uikit-editor-blocks"),value:"1-2"},{label:(0,l.__)("33%","uikit-editor-blocks"),value:"1-3"},{label:(0,l.__)("25%","uikit-editor-blocks"),value:"1-4"},{label:(0,l.__)("20%","uikit-editor-blocks"),value:"1-5"},{label:(0,l.__)("16%","uikit-editor-blocks"),value:"1-6"}];class Bl extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:k}=this.props,{blockId:n,sliderWidth:u,sliderGap:b,sliderDivider:c,sliderDefaultWidth:_,sliderSmallWidth:g,sliderMediumWidth:v,sliderLargeWidth:h,sliderXlargeWidth:m,sliderAutoplay:x,navigation:p,navigationPosition:C,navigationMargin:j,navigationBreakpoint:S,navigationColor:y,slidenavPosition:T,slidenavMargin:H,slidenavBreakpoint:L,slidenavColor:f,panelStyle:w,panelPadding:B,panelMatch:I,panelLink:M,imageWidth:W,imageHeight:P,titleStyle:N,titleDecoration:A,titleColor:D,titleElement:V,titleTopMargin:R,metaStyle:O,metaColor:U,metaAlignment:X,metaElement:E,metaTopMargin:z,contentStyle:F,contentTopMargin:G,linkStyle:Z,linkButtonSize:Q,linkTopMargin:J}=i;return n||t({blockId:k}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(Tl,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Slider","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Item Width Mode","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("Fixed","uikit-editor-blocks"),value:"fixed"},{label:(0,l.__)("Auto","uikit-editor-blocks"),value:"auto"}],onChange:e=>{t({sliderWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Column Gap","uikit-editor-blocks"),value:b,options:fl,onChange:e=>{t({sliderGap:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Show Divider","uikit-editor-blocks"),checked:c,onChange:e=>t({sliderDivider:e})})]}),"auto"!=u&&(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Items","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Phone Portrait","uikit-editor-blocks"),value:_,options:wl.filter((e=>""!==e.value)),onChange:e=>{t({sliderDefaultWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Phone Landscape","uikit-editor-blocks"),value:g,options:wl,onChange:e=>{t({sliderSmallWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Tablet Landscape","uikit-editor-blocks"),value:v,options:wl,onChange:e=>{t({sliderMediumWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Desktop","uikit-editor-blocks"),value:h,options:wl,onChange:e=>{t({sliderLargeWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Large Screens","uikit-editor-blocks"),value:m,options:wl,onChange:e=>{t({sliderXlargeWidth:e})}})]}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Animation","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Autoplay","uikit-editor-blocks"),checked:x,onChange:e=>t({sliderAutoplay:e})})}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Navigation","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Navigation Settings","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Dotnav","uikit-editor-blocks"),value:"dotnav"}],onChange:e=>{t({navigation:e})}}),""!=p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{t({navigationPosition:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:j,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({navigationMargin:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Breakpoint","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({navigationBreakpoint:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:y,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({navigationColor:e})}})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Slidenav","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:T,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("Outsite","uikit-editor-blocks"),value:"outside"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavPosition:e})}}),""!=T&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavMargin:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Breakpoint","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({slidenavBreakpoint:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({slidenavColor:e})}})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Panel","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"},{label:(0,l.__)("Card Default","uikit-editor-blocks"),value:"card-default"},{label:(0,l.__)("Card Primary","uikit-editor-blocks"),value:"card-primary"},{label:(0,l.__)("Card Secondary","uikit-editor-blocks"),value:"card-secondary"},{label:(0,l.__)("Card Hover","uikit-editor-blocks"),value:"card-hover"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{t({panelStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({panelPadding:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Match Height","uikit-editor-blocks"),checked:I,onChange:e=>t({panelMatch:e})}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Link Panel","uikit-editor-blocks"),checked:M,onChange:e=>{t({panelLink:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Image","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Width","uikit-editor-blocks"),value:W,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageWidth:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Height","uikit-editor-blocks"),value:P,placeholder:(0,l.__)("Auto","uikit-editor-blocks"),onChange:e=>{t({imageHeight:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({titleStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({titleDecoration:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({titleColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({titleTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:O,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({metaStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:U,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({metaColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:X,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{t({metaAlignment:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:E,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({metaElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:z,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({metaTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:F,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({contentStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:G,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({contentTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:Z,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{t({linkStyle:e})}}),("button-default"==Z||"button-primary"==Z||"button-secondary"==Z||"button-danger"==Z||"button-text"==Z)&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:Q,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({linkButtonSize:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:J,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({linkTopMargin:e})}})]})]}),(0,s.jsx)("div",{className:e,children:(0,s.jsx)(Hl,{allowedBlocks:Ll})})]})}}const Il=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),Ml=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),Wl=(0,r.compose)(Il,Ml)(Bl),{InnerBlocks:Pl}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/panel-slider",{title:(0,l.__)("Panel Slider (UIkit)","uikit-editor-blocks"),icon:M,category:"uikit-editor-blocks",keywords:[(0,l.__)("Panel Slider","uikit-editor-blocks"),(0,l.__)("UIkit Panel Slider","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Wl,save:()=>(0,s.jsx)(Pl.Content,{})});const{InspectorControls:Nl,MediaUploadCheck:Al,MediaUpload:Dl}=i||t,Vl=["image"],Rl="noreferrer noopener";class Ol extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,bgImage:r,clientId:d}=this.props,{blockId:k,titleText:n,metaText:u,contentText:b,imageMediaId:c,imageAlt:_,linkUrl:g,linkText:v,linkTarget:h,linkRel:m,linkTitle:x,linkAriaLabel:p}=e;k||t({blockId:d});const C=(0,s.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),j=e=>{t({imageMediaId:e.id})};return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(Nl,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:n,onChange:e=>t({titleText:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:u,onChange:e=>t({metaText:e})}),(0,s.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:b,onChange:e=>t({contentText:e})}),(0,s.jsx)(a.BaseControl,{children:(0,s.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,s.jsx)(Al,{fallback:C,children:(0,s.jsx)(Dl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:Vl,value:c,render:({open:e})=>(0,s.jsxs)(a.Button,{className:c?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!c&&(0,l.__)("Set image","uikit-editor-blocks"),!!c&&!r&&(0,s.jsx)(a.Spinner,{}),!!c&&r&&(0,s.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,s.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!c&&r&&(0,s.jsx)(Al,{children:(0,s.jsx)(Dl,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:Vl,value:c,render:({open:e})=>(0,s.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!c&&(0,s.jsx)(Al,{children:(0,s.jsx)(a.Button,{onClick:()=>{t({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),c&&(0,s.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:_,onChange:e=>t({imageAlt:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:g,onChange:e=>t({linkUrl:e})}),g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:v,onChange:e=>t({linkText:e})}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=m;l&&!m?i=Rl:l||m!==Rl||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===h}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:m||"",onChange:e=>{t({linkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:x,onChange:e=>{t({linkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:p,onChange:e=>{t({linkAriaLabel:e})}})]})]})}),(0,s.jsx)("div",{className:i,children:""!=n?n:(0,l.__)("Title","uikit-editor-blocks")})]})}}const Ul=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{clientId:i}=l,{getBlockOrder:t}=e("core/block-editor")||e("core/editor"),{getMedia:o}=e("core"),{imageMediaId:a}=l.attributes;return{bgImage:a?o(a):null}})))(Ol);(0,e.registerBlockType)("uikit-editor-blocks/panel-slider-item",{title:(0,l.__)("Panel Slider Item (UIkit)","uikit-editor-blocks"),icon:M,category:"uikit-editor-blocks",keywords:[(0,l.__)("Panel Slider Item","uikit-editor-blocks"),(0,l.__)("UIkit Panel Slider Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/panel-slider"],edit:Ul,save:()=>null});const{InspectorControls:Xl,BlockControls:El,AlignmentToolbar:zl,RichText:Fl}=i||t,Gl="noreferrer noopener";class Zl extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,text:k,authorName:n,authorLinkUrl:u,authorLinkTarget:b,authorLinkRel:c,authorLinkTitle:_,authorLinkAriaLabel:g,footerText:v,linkStyle:h,alignment:m}=e;return d||t({blockId:r}),(0,s.jsx)(o.Fragment,{children:(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(El,{children:(0,s.jsx)(zl,{value:m,onChange:e=>{t({alignment:void 0===e?"none":e})}})}),(0,s.jsx)(Fl,{placeholder:(0,l.__)("Enter text here...","uikit-editor-blocks"),value:k,tagName:"div",onChange:e=>t({text:e}),keepPlaceholderOnFocus:!0}),(0,s.jsx)(Xl,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Quotation","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Text","uikit-editor-blocks"),value:k,onChange:e=>{t({text:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Author","uikit-editor-blocks"),help:(0,l.__)("Enter the author name.","uikit-editor-blocks"),value:n,onChange:e=>{t({authorName:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Author Link URL","uikit-editor-blocks"),value:u,onChange:e=>t({authorLinkUrl:e})}),u&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=c;l&&!c?i=Gl:l||c!==Gl||(i=void 0),t({authorLinkTarget:l,authorLinkRel:i})},checked:"_blank"===b}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:c||"",onChange:e=>{t({authorLinkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:_,onChange:e=>{t({authorLinkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:g,onChange:e=>{t({authorLinkAriaLabel:e})}})]}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Footer Text","uikit-editor-blocks"),help:(0,l.__)("Enter an optional footer text.","uikit-editor-blocks"),value:v,onChange:e=>{t({footerText:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Link Style","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Text","uikit-editor-blocks"),value:"text"},{label:(0,l.__)("Reset","uikit-editor-blocks"),value:"reset"}],onChange:e=>{t({linkStyle:e})}})]})})]})})}}const Ql=Zl,Jl=(0,s.jsx)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(v.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})});(0,e.registerBlockType)("uikit-editor-blocks/quotation",{title:(0,l.__)("Quotation (UIkit)","uikit-editor-blocks"),icon:Jl,category:"uikit-editor-blocks",keywords:[(0,l.__)("Quotation","uikit-editor-blocks"),(0,l.__)("UIkit Quotation","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Ql,save:()=>null});const{InspectorControls:ql,ColorPalette:Kl,InnerBlocks:Yl,MediaUploadCheck:$l,MediaUpload:ei}=i||t,li=["image"];class ii extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,hasChildBlocks:r,bgImage:d,clientId:k}=this.props,{blockId:n,style:u,textColor:b,padding:c,removeTopPadding:_,removeBottomPadding:g,container:v,bgColor:h,bgImageMediaId:m,bgImageSize:x,bgImagePosition:p,bgImageEffect:C,bgImageParallaxHorizontalStart:j,bgImageParallaxHorizontalEnd:S,bgImageParallaxVerticalStart:y,bgImageParallaxVerticalEnd:T,bgImageVisibility:H,bgImageOverlay:L,bgImageOverlayColor:f}=e;n||t({blockId:k});const w=e=>{t({bgImageMediaId:e.id})};return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(ql,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Section","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"}],onChange:e=>{t({style:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({textColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("X-Small","uikit-editor-blocks"),value:"xsmall"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({padding:e})}}),"none"!=c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Remove Top Padding","uikit-editor-blocks"),checked:_,onChange:e=>t({removeTopPadding:e})}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Remove Bottom Padding","uikit-editor-blocks"),checked:g,onChange:e=>t({removeBottomPadding:e})})]}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Container","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("X-Small","uikit-editor-blocks"),value:"xsmall"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("Expand","uikit-editor-blocks"),value:"expand"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({container:e})}})]}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Background Color","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(Kl,{value:h,onChange:e=>{t({bgColor:e})}})}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Background Image","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.BaseControl,{children:(0,s.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,s.jsx)($l,{fallback:(0,s.jsx)("p",{children:(0,l.__)("To edit the background image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,s.jsx)(ei,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:w,allowedTypes:li,value:m,render:({open:e})=>(0,s.jsxs)(a.Button,{className:m?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!m&&(0,l.__)("Set image","uikit-editor-blocks"),!!m&&!d&&(0,s.jsx)(a.Spinner,{}),!!m&&d&&(0,s.jsx)(a.ResponsiveWrapper,{naturalWidth:d.media_details.width,naturalHeight:d.media_details.height,children:(0,s.jsx)("img",{src:d.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!m&&d&&(0,s.jsx)($l,{children:(0,s.jsx)(ei,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:w,allowedTypes:li,value:m,render:({open:e})=>(0,s.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!m&&(0,s.jsx)($l,{children:(0,s.jsx)(a.Button,{onClick:()=>{t({bgImageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Size","uikit-editor-blocks"),value:x,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:""},{label:(0,l.__)("Cover","uikit-editor-blocks"),value:"cover"},{label:(0,l.__)("Contain","uikit-editor-blocks"),value:"contain"},{label:(0,l.__)("Width 100%","uikit-editor-blocks"),value:"full-width"},{label:(0,l.__)("Height 100%","uikit-editor-blocks"),value:"full-height"}],onChange:e=>{t({bgImageSize:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Position","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Center","uikit-editor-blocks"),value:"center-center"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"}],onChange:e=>{t({bgImagePosition:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Image Effect","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Parallax","uikit-editor-blocks"),value:"parallax"},{label:(0,l.__)("Fixed","uikit-editor-blocks"),value:"fixed"}],onChange:e=>{t({bgImageEffect:e})}}),"parallax"==C&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Horizontal Start","uikit-editor-blocks"),value:j,onChange:e=>{t({bgImageParallaxHorizontalStart:e})},min:-600,max:600,step:10}),(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Horizontal End","uikit-editor-blocks"),value:S,onChange:e=>{t({bgImageParallaxHorizontalEnd:e})},min:-600,max:600,step:10}),(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Vertical Start","uikit-editor-blocks"),value:y,onChange:e=>{t({bgImageParallaxVerticalStart:e})},min:-600,max:600,step:10}),(0,s.jsx)(a.RangeControl,{label:(0,l.__)("Vertical End","uikit-editor-blocks"),value:T,onChange:e=>{t({bgImageParallaxVerticalEnd:e})},min:-600,max:600,step:10})]}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Visibility","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({bgImageVisibility:e})}}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Overlay","uikit-editor-blocks"),checked:!!L,onChange:e=>{t({bgImageOverlay:e})}},"togglecontrol")]}),m&&L&&(0,s.jsx)(Kl,{value:f,enableAlpha:!0,onChange:e=>{t({bgImageOverlayColor:e})}})]})]}),(0,s.jsx)("div",{className:i,children:(0,s.jsx)(Yl,{renderAppender:r?void 0:()=>(0,s.jsx)(Yl.ButtonBlockAppender,{})})})]})}}const ti=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{bgImageMediaId:i}=l.attributes,{getMedia:t}=e("core"),{clientId:o}=l,{getBlockOrder:a}=e("core/block-editor")||e("core/editor");return{hasChildBlocks:a(o).length>0,bgImage:i?t(i):null}})))(ii),oi=(0,s.jsxs)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s.jsx)(v.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,s.jsx)(v.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]}),{InnerBlocks:ai}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/section",{title:(0,l.__)("Section (UIkit)","uikit-editor-blocks"),icon:oi,category:"uikit-editor-blocks",keywords:[(0,l.__)("Section","uikit-editor-blocks"),(0,l.__)("UIkit Section","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:ti,save:()=>(0,s.jsx)(ai.Content,{})});const{InspectorControls:ri,InnerBlocks:di}=i||t,si=["uikit-editor-blocks/slideshow-item"];class ki extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:k}=this.props,{blockId:n,height:u,heightViewport:b,ratio:c,minHeight:_,maxHeight:g,textColor:v,boxShadow:h,animation:m,autoplay:x,navigation:p,navigationPosition:C,navigationMargin:j,slidenavPosition:S,slidenavMargin:y,overlayContainerWidth:T,overlayContainerPadding:H,overlayMargin:L,overlayPosition:f,overlayStyle:w,overlayPadding:B,overlayWidth:I,overlayAnimation:M,titleStyle:W,titleDecoration:P,titleColor:N,titleElement:A,titleTopMargin:D,metaStyle:V,metaColor:R,metaAlignment:O,metaElement:U,metaTopMargin:X,contentStyle:E,contentTopMargin:z,linkStyle:F,linkButtonSize:G,linkTopMargin:Z}=i;return n||t({blockId:k}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(ri,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Slideshow","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Height","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:""},{label:(0,l.__)("Viewport","uikit-editor-blocks"),value:"viewport"}],onChange:e=>{t({height:e})}}),"viewport"===u&&(0,s.jsx)(a.TextControl,{label:(0,l.__)("Height Viewport","uikit-editor-blocks"),placeholder:(0,l.__)("100","uikit-editor-blocks"),value:b,onChange:e=>{t({heightViewport:e})}}),""===u&&(0,s.jsx)(a.TextControl,{label:(0,l.__)("Ratio","uikit-editor-blocks"),placeholder:(0,l.__)("16:9","uikit-editor-blocks"),value:c,onChange:e=>{t({ratio:e})}}),(0,s.jsx)(a.BaseControl,{children:(0,s.jsx)(a.__experimentalNumberControl,{label:(0,l.__)("Min Height","uikit-editor-blocks"),value:_,onChange:e=>{t({minHeight:e})}})}),""===u&&(0,s.jsx)(a.BaseControl,{children:(0,s.jsx)(a.__experimentalNumberControl,{label:(0,l.__)("Max Height","uikit-editor-blocks"),value:g,onChange:e=>{t({maxHeight:e})}})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({textColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Box Shadow","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({boxShadow:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Animation","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Transition","uikit-editor-blocks"),value:m,options:[{label:(0,l.__)("Slide","uikit-editor-blocks"),value:"slide"},{label:(0,l.__)("Pull","uikit-editor-blocks"),value:"pull"},{label:(0,l.__)("Push","uikit-editor-blocks"),value:"push"},{label:(0,l.__)("Fade","uikit-editor-blocks"),value:"fade"},{label:(0,l.__)("Scale","uikit-editor-blocks"),value:"scale"}],onChange:e=>{t({animation:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Autoplay","uikit-editor-blocks"),checked:x,onChange:e=>t({autoplay:e})})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Navigation","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Navigation","uikit-editor-blocks"),value:p,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Dotnav","uikit-editor-blocks"),value:"dotnav"}],onChange:e=>{t({navigation:e})}}),""!=p&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"}],onChange:e=>{t({navigationPosition:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:j,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({navigationMargin:e})}})]})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Slidenav","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:S,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavPosition:e})}}),""!=S&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:y,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({slidenavMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Overlay","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Container Width","uikit-editor-blocks"),value:T,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("Expand","uikit-editor-blocks"),value:"expand"}],onChange:e=>{t({overlayContainerWidth:e})}}),""!=T&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Container Padding","uikit-editor-blocks"),value:H,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("X-Small","uikit-editor-blocks"),value:"xsmall"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({overlayContainerPadding:e})}}),""==T&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:L,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:""}],onChange:e=>{t({overlayMargin:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:f,options:[{label:(0,l.__)("Top","uikit-editor-blocks"),value:"top"},{label:(0,l.__)("Bottom","uikit-editor-blocks"),value:"bottom"},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Top Left","uikit-editor-blocks"),value:"top-left"},{label:(0,l.__)("Top Center","uikit-editor-blocks"),value:"top-center"},{label:(0,l.__)("Top Right","uikit-editor-blocks"),value:"top-right"},{label:(0,l.__)("Center Left","uikit-editor-blocks"),value:"center-left"},{label:(0,l.__)("Center Center","uikit-editor-blocks"),value:"center-center"},{label:(0,l.__)("Center Right","uikit-editor-blocks"),value:"center-right"},{label:(0,l.__)("Bottom Left","uikit-editor-blocks"),value:"bottom-left"},{label:(0,l.__)("Bottom Center","uikit-editor-blocks"),value:"bottom-center"},{label:(0,l.__)("Bottom Right","uikit-editor-blocks"),value:"bottom-right"}],onChange:e=>{t({overlayPosition:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:w,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Overlay Default","uikit-editor-blocks"),value:"overlay-default"},{label:(0,l.__)("Overlay Primary","uikit-editor-blocks"),value:"overlay-primary"},{label:(0,l.__)("Tile Default","uikit-editor-blocks"),value:"tile-default"},{label:(0,l.__)("Tile Muted","uikit-editor-blocks"),value:"tile-muted"},{label:(0,l.__)("Tile Primary","uikit-editor-blocks"),value:"tile-primary"},{label:(0,l.__)("Tile Secondary","uikit-editor-blocks"),value:"tile-secondary"}],onChange:e=>{t({overlayStyle:e})}}),""!=w&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Padding","uikit-editor-blocks"),value:B,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({overlayPadding:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Width","uikit-editor-blocks"),value:I,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("2X-Large","uikit-editor-blocks"),value:"2xlarge"}],onChange:e=>{t({overlayWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Animation","uikit-editor-blocks"),value:M,options:[{label:(0,l.__)("Fade","uikit-editor-blocks"),value:"fade"},{label:(0,l.__)("Scale Up","uikit-editor-blocks"),value:"scale-up"},{label:(0,l.__)("Scale Down","uikit-editor-blocks"),value:"scale-down"},{label:(0,l.__)("Slide Top Small","uikit-editor-blocks"),value:"slide-top-small"},{label:(0,l.__)("Slide Bottom Small","uikit-editor-blocks"),value:"slide-bottom-small"},{label:(0,l.__)("Slide Left Small","uikit-editor-blocks"),value:"slide-left-small"},{label:(0,l.__)("Slide Right Small","uikit-editor-blocks"),value:"slide-right-small"},{label:(0,l.__)("Slide Top Medium","uikit-editor-blocks"),value:"slide-top-medium"},{label:(0,l.__)("Slide Bottom Medium","uikit-editor-blocks"),value:"slide-bottom-medium"},{label:(0,l.__)("Slide Left Medium","uikit-editor-blocks"),value:"slide-left-medium"},{label:(0,l.__)("Slide Right Medium","uikit-editor-blocks"),value:"slide-right-medium"},{label:(0,l.__)("Slide Top 100%","uikit-editor-blocks"),value:"slide-top"},{label:(0,l.__)("Slide Bottom 100%","uikit-editor-blocks"),value:"slide-bottom"},{label:(0,l.__)("Slide Left 100%","uikit-editor-blocks"),value:"slide-left"},{label:(0,l.__)("Slide Right 100%","uikit-editor-blocks"),value:"slide-right"}],onChange:e=>{t({overlayAnimation:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Title","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:W,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({titleStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Decoration","uikit-editor-blocks"),value:P,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Divider","uikit-editor-blocks"),value:"divider"},{label:(0,l.__)("Bullet","uikit-editor-blocks"),value:"bullet"},{label:(0,l.__)("Line","uikit-editor-blocks"),value:"line"}],onChange:e=>{t({titleDecoration:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:N,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({titleColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:A,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({titleElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:D,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({titleTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Meta","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:V,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({metaStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:R,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"},{label:(0,l.__)("Background","uikit-editor-blocks"),value:"background"}],onChange:e=>{t({metaColor:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:O,options:[{label:(0,l.__)("Above Title","uikit-editor-blocks"),value:"above-title"},{label:(0,l.__)("Below Title","uikit-editor-blocks"),value:"below-title"},{label:(0,l.__)("Below Content","uikit-editor-blocks"),value:"below-content"}],onChange:e=>{t({metaAlignment:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:U,options:[{label:(0,l.__)("H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({metaElement:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:X,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({metaTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Content","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:E,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Heading 3X-Large","uikit-editor-blocks"),value:"heading-3xlarge"},{label:(0,l.__)("Heading 2X-Large","uikit-editor-blocks"),value:"heading-2xlarge"},{label:(0,l.__)("Heading X-Large","uikit-editor-blocks"),value:"heading-xlarge"},{label:(0,l.__)("Heading Large","uikit-editor-blocks"),value:"heading-large"},{label:(0,l.__)("Heading Medium","uikit-editor-blocks"),value:"heading-medium"},{label:(0,l.__)("Heading Small","uikit-editor-blocks"),value:"heading-small"},{label:(0,l.__)("Heading H1","uikit-editor-blocks"),value:"h1"},{label:(0,l.__)("Heading H2","uikit-editor-blocks"),value:"h2"},{label:(0,l.__)("Heading H3","uikit-editor-blocks"),value:"h3"},{label:(0,l.__)("Heading H4","uikit-editor-blocks"),value:"h4"},{label:(0,l.__)("Heading H5","uikit-editor-blocks"),value:"h5"},{label:(0,l.__)("Heading H6","uikit-editor-blocks"),value:"h6"},{label:(0,l.__)("Text Meta","uikit-editor-blocks"),value:"text-meta"},{label:(0,l.__)("Text Lead","uikit-editor-blocks"),value:"text-lead"},{label:(0,l.__)("Text Small","uikit-editor-blocks"),value:"text-small"},{label:(0,l.__)("Text Large","uikit-editor-blocks"),value:"text-large"}],onChange:e=>{t({contentStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:z,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({contentTopMargin:e})}})]}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Link","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:F,options:[{label:(0,l.__)("Button Default","uikit-editor-blocks"),value:"button-default"},{label:(0,l.__)("Button Primary","uikit-editor-blocks"),value:"button-primary"},{label:(0,l.__)("Button Secondary","uikit-editor-blocks"),value:"button-secondary"},{label:(0,l.__)("Button Danger","uikit-editor-blocks"),value:"button-danger"},{label:(0,l.__)("Button Text","uikit-editor-blocks"),value:"button-text"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:"link"},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"}],onChange:e=>{t({linkStyle:e})}}),("button-default"==F||"button-primary"==F||"button-secondary"==F||"button-danger"==F||"button-text"==F)&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Button Size","uikit-editor-blocks"),value:G,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({linkButtonSize:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin Top","uikit-editor-blocks"),value:Z,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({linkTopMargin:e})}})]})]}),(0,s.jsx)("div",{className:e,children:(0,s.jsx)(di,{allowedBlocks:si})})]})}}const ni=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),ui=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),bi=(0,r.compose)(ni,ui)(ki),ci=(0,s.jsx)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(v.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})}),{InnerBlocks:_i}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/slideshow",{title:(0,l.__)("Slideshow (UIkit)","uikit-editor-blocks"),icon:ci,category:"uikit-editor-blocks",keywords:[(0,l.__)("Slideshow","uikit-editor-blocks"),(0,l.__)("UIkit Slideshow","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:bi,save:()=>(0,s.jsx)(_i.Content,{})});const{InspectorControls:gi,MediaUploadCheck:vi,MediaUpload:hi}=i||t,mi=["image"],xi="noreferrer noopener";class pi extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,imageMedia:r,clientId:d}=this.props,{blockId:k,imageMediaId:n,imageAlt:u,titleText:b,metaText:c,contentText:_,linkUrl:g,linkText:v,linkTarget:h,linkRel:m,linkTitle:x,linkAriaLabel:p,textColor:C}=e;k||t({blockId:d});const j=e=>{t({imageMediaId:e.id})};return(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(gi,{children:[(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.BaseControl,{children:(0,s.jsxs)("div",{className:"uikit-editor-blocks-image-select",children:[(0,s.jsx)(vi,{fallback:(0,s.jsx)("p",{children:(0,l.__)("To edit the image, you need permission to upload media.","uikit-editor-blocks")}),children:(0,s.jsx)(hi,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:mi,value:n,render:({open:e})=>(0,s.jsxs)(a.Button,{className:n?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:e,children:[!n&&(0,l.__)("Set image","uikit-editor-blocks"),!!n&&!r&&(0,s.jsx)(a.Spinner,{}),!!n&&r&&(0,s.jsx)(a.ResponsiveWrapper,{naturalWidth:r.media_details.width,naturalHeight:r.media_details.height,children:(0,s.jsx)("img",{src:r.source_url,alt:(0,l.__)("Image","uikit-editor-blocks")})})]})})}),!!n&&r&&(0,s.jsx)(vi,{children:(0,s.jsx)(hi,{title:(0,l.__)("Image","uikit-editor-blocks"),onSelect:j,allowedTypes:mi,value:n,render:({open:e})=>(0,s.jsx)(a.Button,{onClick:e,isDefault:!0,isLarge:!0,children:(0,l.__)("Replace image","uikit-editor-blocks")})})}),!!n&&(0,s.jsx)(vi,{children:(0,s.jsx)(a.Button,{onClick:()=>{t({imageMediaId:void 0})},isLink:!0,isDestructive:!0,children:(0,l.__)("Remove image","uikit-editor-blocks")})})]})}),n&&(0,s.jsx)(a.TextControl,{label:(0,l.__)("Image Alt","uikit-editor-blocks"),value:u,onChange:e=>t({imageAlt:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:b,onChange:e=>t({titleText:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Meta","uikit-editor-blocks"),value:c,onChange:e=>t({metaText:e})}),(0,s.jsx)(a.TextareaControl,{label:(0,l.__)("Content","uikit-editor-blocks"),value:_,onChange:e=>t({contentText:e})}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link url","uikit-editor-blocks"),value:g,onChange:e=>t({linkUrl:e})}),g&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:v,onChange:e=>t({linkText:e})}),(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=m;l&&!m?i=xi:l||m!==xi||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===h}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:m||"",onChange:e=>{t({linkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:x,onChange:e=>{t({linkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:p,onChange:e=>{t({linkAriaLabel:e})}})]})]}),(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Slideshow Item","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Text Color","uikit-editor-blocks"),value:C,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Light","uikit-editor-blocks"),value:"light"},{label:(0,l.__)("Dark","uikit-editor-blocks"),value:"dark"}],onChange:e=>{t({textColor:e})}})})]}),(0,s.jsx)("div",{className:i,children:""!=b?b:(0,l.__)("Title","uikit-editor-blocks")})]})}}const Ci=(0,r.compose)((0,d.withSelect)(((e,l)=>{const{clientId:i}=l,{getBlockOrder:t}=e("core/block-editor")||e("core/editor"),{getMedia:o}=e("core"),{imageMediaId:a}=l.attributes;return{imageMedia:a?o(a):null}})))(pi);(0,e.registerBlockType)("uikit-editor-blocks/slideshow-item",{title:(0,l.__)("Slideshow Item (UIkit)","uikit-editor-blocks"),icon:ci,category:"uikit-editor-blocks",keywords:[(0,l.__)("Slideshow Item","uikit-editor-blocks"),(0,l.__)("UIkit Slideshow Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/slideshow"],edit:Ci,save:()=>null});const{InnerBlocks:ji,InspectorControls:Si}=i||t,yi=["uikit-editor-blocks/social-icons-item"];class Ti extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:k}=this.props,{blockId:n,linkStyle:u,grid:b,gridBreakpoint:c,gridGap:_}=i;return n||t({blockId:k}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(Si,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Social Icons","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"},{label:(0,l.__)("Button","uikit-editor-blocks"),value:"button"},{label:(0,l.__)("Link","uikit-editor-blocks"),value:""},{label:(0,l.__)("Link Muted","uikit-editor-blocks"),value:"link-muted"},{label:(0,l.__)("Link Text","uikit-editor-blocks"),value:"link-text"},{label:(0,l.__)("Link Reset","uikit-editor-blocks"),value:"link-reset"}],onChange:e=>{t({linkStyle:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Grid","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Horizontal","uikit-editor-blocks"),value:""},{label:(0,l.__)("Vertical","uikit-editor-blocks"),value:"vertical"}],onChange:e=>{t({grid:e})}}),"vertical"==b&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Grid Breakpoint","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Always","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({gridBreakpoint:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Grid Gap","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({gridGap:e})}})]})}),(0,s.jsx)("div",{className:e,children:(0,s.jsx)(ji,{allowedBlocks:yi})})]})}}const Hi=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),Li=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),fi=(0,r.compose)(Hi,Li)(Ti),wi=(0,s.jsx)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)(v.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})}),{InnerBlocks:Bi}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/social-icons",{title:(0,l.__)("Social Icons (UIkit)","uikit-editor-blocks"),icon:wi,category:"uikit-editor-blocks",keywords:[(0,l.__)("Social Icons","uikit-editor-blocks"),(0,l.__)("UIkit Social Icons","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:fi,save:()=>(0,s.jsx)(Bi.Content,{})});const{InspectorControls:Ii}=i||t,Mi="noreferrer noopener";class Wi extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,icon:k,linkUrl:n,linkTarget:u,linkRel:b,linkTitle:c,linkAriaLabel:_}=e;return d||t({blockId:r}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(Ii,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Icon","uikit-editor-blocks"),value:k,options:[{label:(0,l.__)("Facebook","uikit-editor-blocks"),value:"facebook"},{label:(0,l.__)("WhatsApp","uikit-editor-blocks"),value:"whatsapp"},{label:(0,l.__)("Instagram","uikit-editor-blocks"),value:"instagram"},{label:(0,l.__)("YouTube","uikit-editor-blocks"),value:"youtube"},{label:(0,l.__)("Telegram","uikit-editor-blocks"),value:"telegram"},{label:(0,l.__)("GitHub","uikit-editor-blocks"),value:"github"},{label:(0,l.__)("Vimeo","uikit-editor-blocks"),value:"vimeo"},{label:(0,l.__)("Twitch","uikit-editor-blocks"),value:"twitch"},{label:(0,l.__)("SoundCloud","uikit-editor-blocks"),value:"soundcloud"},{label:(0,l.__)("Reddit","uikit-editor-blocks"),value:"reddit"},{label:(0,l.__)("Discord","uikit-editor-blocks"),value:"discord"},{label:(0,l.__)("LinkedIn","uikit-editor-blocks"),value:"linkedin"},{label:(0,l.__)("TikTok","uikit-editor-blocks"),value:"tiktok"},{label:(0,l.__)("Google","uikit-editor-blocks"),value:"google"},{label:(0,l.__)("Pinterest","uikit-editor-blocks"),value:"pinterest"},{label:(0,l.__)("Signal","uikit-editor-blocks"),value:"signal"},{label:(0,l.__)("Threads","uikit-editor-blocks"),value:"threads"}],onChange:e=>{t({icon:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link","uikit-editor-blocks"),value:n,onChange:e=>t({linkUrl:e})}),n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.ToggleControl,{label:(0,l.__)("Open in New Tab","uikit-editor-blocks"),onChange:e=>{const l=e?"_blank":void 0;let i=b;l&&!b?i=Mi:l||b!==Mi||(i=void 0),t({linkTarget:l,linkRel:i})},checked:"_blank"===u}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Rel","uikit-editor-blocks"),value:b||"",onChange:e=>{t({linkRel:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Title","uikit-editor-blocks"),value:c,onChange:e=>{t({linkTitle:e})}}),(0,s.jsx)(a.TextControl,{label:(0,l.__)("Link Aria Label","uikit-editor-blocks"),value:_,onChange:e=>{t({linkAriaLabel:e})}})]})]})}),(0,s.jsx)("div",{className:i,children:""!=k?k:(0,l.__)("Title","uikit-editor-blocks")})]})}}const Pi=Wi;(0,e.registerBlockType)("uikit-editor-blocks/social-icons-item",{title:(0,l.__)("Social Icons Item (UIkit)","uikit-editor-blocks"),icon:wi,category:"uikit-editor-blocks",keywords:[(0,l.__)("Social Icons Item","uikit-editor-blocks"),(0,l.__)("UIkit Social Icons Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/social-icons"],edit:Pi,save:()=>null});const{InspectorControls:Ni,InnerBlocks:Ai}=i||t,Di=["uikit-editor-blocks/switcher-item"];class Vi extends o.Component{render(){const{className:e,attributes:i,setAttributes:t,columns:r,updateBlockAttributes:d,clientId:k}=this.props,{blockId:n,animation:u,navigation:b,navigationPosition:c,navigationAlignment:_,navigationMargin:g,navigationGridWidth:v,navigationGridColumnGap:h,navigationGridRowGap:m,navigationGridBreakpoint:x,navigationVerticalAlignment:p}=i;return n||t({blockId:k}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsxs)(Ni,{children:[(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Switcher","uikit-editor-blocks"),initialOpen:!1,children:(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Animation","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Fade","uikit-editor-blocks"),value:"fade"},{label:(0,l.__)("Scale Up","uikit-editor-blocks"),value:"scale-up"},{label:(0,l.__)("Scale Down","uikit-editor-blocks"),value:"scale-down"},{label:(0,l.__)("Slide Top Small","uikit-editor-blocks"),value:"slide-top-small"},{label:(0,l.__)("Slide Bottom Small","uikit-editor-blocks"),value:"slide-bottom-small"},{label:(0,l.__)("Slide Left Small","uikit-editor-blocks"),value:"slide-left-small"},{label:(0,l.__)("Slide Right Small","uikit-editor-blocks"),value:"slide-right-small"},{label:(0,l.__)("Slide Top Medium","uikit-editor-blocks"),value:"slide-top-medium"},{label:(0,l.__)("Slide Bottom Medium","uikit-editor-blocks"),value:"slide-bottom-medium"},{label:(0,l.__)("Slide Left Medium","uikit-editor-blocks"),value:"slide-left-medium"},{label:(0,l.__)("Slide Right Medium","uikit-editor-blocks"),value:"slide-right-medium"},{label:(0,l.__)("Slide Top 100%","uikit-editor-blocks"),value:"slide-top"},{label:(0,l.__)("Slide Bottom 100%","uikit-editor-blocks"),value:"slide-bottom"},{label:(0,l.__)("Slide Left 100%","uikit-editor-blocks"),value:"slide-left"},{label:(0,l.__)("Slide Right 100%","uikit-editor-blocks"),value:"slide-right"}],onChange:e=>{t({animation:e})}})}),(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Navigation","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Navigation","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("Tabs","uikit-editor-blocks"),value:"tabs"},{label:(0,l.__)("Subnav Pill (Nav)","uikit-editor-blocks"),value:"subnav-pill"},{label:(0,l.__)("Subnav Divider (Nav)","uikit-editor-blocks"),value:"subnav-divider"},{label:(0,l.__)("Subnav (Nav)","uikit-editor-blocks"),value:"subnav"}],onChange:e=>{t({navigation:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Position","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("Top","uikit-editor-blocks"),value:"top"},{label:(0,l.__)("Bottom","uikit-editor-blocks"),value:"bottom"},{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"}],onChange:e=>{t({navigationPosition:e})}}),("top"==c||"bottom"==c)&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Alignment","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("Left","uikit-editor-blocks"),value:"left"},{label:(0,l.__)("Right","uikit-editor-blocks"),value:"right"},{label:(0,l.__)("Center","uikit-editor-blocks"),value:"center"},{label:(0,l.__)("Justify","uikit-editor-blocks"),value:"justify"}],onChange:e=>{t({navigationAlignment:e})}}),("top"==c||"bottom"==c)&&(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Margin","uikit-editor-blocks"),value:g,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large","uikit-editor-blocks"),value:"xlarge"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:"default"}],onChange:e=>{t({navigationMargin:e})}}),("left"==c||"right"==c)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Grid Width","uikit-editor-blocks"),value:v,options:[{label:(0,l.__)("Auto","uikit-editor-blocks"),value:"auto"},{label:(0,l.__)("50%","uikit-editor-blocks"),value:"1-2"},{label:(0,l.__)("33%","uikit-editor-blocks"),value:"1-3"},{label:(0,l.__)("25%","uikit-editor-blocks"),value:"1-4"},{label:(0,l.__)("20%","uikit-editor-blocks"),value:"1-5"},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({navigationGridWidth:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Grid Column Gap","uikit-editor-blocks"),value:h,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({navigationGridColumnGap:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Grid Row Gap","uikit-editor-blocks"),value:m,options:[{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Default","uikit-editor-blocks"),value:""},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("None","uikit-editor-blocks"),value:"none"}],onChange:e=>{t({navigationGridRowGap:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Grid Breakpoint","uikit-editor-blocks"),value:x,options:[{label:(0,l.__)("Small (Phone Landscape)","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Medium (Tablet Landscape)","uikit-editor-blocks"),value:"medium"},{label:(0,l.__)("Large (Desktop)","uikit-editor-blocks"),value:"large"},{label:(0,l.__)("X-Large (Large Screens)","uikit-editor-blocks"),value:"xlarge"}],onChange:e=>{t({navigationGridBreakpoint:e})}}),(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Vertical Alignment","uikit-editor-blocks"),checked:p,onChange:e=>t({navigationVerticalAlignment:e})})]})]})]}),(0,s.jsx)("div",{className:e,children:(0,s.jsx)(Ai,{allowedBlocks:Di})})]})}}const Ri=(0,d.withSelect)(((e,{clientId:l})=>{const{getBlocksByClientId:i}=e("core/block-editor")||e("core/editor");return{columns:i(l)[0]?i(l)[0].innerBlocks:[]}})),Oi=(0,d.withDispatch)((e=>{const{updateBlockAttributes:l}=e("core/block-editor")||e("core/editor");return{updateBlockAttributes:l}})),Ui=(0,r.compose)(Ri,Oi)(Vi),Xi=(0,s.jsx)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(v.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"})}),{InnerBlocks:Ei}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/switcher",{title:(0,l.__)("Switcher (UIkit)","uikit-editor-blocks"),icon:Xi,category:"uikit-editor-blocks",keywords:[(0,l.__)("Switcher","uikit-editor-blocks"),(0,l.__)("UIkit Switcher","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:Ui,save:()=>(0,s.jsx)(Ei.Content,{})});const{InspectorControls:zi,InnerBlocks:Fi}=i||t;class Gi extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,hasChildBlocks:r,bgImage:d,clientId:k}=this.props,{blockId:n,titleText:u}=e;return n||t({blockId:k}),(0,s.jsxs)(o.Fragment,{children:[(0,s.jsx)(zi,{children:(0,s.jsx)(a.PanelBody,{title:(0,l.__)("Block Content","uikit-editor-blocks"),children:(0,s.jsx)(a.TextControl,{label:(0,l.__)("Title","uikit-editor-blocks"),value:u,onChange:e=>t({titleText:e})})})}),(0,s.jsx)("div",{className:i,children:(0,s.jsx)(Fi,{renderAppender:r?void 0:()=>(0,s.jsx)(Fi.ButtonBlockAppender,{})})})]})}}const Zi=Gi,{InnerBlocks:Qi}=i||t;(0,e.registerBlockType)("uikit-editor-blocks/switcher-item",{title:(0,l.__)("Switcher Item (UIkit)","uikit-editor-blocks"),icon:Xi,category:"uikit-editor-blocks",keywords:[(0,l.__)("Switcher Item","uikit-editor-blocks"),(0,l.__)("UIkit Switcher Item","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],parent:["uikit-editor-blocks/switcher"],edit:Zi,save:()=>(0,s.jsx)(Qi.Content,{})});const{BlockControls:Ji,AlignmentToolbar:qi,RichText:Ki,InspectorControls:Yi}=i||t;class $i extends o.Component{render(){const{attributes:e,className:i,setAttributes:t,clientId:r}=this.props,{blockId:d,text:k,dropCap:n,style:u,color:b,size:c,element:_,alignment:g}=e;return d||t({blockId:r}),(0,s.jsx)(o.Fragment,{children:(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(Ji,{children:(0,s.jsx)(qi,{value:g,onChange:e=>{t({alignment:void 0===e?"none":e})}})}),(0,s.jsx)(Ki,{placeholder:(0,l.__)("Enter text here...","uikit-editor-blocks"),value:k,tagName:"div",onChange:e=>t({text:e}),keepPlaceholderOnFocus:!0}),(0,s.jsx)(Yi,{children:(0,s.jsxs)(a.PanelBody,{title:(0,l.__)("Text","uikit-editor-blocks"),initialOpen:!1,children:[(0,s.jsx)(a.CheckboxControl,{label:(0,l.__)("Drop Cap","uikit-editor-blocks"),checked:n,onChange:e=>t({dropCap:e})}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Style","uikit-editor-blocks"),value:u,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Lead","uikit-editor-blocks"),value:"lead"},{label:(0,l.__)("Meta","uikit-editor-blocks"),value:"meta"}],onChange:e=>{t({style:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Color","uikit-editor-blocks"),value:b,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Muted","uikit-editor-blocks"),value:"muted"},{label:(0,l.__)("Emphasis","uikit-editor-blocks"),value:"emphasis"},{label:(0,l.__)("Primary","uikit-editor-blocks"),value:"primary"},{label:(0,l.__)("Secondary","uikit-editor-blocks"),value:"secondary"},{label:(0,l.__)("Success","uikit-editor-blocks"),value:"success"},{label:(0,l.__)("Warning","uikit-editor-blocks"),value:"warning"},{label:(0,l.__)("Danger","uikit-editor-blocks"),value:"danger"}],onChange:e=>{t({color:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("Size","uikit-editor-blocks"),value:c,options:[{label:(0,l.__)("None","uikit-editor-blocks"),value:""},{label:(0,l.__)("Small","uikit-editor-blocks"),value:"small"},{label:(0,l.__)("Large","uikit-editor-blocks"),value:"large"}],onChange:e=>{t({size:e})}}),(0,s.jsx)(a.SelectControl,{label:(0,l.__)("HTML Element","uikit-editor-blocks"),value:_,options:[{label:(0,l.__)("P","uikit-editor-blocks"),value:"p"},{label:(0,l.__)("Div","uikit-editor-blocks"),value:"div"}],onChange:e=>{t({element:e})}})]})})]})})}}const et=$i,lt=(0,s.jsx)(v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(v.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});(0,e.registerBlockType)("uikit-editor-blocks/text",{title:(0,l.__)("Text (UIkit)","uikit-editor-blocks"),icon:lt,category:"uikit-editor-blocks",keywords:[(0,l.__)("Text","uikit-editor-blocks"),(0,l.__)("UIkit Text","uikit-editor-blocks"),(0,l.__)("UIkit","uikit-editor-blocks")],edit:et,save:()=>null})})(); -
uikit-editor-blocks/trunk/readme.txt
r3236715 r3241505 2 2 Tags: uikit, block-editor, blocks 3 3 Requires at least: 6.0 4 Tested up to: 6.7 4 Tested up to: 6.7.2 5 5 Requires PHP: 7.4 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 32 32 **Grid** 33 33 **Heading** 34 **Icon** 34 35 **Image** 35 36 **Overlay** … … 37 38 **Panel** 38 39 **Panel Slider** 40 **Quotation** 39 41 **Section** 40 42 **Slideshow** … … 92 94 93 95 = 1.0.1 = 94 * Fix: UIkit CSS loading issue when settings are unsaved. 96 * Fixed: UIkit CSS loading issue when settings are unsaved. 97 98 = 1.0.2 = 99 * Fixed: Updated templates for Button and Image blocks. 100 * Fixed: Updated icons for blocks. 101 * Added: "Full Width" checkbox option to the Button block. 102 * Added: New Icon block. 103 * Added: New Quotation block. -
uikit-editor-blocks/trunk/src/accordion-item/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { column } from '../icons';11 import { pullquote as icon } from '@wordpress/icons'; 12 12 13 13 registerBlockType( 'uikit-editor-blocks/accordion-item', { 14 14 title: __( 'Accordion Item (UIkit)', 'uikit-editor-blocks' ), 15 icon: column,15 icon: icon, 16 16 category: 'uikit-editor-blocks', 17 17 keywords: [ -
uikit-editor-blocks/trunk/src/accordion/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { columns } from '../icons';11 import { pullquote as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/accordion', { 18 18 title: __( 'Accordion (UIkit)', 'uikit-editor-blocks' ), 19 icon: columns,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/accordion/edit.js
r3235858 r3241505 19 19 select 20 20 } from '@wordpress/data'; 21 import { templateIconMissing} from '../icons';22 21 import { __ } from '@wordpress/i18n'; 23 22 -
uikit-editor-blocks/trunk/src/button/block.js
r3235858 r3241505 7 7 import { __ } from '@wordpress/i18n'; 8 8 import edit from './edit'; 9 import { button } from '../icons';9 import { button as icon } from '@wordpress/icons'; 10 10 import './editor.scss'; 11 11 12 12 registerBlockType( 'uikit-editor-blocks/button', { 13 13 title: __( 'Button (UIkit)', 'uikit-editor-blocks' ), 14 icon: button,14 icon: icon, 15 15 category: 'uikit-editor-blocks', 16 16 keywords: [ -
uikit-editor-blocks/trunk/src/button/class-button-block-type.php
r3235858 r3241505 48 48 'type' => 'string', 49 49 ), 50 'linkTitle' => array( 51 'type' => 'string', 52 ), 53 'linkAriaLabel' => array( 54 'type' => 'string', 55 ), 50 56 'style' => array( 51 57 'type' => 'string', … … 54 60 'type' => 'string', 55 61 ), 56 'linkTitle' => array( 57 'type' => 'string', 58 ), 59 'linkAriaLabel' => array( 60 'type' => 'string', 62 'fullWidth' => array( 63 'type' => 'boolean', 61 64 ), 62 65 ); … … 77 80 'style' => 'default', 78 81 'size' => '', 82 'fullWidth' => false, 79 83 ); 80 84 } -
uikit-editor-blocks/trunk/src/button/edit.js
r3235858 r3241505 12 12 SelectControl, 13 13 ToggleControl, 14 CheckboxControl, 14 15 } from '@wordpress/components'; 15 16 import { __ } from '@wordpress/i18n'; … … 43 44 style, 44 45 size, 46 fullWidth, 45 47 } = attributes; 46 48 … … 157 159 } } 158 160 /> 161 <CheckboxControl 162 label={ __( 'Full Width', 'uikit-editor-blocks' ) } 163 checked={ fullWidth } 164 onChange={ ( isChecked ) => 165 setAttributes( { fullWidth: isChecked } ) 166 } 167 /> 159 168 </PanelBody> 160 169 </InspectorControls> -
uikit-editor-blocks/trunk/src/card/block.js
r3235858 r3241505 7 7 import { __ } from '@wordpress/i18n'; 8 8 import edit from './edit'; 9 import { button } from '../icons';9 import { postFeaturedImage as icon } from '@wordpress/icons'; 10 10 import './editor.scss'; 11 11 12 12 registerBlockType( 'uikit-editor-blocks/card', { 13 13 title: __( 'Card (UIkit)', 'uikit-editor-blocks' ), 14 icon: button,14 icon: icon, 15 15 category: 'uikit-editor-blocks', 16 16 keywords: [ -
uikit-editor-blocks/trunk/src/class-uikit-editor-blocks.php
r3236715 r3241505 19 19 use Uikit_Editor_Blocks\Grid_Column\Grid_Column_Block_Type; 20 20 use Uikit_Editor_Blocks\Heading\Heading_Block_Type; 21 use Uikit_Editor_Blocks\Icon\Icon_Block_Type; 21 22 use Uikit_Editor_Blocks\Image\Image_Block_Type; 22 23 use Uikit_Editor_Blocks\Overlay\Overlay_Block_Type; … … 26 27 use Uikit_Editor_Blocks\Panel_Slider\Panel_Slider_Block_Type; 27 28 use Uikit_Editor_Blocks\Panel_Slider_Item\Panel_Slider_Item_Block_Type; 29 use Uikit_Editor_Blocks\Quotation\Quotation_Block_Type; 28 30 use Uikit_Editor_Blocks\Section\Section_Block_Type; 29 31 use Uikit_Editor_Blocks\Slideshow\Slideshow_Block_Type; … … 56 58 * @var string 57 59 */ 58 public static $version = '1.0. 1';60 public static $version = '1.0.2'; 59 61 60 62 /** … … 147 149 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/grid-column/class-grid-column-block-type.php'; 148 150 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/heading/class-heading-block-type.php'; 151 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/icon/class-icon-block-type.php'; 149 152 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/image/class-image-block-type.php'; 150 153 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/overlay/class-overlay-block-type.php'; … … 154 157 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/panel-slider/class-panel-slider-block-type.php'; 155 158 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/panel-slider-item/class-panel-slider-item-block-type.php'; 159 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/quotation/class-quotation-block-type.php'; 156 160 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/section/class-section-block-type.php'; 157 161 require_once UIKIT_EDITOR_BLOCKS_ABSPATH . 'src/slideshow/class-slideshow-block-type.php'; … … 295 299 new Grid_Column_Block_Type(); 296 300 new Heading_Block_Type(); 301 new Icon_Block_Type(); 297 302 new Image_Block_Type(); 298 303 new Overlay_Block_Type(); … … 302 307 new Panel_Slider_Block_Type(); 303 308 new Panel_Slider_Item_Block_Type(); 309 new Quotation_Block_Type(); 304 310 new Section_Block_Type(); 305 311 new Slideshow_Block_Type(); -
uikit-editor-blocks/trunk/src/container/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { stack } from '../icons';11 import { fullscreen as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/container', { 18 18 title: __( 'Container (UIkit)', 'uikit-editor-blocks' ), 19 icon: stack,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/divider/block.js
r3235858 r3241505 7 7 import { __ } from '@wordpress/i18n'; 8 8 import edit from './edit'; 9 import { button } from '../icons';9 import { separator as icon } from '@wordpress/icons'; 10 10 import './editor.scss'; 11 11 12 12 registerBlockType( 'uikit-editor-blocks/divider', { 13 13 title: __( 'Divider (UIkit)', 'uikit-editor-blocks' ), 14 icon: button,14 icon: icon, 15 15 category: 'uikit-editor-blocks', 16 16 keywords: [ -
uikit-editor-blocks/trunk/src/dropdown-item/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { c olumn } from '../icons';11 import { chevronDown as icon } from '@wordpress/icons'; 12 12 13 13 registerBlockType( 'uikit-editor-blocks/dropdown-item', { 14 14 title: __( 'Dropdown Item (UIkit)', 'uikit-editor-blocks' ), 15 icon: column,15 icon: icon, 16 16 category: 'uikit-editor-blocks', 17 17 keywords: [ -
uikit-editor-blocks/trunk/src/dropdown/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { c olumns } from '../icons';11 import { chevronDown as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/dropdown', { 18 18 title: __( 'Dropdown (UIkit)', 'uikit-editor-blocks' ), 19 icon: columns,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/dropdown/edit.js
r3235858 r3241505 17 17 withDispatch, 18 18 } from '@wordpress/data'; 19 import { templateIconMissing} from '../icons';20 19 import { __ } from '@wordpress/i18n'; 21 20 -
uikit-editor-blocks/trunk/src/grid-column/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { column } from '../icons';11 import { column as icon } from '@wordpress/icons'; 12 12 13 13 // Fallback to deprecated '@wordpress/editor' for backwards compatibility … … 16 16 registerBlockType( 'uikit-editor-blocks/grid-column', { 17 17 title: __( 'Grid Column (UIkit)', 'uikit-editor-blocks' ), 18 icon: column,18 icon: icon, 19 19 category: 'uikit-editor-blocks', 20 20 keywords: [ -
uikit-editor-blocks/trunk/src/grid/block.js
r3235858 r3241505 10 10 import edit from './edit'; 11 11 import transforms from './transforms'; 12 import { columns } from '../icons';12 import { columns as icon } from '@wordpress/icons'; 13 13 import './editor.scss'; 14 14 … … 18 18 registerBlockType( 'uikit-editor-blocks/grid', { 19 19 title: __( 'Grid (UIkit)', 'uikit-editor-blocks' ), 20 icon: columns,20 icon: icon, 21 21 category: 'uikit-editor-blocks', 22 22 keywords: [ -
uikit-editor-blocks/trunk/src/grid/edit.js
r3235858 r3241505 20 20 withDispatch, 21 21 } from '@wordpress/data'; 22 import { templateIconMissing } from '../icons';23 22 import { applyFilters } from '@wordpress/hooks'; 24 23 import { __ } from '@wordpress/i18n'; … … 36 35 const addMissingTemplateIcons = ( templates ) => { 37 36 return templates.map( ( template ) => { 38 return { icon: templateIconMissing, ...template }; 37 return { 38 icon: ( 39 <SVG 40 width="48" 41 height="48" 42 viewBox="0 0 48 48" 43 xmlns="http://www.w3.org/2000/svg" 44 > 45 <Path 46 fillRule="evenodd" 47 clipRule="evenodd" 48 d="M23.58 26.28c0-.600003.1499985-1.099998.45-1.5.3000015-.400002.7433304-.8399976 1.33-1.32.5600028-.4533356.9833319-.8699981 1.27-1.25s.43-.8433306.43-1.39c0-.5466694-.1733316-1.0566643-.52-1.53s-.986662-.71-1.92-.71c-1.1066722 0-1.8533314.2766639-2.24.83-.3866686.5533361-.58 1.1766632-.58 1.87 0 .1466674.0033333.2666662.01.36.0066667.0933338.01.1533332.01.18h-1.78c-.0133334-.0533336-.0266666-.146666-.04-.28-.0133334-.133334-.02-.2733326-.02-.42 0-.7733372.1766649-1.4666636.53-2.08.3533351-.6133364.8899964-1.0999982 1.61-1.46.7200036-.3600018 1.5999948-.54 2.64-.54 1.2133394 0 2.2033295.3233301 2.97.97s1.15 1.5099946 1.15 2.59c0 .7066702-.1033323 1.3033309-.31 1.79-.2066677.4866691-.4533319.8799985-.74 1.18-.2866681.3000015-.6566644.6233316-1.11.97-.4800024.3866686-.8333322.7166653-1.06.99-.2266678.2733347-.34.6233312-.34 1.05v.82h-1.74zm-.14 2.56h2V31h-2zM39 12c1.1046 0 2 .8954 2 2v20c0 1.1046-.8954 2-2 2H9c-1.10457 0-2-.8954-2-2V14c0-1.1046.89543-2 2-2h30zm0 22V14H9v20h30z" 49 /> 50 </SVG> 51 ), ...template 52 }; 39 53 } ); 40 54 }; … … 928 942 name: CUSTOM_TEMPLATE_NAME, 929 943 title: __( 'Custom', 'uikit-editor-blocks' ), 930 icon: templateIconMissing, 944 icon: ( 945 <SVG 946 width="48" 947 height="48" 948 viewBox="0 0 48 48" 949 xmlns="http://www.w3.org/2000/svg" 950 > 951 <Path 952 fillRule="evenodd" 953 clipRule="evenodd" 954 d="M23.58 26.28c0-.600003.1499985-1.099998.45-1.5.3000015-.400002.7433304-.8399976 1.33-1.32.5600028-.4533356.9833319-.8699981 1.27-1.25s.43-.8433306.43-1.39c0-.5466694-.1733316-1.0566643-.52-1.53s-.986662-.71-1.92-.71c-1.1066722 0-1.8533314.2766639-2.24.83-.3866686.5533361-.58 1.1766632-.58 1.87 0 .1466674.0033333.2666662.01.36.0066667.0933338.01.1533332.01.18h-1.78c-.0133334-.0533336-.0266666-.146666-.04-.28-.0133334-.133334-.02-.2733326-.02-.42 0-.7733372.1766649-1.4666636.53-2.08.3533351-.6133364.8899964-1.0999982 1.61-1.46.7200036-.3600018 1.5999948-.54 2.64-.54 1.2133394 0 2.2033295.3233301 2.97.97s1.15 1.5099946 1.15 2.59c0 .7066702-.1033323 1.3033309-.31 1.79-.2066677.4866691-.4533319.8799985-.74 1.18-.2866681.3000015-.6566644.6233316-1.11.97-.4800024.3866686-.8333322.7166653-1.06.99-.2266678.2733347-.34.6233312-.34 1.05v.82h-1.74zm-.14 2.56h2V31h-2zM39 12c1.1046 0 2 .8954 2 2v20c0 1.1046-.8954 2-2 2H9c-1.10457 0-2-.8954-2-2V14c0-1.1046.89543-2 2-2h30zm0 22V14H9v20h30z" 955 /> 956 </SVG> 957 ), 931 958 templateLock: false, 932 959 template: [ [ 'uikit-editor-blocks/grid-column' ] ], -
uikit-editor-blocks/trunk/src/heading/block.js
r3235858 r3241505 7 7 import { __ } from '@wordpress/i18n'; 8 8 import edit from './edit'; 9 import { button } from '../icons';9 import { heading as icon } from '@wordpress/icons'; 10 10 import './editor.scss'; 11 11 12 12 registerBlockType( 'uikit-editor-blocks/heading', { 13 13 title: __( 'Heading (UIkit)', 'uikit-editor-blocks' ), 14 icon: button,14 icon: icon, 15 15 category: 'uikit-editor-blocks', 16 16 keywords: [ -
uikit-editor-blocks/trunk/src/image/block.js
r3235858 r3241505 7 7 import { __ } from '@wordpress/i18n'; 8 8 import edit from './edit'; 9 import { button } from '../icons';9 import { image as icon } from '@wordpress/icons'; 10 10 import './editor.scss'; 11 11 12 12 registerBlockType( 'uikit-editor-blocks/image', { 13 13 title: __( 'Image (UIkit)', 'uikit-editor-blocks' ), 14 icon: button,14 icon: icon, 15 15 category: 'uikit-editor-blocks', 16 16 keywords: [ -
uikit-editor-blocks/trunk/src/index.js
r3235858 r3241505 1 1 import './common.js'; 2 2 3 // Blocks 3 4 import './accordion/block.js'; 4 5 import './accordion-item/block.js'; … … 14 15 import './grid-column/block.js'; 15 16 import './heading/block.js'; 17 import './icon/block.js'; 16 18 import './image/block.js'; 17 19 import './overlay/block.js'; … … 21 23 import './panel-slider/block.js'; 22 24 import './panel-slider-item/block.js'; 25 import './quotation/block.js'; 23 26 import './section/block.js'; 24 27 import './slideshow/block.js'; -
uikit-editor-blocks/trunk/src/overlay-slider-item/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { column } from '../icons';11 import { postFeaturedImage as icon } from '@wordpress/icons'; 12 12 13 13 registerBlockType( 'uikit-editor-blocks/overlay-slider-item', { 14 14 title: __( 'Overlay Slider Item (UIkit)', 'uikit-editor-blocks' ), 15 icon: column,15 icon: icon, 16 16 category: 'uikit-editor-blocks', 17 17 keywords: [ -
uikit-editor-blocks/trunk/src/overlay-slider/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { columns } from '../icons';11 import { postFeaturedImage as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/overlay-slider', { 18 18 title: __( 'Overlay Slider (UIkit)', 'uikit-editor-blocks' ), 19 icon: columns,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/overlay-slider/edit.js
r3235858 r3241505 22 22 select, 23 23 } from '@wordpress/data'; 24 import { templateIconMissing} from '../icons';25 24 import { __ } from '@wordpress/i18n'; 26 25 -
uikit-editor-blocks/trunk/src/overlay/block.js
r3235858 r3241505 7 7 import { __ } from '@wordpress/i18n'; 8 8 import edit from './edit'; 9 import { button } from '../icons';9 import { postFeaturedImage as icon } from '@wordpress/icons'; 10 10 import './editor.scss'; 11 11 12 12 registerBlockType( 'uikit-editor-blocks/overlay', { 13 13 title: __( 'Overlay (UIkit)', 'uikit-editor-blocks' ), 14 icon: button,14 icon: icon, 15 15 category: 'uikit-editor-blocks', 16 16 keywords: [ -
uikit-editor-blocks/trunk/src/panel-slider-item/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { column } from '../icons';11 import { postFeaturedImage as icon } from '@wordpress/icons'; 12 12 13 13 registerBlockType( 'uikit-editor-blocks/panel-slider-item', { 14 14 title: __( 'Panel Slider Item (UIkit)', 'uikit-editor-blocks' ), 15 icon: column,15 icon: icon, 16 16 category: 'uikit-editor-blocks', 17 17 keywords: [ -
uikit-editor-blocks/trunk/src/panel-slider/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { columns } from '../icons';11 import { postFeaturedImage as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/panel-slider', { 18 18 title: __( 'Panel Slider (UIkit)', 'uikit-editor-blocks' ), 19 icon: columns,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/panel-slider/edit.js
r3235858 r3241505 20 20 select, 21 21 } from '@wordpress/data'; 22 import { templateIconMissing} from '../icons';23 22 import { __ } from '@wordpress/i18n'; 24 23 -
uikit-editor-blocks/trunk/src/panel/block.js
r3235858 r3241505 7 7 import { __ } from '@wordpress/i18n'; 8 8 import edit from './edit'; 9 import { button } from '../icons';9 import { postFeaturedImage as icon } from '@wordpress/icons'; 10 10 import './editor.scss'; 11 11 12 12 registerBlockType( 'uikit-editor-blocks/panel', { 13 13 title: __( 'Panel (UIkit)', 'uikit-editor-blocks' ), 14 icon: button,14 icon: icon, 15 15 category: 'uikit-editor-blocks', 16 16 keywords: [ -
uikit-editor-blocks/trunk/src/panel/edit.js
r3235858 r3241505 341 341 options={[ 342 342 { label: __( 'None', 'uikit-editor-blocks' ), value: '' }, 343 { label: __( 'Mute ', 'uikit-editor-blocks' ), value: 'muted' },343 { label: __( 'Muted', 'uikit-editor-blocks' ), value: 'muted' }, 344 344 { label: __( 'Emphasis', 'uikit-editor-blocks' ), value: 'emphasis' }, 345 345 { label: __( 'Primary', 'uikit-editor-blocks' ), value: 'primary' }, … … 417 417 options={[ 418 418 { label: __( 'None', 'uikit-editor-blocks' ), value: '' }, 419 { label: __( 'Mute ', 'uikit-editor-blocks' ), value: 'muted' },419 { label: __( 'Muted', 'uikit-editor-blocks' ), value: 'muted' }, 420 420 { label: __( 'Emphasis', 'uikit-editor-blocks' ), value: 'emphasis' }, 421 421 { label: __( 'Primary', 'uikit-editor-blocks' ), value: 'primary' }, -
uikit-editor-blocks/trunk/src/panel/editor.scss
r3235858 r3241505 4 4 [data-type="uikit-editor-blocks/panel"] { 5 5 padding: 60px 20px 20px 20px; 6 border: dashed 1px #eee; 6 7 box-sizing: border-box; 7 background-color: #fbfbfb;8 8 position: relative; 9 9 … … 12 12 position: absolute; 13 13 font-size: 10pt; 14 background: # f7f7f7;14 background: #eee; 15 15 left: -1px; 16 16 right: -1px; -
uikit-editor-blocks/trunk/src/section/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { stack } from '../icons';11 import { page as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/section', { 18 18 title: __( 'Section (UIkit)', 'uikit-editor-blocks' ), 19 icon: stack,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/slideshow-item/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { column } from '../icons';11 import { row as icon } from '@wordpress/icons'; 12 12 13 13 registerBlockType( 'uikit-editor-blocks/slideshow-item', { 14 14 title: __( 'Slideshow Item (UIkit)', 'uikit-editor-blocks' ), 15 icon: column,15 icon: icon, 16 16 category: 'uikit-editor-blocks', 17 17 keywords: [ -
uikit-editor-blocks/trunk/src/slideshow/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { columns } from '../icons';11 import { row as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/slideshow', { 18 18 title: __( 'Slideshow (UIkit)', 'uikit-editor-blocks' ), 19 icon: columns,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/slideshow/edit.js
r3235858 r3241505 22 22 select, 23 23 } from '@wordpress/data'; 24 import { templateIconMissing} from '../icons';25 24 import { __ } from '@wordpress/i18n'; 26 25 -
uikit-editor-blocks/trunk/src/social-icons-item/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { column } from '../icons';11 import { share as icon } from '@wordpress/icons'; 12 12 13 13 registerBlockType( 'uikit-editor-blocks/social-icons-item', { 14 14 title: __( 'Social Icons Item (UIkit)', 'uikit-editor-blocks' ), 15 icon: column,15 icon: icon, 16 16 category: 'uikit-editor-blocks', 17 17 keywords: [ -
uikit-editor-blocks/trunk/src/social-icons/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { columns } from '../icons';11 import { share as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/social-icons', { 18 18 title: __( 'Social Icons (UIkit)', 'uikit-editor-blocks' ), 19 icon: columns,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/social-icons/edit.js
r3235858 r3241505 19 19 select, 20 20 } from '@wordpress/data'; 21 import { templateIconMissing} from '../icons';22 21 import { __ } from '@wordpress/i18n'; 23 22 -
uikit-editor-blocks/trunk/src/switcher-item/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { column } from '../icons';11 import { reusableBlock as icon } from '@wordpress/icons'; 12 12 13 13 // Fallback to deprecated '@wordpress/editor' for backwards compatibility … … 16 16 registerBlockType( 'uikit-editor-blocks/switcher-item', { 17 17 title: __( 'Switcher Item (UIkit)', 'uikit-editor-blocks' ), 18 icon: column,18 icon: icon, 19 19 category: 'uikit-editor-blocks', 20 20 keywords: [ -
uikit-editor-blocks/trunk/src/switcher/block.js
r3235858 r3241505 9 9 import * as Editor from '@wordpress/editor'; 10 10 import edit from './edit'; 11 import { columns } from '../icons';11 import { reusableBlock as icon } from '@wordpress/icons'; 12 12 import './editor.scss'; 13 13 … … 17 17 registerBlockType( 'uikit-editor-blocks/switcher', { 18 18 title: __( 'Switcher (UIkit)', 'uikit-editor-blocks' ), 19 icon: columns,19 icon: icon, 20 20 category: 'uikit-editor-blocks', 21 21 keywords: [ -
uikit-editor-blocks/trunk/src/switcher/edit.js
r3235858 r3241505 17 17 withDispatch, 18 18 } from '@wordpress/data'; 19 import { templateIconMissing} from '../icons';20 19 import { __ } from '@wordpress/i18n'; 21 20 -
uikit-editor-blocks/trunk/src/templates/button.php
r3235858 r3241505 6 6 * 7 7 * @package uikit-editor-blocks/templates/button 8 * @version 1.0. 08 * @version 1.0.2 9 9 */ 10 10 … … 24 24 } 25 25 26 $block_elm_classes = ['uk-button']; 26 $block_elm_classes = []; 27 $button_elm_classes = ['uk-button']; 27 28 28 29 $style_classes = [ … … 42 43 if ( ! empty( $attributes['style'] ) ) { 43 44 if ( isset( $style_classes[ $attributes['style'] ] ) ) { 44 $b lock_elm_classes[] = $style_classes[ $attributes['style'] ];45 $button_elm_classes[] = $style_classes[ $attributes['style'] ]; 45 46 } 46 47 } … … 48 49 if ( ! empty( $attributes['size'] ) ) { 49 50 if ( isset( $size_classes[ $attributes['size'] ] ) ) { 50 $b lock_elm_classes[] = $size_classes[ $attributes['size'] ];51 $button_elm_classes[] = $size_classes[ $attributes['size'] ]; 51 52 } 53 } 54 55 if ( ! empty( $attributes['fullWidth'] ) && $attributes['fullWidth'] ) { 56 $button_elm_classes[] = 'uk-width-1-1'; 52 57 } 53 58 … … 67 72 $block_elm_classes = apply_filters( 'uikit_editor_blocks_button_classes', $block_elm_classes, $attributes ); 68 73 ?> 69 <a 70 <?php if ( ! empty( $attributes['linkUrl'] ) ) : ?> 71 href="<?php echo esc_url( $attributes['linkUrl'] ); ?>" 72 <?php endif; ?> 73 <?php if ( ! empty( $attributes['linkTarget'] ) ) : ?> 74 target="<?php echo esc_attr( $attributes['linkTarget'] ); ?>" 75 <?php endif; ?> 76 <?php if ( ! empty( $attributes['linkTitle'] ) ) : ?> 77 title="<?php echo esc_attr( $attributes['linkTitle'] ); ?>" 78 <?php endif; ?> 79 <?php if ( ! empty( $attributes['linkRel'] ) ) : ?> 80 rel="<?php echo esc_attr( $attributes['linkRel'] ); ?>" 81 <?php endif; ?> 82 <?php if ( ! empty( $attributes['linkAriaLabel'] ) ) : ?> 83 aria-label="<?php echo esc_attr( $attributes['linkAriaLabel'] ); ?>" 84 <?php endif; ?> 74 <div 85 75 <?php if ( ! empty( $block_elm_classes ) ) : ?> 86 76 class="<?php echo esc_attr( implode( ' ', $block_elm_classes ) ); ?>" 87 77 <?php endif; ?> 88 78 > 89 <?php echo esc_html( $attributes['text'] ); ?> 90 </a> 79 <a 80 <?php if ( ! empty( $attributes['linkUrl'] ) ) : ?> 81 href="<?php echo esc_url( $attributes['linkUrl'] ); ?>" 82 <?php endif; ?> 83 <?php if ( ! empty( $attributes['linkTarget'] ) ) : ?> 84 target="<?php echo esc_attr( $attributes['linkTarget'] ); ?>" 85 <?php endif; ?> 86 <?php if ( ! empty( $attributes['linkTitle'] ) ) : ?> 87 title="<?php echo esc_attr( $attributes['linkTitle'] ); ?>" 88 <?php endif; ?> 89 <?php if ( ! empty( $attributes['linkRel'] ) ) : ?> 90 rel="<?php echo esc_attr( $attributes['linkRel'] ); ?>" 91 <?php endif; ?> 92 <?php if ( ! empty( $attributes['linkAriaLabel'] ) ) : ?> 93 aria-label="<?php echo esc_attr( $attributes['linkAriaLabel'] ); ?>" 94 <?php endif; ?> 95 <?php if ( ! empty( $button_elm_classes ) ) : ?> 96 class="<?php echo esc_attr( implode( ' ', $button_elm_classes ) ); ?>" 97 <?php endif; ?> 98 > 99 <?php echo esc_html( $attributes['text'] ); ?> 100 </a> 101 </div> -
uikit-editor-blocks/trunk/src/templates/image.php
r3235858 r3241505 6 6 * 7 7 * @package uikit-editor-blocks/templates/image 8 * @version 1.0. 08 * @version 1.0.2 9 9 */ 10 10 … … 57 57 $block_elm_classes = apply_filters( 'uikit_editor_blocks_image_classes', $block_elm_classes, $attributes ); 58 58 ?> 59 <?php if ( ! empty( $attributes['linkUrl'] ) ) : ?> 60 <a 61 href="<?php echo esc_url( $attributes['linkUrl'] ); ?>" 62 <?php if ( ! empty( $attributes['linkTarget'] ) ) : ?> 63 target="<?php echo esc_attr( $attributes['linkTarget'] ); ?>" 64 <?php endif; ?> 65 <?php if ( ! empty( $attributes['linkTitle'] ) ) : ?> 66 title="<?php echo esc_attr( $attributes['linkTitle'] ); ?>" 67 <?php endif; ?> 68 <?php if ( ! empty( $attributes['linkRel'] ) ) : ?> 69 rel="<?php echo esc_attr( $attributes['linkRel'] ); ?>" 70 <?php endif; ?> 71 <?php if ( ! empty( $attributes['linkAriaLabel'] ) ) : ?> 72 aria-label="<?php echo esc_attr( $attributes['linkAriaLabel'] ); ?>" 73 <?php endif; ?> 74 <?php if ( ! empty( $block_elm_classes ) ) : ?> 75 class="<?php echo esc_attr( implode( ' ', $block_elm_classes ) ); ?>" 76 <?php endif; ?> 77 > 78 <?php endif; ?> 79 <?php 80 if( ! empty( $attributes['mediaId'] ) ) { 81 if ( ! empty( $attributes['width'] ) ) { 82 $image_styles[] = "width: " . esc_attr( $attributes['width'] ) . 'px'; 83 } 84 85 if ( ! empty( $attributes['height'] ) ) { 86 $image_styles[] = "height: " . esc_attr( $attributes['height'] ) . 'px'; 87 } 88 89 if ( ! empty( $attributes['alt'] ) ) { 90 $image_attr['alt'] = esc_attr( $attributes['alt'] ); 91 } 92 93 if ( ! empty( $image_classes ) ) { 94 if( empty( $attributes['linkUrl'] ) ) { 95 $image_classes = array_merge( $block_elm_classes, $image_classes ); 59 <div 60 <?php if ( ! empty( $block_elm_classes ) ) : ?> 61 class="<?php echo esc_attr( implode( ' ', $block_elm_classes ) ); ?>" 62 <?php endif; ?> 63 > 64 <?php if ( ! empty( $attributes['linkUrl'] ) ) : ?> 65 <a 66 href="<?php echo esc_url( $attributes['linkUrl'] ); ?>" 67 <?php if ( ! empty( $attributes['linkTarget'] ) ) : ?> 68 target="<?php echo esc_attr( $attributes['linkTarget'] ); ?>" 69 <?php endif; ?> 70 <?php if ( ! empty( $attributes['linkTitle'] ) ) : ?> 71 title="<?php echo esc_attr( $attributes['linkTitle'] ); ?>" 72 <?php endif; ?> 73 <?php if ( ! empty( $attributes['linkRel'] ) ) : ?> 74 rel="<?php echo esc_attr( $attributes['linkRel'] ); ?>" 75 <?php endif; ?> 76 <?php if ( ! empty( $attributes['linkAriaLabel'] ) ) : ?> 77 aria-label="<?php echo esc_attr( $attributes['linkAriaLabel'] ); ?>" 78 <?php endif; ?> 79 > 80 <?php endif; ?> 81 <?php 82 if( ! empty( $attributes['mediaId'] ) ) { 83 if ( ! empty( $attributes['width'] ) ) { 84 $image_styles[] = "width: " . esc_attr( $attributes['width'] ) . 'px'; 96 85 } 97 86 98 $image_attr['class'] = esc_attr( implode( ' ', $image_classes ) ); 87 if ( ! empty( $attributes['height'] ) ) { 88 $image_styles[] = "height: " . esc_attr( $attributes['height'] ) . 'px'; 89 } 90 91 if ( ! empty( $attributes['alt'] ) ) { 92 $image_attr['alt'] = esc_attr( $attributes['alt'] ); 93 } 94 95 if ( ! empty( $image_classes ) ) { 96 $image_attr['class'] = esc_attr( implode( ' ', $image_classes ) ); 97 } 98 99 if ( ! empty( $image_styles ) ) { 100 $image_attr['style'] = esc_attr( implode( '; ', $image_styles ) ); 101 } 102 103 echo wp_get_attachment_image( $attributes['mediaId'], 'full', false, $image_attr ); 99 104 } 100 101 if ( ! empty( $image_styles ) ) { 102 $image_attr['style'] = esc_attr( implode( '; ', $image_styles ) ); 103 } 104 105 echo wp_get_attachment_image( $attributes['mediaId'], 'full', false, $image_attr ); 106 } 107 ?> 108 <?php if ( ! empty( $attributes['linkUrl'] ) ) : ?> 109 <?php echo '</a>' ?> 110 <?php endif; ?> 105 ?> 106 <?php if ( ! empty( $attributes['linkUrl'] ) ) : ?> 107 <?php echo '</a>' ?> 108 <?php endif; ?> 109 </div> -
uikit-editor-blocks/trunk/src/text/block.js
r3235858 r3241505 7 7 import { __ } from '@wordpress/i18n'; 8 8 import edit from './edit'; 9 import { button } from '../icons';9 import { postContent as icon } from '@wordpress/icons'; 10 10 11 11 registerBlockType( 'uikit-editor-blocks/text', { 12 12 title: __( 'Text (UIkit)', 'uikit-editor-blocks' ), 13 icon: button,13 icon: icon, 14 14 category: 'uikit-editor-blocks', 15 15 keywords: [ -
uikit-editor-blocks/trunk/src/text/edit.js
r3235858 r3241505 100 100 [ 101 101 { label: __( 'None', 'uikit-editor-blocks' ), value: '' }, 102 { label: __( 'Mute ', 'uikit-editor-blocks' ), value: 'muted' },102 { label: __( 'Muted', 'uikit-editor-blocks' ), value: 'muted' }, 103 103 { label: __( 'Emphasis', 'uikit-editor-blocks' ), value: 'emphasis' }, 104 104 { label: __( 'Primary', 'uikit-editor-blocks' ), value: 'primary' }, -
uikit-editor-blocks/trunk/uikit-editor-blocks.php
r3236715 r3241505 6 6 * Author: UIkitBase 7 7 * Author URI: https://uikitbase.com/ 8 * Version: 1.0. 18 * Version: 1.0.2 9 9 * License: GPL2+ 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
Note: See TracChangeset
for help on using the changeset viewer.