GenerateBlocks - Version 1.5.3

Version Description

  • Feature: Added necessary filters for related posts
  • Feature: Add option to include/exclude term children in query
  • Fix: Dynamic image placeholder border radius
  • Fix: Duplicated block options in Query Loop when selecting links
  • Fix: Inherit query option in Query Loop
  • Fix: Keep the order in which query loop parameters are added
  • Tweak: Move Post Template list view label to Container
Download this release

Release Info

Developer edge22
Plugin Icon 128x128 GenerateBlocks
Version 1.5.3
Comparing to
See all releases

Code changes from version 1.5.2 to 1.5.3

Files changed (3) hide show
  1. dist/blocks.asset.php +1 -1
  2. dist/blocks.css +2 -2
  3. dist/blocks.js +17 -17
dist/blocks.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text'), 'version' => 'c16847d2ffbe61273fd7dd15b7d0e9e3');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-rich-text'), 'version' => '3165a297dd14b83555ea672f501a0ee1');
dist/blocks.css CHANGED
@@ -3,7 +3,7 @@
3
  .gblocks-component-number-presets{border:1px solid #8c8f94;border-radius:3px;display:flex;padding:2px}.gblocks-component-number-presets .components-button{border:0;box-shadow:0 0 0;height:30px}.gblocks-component-number-presets .components-button:not(.has-icon){flex:1;font-size:12px;justify-content:center}.gblocks-component-number-presets .components-button.has-icon svg{margin-right:0}.gblocks-component-number-presets .components-button.is-primary{background-color:#000;color:#fff}.gblocks-component-number-presets .components-button.is-primary:active,.gblocks-component-number-presets .components-button.is-primary:hover{background-color:#000!important;color:#fff!important}.gblocks-component-number-presets .components-button:active,.gblocks-component-number-presets .components-button:hover{background-color:transparent!important;color:currentColor!important}.gblocks-number-component__input{display:flex}.gblocks-number-component__input .components-base-control{flex:1;margin-bottom:0!important}.gblocks-number-component__input .components-base-control__field{height:100%;margin-bottom:0}.gblocks-number-component__input .components-base-control__field input{height:100%;min-height:30px}.gblocks-number-component__input>.components-button{height:30px}.gblocks-number-component__input>.components-button.has-icon svg{margin-right:0}
4
  .gb-responsive-tabs{background:#fafafa;border-bottom:1px solid #ddd;display:flex;position:-webkit-sticky;position:sticky;top:0;z-index:10}.gb-responsive-tabs button{background:none!important;border-radius:unset;flex-grow:1;height:unset;justify-content:center;outline:0!important;padding:7px}.gb-responsive-tabs button svg{height:20px;opacity:.3;width:20px}.gb-responsive-tabs button.is-pressed:not(:disabled),.gb-responsive-tabs button:active:not(:disabled),.gb-responsive-tabs button:focus:not(:disabled){background:#fff!important;box-shadow:unset!important;color:var(--wp-admin-theme-color)!important;opacity:1}.gb-responsive-tabs button.is-pressed:not(:disabled):hover,.gb-responsive-tabs button:active:not(:disabled):hover,.gb-responsive-tabs button:focus:not(:disabled):hover{background:#fff!important;color:var(--wp-admin-theme-color)!important}.gb-responsive-tabs button.is-pressed:not(:disabled) svg,.gb-responsive-tabs button:active:not(:disabled) svg,.gb-responsive-tabs button:focus:not(:disabled) svg{opacity:1}.gb-responsive-tabs button:hover:not(:disabled){background:#fafafa!important;box-shadow:unset!important;color:currentColor!important}.block-editor-block-inspector .gb-responsive-tabs+.components-panel__body{border-top:0}
5
  .generate-advanced-select__input-container .generate-advanced-select__input:focus{box-shadow:0 0 0}
6
- .gb-post-template .gb-post-template-wrapper{display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks{box-sizing:border-box;width:100%}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{height:100%}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.gb-grid-column{height:100%;margin-left:0;margin-right:0}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.gb-is-root-block,.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.gb-is-root-block>.gb-grid-column{height:100%}.gb-post-template .block-editor-default-block-appender,.gb-post-template .gb-container+.block-list-appender{display:none}.gb-post-template+.block-list-appender{position:relative}.gb-post-template+.block-list-appender .gblocks-query-block-appender{width:auto}.gblocks-parameter-component{margin-bottom:24px;position:relative}.gblocks-parameter-component .gblocks-remove-parameter{height:auto;justify-content:flex-end!important;min-width:auto;position:absolute;right:0;top:0}.gblocks-parameter-component .gblocks-remove-parameter.components-button.has-icon.has-text svg{height:15px;margin-right:0;width:15px}.gblocks-query-loop-layout-selector__content{align-items:flex-start;display:flex;margin-top:20px}.gblocks-query-loop-layout-selector__content .components-button{display:block;flex-basis:80px;height:auto;margin-right:30px;padding:0}.gblocks-query-loop-layout-selector__content .components-button svg{fill:var(--wp-admin-theme-color);border:1px solid var(--wp-admin-theme-color)}.gblocks-query-loop-layout-selector__content .components-button p{font-size:11px;margin-bottom:0;margin-top:5px}
7
  [data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce,body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons{display:flex;margin-bottom:10px}.widthButtons button{box-shadow:inset 0 0 0 1px #007cba;flex:1;font-size:12px;justify-content:center;padding:5px 0}.widthButtons button:first-child{padding:5px}.gblocks-column-width-control input[type=number]{width:65px}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.block-editor-block-list__layout .block-editor-block-list__block[data-type="generateblocks/container"]{box-sizing:border-box;padding:0}.gb-container .gb-inside-container{box-sizing:inherit}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{height:100%;line-height:inherit}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 5px 5px 0}.gb-container .wp-block-image{margin-bottom:0;margin-top:0}.gb-container .gb-shape{line-height:0;overflow:hidden;pointer-events:none;position:absolute}.gb-container .gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;text-align:left;width:100%}.gblocks-shape-controls .gblocks-shape-chooser{display:block;margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{background:#efefef;height:auto;width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-controls .components-panel__row{display:block}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-right:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{align-items:center;border:1px solid #efefef;border-radius:3px;display:flex;margin-bottom:10px}.gblocks-shape-container .components-dropdown{margin-left:auto}.gblocks-shape-container .components-button.gblocks-remove-shape,.gblocks-shape-container .components-button.gblocks-shape-dropdown{justify-content:center}.gblocks-shape-container .components-button.gblocks-remove-shape>svg,.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg{margin-right:0}.components-popover.gblocks-shapes-dropdown .components-popover__content{min-width:260px}.gblocks-gpress-full-width .components-base-control__label{display:block}.gblocks-flex-controls-inner{display:flex}.gblocks-flex-controls-inner>.components-base-control{margin-bottom:0}.gblocks-flex-controls-inner>.components-base-control:first-child,.gblocks-flex-controls-inner>.components-base-control:nth-child(2){flex-basis:25%;margin-right:1px}.gblocks-flex-controls-inner>.components-base-control:nth-child(3){flex-basis:50%}.gblocks-flex-controls-inner p{margin-bottom:0}.gblocks-flex-controls-inner .gblocks-flex-basis-wrapper{position:relative}.gblocks-flex-controls-inner .gblocks-flex-basis-wrapper .components-gblocks-units-control-header__units{position:absolute;right:0;top:5px}.gb-container-empty{padding:5px;position:relative}.gb-container-empty.gb-container-visual-guides:before{border:1px dashed #000;bottom:.5px;box-shadow:inset 0 0 0 1px #fff;content:"";left:.5px;opacity:.2;position:absolute;right:.5px;top:.5px;transition:opacity .5s ease}.gb-container-empty.gb-container-visual-guides:hover:before{opacity:.3}body .gb-container .wp-block{max-width:none}.gb-container{margin-bottom:0;margin-top:0}.gb-container .block-editor-block-list__layout .block-list-appender{margin:0}.gb-container .block-editor-block-list__layout .block-list-appender:not(:first-child):not(:empty){margin-top:10px}.components-button.gblocks-container-selector{border:1px solid transparent;color:inherit;display:block;padding:5px;text-align:left;width:100%}.components-button.gblocks-container-selector .gblocks-container-selector__icon{align-items:center;background:#fff;border-radius:2px;display:inline-flex;height:25px;justify-content:center;opacity:.3;transition:opacity .5s ease;width:25px}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg{transform:scale(.7)}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg path{fill:#000}.components-button.gblocks-container-selector:hover .gblocks-container-selector__icon{opacity:.4}.gb-container>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender{position:relative}.gb-container>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender .block-editor-button-block-appender{background:unset;border:1px solid #000;box-shadow:inset 0 0 0 1px #fff;color:#000;padding:5px 12px}.gb-container>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender .block-editor-button-block-appender svg path{fill:#000;stroke:#fff;stroke-width:2px;paint-order:stroke}
8
  .components-gblocks-range-control .components-gblocks-range-control--wrapper{display:flex;justify-content:space-between}.components-gblocks-range-control .components-gblocks-range-control--wrapper .components-gblocks-range-control--range{width:calc(100% - 80px)}.components-gblocks-range-control .components-gblocks-range-control--wrapper .components-gblocks-range-control-input{width:60px}.components-gblocks-range-control .components-base-control__help{color:#757575;font-size:12px;font-style:normal;margin-top:-8px}.components-gblocks-range-control .components-base-control,.components-gblocks-range-control .components-base-control__field{margin-bottom:0!important}
9
  .gblocks-typography-component .components-dropdown-menu{margin-bottom:15px}.gblocks-typography-component__toggle{border:1px solid #ddd;border-radius:3px;margin:0}.gblocks-typography-component__appearance>.components-base-control__field{display:flex;justify-content:space-between}.gblocks-typography-component__appearance>.components-base-control__field>.components-base-control{margin-bottom:0!important;width:calc(50% - 2px)}.gblocks-typography-component__font-family .components-base-control{margin-bottom:0!important}.gblocks-typography-component__font-family-select{margin-bottom:5px}.gblocks-typography-component__font-family-input{display:flex}.gblocks-typography-component__font-family-input>:first-child{flex:1}.gblocks-typography-component__font-family-input>:nth-child(2){margin-left:5px;width:100px}
@@ -16,5 +16,5 @@
16
  .gblocks-icon-chooser{display:flex;flex-wrap:wrap;list-style:none;margin-left:-3px;margin-top:0}.gblocks-icon-chooser li{display:block;margin:0 0 3px 3px;padding:0}.gblocks-icon-chooser li button.components-button{background:#fafafa;border:0;border-radius:0;box-shadow:none;color:#000;font-size:15px;height:30px;justify-content:center;line-height:normal;padding:8px;width:30px}.gblocks-icon-chooser li button.components-button span{line-height:0}.gblocks-icon-chooser li button.components-button:hover{background:#fff;box-shadow:none}.gblocks-icon-chooser li button.components-button svg{height:1em;width:1em}.gb-icon{display:inline-flex;line-height:0}.gb-icon svg{fill:currentColor;height:1em;width:1em}button.components-icon-picker-item{background:#efefef;border:1px solid #ddd;cursor:pointer;font-size:30px;height:50px;line-height:50px;margin-bottom:10px;width:50px}button.components-icon-picker-item svg{height:1em;width:1em}.components-icon-picker-item>span{align-items:center;display:flex;justify-content:center}.components-icon-picker-item:focus,.components-icon-picker-item:hover{background:#fafafa}.gb-svg-html .components-base-control{margin-bottom:0}.gb-icon-preview{align-items:center;display:flex;font-size:25px}.gb-icon-preview svg{height:1em;margin-right:10px;width:1em}.block-editor-block-inspector .gb-icon-chooser .components-panel__body{border-color:#ddd;margin-top:0}.block-editor-block-inspector .gb-icon-chooser .components-panel__body button.components-panel__body-toggle,.block-editor-block-inspector .gb-icon-chooser .components-panel__body.is-opened{background:#fafafa}.block-editor-block-inspector .gb-icon-chooser .components-panel__body:last-child{border-bottom:1px solid #ddd}
17
  .editor-styles-wrapper mark.gb-highlight{background:none;color:unset}.editor-styles-wrapper .gb-headline span.rich-text{display:inline-block}.gb-headline{margin:0}
18
  .gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gblocks-panel-label svg.components-panel__icon{margin:0 10px 0 0}.gblocks-control-tabs .components-tab-panel__tabs{border-bottom:1px solid #e8eaeb;display:flex;flex-wrap:wrap;margin-bottom:15px}.gblocks-control-tabs .components-tab-panel__tabs button{border:0;border-radius:0;cursor:pointer;flex:1;font-size:11px;font-weight:400;height:auto;justify-content:center;margin:0 0 -1px;outline-offset:-1px;padding:8px}.gblocks-control-tabs .components-tab-panel__tabs button.active-tab{background:#222!important;box-shadow:0 0 0!important;color:#fff!important;position:relative;z-index:1}.gblocks-block-control-icon svg{margin-left:0!important;margin-right:0!important;padding:2px}.gblocks-block-control-icon.gblocks-add-grid-item svg{padding:0}.gblocks-block-control-icon svg path{fill:inherit!important}.gblocks-option-notice.components-notice{margin:0 0 24px}.gblocks-option-notice.components-notice .components-notice__content{margin:5px}.gblocks-small-notice-description{color:#777;font-size:12px;margin-bottom:10px}.gblocks-utility-label{align-items:flex-end;display:flex;margin-bottom:5px}.gblocks-utility-label label{margin-right:auto}.gblocks-utility-label .components-button{height:auto;justify-content:center!important;margin-left:5px;min-width:auto;padding:0 6px}.gblocks-utility-label .components-button.gblocks-reset-button svg{height:20px;width:20px}.gblocks-utility-label .components-button:last-child{margin-right:-5px}.gblocks-utility-label .components-button svg{height:13px;margin-right:0!important;width:13px}.wp-block.gb-is-root-block{margin-bottom:0;margin-top:0;position:relative}.gblocks-block-icon path{fill:#1e72bd}.gblocks-block-icon__headline{transform:scale(.9);transform-origin:center}.block-editor-list-view-leaf.is-selected .gblocks-block-icon path{fill:currentColor!important}.gblocks-action-panel{padding:0!important}.gblocks-action-panel .components-panel__body-title{margin:0!important}.gblocks-action-panel .components-panel__arrow path{transform:rotate(90deg);transform-origin:center}.post-type-gp_elements .wp-block{max-width:none}
19
- .gblocks-image-dimensions__row{display:flex;justify-content:space-between}.gblocks-image-dimensions__row>div{width:calc(50% - 2px)}.gblocks-image-dimensions__row .components-base-control{margin:0!important}.gblocks-image-dimensions__row .components-base-control__field{margin:0}[data-align=full]>.gb-block-image,[data-align=wide]>.gb-block-image{max-width:none}[data-align=full]>.gb-block-image img,[data-align=wide]>.gb-block-image img{height:auto;width:100%}.wp-block-generateblocks-image{margin:0;position:relative}.wp-block-generateblocks-image.is-applying img{opacity:.3}.wp-block-generateblocks-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-generateblocks-image img{height:auto;max-width:100%;vertical-align:middle}.wp-block-generateblocks-image figcaption p{margin:0}.wp-block-generateblocks-image .components-placeholder,.wp-block-generateblocks-image .components-resizable-box__container{border-radius:inherit}.wp-block-generateblocks-image .gblocks-image__placeholder{max-width:100%;position:relative}.wp-block-generateblocks-image .gblocks-image__placeholder img{border:1px dashed;opacity:.4}.wp-block-generateblocks-image .gblocks-image__placeholder .components-placeholder__illustration{stroke:currentColor;stroke-dasharray:3;bottom:0;height:100%;left:0;opacity:.4;position:absolute;right:0;top:0;width:100%}
20
  .gblocks-unit-control__input{align-items:flex-start;display:flex}.gblocks-unit-control__input select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:0 2px 2px 0;box-sizing:border-box;color:#555d66;cursor:pointer;display:block;font-size:8px;height:100%;letter-spacing:-.5px;margin:0;outline:none;padding:2px 3px;-moz-text-align-last:center;text-align-last:center;text-transform:uppercase;width:30px}.gblocks-unit-control__unit-select{-ms-grid-row-align:stretch;align-items:center;align-self:stretch;box-sizing:border-box;display:flex}
3
  .gblocks-component-number-presets{border:1px solid #8c8f94;border-radius:3px;display:flex;padding:2px}.gblocks-component-number-presets .components-button{border:0;box-shadow:0 0 0;height:30px}.gblocks-component-number-presets .components-button:not(.has-icon){flex:1;font-size:12px;justify-content:center}.gblocks-component-number-presets .components-button.has-icon svg{margin-right:0}.gblocks-component-number-presets .components-button.is-primary{background-color:#000;color:#fff}.gblocks-component-number-presets .components-button.is-primary:active,.gblocks-component-number-presets .components-button.is-primary:hover{background-color:#000!important;color:#fff!important}.gblocks-component-number-presets .components-button:active,.gblocks-component-number-presets .components-button:hover{background-color:transparent!important;color:currentColor!important}.gblocks-number-component__input{display:flex}.gblocks-number-component__input .components-base-control{flex:1;margin-bottom:0!important}.gblocks-number-component__input .components-base-control__field{height:100%;margin-bottom:0}.gblocks-number-component__input .components-base-control__field input{height:100%;min-height:30px}.gblocks-number-component__input>.components-button{height:30px}.gblocks-number-component__input>.components-button.has-icon svg{margin-right:0}
4
  .gb-responsive-tabs{background:#fafafa;border-bottom:1px solid #ddd;display:flex;position:-webkit-sticky;position:sticky;top:0;z-index:10}.gb-responsive-tabs button{background:none!important;border-radius:unset;flex-grow:1;height:unset;justify-content:center;outline:0!important;padding:7px}.gb-responsive-tabs button svg{height:20px;opacity:.3;width:20px}.gb-responsive-tabs button.is-pressed:not(:disabled),.gb-responsive-tabs button:active:not(:disabled),.gb-responsive-tabs button:focus:not(:disabled){background:#fff!important;box-shadow:unset!important;color:var(--wp-admin-theme-color)!important;opacity:1}.gb-responsive-tabs button.is-pressed:not(:disabled):hover,.gb-responsive-tabs button:active:not(:disabled):hover,.gb-responsive-tabs button:focus:not(:disabled):hover{background:#fff!important;color:var(--wp-admin-theme-color)!important}.gb-responsive-tabs button.is-pressed:not(:disabled) svg,.gb-responsive-tabs button:active:not(:disabled) svg,.gb-responsive-tabs button:focus:not(:disabled) svg{opacity:1}.gb-responsive-tabs button:hover:not(:disabled){background:#fafafa!important;box-shadow:unset!important;color:currentColor!important}.block-editor-block-inspector .gb-responsive-tabs+.components-panel__body{border-top:0}
5
  .generate-advanced-select__input-container .generate-advanced-select__input:focus{box-shadow:0 0 0}
6
+ .gb-post-template .gb-post-template-wrapper{display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks{box-sizing:border-box;width:100%}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout{height:100%}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.block-editor-block-list__layout>.gb-grid-column{height:100%;margin-left:0;margin-right:0}.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.gb-is-root-block,.gb-post-template .gb-post-template-wrapper>.block-editor-inner-blocks>.gb-is-root-block>.gb-grid-column{height:100%}.gb-post-template .block-editor-default-block-appender,.gb-post-template .gb-container+.block-list-appender{display:none}.gb-post-template+.block-list-appender{position:relative}.gb-post-template+.block-list-appender .gblocks-query-block-appender{width:auto}.gblocks-parameter-component{margin-bottom:24px;position:relative}.gblocks-parameter-component .gblocks-remove-parameter{height:auto;justify-content:flex-end!important;min-width:auto;position:absolute;right:0;top:0}.gblocks-parameter-component .gblocks-remove-parameter.components-button.has-icon.has-text svg{height:15px;margin-right:0;width:15px}.gblocks-query-loop-layout-selector__content{align-items:flex-start;display:flex;margin-top:20px}.gblocks-query-loop-layout-selector__content .components-button{display:block;flex-basis:80px;height:auto;margin-right:30px;padding:0}.gblocks-query-loop-layout-selector__content .components-button svg{fill:var(--wp-admin-theme-color);border:1px solid var(--wp-admin-theme-color)}.gblocks-query-loop-layout-selector__content .components-button p{font-size:11px;margin-bottom:0;margin-top:5px}.gb-query-loop-block-preview a{pointer-events:none}
7
  [data-type="generateblocks/container"] .wp-block-heading h1,[data-type="generateblocks/container"] .wp-block-heading h1.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h2,[data-type="generateblocks/container"] .wp-block-heading h2.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h3,[data-type="generateblocks/container"] .wp-block-heading h3.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h4,[data-type="generateblocks/container"] .wp-block-heading h4.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h5,[data-type="generateblocks/container"] .wp-block-heading h5.editor-rich-text__tinymce,[data-type="generateblocks/container"] .wp-block-heading h6,[data-type="generateblocks/container"] .wp-block-heading h6.editor-rich-text__tinymce,body.gutenberg-editor-page [data-type="generateblocks/container"] .editor-block-list__block{color:inherit}.additional-class-notice .components-notice{margin:0 0 10px}.widthButtons{display:flex;margin-bottom:10px}.widthButtons button{box-shadow:inset 0 0 0 1px #007cba;flex:1;font-size:12px;justify-content:center;padding:5px 0}.widthButtons button:first-child{padding:5px}.gblocks-column-width-control input[type=number]{width:65px}[data-type="generateblocks/container"]>.block-editor-block-list__block-edit>[data-block]{margin:0}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width{border-top:1px solid #ddd;padding-top:15px}.block-editor-block-inspector .components-base-control.gblocks-gpress-full-width .components-base-control__label{margin-bottom:15px}.gblocks-container-text-alignment .components-base-control__label{display:block}.edit-post-visual-editor .block-editor-block-list__block[data-type="generateblocks/container"]>.block-editor-block-list__block-edit{margin:0}.block-editor-block-list__layout .block-editor-block-list__block[data-type="generateblocks/container"]{box-sizing:border-box;padding:0}.gb-container .gb-inside-container{box-sizing:inherit}.gblocks-bg-image-wrapper{display:flex}.gblocks-bg-image-wrapper .components-base-control,.gblocks-bg-image-wrapper .components-base-control__field{margin:0}.gblocks-bg-image-wrapper>.components-base-control{flex-grow:1}.gblocks-bg-image-wrapper .components-button{height:100%;line-height:inherit}.components-gblocks-control__image-sizes{margin-bottom:24px}.components-gblocks-control__image-sizes button{margin:0 5px 5px 0}.gb-container .wp-block-image{margin-bottom:0;margin-top:0}.gb-container .gb-shape{line-height:0;overflow:hidden;pointer-events:none;position:absolute}.gb-container .gb-shape svg{fill:currentColor}.gblocks-add-new-shape{margin-top:10px}.gblocks-shape-controls{width:100%}.gblocks-shape-controls>.components-base-control{margin-bottom:20px}.gblocks-shape-controls .gblocks-edit-shape{display:block;text-align:left;width:100%}.gblocks-shape-controls .gblocks-shape-chooser{display:block;margin:0}.gblocks-shape-controls .gblocks-shape-chooser li{margin:5px 0}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button{background:#efefef;height:auto;width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button svg{width:100%}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button:hover{background:#efefef}.gblocks-shape-controls .gblocks-shape-chooser li button.components-button.gblocks-shape-is-active{box-shadow:0 0 0 3px #007cba}.gblocks-shape-controls .components-panel__row{display:block}.gblocks-shape-divider-preview{padding:10px}.gblocks-shape-divider-preview svg{fill:currentColor}.gblocks-shape-toggle-preview{margin-right:10px}.gblocks-shape-toggle-preview svg{width:30px}.gblocks-shape-container{align-items:center;border:1px solid #efefef;border-radius:3px;display:flex;margin-bottom:10px}.gblocks-shape-container .components-dropdown{margin-left:auto}.gblocks-shape-container .components-button.gblocks-remove-shape,.gblocks-shape-container .components-button.gblocks-shape-dropdown{justify-content:center}.gblocks-shape-container .components-button.gblocks-remove-shape>svg,.gblocks-shape-container .components-button.gblocks-shape-dropdown>svg{margin-right:0}.components-popover.gblocks-shapes-dropdown .components-popover__content{min-width:260px}.gblocks-gpress-full-width .components-base-control__label{display:block}.gblocks-flex-controls-inner{display:flex}.gblocks-flex-controls-inner>.components-base-control{margin-bottom:0}.gblocks-flex-controls-inner>.components-base-control:first-child,.gblocks-flex-controls-inner>.components-base-control:nth-child(2){flex-basis:25%;margin-right:1px}.gblocks-flex-controls-inner>.components-base-control:nth-child(3){flex-basis:50%}.gblocks-flex-controls-inner p{margin-bottom:0}.gblocks-flex-controls-inner .gblocks-flex-basis-wrapper{position:relative}.gblocks-flex-controls-inner .gblocks-flex-basis-wrapper .components-gblocks-units-control-header__units{position:absolute;right:0;top:5px}.gb-container-empty{padding:5px;position:relative}.gb-container-empty.gb-container-visual-guides:before{border:1px dashed #000;bottom:.5px;box-shadow:inset 0 0 0 1px #fff;content:"";left:.5px;opacity:.2;position:absolute;right:.5px;top:.5px;transition:opacity .5s ease}.gb-container-empty.gb-container-visual-guides:hover:before{opacity:.3}body .gb-container .wp-block{max-width:none}.gb-container{margin-bottom:0;margin-top:0}.gb-container .block-editor-block-list__layout .block-list-appender{margin:0}.gb-container .block-editor-block-list__layout .block-list-appender:not(:first-child):not(:empty){margin-top:10px}.components-button.gblocks-container-selector{border:1px solid transparent;color:inherit;display:block;padding:5px;text-align:left;width:100%}.components-button.gblocks-container-selector .gblocks-container-selector__icon{align-items:center;background:#fff;border-radius:2px;display:inline-flex;height:25px;justify-content:center;opacity:.3;transition:opacity .5s ease;width:25px}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg{transform:scale(.7)}.components-button.gblocks-container-selector .gblocks-container-selector__icon svg path{fill:#000}.components-button.gblocks-container-selector:hover .gblocks-container-selector__icon{opacity:.4}.gb-container>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender{position:relative}.gb-container>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender .block-editor-button-block-appender{background:unset;border:1px solid #000;box-shadow:inset 0 0 0 1px #fff;color:#000;padding:5px 12px}.gb-container>.gb-inside-container>.block-editor-inner-blocks>.block-editor-block-list__layout>.block-list-appender .block-editor-button-block-appender svg path{fill:#000;stroke:#fff;stroke-width:2px;paint-order:stroke}
8
  .components-gblocks-range-control .components-gblocks-range-control--wrapper{display:flex;justify-content:space-between}.components-gblocks-range-control .components-gblocks-range-control--wrapper .components-gblocks-range-control--range{width:calc(100% - 80px)}.components-gblocks-range-control .components-gblocks-range-control--wrapper .components-gblocks-range-control-input{width:60px}.components-gblocks-range-control .components-base-control__help{color:#757575;font-size:12px;font-style:normal;margin-top:-8px}.components-gblocks-range-control .components-base-control,.components-gblocks-range-control .components-base-control__field{margin-bottom:0!important}
9
  .gblocks-typography-component .components-dropdown-menu{margin-bottom:15px}.gblocks-typography-component__toggle{border:1px solid #ddd;border-radius:3px;margin:0}.gblocks-typography-component__appearance>.components-base-control__field{display:flex;justify-content:space-between}.gblocks-typography-component__appearance>.components-base-control__field>.components-base-control{margin-bottom:0!important;width:calc(50% - 2px)}.gblocks-typography-component__font-family .components-base-control{margin-bottom:0!important}.gblocks-typography-component__font-family-select{margin-bottom:5px}.gblocks-typography-component__font-family-input{display:flex}.gblocks-typography-component__font-family-input>:first-child{flex:1}.gblocks-typography-component__font-family-input>:nth-child(2){margin-left:5px;width:100px}
16
  .gblocks-icon-chooser{display:flex;flex-wrap:wrap;list-style:none;margin-left:-3px;margin-top:0}.gblocks-icon-chooser li{display:block;margin:0 0 3px 3px;padding:0}.gblocks-icon-chooser li button.components-button{background:#fafafa;border:0;border-radius:0;box-shadow:none;color:#000;font-size:15px;height:30px;justify-content:center;line-height:normal;padding:8px;width:30px}.gblocks-icon-chooser li button.components-button span{line-height:0}.gblocks-icon-chooser li button.components-button:hover{background:#fff;box-shadow:none}.gblocks-icon-chooser li button.components-button svg{height:1em;width:1em}.gb-icon{display:inline-flex;line-height:0}.gb-icon svg{fill:currentColor;height:1em;width:1em}button.components-icon-picker-item{background:#efefef;border:1px solid #ddd;cursor:pointer;font-size:30px;height:50px;line-height:50px;margin-bottom:10px;width:50px}button.components-icon-picker-item svg{height:1em;width:1em}.components-icon-picker-item>span{align-items:center;display:flex;justify-content:center}.components-icon-picker-item:focus,.components-icon-picker-item:hover{background:#fafafa}.gb-svg-html .components-base-control{margin-bottom:0}.gb-icon-preview{align-items:center;display:flex;font-size:25px}.gb-icon-preview svg{height:1em;margin-right:10px;width:1em}.block-editor-block-inspector .gb-icon-chooser .components-panel__body{border-color:#ddd;margin-top:0}.block-editor-block-inspector .gb-icon-chooser .components-panel__body button.components-panel__body-toggle,.block-editor-block-inspector .gb-icon-chooser .components-panel__body.is-opened{background:#fafafa}.block-editor-block-inspector .gb-icon-chooser .components-panel__body:last-child{border-bottom:1px solid #ddd}
17
  .editor-styles-wrapper mark.gb-highlight{background:none;color:unset}.editor-styles-wrapper .gb-headline span.rich-text{display:inline-block}.gb-headline{margin:0}
18
  .gblocks-notice{margin-bottom:20px}.gblocks-panel-label .components-panel__body-toggle.components-button{display:flex;flex-direction:row-reverse;justify-content:flex-end}.gblocks-panel-label svg.components-panel__icon{margin:0 10px 0 0}.gblocks-control-tabs .components-tab-panel__tabs{border-bottom:1px solid #e8eaeb;display:flex;flex-wrap:wrap;margin-bottom:15px}.gblocks-control-tabs .components-tab-panel__tabs button{border:0;border-radius:0;cursor:pointer;flex:1;font-size:11px;font-weight:400;height:auto;justify-content:center;margin:0 0 -1px;outline-offset:-1px;padding:8px}.gblocks-control-tabs .components-tab-panel__tabs button.active-tab{background:#222!important;box-shadow:0 0 0!important;color:#fff!important;position:relative;z-index:1}.gblocks-block-control-icon svg{margin-left:0!important;margin-right:0!important;padding:2px}.gblocks-block-control-icon.gblocks-add-grid-item svg{padding:0}.gblocks-block-control-icon svg path{fill:inherit!important}.gblocks-option-notice.components-notice{margin:0 0 24px}.gblocks-option-notice.components-notice .components-notice__content{margin:5px}.gblocks-small-notice-description{color:#777;font-size:12px;margin-bottom:10px}.gblocks-utility-label{align-items:flex-end;display:flex;margin-bottom:5px}.gblocks-utility-label label{margin-right:auto}.gblocks-utility-label .components-button{height:auto;justify-content:center!important;margin-left:5px;min-width:auto;padding:0 6px}.gblocks-utility-label .components-button.gblocks-reset-button svg{height:20px;width:20px}.gblocks-utility-label .components-button:last-child{margin-right:-5px}.gblocks-utility-label .components-button svg{height:13px;margin-right:0!important;width:13px}.wp-block.gb-is-root-block{margin-bottom:0;margin-top:0;position:relative}.gblocks-block-icon path{fill:#1e72bd}.gblocks-block-icon__headline{transform:scale(.9);transform-origin:center}.block-editor-list-view-leaf.is-selected .gblocks-block-icon path{fill:currentColor!important}.gblocks-action-panel{padding:0!important}.gblocks-action-panel .components-panel__body-title{margin:0!important}.gblocks-action-panel .components-panel__arrow path{transform:rotate(90deg);transform-origin:center}.post-type-gp_elements .wp-block{max-width:none}
19
+ .gblocks-image-dimensions__row{display:flex;justify-content:space-between}.gblocks-image-dimensions__row>div{width:calc(50% - 2px)}.gblocks-image-dimensions__row .components-base-control{margin:0!important}.gblocks-image-dimensions__row .components-base-control__field{margin:0}[data-align=full]>.gb-block-image,[data-align=wide]>.gb-block-image{max-width:none}[data-align=full]>.gb-block-image img,[data-align=wide]>.gb-block-image img{height:auto;width:100%}.wp-block-generateblocks-image{margin:0;position:relative}.wp-block-generateblocks-image.is-applying img{opacity:.3}.wp-block-generateblocks-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.wp-block-generateblocks-image img{height:auto;max-width:100%;vertical-align:middle}.wp-block-generateblocks-image figcaption p{margin:0}.wp-block-generateblocks-image .components-placeholder,.wp-block-generateblocks-image .components-resizable-box__container{border-radius:inherit}.wp-block-generateblocks-image .gblocks-image__placeholder{max-width:100%;position:relative}.wp-block-generateblocks-image .gblocks-image__placeholder img{border:1px dashed;opacity:.4}.wp-block-generateblocks-image .gblocks-image__placeholder .components-placeholder__illustration{stroke:currentColor;stroke-dasharray:3;border:0;bottom:0;height:100%;left:0;opacity:.4;position:absolute;right:0;top:0;width:100%}
20
  .gblocks-unit-control__input{align-items:flex-start;display:flex}.gblocks-unit-control__input select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border-radius:0 2px 2px 0;box-sizing:border-box;color:#555d66;cursor:pointer;display:block;font-size:8px;height:100%;letter-spacing:-.5px;margin:0;outline:none;padding:2px 3px;-moz-text-align-last:center;text-align-last:center;text-transform:uppercase;width:30px}.gblocks-unit-control__unit-select{-ms-grid-row-align:stretch;align-items:center;align-self:stretch;box-sizing:border-box;display:flex}
dist/blocks.js CHANGED
@@ -1,19 +1,19 @@
1
- !function(){var e={184:function(e,t){var a;!function(){"use strict";var l={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&e.push(i)}}else if("object"===r)if(a.toString===Object.prototype.toString)for(var o in a)l.call(a,o)&&a[o]&&e.push(o);else e.push(a.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},856:function(e){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,n=Object.getOwnPropertyDescriptor,r=Object.freeze,i=Object.seal,o=Object.create,s="undefined"!=typeof Reflect&&Reflect,c=s.apply,u=s.construct;c||(c=function(e,t,a){return e.apply(t,a)}),r||(r=function(e){return e}),i||(i=function(e){return e}),u||(u=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}(t))))});var g,d=_(Array.prototype.forEach),b=_(Array.prototype.pop),p=_(Array.prototype.push),m=_(String.prototype.toLowerCase),f=_(String.prototype.match),h=_(String.prototype.replace),k=_(String.prototype.indexOf),v=_(String.prototype.trim),y=_(RegExp.prototype.test),w=(g=TypeError,function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return u(g,t)});function _(e){return function(t){for(var a=arguments.length,l=Array(a>1?a-1:0),n=1;n<a;n++)l[n-1]=arguments[n];return c(e,t,l)}}function C(e,l){t&&t(e,null);for(var n=l.length;n--;){var r=l[n];if("string"==typeof r){var i=m(r);i!==r&&(a(l)||(l[n]=i),r=i)}e[r]=!0}return e}function T(t){var a=o(null),l=void 0;for(l in t)c(e,t,[l])&&(a[l]=t[l]);return a}function E(e,t){for(;null!==e;){var a=n(e,t);if(a){if(a.get)return _(a.get);if("function"==typeof a.value)return _(a.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var x=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),S=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=r(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z=r(["#text"]),L=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),O=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),I=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),P=i(/<%[\s\S]*|[\s\S]*%>/gm),F=i(/^data-[\-\w.\u00B7-\uFFFF]/),H=i(/^aria-[\-\w]+$/),V=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),U=i(/^(?:\w+script|data):/i),G=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function q(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}var W=function(){return"undefined"==typeof window?null:window},$=function(e,t){if("object"!==(void 0===e?"undefined":j(e))||"function"!=typeof e.createPolicy)return null;var a=null,l="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(l)&&(a=t.currentScript.getAttribute(l));var n="dompurify"+(a?"#"+a:"");try{return e.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W(),a=function(t){return e(t)};if(a.version="2.3.5",a.removed=[],!t||!t.document||9!==t.document.nodeType)return a.isSupported=!1,a;var l=t.document,n=t.document,i=t.DocumentFragment,o=t.HTMLTemplateElement,s=t.Node,c=t.Element,u=t.NodeFilter,g=t.NamedNodeMap,_=void 0===g?t.NamedNodeMap||t.MozNamedAttrMap:g,Z=t.HTMLFormElement,K=t.DOMParser,Q=t.trustedTypes,Y=c.prototype,J=E(Y,"cloneNode"),X=E(Y,"nextSibling"),ee=E(Y,"childNodes"),te=E(Y,"parentNode");if("function"==typeof o){var ae=n.createElement("template");ae.content&&ae.content.ownerDocument&&(n=ae.content.ownerDocument)}var le=$(Q,l),ne=le?le.createHTML(""):"",re=n,ie=re.implementation,oe=re.createNodeIterator,se=re.createDocumentFragment,ce=re.getElementsByTagName,ue=l.importNode,ge={};try{ge=T(n).documentMode?n.documentMode:{}}catch(e){}var de={};a.isSupported="function"==typeof te&&ie&&void 0!==ie.createHTMLDocument&&9!==ge;var be=A,pe=P,me=F,fe=H,he=U,ke=G,ve=V,ye=null,we=C({},[].concat(q(x),q(S),q(B),q(D),q(z))),_e=null,Ce=C({},[].concat(q(L),q(O),q(I),q(N))),Te=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ee=null,xe=null,Se=!0,Be=!0,Me=!1,De=!1,Re=!1,ze=!1,Le=!1,Oe=!1,Ie=!1,Ne=!1,Ae=!0,Pe=!0,Fe=!1,He={},Ve=null,Ue=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,je=C({},["audio","video","img","source","image","track"]),qe=null,We=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Ke="http://www.w3.org/1999/xhtml",Qe=Ke,Ye=!1,Je=void 0,Xe=["application/xhtml+xml","text/html"],et="text/html",tt=void 0,at=null,lt=n.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(e){at&&at===e||(e&&"object"===(void 0===e?"undefined":j(e))||(e={}),e=T(e),ye="ALLOWED_TAGS"in e?C({},e.ALLOWED_TAGS):we,_e="ALLOWED_ATTR"in e?C({},e.ALLOWED_ATTR):Ce,qe="ADD_URI_SAFE_ATTR"in e?C(T(We),e.ADD_URI_SAFE_ATTR):We,Ge="ADD_DATA_URI_TAGS"in e?C(T(je),e.ADD_DATA_URI_TAGS):je,Ve="FORBID_CONTENTS"in e?C({},e.FORBID_CONTENTS):Ue,Ee="FORBID_TAGS"in e?C({},e.FORBID_TAGS):{},xe="FORBID_ATTR"in e?C({},e.FORBID_ATTR):{},He="USE_PROFILES"in e&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,Be=!1!==e.ALLOW_DATA_ATTR,Me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=e.SAFE_FOR_TEMPLATES||!1,Re=e.WHOLE_DOCUMENT||!1,Oe=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Ae=!1!==e.SANITIZE_DOM,Pe=!1!==e.KEEP_CONTENT,Fe=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||ve,Qe=e.NAMESPACE||Ke,e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Je=Je=-1===Xe.indexOf(e.PARSER_MEDIA_TYPE)?et:e.PARSER_MEDIA_TYPE,tt="application/xhtml+xml"===Je?function(e){return e}:m,De&&(Be=!1),Ie&&(Oe=!0),He&&(ye=C({},[].concat(q(z))),_e=[],!0===He.html&&(C(ye,x),C(_e,L)),!0===He.svg&&(C(ye,S),C(_e,O),C(_e,N)),!0===He.svgFilters&&(C(ye,B),C(_e,O),C(_e,N)),!0===He.mathMl&&(C(ye,D),C(_e,I),C(_e,N))),e.ADD_TAGS&&(ye===we&&(ye=T(ye)),C(ye,e.ADD_TAGS)),e.ADD_ATTR&&(_e===Ce&&(_e=T(_e)),C(_e,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&C(qe,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Ve===Ue&&(Ve=T(Ve)),C(Ve,e.FORBID_CONTENTS)),Pe&&(ye["#text"]=!0),Re&&C(ye,["html","head","body"]),ye.table&&(C(ye,["tbody"]),delete Ee.tbody),r&&r(e),at=e)},it=C({},["mi","mo","mn","ms","mtext"]),ot=C({},["foreignobject","desc","title","annotation-xml"]),st=C({},S);C(st,B),C(st,M);var ct=C({},D);C(ct,R);var ut=function(e){var t=te(e);t&&t.tagName||(t={namespaceURI:Ke,tagName:"template"});var a=m(e.tagName),l=m(t.tagName);if(e.namespaceURI===Ze)return t.namespaceURI===Ke?"svg"===a:t.namespaceURI===$e?"svg"===a&&("annotation-xml"===l||it[l]):Boolean(st[a]);if(e.namespaceURI===$e)return t.namespaceURI===Ke?"math"===a:t.namespaceURI===Ze?"math"===a&&ot[l]:Boolean(ct[a]);if(e.namespaceURI===Ke){if(t.namespaceURI===Ze&&!ot[l])return!1;if(t.namespaceURI===$e&&!it[l])return!1;var n=C({},["title","style","font","a","script"]);return!ct[a]&&(n[a]||!st[a])}return!1},gt=function(e){p(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ne}catch(t){e.remove()}}},dt=function(e,t){try{p(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!_e[e])if(Oe||Ie)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){var t=void 0,a=void 0;if(Le)e="<remove></remove>"+e;else{var l=f(e,/^[\r\n\t ]+/);a=l&&l[0]}"application/xhtml+xml"===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=le?le.createHTML(e):e;if(Qe===Ke)try{t=(new K).parseFromString(r,Je)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=Ye?"":r}catch(e){}}var i=t.body||t.documentElement;return e&&a&&i.insertBefore(n.createTextNode(a),i.childNodes[0]||null),Qe===Ke?ce.call(t,Re?"html":"body")[0]:Re?t.documentElement:i},pt=function(e){return oe.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},mt=function(e){return e instanceof Z&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof _)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},ft=function(e){return"object"===(void 0===s?"undefined":j(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":j(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ht=function(e,t,l){de[e]&&d(de[e],(function(e){e.call(a,t,l,at)}))},kt=function(e){var t=void 0;if(ht("beforeSanitizeElements",e,null),mt(e))return gt(e),!0;if(f(e.nodeName,/[\u0080-\uFFFF]/))return gt(e),!0;var l=tt(e.nodeName);if(ht("uponSanitizeElement",e,{tagName:l,allowedTags:ye}),!ft(e.firstElementChild)&&(!ft(e.content)||!ft(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return gt(e),!0;if("select"===l&&y(/<template/i,e.innerHTML))return gt(e),!0;if(!ye[l]||Ee[l]){if(Pe&&!Ve[l]){var n=te(e)||e.parentNode,r=ee(e)||e.childNodes;if(r&&n)for(var i=r.length-1;i>=0;--i)n.insertBefore(J(r[i],!0),X(e))}if(!Ee[l]&&yt(l)){if(Te.tagNameCheck instanceof RegExp&&y(Te.tagNameCheck,l))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(l))return!1}return gt(e),!0}return e instanceof c&&!ut(e)?(gt(e),!0):"noscript"!==l&&"noembed"!==l||!y(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=h(t,be," "),t=h(t,pe," "),e.textContent!==t&&(p(a.removed,{element:e.cloneNode()}),e.textContent=t)),ht("afterSanitizeElements",e,null),!1):(gt(e),!0)},vt=function(e,t,a){if(Ae&&("id"===t||"name"===t)&&(a in n||a in lt))return!1;if(Be&&!xe[t]&&y(me,t));else if(Se&&y(fe,t));else if(!_e[t]||xe[t]){if(!(yt(e)&&(Te.tagNameCheck instanceof RegExp&&y(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&y(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&y(Te.tagNameCheck,a)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(a))))return!1}else if(qe[t]);else if(y(ve,h(a,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(a,"data:")||!Ge[e])if(Me&&!y(he,h(a,ke,"")));else if(a)return!1;return!0},yt=function(e){return e.indexOf("-")>0},wt=function(e){var t=void 0,l=void 0,n=void 0,r=void 0;ht("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e};for(r=i.length;r--;){var s=t=i[r],c=s.name,u=s.namespaceURI;if(l=v(t.value),n=tt(c),o.attrName=n,o.attrValue=l,o.keepAttr=!0,o.forceKeepAttr=void 0,ht("uponSanitizeAttribute",e,o),l=o.attrValue,!o.forceKeepAttr&&(dt(c,e),o.keepAttr))if(y(/\/>/i,l))dt(c,e);else{De&&(l=h(l,be," "),l=h(l,pe," "));var g=tt(e.nodeName);if(vt(g,n,l))try{u?e.setAttributeNS(u,c,l):e.setAttribute(c,l),b(a.removed)}catch(e){}}}ht("afterSanitizeAttributes",e,null)}},_t=function e(t){var a=void 0,l=pt(t);for(ht("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)ht("uponSanitizeShadowNode",a,null),kt(a)||(a.content instanceof i&&e(a.content),wt(a));ht("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e,n){var r=void 0,o=void 0,c=void 0,u=void 0,g=void 0;if((Ye=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ft(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!a.isSupported){if("object"===j(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(ft(e))return t.toStaticHTML(e.outerHTML)}return e}if(ze||rt(n),a.removed=[],"string"==typeof e&&(Fe=!1),Fe){if(e.nodeName){var d=tt(e.nodeName);if(!ye[d]||Ee[d])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)1===(o=(r=bt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Oe&&!De&&!Re&&-1===e.indexOf("<"))return le&&Ne?le.createHTML(e):e;if(!(r=bt(e)))return Oe?null:Ne?ne:""}r&&Le&&gt(r.firstChild);for(var b=pt(Fe?e:r);c=b.nextNode();)3===c.nodeType&&c===u||kt(c)||(c.content instanceof i&&_t(c.content),wt(c),u=c);if(u=null,Fe)return e;if(Oe){if(Ie)for(g=se.call(r.ownerDocument);r.firstChild;)g.appendChild(r.firstChild);else g=r;return _e.shadowroot&&(g=ue.call(l,g,!0)),g}var p=Re?r.outerHTML:r.innerHTML;return De&&(p=h(p,be," "),p=h(p,pe," ")),le&&Ne?le.createHTML(p):p},a.setConfig=function(e){rt(e),ze=!0},a.clearConfig=function(){at=null,ze=!1},a.isValidAttribute=function(e,t,a){at||rt({});var l=tt(e),n=tt(t);return vt(l,n,a)},a.addHook=function(e,t){"function"==typeof t&&(de[e]=de[e]||[],p(de[e],t))},a.removeHook=function(e){de[e]&&b(de[e])},a.removeHooks=function(e){de[e]&&(de[e]=[])},a.removeAllHooks=function(){de={}},a}()}()},679:function(e,t,a){"use strict";var l=a(296),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function s(e){return l.isMemo(e)?i:o[e.$$typeof]||n}o[l.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[l.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,a,l){if("string"!=typeof a){if(p){var n=b(a);n&&n!==p&&e(t,n,l)}var i=u(a);g&&(i=i.concat(g(a)));for(var o=s(t),m=s(a),f=0;f<i.length;++f){var h=i[f];if(!(r[h]||l&&l[h]||m&&m[h]||o&&o[h])){var k=d(a,h);try{c(t,h,k)}catch(e){}}}}return t}},103:function(e,t){"use strict";var a="function"==typeof Symbol&&Symbol.for,l=a?Symbol.for("react.element"):60103,n=a?Symbol.for("react.portal"):60106,r=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,g=a?Symbol.for("react.concurrent_mode"):60111,d=a?Symbol.for("react.forward_ref"):60112,b=a?Symbol.for("react.suspense"):60113,p=a?Symbol.for("react.suspense_list"):60120,m=a?Symbol.for("react.memo"):60115,f=a?Symbol.for("react.lazy"):60116,h=a?Symbol.for("react.block"):60121,k=a?Symbol.for("react.fundamental"):60117,v=a?Symbol.for("react.responder"):60118,y=a?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case l:switch(e=e.type){case u:case g:case r:case o:case i:case b:return e;default:switch(e=e&&e.$$typeof){case c:case d:case f:case m:case s:return e;default:return t}}case n:return t}}}function _(e){return w(e)===g}t.AsyncMode=u,t.ConcurrentMode=g,t.ContextConsumer=c,t.ContextProvider=s,t.Element=l,t.ForwardRef=d,t.Fragment=r,t.Lazy=f,t.Memo=m,t.Portal=n,t.Profiler=o,t.StrictMode=i,t.Suspense=b,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===r},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===n},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===g||e===o||e===i||e===b||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===k||e.$$typeof===v||e.$$typeof===y||e.$$typeof===h)},t.typeOf=w},296:function(e,t,a){"use strict";e.exports=a(103)}},t={};function a(l){var n=t[l];if(void 0!==n)return n.exports;var r=t[l]={exports:{}};return e[l].call(r.exports,r,r.exports,a),r.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element;function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},t.apply(this,arguments)}var l=window.wp.data,n=window.wp.blockEditor,r=window.wp.components,i=window.wp.i18n,o=a(184),s=a.n(o);const c=(e,t)=>{const{gridItemPaddingTop:a,gridItemPaddingRight:l,gridItemPaddingBottom:n,gridItemPaddingLeft:r}=generateBlocksStyling.container;return(e.split("-")||[]).map((e=>({isGrid:!0,gridId:t,paddingTop:a||"",paddingRight:l||"",paddingBottom:n||"",paddingLeft:r||"",widthMobile:100,width:Number(e)})))};var u=t=>{let{uniqueId:a,onClick:l,isDisabled:n=!1}=t;return!n&&(0,e.createElement)(r.Placeholder,{label:(0,i.__)("Grid","generateblocks"),instructions:(0,i.__)("Choose how many Containers to start with.","generateblocks"),className:"gb-select-layout"},(0,e.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16-16-16-16-16-16"].map((t=>{const n=c(t,a);return(0,e.createElement)("button",{key:`layout-${t}`,className:"gb-grid-wrapper-layout-preview-btn",onClick:()=>l(t)},n.map(((a,l)=>(0,e.createElement)("div",{key:`layout-${t}-col-${l}`,className:s()("gb-col",`gb-col-${a.width.toString().replace(".","-")}`)}))))}))))},g=window.wp.blocks;const d=wp.element.createElement;function b(t){return"tabs-desktop"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},d("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),d("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),d("path",{d:"M12 17.5H12.01"})):"sync"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon gblocks-block-icon__headline"},(0,e.createElement)("path",{d:"M23.7 24h-8c-.1 0-.3-.1-.3-.3V16H8.7v7.6c0 .1-.1.3-.3.3H.3c-.1.1-.3 0-.3-.2V.3C0 .2.1 0 .3 0h8c.2 0 .4.1.4.3V8h6.8V.3c0-.1.1-.3.3-.3h8c.1 0 .2.1.2.3v23.5c0 .1-.1.2-.3.2zm-6.6-1.7h5V1.7h-5v8H6.9v-8h-5v20.4h5v-8h10.3v8.2z"})):"grid"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M13.8 10.8H.3c-.2 0-.3-.1-.3-.3V.3C0 .1.1 0 .3 0h13.6c.2 0 .3.1.3.3v10.3c-.1.1-.2.2-.4.2zM1.8 9h10.6V1.8H1.8V9zm21.9 1.8h-7c-.2 0-.3-.1-.3-.3V.3c0-.2.1-.3.3-.3h7c.2 0 .3.1.3.3v10.3c0 .1-.1.2-.3.2zM18.2 9h4V1.8h-4V9zm-8 4.2h13.6c.2 0 .3.1.3.3v10.3c0 .2-.1.3-.3.3H10.2c-.2 0-.3-.1-.3-.3V13.5c0-.2.1-.3.3-.3zm12 1.8H11.7v7.3h10.6V15zM.3 13.2h7c.2 0 .3.1.3.3v10.3c0 .2-.1.3-.3.3h-7c-.2-.1-.3-.2-.3-.4V13.5c0-.2.1-.3.3-.3zM5.8 15h-4v7.3h4V15z"})):"container"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 24h-5.2v-2.2h3.3v-3.3H24v5.2c0 .2-.1.3-.3.3zm-15-2.2h6.5V24H8.7zM5.5 24H.3c-.2 0-.3-.1-.3-.3v-5.2h2.2v3.3h3.3V24zM0 8.7h2.2v6.5H0zm2.2-3.2H0V.3C0 .1.1 0 .3 0h5.2v2.2H2.2v3.3zM8.7 0h6.5v2.2H8.7zM24 5.5h-2.2V2.2h-3.3V0h5.2c.2 0 .3.1.3.3v5.2zm-2.2 3.2H24v6.5h-2.2z"})):"button"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 17.4H.3c-.1 0-.1 0-.2-.1-.1 0-.1-.1-.1-.2V6.9c0-.1 0-.1.1-.2s.1-.1.2-.1h23.4c.1 0 .1 0 .2.1s.1.1.1.2v10.2c0 .1 0 .1-.1.2 0 .1-.1.1-.2.1zM1.8 15.6h20.4V8.4H1.8v7.2z"}),(0,e.createElement)("path",{d:"M15 12.9H4.8v-1.8H15v.9zm4.2 0h-2.6v-1.8h2.6v.9z"})):"button-container"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 10.8H.3c-.1 0-.1 0-.2-.1-.1 0-.1-.1-.1-.1V.4C0 .3 0 .3.1.2S.2 0 .3 0h23.4c.1 0 .1 0 .2.1.1 0 .1.1.1.2v10.2c0 .1 0 .1-.1.2 0 .1-.1.1-.2.1zM1.8 9.1h20.4V1.9L12 1.8H1.8v7.3z"}),(0,e.createElement)("path",{d:"M15 6.3H4.8V4.5H15v.9zm4.2 0h-2.6V4.5h2.6v.9zM23.7 24H.3c-.1 0-.1 0-.2-.1s-.1-.1-.1-.2V13.5c0-.1 0-.1.1-.2s.1-.1.2-.1h23.4c.1 0 .1 0 .2.1s.1.1.1.2v10.2c0 .1 0 .1-.1.2 0 .1-.1.1-.2.1zM1.8 22.2h20.4V15H1.8v7.2z"}),(0,e.createElement)("path",{d:"M19.2 19.5H9v-1.8h10.2v.9zM4.8 17.7h2.6v1.8H4.8v-.9z"})):"post-template"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 12.9H.3c-.2 0-.3-.1-.3-.3V.3C0 .1.1 0 .3 0h23.4c.2 0 .3.1.3.3v12.3c0 .2-.1.3-.3.3zM1.8 11.1h20.4V1.8H1.8v9.3zM13.4 15h10.3c.2 0 .3.1.3.3v8.4c0 .2-.1.3-.3.3H13.4c-.2 0-.3-.1-.3-.3v-8.4c0-.1.2-.3.3-.3zm8.8 1.8h-7.3v5.4h7.3v-5.4zM.3 18.6H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.1.1-.3.3-.3zm0-3.6H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.1.1-.3.3-.3zm0 7.2H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3z"})):"query-loop"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M22.8 5.2h-7.4c-.2 0-.3-.1-.3-.3V3.7c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3zm0 3.4h-7.4c-.2 0-.3-.1-.3-.3V7.1c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3zm0-6.8h-7.4c-.2 0-.3-.1-.3-.3V.3c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3zM8.6 20.6H1.2c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c-.1.2-.2.3-.3.3zm0 3.4H1.2c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c-.1.2-.2.3-.3.3zm0-6.8H1.2c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c-.1.1-.2.3-.3.3z"}),(0,e.createElement)("path",{d:"M17.7 24c-1.7 0-3.3-.7-4.4-1.8-2.4-2.4-2.3-6.3-2.2-10.2.1-4.3.2-8.4-3-9.8-1.5-.7-3.2-.5-4.4.4-1.2.8-1.9 2.1-1.9 3.5 0 .8.2 1.6.5 2.3.9 1.7 2.5 2.5 5.6 2.7.2 0 .3.1.3.3l-.1 1.2c0 .2-.1.3-.3.3-2-.1-4.4-.5-6-2.2-1.3-1.3-2-3.1-1.8-5 .2-1.9 1.1-3.5 2.7-4.6C4.4-.1 6.7-.3 8.8.5c4.4 1.8 4.2 7 4.1 11.5-.1 3.5-.2 7.1 1.6 8.9.9.9 2.2 1.4 3.6 1.3 1.3-.1 2.5-.8 3.3-1.9.9-1.2 1-2.9.4-4.4-.8-1.9-2.5-2.8-5.8-3-.2 0-.3-.1-.3-.3l.1-1.2c0-.2.1-.3.3-.3 2.7.2 6 .8 7.3 4.1.9 2 .6 4.4-.6 6.1-1.1 1.5-2.8 2.5-4.6 2.7h-.5z"})):"image"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M16.4 11.9c-2.3 0-4.2-1.9-4.2-4.2s1.9-4.2 4.2-4.2 4.2 1.9 4.2 4.2-1.9 4.2-4.2 4.2zm0-6.7c-1.3 0-2.4 1.1-2.4 2.4s1.1 2.4 2.4 2.4c1.3 0 2.4-1.1 2.4-2.4s-1.1-2.4-2.4-2.4z"}),(0,e.createElement)("path",{d:"M23.7 24H.3c-.2 0-.3-.1-.3-.3V.3C0 .1.1 0 .3 0h23.4c.2 0 .3.1.3.3v23.4c0 .2-.1.3-.3.3zM1.8 22.2h20.4V1.8H1.8v20.4z"}),(0,e.createElement)("path",{d:"M22.3 23.6 8.4 11.7l-6.9 6.1-1.2-1.3 7.9-6.9c.1-.1.3-.1.4 0l15.1 13-1 1.1c-.1 0-.3 0-.4-.1z"})):"paragraph"===t?d("svg",{width:20,height:20,viewBox:"0 0 20 20"},d("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),d("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),d("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),d("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),d("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),d("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20"},(0,e.createElement)("path",{d:"M23.7 24h-5.2v-2.2h3.3v-3.3H24v5.2c0 .2-.1.3-.3.3zm-15-2.2h6.5V24H8.7zM5.5 24H.3c-.2 0-.3-.1-.3-.3v-5.2h2.2v3.3h3.3V24zM0 8.7h2.2v6.5H0zm2.2-3.2H0V.3C0 .1.1 0 .3 0h5.2v2.2H2.2v3.3zM8.7 0h6.5v2.2H8.7zM24 5.5h-2.2V2.2h-3.3V0h5.2c.2 0 .3.1.3.3v5.2zm-2.2 3.2H24v6.5h-2.2zM12.6 18.6h-1.2c-.2 0-.3-.1-.3-.3V5.7c0-.2.1-.3.3-.3h1.2c.2 0 .3.1.3.3v12.6c0 .2-.1.3-.3.3z"}),(0,e.createElement)("path",{d:"M18.3 12.9H5.7c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3h12.6c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3z"})):"gradient"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},d("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),d("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),d("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),d("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):"wrench"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z"}))):"x"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))):"ellipsis"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))):"insert"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))):"reset"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 50 50"},(0,e.createElement)("path",{d:"M25 38c-5.1 0-9.7-3-11.8-7.6l1.8-.8c1.8 3.9 5.7 6.4 10 6.4 6.1 0 11-4.9 11-11s-4.9-11-11-11c-4.6 0-8.5 2.8-10.1 7.3l-1.9-.7c1.9-5.2 6.6-8.6 12-8.6 7.2 0 13 5.8 13 13s-5.8 13-13 13z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M20 22h-8v-8h2v6h6z",fill:"currentColor"})):"dynamic"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 921 921",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("path",{d:"M869.447 50.856c67.809 67.817 67.809 750.774 0 818.59-67.817 67.807-750.774 67.807-818.591 0-67.808-67.816-67.808-750.773 0-818.59 67.817-67.808 750.774-67.808 818.591 0Zm-395.295 685.52h3.579c9.702 0 17.579 7.877 17.579 17.579v3.42H723.3c5.451-12.361 17.818-21 32.187-21 19.405 0 35.159 15.755 35.159 35.159 0 19.405-15.754 35.159-35.159 35.159-14.491 0-26.947-8.786-32.325-21.317H495.31v3.738c0 9.702-7.877 17.579-17.579 17.579h-35.159c-9.702 0-17.579-7.877-17.579-17.58v-3.737H197.141c-5.378 12.53-17.834 21.317-32.325 21.317-19.405 0-35.159-15.754-35.159-35.16 0-19.403 15.754-35.157 35.159-35.157 14.369 0 26.736 8.638 32.187 21h227.99v-3.421c0-9.702 7.877-17.58 17.579-17.58h3.58V609.535h28v126.842ZM129.657 414.193c0 29.527 148.09 53.5 330.495 53.5 182.404 0 330.494-23.973 330.494-53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94Zm0-134.5c0 29.527 148.09 53.5 330.495 53.5 182.404 0 330.494-23.973 330.494-53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94Zm.002-134.673c.591-29.45 148.453-53.327 330.493-53.327 182.404 0 330.494 23.973 330.494 53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94l.002-.173Z"})):"trash"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2M10 11v6M14 11v6"})):"query-params"===t?(0,e.createElement)("svg",{viewBox:"0 0 2876 2876",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("path",{d:"M2717.022 158.925c211.903 211.928 211.903 2346.168 0 2558.097-211.928 211.893-2346.169 211.893-2558.097 0-211.9-211.929-211.9-2346.17 0-2558.097 211.928-211.9 2346.169-211.9 2558.097 0ZM1786.4 1975.975c-155.978 116.55-349.419 185.565-558.85 185.565-515.969 0-934.872-418.9-934.872-934.872 0-515.968 418.903-934.868 934.872-934.868 515.969 0 934.872 418.9 934.872 934.868 0 211.963-70.694 407.541-189.725 564.372l508.869 508.87c25.609 25.608 25.609 67.196 0 92.805l-92.81 92.81c-25.61 25.61-67.197 25.61-92.806 0l-509.55-509.55ZM1227.55 529.253c384.916 0 697.419 312.5 697.419 697.415 0 384.916-312.503 697.42-697.419 697.42s-697.419-312.504-697.419-697.42c0-384.915 312.503-697.415 697.419-697.415Zm-28.434 1248.965c-43.153 0-77.044-11.55-101.666-34.65-24.625-23.1-36.934-54.703-36.934-94.812 0-40.616 12.309-72.472 36.934-95.572 24.622-23.1 58.513-34.65 101.666-34.65s76.915 11.55 101.284 34.65c24.369 23.1 36.553 54.956 36.553 95.572 0 40.11-12.184 71.712-36.553 94.812-24.369 23.1-58.131 34.65-101.284 34.65Zm-346.504-811.04c1.016-47.216 9.9-90.497 26.657-129.844 16.753-39.347 40.868-73.11 72.347-101.284 31.475-28.178 69.934-50.138 115.371-65.875 45.438-15.738 97.35-23.607 155.735-23.607 54.325 0 103.697 7.235 148.122 21.704 44.422 14.468 82.5 34.778 114.231 60.921 31.731 26.147 56.225 57.372 73.487 93.672 17.263 36.3 25.894 76.535 25.894 120.703 0 57.37-13.71 106.616-41.125 147.741-27.415 41.122-68.031 77.675-121.847 109.66-25.384 14.724-46.325 28.306-62.825 40.743-16.5 12.438-29.7 25.131-39.6 38.078-9.9 12.944-16.88 26.653-20.943 41.122-4.063 14.469-6.094 30.844-6.094 49.119v40.362h-201.806l-1.525-41.884c-2.538-30.462-1.775-57.878 2.284-82.247 4.063-24.369 11.678-46.581 22.847-66.634 11.169-20.053 26.019-38.46 44.55-55.213s40.997-32.747 67.397-47.978c24.369-14.722 44.803-28.303 61.303-40.74 16.503-12.438 29.703-25.004 39.603-37.697 9.9-12.694 16.878-26.02 20.94-39.982 4.063-13.962 6.094-29.828 6.094-47.596 0-17.77-3.428-34.016-10.28-48.738-6.854-14.722-16.629-27.416-29.32-38.078-12.693-10.66-27.925-19.038-45.693-25.131-17.77-6.09-37.57-9.138-59.4-9.138-44.17 0-79.582 12.438-106.235 37.316-26.656 24.878-41.25 58.384-43.79 100.525H852.612Z"})):"caption"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 32 32"},(0,e.createElement)("path",{fill:"currentColor",d:"M11.5 13C10.24 13 9 14.213 9 16s1.24 3 2.5 3a2.17 2.17 0 0 0 1.274-.421 1 1 0 1 1 1.164 1.626A4.17 4.17 0 0 1 11.5 21C8.893 21 7 18.632 7 16s1.893-5 4.5-5c.95 0 1.822.326 2.536.867a1 1 0 1 1-1.208 1.594A2.183 2.183 0 0 0 11.5 13Zm7.5 3c0-1.787 1.24-3 2.5-3 .479 0 .934.162 1.328.46a1 1 0 0 0 1.208-1.593A4.182 4.182 0 0 0 21.5 11c-2.607 0-4.5 2.368-4.5 5s1.893 5 4.5 5a4.17 4.17 0 0 0 2.438-.795 1 1 0 1 0-1.164-1.626A2.172 2.172 0 0 1 21.5 19c-1.26 0-2.5-1.213-2.5-3ZM2 8.5A4.5 4.5 0 0 1 6.5 4h19A4.5 4.5 0 0 1 30 8.5v15a4.5 4.5 0 0 1-4.5 4.5h-19A4.5 4.5 0 0 1 2 23.5v-15ZM6.5 6A2.5 2.5 0 0 0 4 8.5v15A2.5 2.5 0 0 0 6.5 26h19a2.5 2.5 0 0 0 2.5-2.5v-15A2.5 2.5 0 0 0 25.5 6h-19Z"})):"add-pagination"===t?(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M18 8.2h-5.2V3h-1.6v5.2H6v1.6h5.2V15h1.6V9.8H18V8.2ZM8.5 17.5h-3a1.5 1.5 0 0 0 0 3h3a1.5 1.5 0 0 0 0-3ZM15 19a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM20 19a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z",fill:"#000"})):void 0}var p=t=>{let{uniqueId:a,clientId:o}=t;const{insertBlocks:s}=(0,l.useDispatch)("core/block-editor");return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:b("addContainer"),label:(0,i.__)("Add Grid Item","generateblocks"),onClick:()=>{s((0,g.createBlock)("generateblocks/container",{isGrid:!0,gridId:a,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"",width:50,widthMobile:100}),void 0,o)},showTooltip:!0})))},m=window.wp.hooks;class f extends e.Component{render(){const{name:e,children:t}=this.props;return(0,m.applyFilters)(e,t||"",this.props)}}var h={data:new Map,get(e,t){try{return this.data.has(e)?this.data.get(e):"undefined"===(a=localStorage.getItem(e))?void 0:JSON.parse(null!=a?a:"")}catch(e){return t}var a},set(e,t){try{localStorage.setItem(e,JSON.stringify(t)),this.data.delete(e)}catch(a){this.data.set(e,t)}},remove(e){this.data.delete(e),localStorage.removeItem(e)}},k=window.ReactDOM,v=window.React,y=a.n(v);const w=[];var _=function(e,t){return"undefined"==typeof window?[null==t?void 0:t.defaultValue,()=>{},{isPersistent:!0,removeItem:()=>{}}]:function(e,t){const a=(0,v.useRef)(!0),l=(0,v.useRef)(null==t?void 0:t.defaultValue).current,[n,r]=(0,v.useReducer)((e=>e+1),0),i=(0,v.useCallback)((t=>{const a="function"==typeof t?t(h.get(e,l)):t;h.set(e,a),(0,k.unstable_batchedUpdates)((()=>{for(const t of w)t.key===e&&t.forceUpdate()}))}),[e,l]);(0,v.useEffect)((()=>{const t=t=>{t.storageArea===localStorage&&t.key===e&&r()};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}),[e]),(0,v.useEffect)((()=>{const t={key:e,forceUpdate:r};return w.push(t),()=>{w.splice(w.indexOf(t),1)}}),[e]);const o=!0===(0,v.useRef)(null==t?void 0:t.ssr).current&&a.current;return o&&(h.data.has(e)||l!==h.get(e,l))&&(r(),a.current=!1),void 0===l||h.data.has(e)||null!==localStorage.getItem(e)||h.set(e,l),(0,v.useMemo)((()=>[o?l:h.get(e,l),i,{isPersistent:o||!h.data.has(e),removeItem(){h.remove(e);for(const t of w)t.key===e&&t.forceUpdate()}}]),[n,e])}(e,t)};function C(t){const{title:a=!1,initialOpen:l=!1,icon:n,className:i,id:o,state:s,showPanel:c=!0,children:u}=t,[g,d]=_("generateblocksPanels",{ssr:!0,defaultValue:{}});if(!(0,m.applyFilters)("generateblocks.editor.showPanel",c,o,t))return null;let b=!0;return""===u&&(b=!1),"object"==typeof u&&(b=Object.values(u).some((e=>null!==e&&!1!==e&&""!==e))),b?(0,e.createElement)(f,{name:"generateblocks.panel."+o,props:t,state:s},a?(0,e.createElement)(r.PanelBody,{title:a,initialOpen:void 0!==g[o]?g[o]:l,icon:n,className:i,onToggle:()=>{const e=g[o]||void 0===g[o]&&l;d({...g,[o]:!e})}},(0,m.applyFilters)("generateblocks.editor.panelContents",u,o,t)):(0,e.createElement)(r.PanelBody,null,(0,m.applyFilters)("generateblocks.editor.panelContents",u,o,t))):null}var T=window.wp.primitives,E=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));class x extends e.Component{render(){const{label:t,value:a,onClick:l,units:n,id:o,singleOption:s=!1}=this.props,c=s?[a]:n;return(0,e.createElement)("div",{className:"components-gblocks-units-control-header__units"},(0,e.createElement)("div",{className:"components-gblocks-units-control-label__units"},o?(0,e.createElement)("label",{htmlFor:o},t):t),(0,e.createElement)("div",{className:"components-gblocks-control__units"},(0,e.createElement)(r.ButtonGroup,{className:"components-gblocks-control-buttons__units","aria-label":(0,i.__)("Select Units","generateblocks")},c.map((t=>{let n=t;return"px"===t&&(n=(0,i._x)("Pixel","A size unit for CSS markup","generateblocks")),"em"===t&&(n=(0,i._x)("Em","A size unit for CSS markup","generateblocks")),"%"===t&&(n=(0,i._x)("Percentage","A size unit for CSS markup","generateblocks")),"deg"===t&&(n=(0,i._x)("Degree","A size unit for CSS markup","generateblocks")),(0,e.createElement)(r.Tooltip
2
- /* translators: Unit type (px, em, %) */,{text:(0,i.sprintf)((0,i.__)("%s Units","generateblocks"),n),key:t},(0,e.createElement)(r.Button,{key:t,className:"components-gblocks-control-button__units--"+t,isSmall:!0,isPrimary:a===t,"aria-pressed":a===t
3
- /* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":(0,i.sprintf)((0,i.__)("%s Units","generateblocks"),n),onClick:()=>l(t)},t))})))))}}function S(e){return e||0===e}function B(e,t,a,l){let n=t[e=e.replace("Tablet","").replace("Mobile","")];return"Mobile"===a&&t[e+"Tablet"]&&(n=t[e+"Tablet"]),""!==n&&!1!==n||(n=l),n}function M(t){const{label:a,attributeName:l,attributes:n,setAttributes:o,units:s=[],unit:c="px",device:u,presets:g=[],min:d=0,max:b,step:p,id:f=l,defaultPlaceholder:h=""}=t,[k,v]=(0,e.useState)(!1),[y,w]=_("generateblocksCustomInputs",{ssr:!0,defaultValue:[]}),C={value:l,unit:l+"Unit"};u&&"Desktop"!==u&&(C.value+=u);const T=(0,m.applyFilters)("generateblocns.editor.numberPresets",g,t),M=T.length>0?T[0].data:[],D=T.length>0?T[0].unit:"px",R=M.length>0&&"object"==typeof M[0]?M.find((e=>e.value===n[C.value])):M.includes(n[C.value]),z="Desktop"!==u&&B(C.value,n,u,""),L=0===T.length||!!S(n[C.value])&&!R||z||k||y.some((e=>e.includes(l)));return(0,e.createElement)(r.BaseControl,{label:0===s.length?a:null,id:f,className:"gblocks-number-component"},s.length>0&&(0,e.createElement)(x,{label:a,id:f,value:n[C.unit]||c,units:s,singleOption:!L,onClick:e=>(void 0!==n[C.unit]&&o({[C.unit]:e}),!1)}),!L&&(0,e.createElement)(r.ButtonGroup,{className:"gblocks-component-number-presets"},M.map(((t,a)=>{const l="object"==typeof t?t.value:t,i="object"==typeof t?t.label:t;return(0,e.createElement)(r.Button,{key:a,isPrimary:l===n[C.value]||l===h&&!S(n[C.value]),onClick:()=>{n[C.value]!==l?o({[C.value]:l,[C.unit]:D}):o({[C.value]:""})}},i)})),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Custom","generateblocks")},(0,e.createElement)(r.Button,{icon:E,onClick:()=>{v(!0),w([...y,l])}}))),L&&(0,e.createElement)("div",{className:"gblocks-number-component__input"},(0,e.createElement)(r.TextControl,{type:"number",value:S(n[C.value])?n[C.value]:"",placeholder:B(C.value,n,u,h),id:f,min:d,max:b,step:p,autoComplete:"off",onChange:e=>{d>=0&&(e=e.toString().replace(/-/g,"")),o({[C.value]:e})},onBlur:()=>{""!==n[C.value]&&!1!==n[C.value]&&o({[C.value]:parseFloat(n[C.value])})},onClick:e=>{e.currentTarget.focus()}}),T.length>0&&(R||!S(n[C.value]))&&!z&&(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Presets","generateblocks")},(0,e.createElement)(r.Button,{icon:E,onClick:()=>{v(!1),o({[C.unit]:D}),w(y.filter((e=>e!==l)))}}))))}var D=a=>{const{attributes:l,state:o,deviceType:s,setAttributes:c}=a,{verticalAlignment:u,verticalAlignmentTablet:g,verticalAlignmentMobile:d,horizontalAlignment:p,horizontalAlignmentTablet:f,horizontalAlignmentMobile:h,isQueryLoop:k}=l;return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(C,t({},a,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!k,icon:b("layout"),className:"gblocks-panel-label",id:"gridLayout",state:o}),(0,e.createElement)(M,t({},a,{label:(0,i.__)("Horizontal Gap","generateblocks"),attributeName:"horizontalGap",unit:"px",units:["px"],device:s,presets:[{unit:"px",data:[20,40,60,80]}]})),(0,e.createElement)(M,t({},a,{label:(0,i.__)("Vertical Gap","generateblocks"),attributeName:"verticalGap",unit:"px",units:["px"],device:s,presets:[{unit:"px",data:[20,40,60,80]}]})),"Desktop"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:u,help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{c({verticalAlignment:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:p,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{c({horizontalAlignment:e})}})),"Tablet"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:g,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{c({verticalAlignmentTablet:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:f,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{c({horizontalAlignmentTablet:e})}})),"Mobile"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:d,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{c({verticalAlignmentMobile:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:h,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{c({horizontalAlignmentMobile:e})}})),(0,m.applyFilters)("generateblocks.editor.controls","","gridLayout",a,o)))};const R=/[\s#]/g;var z=t=>{let{anchor:a,setAttributes:l}=t;return(0,e.createElement)(r.TextControl,{label:(0,i.__)("HTML Anchor","generateblocks"),help:(0,i.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:a||"",onChange:e=>{const t=e.replace(R,"-");l({anchor:t})}})},L=t=>(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,t));function O(e){let t="";for(const[a,l]of Object.entries(e)){if(l.length<1)continue;let e=a+"{",n=0;for(const[t,a]of Object.entries(l))for(const[t,l]of Object.entries(a))(l||0===l)&&(n++,e+=t+": "+l+";");e+="}",n>0&&(t+=e)}return t}function I(e,t){return!(!e&&0!==e)&&e+t}class N extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGap:l,verticalGap:n,verticalAlignment:r,horizontalAlignment:i,isQueryLoop:o}=t;let s=[];const c=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",u=o?c+" > .block-editor-inner-blocks":c+" > .gb-grid-column";return s[c]=[{"align-items":r,"justify-content":i,"margin-left":l||0===l?"-"+l+"px":null}],s[u]=[{"padding-left":I(l,"px"),"margin-bottom":I(n,"px")}],s=(0,m.applyFilters)("generateblocks.editor.mainCSS",s,this.props,"grid"),(0,e.createElement)("style",null,O(s))}}class A extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"grid"),(0,e.createElement)("style",null,O(t))}}class P extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGapTablet:l,verticalGapTablet:n,verticalAlignmentTablet:r,horizontalAlignmentTablet:i,isQueryLoop:o}=t;let s=[];const c=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",u=o?c+" > .block-editor-inner-blocks":c+" > .gb-grid-column";return s[c]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==i?i:null,"margin-left":l||0===l?"-"+l+"px":null}],s[u]=[{"padding-left":I(l,"px"),"margin-bottom":n||0===n?I(n,"px"):null}],s=(0,m.applyFilters)("generateblocks.editor.tabletCSS",s,this.props,"grid"),(0,e.createElement)("style",null,O(s))}}class F extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"grid"),(0,e.createElement)("style",null,O(t))}}class H extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGapMobile:l,verticalGapMobile:n,verticalAlignmentMobile:r,horizontalAlignmentMobile:i,isQueryLoop:o}=t;let s=[];const c=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",u=o?c+" > .block-editor-inner-blocks":c+" > .gb-grid-column";return s[c]=[{"align-items":"inherit"!==r?r:null,"justify-content":"inherit"!==i?i:null,"margin-left":l||0===l?"-"+l+"px":null}],s[u]=[{"padding-left":I(l,"px"),"margin-bottom":n||0===n?I(n,"px"):null}],s=(0,m.applyFilters)("generateblocks.editor.mobileCSS",s,this.props,"grid"),(0,e.createElement)("style",null,O(s))}}var V=window.lodash,U=a.n(V);function G(e,t){return e.deviceType===t.deviceType&&e.clientId===t.clientId&&(a=e.attributes,l=t.attributes,Object.keys(a).every((e=>(0,V.isEqual)(a[e],l[e]))));var a,l}var j=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=t?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(N,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(A,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(P,t),"Tablet"===a&&(0,e.createElement)(F,t),"Mobile"===a&&(0,e.createElement)(H,t)))}),G),q=window.wp.compose,W=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop";const[a,n]=_("generateblocksDeviceType",{ssr:!0,defaultValue:t});if(!(0,l.dispatch)("core/edit-post"))return[a,e=>{n(e)}];const{__experimentalSetPreviewDeviceType:r=(()=>{})}=(0,l.useDispatch)("core/edit-post"),i=(0,l.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t=(()=>!1)}=e("core/edit-post");return t()}),[]);(0,e.useEffect)((()=>{n(i)}),[i]);const o=e=>{generateBlocksInfo&&generateBlocksInfo.syncResponsivePreviews&&r(e),n(e)};return[a,o]},$=e=>{const t=(0,l.useSelect)((t=>t("core/block-editor").getBlock(e)));return t?t.innerBlocks.length:0},Z=window.wp.coreData,K=()=>(0,l.useSelect)((e=>{const{getTaxonomies:t}=e(Z.store);return t({per_page:-1})||[]}),[]);const Q=e=>e.reduce(((e,t)=>{if(t.name&&t.name.includes("generateblocks")&&t.attributes&&t.attributes.uniqueId&&(e.uniqueIds.push(t.attributes.uniqueId),e.clientIds.push(t.clientId)),t.innerBlocks){const{uniqueIds:a,clientIds:l}=Q(t.innerBlocks);e.uniqueIds=e.uniqueIds.concat(a),e.clientIds=e.clientIds.concat(l)}return e}),{uniqueIds:[],clientIds:[]});var Y=t=>a=>{const{clientId:r,attributes:i}=a,{updateBlockAttributes:o}=(0,l.useDispatch)(n.store);return(0,e.useEffect)((()=>{const{uniqueIds:e,clientIds:t}=Q(wp.data.select("core/block-editor").getBlocks());if(!i.uniqueId||(a=e,l=i.uniqueId,n=t.indexOf(r),a.filter((e=>e===l)).length>1&&n===a.lastIndexOf(l))){const e=(e=>e.substr(2,9).replace("-",""))(r);o(r,{uniqueId:e})}var a,l,n}),[r]),(0,e.createElement)(t,a)};function J(e){return""===e.uniqueId}function X(e,t){return!e||e<t}const ee=[{name:"generateblocks/button",id:"buttonDocumentation",url:"https://docs.generateblocks.com/collection/buttons/"},{name:"generateblocks/button-container",id:"buttonContainerDocumentation",url:"https://docs.generateblocks.com/collection/buttons/"},{name:"generateblocks/container",id:"containerDocumentation",url:"https://docs.generateblocks.com/collection/container/"},{name:"generateblocks/grid",id:"gridDocumentation",url:"https://docs.generateblocks.com/collection/grid/"},{name:"generateblocks/headline",id:"headlineDocumentation",url:"https://docs.generateblocks.com/collection/headline/"},{name:"generateblocks/image",id:"imageDocumentation",url:"https://docs.generateblocks.com/collection/image/"}],te=(0,q.createHigherOrderComponent)((a=>l=>{const{name:r,state:o}=l,s=ee.find((e=>r===e.name));return s&&0!==s.length?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a,l),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(C,t({},l,{title:(0,i.__)("Documentation","generateblocks"),icon:b("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:s.id,state:o}),(0,e.createElement)("p",null,(0,i.__)("Need help with this block?","generateblocks")),(0,e.createElement)("a",{href:s.url,target:"_blank",rel:"noreferrer noopener"},(0,i.__)("Visit our documentation","generateblocks")),(0,m.applyFilters)("generateblocks.editor.controls","",s.id,l,o)))):(0,e.createElement)(a,l)}),"withDocumentation");(0,m.addFilter)("editor.BlockEdit","generateblocks/with-documentation",te,99);var ae=function(t){let{icon:a,size:l=24,...n}=t;return(0,e.cloneElement)(a,{width:l,height:l,...n})},le=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),ne=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})),re=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}));class ie extends e.Component{render(){const{onClick:t,selectedDevice:a}=this.props,l=document.querySelector(".edit-post-sidebar .edit-post-sidebar__panel-tabs"),n=l?l.offsetHeight:0;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"gb-responsive-tabs",style:{top:n+"px"}},(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Show options for all devices","generateblocks")},(0,e.createElement)(r.Button,{isPressed:"Desktop"===a,onClick:()=>{t("Desktop")}},(0,e.createElement)(ae,{icon:le}))),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Show options for tablet devices","generateblocks")},(0,e.createElement)(r.Button,{isPressed:"Tablet"===a,onClick:()=>{t("Tablet")}},(0,e.createElement)(ae,{icon:ne}))),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Show options for mobile devices","generateblocks")},(0,e.createElement)(r.Button,{isPressed:"Mobile"===a,onClick:()=>{t("Mobile")}},(0,e.createElement)(ae,{icon:re})))),(0,m.applyFilters)("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}const oe=(0,q.createHigherOrderComponent)((a=>l=>{const{name:r}=l;if(!(0,m.applyFilters)("generateblocks.editor.responsiveTabBlocks",["generateblocks/button","generateblocks/button-container","generateblocks/container","generateblocks/grid","generateblocks/headline","generateblocks/image"],l).includes(r))return(0,e.createElement)(a,l);const[i,o]=W("Desktop");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(ie,t({},l,{selectedDevice:i,onClick:o}))),(0,e.createElement)(a,l))}),"withResponsiveTabs");function se(e,t,a){var l=this,n=(0,v.useRef)(null),r=(0,v.useRef)(0),i=(0,v.useRef)(null),o=(0,v.useRef)([]),s=(0,v.useRef)(),c=(0,v.useRef)(),u=(0,v.useRef)(e),g=(0,v.useRef)(!0);u.current=e;var d=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var b=!!(a=a||{}).leading,p=!("trailing"in a)||!!a.trailing,m="maxWait"in a,f=m?Math.max(+a.maxWait||0,t):null;(0,v.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var h=(0,v.useMemo)((function(){var e=function(e){var t=o.current,a=s.current;return o.current=s.current=null,r.current=e,c.current=u.current.apply(a,t)},a=function(e,t){d&&cancelAnimationFrame(i.current),i.current=d?requestAnimationFrame(e):setTimeout(e,t)},h=function(e){if(!g.current)return!1;var a=e-n.current,l=e-r.current;return!n.current||a>=t||a<0||m&&l>=f},k=function(t){return i.current=null,p&&o.current?e(t):(o.current=s.current=null,c.current)},v=function(){var e=Date.now();if(h(e))return k(e);if(g.current){var l=e-n.current,i=e-r.current,o=t-l,s=m?Math.min(o,f-i):o;a(v,s)}},y=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var p=Date.now(),f=h(p);if(o.current=u,s.current=l,n.current=p,f){if(!i.current&&g.current)return r.current=n.current,a(v,t),b?e(n.current):c.current;if(m)return a(v,t),e(n.current)}return i.current||a(v,t),c.current};return y.cancel=function(){i.current&&(d?cancelAnimationFrame(i.current):clearTimeout(i.current)),r.current=0,o.current=n.current=s.current=i.current=null},y.isPending=function(){return!!i.current},y.flush=function(){return i.current?k(Date.now()):c.current},y}),[b,m,t,f,p,d]);return h}(0,m.addFilter)("editor.BlockEdit","generateblocks/with-responsive-tabs",oe,1);const ce=(0,e.memo)((function(a){let{blocks:l,contextId:r,setActiveContextId:i,isHidden:o}=a;const s=(0,n.__experimentalUseBlockPreview)({blocks:l}),c=()=>i(r),u={display:o?"none":void 0};return(0,e.createElement)("div",t({},s,{className:"block-editor-inner-blocks",tabIndex:0,role:"button",onClick:c,onKeyPress:c,style:u}))}));function ue(e){return e.map((e=>{const t=ue(e.innerBlocks),a=Object.assign({},e.attributes,{isBlockPreview:!0});return Object.assign({},e,{attributes:a,innerBlocks:t})}))}function ge(a){const{clientId:o,data:s,hasData:c,isResolvingData:u,hasResolvedData:g,templateLock:d,contextCallback:b}=a,p=(0,l.useSelect)((e=>e("core/block-editor")?.getBlocks(o)),[]),{getSelectedBlock:m}=(0,l.useSelect)(n.store),[f,h]=(0,e.useState)([]),[k,v]=(0,e.useState)();(0,e.useEffect)((()=>{h(ue(p))}),[]);const y=se((()=>{h(ue(p))}),10),w=["core/paragraph","core/heading","core/button","generateblocks/headline","generateblocks/button"];(0,e.useEffect)((()=>{const e=m();!w.includes(e?.name)||e?.attributes?.useDynamicData||e?.attributes?.dynamicContentType?h(ue(p)):y()}),[JSON.stringify(p)]);const _=(0,e.useMemo)((()=>c&&s.map((e=>b(e)))),[s,c]);return u?(0,e.createElement)(r.Spinner,null):g&&!c?(0,e.createElement)("h5",null,(0,i.__)("No results found.","generateblocks")):_&&_.map((l=>(0,e.createElement)(n.BlockContextProvider,{key:l.postId,value:l},l.postId===(k||_[0]?.postId)?(0,e.createElement)(n.InnerBlocks,t({},a,{templateLock:d})):null,(0,e.createElement)(ce,{blocks:f,contextId:l.postId,setActiveContextId:v,isHidden:l.postId===(k||_[0]?.postId)}))))}function de(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t,a]=e;return"alt"===t||(Array.isArray(a)?!!a.length:!!a)})))}function be(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=t?`${e.rest}_exclude`:e.rest;return{[a]:e.terms}}function pe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.reduce(((e,a)=>Object.assign({},e,be(a,t))),{})}function me(t){const{clientId:a,context:n}=t,r=n["generateblocks/query"]||{},i=(0,e.useMemo)((()=>function(e){let t=function(e){const t=e.per_page?e.per_page:10,a="-1"===e.per_page||e.per_page>50?50:t;let l;return"exclude"===e.stickyPosts?l=!1:"only"===e.stickyPosts&&(l=!0),Object.assign({},e,{per_page:a,sticky:l})}(e);if(Array.isArray(e.tax_query)){const a=pe(e.tax_query);t=Object.assign({},t,a,{tax_query:void 0})}if(Array.isArray(e.tax_query_exclude)){const a=pe(e.tax_query_exclude,!0);t=Object.assign({},t,a,{tax_query_exclude:void 0})}return t}(de(r))),[JSON.stringify(r)]),{data:o,isResolvingData:s,hasResolvedData:c}=(0,l.useSelect)((e=>{const{getEntityRecords:t,isResolving:a,hasFinishedResolution:l}=e(Z.store),n=["postType",r.post_type||"post",i];return{data:t(...n),isResolvingData:a("getEntityRecords",n),hasResolvedData:l("getEntityRecords",n)}}),[JSON.stringify(i)]);return(0,e.createElement)("div",{className:"gb-post-template-wrapper"},(0,e.createElement)(ge,{data:o,hasData:!(!c||!o?.length),isResolvingData:s,hasResolvedData:c,templateLock:!0,clientId:a,contextCallback:e=>({postType:e.type,postId:e.id})}))}var fe=(0,q.compose)((t=>a=>{const{attributes:l}=a,n=l.isQueryLoop?Object.assign({},a,{defaultLayout:"100",templateLock:"all",InnerBlocksRenderer:me}):a;return(0,e.createElement)(t,n)}),Y,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{if(l.isDynamic||n({isDynamic:!0}),!J(l)&&X(l.blockVersion,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.gridContainer,t={};l.useGlobalStyle&&l.globalStyleId||S(l.horizontalGap)||(t.horizontalGap=e.horizontalGap),Object.keys(t).length>0&&n(t)}X(l.blockVersion,2)&&n({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{clientId:r,attributes:i,setAttributes:o,InnerBlocksRenderer:d=n.InnerBlocks,LayoutSelector:b=u,defaultLayout:f=!1,templateLock:h=!1,context:k}=a,[v,y]=(0,e.useState)(!1),[w,_]=W("Desktop"),C=$(r),{insertBlocks:T}=(0,l.useDispatch)("core/block-editor");(0,e.useEffect)((()=>{o({columns:C})}),[C]),(0,e.useEffect)((()=>{const e=f||v;!i.isQueryLoop&&e&&(c(e,i.uniqueId).forEach((e=>{T((0,g.createBlock)("generateblocks/container",e),void 0,a.clientId,!1)})),y(!1))}),[v,f,i.uniqueId,a.clientId,i.isQueryLoop]);let E={className:s()({"gb-grid-wrapper":!0,[`gb-grid-wrapper-${i.uniqueId}`]:!0,[`${i.className}`]:void 0!==i.className,"gb-post-template":!!i.isQueryLoop,[`gb-post-template-${i.uniqueId}`]:!!i.isQueryLoop}),id:i.anchor?i.anchor:null};E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",E,"generateblocks/grid",i);const x=(0,n.useBlockProps)(E);return(0,e.createElement)(e.Fragment,null,!i.isQueryLoop&&(i.columns>0||v)&&(0,e.createElement)(p,{uniqueId:i.uniqueId,clientId:a.clientId}),(0,e.createElement)(D,t({},a,{state:{selectedLayout:v,deviceType:w},deviceType:w,setDeviceType:_,blockDefaults:generateBlocksDefaults.gridContainer})),(0,e.createElement)(L,{anchor:i.anchor,setAttributes:o}),(0,e.createElement)(j,t({},a,{deviceType:w})),(0,e.createElement)("div",x,i.isQueryLoop||i.columns>0||v?(0,e.createElement)(d,{templateLock:h,allowedBlocks:["generateblocks/container"],renderAppender:!1,clientId:r,uniqueId:i.uniqueId,attributes:i,context:k}):(0,e.createElement)(b,{uniqueId:i.uniqueId,onClick:y,isDisabled:i?.isBlockPreview})))})),he={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},blockVersion:{type:"number"},isQueryLoop:{type:"boolean",default:!1},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const ke=[{attributes:he,supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i}=a;let o={id:r||void 0,className:s()({"gb-grid-wrapper":!0,[`gb-grid-wrapper-${l}`]:!0,[`${i}`]:""!==i})};return o=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",o,"generateblocks/grid",a),(0,e.createElement)("div",o,(0,e.createElement)(n.InnerBlocks.Content,null))}}];var ve=ke;(0,g.registerBlockType)("generateblocks/grid",{apiVersion:2,title:(0,i.__)("Grid","generateblocks"),description:(0,i.__)("Create advanced layouts with flexible grids.","generateblocks"),icon:b("grid"),category:"generateblocks",keywords:[(0,i.__)("grid"),(0,i.__)("column"),(0,i.__)("generate")],attributes:he,supports:{className:!1,html:!1},edit:fe,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:ve,__experimentalLabel:e=>e.isQueryLoop?(0,i.__)("Post Template","generateblocks"):(0,i.__)("Grid","generateblocks")});var ye=Object.assign({},he,{uniqueId:{type:"string",default:""},inheritQuery:{type:"boolean",default:!1},query:{type:"object",default:{}}}),we=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_e=Math.abs,Ce=String.fromCharCode,Te=Object.assign;function Ee(e){return e.trim()}function xe(e,t,a){return e.replace(t,a)}function Se(e,t){return e.indexOf(t)}function Be(e,t){return 0|e.charCodeAt(t)}function Me(e,t,a){return e.slice(t,a)}function De(e){return e.length}function Re(e){return e.length}function ze(e,t){return t.push(e),e}var Le=1,Oe=1,Ie=0,Ne=0,Ae=0,Pe="";function Fe(e,t,a,l,n,r,i){return{value:e,root:t,parent:a,type:l,props:n,children:r,line:Le,column:Oe,length:i,return:""}}function He(e,t){return Te(Fe("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ve(){return Ae=Ne>0?Be(Pe,--Ne):0,Oe--,10===Ae&&(Oe=1,Le--),Ae}function Ue(){return Ae=Ne<Ie?Be(Pe,Ne++):0,Oe++,10===Ae&&(Oe=1,Le++),Ae}function Ge(){return Be(Pe,Ne)}function je(){return Ne}function qe(e,t){return Me(Pe,e,t)}function We(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $e(e){return Le=Oe=1,Ie=De(Pe=e),Ne=0,[]}function Ze(e){return Pe="",e}function Ke(e){return Ee(qe(Ne-1,Je(91===e?e+2:40===e?e+1:e)))}function Qe(e){for(;(Ae=Ge())&&Ae<33;)Ue();return We(e)>2||We(Ae)>3?"":" "}function Ye(e,t){for(;--t&&Ue()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return qe(e,je()+(t<6&&32==Ge()&&32==Ue()))}function Je(e){for(;Ue();)switch(Ae){case e:return Ne;case 34:case 39:34!==e&&39!==e&&Je(Ae);break;case 40:41===e&&Je(e);break;case 92:Ue()}return Ne}function Xe(e,t){for(;Ue()&&e+Ae!==57&&(e+Ae!==84||47!==Ge()););return"/*"+qe(t,Ne-1)+"*"+Ce(47===e?e:Ue())}function et(e){for(;!We(Ge());)Ue();return qe(e,Ne)}var tt="-ms-",at="-moz-",lt="-webkit-",nt="comm",rt="rule",it="decl",ot="@keyframes";function st(e,t){for(var a="",l=Re(e),n=0;n<l;n++)a+=t(e[n],n,e,t)||"";return a}function ct(e,t,a,l){switch(e.type){case"@import":case it:return e.return=e.return||e.value;case nt:return"";case ot:return e.return=e.value+"{"+st(e.children,l)+"}";case rt:e.value=e.props.join(",")}return De(a=st(e.children,l))?e.return=e.value+"{"+a+"}":""}function ut(e,t){switch(function(e,t){return(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3)}(e,t)){case 5103:return lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+at+e+tt+e+e;case 6828:case 4268:return lt+e+tt+e+e;case 6165:return lt+e+tt+"flex-"+e+e;case 5187:return lt+e+xe(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return lt+e+tt+"flex-item-"+xe(e,/flex-|-self/,"")+e;case 4675:return lt+e+tt+"flex-line-pack"+xe(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+tt+xe(e,"shrink","negative")+e;case 5292:return lt+e+tt+xe(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+xe(e,"-grow","")+lt+e+tt+xe(e,"grow","positive")+e;case 4554:return lt+xe(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return xe(xe(xe(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return xe(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return xe(xe(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return xe(e,/(.+)-inline(.+)/,lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(De(e)-1-t>6)switch(Be(e,t+1)){case 109:if(45!==Be(e,t+4))break;case 102:return xe(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+at+(108==Be(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch")?ut(xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Be(e,t+1))break;case 6444:switch(Be(e,De(e)-3-(~Se(e,"!important")&&10))){case 107:return xe(e,":",":"+lt)+e;case 101:return xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(45===Be(e,14)?"inline-":"")+"box$3$1"+lt+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return lt+e+tt+xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+tt+xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+tt+xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+tt+e+e}return e}function gt(e){return Ze(dt("",null,null,null,[""],e=$e(e),0,[0],e))}function dt(e,t,a,l,n,r,i,o,s){for(var c=0,u=0,g=i,d=0,b=0,p=0,m=1,f=1,h=1,k=0,v="",y=n,w=r,_=l,C=v;f;)switch(p=k,k=Ue()){case 40:if(108!=p&&58==C.charCodeAt(g-1)){-1!=Se(C+=xe(Ke(k),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:C+=Ke(k);break;case 9:case 10:case 13:case 32:C+=Qe(p);break;case 92:C+=Ye(je()-1,7);continue;case 47:switch(Ge()){case 42:case 47:ze(pt(Xe(Ue(),je()),t,a),s);break;default:C+="/"}break;case 123*m:o[c++]=De(C)*h;case 125*m:case 59:case 0:switch(k){case 0:case 125:f=0;case 59+u:b>0&&De(C)-g&&ze(b>32?mt(C+";",l,a,g-1):mt(xe(C," ","")+";",l,a,g-2),s);break;case 59:C+=";";default:if(ze(_=bt(C,t,a,c,u,n,o,v,y=[],w=[],g),r),123===k)if(0===u)dt(C,t,_,_,y,r,g,o,w);else switch(d){case 100:case 109:case 115:dt(e,_,_,l&&ze(bt(e,_,_,0,0,n,o,v,n,y=[],g),w),n,w,g,o,l?y:w);break;default:dt(C,_,_,_,[""],w,0,o,w)}}c=u=b=0,m=h=1,v=C="",g=i;break;case 58:g=1+De(C),b=p;default:if(m<1)if(123==k)--m;else if(125==k&&0==m++&&125==Ve())continue;switch(C+=Ce(k),k*m){case 38:h=u>0?1:(C+="\f",-1);break;case 44:o[c++]=(De(C)-1)*h,h=1;break;case 64:45===Ge()&&(C+=Ke(Ue())),d=Ge(),u=g=De(v=C+=et(je())),k++;break;case 45:45===p&&2==De(C)&&(m=0)}}return r}function bt(e,t,a,l,n,r,i,o,s,c,u){for(var g=n-1,d=0===n?r:[""],b=Re(d),p=0,m=0,f=0;p<l;++p)for(var h=0,k=Me(e,g+1,g=_e(m=i[p])),v=e;h<b;++h)(v=Ee(m>0?d[h]+" "+k:xe(k,/&\f/g,d[h])))&&(s[f++]=v);return Fe(e,t,a,0===n?rt:o,s,c,u)}function pt(e,t,a){return Fe(e,t,a,nt,Ce(Ae),Me(e,2,-2),0)}function mt(e,t,a,l){return Fe(e,t,a,it,Me(e,0,l),Me(e,l+1,-1),l)}var ft=function(e,t,a){for(var l=0,n=0;l=n,n=Ge(),38===l&&12===n&&(t[a]=1),!We(n);)Ue();return qe(e,Ne)},ht=new WeakMap,kt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,l=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ht.get(a))&&!l){ht.set(e,!0);for(var n=[],r=function(e,t){return Ze(function(e,t){var a=-1,l=44;do{switch(We(l)){case 0:38===l&&12===Ge()&&(t[a]=1),e[a]+=ft(Ne-1,t,a);break;case 2:e[a]+=Ke(l);break;case 4:if(44===l){e[++a]=58===Ge()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=Ce(l)}}while(l=Ue());return e}($e(e),t))}(t,n),i=a.props,o=0,s=0;o<r.length;o++)for(var c=0;c<i.length;c++,s++)e.props[s]=n[o]?r[o].replace(/&\f/g,i[c]):i[c]+" "+r[o]}}},vt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},yt=[function(e,t,a,l){if(e.length>-1&&!e.return)switch(e.type){case it:e.return=ut(e.value,e.length);break;case ot:return st([He(e,{value:xe(e.value,"@","@"+lt)})],l);case rt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return st([He(e,{props:[xe(t,/:(read-\w+)/,":-moz-$1")]})],l);case"::placeholder":return st([He(e,{props:[xe(t,/:(plac\w+)/,":-webkit-input-$1")]}),He(e,{props:[xe(t,/:(plac\w+)/,":-moz-$1")]}),He(e,{props:[xe(t,/:(plac\w+)/,tt+"input-$1")]})],l)}return""}))}}],wt=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var l,n,r=e.stylisPlugins||yt,i={},o=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)i[t[a]]=!0;o.push(e)}));var s,c,u,g,d=[ct,(g=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&g(e)})],b=(c=[kt,vt].concat(r,d),u=Re(c),function(e,t,a,l){for(var n="",r=0;r<u;r++)n+=c[r](e,t,a,l)||"";return n});n=function(e,t,a,l){s=a,st(gt(e?e+"{"+t.styles+"}":t.styles),b),l&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new we({key:t,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:n};return p.sheet.hydrate(o),p};function _t(e,t,a){var l="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):l+=a+" "})),l}var Ct=function(e,t,a){var l=e.key+"-"+t.name;!1===a&&void 0===e.registered[l]&&(e.registered[l]=t.styles)},Tt=function(e,t,a){Ct(e,t,a);var l=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var n=t;do{e.insert(t===n?"."+l:"",n,e.sheet,!0),n=n.next}while(void 0!==n)}},Et=function(e){for(var t,a=0,l=0,n=e.length;n>=4;++l,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(n){case 3:a^=(255&e.charCodeAt(l+2))<<16;case 2:a^=(255&e.charCodeAt(l+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(l)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)},xt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},St=/[A-Z]|^ms/g,Bt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mt=function(e){return 45===e.charCodeAt(1)},Dt=function(e){return null!=e&&"boolean"!=typeof e},Rt=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=Mt(a=e)?a:a.replace(St,"-$&").toLowerCase()),t[e];var a}}(),zt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Bt,(function(e,t,a){return Ot={name:t,styles:a,next:Ot},t}))}return 1===xt[e]||Mt(e)||"number"!=typeof t||0===t?t:t+"px"};function Lt(e,t,a){if(null==a)return"";if(void 0!==a.__emotion_styles)return a;switch(typeof a){case"boolean":return"";case"object":if(1===a.anim)return Ot={name:a.name,styles:a.styles,next:Ot},a.name;if(void 0!==a.styles){var l=a.next;if(void 0!==l)for(;void 0!==l;)Ot={name:l.name,styles:l.styles,next:Ot},l=l.next;return a.styles+";"}return function(e,t,a){var l="";if(Array.isArray(a))for(var n=0;n<a.length;n++)l+=Lt(e,t,a[n])+";";else for(var r in a){var i=a[r];if("object"!=typeof i)null!=t&&void 0!==t[i]?l+=r+"{"+t[i]+"}":Dt(i)&&(l+=Rt(r)+":"+zt(r,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var o=Lt(e,t,i);switch(r){case"animation":case"animationName":l+=Rt(r)+":"+o+";";break;default:l+=r+"{"+o+"}"}}else for(var s=0;s<i.length;s++)Dt(i[s])&&(l+=Rt(r)+":"+zt(r,i[s])+";")}return l}(e,t,a);case"function":if(void 0!==e){var n=Ot,r=a(e);return Ot=n,Lt(e,t,r)}}if(null==t)return a;var i=t[a];return void 0!==i?i:a}var Ot,It=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Nt=function(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var l=!0,n="";Ot=void 0;var r=e[0];null==r||void 0===r.raw?(l=!1,n+=Lt(a,t,r)):n+=r[0];for(var i=1;i<e.length;i++)n+=Lt(a,t,e[i]),l&&(n+=r[i]);It.lastIndex=0;for(var o,s="";null!==(o=It.exec(n));)s+="-"+o[1];return{name:Et(n)+s,styles:n,next:Ot}},At={}.hasOwnProperty,Pt=(0,v.createContext)("undefined"!=typeof HTMLElement?wt({key:"css"}):null),Ft=(Pt.Provider,function(e){return(0,v.forwardRef)((function(t,a){var l=(0,v.useContext)(Pt);return e(t,l,a)}))}),Ht=(0,v.createContext)({}),Vt=v.useInsertionEffect?v.useInsertionEffect:function(e){e()};function Ut(e){Vt(e)}var Gt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",jt=function(e,t){var a={};for(var l in t)At.call(t,l)&&(a[l]=t[l]);return a[Gt]=e,a},qt=function(e){var t=e.cache,a=e.serialized,l=e.isStringTag;return Ct(t,a,l),Ut((function(){return Tt(t,a,l)})),null},Wt=Ft((function(e,t,a){var l=e.css;"string"==typeof l&&void 0!==t.registered[l]&&(l=t.registered[l]);var n=e[Gt],r=[l],i="";"string"==typeof e.className?i=_t(t.registered,r,e.className):null!=e.className&&(i=e.className+" ");var o=Nt(r,void 0,(0,v.useContext)(Ht));i+=t.key+"-"+o.name;var s={};for(var c in e)At.call(e,c)&&"css"!==c&&c!==Gt&&(s[c]=e[c]);return s.ref=a,s.className=i,(0,v.createElement)(v.Fragment,null,(0,v.createElement)(qt,{cache:t,serialized:o,isStringTag:"string"==typeof n}),(0,v.createElement)(n,s))}));a(679);var $t=function(e,t){var a=arguments;if(null==t||!At.call(t,"css"))return v.createElement.apply(void 0,a);var l=a.length,n=new Array(l);n[0]=Wt,n[1]=jt(e,t);for(var r=2;r<l;r++)n[r]=a[r];return v.createElement.apply(null,n)};function Zt(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Nt(t)}v.useInsertionEffect?v.useInsertionEffect:v.useLayoutEffect;var Kt=function e(t){for(var a=t.length,l=0,n="";l<a;l++){var r=t[l];if(null!=r){var i=void 0;switch(typeof r){case"boolean":break;case"object":if(Array.isArray(r))i=e(r);else for(var o in i="",r)r[o]&&o&&(i&&(i+=" "),i+=o);break;default:i=r}i&&(n&&(n+=" "),n+=i)}}return n};function Qt(e,t,a){var l=[],n=_t(e,l,a);return l.length<2?a:n+t(l)}var Yt=function(e){var t=e.cache,a=e.serializedArr;return Ut((function(){for(var e=0;e<a.length;e++)Tt(t,a[e],!1)})),null},Jt=Ft((function(e,t){var a=[],l=function(){for(var e=arguments.length,l=new Array(e),n=0;n<e;n++)l[n]=arguments[n];var r=Nt(l,t.registered);return a.push(r),Ct(t,r,!1),t.key+"-"+r.name},n={css:l,cx:function(){for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return Qt(t.registered,l,Kt(a))},theme:(0,v.useContext)(Ht)},r=e.children(n);return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(Yt,{cache:t,serializedArr:a}),r)}));function Xt(e,t){if(null==e)return{};var a,l,n=function(e,t){if(null==e)return{};var a,l,n={},r=Object.keys(e);for(l=0;l<r.length;l++)a=r[l],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l<r.length;l++)a=r[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}function ta(e,t){if(e){if("string"==typeof e)return ea(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ea(e,t):void 0}}function aa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,n,r=[],_n=!0,i=!1;try{for(a=a.call(e);!(_n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);_n=!0);}catch(e){i=!0,n=e}finally{try{_n||null==a.return||a.return()}finally{if(i)throw n}}return r}}(e,t)||ta(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function la(e){return la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},la(e)}function na(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ra(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function ia(e,t,a){return t&&ra(e.prototype,t),a&&ra(e,a),e}function oa(e,t){return oa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oa(e,t)}function sa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oa(e,t)}function ca(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ua(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ga(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function da(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(a),!0).forEach((function(t){ua(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ga(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ba(e)}function pa(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=ba(e);if(t){var n=ba(this).constructor;a=Reflect.construct(l,arguments,n)}else a=l.apply(this,arguments);return pa(this,a)}}var fa=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ha=function(){};function ka(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function va(e,t,a){var l=[a];if(t&&e)for(var n in t)t.hasOwnProperty(n)&&t[n]&&l.push("".concat(ka(e,n)));return l.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ya=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===la(e)&&null!==e?[e]:[];var t},wa=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,da({},Xt(e,fa))};function _a(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Ca(e){return _a(e)?window.pageYOffset:e.scrollTop}function Ta(e,t){_a(e)?window.scrollTo(0,t):e.scrollTop=t}function Ea(e,t,a,l){return a*((e=e/l-1)*e*e+1)+t}function xa(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ha,n=Ca(e),r=t-n,i=10,o=0;function s(){var t=Ea(o+=i,n,r,a);Ta(e,t),o<a?window.requestAnimationFrame(s):l(e)}s()}function Sa(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ba=!1,Ma={get passive(){return Ba=!0}},Da="undefined"!=typeof window?window:{};Da.addEventListener&&Da.removeEventListener&&(Da.addEventListener("p",ha,Ma),Da.removeEventListener("p",ha,!1));var Ra=Ba;function za(e){return null!=e}function La(e,t,a){return e?t:a}function Oa(e){var t=e.maxHeight,a=e.menuEl,l=e.minHeight,n=e.placement,r=e.shouldScroll,i=e.isFixedPosition,o=e.theme.spacing,s=function(e){var t=getComputedStyle(e),a="absolute"===t.position,l=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),(!a||"static"!==t.position)&&l.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=s.getBoundingClientRect().height,g=a.getBoundingClientRect(),d=g.bottom,b=g.height,p=g.top,m=a.offsetParent.getBoundingClientRect().top,f=window.innerHeight,h=Ca(s),k=parseInt(getComputedStyle(a).marginBottom,10),v=parseInt(getComputedStyle(a).marginTop,10),y=m-v,w=f-p,_=y+h,C=u-h-p,T=d-f+h+k,E=h+p-v,x=160;switch(n){case"auto":case"bottom":if(w>=b)return{placement:"bottom",maxHeight:t};if(C>=b&&!i)return r&&xa(s,T,x),{placement:"bottom",maxHeight:t};if(!i&&C>=l||i&&w>=l)return r&&xa(s,T,x),{placement:"bottom",maxHeight:i?w-k:C-k};if("auto"===n||i){var S=t,B=i?y:_;return B>=l&&(S=Math.min(B-k-o.controlHeight,t)),{placement:"top",maxHeight:S}}if("bottom"===n)return r&&Ta(s,T),{placement:"bottom",maxHeight:t};break;case"top":if(y>=b)return{placement:"top",maxHeight:t};if(_>=b&&!i)return r&&xa(s,E,x),{placement:"top",maxHeight:t};if(!i&&_>=l||i&&y>=l){var M=t;return(!i&&_>=l||i&&y>=l)&&(M=i?y-v:_-v),r&&xa(s,E,x),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}var Ia=function(e){return"auto"===e?"bottom":e},Na=(0,v.createContext)({getPortalPlacement:null}),Aa=function(e){sa(a,e);var t=ma(a);function a(){var e;na(this,a);for(var l=arguments.length,n=new Array(l),r=0;r<l;r++)n[r]=arguments[r];return(e=t.call.apply(t,[this].concat(n))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var a=e.props,l=a.minMenuHeight,n=a.maxMenuHeight,r=a.menuPlacement,i=a.menuPosition,o=a.menuShouldScrollIntoView,s=a.theme;if(t){var c="fixed"===i,u=Oa({maxHeight:n,menuEl:t,minHeight:l,placement:r,shouldScroll:o&&!c,isFixedPosition:c,theme:s}),g=e.context.getPortalPlacement;g&&g(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,a=e.state.placement||Ia(t);return da(da({},e.props),{},{placement:a,maxHeight:e.state.maxHeight})},e}return ia(a,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),a}(v.Component);Aa.contextType=Na;var Pa=function(e){var t=e.theme,a=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px"),textAlign:"center"}},Fa=Pa,Ha=Pa,Va=function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return $t("div",t({css:r("noOptionsMessage",e),className:n({"menu-notice":!0,"menu-notice--no-options":!0},l)},i),a)};Va.defaultProps={children:"No options"};var Ua=function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return $t("div",t({css:r("loadingMessage",e),className:n({"menu-notice":!0,"menu-notice--loading":!0},l)},i),a)};Ua.defaultProps={children:"Loading..."};var Ga,ja,qa,Wa=function(e){sa(l,e);var a=ma(l);function l(){var e;na(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.call.apply(a,[this].concat(n))).state={placement:null},e.getPortalPlacement=function(t){var a=t.placement;a!==Ia(e.props.menuPlacement)&&e.setState({placement:a})},e}return ia(l,[{key:"render",value:function(){var e=this.props,a=e.appendTo,l=e.children,n=e.className,r=e.controlElement,i=e.cx,o=e.innerProps,s=e.menuPlacement,c=e.menuPosition,u=e.getStyles,g="fixed"===c;if(!a&&!g||!r)return null;var d=this.state.placement||Ia(s),b=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),p=g?0:window.pageYOffset,m=b[d]+p,f=$t("div",t({css:u("menuPortal",{offset:m,position:c,rect:b}),className:i({"menu-portal":!0},n)},o),l);return $t(Na.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},a?(0,k.createPortal)(f,a):f)}}]),l}(v.Component),$a=["size"],Za={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ka=function(e){var a=e.size,l=Xt(e,$a);return $t("svg",t({height:a,width:a,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Za},l))},Qa=function(e){return $t(Ka,t({size:20},e),$t("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ya=function(e){return $t(Ka,t({size:20},e),$t("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ja=function(e){var t=e.isFocused,a=e.theme,l=a.spacing.baseUnit,n=a.colors;return{label:"indicatorContainer",color:t?n.neutral60:n.neutral20,display:"flex",padding:2*l,transition:"color 150ms",":hover":{color:t?n.neutral80:n.neutral40}}},Xa=Ja,el=Ja,tl=function(){var e=Zt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ga||(ja=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],qa||(qa=ja.slice(0)),Ga=Object.freeze(Object.defineProperties(ja,{raw:{value:Object.freeze(qa)}})))),al=function(e){var t=e.delay,a=e.offset;return $t("span",{css:Zt({animation:"".concat(tl," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},ll=function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.innerProps,i=e.isRtl;return $t("div",t({css:n("loadingIndicator",e),className:l({indicator:!0,"loading-indicator":!0},a)},r),$t(al,{delay:0,offset:i}),$t(al,{delay:160,offset:!0}),$t(al,{delay:320,offset:!i}))};ll.defaultProps={size:4};var nl=["data"],rl=["innerRef","isDisabled","isHidden","inputClassName"],il={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ol={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":da({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},il)},sl=function(e){return da({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},il)},cl=function(e){var t=e.children,a=e.innerProps;return $t("div",a,t)},ul={ClearIndicator:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return $t("div",t({css:r("clearIndicator",e),className:n({indicator:!0,"clear-indicator":!0},l)},i),a||$t(Qa,null))},Control:function(e){var a=e.children,l=e.cx,n=e.getStyles,r=e.className,i=e.isDisabled,o=e.isFocused,s=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return $t("div",t({ref:s,css:n("control",e),className:l({control:!0,"control--is-disabled":i,"control--is-focused":o,"control--menu-is-open":u},r)},c),a)},DropdownIndicator:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return $t("div",t({css:r("dropdownIndicator",e),className:n({indicator:!0,"dropdown-indicator":!0},l)},i),a||$t(Ya,null))},DownChevron:Ya,CrossIcon:Qa,Group:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,g=e.selectProps;return $t("div",t({css:r("group",e),className:n({group:!0},l)},s),$t(i,t({},o,{selectProps:g,theme:u,getStyles:r,cx:n}),c),$t("div",null,a))},GroupHeading:function(e){var a=e.getStyles,l=e.cx,n=e.className,r=wa(e);r.data;var i=Xt(r,nl);return $t("div",t({css:a("groupHeading",e),className:l({"group-heading":!0},n)},i))},IndicatorsContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.innerProps,i=e.getStyles;return $t("div",t({css:i("indicatorsContainer",e),className:n({indicators:!0},l)},r),a)},IndicatorSeparator:function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.innerProps;return $t("span",t({},r,{css:n("indicatorSeparator",e),className:l({"indicator-separator":!0},a)}))},Input:function(e){var a=e.className,l=e.cx,n=e.getStyles,r=e.value,i=wa(e),o=i.innerRef,s=i.isDisabled,c=i.isHidden,u=i.inputClassName,g=Xt(i,rl);return $t("div",{className:l({"input-container":!0},a),css:n("input",e),"data-value":r||""},$t("input",t({className:l({input:!0},u),ref:o,style:sl(c),disabled:s},g)))},LoadingIndicator:ll,Menu:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerRef,o=e.innerProps;return $t("div",t({css:r("menu",e),className:n({menu:!0},l),ref:i},o),a)},MenuList:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.innerRef,s=e.isMulti;return $t("div",t({css:r("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":s},l),ref:o},i),a)},MenuPortal:Wa,LoadingMessage:Ua,NoOptionsMessage:Va,MultiValue:function(e){var t=e.children,a=e.className,l=e.components,n=e.cx,r=e.data,i=e.getStyles,o=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,g=l.Container,d=l.Label,b=l.Remove;return $t(Jt,null,(function(l){var p=l.css,m=l.cx;return $t(g,{data:r,innerProps:da({className:m(p(i("multiValue",e)),n({"multi-value":!0,"multi-value--is-disabled":s},a))},o),selectProps:u},$t(d,{data:r,innerProps:{className:m(p(i("multiValueLabel",e)),n({"multi-value__label":!0},a))},selectProps:u},t),$t(b,{data:r,innerProps:da({className:m(p(i("multiValueRemove",e)),n({"multi-value__remove":!0},a)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:cl,MultiValueLabel:cl,MultiValueRemove:function(e){var a=e.children,l=e.innerProps;return $t("div",t({role:"button"},l),a||$t(Qa,{size:14}))},Option:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.isDisabled,o=e.isFocused,s=e.isSelected,c=e.innerRef,u=e.innerProps;return $t("div",t({css:r("option",e),className:n({option:!0,"option--is-disabled":i,"option--is-focused":o,"option--is-selected":s},l),ref:c,"aria-disabled":i},u),a)},Placeholder:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps;return $t("div",t({css:r("placeholder",e),className:n({placeholder:!0},l)},i),a)},SelectContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.innerProps,o=e.isDisabled,s=e.isRtl;return $t("div",t({css:r("container",e),className:n({"--is-disabled":o,"--is-rtl":s},l)},i),a)},SingleValue:function(e){var a=e.children,l=e.className,n=e.cx,r=e.getStyles,i=e.isDisabled,o=e.innerProps;return $t("div",t({css:r("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":i},l)},o),a)},ValueContainer:function(e){var a=e.children,l=e.className,n=e.cx,r=e.innerProps,i=e.isMulti,o=e.getStyles,s=e.hasValue;return $t("div",t({css:o("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},l)},r),a)}},gl=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function dl(e){var t=e.defaultInputValue,a=void 0===t?"":t,l=e.defaultMenuIsOpen,n=void 0!==l&&l,r=e.defaultValue,i=void 0===r?null:r,o=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,g=e.onMenuClose,d=e.onMenuOpen,b=e.value,p=Xt(e,gl),m=aa((0,v.useState)(void 0!==o?o:a),2),f=m[0],h=m[1],k=aa((0,v.useState)(void 0!==s?s:n),2),y=k[0],w=k[1],_=aa((0,v.useState)(void 0!==b?b:i),2),C=_[0],T=_[1],E=(0,v.useCallback)((function(e,t){"function"==typeof c&&c(e,t),T(e)}),[c]),x=(0,v.useCallback)((function(e,t){var a;"function"==typeof u&&(a=u(e,t)),h(void 0!==a?a:e)}),[u]),S=(0,v.useCallback)((function(){"function"==typeof d&&d(),w(!0)}),[d]),B=(0,v.useCallback)((function(){"function"==typeof g&&g(),w(!1)}),[g]),M=void 0!==o?o:f,D=void 0!==s?s:y,R=void 0!==b?b:C;return da(da({},p),{},{inputValue:M,menuIsOpen:D,onChange:E,onInputChange:x,onMenuClose:B,onMenuOpen:S,value:R})}function bl(e){return function(e){if(Array.isArray(e))return ea(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ta(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ml(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((l=e[a])===(n=t[a])||pl(l)&&pl(n)))return!1;var l,n;return!0}for(var fl={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},hl=function(e){return $t("span",t({css:fl},e))},kl={guidance:function(e){var t=e.isSearchable,a=e.isMulti,l=e.isDisabled,n=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(l?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,l=void 0===a?"":a,n=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(n.length>1?"s":""," ").concat(n.join(","),", selected.");case"select-option":return"option ".concat(l,r?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,l=e.options,n=e.label,r=void 0===n?"":n,i=e.selectValue,o=e.isDisabled,s=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(r," focused, ").concat(c(i,a),".");if("menu"===t){var u=o?" disabled":"",g="".concat(s?"selected":"focused").concat(u);return"option ".concat(r," ").concat(g,", ").concat(c(l,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},vl=function(e){var t=e.ariaSelection,a=e.focusedOption,l=e.focusedValue,n=e.focusableOptions,r=e.isFocused,i=e.selectValue,o=e.selectProps,s=e.id,c=o.ariaLiveMessages,u=o.getOptionLabel,g=o.inputValue,d=o.isMulti,b=o.isOptionDisabled,p=o.isSearchable,m=o.menuIsOpen,f=o.options,h=o.screenReaderStatus,k=o.tabSelectsValue,y=o["aria-label"],w=o["aria-live"],_=(0,v.useMemo)((function(){return da(da({},kl),c||{})}),[c]),C=(0,v.useMemo)((function(){var e,a="";if(t&&_.onChange){var l=t.option,n=t.options,r=t.removedValue,o=t.removedValues,s=t.value,c=r||l||(e=s,Array.isArray(e)?null:e),g=c?u(c):"",d=n||o||void 0,p=d?d.map(u):[],m=da({isDisabled:c&&b(c,i),label:g,labels:p},t);a=_.onChange(m)}return a}),[t,_,b,i,u]),T=(0,v.useMemo)((function(){var e="",t=a||l,n=!!(a&&i&&i.includes(a));if(t&&_.onFocus){var r={focused:t,label:u(t),isDisabled:b(t,i),isSelected:n,options:f,context:t===a?"menu":"value",selectValue:i};e=_.onFocus(r)}return e}),[a,l,u,b,_,f,i]),E=(0,v.useMemo)((function(){var e="";if(m&&f.length&&_.onFilter){var t=h({count:n.length});e=_.onFilter({inputValue:g,resultsMessage:t})}return e}),[n,g,m,_,f,h]),x=(0,v.useMemo)((function(){var e="";if(_.guidance){var t=l?"value":m?"menu":"input";e=_.guidance({"aria-label":y,context:t,isDisabled:a&&b(a,i),isMulti:d,isSearchable:p,tabSelectsValue:k})}return e}),[y,a,l,d,b,p,m,_,i,k]),S="".concat(T," ").concat(E," ").concat(x),B=$t(v.Fragment,null,$t("span",{id:"aria-selection"},C),$t("span",{id:"aria-context"},S)),M="initial-input-focus"===(null==t?void 0:t.action);return $t(v.Fragment,null,$t(hl,{id:s},M&&B),$t(hl,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},r&&!M&&B))},yl=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],wl=new RegExp("["+yl.map((function(e){return e.letters})).join("")+"]","g"),_l={},Cl=0;Cl<yl.length;Cl++)for(var Tl=yl[Cl],El=0;El<Tl.letters.length;El++)_l[Tl.letters[El]]=Tl.base;var xl=function(e){return e.replace(wl,(function(e){return _l[e]}))},Sl=function(e,t){var a;void 0===t&&(t=ml);var l,n=[],r=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return r&&a===this&&t(i,n)||(l=e.apply(this,i),r=!0,a=this,n=i),l}}(xl),Bl=function(e){return e.replace(/^\s+|\s+$/g,"")},Ml=function(e){return"".concat(e.label," ").concat(e.value)},Dl=["innerRef"];function Rl(e){var a=e.innerRef,l=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l];var n=Object.entries(e).filter((function(e){var t=aa(e,1)[0];return!a.includes(t)}));return n.reduce((function(e,t){var a=aa(t,2),l=a[0],n=a[1];return e[l]=n,e}),{})}(Xt(e,Dl),"onExited","in","enter","exit","appear");return $t("input",t({ref:a},l,{css:Zt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var zl=["boxSizing","height","overflow","paddingRight","position"],Ll={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ol(e){e.preventDefault()}function Il(e){e.stopPropagation()}function Nl(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Al(){return"ontouchstart"in window||navigator.maxTouchPoints}var Pl=!("undefined"==typeof window||!window.document||!window.document.createElement),Fl=0,Hl={capture:!1,passive:!1},Vl=function(){return document.activeElement&&document.activeElement.blur()},Ul={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Gl(e){var t=e.children,a=e.lockEnabled,l=e.captureEnabled,n=function(e){var t=e.isEnabled,a=e.onBottomArrive,l=e.onBottomLeave,n=e.onTopArrive,r=e.onTopLeave,i=(0,v.useRef)(!1),o=(0,v.useRef)(!1),s=(0,v.useRef)(0),c=(0,v.useRef)(null),u=(0,v.useCallback)((function(e,t){if(null!==c.current){var s=c.current,u=s.scrollTop,g=s.scrollHeight,d=s.clientHeight,b=c.current,p=t>0,m=g-d-u,f=!1;m>t&&i.current&&(l&&l(e),i.current=!1),p&&o.current&&(r&&r(e),o.current=!1),p&&t>m?(a&&!i.current&&a(e),b.scrollTop=g,f=!0,i.current=!0):!p&&-t>u&&(n&&!o.current&&n(e),b.scrollTop=0,f=!0,o.current=!0),f&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[a,l,n,r]),g=(0,v.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,v.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),b=(0,v.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),p=(0,v.useCallback)((function(e){if(e){var t=!!Ra&&{passive:!1};e.addEventListener("wheel",g,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",b,t)}}),[b,d,g]),m=(0,v.useCallback)((function(e){e&&(e.removeEventListener("wheel",g,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",b,!1))}),[b,d,g]);return(0,v.useEffect)((function(){if(t){var e=c.current;return p(e),function(){m(e)}}}),[t,p,m]),function(e){c.current=e}}({isEnabled:void 0===l||l,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),r=function(e){var t=e.isEnabled,a=e.accountForScrollbars,l=void 0===a||a,n=(0,v.useRef)({}),r=(0,v.useRef)(null),i=(0,v.useCallback)((function(e){if(Pl){var t=document.body,a=t&&t.style;if(l&&zl.forEach((function(e){var t=a&&a[e];n.current[e]=t})),l&&Fl<1){var r=parseInt(n.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;Object.keys(Ll).forEach((function(e){var t=Ll[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(o,"px"))}t&&Al()&&(t.addEventListener("touchmove",Ol,Hl),e&&(e.addEventListener("touchstart",Nl,Hl),e.addEventListener("touchmove",Il,Hl))),Fl+=1}}),[l]),o=(0,v.useCallback)((function(e){if(Pl){var t=document.body,a=t&&t.style;Fl=Math.max(Fl-1,0),l&&Fl<1&&zl.forEach((function(e){var t=n.current[e];a&&(a[e]=t)})),t&&Al()&&(t.removeEventListener("touchmove",Ol,Hl),e&&(e.removeEventListener("touchstart",Nl,Hl),e.removeEventListener("touchmove",Il,Hl)))}}),[l]);return(0,v.useEffect)((function(){if(t){var e=r.current;return i(e),function(){o(e)}}}),[t,i,o]),function(e){r.current=e}}({isEnabled:a});return $t(v.Fragment,null,a&&$t("div",{onClick:Vl,css:Ul}),t((function(e){n(e),r(e)})))}var jl=function(e){return e.label},ql=function(e){return e.value},Wl={clearIndicator:el,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,a=e.isFocused,l=e.theme,n=l.colors,r=l.borderRadius,i=l.spacing;return{label:"control",alignItems:"center",backgroundColor:t?n.neutral5:n.neutral0,borderColor:t?n.neutral10:a?n.primary:n.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(n.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:a?n.primary:n.neutral30}}},dropdownIndicator:Xa,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,a=e.theme,l=a.spacing.baseUnit,n=a.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?n.neutral10:n.neutral20,marginBottom:2*l,marginTop:2*l,width:1}},input:function(e){var t=e.isDisabled,a=e.value,l=e.theme,n=l.spacing,r=l.colors;return da({margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,visibility:t?"hidden":"visible",color:r.neutral80,transform:a?"translateZ(0)":""},ol)},loadingIndicator:function(e){var t=e.isFocused,a=e.size,l=e.theme,n=l.colors,r=l.spacing.baseUnit;return{label:"loadingIndicator",color:t?n.neutral60:n.neutral20,display:"flex",padding:2*r,transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Ha,menu:function(e){var t,a=e.placement,l=e.theme,n=l.borderRadius,r=l.spacing,i=l.colors;return ca(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),ca(t,"backgroundColor",i.neutral0),ca(t,"borderRadius",n),ca(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),ca(t,"marginBottom",r.menuGutter),ca(t,"marginTop",r.menuGutter),ca(t,"position","absolute"),ca(t,"width","100%"),ca(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,a=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:a,paddingTop:a,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,a=e.offset,l=e.position;return{left:t.left,position:l,top:a,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,a=t.spacing,l=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:l/2,display:"flex",margin:a.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,a=t.borderRadius,l=t.colors,n=e.cropWithEllipsis;return{borderRadius:a/2,color:l.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:n||void 0===n?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,a=t.spacing,l=t.borderRadius,n=t.colors;return{alignItems:"center",borderRadius:l/2,backgroundColor:e.isFocused?n.dangerLight:void 0,display:"flex",paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:n.dangerLight,color:n.danger}}},noOptionsMessage:Fa,option:function(e){var t=e.isDisabled,a=e.isFocused,l=e.isSelected,n=e.theme,r=n.spacing,i=n.colors;return{label:"option",backgroundColor:l?i.primary:a?i.primary25:"transparent",color:t?i.neutral20:l?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:l?i.primary:i.primary50}}},placeholder:function(e){var t=e.theme,a=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,a=e.theme,l=a.spacing,n=a.colors;return{label:"singleValue",color:t?n.neutral40:n.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,a=e.isMulti,l=e.hasValue,n=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:a&&l&&n?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},$l={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Zl={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Sa(),captureMenuScroll:!Sa(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=da({ignoreCase:!0,ignoreAccents:!0,stringify:Ml,trim:!0,matchFrom:"any"},undefined),l=a.ignoreCase,n=a.ignoreAccents,r=a.stringify,i=a.trim,o=a.matchFrom,s=i?Bl(t):t,c=i?Bl(r(e)):r(e);return l&&(s=s.toLowerCase(),c=c.toLowerCase()),n&&(s=Sl(s),c=xl(c)),"start"===o?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:jl,getOptionValue:ql,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Kl(e,t,a,l){return{type:"option",data:t,isDisabled:tn(e,t,a),isSelected:an(e,t,a),label:Xl(e,t),value:en(e,t),index:l}}function Ql(e,t){return e.options.map((function(a,l){if("options"in a){var n=a.options.map((function(a,l){return Kl(e,a,t,l)})).filter((function(t){return Jl(e,t)}));return n.length>0?{type:"group",data:a,options:n,index:l}:void 0}var r=Kl(e,a,t,l);return Jl(e,r)?r:void 0})).filter(za)}function Yl(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,bl(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Jl(e,t){var a=e.inputValue,l=void 0===a?"":a,n=t.data,r=t.isSelected,i=t.label,o=t.value;return(!nn(e)||!r)&&ln(e,{label:i,value:o,data:n},l)}var Xl=function(e,t){return e.getOptionLabel(t)},en=function(e,t){return e.getOptionValue(t)};function tn(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function an(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var l=en(e,t);return a.some((function(t){return en(e,t)===l}))}function ln(e,t,a){return!e.filterOption||e.filterOption(t,a)}var nn=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},rn=1,on=function(e){sa(l,e);var a=ma(l);function l(e){var t;return na(this,l),(t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,a){var l=t.props,n=l.onChange,r=l.name;a.name=r,t.ariaOnChange(e,a),n(e,a)},t.setValue=function(e,a,l){var n=t.props,r=n.closeMenuOnSelect,i=n.isMulti,o=n.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:o}),r&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:a,option:l})},t.selectOption=function(e){var a=t.props,l=a.blurInputOnSelect,n=a.isMulti,r=a.name,i=t.state.selectValue,o=n&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(o){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:r});n?t.setValue([].concat(bl(i),[e]),"select-option",e):t.setValue(e,"select-option")}l&&t.blurInput()},t.removeValue=function(e){var a=t.props.isMulti,l=t.state.selectValue,n=t.getOptionValue(e),r=l.filter((function(e){return t.getOptionValue(e)!==n})),i=La(a,r,r[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(La(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,a=t.state.selectValue,l=a[a.length-1],n=a.slice(0,a.length-1),r=La(e,n,n[0]||null);t.onChange(r,{action:"pop-value",removedValue:l})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,a=new Array(e),l=0;l<e;l++)a[l]=arguments[l];return va.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return Xl(t.props,e)},t.getOptionValue=function(e){return en(t.props,e)},t.getStyles=function(e,a){var l=Wl[e](a);l.boxSizing="border-box";var n=t.props.styles[e];return n?n(l,a):l},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,da(da({},ul),e.components);var e},t.buildCategorizedOptions=function(){return Ql(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return Yl(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:da({value:e},a)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var a=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():a&&t.openMenu("first"):(a&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var a=t.props,l=a.isMulti,n=a.menuIsOpen;t.focusInput(),n?(t.setState({inputIsHiddenAfterUpdate:!l}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&_a(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var a=e.touches,l=a&&a.item(0);l&&(t.initialTouchX=l.clientX,t.initialTouchY=l.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var a=e.touches,l=a&&a.item(0);if(l){var n=Math.abs(l.clientX-t.initialTouchX),r=Math.abs(l.clientY-t.initialTouchY);t.userIsDragging=n>5||r>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var a=t.props.inputValue,l=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(l,{action:"input-change",prevInputValue:a}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var a=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:a}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return nn(t.props)},t.onKeyDown=function(e){var a=t.props,l=a.isMulti,n=a.backspaceRemovesValue,r=a.escapeClearsValue,i=a.inputValue,o=a.isClearable,s=a.isDisabled,c=a.menuIsOpen,u=a.onKeyDown,g=a.tabSelectsValue,d=a.openMenuOnFocus,b=t.state,p=b.focusedOption,m=b.focusedValue,f=b.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!l||i)return;t.focusValue("previous");break;case"ArrowRight":if(!l||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!n)return;l?t.popValue():o&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!g||!p||d&&t.isOptionSelected(p,f))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):o&&r&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++rn),t.state.selectValue=ya(e.value),t}return ia(l,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,a,l,n,r,i=this.props,o=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused;(c&&!o&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),c&&o&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,a=this.focusedOptionRef,l=t.getBoundingClientRect(),n=a.getBoundingClientRect(),r=a.offsetHeight/3,n.bottom+r>l.bottom?Ta(t,Math.min(a.offsetTop+a.clientHeight-t.offsetHeight+r,t.scrollHeight)):n.top-r<l.top&&Ta(t,Math.max(a.offsetTop-r,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,a=this.state,l=a.selectValue,n=a.isFocused,r=this.buildFocusableOptions(),i="first"===e?0:r.length-1;if(!this.props.isMulti){var o=r.indexOf(l[0]);o>-1&&(i=o)}this.scrollToFocusedOptionOnUpdate=!(n&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,l=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var n=a.indexOf(l);l||(n=-1);var r=a.length-1,i=-1;if(a.length){switch(e){case"previous":i=0===n?0:-1===n?r:n-1;break;case"next":n>-1&&n<r&&(i=n+1)}this.setState({inputIsHidden:-1!==i,focusedValue:a[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var n=0,r=l.indexOf(a);a||(r=-1),"up"===e?n=r>0?r-1:l.length-1:"down"===e?n=(r+1)%l.length:"pageup"===e?(n=r-t)<0&&(n=0):"pagedown"===e?(n=r+t)>l.length-1&&(n=l.length-1):"last"===e&&(n=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[n],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme($l):da(da({},$l),this.props.theme):$l}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,l=this.getValue,n=this.selectOption,r=this.setValue,i=this.props,o=i.isMulti,s=i.isRtl,c=i.options;return{clearValue:e,cx:t,getStyles:a,getValue:l,hasValue:this.hasValue(),isMulti:o,isRtl:s,options:c,selectOption:n,selectProps:i,setValue:r,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return tn(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return an(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ln(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:l})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,a=e.isDisabled,l=e.isSearchable,n=e.inputId,r=e.inputValue,i=e.tabIndex,o=e.form,s=e.menuIsOpen,c=this.getComponents().Input,u=this.state,g=u.inputIsHidden,d=u.ariaSelection,b=this.commonProps,p=n||this.getElementId("input"),m=da(da(da({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?v.createElement(c,t({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:a,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:o,type:"text",value:r},m)):v.createElement(Rl,t({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ha,onFocus:this.onInputFocus,disabled:a,tabIndex:i,inputMode:"none",form:o,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,a=this.getComponents(),l=a.MultiValue,n=a.MultiValueContainer,r=a.MultiValueLabel,i=a.MultiValueRemove,o=a.SingleValue,s=a.Placeholder,c=this.commonProps,u=this.props,g=u.controlShouldRenderValue,d=u.isDisabled,b=u.isMulti,p=u.inputValue,m=u.placeholder,f=this.state,h=f.selectValue,k=f.focusedValue,y=f.isFocused;if(!this.hasValue()||!g)return p?null:v.createElement(s,t({},c,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(b)return h.map((function(a,o){var s=a===k,u="".concat(e.getOptionLabel(a),"-").concat(e.getOptionValue(a));return v.createElement(l,t({},c,{components:{Container:n,Label:r,Remove:i},isFocused:s,isDisabled:d,key:u,index:o,removeProps:{onClick:function(){return e.removeValue(a)},onTouchEnd:function(){return e.removeValue(a)},onMouseDown:function(e){e.preventDefault()}},data:a}),e.formatOptionLabel(a,"value"))}));if(p)return null;var w=h[0];return v.createElement(o,t({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,a=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||r)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,t({},a,{innerProps:o,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,a=this.commonProps,l=this.props,n=l.isDisabled,r=l.isLoading,i=this.state.isFocused;return e&&r?v.createElement(e,t({},a,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),a=e.DropdownIndicator,l=e.IndicatorSeparator;if(!a||!l)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return v.createElement(l,t({},n,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var a=this.commonProps,l=this.props.isDisabled,n=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,t({},a,{innerProps:r,isDisabled:l,isFocused:n}))}},{key:"renderMenu",value:function(){var e=this,a=this.getComponents(),l=a.Group,n=a.GroupHeading,r=a.Menu,i=a.MenuList,o=a.MenuPortal,s=a.LoadingMessage,c=a.NoOptionsMessage,u=a.Option,g=this.commonProps,d=this.state.focusedOption,b=this.props,p=b.captureMenuScroll,m=b.inputValue,f=b.isLoading,h=b.loadingMessage,k=b.minMenuHeight,y=b.maxMenuHeight,w=b.menuIsOpen,_=b.menuPlacement,C=b.menuPosition,T=b.menuPortalTarget,E=b.menuShouldBlockScroll,x=b.menuShouldScrollIntoView,S=b.noOptionsMessage,B=b.onMenuScrollToTop,M=b.onMenuScrollToBottom;if(!w)return null;var D,R=function(a,l){var n=a.type,r=a.data,i=a.isDisabled,o=a.isSelected,s=a.label,c=a.value,b=d===r,p=i?void 0:function(){return e.onOptionHover(r)},m=i?void 0:function(){return e.selectOption(r)},f="".concat(e.getElementId("option"),"-").concat(l),h={id:f,onClick:m,onMouseMove:p,onMouseOver:p,tabIndex:-1};return v.createElement(u,t({},g,{innerProps:h,data:r,isDisabled:i,isSelected:o,key:f,label:s,type:n,value:c,isFocused:b,innerRef:b?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(a.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(a){if("group"===a.type){var r=a.data,i=a.options,o=a.index,s="".concat(e.getElementId("group"),"-").concat(o),c="".concat(s,"-heading");return v.createElement(l,t({},g,{key:s,data:r,options:i,Heading:n,headingProps:{id:c,data:a.data},label:e.formatGroupLabel(a.data)}),a.options.map((function(e){return R(e,"".concat(o,"-").concat(e.index))})))}if("option"===a.type)return R(a,"".concat(a.index))}));else if(f){var z=h({inputValue:m});if(null===z)return null;D=v.createElement(s,g,z)}else{var L=S({inputValue:m});if(null===L)return null;D=v.createElement(c,g,L)}var O={minMenuHeight:k,maxMenuHeight:y,menuPlacement:_,menuPosition:C,menuShouldScrollIntoView:x},I=v.createElement(Aa,t({},g,O),(function(a){var l=a.ref,n=a.placerProps,o=n.placement,s=n.maxHeight;return v.createElement(r,t({},g,O,{innerRef:l,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:f,placement:o}),v.createElement(Gl,{captureEnabled:p,onTopArrive:B,onBottomArrive:M,lockEnabled:E},(function(a){return v.createElement(i,t({},g,{innerRef:function(t){e.getMenuListRef(t),a(t)},isLoading:f,maxHeight:s,focusedOption:d}),D)})))}));return T||"fixed"===C?v.createElement(o,t({},g,{appendTo:T,controlElement:this.controlRef,menuPlacement:_,menuPosition:C}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,l=t.isDisabled,n=t.isMulti,r=t.name,i=this.state.selectValue;if(r&&!l){if(n){if(a){var o=i.map((function(t){return e.getOptionValue(t)})).join(a);return v.createElement("input",{name:r,type:"hidden",value:o})}var s=i.length>0?i.map((function(t,a){return v.createElement("input",{key:"i-".concat(a),name:r,type:"hidden",value:e.getOptionValue(t)})})):v.createElement("input",{name:r,type:"hidden"});return v.createElement("div",null,s)}var c=i[0]?this.getOptionValue(i[0]):"";return v.createElement("input",{name:r,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,a=this.state,l=a.ariaSelection,n=a.focusedOption,r=a.focusedValue,i=a.isFocused,o=a.selectValue,s=this.getFocusableOptions();return v.createElement(vl,t({},e,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:n,focusedValue:r,isFocused:i,selectValue:o,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),a=e.Control,l=e.IndicatorsContainer,n=e.SelectContainer,r=e.ValueContainer,i=this.props,o=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,g=this.state.isFocused,d=this.commonProps=this.getCommonProps();return v.createElement(n,t({},d,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:g}),this.renderLiveRegion(),v.createElement(a,t({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:g,menuIsOpen:u}),v.createElement(r,t({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(l,t({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,l=t.clearFocusValueOnUpdate,n=t.inputIsHiddenAfterUpdate,r=t.ariaSelection,i=t.isFocused,o=t.prevWasFocused,s=e.options,c=e.value,u=e.menuIsOpen,g=e.inputValue,d=e.isMulti,b=ya(c),p={};if(a&&(c!==a.value||s!==a.options||u!==a.menuIsOpen||g!==a.inputValue)){var m=u?function(e,t){return Yl(Ql(e,t))}(e,b):[],f=l?function(e,t){var a=e.focusedValue,l=e.selectValue.indexOf(a);if(l>-1){if(t.indexOf(a)>-1)return a;if(l<t.length)return t[l]}return null}(t,b):null,h=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,m);p={selectValue:b,focusedOption:h,focusedValue:f,clearFocusValueOnUpdate:!1}}var k=null!=n&&e!==a?{inputIsHidden:n,inputIsHiddenAfterUpdate:void 0}:{},v=r,y=i&&o;return i&&!y&&(v={value:La(d,b,b[0]||null),options:b,action:"initial-input-focus"},y=!o),"initial-input-focus"===(null==r?void 0:r.action)&&(v=null),da(da(da({},p),k),{},{prevProps:e,ariaSelection:v,prevWasFocused:y})}}]),l}(v.Component);on.defaultProps=Zl;Math.abs,String.fromCharCode,Object.assign;var sn=(0,v.forwardRef)((function(e,a){var l=dl(e);return v.createElement(on,t({ref:a},l))})),cn=(v.Component,sn),un=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],gn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,l=String(e).toLowerCase(),n=String(a.getOptionValue(t)).toLowerCase(),r=String(a.getOptionLabel(t)).toLowerCase();return n===l||r===l},dn={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,a,l){return!(!e||t.some((function(t){return gn(e,t,l)}))||a.some((function(t){return gn(e,t,l)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},bn=(0,v.forwardRef)((function(e,a){var l=function(e){var t=e.allowCreateWhileLoading,a=void 0!==t&&t,l=e.createOptionPosition,n=void 0===l?"last":l,r=e.formatCreateLabel,i=void 0===r?dn.formatCreateLabel:r,o=e.isValidNewOption,s=void 0===o?dn.isValidNewOption:o,c=e.getNewOptionData,u=void 0===c?dn.getNewOptionData:c,g=e.onCreateOption,d=e.options,b=void 0===d?[]:d,p=e.onChange,m=Xt(e,un),f=m.getOptionValue,h=void 0===f?ql:f,k=m.getOptionLabel,y=void 0===k?jl:k,w=m.inputValue,_=m.isLoading,C=m.isMulti,T=m.value,E=m.name,x=(0,v.useMemo)((function(){return s(w,ya(T),b,{getOptionValue:h,getOptionLabel:y})?u(w,i(w)):void 0}),[i,u,y,h,w,s,b,T]),S=(0,v.useMemo)((function(){return!a&&_||!x?b:"first"===n?[x].concat(bl(b)):[].concat(bl(b),[x])}),[a,n,_,x,b]),B=(0,v.useCallback)((function(e,t){if("select-option"!==t.action)return p(e,t);var a=Array.isArray(e)?e:[e];if(a[a.length-1]!==x)p(e,t);else if(g)g(w);else{var l=u(w,w),n={action:"create-option",name:E,option:l};p(La(C,[].concat(bl(ya(T)),[l]),l),n)}}),[u,w,C,E,x,g,p,T]);return da(da({},m),{},{options:S,onChange:B})}(dl(e));return v.createElement(on,t({ref:a},l))})),pn=bn;function mn(t){let{label:a,htmlFor:l,help:n,children:r}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)("label",{style:{marginBottom:"8px",display:"inline-block"},htmlFor:l},a),r,n&&(0,e.createElement)("p",{style:{fontSize:"12px",fontStyle:"normal",color:"rgb(117, 117, 117)"}},n))}var fn=t=>{const a={className:"generate-advanced-select",classNamePrefix:"generate-advanced-select",isSearchable:!1,styles:{indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,maxHeight:"30px"}),menuPortal:e=>({...e,zIndex:999999}),control:e=>({...e,marginBottom:"8px"}),valueContainer:e=>({...e,padding:"0 6px"}),input:e=>({...e,margin:0,padding:0})},instanceId:"input-field",maxMenuHeight:250,theme:e=>({borderRadius:2,colors:{...e.colors,primary:"var(--wp-admin-theme-color)",neutral20:"#757575",neutral30:"#757575"},spacing:{controlHeight:30,baseUnit:3,menuGutter:3}}),menuPortalTarget:document.querySelector("body")},l=Object.assign({},{marginBottom:"24px"},t?.wrapperStyles),n=t?.isCreatable?pn:cn,r=Object.assign({},a,t);return(0,e.createElement)("div",{style:l},(0,e.createElement)(mn,{label:r.label,htmlFor:r.id,help:r.help},(0,e.createElement)(n,r)))};const hn=function(e,t,a){const l={};return e.reduce(((e,n)=>{const r=n[t]||a;if(Object.keys(l).includes(r))e[l[r]].options.push(n);else{const t=e.push({label:r,options:[n]});l[r]=t-1}return e}),[])};var kn=a=>(0,e.createElement)(fn,t({id:"gblocks-select-query-parameters",label:(0,i.__)("Select query parameter","generateblocks"),placeholder:(0,i.__)("Select query parameter","generateblocks"),isSearchable:!0,pageSize:20},a,{menuPlacement:"top",options:hn(a.options,"group","Other")})),vn=a=>(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},(0,e.createElement)(r.Button,t({isPrimary:!0,text:(0,i.__)("Add Parameter","generateblocks")},a))),yn=[{id:"post_type",type:"postTypeSelect",default:"post",label:(0,i.__)("Post type","generateblocks"),description:(0,i.__)("Retrieves posts by post types.","generateblocks"),group:(0,i.__)("Post type","generateblocks"),isSticky:!0},{id:"per_page",type:"number",default:10,label:(0,i.__)("Posts per page","generateblocks"),description:(0,i.__)("Number of post to show per page.","generateblocks"),group:(0,i.__)("Pagination","generateblocks"),isSticky:!0},{id:"page",type:"number",default:1,label:(0,i.__)("Page","generateblocks"),description:(0,i.__)("Display posts from page.","generateblocks"),group:(0,i.__)("Pagination","generateblocks")},{id:"offset",type:"number",default:void 0,label:(0,i.__)("Offset","generateblocks"),description:(0,i.__)("Offset the result set by a specific number of items.","generateblocks"),group:(0,i.__)("Pagination","generateblocks")},{id:"search",type:"text",default:"",label:(0,i.__)("Search","generateblocks"),description:(0,i.__)("Show posts based on a keyword search.","generateblocks"),group:(0,i.__)("Search","generateblocks")},{id:"order",type:"select",default:"desc",selectOptions:[{value:"desc",label:"DESC"},{value:"asc",label:"ASC"}],label:(0,i.__)("Order","generateblocks"),description:(0,i.__)("Designates the ascending or descending order of the ‘orderby‘ parameter.","generateblocks"),group:(0,i.__)("Order & Order by","generateblocks")},{id:"orderby",type:"select",default:"date",selectOptions:[{value:"id",label:"Id"},{value:"title",label:"Title"},{value:"slug",label:"Slug"},{value:"author",label:"Author"},{value:"date",label:"Date"},{value:"modified",label:"Last modified date"},{value:"parent",label:"Parent id"},{value:"menu_order",label:"Menu order"}],label:(0,i.__)("Order by","generateblocks"),description:(0,i.__)("Sort retrieved posts by parameter.","generateblocks"),group:(0,i.__)("Order & Order by","generateblocks")},{id:"author",type:"authorsSelect",default:[],label:(0,i.__)("Authors","generateblocks"),description:(0,i.__)("Show posts from authors.","generateblocks"),group:(0,i.__)("Author","generateblocks")},{id:"author_exclude",type:"authorsSelect",default:[],label:(0,i.__)("Exclude authors","generateblocks"),description:(0,i.__)("Exclude posts from authors.","generateblocks"),group:(0,i.__)("Author","generateblocks")},{id:"tax_query",type:"taxonomySelect",default:[],label:(0,i.__)("Taxonomies","generateblocks"),description:(0,i.__)("Show posts from taxonomies.","generateblocks"),group:(0,i.__)("Taxonomy","generateblocks"),isRepeatable:!0,repeatableDefaultValue:{taxonomy:"",terms:[],rest:""}},{id:"tax_query_exclude",type:"taxonomySelect",default:[],label:(0,i.__)("Exclude taxonomies","generateblocks"),description:(0,i.__)("Exclude posts from taxonomies.","generateblocks"),group:(0,i.__)("Taxonomy","generateblocks"),isRepeatable:!0,repeatableDefaultValue:{taxonomy:"",terms:[],rest:""}},{id:"status",type:"multiSelect",default:[],selectOptions:[{value:"publish",label:(0,i.__)("Publish","generateblocks")},{value:"pending",label:(0,i.__)("Pending","generateblocks")},{value:"draft",label:(0,i.__)("Draft","generateblocks")},{value:"auto-draft",label:(0,i.__)("Auto draft","generateblocks")},{value:"future",label:(0,i.__)("Future","generateblocks")},{value:"private",label:(0,i.__)("Private","generateblocks")},{value:"inherit",label:(0,i.__)("Inherit","generateblocks")},{value:"trash",label:(0,i.__)("Trash","generateblocks")},{value:"any",label:(0,i.__)("Any","generateblocks")}],label:(0,i.__)("Post status","generateblocks"),description:(0,i.__)("Show posts by post status.","generateblocks"),group:(0,i.__)("Status","generateblocks")},{id:"parent",type:"postsSelect",default:[],dependencies:{postType:"post_type"},label:(0,i.__)("Parent","generateblocks"),description:(0,i.__)("Show posts from parents.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"parent_exclude",type:"postsSelect",default:[],dependencies:{postType:"post_type"},label:(0,i.__)("Parent exclude","generateblocks"),description:(0,i.__)("Do not show posts from parents.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"include",type:"postsSelect",default:[],dependencies:{postType:"post_type"},label:(0,i.__)("Include posts","generateblocks"),description:(0,i.__)("Limit result set to specific posts.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"exclude",type:"postsSelect",default:[],dependencies:{postType:"post_type"},label:(0,i.__)("Exclude posts","generateblocks"),description:(0,i.__)("Ensure result set excludes specific posts.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"stickyPosts",type:"select",default:"include",selectOptions:[{value:"include",label:"Include"},{value:"exclude",label:"Exclude"},{value:"ignore",label:"Ignore"},{value:"only",label:"Only"}],label:(0,i.__)("Sticky posts","generateblocks"),description:(0,i.__)("Configure how sticky posts should show in the query.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"after",type:"dateTimePicker",default:"",label:(0,i.__)("After","generateblocks"),description:(0,i.__)("Limit response to posts published after a given date.","generateblocks"),group:(0,i.__)("Date","generateblocks")},{id:"before",type:"dateTimePicker",default:"",label:(0,i.__)("Before","generateblocks"),description:(0,i.__)("Limit response to posts published before a given date.","generateblocks"),group:(0,i.__)("Date","generateblocks")}],wn=t=>{let{postType:a,onChange:n,value:r,help:o}=t;const s=(0,l.useSelect)((e=>{const{getPostTypes:t}=e(Z.store);return t({per_page:-1})||[]}),[]),c=(0,e.useMemo)((()=>s.filter((e=>e.viewable&&"attachment"!==e.slug)).reduce(((e,t)=>(e.push({value:t.slug,label:t.name}),e)),[])),[s]),u=c.filter((e=>e.value===a||e.value===r));return(0,e.createElement)(fn,{id:"gblocks-select-post-type",label:(0,i.__)("Select post type","generateblocks"),help:o,placeholder:(0,i.__)("Select post type","generateblocks"),options:c,value:u,onChange:n,isLoading:0===c.length})},Cn=a=>{const{options:l,value:n}=a;return(0,e.createElement)(fn,t({},a,{id:"gblocks-simple-select",value:l.filter((e=>e.value===n))}))};function Tn(t){let{label:a,onChange:n,value:r,help:o}=t;const s=(0,l.useSelect)((e=>{const{getUsers:t}=e(Z.store);return t({who:"authors"})||[]}),[]),c=(0,e.useMemo)((()=>s.reduce(((e,t)=>(e.push({value:t.id,label:t.name}),e)),[])),[s]),u=c.filter((e=>r.includes(e.value)));return(0,e.createElement)(fn,{id:"gblocks-select-author",label:a||(0,i.__)("Select authors","generateblocks"),help:o,placeholder:a||(0,i.__)("Select authors","generateblocks"),options:c,isMulti:!0,isSearchable:!0,value:u,onChange:n,isLoading:0===c.length})}function En(t){let{taxonomy:a,label:n,onChange:r,value:o=[],help:s}=t;const{taxonomies:c,isResolving:u}=(e=>(0,l.useSelect)((t=>{const{getEntityRecords:a,isResolving:l}=t(Z.store),n=["taxonomy",e,{per_page:-1}];return{taxonomies:a(...n)||[],isResolving:l("getEntityRecords",n)}}),[e]))(a),g=(0,e.useMemo)((()=>c.reduce(((e,t)=>(e.push({value:t.id,label:t.name}),e)),[])),[c]),d=g.filter((e=>o.includes(e.value)));return(0,e.createElement)(fn,{id:"gblocks-select-author",label:n||(0,i.__)("Select terms","generateblocks"),help:s,placeholder:n||(0,i.__)("Select terms","generateblocks"),options:g,isMulti:!0,isSearchable:!0,value:d,onChange:r,isLoading:u})}function xn(a){return(0,e.createElement)(En,t({},a,{taxonomy:"category"}))}function Sn(a){return(0,e.createElement)(En,t({},a,{taxonomy:"post_tag"}))}function Bn(t){let{id:a,onClick:l}=t;return(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Delete parameter","generateblocks-pro")},(0,e.createElement)(r.Button,{className:"gblocks-remove-parameter",onClick:()=>{window.confirm((0,i.__)("This will permanently delete this parameter.","generateblocks"))&&l(a)},icon:b("trash")}))}function Mn(t){let{label:a,value:l,onChange:n}=t;const[r,i]=(0,e.useState)(),[o,s]=(0,e.useState)([]),c=K();(0,e.useEffect)((()=>{l.taxonomy&&i(l.taxonomy),l.terms&&s(l.terms)}),[]),(0,e.useEffect)((()=>{l.taxonomy!==r&&i(l.taxonomy),JSON.stringify(l.terms)!==JSON.stringify(o)&&s(l.terms)}),[l]),(0,e.useEffect)((()=>{if(r){const e=c.filter((e=>e.slug===r)),t=e[0]?e[0].rest_base:void 0;n({taxonomy:r,terms:o,rest:t})}}),[r,o]);const u=(0,e.useMemo)((()=>c.filter((e=>"nav_menu"!==e.slug)).map((e=>({value:e.slug,label:e.name})))),[c]);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)("label",{htmlFor:"tax-label",style:{marginBottom:"8px",display:"inline-block"}},a),(0,e.createElement)(Cn,{wrapperStyles:{marginBottom:"8px"},options:u,value:r,onChange:e=>{i(e.value),s([])}}),(0,e.createElement)(En,{taxonomy:r,value:o,onChange:e=>{const t=e.reduce(((e,t)=>(e.push(t.value),e)),[]);s(t)}}))}function Dn(a){let{postType:n,label:r,value:o,...s}=a;const{records:c,isResolving:u}=(e=>(0,l.useSelect)((t=>{const{getEntityRecords:a,isResolving:l}=t(Z.store),n=["postType",e,{per_page:-1}];return{records:a(...n)||[],isResolving:l("getEntityRecords",n)}}),[e]))(n)||[],g=(0,e.useMemo)((()=>c?.map((e=>{const t=e.title&&e.title.raw?e.title.raw:e.slug;return{value:e.id,label:`#${e.id}: ${t}`}}))),[c,n]),d=g.filter((e=>o.includes(e.value)));return(0,e.createElement)(fn,t({id:"gblocks-select-posts",label:r||(0,i.__)("Select post","generateblocks"),placeholder:r||(0,i.__)("Select post","generateblocks"),value:d,isLoading:u,isSearchable:!0,isMulti:!0},s,{options:g}))}function Rn(t){let{label:a,help:l,value:n,onChange:i}=t;const o=n?new Date(n):new Date;return(0,e.createElement)("div",{style:{marginBottom:"24px"}},(0,e.createElement)(mn,{label:a,help:l},(0,e.createElement)(r.DateTimePicker,{currentDate:o,onChange:i,is12Hour:!0})))}function zn(e,t){return e===t}function Ln(e){return"function"==typeof e?function(){return e}:e}function On(e,t,a){var l=a&&a.equalityFn||zn,n=function(e){var t=(0,v.useState)(Ln(e)),a=t[0],l=t[1];return[a,(0,v.useCallback)((function(e){return l(Ln(e))}),[])]}(e),r=n[0],i=n[1],o=se((0,v.useCallback)((function(e){return i(e)}),[i]),t,a),s=(0,v.useRef)(e);return l(s.current,e)||(o(e),s.current=e),[r,o]}function In(a){const[l,n,i]=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[l,n]=(0,e.useState)(t),[r]=On(l,a);return[r,n,l]}(a?.value,800);return(0,e.useEffect)((()=>{a.onChange(l)}),[l]),(0,e.createElement)(r.TextControl,t({},a,{value:i,onChange:n}))}var Nn=function(a){const{options:l,value:n}=a;return(0,e.createElement)(fn,t({},a,{isMulti:!0,id:"gblocks-simple-multi-select",value:l.filter((e=>n.includes(e.value)))}))};function An(a){const{id:l,type:n,label:o,description:s,selectOptions:c=[],isSticky:u,value:g,default:d,onChange:b,onClickRemove:p,dependencies:m}=a,f=(e=>{switch(e){case"text":case"number":return In;case"postTypeSelect":return wn;case"select":return Cn;case"multiSelect":return Nn;case"authorsSelect":return Tn;case"categoriesSelect":return xn;case"tagsSelect":return Sn;case"taxonomySelect":return Mn;case"postsSelect":return Dn;case"dateTimePicker":return Rn;case"toggleControl":return r.ToggleControl}})(n);let h=s;return"per_page"===l&&("-1"===g||g>50)&&(h+=" "+(0,i.__)("Editor only: A maximum of 50 posts can be previewed in the editor.","generateblocks")),(0,e.createElement)("div",{className:"gblocks-parameter-component"},(0,e.createElement)(f,t({type:n,label:o,help:h,options:c,value:g,placeholder:d,onChange:b},m)),!u&&(0,e.createElement)(Bn,{id:l,onClick:p}))}var Pn=a=>{let{parameter:l,query:n,setParameter:r,removeParameter:i}=a;const{dependencies:o={}}=l,s=n[l.id],c=Object.keys(o).reduce(((e,t)=>(e[t]=n[o[t]],e)),{});function u(a,n,r){return(0,e.createElement)(An,t({},l,{value:a,onChange:n,onClickRemove:r,dependencies:c}))}return l.isRepeatable?(0,e.createElement)(e.Fragment,null,Array.isArray(s)&&s.map(((e,t)=>u(e,(e=>{s[t]=e,r(l.id,[...s])}),(e=>{s.splice(t,1),0===s.length?i(e):r(l.id,[...s])}))))):u(s,(function(e){r(l.id,((e,t)=>{switch(e){case"post_type":case"order":case"orderby":case"stickyPosts":return t.value;case"status":case"author":case"author_exclude":case"include":case"exclude":case"parent":case"parent_exclude":return t.reduce(((e,t)=>(e.push(t.value),e)),[]);default:return t}})(l.id,e))}),i)},Fn=t=>{let{query:a,setParameter:l,removeParameter:n}=t;const r=(e=>yn.filter((t=>Object.keys(e).includes(t.id))))(a);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},r&&r.map((t=>(0,e.createElement)(Pn,{key:t.id,parameter:t,query:a,setParameter:l,removeParameter:n})))))};const Hn="add_query_parameter",Vn="remove_query_parameter",Un=function(e,t){switch(t.type){case Hn:return Object.assign({},e,t.payload);case Vn:const{[t.payload]:a,...l}=e;return l;default:throw new Error(`queryReducer does not support action type "${t.type}".`)}};var Gn=e=>e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype,jn=t=>{let{attributes:a,setAttributes:l}=t;const{queryState:o,insertParameters:s,setParameter:c,removeParameter:u}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[a,l]=(0,e.useReducer)(Un,t);return{queryState:a,setParameter:(e,t)=>l({type:Hn,payload:{[e]:t}}),insertParameters:e=>l({type:Hn,payload:e}),removeParameter:e=>l({type:Vn,payload:e})}}(),[g,d]=(0,e.useState)(!1);(0,e.useEffect)((()=>{Gn(a.query)?s({post_type:"post",per_page:10}):s(a.query)}),[]),(0,e.useEffect)((()=>{Gn(o)||(0,V.isEqual)(a.query,o)||l({query:o})}),[o]);const p=(0,e.useMemo)((()=>yn.map((e=>(e.isDisabled=!e.isRepeatable&&Object.keys(o).includes(e.id),e)))),[o]);return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(C,{id:"queryLoopControls",title:(0,i.__)("Query Parameters","generateblocks"),initialOpen:!0,icon:b("query-params"),className:"gblocks-panel-label"},(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Inherit query from template","generateblocks"),help:(0,i.__)("Toggle to use the global query context that is set with the current template, such as an archive or search.","generateblocks"),checked:!!a.inheritQuery,onChange:e=>l({inheritQuery:e})}),!a.inheritQuery&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Fn,{query:o,setParameter:c,removeParameter:u}),!g&&(0,e.createElement)(vn,{onClick:()=>{d(!0)}}),g&&(0,e.createElement)(kn,{options:p,onChange:e=>{if(e.isRepeatable&&Array.isArray(e.default)&&e.repeatableDefaultValue){const t=o[e.id]?o[e.id]:e.default;c(e.id,[...t,e.repeatableDefaultValue])}else c(e.id,e.default);d(!1)}}))))},qn=t=>{let{clientId:a}=t;const{insertBlocks:o}=(0,l.useDispatch)("core/block-editor"),{getBlock:s}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{selectBlock:c}=(0,l.useDispatch)("core/block-editor"),u=s(a),d=!!u&&u?.innerBlocks[0],p=!!u&&u?.innerBlocks[0]?.innerBlocks[0],m={useDynamicData:!0,isPagination:!0},f=["generateblocks/button-container",{isPagination:!0},[["generateblocks/button",Object.assign({},m,generateBlocksStyling.button,{text:(0,i.__)("Previous","generateblocks"),dynamicLinkType:"pagination-prev",dynamicLinkRemoveIfEmpty:!0})],["generateblocks/button",Object.assign({},m,generateBlocksStyling.button,{text:(0,i.__)("1 2 … 10","generateblocks"),dynamicContentType:"pagination-numbers"})],["generateblocks/button",Object.assign({},m,generateBlocksStyling.button,{text:(0,i.__)("Next","generateblocks"),dynamicLinkType:"pagination-next",dynamicLinkRemoveIfEmpty:!0})]]];return(0,e.createElement)(n.BlockControls,null,(!!d||!!p)&&(0,e.createElement)(r.ToolbarGroup,null,!!d&&(0,e.createElement)(r.ToolbarButton,{icon:b("grid"),label:(0,i.__)("Open Grid","generateblocks"),onClick:()=>{c(d.clientId)},showTooltip:!0}),!!p&&(0,e.createElement)(r.ToolbarButton,{icon:b("container"),label:(0,i.__)("Open Container","generateblocks"),onClick:()=>{c(p.clientId)},showTooltip:!0})),(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{icon:b("add-pagination"),label:(0,i.__)("Add Pagination","generateblocks"),onClick:()=>{o((0,g.createBlocksFromInnerBlocksTemplate)([f]),void 0,a)},showTooltip:!0})))},Wn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).filter((e=>t.includes(e))).reduce(((t,a)=>Object.assign({},t,{[a]:e[a]})),{})},$n=[{name:"title-date-excerpt",title:(0,i.__)("Title, date, & excerpt","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M15 33h171v11H15zM15 51h79v5H15zM15 71h171v5H15zM15 82h171v5H15zM15 116h171v11H15zM15 134h79v5H15zM15 154h171v5H15zM15 165h171v5H15z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:40,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:100,lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"title-date",title:(0,i.__)("Title & date","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M14 30h171v11H14zM14 48h79v5H14zM14 88h171v11H14zM14 106h79v5H14zM14 146h171v11H14zM14 164h79v5H14z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:100,lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:20,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"0",dynamicContentType:"post-date",fontSize:14}]]]]]]},{name:"two-columns",title:(0,i.__)("Two columns","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M14 28h78v11H14zM14 46h36.035v5H14zM14 66h78v5H14zM14 77h78v5H14zM108 28h78v11h-78zM108 46h36.035v5H108zM108 66h78v5h-78zM108 77h78v5h-78zM14 118h78v11H14zM14 136h36.035v5H14zM14 156h78v5H14zM14 167h78v5H14zM108 118h78v11h-78zM108 136h36.035v5H108zM108 156h78v5h-78zM108 167h78v5h-78z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,horizontalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:50,widthMobile:100,backgroundColor:"#fafafa",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20",lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:30,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"30",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"two-columns-feature-image",title:(0,i.__)("Two columns & featured image","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M110 57h78v11h-78V57ZM110 16h78v35h-78V16ZM110 76h78v5h-78zM110 87h55v5h-55zM110 149h78v11h-78v-11ZM110 108h78v35h-78v-35ZM110 168h78v5h-78zM110 179h55v5h-55zM15 149h78v11H15v-11ZM15 108h78v35H15v-35ZM15 168h78v5H15zM15 179h55v5H15zM15 57h78v11H15V57ZM15 16h78v35H15V16ZM15 76h78v5H15zM15 87h55v5H15z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,horizontalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:50,widthMobile:100,backgroundColor:"#fafafa",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20",lock:{remove:!0,move:!0}},[["generateblocks/image",{useDynamicData:!0,dynamicContentType:"featured-image",marginBottom:"30"}],["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:30,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"30",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"blank",title:(0,i.__)("Start blank","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:100,lock:{remove:!0,move:!0}}]]]]}],Zn=t=>{let{clientId:a,isDisabled:n}=t;if(n)return!1;const{replaceInnerBlocks:o}=(0,l.useDispatch)("core/block-editor");return(0,e.createElement)(r.Placeholder,{label:(0,i.__)("Query Loop","generateblocks"),icon:b("query-loop"),instructions:(0,i.__)("Choose a layout to start with.","generateblocks"),className:"gblocks-query-loop-layout-selector"},(0,e.createElement)("div",{className:"gblocks-query-loop-layout-selector__content"},$n.map((t=>(0,e.createElement)(r.Button,{key:`template-${t}`,onClick:()=>{o(a,(0,g.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))}},t.icon,(0,e.createElement)("p",null,t.title))))))};(0,g.registerBlockType)("generateblocks/query-loop",{apiVersion:2,title:(0,i.__)("Query Loop","generateblocks"),description:(0,i.__)("Build a list of posts from any post type using advanced query parameters.","generateblocks"),icon:b("query-loop"),category:"generateblocks",keywords:[(0,i.__)("query"),(0,i.__)("loop"),(0,i.__)("generate")],attributes:ye,supports:{className:!1,customClassName:!1},providesContext:{"generateblocks/query":"query","generateblocks/queryId":"uniqueId","generateblocks/inheritQuery":"inheritQuery"},edit:Y((function(t){const{attributes:a,clientId:r,setAttributes:i}=t,o=(0,n.useBlockProps)(),s=(0,l.useSelect)((e=>!!e(n.store).getBlocks(r).length),[r]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",o,s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(qn,{clientId:r}),(0,e.createElement)(jn,{attributes:Wn(a,Object.keys(ye)),setAttributes:i,clientId:r}),(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/query":a.query}},(0,e.createElement)(n.InnerBlocks,{renderAppender:!1}))):(0,e.createElement)(Zn,{clientId:r})))})),save:()=>(0,e.createElement)(n.InnerBlocks.Content,null)});const Kn=["wide","full"],Qn=(0,q.createHigherOrderComponent)((t=>a=>{if("generateblocks/container"!==a.name)return(0,e.createElement)(t,a);const{insertBlocks:o}=(0,l.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:s,getBlockRootClientId:c,getBlocksByClientId:u}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{attributes:d,clientId:p,setAttributes:m}=a,{isGrid:f,isQueryLoopItem:h,align:k}=d;let v=!1;v="function"==typeof s?s(p,"generateblocks/grid",!0)[0]:c(p);const y=(0,g.getBlockSupport)("","align",!0)&&!f;return(0,e.createElement)(e.Fragment,null,!h&&f&&v&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:b("addContainer"),label:(0,i.__)("Duplicate Grid Item","generateblocks"),onClick:()=>{const e=u(p)[0],t=(0,g.cloneBlock)(e,{uniqueId:""});o(t,void 0,v)},showTooltip:!0}))),y&&(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(n.BlockAlignmentToolbar,{value:k,onChange:e=>{m({align:e}),"full"===e&&m({outerContainer:"full"})},controls:Kn})),(0,e.createElement)(t,a))}),"withBlockControls");(0,m.addFilter)("editor.BlockEdit","generateblocks/container-block-controls",Qn);var Yn=t=>{let{attributes:a,setAttributes:l,deviceType:r}=t;const{alignment:i,alignmentTablet:o,alignmentMobile:s}=a;return(0,e.createElement)(n.BlockControls,null,"Desktop"===r&&(0,e.createElement)(n.AlignmentToolbar,{value:i,onChange:e=>{l({alignment:e})}}),"Tablet"===r&&(0,e.createElement)(n.AlignmentToolbar,{value:o,onChange:e=>{l({alignmentTablet:e})}}),"Mobile"===r&&(0,e.createElement)(n.AlignmentToolbar,{value:s,onChange:e=>{l({alignmentMobile:e})}}))},Jn=t=>{let{fontFamily:a,googleFont:l,googleFontVariants:n,isBlockPreview:r}=t;if(r)return null;const i=n?`:${n}`:"",o="https://fonts.googleapis.com/css?family="+a.replace(/ /g,"+")+i;return(0,e.createElement)(e.Fragment,null,a&&l&&(0,e.createElement)("link",{rel:"stylesheet",href:o}))};class Xn extends e.Component{render(){const{label:t,value:a,onChange:l,rangeMin:n=0,rangeMax:i=100,inputMin:o="",inputMax:s="",step:c=1,help:u="",beforeIcon:g="",initialPosition:d="",placeholder:b="",disabled:p=!1}=this.props;return(0,e.createElement)("div",{className:"components-gblocks-range-control"},t&&(0,e.createElement)("div",{className:"components-gblocks-range-control--label"},t),(0,e.createElement)("div",{className:"components-gblocks-range-control--wrapper"},(0,e.createElement)("div",{className:"components-gblocks-range-control--range"},(0,e.createElement)(r.RangeControl,{className:"gblocks-range-control-range",beforeIcon:g,value:S(a)?parseFloat(a):"",onChange:e=>l(e),min:n,max:i,step:c,withInputField:!1,initialPosition:d,disabled:p})),(0,e.createElement)("div",{className:"components-gblocks-range-control-input"},(0,e.createElement)(r.TextControl,{type:"number",placeholder:""!==b?b:"",min:o,max:s,step:c,value:S(a)?a:"",disabled:p,onChange:e=>l(e),onBlur:()=>{S(a)&&l(parseFloat(a))},onClick:e=>{e.currentTarget.focus()}}))),u&&(0,e.createElement)("p",{className:"components-base-control__help"},u))}}var er=JSON.parse('{"Roboto":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Open Sans":{"weight":["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Noto Sans JP":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Lato":{"weight":["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Montserrat":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Roboto Condensed":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"sans-serif"},"Source Sans Pro":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Oswald":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Poppins":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Roboto Mono":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"monospace"},"Noto Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Raleway":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"PT Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Roboto Slab":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Merriweather":{"weight":["300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"serif"},"Ubuntu":{"weight":["300","300italic","regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Playfair Display":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Nunito":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Noto Sans KR":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Open Sans Condensed":{"weight":["300","300italic","700"],"fallback":"sans-serif"},"Rubik":{"weight":["300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Lora":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Work Sans":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Mukta":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Noto Sans TC":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Nunito Sans":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"PT Serif":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Nanum Gothic":{"weight":["regular","700","800"],"fallback":"sans-serif"},"Inter":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Fira Sans":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Noto Serif":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Quicksand":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Titillium Web":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],"fallback":"sans-serif"},"Hind Siliguri":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Karla":{"weight":["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"sans-serif"},"Barlow":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Inconsolata":{"weight":["200","300","regular","500","600","700","800","900"],"fallback":"monospace"},"Heebo":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Noto Sans SC":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Oxygen":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Source Code Pro":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],"fallback":"monospace"},"Anton":{"weight":["regular"],"fallback":"sans-serif"},"Josefin Sans":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Arimo":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"PT Sans Narrow":{"weight":["regular","700"],"fallback":"sans-serif"},"IBM Plex Sans":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Dosis":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Noto Sans HK":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Libre Franklin":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Libre Baskerville":{"weight":["regular","italic","700"],"fallback":"serif"},"Cabin":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Hind":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Bitter":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Crimson Text":{"weight":["regular","italic","600","600italic","700","700italic"],"fallback":"serif"},"Bebas Neue":{"weight":["regular"],"fallback":"display"},"Lobster":{"weight":["regular"],"fallback":"display"},"Yanone Kaffeesatz":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Dancing Script":{"weight":["regular","500","600","700"],"fallback":"handwriting"},"Cairo":{"weight":["200","300","regular","600","700","900"],"fallback":"sans-serif"},"Abel":{"weight":["regular"],"fallback":"sans-serif"},"Fjalla One":{"weight":["regular"],"fallback":"sans-serif"},"Varela Round":{"weight":["regular"],"fallback":"sans-serif"},"Source Serif Pro":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],"fallback":"serif"},"Arvo":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"EB Garamond":{"weight":["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],"fallback":"serif"},"Barlow Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Architects Daughter":{"weight":["regular"],"fallback":"handwriting"},"Zilla Slab":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Indie Flower":{"weight":["regular"],"fallback":"handwriting"},"Mulish":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Comfortaa":{"weight":["300","regular","500","600","700"],"fallback":"display"},"DM Sans":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Pacifico":{"weight":["regular"],"fallback":"handwriting"},"Exo 2":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Kanit":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Prompt":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Shadows Into Light":{"weight":["regular"],"fallback":"handwriting"},"Questrial":{"weight":["regular"],"fallback":"sans-serif"},"Merriweather Sans":{"weight":["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"sans-serif"},"Teko":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Balsamiq Sans":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Asap":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Hind Madurai":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Cormorant Garamond":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Antic Slab":{"weight":["regular"],"fallback":"serif"},"Archivo Narrow":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Overpass":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Abril Fatface":{"weight":["regular"],"fallback":"display"},"Slabo 27px":{"weight":["regular"],"fallback":"serif"},"Exo":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Assistant":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Maven Pro":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Domine":{"weight":["regular","500","600","700"],"fallback":"serif"},"Fira Sans Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Caveat":{"weight":["regular","500","600","700"],"fallback":"handwriting"},"Rajdhani":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"IBM Plex Serif":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Martel":{"weight":["200","300","regular","600","700","800","900"],"fallback":"serif"},"Play":{"weight":["regular","700"],"fallback":"sans-serif"},"Amatic SC":{"weight":["regular","700"],"fallback":"handwriting"},"Bree Serif":{"weight":["regular"],"fallback":"serif"},"Tajawal":{"weight":["200","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Noto Serif JP":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Righteous":{"weight":["regular"],"fallback":"display"},"Satisfy":{"weight":["regular"],"fallback":"handwriting"},"Signika":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Catamaran":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Acme":{"weight":["regular"],"fallback":"sans-serif"},"Manrope":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Fredoka One":{"weight":["regular"],"fallback":"display"},"Nanum Myeongjo":{"weight":["regular","700","800"],"fallback":"serif"},"ABeeZee":{"weight":["regular","italic"],"fallback":"sans-serif"},"Amiri":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Patrick Hand":{"weight":["regular"],"fallback":"handwriting"},"PT Sans Caption":{"weight":["regular","700"],"fallback":"sans-serif"},"Archivo":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Alfa Slab One":{"weight":["regular"],"fallback":"display"},"Cinzel":{"weight":["regular","500","600","700","800","900"],"fallback":"serif"},"Crete Round":{"weight":["regular","italic"],"fallback":"serif"},"Permanent Marker":{"weight":["regular"],"fallback":"handwriting"},"Alegreya Sans":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Almarai":{"weight":["300","regular","700","800"],"fallback":"sans-serif"},"Barlow Semi Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Russo One":{"weight":["regular"],"fallback":"sans-serif"},"Vollkorn":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Sarabun":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Krona One":{"weight":["regular"],"fallback":"sans-serif"},"M PLUS Rounded 1c":{"weight":["100","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Noticia Text":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Courgette":{"weight":["regular"],"fallback":"handwriting"},"Monda":{"weight":["regular","700"],"fallback":"sans-serif"},"Alegreya":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Frank Ruhl Libre":{"weight":["300","regular","500","700","900"],"fallback":"serif"},"Patua One":{"weight":["regular"],"fallback":"display"},"Ubuntu Condensed":{"weight":["regular"],"fallback":"sans-serif"},"Great Vibes":{"weight":["regular"],"fallback":"handwriting"},"Quattrocento Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"M PLUS 1p":{"weight":["100","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Spartan":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Yantramanav":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Lobster Two":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Archivo Black":{"weight":["regular"],"fallback":"sans-serif"},"Kaushan Script":{"weight":["regular"],"fallback":"handwriting"},"Tinos":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Cardo":{"weight":["regular","italic","700"],"fallback":"serif"},"Orbitron":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Sacramento":{"weight":["regular"],"fallback":"handwriting"},"IBM Plex Mono":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"monospace"},"Francois One":{"weight":["regular"],"fallback":"sans-serif"},"Luckiest Guy":{"weight":["regular"],"fallback":"display"},"Gothic A1":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Kalam":{"weight":["300","regular","700"],"fallback":"handwriting"},"Parisienne":{"weight":["regular"],"fallback":"handwriting"},"Gloria Hallelujah":{"weight":["regular"],"fallback":"handwriting"},"Didact Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Cantarell":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Press Start 2P":{"weight":["regular"],"fallback":"display"},"Jost":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Rokkitt":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Paytone One":{"weight":["regular"],"fallback":"sans-serif"},"Prata":{"weight":["regular"],"fallback":"serif"},"Baloo 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Cuprum":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Chivo":{"weight":["300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Encode Sans":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"News Cycle":{"weight":["regular","700"],"fallback":"sans-serif"},"Old Standard TT":{"weight":["regular","italic","700"],"fallback":"serif"},"Hind Guntur":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Pathway Gothic One":{"weight":["regular"],"fallback":"sans-serif"},"Red Hat Display":{"weight":["regular","italic","500","500italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Public Sans":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Secular One":{"weight":["regular"],"fallback":"sans-serif"},"Volkhov":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Concert One":{"weight":["regular"],"fallback":"display"},"Asap Condensed":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Montserrat Alternates":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Ropa Sans":{"weight":["regular","italic"],"fallback":"sans-serif"},"Josefin Slab":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"serif"},"Poiret One":{"weight":["regular"],"fallback":"display"},"Passion One":{"weight":["regular","700","900"],"fallback":"display"},"Padauk":{"weight":["regular","700"],"fallback":"sans-serif"},"Changa":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Saira Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Ultra":{"weight":["regular"],"fallback":"serif"},"Quattrocento":{"weight":["regular","700"],"fallback":"serif"},"Arapey":{"weight":["regular","italic"],"fallback":"serif"},"Vidaloka":{"weight":["regular"],"fallback":"serif"},"Playfair Display SC":{"weight":["regular","italic","700","700italic","900","900italic"],"fallback":"serif"},"Cookie":{"weight":["regular"],"fallback":"handwriting"},"Chakra Petch":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Istok Web":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Cormorant":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"DM Serif Display":{"weight":["regular","italic"],"fallback":"serif"},"Neuton":{"weight":["200","300","regular","italic","700","800"],"fallback":"serif"},"Spectral":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"serif"},"Sawarabi Mincho":{"weight":["regular"],"fallback":"sans-serif"},"Lemonada":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Yellowtail":{"weight":["regular"],"fallback":"handwriting"},"Handlee":{"weight":["regular"],"fallback":"handwriting"},"Merienda":{"weight":["regular","700"],"fallback":"handwriting"},"Philosopher":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Sanchez":{"weight":["regular","italic"],"fallback":"serif"},"Hammersmith One":{"weight":["regular"],"fallback":"sans-serif"},"Special Elite":{"weight":["regular"],"fallback":"display"},"Economica":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Staatliches":{"weight":["regular"],"fallback":"display"},"Sriracha":{"weight":["regular"],"fallback":"handwriting"},"Hind Vadodara":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Monoton":{"weight":["regular"],"fallback":"display"},"Ruda":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Advent Pro":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Saira":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Homemade Apple":{"weight":["regular"],"fallback":"handwriting"},"Sigmar One":{"weight":["regular"],"fallback":"display"},"Mitr":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Bangers":{"weight":["regular"],"fallback":"display"},"Khand":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Faustina":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Saira Semi Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Cabin Condensed":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Gudea":{"weight":["regular","italic","700"],"fallback":"sans-serif"},"Fira Sans Extra Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"DM Serif Text":{"weight":["regular","italic"],"fallback":"serif"},"El Messiri":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Electrolize":{"weight":["regular"],"fallback":"sans-serif"},"Taviraj":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"PT Mono":{"weight":["regular"],"fallback":"monospace"},"Gentium Basic":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Space Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Alice":{"weight":["regular"],"fallback":"serif"},"Unica One":{"weight":["regular"],"fallback":"display"},"Ubuntu Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Pragati Narrow":{"weight":["regular","700"],"fallback":"sans-serif"},"Noto Serif TC":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Amaranth":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Karma":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Actor":{"weight":["regular"],"fallback":"sans-serif"},"Nanum Pen Script":{"weight":["regular"],"fallback":"handwriting"},"Noto Serif SC":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Tangerine":{"weight":["regular","700"],"fallback":"handwriting"},"Carter One":{"weight":["regular"],"fallback":"display"},"Neucha":{"weight":["regular"],"fallback":"handwriting"},"Unna":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Pontano Sans":{"weight":["regular"],"fallback":"sans-serif"},"Bai Jamjuree":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Marck Script":{"weight":["regular"],"fallback":"handwriting"},"BenchNine":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Fugaz One":{"weight":["regular"],"fallback":"display"},"Yeseva One":{"weight":["regular"],"fallback":"display"},"Eczar":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Bad Script":{"weight":["regular"],"fallback":"handwriting"},"Viga":{"weight":["regular"],"fallback":"sans-serif"},"Gentium Book Basic":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Jura":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Allura":{"weight":["regular"],"fallback":"handwriting"},"Palanquin":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Sawarabi Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Rock Salt":{"weight":["regular"],"fallback":"handwriting"},"Lusitana":{"weight":["regular","700"],"fallback":"serif"},"Alef":{"weight":["regular","700"],"fallback":"sans-serif"},"Julius Sans One":{"weight":["regular"],"fallback":"sans-serif"},"Tenor Sans":{"weight":["regular"],"fallback":"sans-serif"},"Nothing You Could Do":{"weight":["regular"],"fallback":"handwriting"},"Cutive Mono":{"weight":["regular"],"fallback":"monospace"},"Khula":{"weight":["300","regular","600","700","800"],"fallback":"sans-serif"},"Adamina":{"weight":["regular"],"fallback":"serif"},"Playball":{"weight":["regular"],"fallback":"display"},"Audiowide":{"weight":["regular"],"fallback":"display"},"Jaldi":{"weight":["regular","700"],"fallback":"sans-serif"},"Black Ops One":{"weight":["regular"],"fallback":"display"},"Signika Negative":{"weight":["300","regular","600","700"],"fallback":"sans-serif"},"Shadows Into Light Two":{"weight":["regular"],"fallback":"handwriting"},"Armata":{"weight":["regular"],"fallback":"sans-serif"},"Mali":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"handwriting"},"Antic":{"weight":["regular"],"fallback":"sans-serif"},"Varela":{"weight":["regular"],"fallback":"sans-serif"},"Berkshire Swash":{"weight":["regular"],"fallback":"handwriting"},"Aleo":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"serif"},"Gelasio":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Rufina":{"weight":["regular","700"],"fallback":"serif"},"Markazi Text":{"weight":["regular","500","600","700"],"fallback":"serif"},"Nanum Gothic Coding":{"weight":["regular","700"],"fallback":"monospace"},"Allan":{"weight":["regular","700"],"fallback":"display"},"Noto Serif KR":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Abhaya Libre":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Quantico":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Marcellus":{"weight":["regular"],"fallback":"serif"},"Sorts Mill Goudy":{"weight":["regular","italic"],"fallback":"serif"},"Alata":{"weight":["regular"],"fallback":"sans-serif"},"Knewave":{"weight":["regular"],"fallback":"display"},"Alex Brush":{"weight":["regular"],"fallback":"handwriting"},"Aclonica":{"weight":["regular"],"fallback":"sans-serif"},"Gruppo":{"weight":["regular"],"fallback":"display"},"Damion":{"weight":["regular"],"fallback":"handwriting"},"Itim":{"weight":["regular"],"fallback":"handwriting"},"Bungee":{"weight":["regular"],"fallback":"display"},"Gochi Hand":{"weight":["regular"],"fallback":"handwriting"},"Mr Dafoe":{"weight":["regular"],"fallback":"handwriting"},"Freckle Face":{"weight":["regular"],"fallback":"display"},"Baloo Chettan 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Trirong":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Kosugi Maru":{"weight":["regular"],"fallback":"sans-serif"},"Rubik Mono One":{"weight":["regular"],"fallback":"sans-serif"},"Fira Mono":{"weight":["regular","500","700"],"fallback":"monospace"},"Cantata One":{"weight":["regular"],"fallback":"serif"},"Suez One":{"weight":["regular"],"fallback":"serif"},"Niconne":{"weight":["regular"],"fallback":"handwriting"},"Six Caps":{"weight":["regular"],"fallback":"sans-serif"},"Miriam Libre":{"weight":["regular","700"],"fallback":"sans-serif"},"Sarala":{"weight":["regular","700"],"fallback":"sans-serif"},"Sintony":{"weight":["regular","700"],"fallback":"sans-serif"},"Titan One":{"weight":["regular"],"fallback":"display"},"Encode Sans Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Cousine":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"PT Serif Caption":{"weight":["regular","italic"],"fallback":"serif"},"Courier Prime":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Overlock":{"weight":["regular","italic","700","700italic","900","900italic"],"fallback":"display"},"Allerta":{"weight":["regular"],"fallback":"sans-serif"},"Arsenal":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Black Han Sans":{"weight":["regular"],"fallback":"sans-serif"},"Squada One":{"weight":["regular"],"fallback":"display"},"Lateef":{"weight":["regular"],"fallback":"handwriting"},"Arima Madurai":{"weight":["100","200","300","regular","500","700","800","900"],"fallback":"display"},"Ramabhadra":{"weight":["regular"],"fallback":"sans-serif"},"Covered By Your Grace":{"weight":["regular"],"fallback":"handwriting"},"Martel Sans":{"weight":["200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Rancho":{"weight":["regular"],"fallback":"handwriting"},"Enriqueta":{"weight":["regular","500","600","700"],"fallback":"serif"},"Syncopate":{"weight":["regular","700"],"fallback":"sans-serif"},"Pinyon Script":{"weight":["regular"],"fallback":"handwriting"},"Chewy":{"weight":["regular"],"fallback":"display"},"Oleo Script":{"weight":["regular","700"],"fallback":"display"},"Kreon":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Candal":{"weight":["regular"],"fallback":"sans-serif"},"Spinnaker":{"weight":["regular"],"fallback":"sans-serif"},"Reem Kufi":{"weight":["regular"],"fallback":"sans-serif"},"Krub":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Michroma":{"weight":["regular"],"fallback":"sans-serif"},"Annie Use Your Telescope":{"weight":["regular"],"fallback":"handwriting"},"Lilita One":{"weight":["regular"],"fallback":"display"},"Coda":{"weight":["regular","800"],"fallback":"display"},"Fredericka the Great":{"weight":["regular"],"fallback":"display"},"Mukta Malar":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Bowlby One SC":{"weight":["regular"],"fallback":"display"},"Average":{"weight":["regular"],"fallback":"serif"},"Londrina Solid":{"weight":["100","300","regular","900"],"fallback":"display"},"New Tegomin":{"weight":["regular"],"fallback":"serif"},"Glegoo":{"weight":["regular","700"],"fallback":"serif"},"Pridi":{"weight":["200","300","regular","500","600","700"],"fallback":"serif"},"Boogaloo":{"weight":["regular"],"fallback":"display"},"Red Hat Text":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Aldrich":{"weight":["regular"],"fallback":"sans-serif"},"Basic":{"weight":["regular"],"fallback":"sans-serif"},"Capriola":{"weight":["regular"],"fallback":"sans-serif"},"Forum":{"weight":["regular"],"fallback":"display"},"Reenie Beanie":{"weight":["regular"],"fallback":"handwriting"},"Laila":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Alegreya Sans SC":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Share Tech Mono":{"weight":["regular"],"fallback":"monospace"},"Italianno":{"weight":["regular"],"fallback":"handwriting"},"Lalezar":{"weight":["regular"],"fallback":"display"},"Lexend Deca":{"weight":["regular"],"fallback":"sans-serif"},"Caveat Brush":{"weight":["regular"],"fallback":"handwriting"},"Shrikhand":{"weight":["regular"],"fallback":"display"},"Creepster":{"weight":["regular"],"fallback":"display"},"Kameron":{"weight":["regular","700"],"fallback":"serif"},"Coda Caption":{"weight":["800"],"fallback":"sans-serif"},"Goudy Bookletter 1911":{"weight":["regular"],"fallback":"serif"},"Coming Soon":{"weight":["regular"],"fallback":"handwriting"},"Saira Extra Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Yrsa":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Telex":{"weight":["regular"],"fallback":"sans-serif"},"Bevan":{"weight":["regular"],"fallback":"display"},"Voltaire":{"weight":["regular"],"fallback":"sans-serif"},"Days One":{"weight":["regular"],"fallback":"sans-serif"},"Cabin Sketch":{"weight":["regular","700"],"fallback":"display"},"Norican":{"weight":["regular"],"fallback":"handwriting"},"Rambla":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Mukta Vaani":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Average Sans":{"weight":["regular"],"fallback":"sans-serif"},"Arbutus Slab":{"weight":["regular"],"fallback":"serif"},"Sansita":{"weight":["regular","italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Mada":{"weight":["200","300","regular","500","600","700","900"],"fallback":"sans-serif"},"Just Another Hand":{"weight":["regular"],"fallback":"handwriting"},"Nobile":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Gilda Display":{"weight":["regular"],"fallback":"serif"},"VT323":{"weight":["regular"],"fallback":"monospace"},"Mandali":{"weight":["regular"],"fallback":"sans-serif"},"Caudex":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Anonymous Pro":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Bentham":{"weight":["regular"],"fallback":"serif"},"Overpass Mono":{"weight":["300","regular","600","700"],"fallback":"monospace"},"Sen":{"weight":["regular","700","800"],"fallback":"sans-serif"},"Kadwa":{"weight":["regular","700"],"fallback":"serif"},"Cambay":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Yesteryear":{"weight":["regular"],"fallback":"handwriting"},"Molengo":{"weight":["regular"],"fallback":"sans-serif"},"Nixie One":{"weight":["regular"],"fallback":"display"},"Scada":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Crimson Pro":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Arizonia":{"weight":["regular"],"fallback":"handwriting"},"Racing Sans One":{"weight":["regular"],"fallback":"display"},"Scheherazade":{"weight":["regular","700"],"fallback":"serif"},"Seaweed Script":{"weight":["regular"],"fallback":"display"},"Belleza":{"weight":["regular"],"fallback":"sans-serif"},"Harmattan":{"weight":["regular","700"],"fallback":"sans-serif"},"Leckerli One":{"weight":["regular"],"fallback":"handwriting"},"Ovo":{"weight":["regular"],"fallback":"serif"},"Merienda One":{"weight":["regular"],"fallback":"handwriting"},"Holtwood One SC":{"weight":["regular"],"fallback":"serif"},"Cinzel Decorative":{"weight":["regular","700","900"],"fallback":"display"},"Literata":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Mrs Saint Delafield":{"weight":["regular"],"fallback":"handwriting"},"Schoolbell":{"weight":["regular"],"fallback":"handwriting"},"Bungee Inline":{"weight":["regular"],"fallback":"display"},"Herr Von Muellerhoff":{"weight":["regular"],"fallback":"handwriting"},"Oranienbaum":{"weight":["regular"],"fallback":"serif"},"Baloo Tamma 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Sniglet":{"weight":["regular","800"],"fallback":"display"},"Bubblegum Sans":{"weight":["regular"],"fallback":"display"},"Rochester":{"weight":["regular"],"fallback":"handwriting"},"Judson":{"weight":["regular","italic","700"],"fallback":"serif"},"Marcellus SC":{"weight":["regular"],"fallback":"serif"},"Darker Grotesque":{"weight":["300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Changa One":{"weight":["regular","italic"],"fallback":"display"},"Alegreya SC":{"weight":["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Pattaya":{"weight":["regular"],"fallback":"sans-serif"},"Mallanna":{"weight":["regular"],"fallback":"sans-serif"},"Share":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Podkova":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Allerta Stencil":{"weight":["regular"],"fallback":"sans-serif"},"Charm":{"weight":["regular","700"],"fallback":"handwriting"},"Niramit":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Halant":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Graduate":{"weight":["regular"],"fallback":"display"},"Nanum Brush Script":{"weight":["regular"],"fallback":"handwriting"},"Amita":{"weight":["regular","700"],"fallback":"handwriting"},"Rozha One":{"weight":["regular"],"fallback":"serif"},"Kristi":{"weight":["regular"],"fallback":"handwriting"},"Biryani":{"weight":["200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Lustria":{"weight":["regular"],"fallback":"serif"},"Delius":{"weight":["regular"],"fallback":"handwriting"},"Suranna":{"weight":["regular"],"fallback":"serif"},"Amethysta":{"weight":["regular"],"fallback":"serif"},"Contrail One":{"weight":["regular"],"fallback":"display"},"Averia Serif Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Do Hyeon":{"weight":["regular"],"fallback":"sans-serif"},"IBM Plex Sans Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Marvel":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Rye":{"weight":["regular"],"fallback":"display"},"Fauna One":{"weight":["regular"],"fallback":"serif"},"Corben":{"weight":["regular","700"],"fallback":"display"},"Cedarville Cursive":{"weight":["regular"],"fallback":"handwriting"},"Jockey One":{"weight":["regular"],"fallback":"sans-serif"},"Libre Caslon Text":{"weight":["regular","italic","700"],"fallback":"serif"},"Carrois Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Calligraffitti":{"weight":["regular"],"fallback":"handwriting"},"Trocchi":{"weight":["regular"],"fallback":"serif"},"Spectral SC":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"serif"},"Coustard":{"weight":["regular","900"],"fallback":"serif"},"Copse":{"weight":["regular"],"fallback":"serif"},"Athiti":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Carme":{"weight":["regular"],"fallback":"sans-serif"},"Rosario":{"weight":["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Limelight":{"weight":["regular"],"fallback":"display"},"Jua":{"weight":["regular"],"fallback":"sans-serif"},"Petit Formal Script":{"weight":["regular"],"fallback":"handwriting"},"Love Ya Like A Sister":{"weight":["regular"],"fallback":"display"},"GFS Didot":{"weight":["regular"],"fallback":"serif"},"Aladin":{"weight":["regular"],"fallback":"handwriting"},"Palanquin Dark":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Amiko":{"weight":["regular","600","700"],"fallback":"sans-serif"},"Cormorant Infant":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Wallpoet":{"weight":["regular"],"fallback":"display"},"Magra":{"weight":["regular","700"],"fallback":"sans-serif"},"Grand Hotel":{"weight":["regular"],"fallback":"handwriting"},"Sunflower":{"weight":["300","500","700"],"fallback":"sans-serif"},"Big Shoulders Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Slabo 13px":{"weight":["regular"],"fallback":"serif"},"Pangolin":{"weight":["regular"],"fallback":"handwriting"},"Mr De Haviland":{"weight":["regular"],"fallback":"handwriting"},"K2D":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Marmelad":{"weight":["regular"],"fallback":"sans-serif"},"Thasadith":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"La Belle Aurore":{"weight":["regular"],"fallback":"handwriting"},"Hanuman":{"weight":["regular","700"],"fallback":"serif"},"Metrophobic":{"weight":["regular"],"fallback":"sans-serif"},"Epilogue":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Radley":{"weight":["regular","italic"],"fallback":"serif"},"Poly":{"weight":["regular","italic"],"fallback":"serif"},"Commissioner":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Averia Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"IM Fell Double Pica":{"weight":["regular","italic"],"fallback":"serif"},"Comic Neue":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"handwriting"},"Baskervville":{"weight":["regular","italic"],"fallback":"serif"},"Kelly Slab":{"weight":["regular"],"fallback":"display"},"Oxygen Mono":{"weight":["regular"],"fallback":"monospace"},"Maitree":{"weight":["200","300","regular","500","600","700"],"fallback":"serif"},"Buenard":{"weight":["regular","700"],"fallback":"serif"},"Duru Sans":{"weight":["regular"],"fallback":"sans-serif"},"Baloo Da 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Grandstander":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"display"},"Balthazar":{"weight":["regular"],"fallback":"serif"},"ZCOOL XiaoWei":{"weight":["regular"],"fallback":"serif"},"Cutive":{"weight":["regular"],"fallback":"serif"},"Antic Didone":{"weight":["regular"],"fallback":"serif"},"Waiting for the Sunrise":{"weight":["regular"],"fallback":"handwriting"},"B612 Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Chonburi":{"weight":["regular"],"fallback":"display"},"Montaga":{"weight":["regular"],"fallback":"serif"},"UnifrakturMaguntia":{"weight":["regular"],"fallback":"display"},"Kosugi":{"weight":["regular"],"fallback":"sans-serif"},"Gravitas One":{"weight":["regular"],"fallback":"display"},"Mirza":{"weight":["regular","500","600","700"],"fallback":"display"},"Manjari":{"weight":["100","regular","700"],"fallback":"sans-serif"},"Alike":{"weight":["regular"],"fallback":"serif"},"Lekton":{"weight":["regular","italic","700"],"fallback":"sans-serif"},"Sora":{"weight":["100","200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Gabriela":{"weight":["regular"],"fallback":"serif"},"Lemon":{"weight":["regular"],"fallback":"display"},"Esteban":{"weight":["regular"],"fallback":"serif"},"Alatsi":{"weight":["regular"],"fallback":"sans-serif"},"Turret Road":{"weight":["200","300","regular","500","700","800"],"fallback":"display"},"Monsieur La Doulaise":{"weight":["regular"],"fallback":"handwriting"},"Pompiere":{"weight":["regular"],"fallback":"display"},"Cormorant SC":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Kurale":{"weight":["regular"],"fallback":"serif"},"Frijole":{"weight":["regular"],"fallback":"display"},"Rammetto One":{"weight":["regular"],"fallback":"display"},"Chelsea Market":{"weight":["regular"],"fallback":"display"},"Megrim":{"weight":["regular"],"fallback":"display"},"IM Fell English":{"weight":["regular","italic"],"fallback":"serif"},"Oregano":{"weight":["regular","italic"],"fallback":"display"},"Andada":{"weight":["regular"],"fallback":"serif"},"Mate":{"weight":["regular","italic"],"fallback":"serif"},"Convergence":{"weight":["regular"],"fallback":"sans-serif"},"Rouge Script":{"weight":["regular"],"fallback":"handwriting"},"Bowlby One":{"weight":["regular"],"fallback":"display"},"Emilys Candy":{"weight":["regular"],"fallback":"display"},"Wendy One":{"weight":["regular"],"fallback":"sans-serif"},"Fira Code":{"weight":["300","regular","500","600","700"],"fallback":"monospace"},"Dawning of a New Day":{"weight":["regular"],"fallback":"handwriting"},"Sue Ellen Francisco":{"weight":["regular"],"fallback":"handwriting"},"Gurajada":{"weight":["regular"],"fallback":"serif"},"David Libre":{"weight":["regular","500","700"],"fallback":"serif"},"Sofia":{"weight":["regular"],"fallback":"handwriting"},"Short Stack":{"weight":["regular"],"fallback":"handwriting"},"Chau Philomene One":{"weight":["regular","italic"],"fallback":"sans-serif"},"Bellefair":{"weight":["regular"],"fallback":"serif"},"Belgrano":{"weight":["regular"],"fallback":"serif"},"Expletus Sans":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"display"},"Original Surfer":{"weight":["regular"],"fallback":"display"},"Doppio One":{"weight":["regular"],"fallback":"sans-serif"},"Be Vietnam":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Sail":{"weight":["regular"],"fallback":"display"},"Inder":{"weight":["regular"],"fallback":"sans-serif"},"Give You Glory":{"weight":["regular"],"fallback":"handwriting"},"IM Fell DW Pica":{"weight":["regular","italic"],"fallback":"serif"},"McLaren":{"weight":["regular"],"fallback":"display"},"Encode Sans Semi Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Bungee Shade":{"weight":["regular"],"fallback":"display"},"Baumans":{"weight":["regular"],"fallback":"display"},"Brawler":{"weight":["regular"],"fallback":"serif"},"Tenali Ramakrishna":{"weight":["regular"],"fallback":"sans-serif"},"Ceviche One":{"weight":["regular"],"fallback":"display"},"B612":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Zeyada":{"weight":["regular"],"fallback":"handwriting"},"Mountains of Christmas":{"weight":["regular","700"],"fallback":"display"},"Sedgwick Ave":{"weight":["regular"],"fallback":"handwriting"},"Gugi":{"weight":["regular"],"fallback":"display"},"Oleo Script Swash Caps":{"weight":["regular","700"],"fallback":"display"},"Skranji":{"weight":["regular","700"],"fallback":"display"},"Meddon":{"weight":["regular"],"fallback":"handwriting"},"NTR":{"weight":["regular"],"fallback":"sans-serif"},"Finger Paint":{"weight":["regular"],"fallback":"display"},"Blinker":{"weight":["100","200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Fanwood Text":{"weight":["regular","italic"],"fallback":"serif"},"Grenze Gotisch":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"display"},"Hepta Slab":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Anaheim":{"weight":["regular"],"fallback":"sans-serif"},"Major Mono Display":{"weight":["regular"],"fallback":"monospace"},"Quando":{"weight":["regular"],"fallback":"serif"},"Andika":{"weight":["regular"],"fallback":"sans-serif"},"Qwigley":{"weight":["regular"],"fallback":"handwriting"},"Vast Shadow":{"weight":["regular"],"fallback":"display"},"Happy Monkey":{"weight":["regular"],"fallback":"display"},"Montez":{"weight":["regular"],"fallback":"handwriting"},"Proza Libre":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Homenaje":{"weight":["regular"],"fallback":"sans-serif"},"Ma Shan Zheng":{"weight":["regular"],"fallback":"handwriting"},"Loved by the King":{"weight":["regular"],"fallback":"handwriting"},"Trade Winds":{"weight":["regular"],"fallback":"display"},"Stardos Stencil":{"weight":["regular","700"],"fallback":"display"},"Raleway Dots":{"weight":["regular"],"fallback":"display"},"Libre Barcode 39":{"weight":["regular"],"fallback":"display"},"Recursive":{"weight":["300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Numans":{"weight":["regular"],"fallback":"sans-serif"},"RocknRoll One":{"weight":["regular"],"fallback":"sans-serif"},"Rakkas":{"weight":["regular"],"fallback":"display"},"Mouse Memoirs":{"weight":["regular"],"fallback":"sans-serif"},"BioRhyme":{"weight":["200","300","regular","700","800"],"fallback":"serif"},"Ranchers":{"weight":["regular"],"fallback":"display"},"Patrick Hand SC":{"weight":["regular"],"fallback":"handwriting"},"Codystar":{"weight":["300","regular"],"fallback":"display"},"Rasa":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Meera Inimai":{"weight":["regular"],"fallback":"sans-serif"},"Clicker Script":{"weight":["regular"],"fallback":"handwriting"},"DM Mono":{"weight":["300","300italic","regular","italic","500","500italic"],"fallback":"monospace"},"Gaegu":{"weight":["300","regular","700"],"fallback":"handwriting"},"Aguafina Script":{"weight":["regular"],"fallback":"handwriting"},"Unkempt":{"weight":["regular","700"],"fallback":"display"},"Over the Rainbow":{"weight":["regular"],"fallback":"handwriting"},"Fondamento":{"weight":["regular","italic"],"fallback":"handwriting"},"Battambang":{"weight":["regular","700"],"fallback":"display"},"Cambo":{"weight":["regular"],"fallback":"serif"},"Crafty Girls":{"weight":["regular"],"fallback":"handwriting"},"Nova Mono":{"weight":["regular"],"fallback":"monospace"},"Tillana":{"weight":["regular","500","600","700","800"],"fallback":"handwriting"},"Alike Angular":{"weight":["regular"],"fallback":"serif"},"Kumbh Sans":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Katibeh":{"weight":["regular"],"fallback":"display"},"Sarpanch":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Antonio":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Mansalva":{"weight":["regular"],"fallback":"handwriting"},"Faster One":{"weight":["regular"],"fallback":"display"},"Federo":{"weight":["regular"],"fallback":"sans-serif"},"Dokdo":{"weight":["regular"],"fallback":"handwriting"},"Hi Melody":{"weight":["regular"],"fallback":"handwriting"},"Euphoria Script":{"weight":["regular"],"fallback":"handwriting"},"Orienta":{"weight":["regular"],"fallback":"sans-serif"},"Space Grotesk":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Galada":{"weight":["regular"],"fallback":"display"},"Timmana":{"weight":["regular"],"fallback":"sans-serif"},"JetBrains Mono":{"weight":["100","200","300","regular","500","600","700","800","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"monospace"},"Baloo Thambi 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Averia Sans Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"UnifrakturCook":{"weight":["700"],"fallback":"display"},"Tauri":{"weight":["regular"],"fallback":"sans-serif"},"Share Tech":{"weight":["regular"],"fallback":"sans-serif"},"Walter Turncoat":{"weight":["regular"],"fallback":"handwriting"},"Geo":{"weight":["regular","italic"],"fallback":"sans-serif"},"Atma":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Almendra":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Jomhuria":{"weight":["regular"],"fallback":"display"},"Strait":{"weight":["regular"],"fallback":"sans-serif"},"Encode Sans Expanded":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Metamorphous":{"weight":["regular"],"fallback":"display"},"Iceland":{"weight":["regular"],"fallback":"display"},"Ledger":{"weight":["regular"],"fallback":"serif"},"Poller One":{"weight":["regular"],"fallback":"display"},"Vollkorn SC":{"weight":["regular","600","700","900"],"fallback":"serif"},"Vesper Libre":{"weight":["regular","500","700","900"],"fallback":"serif"},"Aref Ruqaa":{"weight":["regular","700"],"fallback":"serif"},"Livvic":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Caladea":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Montserrat Subrayada":{"weight":["regular","700"],"fallback":"sans-serif"},"Vampiro One":{"weight":["regular"],"fallback":"display"},"Farro":{"weight":["300","regular","500","700"],"fallback":"sans-serif"},"New Rocker":{"weight":["regular"],"fallback":"display"},"Delius Swash Caps":{"weight":["regular"],"fallback":"handwriting"},"Calistoga":{"weight":["regular"],"fallback":"display"},"Carrois Gothic SC":{"weight":["regular"],"fallback":"sans-serif"},"Italiana":{"weight":["regular"],"fallback":"serif"},"Inknut Antiqua":{"weight":["300","regular","500","600","700","800","900"],"fallback":"serif"},"Life Savers":{"weight":["regular","700","800"],"fallback":"display"},"Imprima":{"weight":["regular"],"fallback":"sans-serif"},"Mako":{"weight":["regular"],"fallback":"sans-serif"},"Lily Script One":{"weight":["regular"],"fallback":"display"},"Bilbo Swash Caps":{"weight":["regular"],"fallback":"handwriting"},"IM Fell English SC":{"weight":["regular"],"fallback":"serif"},"Red Rose":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Shojumaru":{"weight":["regular"],"fallback":"display"},"Prosto One":{"weight":["regular"],"fallback":"display"},"Bodoni Moda":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Mukta Mahee":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Bubbler One":{"weight":["regular"],"fallback":"sans-serif"},"The Girl Next Door":{"weight":["regular"],"fallback":"handwriting"},"Artifika":{"weight":["regular"],"fallback":"serif"},"Cantora One":{"weight":["regular"],"fallback":"sans-serif"},"Scope One":{"weight":["regular"],"fallback":"serif"},"Yusei Magic":{"weight":["regular"],"fallback":"sans-serif"},"Oxanium":{"weight":["200","300","regular","500","600","700","800"],"fallback":"display"},"Tienne":{"weight":["regular","700","900"],"fallback":"serif"},"Salsa":{"weight":["regular"],"fallback":"display"},"Flamenco":{"weight":["300","regular"],"fallback":"display"},"Port Lligat Sans":{"weight":["regular"],"fallback":"sans-serif"},"Denk One":{"weight":["regular"],"fallback":"sans-serif"},"Fontdiner Swanky":{"weight":["regular"],"fallback":"display"},"Nova Round":{"weight":["regular"],"fallback":"display"},"Gafata":{"weight":["regular"],"fallback":"sans-serif"},"Cormorant Upright":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Cherry Cream Soda":{"weight":["regular"],"fallback":"display"},"Asul":{"weight":["regular","700"],"fallback":"sans-serif"},"Big Shoulders Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Voces":{"weight":["regular"],"fallback":"display"},"Dynalight":{"weight":["regular"],"fallback":"display"},"Peralta":{"weight":["regular"],"fallback":"display"},"Mina":{"weight":["regular","700"],"fallback":"sans-serif"},"Headland One":{"weight":["regular"],"fallback":"serif"},"Medula One":{"weight":["regular"],"fallback":"display"},"Englebert":{"weight":["regular"],"fallback":"sans-serif"},"Nova Square":{"weight":["regular"],"fallback":"display"},"Delius Unicase":{"weight":["regular","700"],"fallback":"handwriting"},"Sumana":{"weight":["regular","700"],"fallback":"serif"},"Bilbo":{"weight":["regular"],"fallback":"handwriting"},"Engagement":{"weight":["regular"],"fallback":"handwriting"},"ZCOOL QingKe HuangYou":{"weight":["regular"],"fallback":"display"},"Fresca":{"weight":["regular"],"fallback":"sans-serif"},"Ranga":{"weight":["regular","700"],"fallback":"display"},"Orelega One":{"weight":["regular"],"fallback":"display"},"Zen Dots":{"weight":["regular"],"fallback":"display"},"Shippori Mincho":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Henny Penny":{"weight":["regular"],"fallback":"display"},"Della Respira":{"weight":["regular"],"fallback":"serif"},"Cherry Swash":{"weight":["regular","700"],"fallback":"display"},"Notable":{"weight":["regular"],"fallback":"sans-serif"},"Arya":{"weight":["regular","700"],"fallback":"sans-serif"},"Slackey":{"weight":["regular"],"fallback":"display"},"Vibur":{"weight":["regular"],"fallback":"handwriting"},"Coiny":{"weight":["regular"],"fallback":"display"},"Lexend Zetta":{"weight":["regular"],"fallback":"sans-serif"},"Elsie":{"weight":["regular","900"],"fallback":"display"},"Fjord One":{"weight":["regular"],"fallback":"serif"},"Puritan":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Just Me Again Down Here":{"weight":["regular"],"fallback":"handwriting"},"Khmer":{"weight":["regular"],"fallback":"display"},"Girassol":{"weight":["regular"],"fallback":"display"},"Bellota Text":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Yatra One":{"weight":["regular"],"fallback":"display"},"Stalemate":{"weight":["regular"],"fallback":"handwriting"},"Wire One":{"weight":["regular"],"fallback":"sans-serif"},"Spicy Rice":{"weight":["regular"],"fallback":"display"},"Saira Stencil One":{"weight":["regular"],"fallback":"display"},"Kite One":{"weight":["regular"],"fallback":"sans-serif"},"Port Lligat Slab":{"weight":["regular"],"fallback":"serif"},"Baloo Bhaina 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Pavanam":{"weight":["regular"],"fallback":"sans-serif"},"Eater":{"weight":["regular"],"fallback":"display"},"Text Me One":{"weight":["regular"],"fallback":"sans-serif"},"Ribeye":{"weight":["regular"],"fallback":"display"},"Pirata One":{"weight":["regular"],"fallback":"display"},"Amarante":{"weight":["regular"],"fallback":"display"},"Milonga":{"weight":["regular"],"fallback":"display"},"Habibi":{"weight":["regular"],"fallback":"serif"},"Ruslan Display":{"weight":["regular"],"fallback":"display"},"Encode Sans Semi Expanded":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Nokora":{"weight":["regular","700"],"fallback":"serif"},"Rowdies":{"weight":["300","regular","700"],"fallback":"display"},"Kranky":{"weight":["regular"],"fallback":"display"},"Bigelow Rules":{"weight":["regular"],"fallback":"display"},"League Script":{"weight":["regular"],"fallback":"handwriting"},"Swanky and Moo Moo":{"weight":["regular"],"fallback":"handwriting"},"Karantina":{"weight":["300","regular","700"],"fallback":"display"},"Lovers Quarrel":{"weight":["regular"],"fallback":"handwriting"},"Mate SC":{"weight":["regular"],"fallback":"serif"},"Manuale":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Germania One":{"weight":["regular"],"fallback":"display"},"Sura":{"weight":["regular","700"],"fallback":"serif"},"Sarina":{"weight":["regular"],"fallback":"display"},"Macondo Swash Caps":{"weight":["regular"],"fallback":"display"},"Kotta One":{"weight":["regular"],"fallback":"serif"},"IM Fell French Canon SC":{"weight":["regular"],"fallback":"serif"},"Julee":{"weight":["regular"],"fallback":"handwriting"},"Charmonman":{"weight":["regular","700"],"fallback":"handwriting"},"Shanti":{"weight":["regular"],"fallback":"sans-serif"},"Gamja Flower":{"weight":["regular"],"fallback":"handwriting"},"Averia Gruesa Libre":{"weight":["regular"],"fallback":"display"},"Stint Ultra Expanded":{"weight":["regular"],"fallback":"display"},"Uncial Antiqua":{"weight":["regular"],"fallback":"display"},"Mystery Quest":{"weight":["regular"],"fallback":"display"},"Goldman":{"weight":["regular","700"],"fallback":"display"},"Paprika":{"weight":["regular"],"fallback":"display"},"IM Fell French Canon":{"weight":["regular","italic"],"fallback":"serif"},"Prociono":{"weight":["regular"],"fallback":"serif"},"Kodchasan":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Libre Barcode 39 Text":{"weight":["regular"],"fallback":"display"},"Quintessential":{"weight":["regular"],"fallback":"handwriting"},"Moul":{"weight":["regular"],"fallback":"display"},"Libre Barcode 128":{"weight":["regular"],"fallback":"display"},"Ramaraja":{"weight":["regular"],"fallback":"serif"},"Modak":{"weight":["regular"],"fallback":"display"},"Song Myung":{"weight":["regular"],"fallback":"serif"},"East Sea Dokdo":{"weight":["regular"],"fallback":"handwriting"},"Crushed":{"weight":["regular"],"fallback":"display"},"Dekko":{"weight":["regular"],"fallback":"handwriting"},"Chilanka":{"weight":["regular"],"fallback":"handwriting"},"Hanalei Fill":{"weight":["regular"],"fallback":"display"},"Mogra":{"weight":["regular"],"fallback":"display"},"Baloo Tammudu 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Baloo Bhai 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Libre Barcode 39 Extended Text":{"weight":["regular"],"fallback":"display"},"Rosarivo":{"weight":["regular","italic"],"fallback":"serif"},"KoHo":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Offside":{"weight":["regular"],"fallback":"display"},"Reggae One":{"weight":["regular"],"fallback":"display"},"Syne":{"weight":["regular","500","600","700","800"],"fallback":"sans-serif"},"Zilla Slab Highlight":{"weight":["regular","700"],"fallback":"display"},"Donegal One":{"weight":["regular"],"fallback":"serif"},"Bellota":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Stoke":{"weight":["300","regular"],"fallback":"serif"},"Cormorant Unicase":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Cagliostro":{"weight":["regular"],"fallback":"sans-serif"},"Rationale":{"weight":["regular"],"fallback":"sans-serif"},"Margarine":{"weight":["regular"],"fallback":"display"},"Sancreek":{"weight":["regular"],"fallback":"display"},"Inria Serif":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"serif"},"Overlock SC":{"weight":["regular"],"fallback":"display"},"Nosifer":{"weight":["regular"],"fallback":"display"},"Libre Barcode EAN13 Text":{"weight":["regular"],"fallback":"display"},"Yeon Sung":{"weight":["regular"],"fallback":"display"},"Ruluko":{"weight":["regular"],"fallback":"sans-serif"},"Simonetta":{"weight":["regular","italic","900","900italic"],"fallback":"display"},"Lakki Reddy":{"weight":["regular"],"fallback":"handwriting"},"Baloo Paaji 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Chango":{"weight":["regular"],"fallback":"display"},"Galdeano":{"weight":["regular"],"fallback":"sans-serif"},"Fahkwang":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Elsie Swash Caps":{"weight":["regular","900"],"fallback":"display"},"Buda":{"weight":["300"],"fallback":"display"},"Condiment":{"weight":["regular"],"fallback":"handwriting"},"Barrio":{"weight":["regular"],"fallback":"display"},"Chicle":{"weight":["regular"],"fallback":"display"},"Angkor":{"weight":["regular"],"fallback":"display"},"Akronim":{"weight":["regular"],"fallback":"display"},"Tomorrow":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Sonsie One":{"weight":["regular"],"fallback":"display"},"Kumar One":{"weight":["regular"],"fallback":"display"},"Autour One":{"weight":["regular"],"fallback":"display"},"Libre Caslon Display":{"weight":["regular"],"fallback":"serif"},"Farsan":{"weight":["regular"],"fallback":"display"},"Fenix":{"weight":["regular"],"fallback":"serif"},"Solway":{"weight":["300","regular","500","700","800"],"fallback":"serif"},"Kulim Park":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Stint Ultra Condensed":{"weight":["regular"],"fallback":"display"},"Metal":{"weight":["regular"],"fallback":"display"},"Rum Raisin":{"weight":["regular"],"fallback":"sans-serif"},"Redressed":{"weight":["regular"],"fallback":"handwriting"},"Tulpen One":{"weight":["regular"],"fallback":"display"},"Petrona":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Marko One":{"weight":["regular"],"fallback":"serif"},"Asar":{"weight":["regular"],"fallback":"serif"},"Nova Flat":{"weight":["regular"],"fallback":"display"},"Koulen":{"weight":["regular"],"fallback":"display"},"Lexend Exa":{"weight":["regular"],"fallback":"sans-serif"},"Londrina Outline":{"weight":["regular"],"fallback":"display"},"Cute Font":{"weight":["regular"],"fallback":"display"},"IM Fell Great Primer":{"weight":["regular","italic"],"fallback":"serif"},"Junge":{"weight":["regular"],"fallback":"serif"},"Stylish":{"weight":["regular"],"fallback":"sans-serif"},"Lexend":{"weight":["100","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Spirax":{"weight":["regular"],"fallback":"display"},"Piazzolla":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Piedra":{"weight":["regular"],"fallback":"display"},"Ribeye Marrow":{"weight":["regular"],"fallback":"display"},"Dorsa":{"weight":["regular"],"fallback":"sans-serif"},"Ibarra Real Nova":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"IM Fell DW Pica SC":{"weight":["regular"],"fallback":"serif"},"Wellfleet":{"weight":["regular"],"fallback":"display"},"Eagle Lake":{"weight":["regular"],"fallback":"handwriting"},"Meie Script":{"weight":["regular"],"fallback":"handwriting"},"Goblin One":{"weight":["regular"],"fallback":"display"},"Flavors":{"weight":["regular"],"fallback":"display"},"Gotu":{"weight":["regular"],"fallback":"sans-serif"},"Linden Hill":{"weight":["regular","italic"],"fallback":"serif"},"Chathura":{"weight":["100","300","regular","700","800"],"fallback":"sans-serif"},"Croissant One":{"weight":["regular"],"fallback":"display"},"Jomolhari":{"weight":["regular"],"fallback":"serif"},"Srisakdi":{"weight":["regular","700"],"fallback":"display"},"Modern Antiqua":{"weight":["regular"],"fallback":"display"},"Joti One":{"weight":["regular"],"fallback":"display"},"Kavoon":{"weight":["regular"],"fallback":"display"},"Sulphur Point":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Castoro":{"weight":["regular","italic"],"fallback":"serif"},"Chela One":{"weight":["regular"],"fallback":"display"},"Atomic Age":{"weight":["regular"],"fallback":"display"},"Maiden Orange":{"weight":["regular"],"fallback":"display"},"Ruthie":{"weight":["regular"],"fallback":"handwriting"},"Bayon":{"weight":["regular"],"fallback":"display"},"Potta One":{"weight":["regular"],"fallback":"display"},"Iceberg":{"weight":["regular"],"fallback":"display"},"Bigshot One":{"weight":["regular"],"fallback":"display"},"Gorditas":{"weight":["regular","700"],"fallback":"display"},"Sree Krushnadevaraya":{"weight":["regular"],"fallback":"serif"},"Trykker":{"weight":["regular"],"fallback":"serif"},"Kufam":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"display"},"Diplomata SC":{"weight":["regular"],"fallback":"display"},"Poor Story":{"weight":["regular"],"fallback":"display"},"Sirin Stencil":{"weight":["regular"],"fallback":"display"},"Kavivanar":{"weight":["regular"],"fallback":"handwriting"},"Syne Mono":{"weight":["regular"],"fallback":"monospace"},"Metal Mania":{"weight":["regular"],"fallback":"display"},"Arbutus":{"weight":["regular"],"fallback":"display"},"Unlock":{"weight":["regular"],"fallback":"display"},"MuseoModerno":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"display"},"Glass Antiqua":{"weight":["regular"],"fallback":"display"},"Miniver":{"weight":["regular"],"fallback":"display"},"Griffy":{"weight":["regular"],"fallback":"display"},"Bokor":{"weight":["regular"],"fallback":"display"},"Felipa":{"weight":["regular"],"fallback":"handwriting"},"Inika":{"weight":["regular","700"],"fallback":"serif"},"Princess Sofia":{"weight":["regular"],"fallback":"handwriting"},"Mrs Sheppards":{"weight":["regular"],"fallback":"handwriting"},"Monofett":{"weight":["regular"],"fallback":"display"},"Sahitya":{"weight":["regular","700"],"fallback":"serif"},"Dela Gothic One":{"weight":["regular"],"fallback":"display"},"Shippori Mincho B1":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Beth Ellen":{"weight":["regular"],"fallback":"handwriting"},"Lancelot":{"weight":["regular"],"fallback":"display"},"Rhodium Libre":{"weight":["regular"],"fallback":"serif"},"Fraunces":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Hachi Maru Pop":{"weight":["regular"],"fallback":"handwriting"},"Snippet":{"weight":["regular"],"fallback":"sans-serif"},"Content":{"weight":["regular","700"],"fallback":"display"},"Revalia":{"weight":["regular"],"fallback":"display"},"Diplomata":{"weight":["regular"],"fallback":"display"},"Libre Barcode 128 Text":{"weight":["regular"],"fallback":"display"},"Jacques Francois Shadow":{"weight":["regular"],"fallback":"display"},"Long Cang":{"weight":["regular"],"fallback":"handwriting"},"Caesar Dressing":{"weight":["regular"],"fallback":"display"},"Odor Mean Chey":{"weight":["regular"],"fallback":"display"},"Jolly Lodger":{"weight":["regular"],"fallback":"display"},"Texturina":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"DotGothic16":{"weight":["regular"],"fallback":"sans-serif"},"Ewert":{"weight":["regular"],"fallback":"display"},"Romanesco":{"weight":["regular"],"fallback":"handwriting"},"Kantumruy":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Asset":{"weight":["regular"],"fallback":"display"},"Odibee Sans":{"weight":["regular"],"fallback":"display"},"Emblema One":{"weight":["regular"],"fallback":"display"},"Kdam Thmor":{"weight":["regular"],"fallback":"display"},"Dr Sugiyama":{"weight":["regular"],"fallback":"handwriting"},"Bahiana":{"weight":["regular"],"fallback":"display"},"GFS Neohellenic":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Oldenburg":{"weight":["regular"],"fallback":"display"},"Molle":{"weight":["italic"],"fallback":"handwriting"},"Ravi Prakash":{"weight":["regular"],"fallback":"display"},"Gayathri":{"weight":["100","regular","700"],"fallback":"sans-serif"},"Almendra SC":{"weight":["regular"],"fallback":"serif"},"Varta":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Risque":{"weight":["regular"],"fallback":"display"},"Sansita Swashed":{"weight":["300","regular","500","600","700","800","900"],"fallback":"display"},"Kiwi Maru":{"weight":["300","regular","500"],"fallback":"serif"},"Dangrek":{"weight":["regular"],"fallback":"display"},"Devonshire":{"weight":["regular"],"fallback":"handwriting"},"Big Shoulders Stencil Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Jim Nightshade":{"weight":["regular"],"fallback":"handwriting"},"Smythe":{"weight":["regular"],"fallback":"display"},"Stick":{"weight":["regular"],"fallback":"sans-serif"},"Lexend Mega":{"weight":["regular"],"fallback":"sans-serif"},"Siemreap":{"weight":["regular"],"fallback":"display"},"Londrina Shadow":{"weight":["regular"],"fallback":"display"},"Train One":{"weight":["regular"],"fallback":"display"},"IM Fell Great Primer SC":{"weight":["regular"],"fallback":"serif"},"Barriecito":{"weight":["regular"],"fallback":"display"},"Underdog":{"weight":["regular"],"fallback":"display"},"Stalinist One":{"weight":["regular"],"fallback":"display"},"Mr Bedfort":{"weight":["regular"],"fallback":"handwriting"},"Freehand":{"weight":["regular"],"fallback":"display"},"MedievalSharp":{"weight":["regular"],"fallback":"display"},"Lexend Giga":{"weight":["regular"],"fallback":"sans-serif"},"Keania One":{"weight":["regular"],"fallback":"display"},"Peddana":{"weight":["regular"],"fallback":"serif"},"Galindo":{"weight":["regular"],"fallback":"display"},"Fascinate":{"weight":["regular"],"fallback":"display"},"Londrina Sketch":{"weight":["regular"],"fallback":"display"},"Gupter":{"weight":["regular","500","700"],"fallback":"serif"},"Nova Slim":{"weight":["regular"],"fallback":"display"},"Snowburst One":{"weight":["regular"],"fallback":"display"},"ZCOOL KuaiLe":{"weight":["regular"],"fallback":"display"},"Plaster":{"weight":["regular"],"fallback":"display"},"Fascinate Inline":{"weight":["regular"],"fallback":"display"},"Newsreader":{"weight":["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"serif"},"Purple Purse":{"weight":["regular"],"fallback":"display"},"Sedgwick Ave Display":{"weight":["regular"],"fallback":"handwriting"},"Jacques Francois":{"weight":["regular"],"fallback":"serif"},"Almendra Display":{"weight":["regular"],"fallback":"display"},"Irish Grover":{"weight":["regular"],"fallback":"display"},"Kumar One Outline":{"weight":["regular"],"fallback":"display"},"Andika New Basic":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Libre Barcode 39 Extended":{"weight":["regular"],"fallback":"display"},"Taprom":{"weight":["regular"],"fallback":"display"},"Miss Fajardose":{"weight":["regular"],"fallback":"handwriting"},"IM Fell Double Pica SC":{"weight":["regular"],"fallback":"serif"},"Macondo":{"weight":["regular"],"fallback":"display"},"Ruge Boogie":{"weight":["regular"],"fallback":"handwriting"},"Sunshiney":{"weight":["regular"],"fallback":"handwriting"},"Brygada 1918":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Grenze":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Erica One":{"weight":["regular"],"fallback":"display"},"Seymour One":{"weight":["regular"],"fallback":"sans-serif"},"Supermercado One":{"weight":["regular"],"fallback":"display"},"Zhi Mang Xing":{"weight":["regular"],"fallback":"handwriting"},"Butterfly Kids":{"weight":["regular"],"fallback":"handwriting"},"Kirang Haerang":{"weight":["regular"],"fallback":"display"},"Federant":{"weight":["regular"],"fallback":"display"},"Liu Jian Mao Cao":{"weight":["regular"],"fallback":"handwriting"},"Chenla":{"weight":["regular"],"fallback":"display"},"Hanalei":{"weight":["regular"],"fallback":"display"},"Langar":{"weight":["regular"],"fallback":"display"},"Trochut":{"weight":["regular","italic","700"],"fallback":"display"},"Smokum":{"weight":["regular"],"fallback":"display"},"Black And White Picture":{"weight":["regular"],"fallback":"sans-serif"},"Preahvihear":{"weight":["regular"],"fallback":"display"},"Bungee Outline":{"weight":["regular"],"fallback":"display"},"Astloch":{"weight":["regular","700"],"fallback":"display"},"Fasthand":{"weight":["regular"],"fallback":"serif"},"Akaya Telivigala":{"weight":["regular"],"fallback":"display"},"Inria Sans":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"sans-serif"},"Bonbon":{"weight":["regular"],"fallback":"handwriting"},"Combo":{"weight":["regular"],"fallback":"display"},"Nova Script":{"weight":["regular"],"fallback":"display"},"Sofadi One":{"weight":["regular"],"fallback":"display"},"Passero One":{"weight":["regular"],"fallback":"display"},"Suwannaphum":{"weight":["regular"],"fallback":"display"},"Miltonian Tattoo":{"weight":["regular"],"fallback":"display"},"Bungee Hairline":{"weight":["regular"],"fallback":"display"},"Gidugu":{"weight":["regular"],"fallback":"sans-serif"},"Geostar Fill":{"weight":["regular"],"fallback":"display"},"Nerko One":{"weight":["regular"],"fallback":"handwriting"},"Lacquer":{"weight":["regular"],"fallback":"display"},"Butcherman":{"weight":["regular"],"fallback":"display"},"Sevillana":{"weight":["regular"],"fallback":"display"},"Nova Oval":{"weight":["regular"],"fallback":"display"},"Aubrey":{"weight":["regular"],"fallback":"display"},"Akaya Kanadaka":{"weight":["regular"],"fallback":"display"},"Nova Cut":{"weight":["regular"],"fallback":"display"},"Vibes":{"weight":["regular"],"fallback":"display"},"Miltonian":{"weight":["regular"],"fallback":"display"},"Moulpali":{"weight":["regular"],"fallback":"display"},"BioRhyme Expanded":{"weight":["200","300","regular","700","800"],"fallback":"serif"},"Bahianita":{"weight":["regular"],"fallback":"display"},"Suravaram":{"weight":["regular"],"fallback":"serif"},"Fruktur":{"weight":["regular"],"fallback":"display"},"Single Day":{"weight":["regular"],"fallback":"display"},"Imbue":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Lexend Tera":{"weight":["regular"],"fallback":"sans-serif"},"Big Shoulders Inline Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Dhurjati":{"weight":["regular"],"fallback":"sans-serif"},"Warnes":{"weight":["regular"],"fallback":"display"},"Kenia":{"weight":["regular"],"fallback":"display"},"Lexend Peta":{"weight":["regular"],"fallback":"sans-serif"},"Big Shoulders Stencil Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Geostar":{"weight":["regular"],"fallback":"display"},"Big Shoulders Inline Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Oi":{"weight":["regular"],"fallback":"display"},"Xanh Mono":{"weight":["regular","italic"],"fallback":"monospace"},"Viaoda Libre":{"weight":["regular"],"fallback":"display"},"Truculenta":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Syne Tactile":{"weight":["regular"],"fallback":"display"},"Trispace":{"weight":["100","200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Ballet":{"weight":["regular"],"fallback":"handwriting"},"Benne":{"weight":["regular"],"fallback":"serif"}}');function tr(a){const{setAttributes:l,attributes:n,options:o=[],deviceType:s,computedStyles:c={}}=a,{fontFamily:u,fontFamilyFallback:g,googleFont:d,googleFontVariants:b,fontWeight:p,textTransform:m,fontSizeUnit:f}=n,[h,k]=(0,e.useState)(o);(0,e.useEffect)((()=>{"Desktop"!==s&&k(h.filter((e=>"fontWeight"!==e&&"textTransform"!==e&&"fontFamily"!==e)))}),[s]);const v=[{value:"",label:(0,i.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(er).slice(0,20).forEach((e=>{v.push({value:e,label:e})}));let y=[{value:"",label:(0,i.__)("Default","generateblocks")},{value:"normal",label:(0,i.__)("Normal","generateblocks")},{value:"bold",label:(0,i.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}];const w=[{value:"",label:(0,i.__)("Default","generateblocks")},{value:"uppercase",label:(0,i.__)("Uppercase","generateblocks")},{value:"lowercase",label:(0,i.__)("Lowercase","generateblocks")},{value:"capitalize",label:(0,i.__)("Capitalize","generateblocks")},{value:"initial",label:(0,i.__)("Normal","generateblocks")}];void 0!==er[u]&&void 0!==er[u].weight&&(y=[{value:"",label:(0,i.__)("Default","generateblocks")},{value:"normal",label:(0,i.__)("Normal","generateblocks")},{value:"bold",label:(0,i.__)("Bold","generateblocks")}],er[u].weight.filter((function(e){const t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e||"regular"===e)})).forEach((e=>{y.push({value:e,label:e})})));const _=e=>{"other"===e&&(e=""),l({fontFamily:e}),void 0!==er[e]?l({googleFont:!0,fontFamilyFallback:er[e].fallback,googleFontVariants:er[e].weight.join(", ")}):l({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})};return(0,e.createElement)("div",{className:"gblocks-typography-component"},(h.includes("fontWeight")||h.includes("textTransform"))&&(0,e.createElement)(r.BaseControl,{className:"gblocks-typography-component__appearance"},h.includes("fontWeight")&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Weight","generateblocks"),value:p,options:y,onChange:e=>{l({fontWeight:e})}}),h.includes("textTransform")&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Transform","generateblocks"),value:m,options:w,onChange:e=>{l({textTransform:e})}})),h.includes("fontSize")&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Font Size","generateblocks"),attributeName:"fontSize",units:["px","em","%"],device:s,defaultPlaceholder:c.fontSize&&"px"===f?c.fontSize:"",presets:[{unit:"px",data:[13,17,25,35]}],min:"1"})),h.includes("lineHeight")&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Line Height","generateblocks"),attributeName:"lineHeight",units:["px","em","%"],device:s,presets:[{unit:"em",data:[{label:(0,i.__)("Small","generateblocks"),value:.8},{label:(0,i.__)("Medium","generateblocks"),value:1},{label:(0,i.__)("Large","generateblocks"),value:1.5}]}],min:"0",step:.1})),h.includes("letterSpacing")&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Letter Spacing","generateblocks"),attributeName:"letterSpacing",unit:"em",units:["em"],device:s,presets:[{unit:"em",data:[{label:(0,i.__)("Small","generateblocks"),value:-.02},{label:(0,i.__)("Medium","generateblocks"),value:.02},{label:(0,i.__)("Large","generateblocks"),value:.05}]}],min:-1,step:.01})),h.includes("fontFamily")&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{className:"gblocks-typography-component__font-family"},(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Font Family","generateblocks"),options:v,onChange:e=>{l({fontFamily:e}),_(e)}}),(0,e.createElement)("div",{className:"gblocks-typography-component__font-family-input"},(0,e.createElement)(r.TextControl,{value:u,placeholder:(0,i.__)("Enter font name","generateblocks"),onChange:e=>_(e)}),(!!g||!!d)&&(0,e.createElement)(r.TextControl,{value:g,placeholder:(0,i.__)("sans-serif","generateblocks"),onChange:e=>{l({fontFamilyFallback:e})}}))),""!==u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use Google Fonts API","generateblocks"),checked:!!d,onChange:e=>{l({googleFont:e}),e&&void 0!==er[u]&&l({fontFamilyFallback:er[u].fallback,googleFontVariants:er[u].weight.join(", ")})}}),!!d&&(0,e.createElement)(r.TextControl,{label:(0,i.__)("Variants","generateblocks"),value:b,placeholder:(0,i.__)("300, 400, 400i","generateblocks"),onChange:e=>{l({googleFontVariants:e})}}))))}var ar=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),lr=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));function nr(t){const{setAttributes:a,attributes:l,label:n=(0,i.__)("Padding","generateblocks"),type:o="padding",labelTop:s=(0,i.__)("Top","generateblocks"),labelRight:c=(0,i.__)("Right","generateblocks"),labelBottom:u=(0,i.__)("Bottom","generateblocks"),labelLeft:g=(0,i.__)("Left","generateblocks"),device:d,units:b,computedStyles:p={}}=t,m={top:o+"Top",right:o+"Right",bottom:o+"Bottom",left:o+"Left",unit:o+"Unit",sync:o+"SyncUnits"},f={top:s,right:c,bottom:u,left:g};"borderRadius"===o&&(m.top="borderRadiusTopLeft",m.right="borderRadiusTopRight",m.bottom="borderRadiusBottomRight",m.left="borderRadiusBottomLeft",f.top=(0,i._x)("T-Left","short for Top Left","generateblocks"),f.right=(0,i._x)("T-Right","short for Top Right","generateblocks"),f.bottom=(0,i._x)("B-Right","short for Bottom Right","generateblocks"),f.left=(0,i._x)("B-Left","short for Bottom Left","generateblocks")),"Desktop"!==d&&(m.top+=d,m.right+=d,m.bottom+=d,m.left+=d);const h=e=>a({[m.top]:e,[m.right]:e,[m.bottom]:e,[m.left]:e});return(0,e.createElement)(r.BaseControl,{className:"components-gblocks-dimensions-control"},(0,e.createElement)(x,{label:n,value:void 0!==l[m.unit]?l[m.unit]:"px",units:b,onClick:e=>(e=>a({[[m.unit]]:e}))(e)}),(0,e.createElement)("div",{className:"components-gblocks-dimensions-control__inputs"},(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.top,className:"components-gblocks-dimensions-control__number",placeholder:B(m.top,l,d,"margin"===o&&"px"===l.marginUnit?p.marginTop:""),type:"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),l[m.sync]?h(t):(e=>{a({[m.top]:e})})(t)}
4
- /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Top","generateblocks"),n),value:l[m.top]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.top,className:"gblocks-dimensions-control__label"},f.top)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.right,className:"components-gblocks-dimensions-control__number",placeholder:B(m.right,l,d,""),type:"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),l[m.sync]?h(t):(e=>{a({[m.right]:e})})(t)}
5
- /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Right","generateblocks"),n),value:l[m.right]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.right,className:"gblocks-dimensions-control__label"},f.right)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.bottom,className:"components-gblocks-dimensions-control__number",placeholder:B(m.bottom,l,d,"margin"===o&&"px"===l.marginUnit?p.marginBottom:""),type:"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),l[m.sync]?h(t):(e=>{a({[m.bottom]:e})})(t)}
6
- /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Bottom","generateblocks"),n),value:l[m.bottom]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.bottom,className:"gblocks-dimensions-control__label"},f.bottom)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.left,className:"components-gblocks-dimensions-control__number",placeholder:B(m.left,l,d,""),type:"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),l[m.sync]?h(t):(e=>{a({[m.left]:e})})(t)}
7
- /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Left","generateblocks"),n),value:l[m.left]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.left,className:"gblocks-dimensions-control__label"},f.left)),(0,e.createElement)(r.Tooltip,{text:l[m.sync]?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks")},(0,e.createElement)(r.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":l[m.sync]?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks"),isPrimary:!!l[m.sync]&&l[m.sync],"aria-pressed":!!l[m.sync]&&l[m.sync],onClick:()=>(e=>{const t=[l[m.top],l[m.right],l[m.bottom],l[m.left]].filter((e=>""!==e));if(0===t.length)return void a({[e]:!l[e]});const n=Math.max.apply(null,t).toString();a({[e]:!l[e],[m.top]:n,[m.right]:n,[m.bottom]:n,[m.left]:n})})(m.sync),isSmall:!0},l[m.sync]?ar:lr))))}function rr(a){const{dimensions:l,deviceType:n}=a,r=(0,m.applyFilters)("generateblocks.editor.dimensionGroupItems",l,a);return(0,e.createElement)(e.Fragment,null,r.map(((l,r)=>(0,e.createElement)(nr,t({},a,{key:r,device:n,type:l.type,label:l.label,units:l.units,computedStyles:l.computedStyles})))))}function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}function or(e,t){if(null==e)return{};var a,l,n={},r=Object.keys(e);for(l=0;l<r.length;l++)t.indexOf(a=r[l])>=0||(n[a]=e[a]);return n}function sr(e){var t=(0,v.useRef)(e),a=(0,v.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,a.current}var cr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e<t?t:e},ur=function(e){return"touches"in e},gr=function(e){return e&&e.ownerDocument.defaultView||self},dr=function(e,t,a){var l=e.getBoundingClientRect(),n=ur(t)?function(e,t){for(var a=0;a<e.length;a++)if(e[a].identifier===t)return e[a];return e[0]}(t.touches,a):t;return{left:cr((n.pageX-(l.left+gr(e).pageXOffset))/l.width),top:cr((n.pageY-(l.top+gr(e).pageYOffset))/l.height)}},br=function(e){!ur(e)&&e.preventDefault()},pr=y().memo((function(e){var t=e.onMove,a=e.onKey,l=or(e,["onMove","onKey"]),n=(0,v.useRef)(null),r=sr(t),i=sr(a),o=(0,v.useRef)(null),s=(0,v.useRef)(!1),c=(0,v.useMemo)((function(){var e=function(e){br(e),(ur(e)?e.touches.length>0:e.buttons>0)&&n.current?r(dr(n.current,e,o.current)):a(!1)},t=function(){return a(!1)};function a(a){var l=s.current,r=gr(n.current),i=a?r.addEventListener:r.removeEventListener;i(l?"touchmove":"mousemove",e),i(l?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,l=n.current;if(l&&(br(t),!function(e,t){return t&&!ur(e)}(t,s.current)&&l)){if(ur(t)){s.current=!0;var i=t.changedTouches||[];i.length&&(o.current=i[0].identifier)}l.focus(),r(dr(l,t,o.current)),a(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),i({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},a]}),[i,r]),u=c[0],g=c[1],d=c[2];return(0,v.useEffect)((function(){return d}),[d]),y().createElement("div",ir({},l,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:n,onKeyDown:g,tabIndex:0,role:"slider"}))})),mr=function(e){return e.filter(Boolean).join(" ")},fr=function(e){var t=e.color,a=e.left,l=e.top,n=void 0===l?.5:l,r=mr(["react-colorful__pointer",e.className]);return y().createElement("div",{className:r,style:{top:100*n+"%",left:100*a+"%"}},y().createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},hr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a},kr=(Math.PI,function(e){var t=e.s,a=e.v,l=e.a,n=(200-t)*a/100;return{h:hr(e.h),s:hr(n>0&&n<200?t*a/100/(n<=100?n:200-n)*100:0),l:hr(n/2),a:hr(l,2)}}),vr=function(e){var t=kr(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},yr=function(e){var t=kr(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},wr=function(e){var t=e.h,a=e.s,l=e.v,n=e.a;t=t/360*6,a/=100,l/=100;var r=Math.floor(t),i=l*(1-a),o=l*(1-(t-r)*a),s=l*(1-(1-t+r)*a),c=r%6;return{r:hr(255*[l,o,i,i,s,l][c]),g:hr(255*[s,l,l,o,i,i][c]),b:hr(255*[i,i,s,l,l,o][c]),a:hr(n,2)}},_r=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Tr({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},Cr=_r,Tr=function(e){var t=e.r,a=e.g,l=e.b,n=e.a,r=Math.max(t,a,l),i=r-Math.min(t,a,l),o=i?r===t?(a-l)/i:r===a?2+(l-t)/i:4+(t-a)/i:0;return{h:hr(60*(o<0?o+6:o)),s:hr(r?i/r*100:0),v:hr(r/255*100),a:n}},Er=y().memo((function(e){var t=e.hue,a=e.onChange,l=mr(["react-colorful__hue",e.className]);return y().createElement("div",{className:l},y().createElement(pr,{onMove:function(e){a({h:360*e.left})},onKey:function(e){a({h:cr(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":hr(t)},y().createElement(fr,{className:"react-colorful__hue-pointer",left:t/360,color:vr({h:t,s:100,v:100,a:1})})))})),xr=y().memo((function(e){var t=e.hsva,a=e.onChange,l={backgroundColor:vr({h:t.h,s:100,v:100,a:1})};return y().createElement("div",{className:"react-colorful__saturation",style:l},y().createElement(pr,{onMove:function(e){a({s:100*e.left,v:100-100*e.top})},onKey:function(e){a({s:cr(t.s+100*e.left,0,100),v:cr(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+hr(t.s)+"%, Brightness "+hr(t.v)+"%"},y().createElement(fr,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:vr(t)})))})),Sr=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Br(e,t,a){var l=sr(a),n=(0,v.useState)((function(){return e.toHsva(t)})),r=n[0],i=n[1],o=(0,v.useRef)({color:t,hsva:r});(0,v.useEffect)((function(){if(!e.equal(t,o.current.color)){var a=e.toHsva(t);o.current={hsva:a,color:t},i(a)}}),[t,e]),(0,v.useEffect)((function(){var t;(function(e,t){if(e===t)return!0;for(var a in e)if(e[a]!==t[a])return!1;return!0})(r,o.current.hsva)||e.equal(t=e.fromHsva(r),o.current.color)||(o.current={hsva:r,color:t},l(t))}),[r,e,l]);var s=(0,v.useCallback)((function(e){i((function(t){return Object.assign({},t,e)}))}),[]);return[r,s]}var Mr="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,Dr=new Map,Rr=function(e){Mr((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Dr.has(t)){var l=t.createElement("style");l.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Dr.set(t,l);var n=a.nc;n&&l.setAttribute("nonce",n),t.head.appendChild(l)}}),[])},zr=function(e){var t=e.className,a=e.colorModel,l=e.color,n=void 0===l?a.defaultColor:l,r=e.onChange,i=or(e,["className","colorModel","color","onChange"]),o=(0,v.useRef)(null);Rr(o);var s=Br(a,n,r),c=s[0],u=s[1],g=mr(["react-colorful",t]);return y().createElement("div",ir({},i,{ref:o,className:g}),y().createElement(xr,{hsva:c,onChange:u}),y().createElement(Er,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},Lr=function(e){var t=e.className,a=e.hsva,l=e.onChange,n={backgroundImage:"linear-gradient(90deg, "+yr(Object.assign({},a,{a:0}))+", "+yr(Object.assign({},a,{a:1}))+")"},r=mr(["react-colorful__alpha",t]);return y().createElement("div",{className:r},y().createElement("div",{className:"react-colorful__alpha-gradient",style:n}),y().createElement(pr,{onMove:function(e){l({a:e.left})},onKey:function(e){l({a:cr(a.a+e.left)})},"aria-label":"Alpha","aria-valuetext":hr(100*a.a)+"%"},y().createElement(fr,{className:"react-colorful__alpha-pointer",left:a.a,color:yr(a)})))},Or=function(e){var t=e.className,a=e.colorModel,l=e.color,n=void 0===l?a.defaultColor:l,r=e.onChange,i=or(e,["className","colorModel","color","onChange"]),o=(0,v.useRef)(null);Rr(o);var s=Br(a,n,r),c=s[0],u=s[1],g=mr(["react-colorful",t]);return y().createElement("div",ir({},i,{ref:o,className:g}),y().createElement(xr,{hsva:c,onChange:u}),y().createElement(Er,{hue:c.h,onChange:u}),y().createElement(Lr,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},Ir={defaultColor:"rgba(0, 0, 0, 1)",toHsva:_r,fromHsva:function(e){var t=wr(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Sr},Nr=function(e){return y().createElement(Or,ir({},e,{colorModel:Ir}))},Ar={defaultColor:"rgb(0, 0, 0)",toHsva:Cr,fromHsva:function(e){var t=wr(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Sr},Pr=function(e){return y().createElement(zr,ir({},e,{colorModel:Ar}))},Fr={grad:.9,turn:360,rad:360/(2*Math.PI)},Hr=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Vr=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a+0},Ur=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e>t?e:t},Gr=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},jr=function(e){return{r:Ur(e.r,0,255),g:Ur(e.g,0,255),b:Ur(e.b,0,255),a:Ur(e.a)}},qr=function(e){return{r:Vr(e.r),g:Vr(e.g),b:Vr(e.b),a:Vr(e.a,3)}},Wr=/^#([0-9a-f]{3,8})$/i,$r=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Zr=function(e){var t=e.r,a=e.g,l=e.b,n=e.a,r=Math.max(t,a,l),i=r-Math.min(t,a,l),o=i?r===t?(a-l)/i:r===a?2+(l-t)/i:4+(t-a)/i:0;return{h:60*(o<0?o+6:o),s:r?i/r*100:0,v:r/255*100,a:n}},Kr=function(e){var t=e.h,a=e.s,l=e.v,n=e.a;t=t/360*6,a/=100,l/=100;var r=Math.floor(t),i=l*(1-a),o=l*(1-(t-r)*a),s=l*(1-(1-t+r)*a),c=r%6;return{r:255*[l,o,i,i,s,l][c],g:255*[s,l,l,o,i,i][c],b:255*[i,i,s,l,l,o][c],a:n}},Qr=function(e){return{h:Gr(e.h),s:Ur(e.s,0,100),l:Ur(e.l,0,100),a:Ur(e.a)}},Yr=function(e){return{h:Vr(e.h),s:Vr(e.s),l:Vr(e.l),a:Vr(e.a,3)}},Jr=function(e){return Kr((a=(t=e).s,{h:t.h,s:(a*=((l=t.l)<50?l:100-l)/100)>0?2*a/(l+a)*100:0,v:l+a,a:t.a}));var t,a,l},Xr=function(e){return{h:(t=Zr(e)).h,s:(n=(200-(a=t.s))*(l=t.v)/100)>0&&n<200?a*l/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,a,l,n},ei=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ti=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ai=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,li=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ni={string:[[function(e){var t=Wr.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Vr(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Vr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ai.exec(e)||li.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:jr({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ei.exec(e)||ti.exec(e);if(!t)return null;var a,l,n=Qr({h:(a=t[1],l=t[2],void 0===l&&(l="deg"),Number(a)*(Fr[l]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Jr(n)},"hsl"]],object:[[function(e){var t=e.r,a=e.g,l=e.b,n=e.a,r=void 0===n?1:n;return Hr(t)&&Hr(a)&&Hr(l)?jr({r:Number(t),g:Number(a),b:Number(l),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,a=e.s,l=e.l,n=e.a,r=void 0===n?1:n;if(!Hr(t)||!Hr(a)||!Hr(l))return null;var i=Qr({h:Number(t),s:Number(a),l:Number(l),a:Number(r)});return Jr(i)},"hsl"],[function(e){var t=e.h,a=e.s,l=e.v,n=e.a,r=void 0===n?1:n;if(!Hr(t)||!Hr(a)||!Hr(l))return null;var i=function(e){return{h:Gr(e.h),s:Ur(e.s,0,100),v:Ur(e.v,0,100),a:Ur(e.a)}}({h:Number(t),s:Number(a),v:Number(l),a:Number(r)});return Kr(i)},"hsv"]]},ri=function(e,t){for(var a=0;a<t.length;a++){var l=t[a][0](e);if(l)return[l,t[a][1]]}return[null,void 0]},ii=function(e,t){var a=Xr(e);return{h:a.h,s:Ur(a.s+100*t,0,100),l:a.l,a:a.a}},oi=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},si=function(e,t){var a=Xr(e);return{h:a.h,s:a.s,l:Ur(a.l+100*t,0,100),a:a.a}},ci=function(){function e(e){this.parsed=function(e){return"string"==typeof e?ri(e.trim(),ni.string):"object"==typeof e&&null!==e?ri(e,ni.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Vr(oi(this.rgba),2)},e.prototype.isDark=function(){return oi(this.rgba)<.5},e.prototype.isLight=function(){return oi(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=qr(this.rgba)).r,a=e.g,l=e.b,r=(n=e.a)<1?$r(Vr(255*n)):"","#"+$r(t)+$r(a)+$r(l)+r;var e,t,a,l,n,r},e.prototype.toRgb=function(){return qr(this.rgba)},e.prototype.toRgbString=function(){return t=(e=qr(this.rgba)).r,a=e.g,l=e.b,(n=e.a)<1?"rgba("+t+", "+a+", "+l+", "+n+")":"rgb("+t+", "+a+", "+l+")";var e,t,a,l,n},e.prototype.toHsl=function(){return Yr(Xr(this.rgba))},e.prototype.toHslString=function(){return t=(e=Yr(Xr(this.rgba))).h,a=e.s,l=e.l,(n=e.a)<1?"hsla("+t+", "+a+"%, "+l+"%, "+n+")":"hsl("+t+", "+a+"%, "+l+"%)";var e,t,a,l,n},e.prototype.toHsv=function(){return e=Zr(this.rgba),{h:Vr(e.h),s:Vr(e.s),v:Vr(e.v),a:Vr(e.a,3)};var e},e.prototype.invert=function(){return ui({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),ui(ii(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),ui(ii(this.rgba,-e))},e.prototype.grayscale=function(){return ui(ii(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),ui(si(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),ui(si(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?ui({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Vr(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Xr(this.rgba);return"number"==typeof e?ui({h:e,s:t.s,l:t.l,a:t.a}):Vr(t.h)},e.prototype.isEqual=function(e){return this.toHex()===ui(e).toHex()},e}(),ui=function(e){return e instanceof ci?e:new ci(e)};function gi(e,t){return e?(t||0===t)&&1!==t&&e.startsWith("#")?(e=e.replace("#",""),"rgba("+parseInt(3===e.length?e.slice(0,1).repeat(2):e.slice(0,2),16)+", "+parseInt(3===e.length?e.slice(1,2).repeat(2):e.slice(2,4),16)+", "+parseInt(3===e.length?e.slice(2,3).repeat(2):e.slice(4,6),16)+", "+t+")"):e:""}function di(t){const{value:a,onChange:l,onOpacityChange:o,label:s,alpha:c=!1,valueOpacity:u=1,tooltip:g}=t,[d,p]=(0,e.useState)(!1),m=c&&1===u?Nr:Pr;(0,e.useEffect)((()=>{if(!d)return;const e=setTimeout((()=>{const e=document.querySelector(".gblocks-color-input-wrapper input");e&&e.focus()}),350);return()=>{clearTimeout(e),p(!1)}}),[a]);const f=(0,e.useMemo)((()=>(e=>{if(String(e).startsWith("var(")){const t=e.match(/\(([^)]+)\)/);if(t){const a=getComputedStyle(document.documentElement).getPropertyValue(t[1]);a&&(e=a)}}return ui(e).toRgbString()})(a)),[a]),h=(0,q.useDebounce)(l);return(0,e.createElement)("div",{className:"gblocks-color-component"},!!s&&(0,e.createElement)("span",{className:"gblocks-color-component__label"},s),(0,e.createElement)(r.Dropdown,{className:"gblocks-color-component__toggle",contentClassName:"gblocks-color-component-content",position:"top left",renderToggle:t=>{let{isOpen:l,onToggle:n}=t;const i=(0,e.createElement)(r.Button,{className:"gblocks-color-component__toggle-button",onClick:n,"aria-expanded":l},(0,e.createElement)("span",{className:"gblocks-color-component__toggle-indicator",style:{background:a?gi(a,u):null}}));return(0,e.createElement)(e.Fragment,null,g?(0,e.createElement)(r.Tooltip,{text:g},i):i)},renderContent:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{color:f,onChange:e=>{ui(e).isValid()&&(e=1===ui(e).alpha()?ui(e).toHex():e),h(e)}}),(0,e.createElement)("div",{className:"gblocks-color-component-content__input-wrapper"},(0,e.createElement)(r.TextControl,{className:"gblocks-color-input",type:"text",value:a||"",onChange:e=>{!e.startsWith("#")&&/^([0-9A-F]{3}){1,2}$/i.test(e)&&(e="#"+e),h(e),p(!0)},onBlur:()=>{ui(a).isValid()&&1===ui(a).alpha()&&h(ui(a).toHex())}}),(0,e.createElement)(r.Button,{isSmall:!0,isSecondary:!0,className:"gblocks-color-input-clear",onClick:()=>{l(""),c&&1!==u&&o(1),setTimeout((function(){document.querySelector(".gblocks-color-component-content__input-wrapper input").focus()}),10)}},(0,i.__)("Clear","generateblocks"))),c&&1!==u&&(0,e.createElement)("div",{className:"gblocks-color-component-content__opacity"},(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Opacity","generateblocks")},b("gradient")),(0,e.createElement)(r.RangeControl,{value:u||0,onChange:e=>o(e),min:0,max:1,step:.01,initialPosition:1})),(0,e.createElement)(r.BaseControl,{className:"gblocks-color-component-content__palette"},(0,e.createElement)(n.ColorPalette,{value:a||"",onChange:e=>{l(e),setTimeout((function(){document.querySelector(".gblocks-color-component-content__input-wrapper input").focus()}),10)},disableCustomColors:!0,clearable:!1})))}))}function bi(t){const{setAttributes:a,attributes:l,colors:n}=t,r=(0,m.applyFilters)("generateblocks.editor.colorGroupItems",n,t);return(0,e.createElement)("div",{className:"gblocks-color-group"},r.map(((t,n)=>(0,e.createElement)("div",{key:n,className:"gblocks-color-group__row"},!!t.label&&(0,e.createElement)("span",{className:"gblocks-color-group__row-label"},t.label),t.items.map(((t,n)=>(0,e.createElement)(di,{key:n,label:t?.label,tooltip:t?.tooltip,value:l[t.attribute],alpha:t.alpha||!1,valueOpacity:l[t.attribute+"Opacity"],onChange:e=>a({[t.attribute]:e}),onOpacityChange:e=>a({[t.attribute+"Opacity"]:e})})))))))}class pi extends e.Component{render(){const{attributes:t,setAttributes:a,attrGradient:l,attrGradientDirection:n,attrGradientColorOne:o,attrGradientColorOneOpacity:s,attrGradientColorStopOne:c,attrGradientColorTwo:u,attrGradientColorTwoOpacity:g,attrGradientColorStopTwo:d,defaultColorOne:b,defaultColorTwo:p}=this.props,{gradientSelector:m,innerZindex:f}=t,h="element"===m?(0,i.__)("Displays behind the background image.","generateblocks"):(0,i.__)("Displays in front of the background image.","generateblocks");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use Gradient","generateblocks"),checked:!!t[l],onChange:e=>{const l=this.props;let r=t[n],i=t[o],s=t[u];e&&(r=r||90,i=i||"rgba(255, 255, 255, 0.1)",s=s||"rgba(0, 0, 0, 0.30)"),a({[l.attrGradient]:e,[l.attrGradientDirection]:r,[l.attrGradientColorOne]:i,[l.attrGradientColorTwo]:s})}}),!!t[l]&&(0,e.createElement)(e.Fragment,null,void 0!==m&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Selector","generateblocks"),help:h,value:m,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:e=>{a({gradientSelector:e}),S(f)||"pseudo-element"!==e||a({innerZindex:1})}}),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Direction","generateblocks")),(0,e.createElement)(r.RangeControl,{value:t[n]?t[n]:0,onChange:e=>{a({[n]:e})},min:0,max:360,step:1,initialPosition:90})),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Color One","generateblocks")),(0,e.createElement)("div",{className:"gblocks-component-gradient-control"},(0,e.createElement)(di,{value:t[o],alpha:!0,valueOpacity:t[s]||1,attrOpacity:"gradientColorOneOpacity",onChange:e=>a({[o]:e}),onOpacityChange:e=>a({[s]:e}),onClear:()=>a({[o]:b})}),(0,e.createElement)(r.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[c]||0===t[c]?t[c]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[c]:e})},onBlur:()=>{(t[c]||0===t[c])&&a({[c]:parseFloat(t[c])})},onClick:e=>{e.currentTarget.focus()}}))),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Color Two","generateblocks")),(0,e.createElement)("div",{className:"gblocks-component-gradient-control"},(0,e.createElement)(di,{value:t[u],alpha:!0,valueOpacity:t[g]||1,attrOpacity:"gradientColorTwoOpacity",onChange:e=>a({[u]:e}),onOpacityChange:e=>a({[g]:e}),onClear:()=>a({[u]:p})}),(0,e.createElement)(r.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[d]||0===t[d]?t[d]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[d]:e})},onBlur:()=>{(t[d]||0===t[d])&&a({[d]:parseFloat(t[d])})},onClick:e=>{e.currentTarget.focus()}})))))}}var mi=pi,fi=a(856),hi=a.n(fi);function ki(e){return hi().sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}const vi=e=>S(e)&&"auto"!==e;var yi=a=>{const{clientId:o,attributes:c,setAttributes:u,deviceType:g,state:d,blockDefaults:p,tagNames:f,filterTagName:h,allShapes:k,context:v}=a,{tagName:y,isGrid:w,isQueryLoopItem:_,gridId:T,width:E,widthTablet:M,widthMobile:D,autoWidthTablet:R,autoWidthMobile:z,flexGrow:L,flexGrowTablet:O,flexGrowMobile:I,flexShrink:N,flexShrinkTablet:A,flexShrinkMobile:P,flexBasis:F,flexBasisTablet:H,flexBasisMobile:V,flexBasisUnit:U,outerContainer:G,innerContainer:j,containerWidth:q,minHeight:W,minHeightUnit:$,minHeightTablet:Z,minHeightUnitTablet:K,minHeightMobile:Q,minHeightUnitMobile:Y,backgroundColor:J,bgImage:X,bgOptions:ee,bgImageSize:te,bgImageInline:ae,verticalAlignment:le,verticalAlignmentTablet:ne,verticalAlignmentMobile:re,zindex:ie,innerZindex:oe,removeVerticalGap:se,removeVerticalGapTablet:ce,removeVerticalGapMobile:ue,orderTablet:ge,orderMobile:de,align:be,shapeDividers:pe,useDynamicData:me,dynamicContentType:fe}=c,{getBlockParents:he,getBlocksByClientId:ke}=(0,l.useSelect)((e=>e("core/block-editor")),[]);(0,e.useEffect)((()=>{const e=he(o,!0);if(e.length>0){const t=ke(e);if(t.length>0)if("generateblocks/grid"===t[0].name){const e=t[0].attributes.uniqueId;e!==T&&u({isGrid:!0,gridId:e})}else w&&!_&&u({isGrid:!1,gridId:""})}else w&&!_&&u({isGrid:!1,gridId:""})}));const ve=void 0!==v["generateblocks/queryId"],ye=vi(F),we="auto"!==H&&(vi(F)||vi(H)),_e="auto"!==V&&(vi(F)||vi(H)||vi(V)),Ce=[];return Object.keys(generateBlocksInfo.imageSizes).forEach((e=>{Ce.push({label:generateBlocksInfo.imageSizes[e],value:generateBlocksInfo.imageSizes[e]})})),(0,e.createElement)(n.InspectorControls,null,!w&&(0,e.createElement)(C,t({},a,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!0,icon:b("layout"),className:"gblocks-panel-label",id:"containerLayout",state:d}),"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Container","generateblocks"),value:G,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{u({outerContainer:e}),"contained"===e&&"full"===be&&u({align:""})}}),"full"===G&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Inner Container","generateblocks"),value:j,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{u({innerContainer:e})}}),("contained"===G||"contained"===j)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:"full"===G&&"contained"===j?(0,i.__)("Inner Container Width","generateblocks"):(0,i.__)("Container Width","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",className:"gblocks-container-width",value:parseFloat(q)||"",placeholder:p.containerWidth,onChange:e=>{u({containerWidth:""!==e?parseFloat(e):void 0})}})),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Tag Name","generateblocks"),value:y,options:f,onChange:e=>{u({tagName:h(e)})}}),(0,m.applyFilters)("generateblocks.editor.controls","","containerAfterElementTag",a,d)),(0,m.applyFilters)("generateblocks.editor.controls","","containerLayout",a,d)),w&&(0,e.createElement)(C,t({},a,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!0,icon:b("layout"),className:"gblocks-panel-label",id:"containerGridLayout",state:d}),"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)(x,{label:(0,i.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),!!ye&&(0,e.createElement)("div",{className:"gblocks-small-notice-description"},(0,i.__)('Width disabled as Flex Basis is not "auto".',"generateblocks")),(0,e.createElement)(r.ButtonGroup,{className:"widthButtons"},(0,e.createElement)(r.Button,{isPrimary:25===E,onClick:()=>u({width:25}),disabled:ye},"25"),(0,e.createElement)(r.Button,{isPrimary:33.33===E,onClick:()=>u({width:33.33}),disabled:ye},"33"),(0,e.createElement)(r.Button,{isPrimary:50===E,onClick:()=>u({width:50}),disabled:ye},"50"),(0,e.createElement)(r.Button,{isPrimary:66.66===E,onClick:()=>u({width:66.66}),disabled:ye},"66"),(0,e.createElement)(r.Button,{isPrimary:75===E,onClick:()=>u({width:75}),disabled:ye},"75"),(0,e.createElement)(r.Button,{isPrimary:100===E,onClick:()=>u({width:100}),disabled:ye},"100")),(0,e.createElement)(Xn,{value:S(E)?E:"",onChange:e=>{String(e).startsWith(0)&&(e=""),u({width:e})},rangeMin:10,rangeMax:100,step:5,initialPosition:p.width,disabled:ye})),(0,e.createElement)(r.BaseControl,{className:"gblocks-flex-controls"},(0,e.createElement)("div",{className:"gblocks-utility-label"},(0,e.createElement)("label",{htmlFor:"gblocks-flex-grow-desktop",className:"components-base-control__label"},(0,i.__)("Flex","generateblocks")),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Reset","generateblocks"),position:"top"},(0,e.createElement)(r.Button,{className:"gblocks-reset-button",icon:b("reset"),onClick:()=>{u({flexGrow:"",flexShrink:"",flexBasis:""})}}))),(0,e.createElement)("div",{className:"gblocks-flex-controls-inner"},(0,e.createElement)(r.TextControl,{help:(0,i.__)("Grow","generateblocks"),id:"gblocks-flex-grow-desktop",type:"number",value:L,min:"0",step:"1",placeholder:"0",onChange:e=>{u({flexGrow:e})},onBlur:()=>{""!==L&&u({flexGrow:parseFloat(L)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Shrink","generateblocks"),type:"number",value:N,min:"0",step:"1",placeholder:"1",onChange:e=>{u({flexShrink:e})},onBlur:()=>{""!==N&&u({flexShrink:parseFloat(N)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},!isNaN(F)&&(0,e.createElement)(x,{value:U,units:["px","%"],onClick:e=>{u({flexBasisUnit:e})}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Basis","generateblocks"),type:"text",placeholder:"auto",value:F,onChange:e=>{u({flexBasis:e})},onBlur:()=>{F.match(/(auto|fill|max-content|min-content|fit-content|content|inherit|initial|revert|unset|[0-9.]+)/g)||u({flexBasis:""})}})))),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:le,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignment:e})}}),!_&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove Vertical Gap","generateblocks"),checked:!!se,onChange:e=>{u({removeVerticalGap:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Tag Name","generateblocks"),value:y,options:f,onChange:e=>{u({tagName:h(e)})}}),(0,m.applyFilters)("generateblocks.editor.controls","","containerAfterElementTag",a,d)),"Tablet"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)(x,{label:(0,i.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),!!we&&(0,e.createElement)("div",{className:"gblocks-small-notice-description"},(0,i.__)('Width disabled as Flex Basis is not "auto".',"generateblocks")),(0,e.createElement)(r.ButtonGroup,{className:"widthButtons"},(0,e.createElement)(r.Button,{isPrimary:!!R,disabled:we,onClick:()=>{u(R?{autoWidthTablet:!1}:{autoWidthTablet:!0})}},(0,i.__)("Auto","generateblocks")),(0,e.createElement)(r.Button,{isPrimary:25===M&&!R,onClick:()=>u({widthTablet:25,autoWidthTablet:!1}),disabled:we},"25"),(0,e.createElement)(r.Button,{isPrimary:33.33===M&&!R,onClick:()=>u({widthTablet:33.33,autoWidthTablet:!1}),disabled:we},"33"),(0,e.createElement)(r.Button,{isPrimary:50===M&&!R,onClick:()=>u({widthTablet:50,autoWidthTablet:!1}),disabled:we},"50"),(0,e.createElement)(r.Button,{isPrimary:66.66===M&&!R,onClick:()=>u({widthTablet:66.66,autoWidthTablet:!1}),disabled:we},"66"),(0,e.createElement)(r.Button,{isPrimary:75===M&&!R,onClick:()=>u({widthTablet:75,autoWidthTablet:!1}),disabled:we},"75"),(0,e.createElement)(r.Button,{isPrimary:100===M&&!R,onClick:()=>u({widthTablet:100,autoWidthTablet:!1}),disabled:we},"100")),!R&&(0,e.createElement)(Xn,{value:S(M)?M:"",onChange:e=>{String(e).startsWith(0)&&(e=""),u({widthTablet:e,autoWidthTablet:!1})},rangeMin:10,rangeMax:100,step:5,initialPosition:p.widthTablet,disabled:we})),(0,e.createElement)(r.BaseControl,{className:"gblocks-flex-controls"},(0,e.createElement)("div",{className:"gblocks-utility-label"},(0,e.createElement)("label",{htmlFor:"gblocks-flex-grow-tablet",className:"components-base-control__label"},(0,i.__)("Flex","generateblocks")),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Reset","generateblocks"),position:"top"},(0,e.createElement)(r.Button,{className:"gblocks-reset-button",icon:b("reset"),onClick:()=>{u({flexGrowTablet:"",flexShrinkTablet:"",flexBasisTablet:""})}}))),(0,e.createElement)("div",{className:"gblocks-flex-controls-inner"},(0,e.createElement)(r.TextControl,{help:(0,i.__)("Grow","generateblocks"),id:"gblocks-flex-grow-tablet",type:"number",value:O,min:"0",step:"1",placeholder:B("flexGrow",c,"Tablet","0"),onChange:e=>{u({flexGrowTablet:e})},onBlur:()=>{""!==O&&u({flexGrowTablet:parseFloat(O)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Shrink","generateblocks"),type:"number",value:A,min:"0",step:"1",placeholder:B("flexShrink",c,"Tablet","1"),onChange:e=>{u({flexShrinkTablet:e})},onBlur:()=>{""!==A&&u({flexShrinkTablet:parseFloat(A)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},!isNaN(H)&&(0,e.createElement)(x,{value:U,units:["px","%"],onClick:e=>{u({flexBasisUnit:e})}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Basis","generateblocks"),type:"text",value:H,placeholder:B("flexBasis",c,"Tablet","auto"),onChange:e=>{u({flexBasisTablet:e})},onBlur:()=>{H.match(/(auto|fill|max-content|min-content|fit-content|content|inherit|initial|revert|unset|[0-9.]+)/g)||u({flexBasisTablet:""})}})))),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:ne,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignmentTablet:e})}}),!_&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove Vertical Gap","generateblocks"),checked:!!ce,onChange:e=>{u({removeVerticalGapTablet:e})}}),(0,e.createElement)(r.TextControl,{type:"number",label:(0,i.__)("Order","generateblocks"),value:ge||0===ge?ge:"",onChange:e=>{u({orderTablet:parseFloat(e)})}})),"Mobile"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)(x,{label:(0,i.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),!!_e&&(0,e.createElement)("div",{className:"gblocks-small-notice-description"},(0,i.__)('Width disabled as Flex Basis is not "auto".',"generateblocks")),(0,e.createElement)(r.ButtonGroup,{className:"widthButtons"},(0,e.createElement)(r.Button,{isPrimary:!!z,disabled:_e,onClick:()=>{u(z?{autoWidthMobile:!1}:{autoWidthMobile:!0})}},(0,i.__)("Auto","generateblocks")),(0,e.createElement)(r.Button,{isPrimary:25===D&&!z,onClick:()=>u({widthMobile:25,autoWidthMobile:!1}),disabled:_e},"25"),(0,e.createElement)(r.Button,{isPrimary:33.33===D&&!z,onClick:()=>u({widthMobile:33.33,autoWidthMobile:!1}),disabled:_e},"33"),(0,e.createElement)(r.Button,{isPrimary:50===D&&!z,onClick:()=>u({widthMobile:50,autoWidthMobile:!1}),disabled:_e},"50"),(0,e.createElement)(r.Button,{isPrimary:66.66===D&&!z,onClick:()=>u({widthMobile:66.66,autoWidthMobile:!1}),disabled:_e},"66"),(0,e.createElement)(r.Button,{isPrimary:75===D&&!z,onClick:()=>u({widthMobile:75,autoWidthMobile:!1}),disabled:_e},"75"),(0,e.createElement)(r.Button,{isPrimary:100===D&&!z,onClick:()=>u({widthMobile:100,autoWidthMobile:!1}),disabled:_e},"100")),!z&&(0,e.createElement)(Xn,{value:S(D)?D:"",onChange:e=>{String(e).startsWith(0)&&(e=""),u({widthMobile:e,autoWidthMobile:!1})},rangeMin:10,rangeMax:100,step:5,initialPosition:p.widthMobile,disabled:_e})),(0,e.createElement)(r.BaseControl,{className:"gblocks-flex-controls"},(0,e.createElement)("div",{className:"gblocks-utility-label"},(0,e.createElement)("label",{htmlFor:"gblocks-flex-grow-mobile",className:"components-base-control__label"},(0,i.__)("Flex","generateblocks")),(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Reset","generateblocks"),position:"top"},(0,e.createElement)(r.Button,{className:"gblocks-reset-button",icon:b("reset"),onClick:()=>{u({flexGrowMobile:"",flexShrinkMobile:"",flexBasisMobile:""})}}))),(0,e.createElement)("div",{className:"gblocks-flex-controls-inner"},(0,e.createElement)(r.TextControl,{help:(0,i.__)("Grow","generateblocks"),id:"gblocks-flex-grow-mobile",type:"number",value:I,min:"0",step:"1",placeholder:B("flexGrow",c,"Mobile","0"),onChange:e=>{u({flexGrowMobile:e})},onBlur:()=>{""!==I&&u({flexGrowMobile:parseFloat(I)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Shrink","generateblocks"),type:"number",value:P,min:"0",step:"1",placeholder:B("flexShrink",c,"Mobile","1"),onChange:e=>{u({flexShrinkMobile:e})},onBlur:()=>{""!==P&&u({flexShrinkMobile:parseFloat(P)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},!isNaN(V)&&(0,e.createElement)(x,{value:U,units:["px","%"],onClick:e=>{u({flexBasisUnit:e})}}),(0,e.createElement)(r.TextControl,{help:(0,i.__)("Basis","generateblocks"),type:"text",value:V,placeholder:B("flexBasis",c,"Mobile","auto"),onChange:e=>{u({flexBasisMobile:e})},onBlur:()=>{V.match(/(auto|fill|max-content|min-content|fit-content|content|inherit|initial|revert|unset|[0-9.]+)/g)||u({flexBasisMobile:""})}})))),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:re,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignmentMobile:e})}}),!_&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove Vertical Gap","generateblocks"),checked:!!ue,onChange:e=>{u({removeVerticalGapMobile:e})}}),(0,e.createElement)(r.TextControl,{type:"number",label:(0,i.__)("Order","generateblocks"),value:de||0===de?de:"",onChange:e=>{u({orderMobile:parseFloat(e)})}})),(0,m.applyFilters)("generateblocks.editor.controls","","containerGridLayout",a,d)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:b("typography"),className:"gblocks-panel-label",id:"containerTypography",state:d}),(0,e.createElement)(tr,t({},a,{deviceType:g,options:["fontWeight","textTransform","fontSize","fontFamily"]})),(0,m.applyFilters)("generateblocks.editor.controls","","containerTypography",a,d)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:b("spacing"),className:"gblocks-panel-label",id:"containerSpacing",state:d}),(0,e.createElement)(rr,t({},a,{deviceType:g,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]})),"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Minimum Height","generateblocks"),value:$,units:["px","vh","vw"],onClick:e=>{u({minHeightUnit:e})}}),(0,e.createElement)(r.TextControl,{type:"number",value:W||"",onChange:e=>{u({minHeight:parseFloat(e)})}}),!!W&&!w&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:le,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignment:e})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Outer z-index","generateblocks"),type:"number",value:ie||0===ie?ie:"",onChange:e=>{u({zindex:e})},onBlur:()=>{u({zindex:parseFloat(ie)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Inner z-index","generateblocks"),type:"number",value:oe||0===oe?oe:"",onChange:e=>{u({innerZindex:e})},onBlur:()=>{u({innerZindex:parseFloat(oe)})},onClick:e=>{e.currentTarget.focus()}})),"Tablet"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Minimum Height","generateblocks"),value:K,units:["px","vh","vw"],onClick:e=>{u({minHeightUnitTablet:e})}}),(0,e.createElement)(r.TextControl,{type:"number",value:Z||0===Z?Z:"",onChange:e=>{u({minHeightTablet:parseFloat(e)})}}),(!!W||!!Z)&&!w&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:ne,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignmentTablet:e})}})),"Mobile"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Minimum Height","generateblocks"),value:Y,units:["px","vh","vw"],onClick:e=>{u({minHeightUnitMobile:e})}}),(0,e.createElement)(r.TextControl,{type:"number",value:Q||0===Q?Q:"",onChange:e=>{u({minHeightMobile:parseFloat(e)})}}),(!!W||!!Z||!!Q)&&!w&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:re,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignmentMobile:e})}})),(0,m.applyFilters)("generateblocks.editor.controls","","containerSpacing",a,d)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!1,icon:b("colors"),className:"gblocks-panel-label",id:"containerColors",state:d}),"Desktop"===g&&(0,e.createElement)(bi,t({},a,{colors:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"}]},{group:"link",label:(0,i.__)("Link","generateblocks"),items:[{attribute:"linkColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"linkColorHover"}]},{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]}]})),(0,m.applyFilters)("generateblocks.editor.controls","","containerColors",a,d)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Backgrounds","generateblocks"),initialOpen:!1,icon:b("gradients"),className:"gblocks-panel-label",id:"containerBackground",state:d}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{id:"gblocks-background-image-upload",label:(0,i.__)("Image URL","generateblocks")},(0,e.createElement)("div",{className:"gblocks-bg-image-wrapper"},(0,e.createElement)(r.TextControl,{type:"text",value:X?X.image.url:"",onChange:e=>{u(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),(0,e.createElement)("div",{className:"gblocks-background-image-action-buttons"},(0,e.createElement)(n.MediaUpload,{title:(0,i.__)("Set background image","generateblocks"),onSelect:e=>{let t=p.bgImageSize;void 0===e.sizes[t]&&(t="full"),u({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:()=>{document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:X?X.id:"",modalClass:"editor-gb-container-background__media-modal",render:t=>{let{open:a}=t;return(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Open the Media Library","generateblocks")},(0,e.createElement)(r.Button,{onClick:a,className:"is-secondary is-small"},(0,i.__)("Browse","generateblocks")))}}),(0,m.applyFilters)("generateblocks.editor.backgroundImageActions","",a,d)))),me&&""!==fe&&(0,e.createElement)(r.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("Using featured image as dynamic background.","generateblocks")),(!!X||me&&""!==fe)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use inline style","generateblocks"),disabled:me&&""!==fe&&(_||ve),checked:!!ae,onChange:e=>{u({bgImageInline:e})}}),ee.overlay?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Background Color Overlay","generateblocks"),checked:!!ee.overlay,onChange:e=>{u({bgOptions:{...ee,overlay:e}})}}),(0,e.createElement)(r.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):(0,e.createElement)(e.Fragment,null,(X&&X.id||me&&""!==fe)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Image Size","generateblocks"),value:te,options:Ce,onChange:e=>{u({bgImageSize:e})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Selector","generateblocks"),value:ee.selector,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:e=>{u({bgOptions:{...ee,selector:e}}),"pseudo-element"!==e||oe||0===oe||u({innerZindex:1})}}),(0,e.createElement)(r.RangeControl,{label:(0,i.__)("Image Opacity","generateblocks"),value:ee.opacity,onChange:e=>{u({bgOptions:{...ee,opacity:e,selector:"pseudo-element"}}),oe||0===oe||u({innerZindex:1})},min:0,max:1,step:.01,initialPosition:p.bgOptions.opacity}),1!==ee.opacity&&"pseudo-element"!==ee.selector&&(0,e.createElement)(r.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Size","generateblocks"),value:ee.size,onChange:e=>{u({bgOptions:{...ee,size:e}})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Position","generateblocks"),value:ee.position,onChange:e=>{u({bgOptions:{...ee,position:e}})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Repeat","generateblocks"),value:ee.repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:e=>{u({bgOptions:{...ee,repeat:e}})}}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Attachment","generateblocks"),value:ee.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:e=>{u({bgOptions:{...ee,attachment:e}})}})),(0,e.createElement)(mi,t({},a,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:p.gradientColorOne,defaultColorTwo:p.gradientColorTwo})),(0,m.applyFilters)("generateblocks.editor.controls","","containerBackground",a,d))),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Shapes","generateblocks"),initialOpen:!1,icon:b("shapes"),className:"gblocks-panel-label",id:"containerShapes",state:d,showPanel:!("Desktop"!==g&&!c.shapeDividers.length)}),(0,e.createElement)(r.BaseControl,{className:"gb-icon-chooser gb-shape-chooser"},pe.map(((t,a)=>{const l=a+1;return(0,e.createElement)(e.Fragment,{key:a},(0,e.createElement)("div",{className:"gblocks-shape-container"},(0,e.createElement)("div",{className:s()({"gblocks-shape-toggle-preview":!0,[`gblocks-shape-toggle-preview-${l}`]:!0}),style:{backgroundColor:J}},void 0!==k[pe[a].shape]&&(0,e.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:pe[a].color},dangerouslySetInnerHTML:{__html:ki(k[pe[a].shape].icon)}})),
8
  /* translators: Shape number */
9
- (0,i.sprintf)((0,i.__)("Shape %s","generateblocks"),l),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.Dropdown,{contentClassName:"gblocks-shapes-dropdown",renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Edit Shape","generateblocks")},(0,e.createElement)(r.Button,{className:"gblocks-shape-dropdown",isSecondary:!a||void 0,isPrimary:!!a||void 0,icon:b("wrench"),onClick:l,"aria-expanded":a}))},renderContent:()=>(0,e.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map(((t,l)=>{const n=generateBlocksInfo.svgShapes[t].svgs;return(0,e.createElement)(r.PanelBody,{title:generateBlocksInfo.svgShapes[t].group,initialOpen:n.hasOwnProperty(pe[a].shape),key:l},(0,e.createElement)(r.PanelRow,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(n).map(((t,l)=>(0,e.createElement)("li",{key:`editor-pblock-types-list-item-${l}`},(0,e.createElement)(r.Tooltip,{text:n[t].label},(0,e.createElement)(r.Button,{className:s()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":pe[a].shape===t}),onClick:()=>{const e=[...pe];e[a]={...e[a],shape:t},u({shapeDividers:e})}},"string"==typeof n[t].icon?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:ki(n[t].icon)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},n[t].icon)))))))))))}))),(0,e.createElement)(r.BaseControl,null,(0,e.createElement)(di,{label:(0,i.__)("Color","generateblocks"),value:pe[a].color,alpha:!0,valueOpacity:pe[a].colorOpacity,onChange:e=>{const t=[...pe];t[a]={...t[a],color:e},u({shapeDividers:t})},onOpacityChange:e=>{const t=[...pe];t[a]={...t[a],colorOpacity:e},u({shapeDividers:t})}})),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Location","generateblocks"),value:pe[a].location,options:[{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{const t=[...pe];t[a]={...t[a],location:e},u({shapeDividers:t})}}),(0,e.createElement)(x,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:pe[a].height?pe[a].height:"",onChange:e=>{const t=[...pe];t[a]={...t[a],height:parseFloat(e)},u({shapeDividers:t})}}),(0,e.createElement)(x,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:pe[a].width?pe[a].width:"",min:"100",onChange:e=>{const t=[...pe];t[a]={...t[a],width:parseFloat(e)},u({shapeDividers:t})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Flip Horizontally","generateblocks"),checked:!!pe[a].flipHorizontally,onChange:e=>{const t=[...pe];t[a]={...t[a],flipHorizontally:e},u({shapeDividers:t})}}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("z-index","generateblocks"),type:"number",min:"0",value:pe[a].zindex||0===pe[a].zindex?pe[a].zindex:"",onChange:e=>{const t=[...pe];t[a]={...t[a],zindex:e},u({shapeDividers:t})},onBlur:()=>{const e=[...pe];e[a]={...e[a],zindex:parseFloat(pe[a].zindex)},u({shapeDividers:e})},onClick:e=>{e.currentTarget.focus()}})),"Tablet"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:pe[a].heightTablet?pe[a].heightTablet:"",onChange:e=>{const t=[...pe];t[a]={...t[a],heightTablet:parseFloat(e)},u({shapeDividers:t})}}),(0,e.createElement)(x,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:pe[a].widthTablet?pe[a].widthTablet:"",min:"100",onChange:e=>{const t=[...pe];t[a]={...t[a],widthTablet:parseFloat(e)},u({shapeDividers:t})}})),"Mobile"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:pe[a].heightMobile?pe[a].heightMobile:"",onChange:e=>{const t=[...pe];t[a]={...t[a],heightMobile:parseFloat(e)},u({shapeDividers:t})}}),(0,e.createElement)(x,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(r.TextControl,{type:"number",value:pe[a].widthMobile?pe[a].widthMobile:"",min:"100",onChange:e=>{const t=[...pe];t[a]={...t[a],widthMobile:parseFloat(e)},u({shapeDividers:t})}})))})),"Desktop"===g&&(0,e.createElement)(r.Tooltip,{text:(0,i.__)("Delete Shape","generateblocks")},(0,e.createElement)(r.Button,{className:"gblocks-remove-shape",onClick:()=>{window.confirm((0,i.__)("This will permanently delete this shape.","generateblocks"))&&(e=>{const t=[...pe];t.splice(e,1),u({shapeDividers:t})})(a)},icon:b("x")}))))})),(0,e.createElement)("div",{className:"gblocks-add-new-shape"},(0,e.createElement)(r.Button,{isSecondary:!0,onClick:(()=>{const e=[...pe];e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),u({shapeDividers:e})}).bind(void 0)},(0,i.__)("Add Shape","generateblocks")))),(0,m.applyFilters)("generateblocks.editor.controls","","containerShapeDivider",a,d)))},wi=t=>{let{source:a,onChange:l,help:n,dynamicContentType:r}=t;const o=(e=>{const t=[{value:"current-post",label:"caption"===e?(0,i.__)("Current image","generateblocks"):(0,i.__)("Current post","generateblocks")},{value:"post-type",label:(0,i.__)("Post type","generateblocks")}];return(0,m.applyFilters)("generateblocks.editor.dynamicContent.sourceOptions",t)})(r),s=o.filter((e=>e.value===a));return(0,e.createElement)(fn,{id:"gblocks-select-source-control",label:(0,i.__)("Data source","generateblocks"),help:n,placeholder:(0,i.__)("Select source","generateblocks"),options:o,value:s,onChange:l})},_i=t=>{let{dynamicSource:a,postType:l,postId:n,setAttributes:r,dynamicContentType:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(wi,{source:a,onChange:e=>{r({dynamicSource:e.value,postId:"",postType:"post"})},dynamicContentType:o}),"post-type"===a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(wn,{postType:l,onChange:e=>{r({postType:e.value,postId:""})}}),(0,e.createElement)(Dn,{postId:n,postType:l,value:[n],id:"gblocks-select-post",label:(0,i.__)("Select source post","generateblocks"),onChange:e=>{r({postId:e.value})},isMulti:!1})))},Ci=t=>{let{dynamicContentType:a,setAttributes:l,name:n,isCaption:r}=t;const o=((e,t)=>{let a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"post-title",label:(0,i.__)("Title","generateblocks")},{value:"post-excerpt",label:(0,i.__)("Excerpt","generateblocks")},{value:"post-date",label:(0,i.__)("Post date","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")},{value:"comments-number",label:(0,i.__)("Comments number","generateblocks")},{value:"terms",label:(0,i.__)("List of terms","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-meta",label:(0,i.__)("Author meta","generateblocks")},{value:"author-email",label:(0,i.__)("Email","generateblocks")},{value:"author-name",label:(0,i.__)("Name","generateblocks")},{value:"author-nickname",label:(0,i.__)("Nickname","generateblocks")},{value:"author-first-name",label:(0,i.__)("First name","generateblocks")},{value:"author-last-name",label:(0,i.__)("Last name","generateblocks")}]}];return"generateblocks/button"===e&&a.push({label:(0,i.__)("Pagination","generateblocks"),options:[{value:"pagination-numbers",label:(0,i.__)("Pagination numbers","generateblocks")}]}),"generateblocks/container"!==e&&"generateblocks/image"!==e||(a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"featured-image",label:(0,i.__)("Featured Image","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-avatar",label:(0,i.__)("Author avatar","generateblocks")}]}]),t&&(a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Image","generateblocks"),options:[{value:"caption",label:(0,i.__)("Caption","generateblocks")},{value:"post-title",label:(0,i.__)("Title","generateblocks")},{value:"alt-text",label:(0,i.__)("Alt text","generateblocks")},{value:"image-description",label:(0,i.__)("Description","generateblocks")}]}]),(0,m.applyFilters)("generateblocks.editor.dynamicContent.sourceTypes",a,e)})(n,r),s=o.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===a));let c=(0,i.__)("Content source","generateblocks");return"generateblocks/container"===n&&(c=(0,i.__)("Background image source","generateblocks")),"generateblocks/image"===n&&(c=(0,i.__)("Image source","generateblocks")),(0,e.createElement)(fn,{id:"gblocks-select-content-type-control",label:c,placeholder:c,options:o,value:s,onChange:e=>{l({dynamicContentType:e.value,metaFieldName:""}),"comments-number"===e.value?l({noCommentsText:(0,i.__)("No comments","generateblocks"),singleCommentText:(0,i.__)("1 comment","generateblocks"),
10
  // translators: Number of comments.
11
- multipleCommentsText:(0,i.__)("% comments","generateblocks")}):l({noCommentsText:"",singleCommentText:"",multipleCommentsText:""}),"author-avatar"===e.value?l({width:"50px",height:"50px"}):l({width:"",height:""})}})};const Ti=(0,m.applyFilters)("generateblocks.editor.dynamicContent.linkPrependOptions",[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Email","generateblocks"),value:"mailto:"},{label:(0,i.__)("Telephone","generateblocks"),value:"tel:"}]);var Ei=t=>{let{linkType:a,linkMetaFieldName:l,linkMetaFieldType:n,dynamicContentType:o,setAttributes:s,isPagination:c,isActive:u,name:g,dynamicLinkRemoveIfEmpty:d}=t;const b=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0,l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"single-post",label:(0,i.__)("Single post","generateblocks")},{value:"comments-area",label:(0,i.__)("Comments area","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-archives",label:(0,i.__)("Author archives","generateblocks")},{value:"author-meta",label:(0,i.__)("Author meta","generateblocks")},{value:"author-email",label:(0,i.__)("Author email","generateblocks")}]}];return"terms"===e&&(l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Terms","generateblocks"),options:[{value:"term-archives",label:(0,i.__)("Term archives","generateblocks")}]}]),t&&(l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Pagination","generateblocks"),options:[{value:"pagination-prev",label:(0,i.__)("Previous page","generateblocks")},{value:"pagination-next",label:(0,i.__)("Next page","generateblocks")}]}],"pagination-numbers"===e&&(l=[])),"generateblocks/image"===a&&l.splice(1,0,{label:(0,i.__)("Image","generateblocks"),options:[{value:"single-image",label:(0,i.__)("Single image","generateblocks")}]}),(0,m.applyFilters)("generateblocks.editor.dynamicContent.linkTypes",l,e)}(o,c,g);if(0===b.length)return null;const p=b.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===a)),f="post-meta"===a||"author-meta"===a;return(0,e.createElement)(e.Fragment,null,u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(fn,{id:"gblocks-select-link-type-control",label:(0,i.__)("Link source","generateblocks"),placeholder:(0,i.__)("Link source","generateblocks"),options:b,value:p,onChange:e=>s({dynamicLinkType:e.value})}),f&&(0,e.createElement)(r.TextControl,{label:(0,i.__)("Meta field name","generateblocks"),value:l,onChange:e=>s({linkMetaFieldName:e})}),("author-email"===a||f&&!!l)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Link type","generateblocks"),value:n,onChange:e=>s({linkMetaFieldType:e}),options:Ti}),!!a&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove block if link is empty","generateblocks"),checked:!!d,onChange:e=>s({dynamicLinkRemoveIfEmpty:e})})))};function xi(t){const{isActive:a=!1,dateType:l,dateReplacePublished:n,setAttributes:o}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Date type","generateblocks"),value:l,options:[{value:"published",label:(0,i.__)("Published","generateblocks")},{value:"updated",label:(0,i.__)("Updated","generateblocks")}],onChange:e=>o({dateType:e})}),"published"===l&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Replace with updated date","generateblocks"),checked:!!n,onChange:e=>o({dateReplacePublished:e})})))}function Si(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,l.useSelect)((l=>{const{getUser:r,isResolving:i,getEntityRecord:o,getEntityRecords:s,hasFinishedResolution:c}=l(Z.store),u=["postType",e,t];let g=o(...u);const d=!c("getEntityRecord",u)||i("getEntityRecord",u);let b=!1;if(a.includes("author")&&!d&&g){const e=r(g.author);b=!c("getUser",[g.author])||i("getUser",[g.author]),!b&&e&&(g=Object.assign({},g,{author:e}))}let p=!1;if(a.includes("comments")&&!d&&g){const e=["root","comment",{post:t}],a=s(...e);p=!c("getEntityRecords",e)||i("getEntityRecords",e),!p&&a&&(g=Object.assign({},g,{comments:a}))}let f=!1;if(a.includes("terms")&&!d&&g){const e=["taxonomy",n.taxonomy,{post:t}],a=s(...e);f=!c("getEntityRecords",e)||i("getEntityRecords",e),!f&&a&&(g=Object.assign({},g,{terms:a}))}return{record:(0,m.applyFilters)("generateblocks.editor.postRecord",g),isLoading:d||b||p||f}}),[e,t,a.join(),JSON.stringify(n)])}function Bi(t){const{isActive:a=!1,postType:l,postId:n,metaFieldName:r,setAttributes:o}=t,{record:s,isLoading:c}=Si(l,n),u=r?{value:r,label:r}:void 0;let g=u?[u]:[];return s&&s.meta&&(g=g.concat(Object.keys(s.meta).filter((e=>e!==r)).map((e=>({value:e,label:e}))))),(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(fn,{id:"gblocks-select-post-meta-control",label:(0,i.__)("Post meta field","generateblocks"),help:(0,i.__)("Live preview is only available to meta exposed to the REST API.","generateblocks"),placeholder:(0,i.__)("Choose or add meta key","generateblocks"),options:g,value:u,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,isLoading:c,onChange:e=>{o({metaFieldName:e?.value||void 0})}}))}function Mi(t){const{isActive:a=!1,postType:l,postId:n,metaFieldName:r,setAttributes:o}=t,{record:s,isLoading:c}=Si(l,n,["author"]),u=r?{value:r,label:r}:void 0;let g=u?[u]:[];return s&&s.author&&s.author.meta&&(g=g.concat(Object.keys(s.author.meta).filter((e=>e!==r)).map((e=>({value:e,label:e}))))),(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(fn,{id:"gblocks-select-author-meta-control",label:(0,i.__)("Author meta field","generateblocks"),help:(0,i.__)("Live preview is only available to meta exposed to the REST API.","generateblocks"),placeholder:(0,i.__)("Choose or add meta key","generateblocks"),options:g,value:u,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,isLoading:c,onChange:e=>{o({metaFieldName:e?.value||void 0})}}))}function Di(t){const{isActive:a,noCommentsText:l,singleCommentText:n,multipleCommentsText:o,setAttributes:s}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.TextControl,{label:(0,i.__)("No comments text","generateblocks"),value:l,onChange:e=>s({noCommentsText:e})}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Single comment text","generateblocks"),value:n,onChange:e=>s({singleCommentText:e})}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Multiple comments text","generateblocks"),value:o,onChange:e=>s({multipleCommentsText:e})})))}function Ri(t){const{isActive:a,postType:l,termTaxonomy:n,termSeparator:o,setAttributes:s,name:c}=t,u=K(),g=(0,e.useMemo)((()=>u.filter((e=>e.types.includes(l))).map((e=>({value:e.slug,label:e.name})))),[u,l]);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Cn,{label:(0,i.__)("Taxonomy","generateblocks"),options:g,value:n,onChange:e=>{s({termTaxonomy:e.value})}}),"generateblocks/button"!==c&&(0,e.createElement)(r.TextControl,{label:(0,i.__)("Term separator","generateblocks"),value:o,onChange:e=>s({termSeparator:e})})))}function zi(a){const{isActive:l,useDefaultMoreLink:n,customMoreLinkText:o,setAttributes:s}=a;return(0,e.createElement)(e.Fragment,null,l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(M,t({},a,{label:(0,i.__)("Excerpt length","generateblocks"),attributeName:"excerptLength",min:"0"})),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Use default more link","generateblocks"),checked:!!n,onChange:e=>s({useDefaultMoreLink:e})}),!n&&(0,e.createElement)(In,{label:(0,i.__)("Custom more link text","generateblocks"),value:o,onChange:e=>s({customMoreLinkText:e})})))}var Li=t=>{let{context:a,attributes:l,setAttributes:o,name:s}=t;const{postType:c,postId:u,useDynamicData:g,dynamicSource:d,dynamicContentType:p,dateType:m,dateReplacePublished:f,metaFieldName:h,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,termTaxonomy:w,termSeparator:_,dynamicLinkType:T,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,isQueryLoopItem:B,isCaption:M,excerptLength:D,useDefaultMoreLink:R,customMoreLinkText:z,dynamicLinkRemoveIfEmpty:L}=l,O="current-post"===d?a.postType:c,I="current-post"===d?a.postId:u,N=void 0!==a["generateblocks/queryId"];return(0,e.useEffect)((()=>{"generateblocks/container"===s&&g&&""!==p&&(B||N)&&o({bgImageInline:!0})}),[p,B]),(0,e.useEffect)((()=>{"generateblocks/headline"===s&&M&&g&&(a["generateblocks/mediaId"]?o({postId:a["generateblocks/mediaId"],postType:"attachment",dynamicSource:"current-post",dynamicContentType:p||"caption"}):o({postId:"",postType:"post",dynamicSource:"current-post",dynamicContentType:p||"caption"}))}),[M,a["generateblocks/mediaId"],g,p]),(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(C,{id:"dynamicDataControls",title:(0,i.__)("Dynamic Data","generateblocks"),initialOpen:!1,icon:b("dynamic"),className:"gblocks-panel-label"},(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Enable Dynamic Data","generateblocks"),checked:g,onChange:e=>{o({useDynamicData:e})}}),g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(_i,{dynamicSource:d,postType:c,postId:u,setAttributes:o,dynamicContentType:p}),(0,e.createElement)(Ci,{dynamicContentType:p,setAttributes:o,name:s,isCaption:M}),(0,e.createElement)(xi,{isActive:"post-date"===p,dateType:m,dateReplacePublished:f,setAttributes:o}),(0,e.createElement)(Bi,{isActive:"post-meta"===p,postType:O,postId:I,metaFieldName:h,setAttributes:o}),(0,e.createElement)(Mi,{isActive:"author-meta"===p,postType:O,postId:I,metaFieldName:h,setAttributes:o}),(0,e.createElement)(Di,{isActive:"comments-number"===p,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,setAttributes:o}),(0,e.createElement)(Ri,{isActive:"terms"===p,postType:O,termTaxonomy:w,termSeparator:_,setAttributes:o,name:s}),(0,e.createElement)(zi,{isActive:"post-excerpt"===p,excerptLength:D,useDefaultMoreLink:R,customMoreLinkText:z,setAttributes:o,attributes:l}),(0,e.createElement)(Ei,{isActive:"generateblocks/container"!==s||"generateblocks/container"===s&&void 0!==l.url,linkType:T,dynamicLinkRemoveIfEmpty:L,dynamicContentType:p,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,setAttributes:o,name:s}))))};function Oi(t){let{name:a,clientId:n,align:r,children:i}=t;const{getBlockRootClientId:o}=(0,l.useSelect)((e=>e("core/block-editor")),[]),c=a.toString().replace("/","-"),u={className:s()({"wp-block":!0,"block-editor-block-list__block":!0,"gb-is-root-block":!0,[`gb-root-block-${c}`]:!0}),"data-align":r||null,"data-block":n};return o(n)?i:(0,e.createElement)("div",u,i)}var Ii=t=>{let{icon:a,hasIcon:l=!0,direction:n="left",children:r,hideChildren:i=!1,showWrapper:o=!1,wrapperClassname:s=""}=t;const c=a?(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:a}}):void 0;return(0,e.createElement)(e.Fragment,null,l&&"left"===n&&c,i||(o?(0,e.createElement)("span",{className:s},r):r),l&&"right"===n&&c)};function Ni(t){let{tagName:a,htmlAttrs:l,children:n}=t;return(0,e.createElement)(a,l,n)}function Ai(t){const{name:a,clientId:r,attributes:o,setAttributes:c,onSplit:u,onReplace:g,InnerContent:d=n.RichText,headlineRef:b}=t,{uniqueId:p,element:f,content:h,icon:k,hasIcon:v,anchor:y,removeText:w,ariaLabel:_,dynamicContentType:C,dynamicLinkType:T}=o;let E={className:s()({"gb-headline":!0,[`gb-headline-${p}`]:!0,"gb-headline-text":!v}),id:y||null,ref:b};E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",E,"generateblocks/headline",o);const x=(0,n.useBlockProps)(E),S=(0,m.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,t)?[]:null,B="terms"!==C&&T?"a":"span",M=(0,l.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]),D=(0,e.useMemo)((()=>M&&T?M.filter((e=>"core/link"!==e.name)).map((e=>e.name)):S),[M,S,T]);return(0,e.createElement)(Oi,{name:a,clientId:r},(0,e.createElement)(Ni,{tagName:f,htmlAttrs:x},(0,e.createElement)(Ii,{hasIcon:v,icon:k,hideChildren:w,showWrapper:!w&&v,wrapperClassname:"gb-headline-text",ariaLabel:w&&_?_:void 0},(0,e.createElement)(d,{name:a,tagName:B,value:h,onChange:e=>c({content:e}),onSplit:u(o,r),onReplace:g,placeholder:(0,i.__)("Headline","generateblocks"),allowedFormats:D}))))}function Pi(t){const{attributes:a,setAttributes:l,isSelected:r,InnerContent:o=n.RichText,context:c,name:u,buttonRef:g}=t,{uniqueId:d,anchor:b,text:p,url:f,target:h,relNoFollow:k,relSponsored:v,icon:y,iconLocation:w,removeText:_,ariaLabel:C}=a,T=[];k&&T.push("nofollow"),h&&T.push("noopener","noreferrer"),v&&T.push("sponsored");let E={className:s()({"gb-button":!0,[`gb-button-${d}`]:!0,"gb-button-text":!y}),rel:T&&T.length>0?T.join(" "):null,"aria-label":C||null,id:b||null,ref:g};E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",E,"generateblocks/button",a);const x=(0,n.useBlockProps)(E),S=(0,m.applyFilters)("generateblocks.editor.buttonDisableFormatting",!1,t)?[]:["core/bold","core/italic","core/strikethrough"];return(0,e.createElement)(Ni,{tagName:f?"a":"span",htmlAttrs:x},(0,e.createElement)(Ii,{hasIcon:!!y,icon:y,direction:w,hideChildren:_,showWrapper:!_&&!!y,wrapperClassname:"gb-button-text"},(0,e.createElement)(o,{name:u,placeholder:(0,i.__)("Add text…","generateblocks"),value:p,onChange:e=>l({text:e}),allowedFormats:S,isSelected:r,attributes:a,setAttributes:l,context:c})))}var Fi={useDynamicData:{type:"boolean",default:!1},isPagination:{type:"boolean",default:!1},isCaption:{type:"boolean",default:!1},dynamicContentType:{type:"string",default:""},dynamicLinkType:{type:"string",default:""},dynamicLinkRemoveIfEmpty:{type:"boolean",default:!1},dynamicSource:{type:"string",default:"current-post"},postId:{type:"number",default:""},postType:{type:"string",default:"post"},dateType:{type:"string",default:"published"},dateReplacePublished:{type:"boolean",default:!1},metaFieldName:{type:"string",default:""},linkMetaFieldName:{type:"string",default:""},linkMetaFieldType:{type:"string",default:""},termTaxonomy:{type:"string",default:""},termSeparator:{type:"string",default:", "},noCommentsText:{type:"string",default:""},singleCommentText:{type:"string",default:""},multipleCommentsText:{type:"string",default:""},useDefaultMoreLink:{type:"boolean",default:!0},customMoreLinkText:{type:"string",default:""},excerptLength:{type:"number",default:generateBlocksInfo.excerptLength}},Hi=window.wp.date;const Vi={"post-title":function(e){return e.title?e.title.raw||(0,i.__)("No post title.","generateblocks"):(0,i.__)("Post title not supported for this type.","generateblocks")},"post-excerpt":function(e,t){if(!e.excerpt)return(0,i.__)("Post except not supported for this type.","generateblocks");const{raw:a,rendered:l,protected:n}=e?.excerpt;if(n||!a&&!l)return(0,i.__)("No post excerpt.","generateblocks");const r=e=>(new window.DOMParser).parseFromString(e,"text/html"),o=r(l),s=r(generateBlocksInfo.excerptMore),c=o.body.textContent||o.body.innerText||"";let u=s.body.textContent||s.body.innerText||"";u=u.replace("...","…");let g=a.trim()?a:c;const d=g.includes(u);return g=d?g.replace(u,""):g,g=g.split(" ").splice(0,t.excerptLength).join(" "),t.useDefaultMoreLink?d&&(g+=generateBlocksInfo.excerptMore):g+=' ... <a href="#">'+t.customMoreLinkText+"</a>",g},"post-date":function(e,t){let a=t.dateType;if("published"===a&&t.dateReplacePublished&&(a="updated"),!e.date)return(0,i.__)("No post date.","generateblocks");const l="updated"===a?e.modified:e.date;return(0,Hi.dateI18n)(t.dateFormat||"F j, Y",l,"")},"post-meta":function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Gi(t.metaFieldName,e.meta,a)},"author-meta":function(e,t){return e.author?Gi(t.metaFieldName,e.author.meta):ji()},"author-email":function(e){return e.author?e.author.email||(0,i.__)("No author email.","generateblocks"):ji()},"author-name":function(e){return e.author?e.author.name||(0,i.__)("No author name.","generateblocks"):ji()},"author-nickname":function(e){return e.author?e.author.nickname||(0,i.__)("No author nickname.","generateblocks"):ji()},"author-first-name":function(e){return e.author?e.author.first_name||(0,i.__)("No author first name.","generateblocks"):ji()},"author-last-name":function(e){return e.author?e.author.last_name||(0,i.__)("No author last name.","generateblocks"):ji()},"comments-number":function(e,t){const a=Array.isArray(e.comments)?e.comments.length:0,{noCommentsText:l,singleCommentText:n,multipleCommentsText:r}=t;return 0===a?l:1===a?n:r.replace("%",String(a))},"pagination-numbers":function(){return(0,i.__)("1 … 2 3","generateblocks")},"featured-image":function(e){return e?.featured_media},terms:function(e,t){return Array.isArray(e.terms)&&e.terms.length>0?e.terms.map((e=>e.name)).join(t.termSeparator):"No terms"},"author-avatar":function(e){return{source_url:e?.author?.avatar_urls&&e?.author?.avatar_urls[96]?e?.author?.avatar_urls[96]:""}},caption:function(e){return e?.caption?.raw||(0,i.__)("Image caption","generateblocks")},"alt-text":function(e){return e?.alt_text||(0,i.__)("Image alt text","generateblocks")},"image-description":function(e){return e?.description?.raw||(0,i.__)("Image description","generateblocks")}};function Ui(e,t,a){return a?void 0:(0,i.sprintf)(// translators: %s: Content type.
12
- (0,i.__)("Content type %s is not supported.","generateblocks"),t.dynamicContentType)}const Gi=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&t[e]){const l=t[e],n=a?void 0:(0,i.__)("Meta value","generateblocks");return U().isString(l)||U().isNumber(l)?U().toString(l):n}return a?void 0:(0,i.__)("Meta value","generateblocks")};function ji(){return(0,i.__)("Author not found.","generateblocks")}var qi=t=>{let{isGrid:a,uniqueId:l,children:n}=t;return a?(0,e.createElement)("div",{className:`gb-grid-column gb-grid-column-${l}`},n):n},Wi=t=>{let{attributes:a,allShapes:l}=t;const{shapeDividers:n}=a;return(0,e.createElement)(e.Fragment,null,!!a.shapeDividers.length&&(0,e.createElement)("div",{className:"gb-shapes"},a.shapeDividers.map(((t,a)=>{const r=a+1;return(0,e.createElement)(e.Fragment,{key:a},void 0!==l[n[a].shape]&&(0,e.createElement)("div",{className:s()({"gb-shape":!0,[`gb-shape-${r}`]:!0}),dangerouslySetInnerHTML:{__html:ki(l[n[a].shape].icon)}}))}))))};class $i extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeVerticalGap:l}=t;let n=[];return n[".gb-grid-column-"+a]=[{"margin-bottom":!!l&&"0px !important"}],n=(0,m.applyFilters)("generateblocks.editor.desktopCSS",n,this.props,"container"),(0,e.createElement)("style",null,O(n))}}class Zi extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,widthTablet:n,autoWidthTablet:r,flexGrowTablet:i,flexShrinkTablet:o,flexBasisTablet:s,flexBasisUnit:c,minHeightTablet:u,minHeightUnitTablet:g,paddingTopTablet:d,paddingRightTablet:b,paddingBottomTablet:p,paddingLeftTablet:f,paddingUnit:h,marginTopTablet:k,marginRightTablet:v,marginBottomTablet:y,marginLeftTablet:w,marginUnit:_,borderSizeTopTablet:C,borderSizeRightTablet:T,borderSizeBottomTablet:E,borderSizeLeftTablet:x,borderRadiusTopRightTablet:S,borderRadiusBottomRightTablet:B,borderRadiusBottomLeftTablet:M,borderRadiusTopLeftTablet:D,borderRadiusUnit:R,verticalAlignmentTablet:z,alignmentTablet:L,fontSizeTablet:N,fontSizeUnit:A,orderTablet:P,shapeDividers:F,bgImage:H,bgOptions:V,gridId:U}=t;let G=[];return G[".editor-styles-wrapper .gb-container-"+a]=[{"border-top-left-radius":I(D,R),"border-top-right-radius":I(S,R),"border-bottom-right-radius":I(B,R),"border-bottom-left-radius":I(M,R),"margin-top":I(k,_),"margin-right":I(v,_),"margin-bottom":I(y,_),"margin-left":I(w,_),"text-align":L,"font-size":I(N,A),"min-height":I(u,g)}],(C||T||E||x)&&G[".editor-styles-wrapper .gb-container-"+a].push({"border-top-width":I(C,"px"),"border-right-width":I(T,"px"),"border-bottom-width":I(E,"px"),"border-left-width":I(x,"px"),"border-style":"solid"}),u&&!l&&G[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==z?z:null}),l&&"inherit"!==z&&G[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":z}),G[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":I(d,h),"padding-right":I(b,h),"padding-bottom":I(p,h),"padding-left":I(f,h),width:!(!u||l)&&"100%"}],l&&(G[[".gb-post-template-"+U+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+a].join(",")]=[{width:r?"auto":I(n,"%"),"flex-grow":i,"flex-shrink":o,"flex-basis":isNaN(s)?s:I(s,c),order:P}]),H&&"pseudo-element"===V.selector&&(G[".gb-container-"+a+":before"]=[{"border-top-left-radius":I(D,R),"border-top-right-radius":I(S,R),"border-bottom-right-radius":I(B,R),"border-bottom-left-radius":I(M,R)}]),F.length&&F.forEach(((e,t)=>{G[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:I(F[t].heightTablet,"px"),width:I(F[t].widthTablet,"%")}]})),G=(0,m.applyFilters)("generateblocks.editor.tabletCSS",G,this.props,"container"),(0,e.createElement)("style",null,O(G))}}class Ki extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeVerticalGapTablet:l}=t;let n=[];return l&&(n[".gb-grid-column-"+a]=[{"margin-bottom":"0px !important"}]),n=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",n,this.props,"container"),(0,e.createElement)("style",null,O(n))}}class Qi extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,widthMobile:n,autoWidthMobile:r,flexGrowMobile:i,flexShrinkMobile:o,flexBasisMobile:s,flexBasisUnit:c,minHeightMobile:u,minHeightUnitMobile:g,paddingTopMobile:d,paddingRightMobile:b,paddingBottomMobile:p,paddingLeftMobile:f,paddingUnit:h,marginTopMobile:k,marginRightMobile:v,marginBottomMobile:y,marginLeftMobile:w,marginUnit:_,borderSizeTopMobile:C,borderSizeRightMobile:T,borderSizeBottomMobile:E,borderSizeLeftMobile:x,borderRadiusTopRightMobile:S,borderRadiusBottomRightMobile:B,borderRadiusBottomLeftMobile:M,borderRadiusTopLeftMobile:D,borderRadiusUnit:R,verticalAlignmentMobile:z,removeVerticalGapMobile:L,alignmentMobile:N,fontSizeMobile:A,fontSizeUnit:P,orderMobile:F,shapeDividers:H,bgImage:V,bgOptions:U,gridId:G}=t;let j=[];return j[".editor-styles-wrapper .gb-container-"+a]=[{"border-top-left-radius":I(D,R),"border-top-right-radius":I(S,R),"border-bottom-right-radius":I(B,R),"border-bottom-left-radius":I(M,R),"margin-top":I(k,_),"margin-right":I(v,_),"margin-bottom":I(y,_),"margin-left":I(w,_),"text-align":N,"font-size":I(A,P),"min-height":I(u,g)}],(C||T||E||x)&&j[".editor-styles-wrapper .gb-container-"+a].push({"border-top-width":I(C,"px"),"border-right-width":I(T,"px"),"border-bottom-width":I(E,"px"),"border-left-width":I(x,"px"),"border-style":"solid"}),"inherit"!==z&&u&&!l&&j[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":z}),l&&"inherit"!==z&&j[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":z}),j[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":I(d,h),"padding-right":I(b,h),"padding-bottom":I(p,h),"padding-left":I(f,h),width:!(!u||l)&&"100%"}],l&&(j[[".gb-post-template-"+G+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+a].join(",")]=[{width:r?"auto":I(n,"%"),"flex-grow":i,"flex-shrink":o,"flex-basis":isNaN(s)?s:I(s,c),order:F}]),L&&(j[".gb-grid-column-"+a]=[{"margin-bottom":"0px !important"}]),V&&"pseudo-element"===U.selector&&(j[".gb-container-"+a+":before"]=[{"border-top-left-radius":I(D,R),"border-top-right-radius":I(S,R),"border-bottom-right-radius":I(B,R),"border-bottom-left-radius":I(M,R)}]),H.length&&H.forEach(((e,t)=>{j[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:I(H[t].heightMobile,"px"),width:I(H[t].widthMobile,"%")}]})),V&&"fixed"===U.attachment&&("element"===U.selector&&j[".editor-styles-wrapper .gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===U.selector&&(j[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),j=(0,m.applyFilters)("generateblocks.editor.mobileCSS",j,this.props,"container"),(0,e.createElement)("style",null,O(j))}}function Yi(e,t,a,l,n){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+n+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+n+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+n+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+n+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}var Ji=e=>{const{attributes:t,featuredImage:a}=e,{dynamicImage:n,useDynamicData:r,dynamicContentType:i,bgImageSize:o}=t;return(0,l.useSelect)((e=>{const{getMedia:t}=e(Z.store);return"featured-image"===i&&a||!isNaN(parseInt(n))?t("featured-image"===i&&a?a:parseInt(n),{context:"view"}):n}),[r,n,o,a,i])};function Xi(e,t){return"object"==typeof e?e?.media_details?.sizes?.[t]?.source_url||e?.source_url:e}function eo(e){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",e.attributes,e),{bgImage:a,useDynamicData:l,dynamicContentType:n,bgImageSize:r}=t;let i=a?.image?.url;const o=Ji(e);return l&&""!==n&&(i=Xi(o,r)),(0,m.applyFilters)("generateblocks.editor.bgImageURL",i,e)}function to(e,t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{backgroundColor:l,backgroundColorOpacity:n,bgImage:r,bgImageInline:i,gradient:o,bgOptions:s,gradientColorOne:c,gradientColorOneOpacity:u,gradientColorTwo:g,gradientColorTwoOpacity:d,gradientColorStopOne:b,gradientColorStopTwo:p,gradientDirection:f,useDynamicData:h,dynamicContentType:k}=a;let v="";if(o){let e="",t="";const a=gi(c,u),l=gi(g,d);c&&""!==b&&(e=" "+b+"%"),g&&""!==p&&(t=" "+p+"%"),v="linear-gradient("+f+"deg, "+a+e+", "+l+t+")"}if("gradient"===e)return v;let y=!1;const w=gi(l,n);if(r||h&&""!==k){const e=eo(t);"element"===s.selector&&(w||o)&&void 0!==s.overlay&&s.overlay?o?y=v+", url("+e+")":w&&(y="linear-gradient(0deg, "+w+", "+w+"), url("+e+")"):(y="url("+e+")",i&&"element"!==s.selector&&(y="var(--background-image)"))}return y}function ao(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{clientId:l}=t,{uniqueId:n,isGrid:r,width:i,autoWidth:o,flexGrow:s,flexShrink:c,flexBasis:u,flexBasisUnit:g,outerContainer:d,innerContainer:b,containerWidth:p,minHeight:f,minHeightUnit:h,paddingTop:k,paddingRight:v,paddingBottom:y,paddingLeft:w,paddingUnit:_,marginTop:C,marginRight:T,marginBottom:E,marginLeft:x,marginUnit:S,borderSizeTop:B,borderSizeRight:M,borderSizeBottom:D,borderSizeLeft:R,borderRadiusTopRight:z,borderRadiusBottomRight:L,borderRadiusBottomLeft:N,borderRadiusTopLeft:A,borderRadiusUnit:P,borderColor:F,borderColorOpacity:H,backgroundColor:V,backgroundColorOpacity:U,gradient:G,gradientSelector:j,textColor:q,linkColor:W,linkColorHover:$,bgImage:Z,bgOptions:K,verticalAlignment:Q,zindex:Y,innerZindex:J,alignment:X,fontFamily:ee,fontFamilyFallback:te,fontWeight:ae,fontSize:le,fontSizeUnit:ne,textTransform:re,shapeDividers:ie,gridId:oe,useDynamicData:se,dynamicContentType:ce,bgImageInline:ue}=a;let ge=p;ge||(ge=generateBlocksDefaults.container.containerWidth);let de="";ee&&te&&(de=", "+te);const be=!!Z||se&&""!==ce,pe=to("image",t),me=to("gradient",t);let fe=[];return fe[".editor-styles-wrapper .gb-container-"+n]=[{"background-color":gi(V,U),color:q,"border-radius":Yi(A,z,L,N,P),margin:Yi(C,T,E,x,S),"z-index":Y,"text-align":X,"font-family":ee+de,"font-weight":ae,"text-transform":re,"font-size":I(le,ne),"min-height":I(f,h),"border-color":gi(F,H)}],be&&"element"===K.selector&&pe?fe[".editor-styles-wrapper .gb-container-"+n].push({"background-image":ue?null:pe,"background-size":K.size,"background-position":K.position,"background-repeat":K.repeat,"background-attachment":K.attachment}):G&&"element"===j&&fe[".editor-styles-wrapper .gb-container-"+n].push({"background-image":me}),(be&&"pseudo-element"===K.selector||Y||G&&"pseudo-element"===j)&&fe[".editor-styles-wrapper .gb-container-"+n].push({position:"relative"}),(be&&"pseudo-element"===K.selector||G&&"pseudo-element"===j)&&(fe[".editor-styles-wrapper .gb-container-"+n].push({overflow:"hidden"}),fe[".gb-container-"+n+" .block-list-appender"]=[{"z-index":10}]),fe[".editor-styles-wrapper .gb-container-"+n+" h1,\n\t\t.editor-styles-wrapper .gb-container-"+n+" h2,\n\t\t.editor-styles-wrapper .gb-container-"+n+" h3,\n\t\t.editor-styles-wrapper .gb-container-"+n+" h4,\n\t\t.editor-styles-wrapper .gb-container-"+n+" h5,\n\t\t.editor-styles-wrapper .gb-container-"+n+" h6"]=[{color:q}],(B||M||D||R)&&fe[".editor-styles-wrapper .gb-container-"+n].push({"border-width":Yi(B,M,D,R,"px"),"border-style":"solid"}),f&&!r&&fe[".editor-styles-wrapper .gb-container-"+n].push({display:"flex","flex-direction":"row","align-items":Q}),be&&"pseudo-element"===K.selector&&(fe[".gb-container-"+n+":before"]=[{content:'""',"background-image":pe,"background-repeat":K.repeat,"background-position":K.position,"background-size":K.size,"background-attachment":K.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":Yi(A,z,L,N,P)}],void 0!==K.opacity&&1!==K.opacity&&fe[".gb-container-"+n+":before"].push({opacity:K.opacity})),G&&"pseudo-element"===j&&(fe[".gb-container-"+n+":after"]=[{content:'""',"background-image":me,"z-index":"0 !important",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),fe[".editor-styles-wrapper .gb-container-"+n+" a, .editor-styles-wrapper .gb-container-"+n+" a:visited"]=[{color:W}],fe[".editor-styles-wrapper .gb-container-"+n+" a:hover"]=[{color:$}],fe[".gb-container-"+n+" > .gb-inside-container"]=[{padding:Yi(k,v,y,w,_),width:!(!f||r)&&"100%"}],(J||0===J)&&fe[".gb-container-"+n+" > .gb-inside-container"].push({"z-index":J,position:"relative"}),"contained"!==b||r||fe[".gb-container-"+n+" > .gb-inside-container"].push({"max-width":I(ge,"px"),"margin-left":"auto","margin-right":"auto"}),fe["#block-"+l]=[{"max-width":"contained"===d&&!r&&I(ge,"px"),"margin-left":"contained"===d&&!r&&"auto","margin-right":"contained"===d&&!r&&"auto"}],r&&(fe[[".gb-post-template-"+oe+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+n].join(",")]=[{width:!o&&I(i,"%"),"flex-grow":s,"flex-shrink":c,"flex-basis":isNaN(u)?u:I(u,g)}],fe[".editor-styles-wrapper .gb-container-"+n].push({display:"flex","flex-direction":"column",height:"100%","justify-content":Q})),fe["#block-"+l+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t#block-"+l+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ie.length&&(fe[".editor-styles-wrapper .gb-container-"+n].push({position:"relative"}),fe[".gb-container-"+n+" .block-list-appender"]=[{position:"relative","z-index":100}],ie.forEach(((e,t)=>{const a=[],l=t+1;"top"===ie[t].location&&a.push("scaleY(-1)"),ie[t].flipHorizontally&&(a.push("scaleX(-1)"),fe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+l+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),fe[".gb-container-"+n+" > .gb-shapes .gb-shape-"+l]=[{color:gi(ie[t].color,ie[t].colorOpacity),"z-index":ie[t].zindex}],"top"!==ie[t].location&&"bottom"!==ie[t].location||fe[".gb-container-"+n+" > .gb-shapes .gb-shape-"+l].push({left:"0",right:"0"}),"bottom"===ie[t].location&&fe[".gb-container-"+n+" > .gb-shapes .gb-shape-"+l].push({bottom:"-1px"}),"top"===ie[t].location&&fe[".gb-container-"+n+" > .gb-shapes .gb-shape-"+l].push({top:"-1px"}),a.length&&fe[".gb-container-"+n+" > .gb-shapes .gb-shape-"+l].push({transform:a.join(" ")});let r=ie[t].width+"%";100===ie[t].width&&(r="calc("+r+" + 1.3px)"),fe[".gb-container-"+n+" > .gb-shapes .gb-shape-"+l+" svg"]=[{height:I(ie[t].height,"px"),width:r}],"top"!==ie[t].location&&"bottom"!==ie[t].location||fe[".gb-container-"+n+" > .gb-shapes .gb-shape-"+l+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),fe=(0,m.applyFilters)("generateblocks.editor.mainCSS",fe,t,"container"),(0,e.createElement)("style",null,O(fe))}var lo=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=t?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ao,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)($i,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Zi,t),"Tablet"===a&&(0,e.createElement)(Ki,t),"Mobile"===a&&(0,e.createElement)(Qi,t)))}),G);function no(a){const{attributes:o,clientId:c,name:u,filterTagName:g,allShapes:d,deviceType:p}=a,{uniqueId:f,className:h,anchor:k,tagName:v,backgroundColor:y,isGrid:w,bgOptions:_,bgImageInline:C,align:T,isBlockPreview:E=!1}=o,{selectBlock:x}=(0,l.useDispatch)("core/block-editor"),S=0<$(c);let B=!!y||o.borderSizeTop||o.borderSizeRight||o.borderSizeBottom||o.borderSizeLeft;B=(0,m.applyFilters)("generateblocks.editor.containerHasStyling",B,a);let M={className:s()({"gb-container":!0,[`gb-container-${f}`]:!0,[`${h}`]:void 0!==h,"gb-container-empty":!S&&!E,"gb-container-visual-guides":!(S||B||a.isSelected||E)}),id:k||null,"data-align":T||null};const D=eo(a);if(C&&D){let e="background-image";"element"!==_.selector&&(e="--"+e),M.style={[e]:"url("+D+")"}}M=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",M,"generateblocks/container",o);const R=(0,n.useBlockProps)(M);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(lo,t({},a,{deviceType:p})),(0,e.createElement)(Oi,{name:u,clientId:c,align:T},(0,e.createElement)(qi,{isGrid:w,uniqueId:f},(0,e.createElement)(Ni,{tagName:g((0,m.applyFilters)("generateblocks.frontend.containerTagName",v,o)),htmlAttrs:R},(0,m.applyFilters)("generateblocks.frontend.afterContainerOpen","",o),(0,e.createElement)("div",{className:"gb-inside-container"},(0,m.applyFilters)("generateblocks.frontend.insideContainer","",o),(0,e.createElement)(n.InnerBlocks,{templateLock:!1,renderAppender:()=>!E&&(a.isSelected?(0,e.createElement)(n.InnerBlocks.ButtonBlockAppender,null):!S&&!a.isSelected&&(0,e.createElement)(r.Button,{className:"gblocks-container-selector",onClick:()=>x(c),"aria-label":(0,i.__)("Select Container","generateblocks")},(0,e.createElement)("span",{className:"gblocks-container-selector__icon"},b("container"))))})),(0,e.createElement)(Wi,{attributes:o,allShapes:d}),(0,m.applyFilters)("generateblocks.frontend.beforeContainerClose","",o)))))}function ro(t){const{onSelectImage:a,onSelectURL:l,onUploadError:r,attributes:o,canUploadImage:s}=t,{width:c,height:u,useDynamicData:g,uniqueId:d}=o,p=(0,e.createElement)(T.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,e.createElement)(T.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));let m=generateBlocksInfo.imagePlaceholders.standard;c&&c<500&&c===u&&(m=generateBlocksInfo.imagePlaceholders.square);let f=(0,e.createElement)(n.MediaPlaceholder,{labels:{title:(0,i.__)("Image","generateblocks"),instructions:(0,i.__)("Choose an image from your media library or add one with a URL.","generateblocks")},icon:b("image"),onSelect:a,onSelectURL:g?null:l,onError:r,accept:"image/*",allowedTypes:["image"]});return s||(f=(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{className:"gb-image-"+d,src:m,alt:"",width:c||1e3,height:u||650}),p)),(0,e.createElement)("div",{className:"gblocks-image__placeholder",style:{width:!s&&c?c:null}},f)}function io(t){const{href:a,openInNewWindow:l,relNoFollow:n,relSponsored:r,children:i,disabled:o}=t,s=[];return l&&s.push("noopener","noreferrer"),n&&s.push("nofollow"),r&&s.push("sponsored"),(0,e.createElement)(e.Fragment,null,a?(0,e.createElement)("a",{href:o?void 0:a,target:l?"_blank":void 0,rel:s&&s.length>0?s.join(" "):null},i):i)}function oo(a){const{src:l,alt:i,title:o,anchorAttributes:c,imageRef:u,setLoadedNaturalSize:g,naturalWidth:d,naturalHeight:b,attributes:p,temporaryURL:f}=a,{uniqueId:h,anchor:k,mediaId:v,dynamicImage:y,useDynamicData:w,className:_,align:C}=p,T=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${h}`]:!0,[`${_}`]:void 0!==_,[`align${C}`]:""!==C}),id:k||null,width:d,height:b,src:f||l,alt:i,title:o},"generateblocks/image",p);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(io,c,(0,e.createElement)("img",t({},T,{ref:u,onLoad:e=>{g({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})}})),f&&(0,e.createElement)(r.Spinner,null)),(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/dynamicImage":!!w&&parseInt(y),"generateblocks/mediaId":!w&&v}},(0,e.createElement)(n.InnerBlocks,{allowedBlocks:["generateblocks/headline"],renderAppender:!1})))}const so={className:"block-editor-block-settings-menu__popover",position:"bottom right"};function co(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const a={width:"300px","font-style":"italic","margin-bottom":t?"15px":"0"};return(0,e.createElement)("div",{style:a},(0,i.__)("This button is using a dynamic link.","generateblocks"))}function uo(t){const{attributes:a,setAttributes:l,name:o}=t,{href:s,relNoFollow:c,relSponsored:u,dynamicLinkType:g,useDynamicData:d,url:b}=a,p=d&&g,f="generateblocks/button"===o?"target":"openInNewWindow",h=a[f],k="generateblocks/button"===o?b:s;return(0,e.createElement)(e.Fragment,null,d?(0,e.createElement)(co,{marginBottom:!!g}):(0,e.createElement)(n.URLInput,{className:"gblocks-link-url",value:k,onChange:e=>l({href:e})}),(0,m.applyFilters)("generateblocks.editor.urlInputMoreOptions","",a),(!!k||p)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Open link in a new tab","generateblocks"),checked:h||"",onChange:e=>l({[f]:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="nofollow"',"generateblocks"),checked:c||"",onChange:e=>l({relNoFollow:e})}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="sponsored"',"generateblocks"),checked:u||"",onChange:e=>l({relSponsored:e})})))}function go(t){const{attributes:a,name:l}=t,{url:n,href:o}=a,s="generateblocks/button"===l?n:o,c=s?(0,i.__)("Change Link","generateblocks"):(0,i.__)("Add Link","generateblocks");return(0,e.createElement)(r.Dropdown,{popoverProps:so,contentClassName:"gblocks-link-control-dropdown",renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.ToolbarButton,{icon:ar,label:c,onClick:l,"aria-expanded":a,isPressed:!!s})},renderContent:()=>(0,e.createElement)(uo,t)})}function bo(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{attributes:l,deviceType:n}=t,r="Desktop"===n?"":n,i=e+r;return a?i:l[i]}var po=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"})),mo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"})),fo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"})),ho=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),ko=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),vo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),yo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function wo(t){const{attributes:a,setAttributes:o,deviceType:s}=t,{align:c}=a,{wideControlsEnabled:u=!1}=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return{wideControlsEnabled:t().alignWide}}),[]),g={left:po,center:mo,right:fo,floatLeft:ho,floatRight:ko,wide:vo,full:yo},d=c?g[c]:g[bo("alignment",t)]||po,b=e=>o({[bo("alignment",t,!0)]:e!==bo("alignment",t)?e:"",align:""}),p=[{icon:po,title:(0,i.__)("Align left","generateblocks"),onClick:()=>b("left"),isActive:"left"===bo("alignment",t)},{icon:mo,title:(0,i.__)("Align center","generateblocks"),onClick:()=>b("center"),isActive:"center"===bo("alignment",t)},{icon:fo,title:(0,i.__)("Align right","generateblocks"),onClick:()=>b("right"),isActive:"right"===bo("alignment",t)},{icon:ho,title:(0,i.__)("Float left","generateblocks"),onClick:()=>b("floatLeft"),isActive:"floatLeft"===bo("alignment",t)},{icon:ko,title:(0,i.__)("Float right","generateblocks"),onClick:()=>b("floatRight"),isActive:"floatRight"===bo("alignment",t)}];return u&&"Desktop"===s&&p.push({icon:vo,title:(0,i.__)("Wide width","generateblocks"),onClick:()=>o({align:"wide"!==c?"wide":"",alignment:"",alignmentTablet:"",alignmentMobile:""}),isActive:"wide"===c},{icon:yo,title:(0,i.__)("Full width","generateblocks"),onClick:()=>o({align:"full"!==c?"full":"",alignment:"",alignmentTablet:"",alignmentMobile:""}),isActive:"full"===c}),(0,e.createElement)(r.ToolbarGroup,{isCollapsed:!0,icon:d,controls:p})}function _o(t){const{attributes:a,setAttributes:o,onSelectImage:s,onUploadError:c,onResetImage:u,imageUrl:d,canUploadImage:p,clientId:m,deviceType:f}=t,{mediaId:h,caption:k}=a,{insertBlocks:v}=(0,l.useDispatch)("core/block-editor"),y=$(m);return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(wo,{attributes:a,setAttributes:o,deviceType:f}),0===y&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:b("caption"),label:(0,i.__)("Add Caption","generateblocks"),onClick:()=>{v((0,g.createBlock)("generateblocks/headline",{element:"figcaption",content:k,isCaption:!0}),void 0,m)},showTooltip:!0})),!!d&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(go,{attributes:a,setAttributes:o})),!!d&&p&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(n.MediaReplaceFlow,{mediaId:h,mediaURL:d,allowedTypes:["image"],accept:"image/*",onSelect:s,onError:c},(0,e.createElement)(r.MenuItem,{onClick:u},(0,i.__)("Reset")))))}function Co(a){const{attributes:r,setAttributes:i,name:o,clientId:c,deviceType:u,temporaryURL:g}=a,{uniqueId:d,useDynamicData:b,dynamicContentType:p,href:f,openInNewWindow:h,relNoFollow:k,relSponsored:v,sizeSlug:y,className:w,align:_}=r,C=(0,e.useRef)(),T=(0,e.useRef)(),[{loadedNaturalWidth:E,loadedNaturalHeight:x},S]=(0,e.useState)({}),{naturalWidth:B,naturalHeight:M}=(0,e.useMemo)((()=>({naturalWidth:C.current?.naturalWidth||E||void 0,naturalHeight:C.current?.naturalHeight||x||void 0})),[E,x,C.current?.complete]),{getBlockRootClientId:D}=(0,l.useSelect)((e=>e("core/block-editor")),[]),R=D(c),z=Ji(a),L=Xi(z,y),O=(0,m.applyFilters)("generateblocks.editor.dynamicImageFallback",L,a),I=b&&p?O:r.mediaUrl,N=b&&p?z?.alt_text:r.alt,A=b&&p?z?.title?.rendered:r.title,P=(0,n.useBlockProps)({className:s()({"gb-block-image":!0,[`gb-block-image-${d}`]:!0,"is-applying":!!g}),"data-align":R?_:null,ref:T});P.className.includes(w)&&(P.className=P.className.replace(w,"").trim());const F=!b||b&&!p,H={src:I,alt:N,title:A,setAttributes:i,anchorAttributes:{href:f,openInNewWindow:h,relNoFollow:k,relSponsored:v,disabled:!0},imageRef:C,setLoadedNaturalSize:S,naturalWidth:B,naturalHeight:M,attributes:r,temporaryURL:g};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(_o,t({},a,{imageUrl:I,canUploadImage:F,deviceType:u})),(0,e.createElement)(Oi,{name:o,clientId:c,align:_},(0,e.createElement)(Ni,{tagName:"figure",htmlAttrs:P},g||I?(0,e.createElement)(oo,H):(0,e.createElement)(ro,t({},a,{canUploadImage:F})))))}function To(t){const{name:a,attributes:l,context:r}=t,o=function(e,t){return"current-post"===t.dynamicSource?(t.isCaption&&(e.postId=e["generateblocks/dynamicImage"]?e["generateblocks/dynamicImage"]:e["generateblocks/mediaId"],e.postType="attachment"),Object.assign({},t,e)):t}(r,Wn(l,Object.keys(Fi))),{dynamicContentType:s,dynamicLinkType:c,termSeparator:u}=o,g=((e,t)=>{const{postId:a,postType:l}=e;if(!l)return(0,i.__)("Post type not selected.","generateblocks");if(l&&!a)return(0,i.__)("Post source not selected.","generateblocks");const[n]=(0,Z.useEntityProp)("root","site","date_format"),{load:r,loadOptions:o}=function(e,t){const a=[];let l={};return e.startsWith("author-")&&a.push("author"),"terms"===e&&(a.push("terms"),l=Object.assign({},l,{taxonomy:t.termTaxonomy})),"comments-number"===e&&a.push("comments"),{load:a,loadOptions:l}}(e.dynamicContentType,e),{record:s,isLoading:c}=Si(l,a,r,o);if("generateblocks/image"===t&&!s)return;if(c)return(0,i.__)("Loading…","generateblocks");if(!s)return(0,i.sprintf)(// translators: %1$s: post ID, %2$s: post type.
13
- (0,i.__)("Post of id #%1$s and post type %2$s was not found.","generateblocks"),a,l);const u=Object.assign({},e,{dateFormat:n}),g="generateblocks/image"===t;return function(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const n=Vi[e];return n&&"function"==typeof n?n(t,a,l):Ui(0,a,l)}(e.dynamicContentType,s,u,g)})(o,a),d=function(e){return{"generateblocks/headline":Ai,"generateblocks/button":Pi,"generateblocks/container":no,"generateblocks/image":Co}[e]}(a),b="generateblocks/headline"===a?l.content:l.text;let p=l.dynamicContentType?g:b;c&&"terms"===s&&"generateblocks/headline"===a&&(p=g.split(u).map(((t,a,l)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",null,t),a+1!==l.length&&u)))),"terms"===s&&"generateblocks/button"===a&&(p=g.split(u)[0]);const m=Object.assign({},l,{content:"generateblocks/headline"===a?p:void 0,text:"generateblocks/button"===a?p:void 0,dynamicImage:"generateblocks/container"===a||"generateblocks/image"===a?p:void 0}),f=Object.assign({},t,{InnerContent:l.dynamicContentType?n.RichText.Content:n.RichText,attributes:m});return(0,e.createElement)(d,f)}var Eo=t=>a=>{const{attributes:l,setAttributes:n,context:r,name:i}=a,o=l.useDynamicData&&(l.dynamicContentType||l.dynamicLinkType)?Object.assign({},a,{ContentRenderer:To}):a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,o),(0,e.createElement)(Li,{context:r,attributes:l,setAttributes:n,name:i}))},xo=(0,q.compose)(Eo,Y,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{if(void 0!==l.isDynamic&&l.isDynamic||n({isDynamic:!0}),void 0===l.blockVersion||l.blockVersion<2){let e=l.gradient&&"pseudo-element"===l.gradientSelector&&!S(l.innerZindex);e||(e=!!l.bgImage&&void 0!==l.bgOptions.selector&&"pseudo-element"===l.bgOptions.selector),e||(e=void 0!==l.useAdvBackgrounds&&l.useAdvBackgrounds),e&&n({innerZindex:1})}if(!J(l)&&X(l.blockVersion,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.container,t=void 0!==l.useGlobalStyle&&l.useGlobalStyle,a={},r=[];t||r.push("paddingTop","paddingRight","paddingBottom","paddingLeft"),l.isGrid&&r.push("width","widthMobile"),l.gradient&&r.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),r.forEach((t=>{S(l[t])||(a[t]=e[t])})),Object.keys(a).length>0&&n(a)}void 0===l.bgOptions.selector&&n({bgOptions:{...l.bgOptions,selector:"element"}}),void 0===l.bgOptions.opacity&&n({bgOptions:{...l.bgOptions,opacity:1}}),X(l.blockVersion,2)&&n({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:l,setAttributes:n,ContentRenderer:r=no}=a,{anchor:i,fontFamily:o,googleFont:s,googleFontVariants:c,isBlockPreview:u=!1}=l,[g,d]=W("Desktop"),b=(0,m.applyFilters)("generateblocks.editor.containerTagNames",[{label:"div",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"aside",value:"aside"}],a,{deviceType:g}),p=(0,m.applyFilters)("generateblocks.editor.allowedContainerTagNames",["div","section","header","footer","aside","a"]),f=e=>p.includes(e)?e:"div",h=[];return Object.keys(generateBlocksInfo.svgShapes).forEach((e=>{const t=generateBlocksInfo.svgShapes[e].svgs;Object.keys(t).forEach((e=>{h[e]={label:t[e].label,icon:t[e].icon}}))})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Yn,{attributes:l,setAttributes:n,deviceType:g}),(0,e.createElement)(yi,t({},a,{deviceType:g,setDeviceType:d,state:{deviceType:g},blockDefaults:generateBlocksDefaults.container,tagNames:b,filterTagName:f,allShapes:h})),(0,e.createElement)(L,{anchor:i,setAttributes:n}),(0,e.createElement)(Jn,{fontFamily:o,googleFont:s,googleFontVariants:c,isBlockPreview:u}),(0,e.createElement)(r,t({},a,{generateBlocksInfo:generateBlocksInfo,filterTagName:f,allShapes:h,deviceType:g})))})),So={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},isQueryLoopItem:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},autoWidthTablet:{type:"boolean",default:generateBlocksDefaults.container.autoWidthTablet},autoWidthMobile:{type:"boolean",default:generateBlocksDefaults.container.autoWidthMobile},flexGrow:{type:"number",default:generateBlocksDefaults.container.flexGrow},flexGrowTablet:{type:"number",default:generateBlocksDefaults.container.flexGrowTablet},flexGrowMobile:{type:"number",default:generateBlocksDefaults.container.flexGrowMobile},flexShrink:{type:"number",default:generateBlocksDefaults.container.flexShrink},flexShrinkTablet:{type:"number",default:generateBlocksDefaults.container.flexShrinkTablet},flexShrinkMobile:{type:"number",default:generateBlocksDefaults.container.flexShrinkMobile},flexBasis:{type:"string",default:generateBlocksDefaults.container.flexBasis},flexBasisTablet:{type:"string",default:generateBlocksDefaults.container.flexBasisTablet},flexBasisMobile:{type:"string",default:generateBlocksDefaults.container.flexBasisMobile},flexBasisUnit:{type:"string",default:generateBlocksDefaults.container.flexBasisUnit},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},bgImageInline:{type:"boolean",default:generateBlocksDefaults.container.bgImageInline},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},blockVersion:{type:"number"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Bo=[{attributes:So,supports:{align:!1,anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save(t){let{attributes:a}=t;const{uniqueId:l,tagName:r,elementId:i,cssClasses:o,isGrid:c,align:u}=a;let g={className:s()({"gb-container":!0,[`gb-container-${l}`]:!0,[`${o}`]:""!==o,[`align${u}`]:!!u&&!c}),id:i||null};return g=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",g,"generateblocks/container",a),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:c,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-grid-column":!0,[`gb-grid-column-${l}`]:!0})},t)},(0,e.createElement)(Ni,{tagName:r,htmlAttrs:g},(0,m.applyFilters)("generateblocks.frontend.insideContainer","",a),(0,e.createElement)("div",{className:s()({"gb-inside-container":!0})},(0,e.createElement)(n.InnerBlocks.Content,null))))}}];var Mo=Bo;const Do=Object.assign({},So,Fi);(0,g.registerBlockType)("generateblocks/container",{apiVersion:2,title:(0,i.__)("Container","generateblocks"),description:(0,i.__)("Organize your content into rows and sections.","generateblocks"),icon:b("container"),category:"generateblocks",keywords:[(0,i.__)("section"),(0,i.__)("container"),(0,i.__)("generate")],attributes:Do,supports:{align:!1,className:!1,html:!1},usesContext:["postId","postType","generateblocks/queryId"],edit:xo,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:Mo});var Ro=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const zo=[{icon:po,title:(0,i.__)("Align buttons left","generateblocks"),align:"left"},{icon:mo,title:(0,i.__)("Align buttons center","generateblocks"),align:"center"},{icon:fo,title:(0,i.__)("Align buttons right","generateblocks"),align:"right"}];var Lo=t=>{const{attributes:a,setAttributes:o,clientId:s,deviceType:c}=t,{alignment:u,alignmentTablet:d,alignmentMobile:b,isPagination:p}=a,{insertBlocks:m}=(0,l.useDispatch)("core/block-editor"),{getBlocksByClientId:f}=(0,l.useSelect)((e=>e("core/block-editor")),[]);return(0,e.createElement)(n.BlockControls,null,!p&&(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:Ro,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{const e=f(s)[0];if(e){const t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){const e=t[l].clientId;if(e){const t=f(e)[0],a=(0,g.cloneBlock)(t,{uniqueId:""});m(a,void 0,s)}}else 0===t.length&&m((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,s)}},showTooltip:!0})),"Desktop"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:u,alignmentControls:zo,onChange:e=>{o({alignment:e})}}),"Tablet"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:d,alignmentControls:zo,onChange:e=>{o({alignmentTablet:e})}}),"Mobile"===c&&(0,e.createElement)(n.AlignmentToolbar,{value:b,alignmentControls:zo,onChange:e=>{o({alignmentMobile:e})}}))},Oo=a=>{const{attributes:l,setAttributes:o,deviceType:s,state:c}=a,{stack:u,stackTablet:g,stackMobile:d,fillHorizontalSpace:p,fillHorizontalSpaceTablet:f,fillHorizontalSpaceMobile:h}=l;return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!0,icon:b("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:c}),(0,e.createElement)(nr,t({},a,{device:s,type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]})),"Desktop"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:!!u,onChange:e=>{o({stack:e,stackTablet:e&&!g?e:g,stackMobile:e&&!d?e:d})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:!!p,onChange:e=>{o({fillHorizontalSpace:e,fillHorizontalSpaceTablet:e&&!f?e:f,fillHorizontalSpaceMobile:e&&!h?e:h})}})),"Tablet"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:!!g,onChange:e=>{o({stackTablet:e,stackMobile:e&&!d?e:d})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:!!f,onChange:e=>{o({fillHorizontalSpaceTablet:e,fillHorizontalSpaceMobile:e&&!h?e:h})}})),"Mobile"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:!!d,onChange:e=>{o({stackMobile:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:!!h,onChange:e=>{o({fillHorizontalSpaceMobile:e})}})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",a,c)))};function Io(e){return"left"===e||"top"===e?"flex-start":"right"===e||"bottom"===e?"flex-end":e}class No extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignment:l,stack:n,fillHorizontalSpace:r}=t;let i=[];return i[".gb-button-wrapper-"+a]=[{display:!!r&&"block","flex-direction":!!n&&"column","align-items":!!n&&Io(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&Io(l)}],r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],i[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),n&&r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),i=(0,m.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,O(i))}}class Ao extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentTablet:l,marginTopTablet:n,marginRightTablet:r,marginBottomTablet:i,marginLeftTablet:o,marginUnit:s}=t;let c=[];return c[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{"margin-top":I(n,s),"margin-right":I(r,s),"margin-bottom":I(i,s),"margin-left":I(o,s),"justify-content":Io(l)}],c[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":Io(l)}],c=(0,m.applyFilters)("generateblocks.editor.tabletCSS",c,this.props,"button-container"),(0,e.createElement)("style",null,O(c))}}class Po extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentTablet:l,stackTablet:n,fillHorizontalSpaceTablet:r}=t;let i=[];return i[".gb-button-wrapper-"+a]=[{display:!!r&&"block","flex-direction":!!n&&"column","align-items":!!n&&Io(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!n&&"column","align-items":!!n&&Io(l)}],r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],i[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),n&&r&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),i=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,O(i))}}class Fo extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentMobile:l,marginTopMobile:n,marginRightMobile:r,marginBottomMobile:i,marginLeftMobile:o,marginUnit:s,stackMobile:c,fillHorizontalSpaceMobile:u}=t;let g=[];return g[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{display:!!u&&"block","margin-top":I(n,s),"margin-right":I(r,s),"margin-bottom":I(i,s),"margin-left":I(o,s),"justify-content":Io(l),"flex-direction":!!c&&"column","align-items":!!c&&Io(l)}],g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!c&&"column","align-items":!!c&&Io(l),"justify-content":Io(l)}],u&&(g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],g[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),c&&u&&(g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),g=(0,m.applyFilters)("generateblocks.editor.mobileCSS",g,this.props,"button-container"),(0,e.createElement)("style",null,O(g))}}class Ho extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignment:l,marginTop:n,marginRight:r,marginBottom:i,marginLeft:o,marginUnit:s}=t;let c=[];return c[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{margin:Yi(n,r,i,o,s),"justify-content":Io(l)}],c[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":Io(l)}],c=(0,m.applyFilters)("generateblocks.editor.mainCSS",c,this.props,"button-container"),(0,e.createElement)("style",null,O(c))}}var Vo=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=t?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ho,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(No,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Ao,t),"Tablet"===a&&(0,e.createElement)(Po,t),"Mobile"===a&&(0,e.createElement)(Fo,t)))}),G),Uo=(0,q.compose)(Y,(t=>a=>{const{attributes:l,setAttributes:n}=a;return(0,e.useEffect)((()=>{void 0!==l.isDynamic&&l.isDynamic||n({isDynamic:!0}),(void 0===l.blockVersion||l.blockVersion<2)&&(l.stack||l.fillHorizontalSpace)&&(l.stack&&n({stackTablet:!0,stackMobile:!0}),l.fillHorizontalSpace&&n({fillHorizontalSpaceTablet:!0,fillHorizontalSpaceMobile:!0})),(void 0===l.blockVersion||l.blockVersion<2)&&n({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:r,setAttributes:i,clientId:o,name:c,context:u}=a,{uniqueId:d,className:b,anchor:p}=r,[f,h]=(0,e.useState)(0),[k,v]=W("Desktop"),y=$(o),{insertBlocks:w,removeBlock:_}=(0,l.useDispatch)("core/block-editor");(0,e.useEffect)((()=>{0===y&&w((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,o),h(y)}),[]),(0,e.useEffect)((()=>{1===f&&0===y&&_(o),h(y)}),[y]);let C={className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${d}`]:!0,[`${b}`]:void 0!==b}),id:p||null};C=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",C,"generateblocks/button-container",r);const T=(0,n.useBlockProps)(C);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Lo,{attributes:r,setAttributes:i,clientId:o,deviceType:k}),(0,e.createElement)(Oo,t({},a,{deviceType:k,setDeviceType:v,state:{deviceType:k},blockDefaults:generateBlocksDefaults.buttonContainer})),(0,e.createElement)(L,{anchor:p,setAttributes:i}),(0,e.createElement)(Vo,t({},a,{deviceType:k})),(0,e.createElement)(Oi,{name:c,clientId:o},(0,e.createElement)("div",T,(0,e.createElement)(n.BlockContextProvider,{value:{"generateblocks/query":u["generateblocks/query"]}},(0,e.createElement)(n.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:!1})))))})),Go={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isPagination:{type:"boolean",default:!1},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},blockVersion:{type:"number"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const jo=[{attributes:Go,supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i}=a;let o={id:r||void 0,className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${l}`]:!0,[`${i}`]:""!==i})};return o=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",o,"generateblocks/button-container",a),(0,e.createElement)("div",o,(0,e.createElement)(n.InnerBlocks.Content,null))}}];var qo=jo;(0,g.registerBlockType)("generateblocks/button-container",{apiVersion:2,title:(0,i.__)("Buttons","generateblocks"),description:(0,i.__)("Drive conversions with beautiful buttons.","generateblocks"),icon:b("button-container"),category:"generateblocks",keywords:[(0,i.__)("button"),(0,i.__)("buttons"),(0,i.__)("generate")],attributes:Go,supports:{className:!1,html:!1},usesContext:["generateblocks/queryId","generateblocks/query"],edit:Uo,save:()=>(0,e.createElement)(n.InnerBlocks.Content,null),deprecated:qo,__experimentalLabel:e=>e.isPagination?(0,i.__)("Pagination","generateblocks"):(0,i.__)("Buttons","generateblocks")});var Wo=t=>{let{clientId:a,attributes:o,setAttributes:s}=t;const{insertBlocks:c}=(0,l.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:u,getBlockRootClientId:d,getBlocksByClientId:b}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{url:p,target:f,relNoFollow:h,relSponsored:k,useDynamicData:v,dynamicLinkType:y}=o,w=v&&y;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(r.ToolbarGroup,null,(0,e.createElement)(r.ToolbarButton,{className:"gblocks-add-new-button",icon:Ro,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{let e=!1;e="function"==typeof u?u(a,"generateblocks/button-container",!0)[0]:d(a);const t=b(a)[0],l=(0,g.cloneBlock)(t,{uniqueId:""});c(l,void 0,e)},showTooltip:!0})),(0,e.createElement)(r.ToolbarGroup,null,(!v||w)&&(0,e.createElement)(r.Dropdown,{contentClassName:"gblocks-button-link-dropdown",popoverProps:{className:"block-editor-block-settings-menu__popover",position:"bottom right"},renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(r.ToolbarButton,{icon:ar,label:p?(0,i.__)("Change Link","generateblocks"):(0,i.__)("Add Link","generateblocks"),onClick:l,"aria-expanded":a,isPressed:!!p})},renderContent:()=>(0,e.createElement)(e.Fragment,null,!v&&(0,e.createElement)(n.URLInput,{className:"gblocks-button-link",value:p,onChange:e=>{s({url:e,hasUrl:!!e})}}),!!v&&(0,e.createElement)("div",{style:{width:"300px","font-style":"italic","margin-bottom":y?"15px":"0"}},(0,i.__)("This button is using a dynamic link.","generateblocks")),(0,m.applyFilters)("generateblocks.editor.urlInputMoreOptions","",o),(!!p||w)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Open link in a new tab","generateblocks"),checked:f||"",onChange:e=>{s({target:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="nofollow"',"generateblocks"),checked:h||"",onChange:e=>{s({relNoFollow:e})}}),(0,e.createElement)(r.ToggleControl,{label:(0,i.__)('Add rel="sponsored"',"generateblocks"),checked:k||"",onChange:e=>{s({relSponsored:e})}})))}))))},$o={facebook:{label:(0,i._x)("Facebook","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}))},facebookCircle:{label:(0,i._x)("Facebook - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}))},facebookSquare:{label:(0,i._x)("Facebook - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"}))},instagram:{label:(0,i._x)("Instagram","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}))},linkedin:{label:(0,i._x)("LinkedIn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"}))},linkedinSquare:{label:(0,i._x)("LinkedIn - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"}))},pinterest:{label:(0,i._x)("Pinterest","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"}))},pinterestCircle:{label:(0,i._x)("Pinterest - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"}))},pinterestSquare:{label:(0,i._x)("Pinterest - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M448 80v352c0 26.5-21.5 48-48 48H154.4c9.8-16.4 22.4-40 27.4-59.3 3-11.5 15.3-58.4 15.3-58.4 8 15.3 31.4 28.2 56.3 28.2 74.1 0 127.4-68.1 127.4-152.7 0-81.1-66.2-141.8-151.4-141.8-106 0-162.2 71.1-162.2 148.6 0 36 19.2 80.8 49.8 95.1 4.7 2.2 7.1 1.2 8.2-3.3.8-3.4 5-20.1 6.8-27.8.6-2.5.3-4.6-1.7-7-10.1-12.3-18.3-34.9-18.3-56 0-54.2 41-106.6 110.9-106.6 60.3 0 102.6 41.1 102.6 99.9 0 66.4-33.5 112.4-77.2 112.4-24.1 0-42.1-19.9-36.4-44.4 6.9-29.2 20.3-60.7 20.3-81.8 0-53-75.5-45.7-75.5 25 0 21.7 7.3 36.5 7.3 36.5-31.4 132.8-36.1 134.5-29.6 192.6l2.2.8H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"}))},reddit:{label:(0,i._x)("Reddit","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"}))},redditCircle:{label:(0,i._x)("Reddit - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"}))},redditSquare:{label:(0,i._x)("Reddit - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.8c0-14.9-11.9-26.8-26.5-26.8-14.9 0-26.8 11.9-26.8 26.8 0 14.6 11.9 26.5 26.8 26.5 14.6 0 26.5-11.9 26.5-26.5zm90.7-26.8c-14.6 0-26.5 11.9-26.5 26.8 0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-11.9 26.8-26.5 0-14.9-11.9-26.8-26.8-26.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-99.7 140.6c-10.1 0-19 4.2-25.6 10.7-24.1-16.7-56.5-27.4-92.5-28.6l18.7-84.2 59.5 13.4c0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-12.2 26.8-26.8 0-14.6-11.9-26.8-26.8-26.8-10.4 0-19.3 6.2-23.8 14.9l-65.7-14.6c-3.3-.9-6.5 1.5-7.4 4.8l-20.5 92.8c-35.7 1.5-67.8 12.2-91.9 28.9-6.5-6.8-15.8-11-25.9-11-37.5 0-49.8 50.4-15.5 67.5-1.2 5.4-1.8 11-1.8 16.7 0 56.5 63.7 102.3 141.9 102.3 78.5 0 142.2-45.8 142.2-102.3 0-5.7-.6-11.6-2.1-17 33.6-17.2 21.2-67.2-16.1-67.2z"}))},snapchat:{label:(0,i._x)("Snapchat","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}))},soundcloud:{label:(0,i._x)("Soundcloud","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"}))},twitch:{label:(0,i._x)("Twitch","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M40.1 32L10 108.9v314.3h107V480h60.2l56.8-56.8h87l117-117V32H40.1zm357.8 254.1L331 353H224l-56.8 56.8V353H76.9V72.1h321v214zM331 149v116.9h-40.1V149H331zm-107 0v116.9h-40.1V149H224z"}))},twitter:{label:(0,i._x)("Twitter","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}))},twitterSquare:{label:(0,i._x)("Twitter - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"}))},vimeo:{label:(0,i._x)("Vimeo","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M447.8 153.6c-2 43.6-32.4 103.3-91.4 179.1-60.9 79.2-112.4 118.8-154.6 118.8-26.1 0-48.2-24.1-66.3-72.3C100.3 250 85.3 174.3 56.2 174.3c-3.4 0-15.1 7.1-35.2 21.1L0 168.2c51.6-45.3 100.9-95.7 131.8-98.5 34.9-3.4 56.3 20.5 64.4 71.5 28.7 181.5 41.4 208.9 93.6 126.7 18.7-29.6 28.8-52.1 30.2-67.6 4.8-45.9-35.8-42.8-63.3-31 22-72.1 64.1-107.1 126.2-105.1 45.8 1.2 67.5 31.1 64.9 89.4z"}))},vimeoSquare:{label:(0,i._x)("Vimeo - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.1-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"}))},whatsapp:{label:(0,i._x)("WhatsApp","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}))},whatsappSquare:{label:(0,i._x)("WhatsApp - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224 122.8c-72.7 0-131.8 59.1-131.9 131.8 0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6 49.9-13.1 4.8 2.9c20.2 12 43.4 18.4 67.1 18.4h.1c72.6 0 133.3-59.1 133.3-131.8 0-35.2-15.2-68.3-40.1-93.2-25-25-58-38.7-93.2-38.7zm77.5 188.4c-3.3 9.3-19.1 17.7-26.7 18.8-12.6 1.9-22.4.9-47.5-9.9-39.7-17.2-65.7-57.2-67.7-59.8-2-2.6-16.2-21.5-16.2-41s10.2-29.1 13.9-33.1c3.6-4 7.9-5 10.6-5 2.6 0 5.3 0 7.6.1 2.4.1 5.7-.9 8.9 6.8 3.3 7.9 11.2 27.4 12.2 29.4s1.7 4.3.3 6.9c-7.6 15.2-15.7 14.6-11.6 21.6 15.3 26.3 30.6 35.4 53.9 47.1 4 2 6.3 1.7 8.6-1 2.3-2.6 9.9-11.6 12.5-15.5 2.6-4 5.3-3.3 8.9-2 3.6 1.3 23.1 10.9 27.1 12.9s6.6 3 7.6 4.6c.9 1.9.9 9.9-2.4 19.1zM400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM223.9 413.2c-26.6 0-52.7-6.7-75.8-19.3L64 416l22.5-82.2c-13.9-24-21.2-51.3-21.2-79.3C65.4 167.1 136.5 96 223.9 96c42.4 0 82.2 16.5 112.2 46.5 29.9 30 47.9 69.8 47.9 112.2 0 87.4-72.7 158.5-160.1 158.5z"}))},youtube:{label:(0,i._x)("YouTube","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"}))}},Zo={clock:{label:(0,i._x)("Clock","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm92.49 313l-20 25a16 16 0 01-22.49 2.5l-67-49.72a40 40 0 01-15-31.23V112a16 16 0 0116-16h32a16 16 0 0116 16v144l58 42.5a16 16 0 012.49 22.5z"}))},clockAlt:{label:(0,i._x)("Clock Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"}))},asterisk:{label:(0,i._x)("Asterisk","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"}))},at:{label:(0,i._x)("At","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"}))},award:{label:(0,i._x)("Award","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"}))},ban:{label:(0,i._x)("Ban","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"}))},bars:{label:(0,i._x)("Bars","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}))},beer:{label:(0,i._x)("Beer","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"}))},bolt:{label:(0,i._x)("Bolt","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"}))},book:{label:(0,i._x)("Book","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"}))},boxOpen:{label:(0,i._x)("Box - Open","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9zm212.6-112.2L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9z"}))},bullhorn:{label:(0,i._x)("Bullhorn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"}))},bullseye:{label:(0,i._x)("Bullseye","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"}))},burn:{label:(0,i._x)("Burn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"}))},calendarAlt:{label:(0,i._x)("Calender","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},check:{label:(0,i._x)("Check","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}))},checkCircle:{label:(0,i._x)("Check - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}))},checkCircleOutline:{label:(0,i._x)("Check - Circle Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"}))},checkSquare:{label:(0,i._x)("Check - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"}))},checkSquareOutline:{label:(0,i._x)("Check - Square Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"}))},chevronDown:{label:(0,i._x)("Chevron - Down","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))},chevronLeft:{label:(0,i._x)("Chevron - Left","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}))},chevronRight:{label:(0,i._x)("Chevron - Right","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}))},chevronUp:{label:(0,i._x)("Chevron - Up","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))},circle:{label:(0,i._x)("Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}))},circleOutline:{label:(0,i._x)("Circle - Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"}))},coffee:{label:(0,i._x)("Coffee","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"}))},dotCircle:{label:(0,i._x)("Dot - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))},dotCircleOutline:{label:(0,i._x)("Dot - Circle Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"}))},ellipsesH:{label:(0,i._x)("Ellipses - Horizontal","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"}))},ellipsesV:{label:(0,i._x)("Ellipses - Vertical","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 192 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"}))},envelope:{label:(0,i._x)("Envelope","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"}))},fireAlt:{label:(0,i._x)("Fire","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"}))},heart:{label:(0,i._x)("Heart","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}))},mapMarkerAlt:{label:(0,i._x)("Map Marker","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"}))},paperPlane:{label:(0,i._x)("Paper Plane","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"}))},phone:{label:(0,i._x)("Phone","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"}))},plus:{label:(0,i._x)("Plus","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}))},plusCircle:{label:(0,i._x)("Plus - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquare:{label:(0,i._x)("Plus - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquareOutline:{label:(0,i._x)("Plus - Square Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},shield:{label:(0,i._x)("Shield","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"}))},star:{label:(0,i._x)("Star","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"}))},tags:{label:(0,i._x)("Tags","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"}))},userCircle:{label:(0,i._x)("User - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"}))}};class Ko extends e.Component{constructor(){super(...arguments),this.state={showIcons:!1,showGeneralIcons:!1,showSocialIcons:!1}}render(){const{attributes:t,setAttributes:a,attrIcon:l,attrIconLocation:n,locationOptions:o,attrRemoveText:s}=this.props;let c={general:{group:(0,i.__)("General","generateblocks"),svgs:Zo},social:{group:(0,i.__)("Social","generateblocks"),svgs:$o}};return c=(0,m.applyFilters)("generateblocks.editor.iconSVGSets",c),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BaseControl,{className:"gb-svg-html"},(0,e.createElement)(r.TextControl,{label:(0,i.__)("Icon SVG HTML","generateblocks"),value:t[l],onChange:e=>{a({[this.props.attrIcon]:ki(e)}),a(""!==e?{hasIcon:!0}:{hasIcon:!1})}}),(0,e.createElement)("div",{className:"gb-icon-preview"},(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:ki(t[l])}}),(0,e.createElement)(r.Button,{isSmall:!0,className:"reset-icon is-secondary",onClick:()=>{a({[this.props.attrIcon]:"",hasIcon:!1})}},(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},(0,i.__)("Clear","generateblocks"))))),(0,e.createElement)(r.BaseControl,{className:"gb-icon-chooser"},Object.keys(c).map(((t,l)=>{const n=c[t].svgs;return(0,e.createElement)(r.PanelBody,{title:c[t].group,initialOpen:!1,key:l},(0,e.createElement)(r.PanelRow,null,(0,e.createElement)(r.BaseControl,null,(0,e.createElement)("ul",{className:"gblocks-icon-chooser"},Object.keys(n).map(((t,l)=>(0,e.createElement)("li",{key:`editor-pblock-types-list-item-${l}`},(0,e.createElement)(r.Tooltip,{text:n[t].label},(0,e.createElement)(r.Button,{className:"editor-block-list-item-button",onClick:()=>{let l=n[t].icon;"string"!=typeof l&&(l=(0,e.renderToString)(l)),a({[this.props.attrIcon]:l,hasIcon:!0})}},"string"==typeof n[t].icon?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:ki(n[t].icon)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},n[t].icon)))))))))))}))),void 0!==t[n]&&!t[s]&&!!t[l]&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:t[n],options:o,onChange:e=>{const l=t.iconPaddingLeft,n=t.iconPaddingRight,r=t.iconPaddingRightTablet,i=t.iconPaddingLeftTablet,o=t.iconPaddingRightMobile,s=t.iconPaddingLeftMobile;"right"===e&&(!l&&n&&a({iconPaddingLeft:n,iconPaddingRight:""}),!i&&r&&a({iconPaddingLeftTablet:r,iconPaddingRightTablet:""}),!s&&o&&a({iconPaddingLeftMobile:o,iconPaddingRightMobile:""})),"left"===e&&(!n&&l&&a({iconPaddingRight:l,iconPaddingLeft:""}),!r&&i&&a({iconPaddingRightTablet:i,iconPaddingLeftTablet:""}),!o&&s&&a({iconPaddingRightMobile:s,iconPaddingLeftMobile:""})),a({[this.props.attrIconLocation]:e})}}),void 0!==t[s]&&!!t[l]&&(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Remove Text","generateblocks"),checked:!!t[s],onChange:e=>{a({[this.props.attrRemoveText]:e})}}))}}var Qo=Ko;(0,m.addFilter)("generateblocks.editor.colorGroupItems","generateblocks/button-colors/add-conditional-color-items",(function(e,t){const{name:a,attributes:l}=t,{useDynamicData:n,dynamicContentType:r}=l;if("generateblocks/button"!==a)return e;if(n&&"pagination-numbers"===r){const t=[{group:"background",attribute:"backgroundColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!0},{group:"text",attribute:"textColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!1},{group:"border",attribute:"borderColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!0}];e.forEach(((a,l)=>{t.forEach((t=>{t.group!==a.group||a.items.some((e=>e.attribute===t.attribute))||e[l].items.push({tooltip:t.tooltip,attribute:t.attribute,alpha:t.alpha})}))}))}return e}));var Yo=a=>{const{attributes:l,deviceType:r,state:o,blockDefaults:s,computedStyles:c}=a,{icon:u,removeText:g,iconSizeUnit:d}=l;return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(C,t({},a,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:b("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:o,showPanel:!g||!1}),(0,e.createElement)(tr,t({},a,{deviceType:r,options:["fontWeight","textTransform","fontSize","letterSpacing","fontFamily"],computedStyles:c})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonTypography",a,o)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:b("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:o}),(0,e.createElement)(rr,t({},a,{deviceType:r,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonSpacing",a,o)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!1,icon:b("colors"),className:"gblocks-panel-label",id:"buttonColors",state:o}),"Desktop"===r&&(0,e.createElement)(bi,t({},a,{colors:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"backgroundColorHover",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"textColorHover"}]},{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"borderColorHover",alpha:!0}]}]})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonColors",a,o)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:b("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:o}),"Desktop"===r&&(0,e.createElement)(mi,t({},a,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:s.gradientColorOne,defaultColorTwo:s.gradientColorTwo})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",a,o)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Icon","generateblocks"),initialOpen:!1,icon:b("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:o,showPanel:!("Desktop"!==r&&!u)}),"Desktop"===r&&(0,e.createElement)(Qo,t({},a,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:(0,i.__)("Left","generateblocks"),value:"left"},{label:(0,i.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===r&&!!u&&(0,e.createElement)(e.Fragment,null,!g&&(0,e.createElement)(nr,t({},a,{device:r,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]}))),"Tablet"===r&&!!u&&(0,e.createElement)(e.Fragment,null,!g&&(0,e.createElement)(nr,t({},a,{device:r,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]}))),"Mobile"===r&&!!u&&(0,e.createElement)(e.Fragment,null,!g&&(0,e.createElement)(nr,t({},a,{device:r,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]}))),!!u&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Icon Size","generateblocks"),attributeName:"iconSize",units:["px","em"],device:r,presets:[{unit:"em",data:[.7,1,1.5,2]}],min:"1",step:"em"===d?.1:1})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonIcon",a,o)))},Jo=t=>{let{anchor:a,ariaLabel:l,setAttributes:o}=t;return(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,{anchor:a,setAttributes:o}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("ARIA Label","generateblocks"),help:(0,i.__)("Helpful to people using screen readers.","generateblocks"),value:l,onChange:e=>{o({ariaLabel:e})}}))};class Xo extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"button"),(0,e.createElement)("style",null,O(t))}}class es extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{url:a,uniqueId:l,removeText:n,letterSpacingTablet:r,fontSizeTablet:i,fontSizeUnit:o,marginTopTablet:s,marginRightTablet:c,marginBottomTablet:u,marginLeftTablet:g,marginUnit:d,paddingTopTablet:b,paddingRightTablet:p,paddingBottomTablet:f,paddingLeftTablet:h,paddingUnit:k,borderSizeTopTablet:v,borderSizeRightTablet:y,borderSizeBottomTablet:w,borderSizeLeftTablet:_,borderRadiusTopRightTablet:C,borderRadiusBottomRightTablet:T,borderRadiusBottomLeftTablet:E,borderRadiusTopLeftTablet:x,borderRadiusUnit:S,iconPaddingTopTablet:B,iconPaddingRightTablet:M,iconPaddingBottomTablet:D,iconPaddingLeftTablet:R,iconPaddingUnit:z,iconSizeTablet:L,iconSizeUnit:N}=t;let A=".editor-styles-wrapper .gb-button-wrapper a.gb-button-"+l;a||(A=".editor-styles-wrapper .gb-button-wrapper .gb-button-"+l);let P=[];return P[A]=[{"padding-top":I(b,k),"padding-right":I(p,k),"padding-bottom":I(f,k),"padding-left":I(h,k),"border-top-left-radius":I(x,S),"border-top-right-radius":I(C,S),"border-bottom-right-radius":I(T,S),"border-bottom-left-radius":I(E,S),"font-size":I(i,o),"letter-spacing":I(r,"em"),"margin-top":I(s,d),"margin-right":I(c,d),"margin-bottom":I(u,d),"margin-left":I(g,d)}],(v||y||w||_)&&P[A].push({"border-top-width":I(v,"px"),"border-right-width":I(y,"px"),"border-bottom-width":I(w,"px"),"border-left-width":I(_,"px"),"border-style":"solid"}),P[A+" .gb-icon"]=[{"padding-top":!n&&I(B,z),"padding-right":!n&&I(M,z),"padding-bottom":!n&&I(D,z),"padding-left":!n&&I(R,z),"font-size":I(L,N)}],P=(0,m.applyFilters)("generateblocks.editor.tabletCSS",P,this.props,"button"),(0,e.createElement)("style",null,O(P))}}class ts extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"button"),(0,e.createElement)("style",null,O(t))}}class as extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{url:a,uniqueId:l,removeText:n,letterSpacingMobile:r,fontSizeMobile:i,fontSizeUnit:o,marginTopMobile:s,marginRightMobile:c,marginBottomMobile:u,marginLeftMobile:g,marginUnit:d,paddingTopMobile:b,paddingRightMobile:p,paddingBottomMobile:f,paddingLeftMobile:h,paddingUnit:k,borderSizeTopMobile:v,borderSizeRightMobile:y,borderSizeBottomMobile:w,borderSizeLeftMobile:_,borderRadiusTopRightMobile:C,borderRadiusBottomRightMobile:T,borderRadiusBottomLeftMobile:E,borderRadiusTopLeftMobile:x,borderRadiusUnit:S,iconPaddingTopMobile:B,iconPaddingRightMobile:M,iconPaddingBottomMobile:D,iconPaddingLeftMobile:R,iconPaddingUnit:z,iconSizeMobile:L,iconSizeUnit:N}=t;let A=".editor-styles-wrapper .gb-button-wrapper a.gb-button-"+l;a||(A=".editor-styles-wrapper .gb-button-wrapper .gb-button-"+l);let P=[];return P[A]=[{"padding-top":I(b,k),"padding-right":I(p,k),"padding-bottom":I(f,k),"padding-left":I(h,k),"border-top-left-radius":I(x,S),"border-top-right-radius":I(C,S),"border-bottom-right-radius":I(T,S),"border-bottom-left-radius":I(E,S),"font-size":I(i,o),"letter-spacing":I(r,"em"),"margin-top":I(s,d),"margin-right":I(c,d),"margin-bottom":I(u,d),"margin-left":I(g,d)}],(v||y||w||_)&&P[A].push({"border-top-width":I(v,"px"),"border-right-width":I(y,"px"),"border-bottom-width":I(w,"px"),"border-left-width":I(_,"px"),"border-style":"solid"}),P[A+" .gb-icon"]=[{"padding-top":!n&&I(B,z),"padding-right":!n&&I(M,z),"padding-bottom":!n&&I(D,z),"padding-left":!n&&I(R,z),"font-size":I(L,N)}],P=(0,m.applyFilters)("generateblocks.editor.mobileCSS",P,this.props,"button"),(0,e.createElement)("style",null,O(P))}}class ls extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{url:a,uniqueId:l,removeText:n,backgroundColor:r,backgroundColorOpacity:i,textColor:o,backgroundColorHover:s,backgroundColorHoverOpacity:c,textColorHover:u,fontFamily:g,fontFamilyFallback:d,fontWeight:b,textTransform:p,letterSpacing:f,fontSize:h,fontSizeUnit:k,marginTop:v,marginRight:y,marginBottom:w,marginLeft:_,marginUnit:C,paddingTop:T,paddingRight:E,paddingBottom:x,paddingLeft:S,paddingUnit:B,borderSizeTop:M,borderSizeRight:D,borderSizeBottom:R,borderSizeLeft:z,borderRadiusTopRight:L,borderRadiusBottomRight:N,borderRadiusBottomLeft:A,borderRadiusTopLeft:P,borderRadiusUnit:F,borderColor:H,borderColorOpacity:V,borderColorHover:U,borderColorHoverOpacity:G,gradient:j,gradientDirection:q,gradientColorOne:W,gradientColorOneOpacity:$,gradientColorStopOne:Z,gradientColorTwo:K,gradientColorTwoOpacity:Q,gradientColorStopTwo:Y,iconPaddingTop:J,iconPaddingRight:X,iconPaddingBottom:ee,iconPaddingLeft:te,iconPaddingUnit:ae,iconSize:le,iconSizeUnit:ne}=t;let re,ie="",oe="",se="";j&&(W&&""!==Z&&(oe=" "+Z+"%"),K&&""!==Y&&(se=" "+Y+"%")),j&&(re="linear-gradient("+q+"deg, "+gi(W,$)+oe+", "+gi(K,Q)+se+");"),g&&d&&(ie=", "+d);let ce=".editor-styles-wrapper .gb-button-wrapper a.gb-button-"+l;a||(ce=".editor-styles-wrapper .gb-button-wrapper .gb-button-"+l);let ue=[];return ue[ce]=[{"background-color":gi(r,i),"background-image":re,color:o,padding:Yi(T,E,x,S,B),"border-radius":Yi(P,L,N,A,F),"font-family":g+ie,"font-weight":b,"text-transform":p,"font-size":I(h,k),"letter-spacing":I(f,"em"),margin:Yi(v,y,w,_,C),"border-color":gi(H,V)}],(M||D||R||z)&&ue[ce].push({"border-width":Yi(M,D,R,z,"px"),"border-style":"solid"}),ue[ce+":hover, "+ce+":focus, "+ce+":active"]=[{"background-color":gi(s,c),color:u,"border-color":gi(U,G)}],ue[ce+" .gb-icon"]=[{padding:!n&&Yi(J,X,ee,te,ae),"font-size":I(le,ne)}],ue=(0,m.applyFilters)("generateblocks.editor.mainCSS",ue,this.props,"button"),(0,e.createElement)("style",null,O(ue))}}var ns=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=t?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ls,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(Xo,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(es,t),"Tablet"===a&&(0,e.createElement)(ts,t),"Mobile"===a&&(0,e.createElement)(as,t)))}),G),rs=(0,q.compose)(Eo,Y,(t=>a=>{const{attributes:l,setAttributes:n}=a,{hasIcon:r,icon:i,hasUrl:o,url:s,blockVersion:c,gradient:u}=l;return(0,e.useEffect)((()=>{if(!r&&i&&n({hasIcon:!0}),o||n({hasUrl:!!s}),!J(l)&&X(c,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.button,t={},a=[];u&&a.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),a.forEach((a=>{S(l[a])||(t[a]=e[a])})),Object.keys(t).length>0&&n(t)}X(c,2)&&n({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:l,setAttributes:n,clientId:r,ContentRenderer:i=Pi}=a,{anchor:o,ariaLabel:s,fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:d=!1}=l,b=(0,e.useRef)(null),[p,m]=(0,e.useState)({}),[f,h]=W("Desktop");return(0,e.useEffect)((()=>{const e=getComputedStyle(b.current);m({fontSize:parseInt(e.fontSize)||""})}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Wo,{clientId:r,attributes:l,setAttributes:n}),(0,e.createElement)(Yo,t({},a,{deviceType:f,setDeviceType:h,state:{deviceType:f},blockDefaults:generateBlocksDefaults.button,computedStyles:p})),(0,e.createElement)(Jo,{anchor:o,ariaLabel:s,setAttributes:n}),(0,e.createElement)(ns,t({},a,{deviceType:f})),(0,e.createElement)(Jn,{fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:d}),(0,e.createElement)(i,t({},a,{buttonRef:b})))})),is={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},backgroundColorCurrent:{type:"string",default:generateBlocksDefaults.button.backgroundColorCurrent},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},textColorCurrent:{type:"string",default:generateBlocksDefaults.button.textColorCurrent},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},borderColorCurrent:{type:"string",default:generateBlocksDefaults.button.borderColorCurrent},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},blockVersion:{type:"number"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const os=[{attributes:{...is,text:{type:"array",source:"children",selector:".gb-button .button-text",default:"Button"}},supports:{anchor:!1,className:!1,customClassName:!1,inserter:!1,reusable:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save(t){let{attributes:a}=t;const{uniqueId:l,elementId:r,cssClasses:i,text:o,url:c,target:u,relNoFollow:g,relSponsored:d,icon:b,iconLocation:p,removeText:f,ariaLabel:h}=a,k=[];g&&k.push("nofollow"),u&&k.push("noopener","noreferrer"),d&&k.push("sponsored");let v={id:r||void 0,className:s()({"gb-button":!0,[`gb-button-${l}`]:!0,[`${i}`]:""!==i}),href:c||void 0,target:u?"_blank":void 0,rel:k&&k.length>0?k.join(" "):void 0,"aria-label":h||void 0};return v=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",v,"generateblocks/button",a),(0,e.createElement)("a",v,b&&"left"===p&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:ki(b)}}),!f&&(0,e.createElement)(n.RichText.Content,{tagName:"span",className:"button-text",value:o,key:"button-text"}),b&&"right"===p&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:ki(b)}}))}}];var ss=os;function cs(e,t){const{useDynamicData:a,dynamicContentType:l,dynamicLinkType:n,isCaption:r}=e;if(a){const e={"post-title":(0,i.__)("Post title","generateblocks"),"post-excerpt":(0,i.__)("Post excerpt","generateblocks"),"post-date":(0,i.__)("Post date","generateblocks"),"post-meta":(0,i.__)("Post meta","generateblocks"),"author-email":(0,i.__)("Author email","generateblocks"),"author-name":(0,i.__)("Author name","generateblocks"),"author-nickname":(0,i.__)("Author nickname","generateblocks"),"author-first-name":(0,i.__)("Author first name","generateblocks"),"author-last-name":(0,i.__)("Author last name","generateblocks"),"author-meta":(0,i.__)("Author meta","generateblocks"),"pagination-numbers":(0,i.__)("Page numbers","generateblocks"),caption:(0,i.__)("Caption","generateblocks"),terms:(0,i.__)("List of terms","generateblocks"),"comments-number":(0,i.__)("Comments number","generateblocks")},t={"single-post":(0,i.__)("Single post","generateblocks"),"author-archives":(0,i.__)("Author archives","generateblocks"),"comments-area":(0,i.__)("Comments area","generateblocks"),"post-meta":(0,i.__)("Post meta","generateblocks"),"previous-posts":(0,i.__)("Previous posts","generateblocks"),"next-posts":(0,i.__)("Next posts","generateblocks"),"term-archives":(0,i.__)("Term archives","generateblocks"),"pagination-prev":(0,i.__)("Previous page","generateblocks"),"pagination-next":(0,i.__)("Next page","generateblocks")};return Object.keys(e).includes(l)?e[l]:Object.keys(t).includes(n)?t[n]:(0,i.__)("Dynamic content","generateblocks")}return r?(0,i.__)("Caption","generateblocks"):t}const us=Object.assign({},is,Fi);(0,g.registerBlockType)("generateblocks/button",{apiVersion:2,title:(0,i.__)("Button","generateblocks"),description:(0,i.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:b("button"),category:"generateblocks",keywords:[(0,i.__)("button"),(0,i.__)("buttons"),(0,i.__)("generate")],attributes:us,supports:{className:!1,inserter:!1,reusable:!1},edit:rs,save:t=>{let{attributes:a}=t;const{uniqueId:l,text:r,url:i,target:o,relNoFollow:c,relSponsored:u,icon:g,iconLocation:d,removeText:b,ariaLabel:p,anchor:f}=a,h=[];c&&h.push("nofollow"),o&&h.push("noopener","noreferrer"),u&&h.push("sponsored");let k={className:s()({"gb-button":!0,[`gb-button-${l}`]:!0,"gb-button-text":!g}),href:i||null,target:o?"_blank":null,rel:h&&h.length>0?h.join(" "):null,"aria-label":p||null,id:f||null};k=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a);const v=n.useBlockProps.save(k);return(0,e.createElement)(Ni,{tagName:i?"a":"span",htmlAttrs:v},(0,e.createElement)(Ii,{hasIcon:!!g,direction:d,icon:g,hideChildren:b,showWrapper:!1},(0,e.createElement)(n.RichText.Content,{value:r,tagName:g?"span":void 0,className:g?"gb-button-text":void 0})))},deprecated:ss,usesContext:["postId","postType","generateblocks/query","generateblocks/inheritQuery"],__experimentalLabel:e=>cs(e,(0,i.__)("Button","generateblocks"))});var gs=window.wp.richText;const ds=(0,e.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),bs="generateblocks/mark",ps=(0,q.compose)((0,l.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),(0,q.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(t){const a=()=>t.onChange((0,gs.toggleFormat)(t.value,{type:bs}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.RichTextShortcut,{type:"primary",character:"m",onUse:a}),(0,e.createElement)(n.RichTextToolbarButton,{icon:ds,title:(0,i.__)("Highlight","generateblocks"),onClick:a,isActive:t.isActive,shortcutType:"access",shortcutCharacter:"m",className:`toolbar-button-with-text toolbar-button__${bs}`}))})),ms={title:(0,i.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:ps};function fs(t){let{level:a}=t;const l={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!l.hasOwnProperty(a))return null;let n="0 0 20 20";return"p"!==a&&"div"!==a||(n="0 0 24 24"),(0,e.createElement)(r.SVG,{width:"24",height:"24",viewBox:n,xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(r.Path,{d:l[a]}))}(0,gs.registerFormatType)(bs,ms);var hs=t=>{let{setAttributes:a,element:l,isCaption:n}=t;return n?null:(0,e.createElement)(r.ToolbarGroup,{isCollapsed:!0,icon:(0,e.createElement)(fs,{level:l}),label:(0,i.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===l,icon:(0,e.createElement)(fs,{level:"h1"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
14
- (0,i.__)("Heading %s","generateblocks"),"1"),onClick:()=>{a({element:"h1"})}},{isActive:"h2"===l,icon:(0,e.createElement)(fs,{level:"h2"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
15
- (0,i.__)("Heading %s","generateblocks"),"2"),onClick:()=>{a({element:"h2"})}},{isActive:"h3"===l,icon:(0,e.createElement)(fs,{level:"h3"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
16
- (0,i.__)("Heading %s","generateblocks"),"3"),onClick:()=>{a({element:"h3"})}},{isActive:"h4"===l,icon:(0,e.createElement)(fs,{level:"h4"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
17
- (0,i.__)("Heading %s","generateblocks"),"4"),onClick:()=>{a({element:"h4"})}},{isActive:"h5"===l,icon:(0,e.createElement)(fs,{level:"h5"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
18
- (0,i.__)("Heading %s","generateblocks"),"5"),onClick:()=>{a({element:"h5"})}},{isActive:"h6"===l,icon:(0,e.createElement)(fs,{level:"h6"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
19
- (0,i.__)("Heading %s","generateblocks"),"6"),onClick:()=>{a({element:"h6"})}},{isActive:"p"===l,icon:(0,e.createElement)(fs,{level:"p"}),title:(0,i.__)("Paragraph","generateblocks"),onClick:()=>{a({element:"p"})}},{isActive:"div"===l,icon:(0,e.createElement)(fs,{level:"div"}),title:(0,i.__)("Div","generateblocks"),onClick:()=>{a({element:"div"})}}]})},ks=(0,e.memo)((function(t){const{attributes:a,setAttributes:l,deviceType:r}=t,{element:i,alignment:o,alignmentTablet:s,alignmentMobile:c,inlineWidth:u,inlineWidthTablet:g,inlineWidthMobile:d,isCaption:b}=a;return(0,e.createElement)(n.BlockControls,null,(0,e.createElement)(hs,{setAttributes:l,element:i,isCaption:b}),"Desktop"===r&&!u&&(0,e.createElement)(n.AlignmentToolbar,{value:o,onChange:e=>{l({alignment:e})}}),"Tablet"===r&&!g&&(0,e.createElement)(n.AlignmentToolbar,{value:s,onChange:e=>{l({alignmentTablet:e})}}),"Mobile"===r&&!d&&(0,e.createElement)(n.AlignmentToolbar,{value:c,onChange:e=>{l({alignmentMobile:e})}}))}),((e,t)=>["element","alignment","alignmentTablet","alignmentMobile","inlineWidth","inlineWidthTablet","inlineWidthMobile"].every((a=>e.attributes[a]===t.attributes[a]))&&e.deviceType===t.deviceType)),vs=a=>{const{attributes:l,setAttributes:o,deviceType:s,blockState:c,computedStyles:u}=a,{element:g,marginTop:d,marginRight:p,marginBottom:f,marginLeft:h,icon:k,iconLocation:v,iconLocationTablet:y,iconLocationMobile:w,iconVerticalAlignment:_,iconVerticalAlignmentTablet:T,iconVerticalAlignmentMobile:E,iconSizeUnit:x,inlineWidth:S,inlineWidthTablet:B,inlineWidthMobile:D,removeText:R,isCaption:z}=l;return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(C,t({},a,{id:"headlineElement",state:c,showPanel:"Desktop"===s&&!z}),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Tag Name","generateblocks"),value:g,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"},{label:"figcaption",value:"figcaption"}],onChange:e=>{o({element:e}),d||p||f||h||o("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),(0,m.applyFilters)("generateblocks.editor.controls","","headlineElement",a,c)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:b("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:c,showPanel:!R||!1}),(0,e.createElement)(tr,t({},a,{deviceType:s,options:["fontWeight","textTransform","fontSize","lineHeight","letterSpacing","fontFamily"],computedStyles:u})),(0,m.applyFilters)("generateblocks.editor.controls","","headlineTypography",a,c)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:b("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:c}),(0,e.createElement)(rr,t({},a,{deviceType:s,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"],computedStyles:u},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]})),"Desktop"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:!!S,onChange:e=>{o({inlineWidth:e})}})),"Tablet"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:!!B,onChange:e=>{o({inlineWidthTablet:e})}})),"Mobile"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:!!D,onChange:e=>{o({inlineWidthMobile:e})}})),(0,m.applyFilters)("generateblocks.editor.controls","","headlineSpacing",a,c)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!1,icon:b("colors"),className:"gblocks-panel-label",id:"headlineColors",state:c,showPanel:"Desktop"===s||!1}),(0,e.createElement)(bi,t({},a,{colors:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"}]},{group:"link",label:(0,i.__)("Link","generateblocks"),items:[{attribute:"linkColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"linkColorHover"}]},{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]},{group:"icon",label:(0,i.__)("Icon","generateblocks"),items:[{attribute:"iconColor",alpha:!0}]},{group:"highlight",label:(0,i.__)("Highlight","generateblocks"),items:[{attribute:"highlightTextColor"}]}]}))),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Icon","generateblocks"),initialOpen:!1,icon:b("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:c,showPanel:!("Desktop"!==s&&!k)}),"Desktop"===s&&(0,e.createElement)(Qo,t({},a,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===s&&!!k&&(0,e.createElement)(e.Fragment,null,!R&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:v,options:[{label:(0,i.__)("Inline","generateblocks"),value:"inline"},{label:(0,i.__)("Above","generateblocks"),value:"above"}],onChange:e=>{o({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===v&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Alignment","generateblocks"),value:_,options:[{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{o({iconVerticalAlignment:e})}}),(0,e.createElement)(nr,t({},a,{device:s,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]})))),"Tablet"===s&&!!k&&(0,e.createElement)(e.Fragment,null,!R&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:y,options:[{label:(0,i.__)("Inherit","generateblocks"),value:""},{label:(0,i.__)("Inline","generateblocks"),value:"inline"},{label:(0,i.__)("Above","generateblocks"),value:"above"}],onChange:e=>{o({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===y&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Alignment","generateblocks"),value:T,options:[{label:(0,i.__)("Inherit","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{o({iconVerticalAlignmentTablet:e})}}),(0,e.createElement)(nr,t({},a,{device:s,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]})))),"Mobile"===s&&!!k&&(0,e.createElement)(e.Fragment,null,!R&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:w,options:[{label:(0,i.__)("Inherit","generateblocks"),value:""},{label:(0,i.__)("Inline","generateblocks"),value:"inline"},{label:(0,i.__)("Above","generateblocks"),value:"above"}],onChange:e=>{o({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===w&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Icon Alignment","generateblocks"),value:E,options:[{label:(0,i.__)("Inherit","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{o({iconVerticalAlignmentMobile:e})}}),(0,e.createElement)(nr,t({},a,{device:s,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]})))),!!k&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Icon Size","generateblocks"),attributeName:"iconSize",units:["px","em"],device:s,presets:[{unit:"em",data:[.7,1,1.5,2]}],presetUnit:"em",min:"1",step:"em"===x?.1:1})),(0,m.applyFilters)("generateblocks.editor.controls","","headlineIcon",a,c)))};class ys extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"headline"),(0,e.createElement)("style",null,O(t))}}class ws extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignmentTablet:r,fontSizeTablet:i,fontSizeUnit:o,lineHeightTablet:s,lineHeightUnit:c,letterSpacingTablet:u,marginTopTablet:g,marginRightTablet:d,marginBottomTablet:b,marginLeftTablet:p,marginUnit:f,paddingTopTablet:h,paddingRightTablet:k,paddingBottomTablet:v,paddingLeftTablet:y,paddingUnit:w,borderSizeTopTablet:_,borderSizeRightTablet:C,borderSizeBottomTablet:T,borderSizeLeftTablet:E,borderRadiusTopRightTablet:x,borderRadiusBottomRightTablet:S,borderRadiusBottomLeftTablet:B,borderRadiusTopLeftTablet:M,borderRadiusUnit:D,icon:R,iconLocationTablet:z,iconVerticalAlignmentTablet:L,iconPaddingTopTablet:N,iconPaddingRightTablet:A,iconPaddingBottomTablet:P,iconPaddingLeftTablet:F,iconPaddingUnit:H,iconSizeTablet:V,iconSizeUnit:U,inlineWidthTablet:G,removeText:j}=t,q=n+".gb-headline-"+l;let W="inline-block",$=[];return $[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":I(i,o),"line-height":I(s,c),"letter-spacing":I(u,"em"),display:!!R&&"flex","align-items":Io("inline"===z?L:r),"justify-content":Io(r),"flex-direction":!(!R||"above"!==z)&&"column","margin-top":I(g,f)+" !important","margin-right":I(d,f)+" !important","margin-bottom":I(b,f)+" !important","margin-left":I(p,f)+" !important","padding-top":I(h,w),"padding-right":I(k,w),"padding-bottom":I(v,w),"padding-left":I(y,w),"border-top-left-radius":I(M,D),"border-top-right-radius":I(x,D),"border-bottom-right-radius":I(S,D),"border-bottom-left-radius":I(B,D)}],R&&(W="inline-flex",$[".editor-styles-wrapper "+q].push({display:!!G&&W})),(_||C||T||E)&&$[".editor-styles-wrapper "+q].push({"border-top-width":I(_,"px"),"border-right-width":I(C,"px"),"border-bottom-width":I(T,"px"),"border-left-width":I(E,"px"),"border-style":"solid"}),$[q+" .gb-icon"]=[{"padding-top":!j&&I(N,H),"padding-right":!j&&I(A,H),"padding-bottom":!j&&I(P,H),"padding-left":!j&&I(F,H),"align-self":!(!R||"above"!==z)&&Io(r),display:!(!R||"above"!==z)&&"inline"}],$[q+" .gb-icon svg"]=[{width:I(V,U),height:I(V,U)}],$['.gb-is-root-block[data-block="'+a+'"]']=[{display:!!G&&"inline-flex"}],$=(0,m.applyFilters)("generateblocks.editor.tabletCSS",$,this.props,"text"),(0,e.createElement)("style",null,O($))}}class _s extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"headline"),(0,e.createElement)("style",null,O(t))}}class Cs extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignmentMobile:r,fontSizeMobile:i,fontSizeUnit:o,lineHeightMobile:s,lineHeightUnit:c,letterSpacingMobile:u,marginTopMobile:g,marginRightMobile:d,marginBottomMobile:b,marginLeftMobile:p,marginUnit:f,paddingTopMobile:h,paddingRightMobile:k,paddingBottomMobile:v,paddingLeftMobile:y,paddingUnit:w,borderSizeTopMobile:_,borderSizeRightMobile:C,borderSizeBottomMobile:T,borderSizeLeftMobile:E,borderRadiusTopRightMobile:x,borderRadiusBottomRightMobile:S,borderRadiusBottomLeftMobile:B,borderRadiusTopLeftMobile:M,borderRadiusUnit:D,icon:R,iconLocationMobile:z,iconVerticalAlignmentMobile:L,iconPaddingTopMobile:N,iconPaddingRightMobile:A,iconPaddingBottomMobile:P,iconPaddingLeftMobile:F,iconPaddingUnit:H,iconSizeMobile:V,iconSizeUnit:U,inlineWidthMobile:G,removeText:j}=t,q=n+".gb-headline-"+l;let W="inline-block",$=[];return $[".editor-styles-wrapper "+q]=[{"text-align":r,"font-size":I(i,o),"line-height":I(s,c),"letter-spacing":I(u,"em"),display:!!R&&"flex","align-items":Io("inline"===z?L:r),"justify-content":Io(r),"flex-direction":!(!R||"above"!==z)&&"column","margin-top":I(g,f)+" !important","margin-right":I(d,f)+" !important","margin-bottom":I(b,f)+" !important","margin-left":I(p,f)+" !important","padding-top":I(h,w),"padding-right":I(k,w),"padding-bottom":I(v,w),"padding-left":I(y,w),"border-top-left-radius":I(M,D),"border-top-right-radius":I(x,D),"border-bottom-right-radius":I(S,D),"border-bottom-left-radius":I(B,D)}],R&&(W="inline-flex",$[".editor-styles-wrapper "+q].push({display:!!G&&W})),(_||C||T||E)&&$[".editor-styles-wrapper "+q].push({"border-top-width":I(_,"px"),"border-right-width":I(C,"px"),"border-bottom-width":I(T,"px"),"border-left-width":I(E,"px"),"border-style":"solid"}),$[q+" .gb-icon"]=[{"padding-top":!j&&I(N,H),"padding-right":!j&&I(A,H),"padding-bottom":!j&&I(P,H),"padding-left":!j&&I(F,H),"align-self":!(!R||"above"!==z)&&Io(r),display:!(!R||"above"!==z)&&"inline"}],$[q+" .gb-icon svg"]=[{width:I(V,U),height:I(V,U)}],$['.gb-is-root-block[data-block="'+a+'"]']=[{display:!!G&&"inline-flex"}],$=(0,m.applyFilters)("generateblocks.editor.mobileCSS",$,this.props,"headline"),(0,e.createElement)("style",null,O($))}}class Ts extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:n,alignment:r,backgroundColor:i,backgroundColorOpacity:o,textColor:s,linkColor:c,linkColorHover:u,borderColor:g,borderColorOpacity:d,highlightTextColor:b,fontFamily:p,fontFamilyFallback:f,fontWeight:h,fontSize:k,fontSizeUnit:v,textTransform:y,lineHeight:w,lineHeightUnit:_,letterSpacing:C,marginTop:T,marginRight:E,marginBottom:x,marginLeft:S,marginUnit:B,paddingTop:M,paddingRight:D,paddingBottom:R,paddingLeft:z,paddingUnit:L,borderSizeTop:N,borderSizeRight:A,borderSizeBottom:P,borderSizeLeft:F,borderRadiusTopRight:H,borderRadiusBottomRight:V,borderRadiusBottomLeft:U,borderRadiusTopLeft:G,borderRadiusUnit:j,icon:q,iconColor:W,iconColorOpacity:$,iconLocation:Z,iconVerticalAlignment:K,iconPaddingTop:Q,iconPaddingRight:Y,iconPaddingBottom:J,iconPaddingLeft:X,iconPaddingUnit:ee,iconSize:te,iconSizeUnit:ae,inlineWidth:le,removeText:ne}=t;let re="",ie="inline-block";p&&f&&(re=", "+f);const oe=n+".gb-headline-"+l;let se=[];return se[".editor-styles-wrapper "+oe]=[{color:s,"font-family":p+re,"font-weight":h,"text-transform":y,"text-align":r,"font-size":I(k,v),"line-height":I(w,_),"letter-spacing":I(C,"em"),display:!!q&&"flex","align-items":Io("inline"===Z?K:r),"justify-content":Io(r),"flex-direction":!(!q||"above"!==Z)&&"column"}],se[".editor-styles-wrapper .gb-container "+oe]=[{color:s}],q&&(ie="inline-flex"),se[".editor-styles-wrapper "+oe].push({"background-color":gi(i,o),color:s,display:!!le&&ie,"margin-top":I(T,B),"margin-right":I(E,B),"margin-bottom":I(x,B),"margin-left":I(S,B),padding:Yi(M,D,R,z,L),"border-radius":Yi(G,H,V,U,j),"border-color":gi(g,d)}),(N||A||P||F)&&se[".editor-styles-wrapper "+oe].push({"border-width":Yi(N,A,P,F,"px"),"border-style":"solid"}),se[".editor-styles-wrapper "+oe+" a"]=[{color:c}],se[".editor-styles-wrapper "+oe+" a:hover"]=[{color:u}],se[oe+" .gb-icon"]=[{padding:!ne&&Yi(Q,Y,J,X,ee),"align-self":!(!q||"above"!==Z)&&Io(r),color:gi(W,$),display:!(!q||"above"!==Z)&&"inline"}],se[oe+" .gb-icon svg"]=[{width:I(te,ae),height:I(te,ae)}],se[oe+" .gb-highlight"]=[{color:b}],se['.gb-is-root-block[data-block="'+a+'"]']=[{display:!!le&&"inline-flex"}],se=(0,m.applyFilters)("generateblocks.editor.mainCSS",se,this.props,"headline"),(0,e.createElement)("style",null,O(se))}}var Es=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=t?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ts,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(ys,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(ws,t),"Tablet"===a&&(0,e.createElement)(_s,t),"Mobile"===a&&(0,e.createElement)(Cs,t)))}),G);const xs=(e,t)=>(a,l)=>{let n;return n=l||a?(0,g.createBlock)("generateblocks/headline",{...e,content:a}):(0,g.createBlock)("core/paragraph"),l&&(n.clientId=t),n};var Ss=(0,q.compose)(Eo,Y)((a=>{const{attributes:l,setAttributes:n,ContentRenderer:r=Ai,context:i}=a,{uniqueId:o,anchor:s,fontFamily:c,googleFont:u,googleFontVariants:g,icon:d,hasIcon:b,element:p,isBlockPreview:f=!1}=l,h=(0,e.useRef)(null),[k,v]=(0,e.useState)({}),[y,w]=W("Desktop");return(0,e.useEffect)((()=>{!b&&d&&n({hasIcon:!0})}),[]),(0,e.useEffect)((()=>{const e=getComputedStyle(h.current);v({marginTop:parseInt(e.marginTop)||"",marginBottom:parseInt(e.marginBottom)||"",fontSize:parseInt(e.fontSize)||""})}),[p]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ks,{attributes:l,setAttributes:n,deviceType:y,context:i}),(0,e.createElement)(vs,t({},a,{uniqueId:o,deviceType:y,setDeviceType:w,blockState:{deviceType:y},computedStyles:k})),(0,e.createElement)(L,{anchor:s,setAttributes:n}),(0,e.createElement)(Es,t({},a,{deviceType:y})),(0,e.createElement)(Jn,{fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:f}),(0,m.applyFilters)("generateblocks.editor.beforeHeadlineElement","",a),(0,e.createElement)(r,t({},a,{onSplit:xs,headlineRef:h})))})),Bs={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Ms={from:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("core/heading",{content:t})}}]};var Ds=Ms;const Rs=[{attributes:{...Bs,content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}},supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;let l=e.element?e.element:generateBlocksDefaults.headline.element;return e.icon&&e.removeText&&"div"!==l&&(l="div"),{...e,className:t,anchor:a,cssClasses:"",elementId:"",element:l}},save(a){let{attributes:l}=a;const{uniqueId:r,elementId:i,cssClasses:o,element:c,content:u,icon:g,removeText:d,ariaLabel:b}=l;let p={id:i||void 0,className:s()({"gb-headline":!0,[`gb-headline-${r}`]:!0,[`${o}`]:""!==o})};return p=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",p,"generateblocks/headline",l),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:g,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${r}`]:!0})},t)},g&&(0,e.createElement)("span",{className:"gb-icon","aria-label":d&&b?b:void 0,dangerouslySetInnerHTML:{__html:ki(g)}}),!d&&(0,e.createElement)(n.RichText.Content,t({tagName:c,value:u},p)))}},{attributes:{...Bs,element:{type:"string",default:"p"},content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}},save(a){let{attributes:l}=a;const{uniqueId:r,elementId:i,cssClasses:o,element:c,content:u,icon:g,removeText:d,ariaLabel:b}=l;let p={id:i||void 0,className:s()({"gb-headline":!0,[`gb-headline-${r}`]:!0,[`${o}`]:""!==o})};return p=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",p,"generateblocks/headline",l),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:g,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${r}`]:!0})},t)},g&&(0,e.createElement)("span",{className:"gb-icon","aria-label":d&&b?b:void 0,dangerouslySetInnerHTML:{__html:ki(g)}}),!d&&(0,e.createElement)(n.RichText.Content,t({tagName:c,value:u},p)))}}];var zs=Rs;const Ls=Object.assign({},Bs,Fi);(0,g.registerBlockType)("generateblocks/headline",{apiVersion:2,title:(0,i.__)("Headline","generateblocks"),description:(0,i.__)("Craft text-rich content with advanced typography.","generateblocks"),icon:b("headline"),category:"generateblocks",keywords:[(0,i.__)("heading"),(0,i.__)("headline"),(0,i.__)("title"),(0,i.__)("generate")],attributes:Ls,supports:{className:!1},edit:Ss,save:t=>{let{attributes:a}=t;const{uniqueId:l,anchor:r,element:i,content:o,icon:c,hasIcon:u,removeText:g}=a;let d={className:s()({"gb-headline":!0,[`gb-headline-${l}`]:!0,"gb-headline-text":!u}),id:r||null};d=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",d,"generateblocks/headline",a);const b=n.useBlockProps.save(d);return(0,e.createElement)(Ni,{tagName:i,htmlAttrs:b},(0,e.createElement)(Ii,{hasIcon:u,icon:c,hideChildren:g,showWrapper:!1},(0,e.createElement)(n.RichText.Content,{value:o,tagName:u&&c?"span":void 0,className:u&&c?"gb-headline-text":void 0})))},transforms:Ds,deprecated:zs,usesContext:["postId","postType","generateblocks/dynamicImage","generateblocks/mediaId"],__experimentalLabel:e=>cs(e,(0,i.__)("Headline","generateblocks"))});var Os=JSON.parse('{"Y4":{"uniqueId":{"type":"string"},"mediaId":{"type":"number"},"mediaUrl":{"type":"string","source":"attribute","selector":"img","attribute":"src"},"alt":{"type":"string","source":"attribute","selector":"img","attribute":"alt"},"title":{"type":"string","source":"attribute","selector":"img","attribute":"title"},"href":{"type":"string","source":"attribute","selector":"figure > a","attribute":"href"},"openInNewWindow":{"type":"boolean","default":false},"relNoFollow":{"type":"boolean","default":false},"relSponsored":{"type":"boolean","default":false},"sizeSlug":{"type":"string","default":""},"width":{"type":"string","default":""},"widthTablet":{"type":"string","default":""},"widthMobile":{"type":"string","default":""},"height":{"type":"string","default":""},"heightTablet":{"type":"string","default":""},"heightMobile":{"type":"string","default":""},"objectFit":{"type":"string","default":""},"objectFitTablet":{"type":"string","default":""},"objectFitMobile":{"type":"string","default":""},"borderColor":{"type":"string","default":""},"anchor":{"type":"string","default":""},"align":{"type":"string","default":""},"alignment":{"type":"string","default":""},"alignmentTablet":{"type":"string","default":""},"alignmentMobile":{"type":"string","default":""}}}');function Is(t){const a=(0,m.applyFilters)("generateblocks.editor.desktopCSS",[],t,"image");return(0,e.createElement)("style",null,O(a))}function Ns(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTopTablet:n,paddingRightTablet:r,paddingBottomTablet:i,paddingLeftTablet:o,paddingUnit:s,marginTopTablet:c,marginRightTablet:u,marginBottomTablet:g,marginLeftTablet:d,marginUnit:b,borderSizeTopTablet:p,borderSizeRightTablet:f,borderSizeBottomTablet:h,borderSizeLeftTablet:k,borderRadiusTopRightTablet:v,borderRadiusBottomRightTablet:y,borderRadiusBottomLeftTablet:w,borderRadiusTopLeftTablet:_,borderRadiusUnit:C,borderColor:T,objectFitTablet:E,widthTablet:x,heightTablet:S,alignment:B,alignmentTablet:M}=a;let D=[],R=M.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[M]:null;return M&&!R&&B.startsWith("float")&&(R="none"),D[".editor-styles-wrapper .gb-block-image-"+l]=[{margin:Yi(c,u,g,d,b),padding:Yi(n,r,i,o,s),"text-align":M.startsWith("float")?null:M,float:R,position:R&&"none"!==R?"relative":null,"z-index":R&&"none"!==R?"22":null}],D[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Yi(_,v,y,w,C),"border-color":T,width:x,height:S,"object-fit":E}],(p||f||h||k)&&D[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Yi(p,f,h,k,"px"),"border-style":"solid"}),D=(0,m.applyFilters)("generateblocks.editor.tabletCSS",D,t,"image"),(0,e.createElement)("style",null,O(D))}function As(t){const a=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",[],t,"image");return(0,e.createElement)("style",null,O(a))}function Ps(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTopMobile:n,paddingRightMobile:r,paddingBottomMobile:i,paddingLeftMobile:o,paddingUnit:s,marginTopMobile:c,marginRightMobile:u,marginBottomMobile:g,marginLeftMobile:d,marginUnit:b,borderSizeTopMobile:p,borderSizeRightMobile:f,borderSizeBottomMobile:h,borderSizeLeftMobile:k,borderRadiusTopRightMobile:v,borderRadiusBottomRightMobile:y,borderRadiusBottomLeftMobile:w,borderRadiusTopLeftMobile:_,borderRadiusUnit:C,borderColor:T,objectFitMobile:E,widthMobile:x,heightMobile:S,alignment:B,alignmentTablet:M,alignmentMobile:D}=a;let R=[],z=D.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[D]:null;return D&&!z&&(M.startsWith("float")||B.startsWith("float"))&&(z="none"),R[".editor-styles-wrapper .gb-block-image-"+l]=[{margin:Yi(c,u,g,d,b),padding:Yi(n,r,i,o,s),"text-align":D.startsWith("float")?null:D,float:z,position:z&&"none"!==z?"relative":null,"z-index":z&&"none"!==z?"22":null}],R[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Yi(_,v,y,w,C),"border-color":T,width:x,height:S,"object-fit":E}],(p||f||h||k)&&R[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Yi(p,f,h,k,"px"),"border-style":"solid"}),R=(0,m.applyFilters)("generateblocks.editor.mobileCSS",R,t,"image"),(0,e.createElement)("style",null,O(R))}function Fs(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{uniqueId:l,paddingTop:n,paddingRight:r,paddingBottom:i,paddingLeft:o,paddingUnit:s,marginTop:c,marginRight:u,marginBottom:g,marginLeft:d,marginUnit:b,borderSizeTop:p,borderSizeRight:f,borderSizeBottom:h,borderSizeLeft:k,borderRadiusTopRight:v,borderRadiusBottomRight:y,borderRadiusBottomLeft:w,borderRadiusTopLeft:_,borderRadiusUnit:C,borderColor:T,objectFit:E,width:x,height:S,alignment:B}=a;let M=[];return M[".editor-styles-wrapper .gb-block-image-"+l]=[{margin:Yi(c,u,g,d,b),padding:Yi(n,r,i,o,s),"text-align":B.startsWith("float")?null:B,float:B.startsWith("float")?{floatLeft:"left",floatRight:"right",floatNone:"none"}[B]:"none",position:B.startsWith("float")?"relative":null,"z-index":B.startsWith("float")?"22":null}],M[".editor-styles-wrapper .gb-image-"+l]=[{"border-radius":Yi(_,v,y,w,C),"border-color":T,width:x,height:S,"object-fit":E}],(p||f||h||k)&&M[".editor-styles-wrapper .gb-image-"+l].push({"border-width":Yi(p,f,h,k,"px"),"border-style":"solid"}),M=(0,m.applyFilters)("generateblocks.editor.mainCSS",M,t,"image"),(0,e.createElement)("style",null,O(M))}var Hs=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:n=!1}=t?.attributes;return n?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Fs,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(Is,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Ns,t),"Tablet"===a&&(0,e.createElement)(As,t),"Mobile"===a&&(0,e.createElement)(Ps,t)))}),G),Vs=window.wp.notices;function Us(t){const{label:a,attributeName:l,attributes:n,setAttributes:i,units:o=["px","em","%","rem"],device:s,min:c=0,max:u,step:g,id:d=l}=t,[b,p]=(0,e.useState)(""),[m,f]=(0,e.useState)(""),[h,k]=(0,e.useState)(""),v=(0,e.useRef)(!1),y=s&&"Desktop"!==s?l+s:l,w=e=>e?e.split(/(\d+)/).filter((e=>""!==e)):[],_=e=>e.length>0?e[0]:"",C=e=>e.length>1?e[1]:"px",T=w(n[l]),E=w(n[l+"Tablet"]),x=()=>{n[y]||(n[l+"Tablet"]||("Tablet"===s||"Mobile"===s&&n[l])&&(k(_(T)),p(C(T))),"Mobile"===s&&n[l+"Tablet"]&&(k(_(E)),p(C(E))))};return(0,e.useEffect)((()=>{const e=w(n[y]);f(_(e)),p(C(e)),x()}),[s,n[y]]),(0,e.useEffect)((()=>{if(!v.current)return void(v.current=!0);const e=S(m)?m+b:"",t={Tablet:T,Mobile:E};e||s in t&&(b!==C(t[s])?k(""):x()),e!==n[y]&&i({[y]:e})}),[m,b]),(0,e.createElement)(r.BaseControl,{label:a,id:d,className:"gblocks-unit-control"},(0,e.createElement)("div",{className:"gblocks-unit-control__input"},(0,e.createElement)(r.TextControl,{type:"number",value:m,placeholder:h,id:d,min:c,max:u,step:g,autoComplete:"off",onChange:e=>{c>=0&&(e=e.toString().replace(/-/g,"")),f(e)}}),(0,e.createElement)("span",{className:"gblocks-unit-control__unit-select"},(0,e.createElement)("select",{value:b,onChange:e=>{p(e.target.value)}},o.map((t=>(0,e.createElement)("option",{key:t,value:t},t)))))))}function Gs(a){const{state:o,attributes:s,setAttributes:c,media:u,deviceType:g}=a,{useDynamicData:d,mediaId:p,alt:m,title:f,sizeSlug:h,mediaUrl:k}=s,v=(0,l.useSelect)((e=>{const{getMedia:t}=e(Z.store);return p&&t(p,{context:"view"})}),[d,p]),y=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return(t().imageSizes||[]).map((e=>({value:e.slug,label:e.name})))}),[]);return(0,e.createElement)(C,t({},a,{title:(0,i.__)("Settings","generateblocks"),initialOpen:!1,icon:b("backgrounds"),className:"gblocks-panel-label",id:"imageSettings",state:o}),"Desktop"===g&&(!!p||d)&&(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Size","generateblocks"),value:h,options:y,onChange:e=>{const t=Xi(v,e)||k;c({mediaUrl:t,sizeSlug:e})}}),(0,e.createElement)(r.BaseControl,{help:(0,i.__)("These fields will resize the image using CSS.","generateblocks")},(0,e.createElement)("div",{className:"gblocks-image-dimensions__row"},(0,e.createElement)(Us,t({},a,{label:(0,i.__)("Width","generateblocks"),id:"gblocks-image-width",attributeName:"width",device:g,min:"1",units:["px","%","vw","rem"]})),(0,e.createElement)(Us,t({},a,{label:(0,i.__)("Height","generateblocks"),id:"gblocks-image-height",attributeName:"height",device:g,min:"1",units:["px","%","vw","rem"]})))),(0,e.createElement)(r.SelectControl,{label:(0,i.__)("Object-fit","generateblocks"),value:bo("objectFit",a),options:[{label:(0,i.__)("Select…","generateblocks"),value:""},{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Cover","generateblocks"),value:"cover"},{label:(0,i.__)("Contain","generateblocks"),value:"contain"},{label:(0,i.__)("Fill","generateblocks"),value:"fill"},{label:(0,i.__)("None","generateblocks"),value:"none"}],onChange:e=>{c({[bo("objectFit",a,!0)]:e})}}),!d&&"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.TextareaControl,{label:(0,i.__)("Alt text (alternative text)","generateblocks"),help:(0,i.__)("Describe the purpose of the image, leave empty if the image is purely decorative.","generateblocks"),value:d?u?.alt_text:m,disabled:d,onChange:e=>c({alt:e})}),(0,e.createElement)(r.TextControl,{label:(0,i.__)("Title attribute","generateblocks"),help:(0,i.__)("Describe the role of this image on the page.","generateblocks"),value:d?u?.title?.rendered:f,disabled:d,onChange:e=>c({title:e})})))}function js(a){const{state:l,deviceType:r}=a;return(0,e.createElement)(n.InspectorControls,null,(0,e.createElement)(Gs,a),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:b("spacing"),className:"gblocks-panel-label",id:"imageSpacing",state:l}),(0,e.createElement)(rr,t({},a,{deviceType:r,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]}))),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!1,icon:b("colors"),className:"gblocks-panel-label",id:"imageColors",state:l}),(0,e.createElement)(bi,t({},a,{colors:[{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]}]}))))}var qs=window.wp.blob,Ws=(0,q.compose)(Eo,Y)((function(a){const{attributes:r,setAttributes:i,context:o,ContentRenderer:s=Co}=a,{useDynamicData:c,dynamicContentType:u,sizeSlug:g,mediaId:d,mediaUrl:b,anchor:p}=r,[m]=W("Desktop"),{createErrorNotice:f}=(0,l.useDispatch)(Vs.store),[h,k]=(0,e.useState)(),v="post-type"===r.dynamicSource?r.postType:o.postType,y="post-type"===r.dynamicSource?r.postId:o.postId,[w]=(0,Z.useEntityProp)("postType",v,"featured_media",y),{mediaUpload:_}=(0,l.useSelect)((e=>{const{getSettings:t}=e(n.store);return(0,V.pick)(t(),["imageDefaultSize","mediaUpload"])}),[]),C=e=>{if(e&&e.url){if((0,qs.isBlobURL)(e.url))k(e.url);else if(k(),e&&(!c||c&&!u)){const t=e?.sizes&&e?.sizes[g]?.url||e?.url;i({mediaId:e?.id,mediaUrl:t,alt:e?.alt,title:e?.title})}}else i({mediaUrl:void 0,mediaId:void 0,title:void 0,alt:void 0})},T=e=>{f(e[2],{type:"snackbar"})};(0,e.useEffect)((()=>{g||i({sizeSlug:"full"})}),[]);let E=(x=b,!d&&(0,qs.isBlobURL)(x));var x;return(0,e.useEffect)((()=>{if(!E)return;const e=(0,qs.getBlobByURL)(b);e&&_({filesList:[e],onFileChange:e=>{let[t]=e;C(t)},allowedTypes:["image"],onError:e=>{E=!1,T(e)}})}),[]),(0,e.useEffect)((()=>{E?k(b):(0,qs.revokeBlobURL)(h)}),[E,b]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(js,{attributes:r,setAttributes:i,deviceType:m}),(0,e.createElement)(n.InspectorAdvancedControls,null,(0,e.createElement)(z,t({},a,{anchor:p}))),(0,e.createElement)(Hs,t({},a,{deviceType:m})),(0,e.createElement)(s,t({},a,{temporaryURL:h,featuredImage:w,onSelectImage:C,onSelectURL:e=>{e!==b&&i({mediaUrl:e,mediaId:void 0,title:"",alt:""})},onUploadError:T,onResetImage:()=>{i({mediaId:void 0,mediaUrl:"",alt:"",title:"",width:"",widthTablet:"",widthMobile:"",height:"",heightTablet:"",heightMobile:""})},deviceType:m})))}));const $s={from:[{type:"block",blocks:["core/image"],transform:e=>{let{id:t,url:a,sizeSlug:l}=e;return(0,g.createBlock)("generateblocks/image",{mediaId:t,mediaUrl:a,sizeSlug:l})}},{type:"block",blocks:["core/post-featured-image"],transform:e=>{let{sizeSlug:t}=e;return(0,g.createBlock)("generateblocks/image",{useDynamicData:!0,dynamicContentType:"featured-image",sizeSlug:t})}}],to:[{type:"block",blocks:["core/image"],transform:e=>{let{mediaId:t,mediaUrl:a,sizeSlug:l}=e;return(0,g.createBlock)("core/image",{id:t,url:a,sizeSlug:l})}}]};var Zs=$s;const Ks=Object.assign({},Os.Y4,Fi,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["margin","padding","border","borderRadius"];const a={};return t.includes("padding")&&Object.assign(a,{paddingTop:{type:"string",default:generateBlocksDefaults[e].paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults[e].paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults[e].paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults[e].paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults[e].paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults[e].paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults[e].paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults[e].paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults[e].paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults[e].paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults[e].paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults[e].paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults[e].paddingLeftMobile}}),t.includes("margin")&&Object.assign(a,{marginTop:{type:"string",default:generateBlocksDefaults[e].marginTop},marginRight:{type:"string",default:generateBlocksDefaults[e].marginRight},marginBottom:{type:"string",default:generateBlocksDefaults[e].marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults[e].marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults[e].marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults[e].marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults[e].marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults[e].marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults[e].marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults[e].marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults[e].marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults[e].marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults[e].marginLeftMobile}}),t.includes("border")&&Object.assign(a,{borderSizeTop:{type:"string",default:generateBlocksDefaults[e].borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults[e].borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults[e].borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults[e].borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults[e].borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults[e].borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults[e].borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults[e].borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults[e].borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults[e].borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults[e].borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults[e].borderSizeLeftMobile}}),t.includes("borderRadius")&&Object.assign(a,{borderRadiusTopRight:{type:"string",default:generateBlocksDefaults[e].borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults[e].borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults[e].borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults[e].borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults[e].borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults[e].borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults[e].borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults[e].borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults[e].borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults[e].borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults[e].borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults[e].borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults[e].borderRadiusTopLeftMobile}}),a}("image"));(0,g.registerBlockType)("generateblocks/image",{icon:b("image"),attributes:Ks,edit:Ws,save:t=>{let{attributes:a}=t;const{uniqueId:l,mediaUrl:r,anchor:i,alt:o,title:c,href:u,openInNewWindow:g,relNoFollow:d,relSponsored:b,useDynamicData:p,dynamicContentType:f,className:h,align:k}=a;if(p&&f)return(0,e.createElement)(n.InnerBlocks.Content,null);if(!r)return null;const v=n.useBlockProps.save({className:s()({"gb-block-image":!0,[`gb-block-image-${l}`]:!0})});v?.className.includes(h)&&(v.className=v.className.replace(h,"").trim());const y=de((0,m.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${l}`]:!0,[`${h}`]:void 0!==h,[`align${k}`]:""!==k}),id:i||null,src:r,alt:o,title:c},"generateblocks/image",a)),w={href:u,openInNewWindow:g,relNoFollow:d,relSponsored:b};return(0,e.createElement)(Ni,{tagName:"figure",htmlAttrs:v},(0,e.createElement)(io,w,(0,e.createElement)(Ni,{tagName:"img",htmlAttrs:y})),(0,e.createElement)(n.InnerBlocks.Content,null))},transforms:Zs})}()}();
1
+ !function(){var e={184:function(e,t){var a;!function(){"use strict";var l={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var i=r.apply(null,a);i&&e.push(i)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var o in a)l.call(a,o)&&a[o]&&e.push(o);else e.push(a.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()},856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,a){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,a)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function l(e,r,n){return l=a()?Reflect.construct:function(e,a,l){var r=[null];r.push.apply(r,a);var n=new(Function.bind.apply(e,r));return l&&t(n,l.prototype),n},l.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}var i=Object.hasOwnProperty,o=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,g=Object.freeze,d=Object.seal,b=Object.create,p="undefined"!=typeof Reflect&&Reflect,m=p.apply,f=p.construct;m||(m=function(e,t,a){return e.apply(t,a)}),g||(g=function(e){return e}),d||(d=function(e){return e}),f||(f=function(e,t){return l(e,r(t))});var h,k=B(Array.prototype.forEach),v=B(Array.prototype.pop),y=B(Array.prototype.push),w=B(String.prototype.toLowerCase),_=B(String.prototype.match),C=B(String.prototype.replace),T=B(String.prototype.indexOf),E=B(String.prototype.trim),x=B(RegExp.prototype.test),S=(h=TypeError,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return f(h,t)});function B(e){return function(t){for(var a=arguments.length,l=new Array(a>1?a-1:0),r=1;r<a;r++)l[r-1]=arguments[r];return m(e,t,l)}}function M(e,t,a){a=a||w,o&&o(e,null);for(var l=t.length;l--;){var r=t[l];if("string"==typeof r){var n=a(r);n!==r&&(s(t)||(t[l]=n),r=n)}e[r]=!0}return e}function D(e){var t,a=b(null);for(t in e)m(i,e,[t])&&(a[t]=e[t]);return a}function R(e,t){for(;null!==e;){var a=u(e,t);if(a){if(a.get)return B(a.get);if("function"==typeof a.value)return B(a.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var z=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),O=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),A=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=g(["#text"]),P=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),H=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),V=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=d(/<%[\w\W]*|[\w\W]*%>/gm),q=d(/^data-[\-\w.\u00B7-\uFFFF]/),W=d(/^aria-[\-\w]+$/),$=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=d(/^(?:\w+script|data):/i),K=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=d(/^html$/i),Y=function(){return"undefined"==typeof window?null:window},J=function(t,a){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var l=null,r="data-tt-policy-suffix";a.currentScript&&a.currentScript.hasAttribute(r)&&(l=a.currentScript.getAttribute(r));var n="dompurify"+(l?"#"+l:"");try{return t.createPolicy(n,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}};return function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y(),l=function(e){return t(e)};if(l.version="2.3.9",l.removed=[],!a||!a.document||9!==a.document.nodeType)return l.isSupported=!1,l;var n=a.document,i=a.document,o=a.DocumentFragment,s=a.HTMLTemplateElement,c=a.Node,u=a.Element,d=a.NodeFilter,b=a.NamedNodeMap,p=void 0===b?a.NamedNodeMap||a.MozNamedAttrMap:b,m=a.HTMLFormElement,f=a.DOMParser,h=a.trustedTypes,B=u.prototype,X=R(B,"cloneNode"),ee=R(B,"nextSibling"),te=R(B,"childNodes"),ae=R(B,"parentNode");if("function"==typeof s){var le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}var re=J(h,n),ne=re?re.createHTML(""):"",ie=i,oe=ie.implementation,se=ie.createNodeIterator,ce=ie.createDocumentFragment,ue=ie.getElementsByTagName,ge=n.importNode,de={};try{de=D(i).documentMode?i.documentMode:{}}catch(e){}var be={};l.isSupported="function"==typeof ae&&oe&&void 0!==oe.createHTMLDocument&&9!==de;var pe,me,fe=G,he=j,ke=q,ve=W,ye=Z,we=K,_e=$,Ce=null,Te=M({},[].concat(r(z),r(L),r(O),r(N),r(F))),Ee=null,xe=M({},[].concat(r(P),r(H),r(V),r(U))),Se=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Be=null,Me=null,De=!0,Re=!0,ze=!1,Le=!1,Oe=!1,Ie=!1,Ne=!1,Ae=!1,Fe=!1,Pe=!1,He=!0,Ve=!0,Ue=!1,Ge={},je=null,qe=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,$e=M({},["audio","video","img","source","image","track"]),Ze=null,Ke=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Xe=Je,et=!1,tt=["application/xhtml+xml","text/html"],at="text/html",lt=null,rt=i.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},it=function(t){lt&&lt===t||(t&&"object"===e(t)||(t={}),t=D(t),pe=pe=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?at:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===pe?function(e){return e}:w,Ce="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,me):Te,Ee="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,me):xe,Ze="ADD_URI_SAFE_ATTR"in t?M(D(Ke),t.ADD_URI_SAFE_ATTR,me):Ke,We="ADD_DATA_URI_TAGS"in t?M(D($e),t.ADD_DATA_URI_TAGS,me):$e,je="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,me):qe,Be="FORBID_TAGS"in t?M({},t.FORBID_TAGS,me):{},Me="FORBID_ATTR"in t?M({},t.FORBID_ATTR,me):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,De=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=t.SAFE_FOR_TEMPLATES||!1,Oe=t.WHOLE_DOCUMENT||!1,Ae=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,Ne=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Ve=!1!==t.KEEP_CONTENT,Ue=t.IN_PLACE||!1,_e=t.ALLOWED_URI_REGEXP||_e,Xe=t.NAMESPACE||Je,t.CUSTOM_ELEMENT_HANDLING&&nt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&nt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Re=!1),Fe&&(Ae=!0),Ge&&(Ce=M({},r(F)),Ee=[],!0===Ge.html&&(M(Ce,z),M(Ee,P)),!0===Ge.svg&&(M(Ce,L),M(Ee,H),M(Ee,U)),!0===Ge.svgFilters&&(M(Ce,O),M(Ee,H),M(Ee,U)),!0===Ge.mathMl&&(M(Ce,N),M(Ee,V),M(Ee,U))),t.ADD_TAGS&&(Ce===Te&&(Ce=D(Ce)),M(Ce,t.ADD_TAGS,me)),t.ADD_ATTR&&(Ee===xe&&(Ee=D(Ee)),M(Ee,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&M(Ze,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(je===qe&&(je=D(je)),M(je,t.FORBID_CONTENTS,me)),Ve&&(Ce["#text"]=!0),Oe&&M(Ce,["html","head","body"]),Ce.table&&(M(Ce,["tbody"]),delete Be.tbody),g&&g(t),lt=t)},ot=M({},["mi","mo","mn","ms","mtext"]),st=M({},["foreignobject","desc","title","annotation-xml"]),ct=M({},["title","style","font","a","script"]),ut=M({},L);M(ut,O),M(ut,I);var gt=M({},N);M(gt,A);var dt=function(e){var t=ae(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var a=w(e.tagName),l=w(t.tagName);return e.namespaceURI===Ye?t.namespaceURI===Je?"svg"===a:t.namespaceURI===Qe?"svg"===a&&("annotation-xml"===l||ot[l]):Boolean(ut[a]):e.namespaceURI===Qe?t.namespaceURI===Je?"math"===a:t.namespaceURI===Ye?"math"===a&&st[l]:Boolean(gt[a]):e.namespaceURI===Je&&!(t.namespaceURI===Ye&&!st[l])&&!(t.namespaceURI===Qe&&!ot[l])&&!gt[a]&&(ct[a]||!ut[a])},bt=function(e){y(l.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ne}catch(t){e.remove()}}},pt=function(e,t){try{y(l.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(l.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Ae||Fe)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,a;if(Ne)e="<remove></remove>"+e;else{var l=_(e,/^[\r\n\t ]+/);a=l&&l[0]}"application/xhtml+xml"===pe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=re?re.createHTML(e):e;if(Xe===Je)try{t=(new f).parseFromString(r,pe)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=et?"":r}catch(e){}}var n=t.body||t.documentElement;return e&&a&&n.insertBefore(i.createTextNode(a),n.childNodes[0]||null),Xe===Je?ue.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:n},ft=function(e){return se.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},ht=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},kt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},vt=function(e,t,a){be[e]&&k(be[e],(function(e){e.call(l,t,a,lt)}))},yt=function(e){var t;if(vt("beforeSanitizeElements",e,null),ht(e))return bt(e),!0;if(x(/[\u0080-\uFFFF]/,e.nodeName))return bt(e),!0;var a=me(e.nodeName);if(vt("uponSanitizeElement",e,{tagName:a,allowedTags:Ce}),e.hasChildNodes()&&!kt(e.firstElementChild)&&(!kt(e.content)||!kt(e.content.firstElementChild))&&x(/<[/\w]/g,e.innerHTML)&&x(/<[/\w]/g,e.textContent))return bt(e),!0;if("select"===a&&x(/<template/i,e.innerHTML))return bt(e),!0;if(!Ce[a]||Be[a]){if(!Be[a]&&_t(a)){if(Se.tagNameCheck instanceof RegExp&&x(Se.tagNameCheck,a))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(a))return!1}if(Ve&&!je[a]){var r=ae(e)||e.parentNode,n=te(e)||e.childNodes;if(n&&r)for(var i=n.length-1;i>=0;--i)r.insertBefore(X(n[i],!0),ee(e))}return bt(e),!0}return e instanceof u&&!dt(e)?(bt(e),!0):"noscript"!==a&&"noembed"!==a||!x(/<\/no(script|embed)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=C(t,fe," "),t=C(t,he," "),e.textContent!==t&&(y(l.removed,{element:e.cloneNode()}),e.textContent=t)),vt("afterSanitizeElements",e,null),!1):(bt(e),!0)},wt=function(e,t,a){if(He&&("id"===t||"name"===t)&&(a in i||a in rt))return!1;if(Re&&!Me[t]&&x(ke,t));else if(De&&x(ve,t));else if(!Ee[t]||Me[t]){if(!(_t(e)&&(Se.tagNameCheck instanceof RegExp&&x(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&x(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&x(Se.tagNameCheck,a)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(a))))return!1}else if(Ze[t]);else if(x(_e,C(a,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==T(a,"data:")||!We[e])if(ze&&!x(ye,C(a,we,"")));else if(a)return!1;return!0},_t=function(e){return e.indexOf("-")>0},Ct=function(e){var t,a,r,n;vt("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};for(n=i.length;n--;){var s=t=i[n],c=s.name,u=s.namespaceURI;if(a="value"===c?t.value:E(t.value),r=me(c),o.attrName=r,o.attrValue=a,o.keepAttr=!0,o.forceKeepAttr=void 0,vt("uponSanitizeAttribute",e,o),a=o.attrValue,!o.forceKeepAttr&&(pt(c,e),o.keepAttr))if(x(/\/>/i,a))pt(c,e);else{Le&&(a=C(a,fe," "),a=C(a,he," "));var g=me(e.nodeName);if(wt(g,r,a))try{u?e.setAttributeNS(u,c,a):e.setAttribute(c,a),v(l.removed)}catch(e){}}}vt("afterSanitizeAttributes",e,null)}},Tt=function e(t){var a,l=ft(t);for(vt("beforeSanitizeShadowDOM",t,null);a=l.nextNode();)vt("uponSanitizeShadowNode",a,null),yt(a)||(a.content instanceof o&&e(a.content),Ct(a));vt("afterSanitizeShadowDOM",t,null)};return l.sanitize=function(t,r){var i,s,u,g,d;if((et=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!kt(t)){if("function"!=typeof t.toString)throw S("toString is not a function");if("string"!=typeof(t=t.toString()))throw S("dirty is not a string, aborting")}if(!l.isSupported){if("object"===e(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof t)return a.toStaticHTML(t);if(kt(t))return a.toStaticHTML(t.outerHTML)}return t}if(Ie||it(r),l.removed=[],"string"==typeof t&&(Ue=!1),Ue){if(t.nodeName){var b=me(t.nodeName);if(!Ce[b]||Be[b])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(s=(i=mt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Ae&&!Le&&!Oe&&-1===t.indexOf("<"))return re&&Pe?re.createHTML(t):t;if(!(i=mt(t)))return Ae?null:Pe?ne:""}i&&Ne&&bt(i.firstChild);for(var p=ft(Ue?t:i);u=p.nextNode();)3===u.nodeType&&u===g||yt(u)||(u.content instanceof o&&Tt(u.content),Ct(u),g=u);if(g=null,Ue)return t;if(Ae){if(Fe)for(d=ce.call(i.ownerDocument);i.firstChild;)d.appendChild(i.firstChild);else d=i;return Ee.shadowroot&&(d=ge.call(n,d,!0)),d}var m=Oe?i.outerHTML:i.innerHTML;return Oe&&Ce["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&x(Q,i.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+m),Le&&(m=C(m,fe," "),m=C(m,he," ")),re&&Pe?re.createHTML(m):m},l.setConfig=function(e){it(e),Ie=!0},l.clearConfig=function(){lt=null,Ie=!1},l.isValidAttribute=function(e,t,a){lt||it({});var l=me(e),r=me(t);return wt(l,r,a)},l.addHook=function(e,t){"function"==typeof t&&(be[e]=be[e]||[],y(be[e],t))},l.removeHook=function(e){if(be[e])return v(be[e])},l.removeHooks=function(e){be[e]&&(be[e]=[])},l.removeAllHooks=function(){be={}},l}()}()},679:function(e,t,a){"use strict";var l=a(296),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function s(e){return l.isMemo(e)?i:o[e.$$typeof]||r}o[l.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[l.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,a,l){if("string"!=typeof a){if(p){var r=b(a);r&&r!==p&&e(t,r,l)}var i=u(a);g&&(i=i.concat(g(a)));for(var o=s(t),m=s(a),f=0;f<i.length;++f){var h=i[f];if(!(n[h]||l&&l[h]||m&&m[h]||o&&o[h])){var k=d(a,h);try{c(t,h,k)}catch(e){}}}}return t}},103:function(e,t){"use strict";var a="function"==typeof Symbol&&Symbol.for,l=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,s=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,g=a?Symbol.for("react.concurrent_mode"):60111,d=a?Symbol.for("react.forward_ref"):60112,b=a?Symbol.for("react.suspense"):60113,p=a?Symbol.for("react.suspense_list"):60120,m=a?Symbol.for("react.memo"):60115,f=a?Symbol.for("react.lazy"):60116,h=a?Symbol.for("react.block"):60121,k=a?Symbol.for("react.fundamental"):60117,v=a?Symbol.for("react.responder"):60118,y=a?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case l:switch(e=e.type){case u:case g:case n:case o:case i:case b:return e;default:switch(e=e&&e.$$typeof){case c:case d:case f:case m:case s:return e;default:return t}}case r:return t}}}function _(e){return w(e)===g}t.AsyncMode=u,t.ConcurrentMode=g,t.ContextConsumer=c,t.ContextProvider=s,t.Element=l,t.ForwardRef=d,t.Fragment=n,t.Lazy=f,t.Memo=m,t.Portal=r,t.Profiler=o,t.StrictMode=i,t.Suspense=b,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===n},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===g||e===o||e===i||e===b||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===k||e.$$typeof===v||e.$$typeof===y||e.$$typeof===h)},t.typeOf=w},296:function(e,t,a){"use strict";e.exports=a(103)}},t={};function a(l){var r=t[l];if(void 0!==r)return r.exports;var n=t[l]={exports:{}};return e[l].call(n.exports,n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element;function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},t.apply(this,arguments)}var l=window.wp.data,r=window.wp.blockEditor,n=window.wp.components,i=window.wp.i18n,o=a(184),s=a.n(o);const c=(e,t)=>{const{gridItemPaddingTop:a,gridItemPaddingRight:l,gridItemPaddingBottom:r,gridItemPaddingLeft:n}=generateBlocksStyling.container;return(e.split("-")||[]).map((e=>({isGrid:!0,gridId:t,paddingTop:a||"",paddingRight:l||"",paddingBottom:r||"",paddingLeft:n||"",widthMobile:100,width:Number(e)})))};var u=t=>{let{uniqueId:a,onClick:l,isDisabled:r=!1}=t;return!r&&(0,e.createElement)(n.Placeholder,{label:(0,i.__)("Grid","generateblocks"),instructions:(0,i.__)("Choose how many Containers to start with.","generateblocks"),className:"gb-select-layout"},(0,e.createElement)("div",{className:"gb-grid-wrapper-layout-preview"},["100","50-50","33.33-33.33-33.33","25-25-25-25","25-75","75-25","25-25-50","25-50-25","50-25-25","20-60-20","20-20-20-20-20","16-16-16-16-16-16"].map((t=>{const r=c(t,a);return(0,e.createElement)("button",{key:`layout-${t}`,className:"gb-grid-wrapper-layout-preview-btn",onClick:()=>l(t)},r.map(((a,l)=>(0,e.createElement)("div",{key:`layout-${t}-col-${l}`,className:s()("gb-col",`gb-col-${a.width.toString().replace(".","-")}`)}))))}))))},g=window.wp.blocks;const d=wp.element.createElement;function b(t){return"tabs-desktop"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},d("path",{d:"M18.95 4H4.55C3.55589 4 2.75 4.76751 2.75 5.71429V14.2857C2.75 15.2325 3.55589 16 4.55 16H18.95C19.9441 16 20.75 15.2325 20.75 14.2857V5.71429C20.75 4.76751 19.9441 4 18.95 4Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d("path",{d:"M1.75 18C1.19772 18 0.75 18.4477 0.75 19C0.75 19.5523 1.19772 20 1.75 20H21.75C22.3023 20 22.75 19.5523 22.75 19C22.75 18.4477 22.3023 18 21.75 18H1.75ZM9 18.8C8.86193 18.8 8.75 18.9119 8.75 19.05C8.75 19.1881 8.86193 19.3 9 19.3H14.5C14.6381 19.3 14.75 19.1881 14.75 19.05C14.75 18.9119 14.6381 18.8 14.5 18.8H9Z",stroke:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})):"tabs-tablet"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"M16.6429 4H7.35714C6.33147 4 5.5 4.71634 5.5 5.6V18.4C5.5 19.2837 6.33147 20 7.35714 20H16.6429C17.6685 20 18.5 19.2837 18.5 18.4V5.6C18.5 4.71634 17.6685 4 16.6429 4Z"}),d("path",{d:"M12 17.5H12.01"})):"tabs-mobile"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"M15.5714 4H8.42857C7.63959 4 7 4.71634 7 5.6V18.4C7 19.2837 7.63959 20 8.42857 20H15.5714C16.3604 20 17 19.2837 17 18.4V5.6C17 4.71634 16.3604 4 15.5714 4Z"}),d("path",{d:"M12 17.5H12.01"})):"sync"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24"},d("path",{d:"m7.34133533 6.23855964v-1.98499625c-2.17404351.03150788-4.03300825 1.38634659-4.85221305 3.27681921-.31507877.72468117-.44111028 1.51237809-.4096024 2.33158289.06301575 1.13428361.47261815 2.20555141 1.16579145 3.05626411.37809452.4411102.28357089 1.1027757-.18904726 1.4493623-.44111028.3150788-1.07126782.2205551-1.41785447-.1890473-.85071268-1.0397599-1.38634658-2.3315829-1.54388597-3.7179294-.12603151-1.00825211-.03150788-2.01650417.25206302-2.9302326.88222055-3.02475619 3.6864216-5.26181546 6.99474868-5.29332334v-1.98499624c0-.09452363.12603151-.15753939.22055514-.09452363l4.09602403 2.99324831c.0630157.06301575.0630157.15753938 0 .18904726l-4.09602403 2.99324831c-.09452363.06301575-.22055514 0-.22055514-.09452363zm.22055514 13.17029256c.09452363.0630158.22055514 0 .22055514-.0945236v-1.9849963c3.30832709-.0315078 6.11252809-2.2685671 6.99474869-5.2933233.252063-.9137284.3780945-1.8904726.252063-2.93023256-.1575394-1.38634658-.7246812-2.67816954-1.543886-3.71792948-.3465866-.44111028-.9767441-.53563391-1.4178544-.18904726-.4726182.34658665-.5671418 1.00825206-.1890473 1.44936234.6931733.85071268 1.1027757 1.89047262 1.1657915 3.05626407.0315078.81920479-.1260315 1.63840959-.4096024 2.33158289-.787697 1.8904726-2.6466617 3.2453113-4.85221309 3.2768192v-1.9849962c0-.0945237-.12603151-.1575394-.22055514-.0945237l-4.096024 2.9932483c-.06301576.0630158-.06301576.1575394 0 .1890473z",transform:"translate(4 2)"})):"headline"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon gblocks-block-icon__headline"},(0,e.createElement)("path",{d:"M23.7 24h-8c-.1 0-.3-.1-.3-.3V16H8.7v7.6c0 .1-.1.3-.3.3H.3c-.1.1-.3 0-.3-.2V.3C0 .2.1 0 .3 0h8c.2 0 .4.1.4.3V8h6.8V.3c0-.1.1-.3.3-.3h8c.1 0 .2.1.2.3v23.5c0 .1-.1.2-.3.2zm-6.6-1.7h5V1.7h-5v8H6.9v-8h-5v20.4h5v-8h10.3v8.2z"})):"grid"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M13.8 10.8H.3c-.2 0-.3-.1-.3-.3V.3C0 .1.1 0 .3 0h13.6c.2 0 .3.1.3.3v10.3c-.1.1-.2.2-.4.2zM1.8 9h10.6V1.8H1.8V9zm21.9 1.8h-7c-.2 0-.3-.1-.3-.3V.3c0-.2.1-.3.3-.3h7c.2 0 .3.1.3.3v10.3c0 .1-.1.2-.3.2zM18.2 9h4V1.8h-4V9zm-8 4.2h13.6c.2 0 .3.1.3.3v10.3c0 .2-.1.3-.3.3H10.2c-.2 0-.3-.1-.3-.3V13.5c0-.2.1-.3.3-.3zm12 1.8H11.7v7.3h10.6V15zM.3 13.2h7c.2 0 .3.1.3.3v10.3c0 .2-.1.3-.3.3h-7c-.2-.1-.3-.2-.3-.4V13.5c0-.2.1-.3.3-.3zM5.8 15h-4v7.3h4V15z"})):"container"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 24h-5.2v-2.2h3.3v-3.3H24v5.2c0 .2-.1.3-.3.3zm-15-2.2h6.5V24H8.7zM5.5 24H.3c-.2 0-.3-.1-.3-.3v-5.2h2.2v3.3h3.3V24zM0 8.7h2.2v6.5H0zm2.2-3.2H0V.3C0 .1.1 0 .3 0h5.2v2.2H2.2v3.3zM8.7 0h6.5v2.2H8.7zM24 5.5h-2.2V2.2h-3.3V0h5.2c.2 0 .3.1.3.3v5.2zm-2.2 3.2H24v6.5h-2.2z"})):"button"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 17.4H.3c-.1 0-.1 0-.2-.1-.1 0-.1-.1-.1-.2V6.9c0-.1 0-.1.1-.2s.1-.1.2-.1h23.4c.1 0 .1 0 .2.1s.1.1.1.2v10.2c0 .1 0 .1-.1.2 0 .1-.1.1-.2.1zM1.8 15.6h20.4V8.4H1.8v7.2z"}),(0,e.createElement)("path",{d:"M15 12.9H4.8v-1.8H15v.9zm4.2 0h-2.6v-1.8h2.6v.9z"})):"button-container"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 10.8H.3c-.1 0-.1 0-.2-.1-.1 0-.1-.1-.1-.1V.4C0 .3 0 .3.1.2S.2 0 .3 0h23.4c.1 0 .1 0 .2.1.1 0 .1.1.1.2v10.2c0 .1 0 .1-.1.2 0 .1-.1.1-.2.1zM1.8 9.1h20.4V1.9L12 1.8H1.8v7.3z"}),(0,e.createElement)("path",{d:"M15 6.3H4.8V4.5H15v.9zm4.2 0h-2.6V4.5h2.6v.9zM23.7 24H.3c-.1 0-.1 0-.2-.1s-.1-.1-.1-.2V13.5c0-.1 0-.1.1-.2s.1-.1.2-.1h23.4c.1 0 .1 0 .2.1s.1.1.1.2v10.2c0 .1 0 .1-.1.2 0 .1-.1.1-.2.1zM1.8 22.2h20.4V15H1.8v7.2z"}),(0,e.createElement)("path",{d:"M19.2 19.5H9v-1.8h10.2v.9zM4.8 17.7h2.6v1.8H4.8v-.9z"})):"post-template"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M23.7 12.9H.3c-.2 0-.3-.1-.3-.3V.3C0 .1.1 0 .3 0h23.4c.2 0 .3.1.3.3v12.3c0 .2-.1.3-.3.3zM1.8 11.1h20.4V1.8H1.8v9.3zM13.4 15h10.3c.2 0 .3.1.3.3v8.4c0 .2-.1.3-.3.3H13.4c-.2 0-.3-.1-.3-.3v-8.4c0-.1.2-.3.3-.3zm8.8 1.8h-7.3v5.4h7.3v-5.4zM.3 18.6H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.1.1-.3.3-.3zm0-3.6H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.1.1-.3.3-.3zm0 7.2H10c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3H.3c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3z"})):"query-loop"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M22.8 5.2h-7.4c-.2 0-.3-.1-.3-.3V3.7c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3zm0 3.4h-7.4c-.2 0-.3-.1-.3-.3V7.1c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3zm0-6.8h-7.4c-.2 0-.3-.1-.3-.3V.3c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3zM8.6 20.6H1.2c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c-.1.2-.2.3-.3.3zm0 3.4H1.2c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c-.1.2-.2.3-.3.3zm0-6.8H1.2c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3h7.4c.2 0 .3.1.3.3v1.2c-.1.1-.2.3-.3.3z"}),(0,e.createElement)("path",{d:"M17.7 24c-1.7 0-3.3-.7-4.4-1.8-2.4-2.4-2.3-6.3-2.2-10.2.1-4.3.2-8.4-3-9.8-1.5-.7-3.2-.5-4.4.4-1.2.8-1.9 2.1-1.9 3.5 0 .8.2 1.6.5 2.3.9 1.7 2.5 2.5 5.6 2.7.2 0 .3.1.3.3l-.1 1.2c0 .2-.1.3-.3.3-2-.1-4.4-.5-6-2.2-1.3-1.3-2-3.1-1.8-5 .2-1.9 1.1-3.5 2.7-4.6C4.4-.1 6.7-.3 8.8.5c4.4 1.8 4.2 7 4.1 11.5-.1 3.5-.2 7.1 1.6 8.9.9.9 2.2 1.4 3.6 1.3 1.3-.1 2.5-.8 3.3-1.9.9-1.2 1-2.9.4-4.4-.8-1.9-2.5-2.8-5.8-3-.2 0-.3-.1-.3-.3l.1-1.2c0-.2.1-.3.3-.3 2.7.2 6 .8 7.3 4.1.9 2 .6 4.4-.6 6.1-1.1 1.5-2.8 2.5-4.6 2.7h-.5z"})):"image"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20",className:"gblocks-block-icon"},(0,e.createElement)("path",{d:"M16.4 11.9c-2.3 0-4.2-1.9-4.2-4.2s1.9-4.2 4.2-4.2 4.2 1.9 4.2 4.2-1.9 4.2-4.2 4.2zm0-6.7c-1.3 0-2.4 1.1-2.4 2.4s1.1 2.4 2.4 2.4c1.3 0 2.4-1.1 2.4-2.4s-1.1-2.4-2.4-2.4z"}),(0,e.createElement)("path",{d:"M23.7 24H.3c-.2 0-.3-.1-.3-.3V.3C0 .1.1 0 .3 0h23.4c.2 0 .3.1.3.3v23.4c0 .2-.1.3-.3.3zM1.8 22.2h20.4V1.8H1.8v20.4z"}),(0,e.createElement)("path",{d:"M22.3 23.6 8.4 11.7l-6.9 6.1-1.2-1.3 7.9-6.9c.1-.1.3-.1.4 0l15.1 13-1 1.1c-.1 0-.3 0-.4-.1z"})):"paragraph"===t?d("svg",{width:20,height:20,viewBox:"0 0 20 20"},d("path",{d:"M15 2H7.54c-.83 0-1.59.2-2.28.6-.7.41-1.25.96-1.65 1.65C3.2 4.94 3 5.7 3 6.52s.2 1.58.61 2.27c.4.69.95 1.24 1.65 1.64.69.41 1.45.61 2.28.61h.43V17c0 .27.1.51.29.71.2.19.44.29.71.29.28 0 .51-.1.71-.29.2-.2.3-.44.3-.71V5c0-.27.09-.51.29-.71.2-.19.44-.29.71-.29s.51.1.71.29c.19.2.29.44.29.71v12c0 .27.1.51.3.71.2.19.43.29.71.29.27 0 .51-.1.71-.29.19-.2.29-.44.29-.71V4H15c.27 0 .5-.1.7-.3.2-.19.3-.43.3-.7s-.1-.51-.3-.71A.984.984 0 0 0 15 2z"})):"spacing"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),d("path",{d:"M40.452,77.705c7.802,1.393 23.794,1.393 31.596,0l13.635,13.635c-12.215,3.213 -46.652,3.213 -58.866,0l13.635,-13.635Zm50.888,-50.888c3.213,12.215 3.213,46.653 0,58.866l-13.635,-13.635c1.393,-7.801 1.393,-23.794 0,-31.596l13.635,-13.635Zm-70.18,0l13.635,13.635c-1.393,7.802 -1.393,23.794 0,31.596l-13.635,13.635c-3.213,-12.213 -3.213,-46.651 0,-58.866Zm5.657,-5.657c12.214,-3.213 46.652,-3.213 58.866,0l-13.635,13.635c-7.801,-1.393 -23.795,-1.393 -31.596,0l-13.635,-13.635Z"})):"advanced"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,37.215c6.632,2.124 6.632,23.512 0,25.636c-6.632,2.124 -73.42,2.124 -80.052,0c-6.632,-2.124 -6.632,-23.512 0,-25.636c6.632,-2.124 73.42,-2.124 80.052,0Z"}),d("path",{d:"M48.61,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"}),d("path",{d:"M90.955,51.916c2.243,0.718 2.243,7.95 0,8.668c-2.242,0.718 -24.823,0.718 -27.065,0c-2.243,-0.718 -2.243,-7.95 0,-8.668c2.242,-0.718 24.823,-0.718 27.065,0Z"})):"backgrounds"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M1.491,87.777l37.79,-37.79l31.352,31.352c2.412,2.171 5.656,0 5.656,0l17.248,-17.247l13.186,13.186l4.796,4.797c-0.971,12.199 -2.726,21.685 -5.249,24.208c-8.29,8.289 -91.776,8.289 -100.066,0c-2.113,-2.113 -3.687,-9.113 -4.713,-18.506Z"}),d("path",{d:"M0.631,77.323c-1.742,-27.728 0.125,-65.658 5.573,-71.106c8.29,-8.289 91.776,-8.289 100.066,0c5.07,5.07 7.039,38.265 5.89,65.185l-15.795,-15.795c-2.412,-2.172 -5.657,0 -5.657,0l-17.247,17.246l-31.351,-31.351c-0.731,-0.658 -1.036,-1 -2.619,-1.166c-0.263,0 -0.477,-0.075 -1.245,0.131c-0.912,0.244 -1.793,1.035 -1.793,1.035l-35.822,35.821Zm76.434,-59.584c7.115,0 12.891,5.776 12.891,12.89c0,7.114 -5.776,12.89 -12.891,12.89c-7.114,0 -12.89,-5.776 -12.89,-12.89c0,-7.114 5.776,-12.89 12.89,-12.89Z"})):"colors"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-50.033,12.818c-20.551,0 -37.215,16.664 -37.215,37.215c0,20.551 16.664,37.215 37.215,37.215c3.432,0 6.202,-2.77 6.202,-6.203c0,-1.612 -0.62,-3.059 -1.612,-4.176c-0.951,-1.075 -1.571,-2.522 -1.571,-4.094c0,-3.432 2.77,-6.202 6.202,-6.202l7.319,0c11.413,0 20.675,-9.262 20.675,-20.675c0,-18.277 -16.664,-33.08 -37.215,-33.08Zm-22.742,37.215c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm45.484,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Zm-33.079,-16.54c-3.433,0 -6.203,-2.77 -6.203,-6.202c0,-3.433 2.77,-6.203 6.203,-6.203c3.432,0 6.202,2.77 6.202,6.203c0,3.432 -2.77,6.202 -6.202,6.202Zm20.674,0c-3.432,0 -6.202,-2.77 -6.202,-6.202c0,-3.433 2.77,-6.203 6.202,-6.203c3.433,0 6.203,2.77 6.203,6.203c0,3.432 -2.77,6.202 -6.203,6.202Z"})):"gradients"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M112.426,48.746c0.503,25.204 -1.545,52.939 -6.143,57.537c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.289,-8.288 91.748,-8.289 100.061,-0.004c0,0 0.005,0.004 0.005,0.004c3.691,3.692 5.739,22.295 6.143,42.529Zm-16.154,-32.526c-6.656,-6.628 -73.418,-6.627 -80.048,0.004c-6.631,6.63 -6.632,73.392 -0.004,80.048l80.052,-80.052Z"})):"icons"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-10.007,10.007c6.632,6.632 6.632,73.42 0,80.052c-6.632,6.632 -73.42,6.632 -80.052,0c-6.632,-6.632 -6.632,-73.42 0,-80.052c6.632,-6.632 73.42,-6.632 80.052,0Z"}),d("path",{d:"M89.605,22.895c5.527,5.526 5.527,61.184 0,66.71c-5.526,5.527 -61.184,5.527 -66.71,0c-5.527,-5.526 -5.527,-61.184 0,-66.71c5.526,-5.527 61.184,-5.527 66.71,0Zm-21.066,62.31l0,-2.731c-0.648,-0.074 -1.272,-0.199 -1.87,-0.374c-0.599,-0.174 -1.148,-0.374 -1.646,-0.598c-0.699,-0.299 -1.235,-0.755 -1.609,-1.366c-0.374,-0.611 -0.561,-1.353 -0.561,-2.226l0,-29.703l-0.561,-0.561l-18.331,0.972l0,2.731c0.748,0.075 1.577,0.25 2.488,0.524c0.91,0.274 1.589,0.561 2.038,0.86c0.599,0.399 1.098,0.929 1.497,1.59c0.399,0.661 0.598,1.428 0.598,2.301l0,21.773c0,0.923 -0.162,1.665 -0.486,2.226c-0.324,0.561 -0.885,0.991 -1.683,1.29c-0.449,0.175 -0.986,0.3 -1.609,0.374c-0.624,0.075 -1.26,0.138 -1.908,0.187l0,2.731l23.643,0Zm-12.978,-59.459c4.76,0 8.625,3.864 8.625,8.625c0,4.76 -3.865,8.625 -8.625,8.625c-4.76,0 -8.625,-3.865 -8.625,-8.625c0,-4.761 3.865,-8.625 8.625,-8.625Z"})):"typography"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.283,6.217c8.289,8.29 8.289,91.776 0,100.066c-8.29,8.289 -91.776,8.289 -100.066,0c-8.289,-8.29 -8.289,-91.776 0,-100.066c8.29,-8.289 91.776,-8.289 100.066,0Zm-8.783,78.583l0,-2.817c-0.661,-0.026 -1.481,-0.165 -2.46,-0.417c-0.979,-0.251 -1.773,-0.562 -2.381,-0.932c-0.9,-0.609 -1.601,-1.23 -2.103,-1.865c-0.503,-0.635 -0.953,-1.468 -1.349,-2.5l-18.769,-48.569l-3.175,0c-2.672,6.878 -5.714,14.721 -9.126,23.53c-3.266,8.43 -6.265,16.06 -8.998,22.891l-11.672,-28.684l-2.304,0c-1.939,4.742 -4.148,10.149 -6.625,16.222c-2.477,6.072 -4.743,11.543 -6.798,16.412c-0.403,0.949 -0.816,1.692 -1.238,2.23c-0.423,0.538 -1.018,1.053 -1.786,1.545c-0.48,0.292 -1.095,0.524 -1.844,0.698c-0.749,0.173 -1.373,0.278 -1.872,0.314l0,1.942l15.382,0l0,-1.942c-1.518,-0.073 -2.881,-0.31 -4.091,-0.711c-1.209,-0.401 -1.814,-0.966 -1.814,-1.696c0,-0.31 0.048,-0.711 0.144,-1.204c0.096,-0.492 0.268,-1.13 0.518,-1.914c0.269,-0.803 0.571,-1.678 0.907,-2.626c0.336,-0.948 0.773,-2.061 1.311,-3.338l14.316,0l3.399,8.699c0.012,0.03 0.024,0.06 0.036,0.092c-0.161,0.119 -0.329,0.237 -0.503,0.355c-0.661,0.423 -1.508,0.76 -2.539,1.012c-1.032,0.251 -1.892,0.403 -2.58,0.456l0,2.817l21.19,0l0,-2.817c-2.09,-0.106 -3.968,-0.45 -5.635,-1.032c-1.666,-0.582 -2.499,-1.402 -2.499,-2.46c0,-0.45 0.066,-1.032 0.198,-1.746c0.132,-0.714 0.37,-1.64 0.714,-2.777c0.371,-1.164 0.787,-2.434 1.25,-3.81c0.463,-1.375 1.065,-2.989 1.806,-4.841l19.721,0l4.682,12.619c0.106,0.264 0.186,0.568 0.238,0.912c0.053,0.344 0.08,0.635 0.08,0.873c0,0.582 -0.681,1.072 -2.044,1.468c-1.362,0.397 -3.075,0.662 -5.138,0.794l0,2.817l23.451,0Zm-56.864,-15.865l-6.193,-15.045l-6.078,15.045l12.271,0Zm34.167,-7.15l-8.532,-21.824l-8.373,21.824l16.905,0Z"})):"addContainer"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"20",width:"20"},(0,e.createElement)("path",{d:"M23.7 24h-5.2v-2.2h3.3v-3.3H24v5.2c0 .2-.1.3-.3.3zm-15-2.2h6.5V24H8.7zM5.5 24H.3c-.2 0-.3-.1-.3-.3v-5.2h2.2v3.3h3.3V24zM0 8.7h2.2v6.5H0zm2.2-3.2H0V.3C0 .1.1 0 .3 0h5.2v2.2H2.2v3.3zM8.7 0h6.5v2.2H8.7zM24 5.5h-2.2V2.2h-3.3V0h5.2c.2 0 .3.1.3.3v5.2zm-2.2 3.2H24v6.5h-2.2zM12.6 18.6h-1.2c-.2 0-.3-.1-.3-.3V5.7c0-.2.1-.3.3-.3h1.2c.2 0 .3.1.3.3v12.6c0 .2-.1.3-.3.3z"}),(0,e.createElement)("path",{d:"M18.3 12.9H5.7c-.2 0-.3-.1-.3-.3v-1.2c0-.2.1-.3.3-.3h12.6c.2 0 .3.1.3.3v1.2c0 .2-.1.3-.3.3z"})):"gradient"===t?d("svg",{width:24,height:24,viewBox:"0 0 24 24",fillRule:"evenodd"},d("path",{d:"M17.66 8L12 2.35L6.34 8A8.02 8.02 0 0 0 4 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0 0 11.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"})):"documentation"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.755 6.245c8.327 8.326 8.327 92.184 0 100.51-8.326 8.327-92.184 8.327-100.51 0-8.327-8.326-8.327-92.184 0-100.51 8.326-8.327 92.184-8.327 100.51 0zm-92.661 93.896C9.279 84 9.781 23.714 15.834 17.661c2.491-2.491 19.588-4.132 26.354-4.712 4.748-.408 10.115.671 14.243 1.23 4.128-.559 9.495-1.638 14.243-1.23 6.766.58 23.863 2.221 26.354 4.712 6.053 6.053 6.791 66.339 1.976 82.48-4.729-1.977-19.708-3.436-26.784-3.853-5.234-.308-11.129.739-15.671 1.354-4.543-.615-10.437-1.662-15.672-1.354-7.075.417-22.054 1.876-26.783 3.853z"}),d("path",{d:"M50.188 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM50.277 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM50.277 73.799c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0z"}),d("path",{d:"M89.909 32.738c2.252.536 2.252 5.927 0 6.463-2.252.535-24.934.535-27.186 0-2.252-.536-2.252-5.927 0-6.463 2.252-.535 24.934-.535 27.186 0zM89.998 46.846c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0zM89.998 60.037c2.252.535 2.252 5.927 0 6.462-2.252.535-24.934.535-27.186 0-2.252-.535-2.252-5.927 0-6.462 2.252-.535 24.934-.535 27.186 0z"})):"layout"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.719 6.238c8.362 8.362 8.362 92.208 0 100.57-8.362 8.287-92.208 8.287-100.495 0-8.362-8.362-8.362-92.208 0-100.57 8.287-8.286 92.133-8.286 100.495 0zm-9.417 9.417c6.78 6.78 6.78 74.957 0 81.737-6.78 6.78-74.956 6.78-81.661 0-6.78-6.78-6.78-74.957 0-81.737 6.705-6.78 74.881-6.78 81.661 0z"}),d("path",{d:"M93.988 48.877c.602 17.477-.754 37.893-3.993 41.132-3.164 3.164-22.75 4.52-40.002 4.068v-45.2h43.995zm-75.108 0h23.58v44.899c-9.718-.603-17.553-1.808-19.512-3.767-3.24-3.24-4.595-23.655-4.068-41.132zm.377-7.533c.678-9.19 1.883-16.498 3.691-18.306 5.575-5.575 61.472-5.575 67.047 0 1.808 1.808 3.013 9.115 3.691 18.306h-74.43z"})):"shapes"===t?d("svg",{width:20,height:20,viewBox:"0 0 113 113",fillRule:"evenodd"},d("path",{d:"M106.756,6.244C115.081,14.571 115.081,98.429 106.756,106.756C98.429,115.081 14.571,115.081 6.244,106.756C-2.081,98.429 -2.081,14.571 6.244,6.244C14.571,-2.081 98.429,-2.081 106.756,6.244ZM67.875,88.052C67.875,86.977 67.003,86.105 65.928,86.105L47.072,86.105C45.997,86.105 45.125,86.977 45.125,88.052L45.125,91.948C45.125,93.023 45.997,93.896 47.072,93.896L65.928,93.896C67.003,93.896 67.875,93.023 67.875,91.948L67.875,88.052ZM57.899,31.409L59.305,31.409C60.853,31.409 62.11,30.152 62.11,28.604L62.11,28.089L73.263,57.543C73.757,58.333 73.731,59.161 73.731,59.403C73.729,62.659 65.231,69.414 65.375,83.611L47.625,83.611C47.769,69.414 39.271,62.659 39.269,59.403C39.269,59.161 39.243,58.333 39.737,57.543L50.89,28.089L50.89,28.604C50.89,30.152 52.147,31.409 53.695,31.409L55.101,31.409C55.111,35.738 55.142,50.367 55.098,54.109C55.093,54.494 54.907,54.988 54.68,55.45C52.915,56.169 51.669,57.903 51.669,59.925C51.669,62.592 53.834,64.756 56.5,64.756C59.166,64.756 61.331,62.592 61.331,59.925C61.331,57.903 60.085,56.169 58.32,55.45C58.093,54.988 57.907,54.494 57.902,54.109C57.858,50.367 57.889,35.738 57.899,31.409ZM52.227,19.451L52.227,18.881C52.227,17.702 53.185,16.745 54.364,16.745L58.636,16.745C59.815,16.745 60.773,17.702 60.773,18.881L60.773,19.451L88.831,19.451C89.457,17.867 91.002,16.745 92.807,16.745C95.165,16.745 97.08,18.66 97.08,21.018C97.08,23.376 95.165,25.29 92.807,25.29C91.03,25.29 89.505,24.203 88.861,22.658L71.798,22.658C83.83,28.003 92.531,39.501 93.898,53.148L94.93,53.148C96.109,53.148 97.067,54.105 97.067,55.284L97.067,59.557C97.067,60.736 96.109,61.693 94.93,61.693L90.657,61.693C89.478,61.693 88.521,60.736 88.521,59.557L88.521,55.284C88.521,54.105 89.478,53.148 90.657,53.148L90.922,53.148C89.19,37.24 76.627,24.564 60.773,22.659L60.773,23.154C60.773,24.333 59.815,25.29 58.636,25.29L54.364,25.29C53.185,25.29 52.227,24.333 52.227,23.154L52.227,22.688C36.484,24.689 24.036,37.318 22.312,53.148L22.329,53.148C23.508,53.148 24.466,54.105 24.466,55.284L24.466,59.557C24.466,60.736 23.508,61.693 22.329,61.693L18.056,61.693C16.877,61.693 15.92,60.736 15.92,59.557L15.92,55.284C15.92,54.105 16.877,53.148 18.056,53.148L19.336,53.148C20.703,39.501 29.405,28.003 41.437,22.658L24.139,22.658C23.495,24.203 21.97,25.29 20.193,25.29C17.835,25.29 15.92,23.376 15.92,21.018C15.92,18.66 17.835,16.745 20.193,16.745C21.998,16.745 23.543,17.867 24.169,19.451L52.227,19.451Z"})):"wrench"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M16.68 9.77c-1.34 1.34-3.3 1.67-4.95.99l-5.41 6.52c-.99.99-2.59.99-3.58 0s-.99-2.59 0-3.57l6.52-5.42c-.68-1.65-.35-3.61.99-4.95 1.28-1.28 3.12-1.62 4.72-1.06l-2.89 2.89 2.82 2.82 2.86-2.87c.53 1.58.18 3.39-1.08 4.65zM3.81 16.21c.4.39 1.04.39 1.43 0 .4-.4.4-1.04 0-1.43-.39-.4-1.03-.4-1.43 0-.39.39-.39 1.03 0 1.43z"}))):"x"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M14.95 6.46L11.41 10l3.54 3.54-1.41 1.41L10 11.42l-3.53 3.53-1.42-1.42L8.58 10 5.05 6.47l1.42-1.42L10 8.58l3.54-3.53z"}))):"ellipsis"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))):"insert"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,e.createElement)("rect",{x:"0",fill:"none",width:"20",height:"20"}),(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"}))):"reset"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 50 50"},(0,e.createElement)("path",{d:"M25 38c-5.1 0-9.7-3-11.8-7.6l1.8-.8c1.8 3.9 5.7 6.4 10 6.4 6.1 0 11-4.9 11-11s-4.9-11-11-11c-4.6 0-8.5 2.8-10.1 7.3l-1.9-.7c1.9-5.2 6.6-8.6 12-8.6 7.2 0 13 5.8 13 13s-5.8 13-13 13z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M20 22h-8v-8h2v6h6z",fill:"currentColor"})):"dynamic"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 921 921",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("path",{d:"M869.447 50.856c67.809 67.817 67.809 750.774 0 818.59-67.817 67.807-750.774 67.807-818.591 0-67.808-67.816-67.808-750.773 0-818.59 67.817-67.808 750.774-67.808 818.591 0Zm-395.295 685.52h3.579c9.702 0 17.579 7.877 17.579 17.579v3.42H723.3c5.451-12.361 17.818-21 32.187-21 19.405 0 35.159 15.755 35.159 35.159 0 19.405-15.754 35.159-35.159 35.159-14.491 0-26.947-8.786-32.325-21.317H495.31v3.738c0 9.702-7.877 17.579-17.579 17.579h-35.159c-9.702 0-17.579-7.877-17.579-17.58v-3.737H197.141c-5.378 12.53-17.834 21.317-32.325 21.317-19.405 0-35.159-15.754-35.159-35.16 0-19.403 15.754-35.157 35.159-35.157 14.369 0 26.736 8.638 32.187 21h227.99v-3.421c0-9.702 7.877-17.58 17.579-17.58h3.58V609.535h28v126.842ZM129.657 414.193c0 29.527 148.09 53.5 330.495 53.5 182.404 0 330.494-23.973 330.494-53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94Zm0-134.5c0 29.527 148.09 53.5 330.495 53.5 182.404 0 330.494-23.973 330.494-53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94Zm.002-134.673c.591-29.45 148.453-53.327 330.493-53.327 182.404 0 330.494 23.973 330.494 53.5v94c0 29.527-148.09 53.5-330.494 53.5-182.405 0-330.495-23.973-330.495-53.5v-94l.002-.173Z"})):"trash"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",style:{fill:"none"},stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2M10 11v6M14 11v6"})):"query-params"===t?(0,e.createElement)("svg",{viewBox:"0 0 2876 2876",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},(0,e.createElement)("path",{d:"M2717.022 158.925c211.903 211.928 211.903 2346.168 0 2558.097-211.928 211.893-2346.169 211.893-2558.097 0-211.9-211.929-211.9-2346.17 0-2558.097 211.928-211.9 2346.169-211.9 2558.097 0ZM1786.4 1975.975c-155.978 116.55-349.419 185.565-558.85 185.565-515.969 0-934.872-418.9-934.872-934.872 0-515.968 418.903-934.868 934.872-934.868 515.969 0 934.872 418.9 934.872 934.868 0 211.963-70.694 407.541-189.725 564.372l508.869 508.87c25.609 25.608 25.609 67.196 0 92.805l-92.81 92.81c-25.61 25.61-67.197 25.61-92.806 0l-509.55-509.55ZM1227.55 529.253c384.916 0 697.419 312.5 697.419 697.415 0 384.916-312.503 697.42-697.419 697.42s-697.419-312.504-697.419-697.42c0-384.915 312.503-697.415 697.419-697.415Zm-28.434 1248.965c-43.153 0-77.044-11.55-101.666-34.65-24.625-23.1-36.934-54.703-36.934-94.812 0-40.616 12.309-72.472 36.934-95.572 24.622-23.1 58.513-34.65 101.666-34.65s76.915 11.55 101.284 34.65c24.369 23.1 36.553 54.956 36.553 95.572 0 40.11-12.184 71.712-36.553 94.812-24.369 23.1-58.131 34.65-101.284 34.65Zm-346.504-811.04c1.016-47.216 9.9-90.497 26.657-129.844 16.753-39.347 40.868-73.11 72.347-101.284 31.475-28.178 69.934-50.138 115.371-65.875 45.438-15.738 97.35-23.607 155.735-23.607 54.325 0 103.697 7.235 148.122 21.704 44.422 14.468 82.5 34.778 114.231 60.921 31.731 26.147 56.225 57.372 73.487 93.672 17.263 36.3 25.894 76.535 25.894 120.703 0 57.37-13.71 106.616-41.125 147.741-27.415 41.122-68.031 77.675-121.847 109.66-25.384 14.724-46.325 28.306-62.825 40.743-16.5 12.438-29.7 25.131-39.6 38.078-9.9 12.944-16.88 26.653-20.943 41.122-4.063 14.469-6.094 30.844-6.094 49.119v40.362h-201.806l-1.525-41.884c-2.538-30.462-1.775-57.878 2.284-82.247 4.063-24.369 11.678-46.581 22.847-66.634 11.169-20.053 26.019-38.46 44.55-55.213s40.997-32.747 67.397-47.978c24.369-14.722 44.803-28.303 61.303-40.74 16.503-12.438 29.703-25.004 39.603-37.697 9.9-12.694 16.878-26.02 20.94-39.982 4.063-13.962 6.094-29.828 6.094-47.596 0-17.77-3.428-34.016-10.28-48.738-6.854-14.722-16.629-27.416-29.32-38.078-12.693-10.66-27.925-19.038-45.693-25.131-17.77-6.09-37.57-9.138-59.4-9.138-44.17 0-79.582 12.438-106.235 37.316-26.656 24.878-41.25 58.384-43.79 100.525H852.612Z"})):"caption"===t?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 32 32"},(0,e.createElement)("path",{fill:"currentColor",d:"M11.5 13C10.24 13 9 14.213 9 16s1.24 3 2.5 3a2.17 2.17 0 0 0 1.274-.421 1 1 0 1 1 1.164 1.626A4.17 4.17 0 0 1 11.5 21C8.893 21 7 18.632 7 16s1.893-5 4.5-5c.95 0 1.822.326 2.536.867a1 1 0 1 1-1.208 1.594A2.183 2.183 0 0 0 11.5 13Zm7.5 3c0-1.787 1.24-3 2.5-3 .479 0 .934.162 1.328.46a1 1 0 0 0 1.208-1.593A4.182 4.182 0 0 0 21.5 11c-2.607 0-4.5 2.368-4.5 5s1.893 5 4.5 5a4.17 4.17 0 0 0 2.438-.795 1 1 0 1 0-1.164-1.626A2.172 2.172 0 0 1 21.5 19c-1.26 0-2.5-1.213-2.5-3ZM2 8.5A4.5 4.5 0 0 1 6.5 4h19A4.5 4.5 0 0 1 30 8.5v15a4.5 4.5 0 0 1-4.5 4.5h-19A4.5 4.5 0 0 1 2 23.5v-15ZM6.5 6A2.5 2.5 0 0 0 4 8.5v15A2.5 2.5 0 0 0 6.5 26h19a2.5 2.5 0 0 0 2.5-2.5v-15A2.5 2.5 0 0 0 25.5 6h-19Z"})):"add-pagination"===t?(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M18 8.2h-5.2V3h-1.6v5.2H6v1.6h5.2V15h1.6V9.8H18V8.2ZM8.5 17.5h-3a1.5 1.5 0 0 0 0 3h3a1.5 1.5 0 0 0 0-3ZM15 19a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0ZM20 19a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0Z",fill:"#000"})):void 0}var p=t=>{let{uniqueId:a,clientId:o}=t;const{insertBlocks:s}=(0,l.useDispatch)("core/block-editor");return(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(n.ToolbarGroup,null,(0,e.createElement)(n.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:b("addContainer"),label:(0,i.__)("Add Grid Item","generateblocks"),onClick:()=>{s((0,g.createBlock)("generateblocks/container",{isGrid:!0,gridId:a,paddingTop:generateBlocksStyling.container.gridItemPaddingTop||"",paddingRight:generateBlocksStyling.container.gridItemPaddingRight||"",paddingBottom:generateBlocksStyling.container.gridItemPaddingBottom||"",paddingLeft:generateBlocksStyling.container.gridItemPaddingLeft||"",width:50,widthMobile:100}),void 0,o)},showTooltip:!0})))},m=window.wp.hooks;class f extends e.Component{render(){const{name:e,children:t}=this.props;return(0,m.applyFilters)(e,t||"",this.props)}}var h={data:new Map,get(e,t){try{return this.data.has(e)?this.data.get(e):"undefined"===(a=localStorage.getItem(e))?void 0:JSON.parse(null!=a?a:"")}catch(e){return t}var a},set(e,t){try{localStorage.setItem(e,JSON.stringify(t)),this.data.delete(e)}catch(a){this.data.set(e,t)}},remove(e){this.data.delete(e),localStorage.removeItem(e)}},k=window.ReactDOM,v=window.React,y=a.n(v);const w=[];var _=function(e,t){return"undefined"==typeof window?[null==t?void 0:t.defaultValue,()=>{},{isPersistent:!0,removeItem:()=>{}}]:function(e,t){const a=(0,v.useRef)(!0),l=(0,v.useRef)(null==t?void 0:t.defaultValue).current,[r,n]=(0,v.useReducer)((e=>e+1),0),i=(0,v.useCallback)((t=>{const a="function"==typeof t?t(h.get(e,l)):t;h.set(e,a),(0,k.unstable_batchedUpdates)((()=>{for(const t of w)t.key===e&&t.forceUpdate()}))}),[e,l]);(0,v.useEffect)((()=>{const t=t=>{t.storageArea===localStorage&&t.key===e&&n()};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)}),[e]),(0,v.useEffect)((()=>{const t={key:e,forceUpdate:n};return w.push(t),()=>{w.splice(w.indexOf(t),1)}}),[e]);const o=!0===(0,v.useRef)(null==t?void 0:t.ssr).current&&a.current;return o&&(h.data.has(e)||l!==h.get(e,l))&&(n(),a.current=!1),void 0===l||h.data.has(e)||null!==localStorage.getItem(e)||h.set(e,l),(0,v.useMemo)((()=>[o?l:h.get(e,l),i,{isPersistent:o||!h.data.has(e),removeItem(){h.remove(e);for(const t of w)t.key===e&&t.forceUpdate()}}]),[r,e])}(e,t)};function C(t){const{title:a=!1,initialOpen:l=!1,icon:r,className:i,id:o,state:s,showPanel:c=!0,children:u}=t,[g,d]=_("generateblocksPanels",{ssr:!0,defaultValue:{}});if(!(0,m.applyFilters)("generateblocks.editor.showPanel",c,o,t))return null;let b=!0;return""===u&&(b=!1),"object"==typeof u&&(b=Object.values(u).some((e=>null!==e&&!1!==e&&""!==e))),b?(0,e.createElement)(f,{name:"generateblocks.panel."+o,props:t,state:s},a?(0,e.createElement)(n.PanelBody,{title:a,initialOpen:void 0!==g[o]?g[o]:l,icon:r,className:i,onToggle:()=>{const e=g[o]||void 0===g[o]&&l;d({...g,[o]:!e})}},(0,m.applyFilters)("generateblocks.editor.panelContents",u,o,t)):(0,e.createElement)(n.PanelBody,null,(0,m.applyFilters)("generateblocks.editor.panelContents",u,o,t))):null}var T=window.wp.primitives,E=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));class x extends e.Component{render(){const{label:t,value:a,onClick:l,units:r,id:o,singleOption:s=!1}=this.props,c=s?[a]:r;return(0,e.createElement)("div",{className:"components-gblocks-units-control-header__units"},(0,e.createElement)("div",{className:"components-gblocks-units-control-label__units"},o?(0,e.createElement)("label",{htmlFor:o},t):t),(0,e.createElement)("div",{className:"components-gblocks-control__units"},(0,e.createElement)(n.ButtonGroup,{className:"components-gblocks-control-buttons__units","aria-label":(0,i.__)("Select Units","generateblocks")},c.map((t=>{let r=t;return"px"===t&&(r=(0,i._x)("Pixel","A size unit for CSS markup","generateblocks")),"em"===t&&(r=(0,i._x)("Em","A size unit for CSS markup","generateblocks")),"%"===t&&(r=(0,i._x)("Percentage","A size unit for CSS markup","generateblocks")),"deg"===t&&(r=(0,i._x)("Degree","A size unit for CSS markup","generateblocks")),(0,e.createElement)(n.Tooltip
2
+ /* translators: Unit type (px, em, %) */,{text:(0,i.sprintf)((0,i.__)("%s Units","generateblocks"),r),key:t},(0,e.createElement)(n.Button,{key:t,className:"components-gblocks-control-button__units--"+t,isSmall:!0,isPrimary:a===t,"aria-pressed":a===t
3
+ /* translators: %s: values associated with CSS syntax, 'Pixel', 'Em', 'Percentage' */,"aria-label":(0,i.sprintf)((0,i.__)("%s Units","generateblocks"),r),onClick:()=>l(t)},t))})))))}}function S(e){return e||0===e}function B(e,t,a,l){let r=t[e=e.replace("Tablet","").replace("Mobile","")];return"Mobile"===a&&t[e+"Tablet"]&&(r=t[e+"Tablet"]),""!==r&&!1!==r||(r=l),r}function M(t){const{label:a,attributeName:l,attributes:r,setAttributes:o,units:s=[],unit:c="px",device:u,presets:g=[],min:d=0,max:b,step:p,id:f=l,defaultPlaceholder:h=""}=t,[k,v]=(0,e.useState)(!1),[y,w]=_("generateblocksCustomInputs",{ssr:!0,defaultValue:[]}),C={value:l,unit:l+"Unit"};u&&"Desktop"!==u&&(C.value+=u);const T=(0,m.applyFilters)("generateblocns.editor.numberPresets",g,t),M=T.length>0?T[0].data:[],D=T.length>0?T[0].unit:"px",R=M.length>0&&"object"==typeof M[0]?M.find((e=>e.value===r[C.value])):M.includes(r[C.value]),z="Desktop"!==u&&B(C.value,r,u,""),L=0===T.length||!!S(r[C.value])&&!R||z||k||y.some((e=>e.includes(l)));return(0,e.createElement)(n.BaseControl,{label:0===s.length?a:null,id:f,className:"gblocks-number-component"},s.length>0&&(0,e.createElement)(x,{label:a,id:f,value:r[C.unit]||c,units:s,singleOption:!L,onClick:e=>(void 0!==r[C.unit]&&o({[C.unit]:e}),!1)}),!L&&(0,e.createElement)(n.ButtonGroup,{className:"gblocks-component-number-presets"},M.map(((t,a)=>{const l="object"==typeof t?t.value:t,i="object"==typeof t?t.label:t;return(0,e.createElement)(n.Button,{key:a,isPrimary:l===r[C.value]||l===h&&!S(r[C.value]),onClick:()=>{r[C.value]!==l?o({[C.value]:l,[C.unit]:D}):o({[C.value]:""})}},i)})),(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Custom","generateblocks")},(0,e.createElement)(n.Button,{icon:E,onClick:()=>{v(!0),w([...y,l])}}))),L&&(0,e.createElement)("div",{className:"gblocks-number-component__input"},(0,e.createElement)(n.TextControl,{type:"number",value:S(r[C.value])?r[C.value]:"",placeholder:B(C.value,r,u,h),id:f,min:d,max:b,step:p,autoComplete:"off",onChange:e=>{d>=0&&(e=e.toString().replace(/-/g,"")),o({[C.value]:e})},onBlur:()=>{""!==r[C.value]&&!1!==r[C.value]&&o({[C.value]:parseFloat(r[C.value])})},onClick:e=>{e.currentTarget.focus()}}),T.length>0&&(R||!S(r[C.value]))&&!z&&(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Presets","generateblocks")},(0,e.createElement)(n.Button,{icon:E,onClick:()=>{v(!1),o({[C.unit]:D}),w(y.filter((e=>e!==l)))}}))))}var D=a=>{const{attributes:l,state:o,deviceType:s,setAttributes:c}=a,{verticalAlignment:u,verticalAlignmentTablet:g,verticalAlignmentMobile:d,horizontalAlignment:p,horizontalAlignmentTablet:f,horizontalAlignmentMobile:h,isQueryLoop:k}=l;return(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(C,t({},a,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!k,icon:b("layout"),className:"gblocks-panel-label",id:"gridLayout",state:o}),(0,e.createElement)(M,t({},a,{label:(0,i.__)("Horizontal Gap","generateblocks"),attributeName:"horizontalGap",unit:"px",units:["px"],device:s,presets:[{unit:"px",data:[20,40,60,80]}]})),(0,e.createElement)(M,t({},a,{label:(0,i.__)("Vertical Gap","generateblocks"),attributeName:"verticalGap",unit:"px",units:["px"],device:s,presets:[{unit:"px",data:[20,40,60,80]}]})),"Desktop"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:u,help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{c({verticalAlignment:e})}}),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:p,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{c({horizontalAlignment:e})}})),"Tablet"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:g,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{c({verticalAlignmentTablet:e})}}),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:f,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{c({horizontalAlignmentTablet:e})}})),"Mobile"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid items. Removes same height columns and overrides grid item content alignment.","generateblocks"),value:d,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{c({verticalAlignmentMobile:e})}}),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Horizontal Alignment","generateblocks"),value:h,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Left","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Right","generateblocks"),value:"flex-end"}],onChange:e=>{c({horizontalAlignmentMobile:e})}})),(0,m.applyFilters)("generateblocks.editor.controls","","gridLayout",a,o)))};const R=/[\s#]/g;var z=t=>{let{anchor:a,setAttributes:l}=t;return(0,e.createElement)(n.TextControl,{label:(0,i.__)("HTML Anchor","generateblocks"),help:(0,i.__)("Anchors lets you link directly to a section on a page.","generateblocks"),value:a||"",onChange:e=>{const t=e.replace(R,"-");l({anchor:t})}})},L=t=>(0,e.createElement)(r.InspectorAdvancedControls,null,(0,e.createElement)(z,t));function O(e){let t="";for(const[a,l]of Object.entries(e)){if(l.length<1)continue;let e=a+"{",r=0;for(const[t,a]of Object.entries(l))for(const[t,l]of Object.entries(a))(l||0===l)&&(r++,e+=t+": "+l+";");e+="}",r>0&&(t+=e)}return t}function I(e,t){return!(!e&&0!==e)&&e+t}class N extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGap:l,verticalGap:r,verticalAlignment:n,horizontalAlignment:i,isQueryLoop:o}=t;let s=[];const c=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",u=o?c+" > .block-editor-inner-blocks":c+" > .gb-grid-column";return s[c]=[{"align-items":n,"justify-content":i,"margin-left":l||0===l?"-"+l+"px":null}],s[u]=[{"padding-left":I(l,"px"),"margin-bottom":I(r,"px")}],s=(0,m.applyFilters)("generateblocks.editor.mainCSS",s,this.props,"grid"),(0,e.createElement)("style",null,O(s))}}class A extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"grid"),(0,e.createElement)("style",null,O(t))}}class F extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGapTablet:l,verticalGapTablet:r,verticalAlignmentTablet:n,horizontalAlignmentTablet:i,isQueryLoop:o}=t;let s=[];const c=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",u=o?c+" > .block-editor-inner-blocks":c+" > .gb-grid-column";return s[c]=[{"align-items":"inherit"!==n?n:null,"justify-content":"inherit"!==i?i:null,"margin-left":l||0===l?"-"+l+"px":null}],s[u]=[{"padding-left":I(l,"px"),"margin-bottom":r||0===r?I(r,"px"):null}],s=(0,m.applyFilters)("generateblocks.editor.tabletCSS",s,this.props,"grid"),(0,e.createElement)("style",null,O(s))}}class P extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"grid"),(0,e.createElement)("style",null,O(t))}}class H extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,horizontalGapMobile:l,verticalGapMobile:r,verticalAlignmentMobile:n,horizontalAlignmentMobile:i,isQueryLoop:o}=t;let s=[];const c=o?".gb-post-template-"+a+" > .gb-post-template-wrapper":".gb-grid-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout",u=o?c+" > .block-editor-inner-blocks":c+" > .gb-grid-column";return s[c]=[{"align-items":"inherit"!==n?n:null,"justify-content":"inherit"!==i?i:null,"margin-left":l||0===l?"-"+l+"px":null}],s[u]=[{"padding-left":I(l,"px"),"margin-bottom":r||0===r?I(r,"px"):null}],s=(0,m.applyFilters)("generateblocks.editor.mobileCSS",s,this.props,"grid"),(0,e.createElement)("style",null,O(s))}}var V=window.lodash,U=a.n(V);function G(e,t){return e.deviceType===t.deviceType&&e.clientId===t.clientId&&(a=e.attributes,l=t.attributes,Object.keys(a).every((e=>(0,V.isEqual)(a[e],l[e]))));var a,l}var j=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:r=!1}=t?.attributes;return r?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(N,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(A,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(F,t),"Tablet"===a&&(0,e.createElement)(P,t),"Mobile"===a&&(0,e.createElement)(H,t)))}),G),q=window.wp.compose,W=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop";const[a,r]=_("generateblocksDeviceType",{ssr:!0,defaultValue:t});if(!(0,l.dispatch)("core/edit-post"))return[a,e=>{r(e)}];const{__experimentalSetPreviewDeviceType:n=(()=>{})}=(0,l.useDispatch)("core/edit-post"),i=(0,l.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t=(()=>!1)}=e("core/edit-post");return t()}),[]);(0,e.useEffect)((()=>{r(i)}),[i]);const o=e=>{generateBlocksInfo&&generateBlocksInfo.syncResponsivePreviews&&n(e),r(e)};return[a,o]},$=e=>{const t=(0,l.useSelect)((t=>t("core/block-editor").getBlock(e)));return t?t.innerBlocks.length:0},Z=window.wp.coreData,K=()=>(0,l.useSelect)((e=>{const{getTaxonomies:t}=e(Z.store);return t({per_page:-1})||[]}),[]);const Q=e=>e.reduce(((e,t)=>{if(t.name&&t.name.includes("generateblocks")&&t.attributes&&t.attributes.uniqueId&&(e.uniqueIds.push(t.attributes.uniqueId),e.clientIds.push(t.clientId)),t.innerBlocks){const{uniqueIds:a,clientIds:l}=Q(t.innerBlocks);e.uniqueIds=e.uniqueIds.concat(a),e.clientIds=e.clientIds.concat(l)}return e}),{uniqueIds:[],clientIds:[]});var Y=t=>a=>{const{clientId:n,attributes:i}=a,{updateBlockAttributes:o}=(0,l.useDispatch)(r.store);return(0,e.useEffect)((()=>{const{uniqueIds:e,clientIds:t}=Q(wp.data.select("core/block-editor").getBlocks());if(!i.uniqueId||(a=e,l=i.uniqueId,r=t.indexOf(n),a.filter((e=>e===l)).length>1&&r===a.lastIndexOf(l))){const e=(e=>e.substr(2,9).replace("-",""))(n);o(n,{uniqueId:e})}var a,l,r}),[n]),(0,e.createElement)(t,a)};function J(e){return""===e.uniqueId}function X(e,t){return!e||e<t}const ee=[{name:"generateblocks/button",id:"buttonDocumentation",url:"https://docs.generateblocks.com/collection/buttons/"},{name:"generateblocks/button-container",id:"buttonContainerDocumentation",url:"https://docs.generateblocks.com/collection/buttons/"},{name:"generateblocks/container",id:"containerDocumentation",url:"https://docs.generateblocks.com/collection/container/"},{name:"generateblocks/grid",id:"gridDocumentation",url:"https://docs.generateblocks.com/collection/grid/"},{name:"generateblocks/headline",id:"headlineDocumentation",url:"https://docs.generateblocks.com/collection/headline/"},{name:"generateblocks/image",id:"imageDocumentation",url:"https://docs.generateblocks.com/collection/image/"}],te=(0,q.createHigherOrderComponent)((a=>l=>{const{name:n,state:o}=l,s=ee.find((e=>n===e.name));return s&&0!==s.length?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a,l),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(C,t({},l,{title:(0,i.__)("Documentation","generateblocks"),icon:b("documentation"),initialOpen:!1,className:"gblocks-panel-label",id:s.id,state:o}),(0,e.createElement)("p",null,(0,i.__)("Need help with this block?","generateblocks")),(0,e.createElement)("a",{href:s.url,target:"_blank",rel:"noreferrer noopener"},(0,i.__)("Visit our documentation","generateblocks")),(0,m.applyFilters)("generateblocks.editor.controls","",s.id,l,o)))):(0,e.createElement)(a,l)}),"withDocumentation");(0,m.addFilter)("editor.BlockEdit","generateblocks/with-documentation",te,99);var ae=function(t){let{icon:a,size:l=24,...r}=t;return(0,e.cloneElement)(a,{width:l,height:l,...r})},le=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),re=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"})),ne=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}));class ie extends e.Component{render(){const{onClick:t,selectedDevice:a}=this.props,l=document.querySelector(".edit-post-sidebar .edit-post-sidebar__panel-tabs"),r=l?l.offsetHeight:0;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"gb-responsive-tabs",style:{top:r+"px"}},(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Show options for all devices","generateblocks")},(0,e.createElement)(n.Button,{isPressed:"Desktop"===a,onClick:()=>{t("Desktop")}},(0,e.createElement)(ae,{icon:le}))),(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Show options for tablet devices","generateblocks")},(0,e.createElement)(n.Button,{isPressed:"Tablet"===a,onClick:()=>{t("Tablet")}},(0,e.createElement)(ae,{icon:re}))),(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Show options for mobile devices","generateblocks")},(0,e.createElement)(n.Button,{isPressed:"Mobile"===a,onClick:()=>{t("Mobile")}},(0,e.createElement)(ae,{icon:ne})))),(0,m.applyFilters)("generateblocks.editor.controls","","afterResponsiveTabs",this.props,this.state))}}const oe=(0,q.createHigherOrderComponent)((a=>l=>{const{name:n}=l;if(!(0,m.applyFilters)("generateblocks.editor.responsiveTabBlocks",["generateblocks/button","generateblocks/button-container","generateblocks/container","generateblocks/grid","generateblocks/headline","generateblocks/image"],l).includes(n))return(0,e.createElement)(a,l);const[i,o]=W("Desktop");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(ie,t({},l,{selectedDevice:i,onClick:o}))),(0,e.createElement)(a,l))}),"withResponsiveTabs");function se(e,t,a){var l=this,r=(0,v.useRef)(null),n=(0,v.useRef)(0),i=(0,v.useRef)(null),o=(0,v.useRef)([]),s=(0,v.useRef)(),c=(0,v.useRef)(),u=(0,v.useRef)(e),g=(0,v.useRef)(!0);u.current=e;var d=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var b=!!(a=a||{}).leading,p=!("trailing"in a)||!!a.trailing,m="maxWait"in a,f=m?Math.max(+a.maxWait||0,t):null;(0,v.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var h=(0,v.useMemo)((function(){var e=function(e){var t=o.current,a=s.current;return o.current=s.current=null,n.current=e,c.current=u.current.apply(a,t)},a=function(e,t){d&&cancelAnimationFrame(i.current),i.current=d?requestAnimationFrame(e):setTimeout(e,t)},h=function(e){if(!g.current)return!1;var a=e-r.current,l=e-n.current;return!r.current||a>=t||a<0||m&&l>=f},k=function(t){return i.current=null,p&&o.current?e(t):(o.current=s.current=null,c.current)},v=function(){var e=Date.now();if(h(e))return k(e);if(g.current){var l=e-r.current,i=e-n.current,o=t-l,s=m?Math.min(o,f-i):o;a(v,s)}},y=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var p=Date.now(),f=h(p);if(o.current=u,s.current=l,r.current=p,f){if(!i.current&&g.current)return n.current=r.current,a(v,t),b?e(r.current):c.current;if(m)return a(v,t),e(r.current)}return i.current||a(v,t),c.current};return y.cancel=function(){i.current&&(d?cancelAnimationFrame(i.current):clearTimeout(i.current)),n.current=0,o.current=r.current=s.current=i.current=null},y.isPending=function(){return!!i.current},y.flush=function(){return i.current?k(Date.now()):c.current},y}),[b,m,t,f,p,d]);return h}(0,m.addFilter)("editor.BlockEdit","generateblocks/with-responsive-tabs",oe,1);const ce=(0,e.memo)((function(a){let{blocks:l,contextId:n,setActiveContextId:i,isHidden:o}=a;const s=(0,r.__experimentalUseBlockPreview)({blocks:l}),c=()=>i(n),u={display:o?"none":void 0};return(0,e.createElement)("div",t({},s,{className:"block-editor-inner-blocks gb-query-loop-block-preview",tabIndex:0,role:"button",onClick:c,onKeyPress:c,style:u}))}));function ue(e){return e.map((e=>{const t=ue(e.innerBlocks),a=Object.assign({},e.attributes,{isBlockPreview:!0});return Object.assign({},e,{attributes:a,innerBlocks:t})}))}function ge(a){const{clientId:o,data:s,hasData:c,isResolvingData:u,hasResolvedData:g,templateLock:d,contextCallback:b}=a,p=(0,l.useSelect)((e=>e("core/block-editor")?.getBlocks(o)),[]),{getSelectedBlock:m}=(0,l.useSelect)(r.store),[f,h]=(0,e.useState)([]),[k,v]=(0,e.useState)();(0,e.useEffect)((()=>{h(ue(p))}),[]);const y=se((()=>{h(ue(p))}),10),w=["core/paragraph","core/heading","core/button","generateblocks/headline","generateblocks/button"];(0,e.useEffect)((()=>{const e=m();!w.includes(e?.name)||e?.attributes?.useDynamicData||e?.attributes?.dynamicContentType?h(ue(p)):y()}),[JSON.stringify(p)]);const _=(0,e.useMemo)((()=>c&&s.map((e=>b(e)))),[s,c]);return u?(0,e.createElement)(n.Spinner,null):g&&!c?(0,e.createElement)("h5",null,(0,i.__)("No results found.","generateblocks")):_&&_.map((l=>(0,e.createElement)(r.BlockContextProvider,{key:l.postId,value:l},l.postId===(k||_[0]?.postId)?(0,e.createElement)(r.InnerBlocks,t({},a,{templateLock:d})):null,(0,e.createElement)(ce,{blocks:f,contextId:l.postId,setActiveContextId:v,isHidden:l.postId===(k||_[0]?.postId)}))))}function de(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t,a]=e;return"alt"===t||(Array.isArray(a)?!!a.length:!!a)})))}function be(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=t?`${e.rest}_exclude`:e.rest;return{[a]:{terms:e.terms,include_children:e.includeChildren}}}function pe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.reduce(((e,a)=>Object.assign({},e,be(a,t))),{})}function me(t){const{clientId:a,context:r}=t,n=r["generateblocks/query"]||{},i=(0,e.useMemo)((()=>function(e){let t=function(e){const t=e.per_page?e.per_page:10,a="-1"===e.per_page||e.per_page>50?50:t;let l;"exclude"===e.stickyPosts?l=!1:"only"===e.stickyPosts&&(l=!0);const r=Object.assign({},e,{per_page:a,sticky:l});return(0,m.applyFilters)("generateblocks.editor.query-loop.normalize-parameters",r)}(e);if(Array.isArray(t.tax_query)){const e=pe(t.tax_query);t=Object.assign({},t,e,{tax_query:void 0})}if(Array.isArray(t.tax_query_exclude)){const e=pe(t.tax_query_exclude,!0);t=Object.assign({},t,e,{tax_query_exclude:void 0})}return t}(de(n))),[JSON.stringify(n)]),{data:o,isResolvingData:s,hasResolvedData:c}=(0,l.useSelect)((e=>{const{getEntityRecords:t,isResolving:a,hasFinishedResolution:l}=e(Z.store),r=["postType",n.post_type||"post",i];return{data:t(...r),isResolvingData:a("getEntityRecords",r),hasResolvedData:l("getEntityRecords",r)}}),[JSON.stringify(i)]);return(0,e.createElement)("div",{className:"gb-post-template-wrapper"},(0,e.createElement)(ge,{data:o,hasData:!(!c||!o?.length),isResolvingData:s,hasResolvedData:c,templateLock:!0,clientId:a,contextCallback:e=>({postType:e.type,postId:e.id})}))}var fe=(0,q.compose)((t=>a=>{const{attributes:l}=a,r=l.isQueryLoop?Object.assign({},a,{defaultLayout:"100",templateLock:"all",InnerBlocksRenderer:me}):a;return(0,e.createElement)(t,r)}),Y,(t=>a=>{const{attributes:l,setAttributes:r}=a;return(0,e.useEffect)((()=>{if(l.isDynamic||r({isDynamic:!0}),!J(l)&&X(l.blockVersion,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.gridContainer,t={};l.useGlobalStyle&&l.globalStyleId||S(l.horizontalGap)||(t.horizontalGap=e.horizontalGap),Object.keys(t).length>0&&r(t)}X(l.blockVersion,2)&&r({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{clientId:n,attributes:i,setAttributes:o,InnerBlocksRenderer:d=r.InnerBlocks,LayoutSelector:b=u,defaultLayout:f=!1,templateLock:h=!1,context:k}=a,[v,y]=(0,e.useState)(!1),[w,_]=W("Desktop"),C=$(n),{insertBlocks:T}=(0,l.useDispatch)("core/block-editor");(0,e.useEffect)((()=>{o({columns:C})}),[C]),(0,e.useEffect)((()=>{const e=f||v;!i.isQueryLoop&&e&&(c(e,i.uniqueId).forEach((e=>{T((0,g.createBlock)("generateblocks/container",e),void 0,a.clientId,!1)})),y(!1))}),[v,f,i.uniqueId,a.clientId,i.isQueryLoop]);let E={className:s()({"gb-grid-wrapper":!0,[`gb-grid-wrapper-${i.uniqueId}`]:!0,[`${i.className}`]:void 0!==i.className,"gb-post-template":!!i.isQueryLoop,[`gb-post-template-${i.uniqueId}`]:!!i.isQueryLoop}),id:i.anchor?i.anchor:null};E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",E,"generateblocks/grid",i);const x=(0,r.useBlockProps)(E);return(0,e.createElement)(e.Fragment,null,!i.isQueryLoop&&(i.columns>0||v)&&(0,e.createElement)(p,{uniqueId:i.uniqueId,clientId:a.clientId}),(0,e.createElement)(D,t({},a,{state:{selectedLayout:v,deviceType:w},deviceType:w,setDeviceType:_,blockDefaults:generateBlocksDefaults.gridContainer})),(0,e.createElement)(L,{anchor:i.anchor,setAttributes:o}),(0,e.createElement)(j,t({},a,{deviceType:w})),(0,e.createElement)("div",x,i.isQueryLoop||i.columns>0||v?(0,e.createElement)(d,{templateLock:h,allowedBlocks:["generateblocks/container"],renderAppender:!1,clientId:n,uniqueId:i.uniqueId,attributes:i,context:k}):(0,e.createElement)(b,{uniqueId:i.uniqueId,onClick:y,isDisabled:i?.isBlockPreview})))})),he={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},columns:{type:"number",default:""},horizontalGap:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGap},verticalGap:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGap},verticalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignment},horizontalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapTablet},verticalGapTablet:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapTablet},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentTablet},horizontalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.horizontalGapMobile},verticalGapMobile:{type:"number",default:generateBlocksDefaults.gridContainer.verticalGapMobile},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.verticalAlignmentMobile},horizontalAlignment:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignment},horizontalAlignmentTablet:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentTablet},horizontalAlignmentMobile:{type:"string",default:generateBlocksDefaults.gridContainer.horizontalAlignmentMobile},isDynamic:{type:"boolean"},blockVersion:{type:"number"},isQueryLoop:{type:"boolean",default:!1},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const ke=[{attributes:he,supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save(t){let{attributes:a}=t;const{uniqueId:l,elementId:n,cssClasses:i}=a;let o={id:n||void 0,className:s()({"gb-grid-wrapper":!0,[`gb-grid-wrapper-${l}`]:!0,[`${i}`]:""!==i})};return o=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",o,"generateblocks/grid",a),(0,e.createElement)("div",o,(0,e.createElement)(r.InnerBlocks.Content,null))}}];var ve=ke;(0,g.registerBlockType)("generateblocks/grid",{apiVersion:2,title:(0,i.__)("Grid","generateblocks"),description:(0,i.__)("Create advanced layouts with flexible grids.","generateblocks"),icon:b("grid"),category:"generateblocks",keywords:[(0,i.__)("grid"),(0,i.__)("column"),(0,i.__)("generate")],attributes:he,supports:{className:!1,html:!1},edit:fe,save:()=>(0,e.createElement)(r.InnerBlocks.Content,null),deprecated:ve});var ye=Object.assign({},he,{uniqueId:{type:"string",default:""},inheritQuery:{type:"boolean",default:!1},query:{type:"object",default:{}}}),we=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_e=Math.abs,Ce=String.fromCharCode,Te=Object.assign;function Ee(e){return e.trim()}function xe(e,t,a){return e.replace(t,a)}function Se(e,t){return e.indexOf(t)}function Be(e,t){return 0|e.charCodeAt(t)}function Me(e,t,a){return e.slice(t,a)}function De(e){return e.length}function Re(e){return e.length}function ze(e,t){return t.push(e),e}var Le=1,Oe=1,Ie=0,Ne=0,Ae=0,Fe="";function Pe(e,t,a,l,r,n,i){return{value:e,root:t,parent:a,type:l,props:r,children:n,line:Le,column:Oe,length:i,return:""}}function He(e,t){return Te(Pe("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ve(){return Ae=Ne>0?Be(Fe,--Ne):0,Oe--,10===Ae&&(Oe=1,Le--),Ae}function Ue(){return Ae=Ne<Ie?Be(Fe,Ne++):0,Oe++,10===Ae&&(Oe=1,Le++),Ae}function Ge(){return Be(Fe,Ne)}function je(){return Ne}function qe(e,t){return Me(Fe,e,t)}function We(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $e(e){return Le=Oe=1,Ie=De(Fe=e),Ne=0,[]}function Ze(e){return Fe="",e}function Ke(e){return Ee(qe(Ne-1,Je(91===e?e+2:40===e?e+1:e)))}function Qe(e){for(;(Ae=Ge())&&Ae<33;)Ue();return We(e)>2||We(Ae)>3?"":" "}function Ye(e,t){for(;--t&&Ue()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return qe(e,je()+(t<6&&32==Ge()&&32==Ue()))}function Je(e){for(;Ue();)switch(Ae){case e:return Ne;case 34:case 39:34!==e&&39!==e&&Je(Ae);break;case 40:41===e&&Je(e);break;case 92:Ue()}return Ne}function Xe(e,t){for(;Ue()&&e+Ae!==57&&(e+Ae!==84||47!==Ge()););return"/*"+qe(t,Ne-1)+"*"+Ce(47===e?e:Ue())}function et(e){for(;!We(Ge());)Ue();return qe(e,Ne)}var tt="-ms-",at="-moz-",lt="-webkit-",rt="comm",nt="rule",it="decl",ot="@keyframes";function st(e,t){for(var a="",l=Re(e),r=0;r<l;r++)a+=t(e[r],r,e,t)||"";return a}function ct(e,t,a,l){switch(e.type){case"@import":case it:return e.return=e.return||e.value;case rt:return"";case ot:return e.return=e.value+"{"+st(e.children,l)+"}";case nt:e.value=e.props.join(",")}return De(a=st(e.children,l))?e.return=e.value+"{"+a+"}":""}function ut(e,t){switch(function(e,t){return(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3)}(e,t)){case 5103:return lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+at+e+tt+e+e;case 6828:case 4268:return lt+e+tt+e+e;case 6165:return lt+e+tt+"flex-"+e+e;case 5187:return lt+e+xe(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return lt+e+tt+"flex-item-"+xe(e,/flex-|-self/,"")+e;case 4675:return lt+e+tt+"flex-line-pack"+xe(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+tt+xe(e,"shrink","negative")+e;case 5292:return lt+e+tt+xe(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+xe(e,"-grow","")+lt+e+tt+xe(e,"grow","positive")+e;case 4554:return lt+xe(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return xe(xe(xe(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return xe(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return xe(xe(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return xe(e,/(.+)-inline(.+)/,lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(De(e)-1-t>6)switch(Be(e,t+1)){case 109:if(45!==Be(e,t+4))break;case 102:return xe(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+at+(108==Be(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch")?ut(xe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Be(e,t+1))break;case 6444:switch(Be(e,De(e)-3-(~Se(e,"!important")&&10))){case 107:return xe(e,":",":"+lt)+e;case 101:return xe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(45===Be(e,14)?"inline-":"")+"box$3$1"+lt+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return lt+e+tt+xe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+tt+xe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+tt+xe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+tt+e+e}return e}function gt(e){var t=Re(e);return function(a,l,r,n){for(var i="",o=0;o<t;o++)i+=e[o](a,l,r,n)||"";return i}}function dt(e){return function(t){t.root||(t=t.return)&&e(t)}}function bt(e,t,a,l){if(e.length>-1&&!e.return)switch(e.type){case it:e.return=ut(e.value,e.length);break;case ot:return st([He(e,{value:xe(e.value,"@","@"+lt)})],l);case nt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return st([He(e,{props:[xe(t,/:(read-\w+)/,":-moz-$1")]})],l);case"::placeholder":return st([He(e,{props:[xe(t,/:(plac\w+)/,":-webkit-input-$1")]}),He(e,{props:[xe(t,/:(plac\w+)/,":-moz-$1")]}),He(e,{props:[xe(t,/:(plac\w+)/,tt+"input-$1")]})],l)}return""}))}}function pt(e){return Ze(mt("",null,null,null,[""],e=$e(e),0,[0],e))}function mt(e,t,a,l,r,n,i,o,s){for(var c=0,u=0,g=i,d=0,b=0,p=0,m=1,f=1,h=1,k=0,v="",y=r,w=n,_=l,C=v;f;)switch(p=k,k=Ue()){case 40:if(108!=p&&58==C.charCodeAt(g-1)){-1!=Se(C+=xe(Ke(k),"&","&\f"),"&\f")&&(h=-1);break}case 34:case 39:case 91:C+=Ke(k);break;case 9:case 10:case 13:case 32:C+=Qe(p);break;case 92:C+=Ye(je()-1,7);continue;case 47:switch(Ge()){case 42:case 47:ze(ht(Xe(Ue(),je()),t,a),s);break;default:C+="/"}break;case 123*m:o[c++]=De(C)*h;case 125*m:case 59:case 0:switch(k){case 0:case 125:f=0;case 59+u:b>0&&De(C)-g&&ze(b>32?kt(C+";",l,a,g-1):kt(xe(C," ","")+";",l,a,g-2),s);break;case 59:C+=";";default:if(ze(_=ft(C,t,a,c,u,r,o,v,y=[],w=[],g),n),123===k)if(0===u)mt(C,t,_,_,y,n,g,o,w);else switch(d){case 100:case 109:case 115:mt(e,_,_,l&&ze(ft(e,_,_,0,0,r,o,v,r,y=[],g),w),r,w,g,o,l?y:w);break;default:mt(C,_,_,_,[""],w,0,o,w)}}c=u=b=0,m=h=1,v=C="",g=i;break;case 58:g=1+De(C),b=p;default:if(m<1)if(123==k)--m;else if(125==k&&0==m++&&125==Ve())continue;switch(C+=Ce(k),k*m){case 38:h=u>0?1:(C+="\f",-1);break;case 44:o[c++]=(De(C)-1)*h,h=1;break;case 64:45===Ge()&&(C+=Ke(Ue())),d=Ge(),u=g=De(v=C+=et(je())),k++;break;case 45:45===p&&2==De(C)&&(m=0)}}return n}function ft(e,t,a,l,r,n,i,o,s,c,u){for(var g=r-1,d=0===r?n:[""],b=Re(d),p=0,m=0,f=0;p<l;++p)for(var h=0,k=Me(e,g+1,g=_e(m=i[p])),v=e;h<b;++h)(v=Ee(m>0?d[h]+" "+k:xe(k,/&\f/g,d[h])))&&(s[f++]=v);return Pe(e,t,a,0===r?nt:o,s,c,u)}function ht(e,t,a){return Pe(e,t,a,rt,Ce(Ae),Me(e,2,-2),0)}function kt(e,t,a,l){return Pe(e,t,a,it,Me(e,0,l),Me(e,l+1,-1),l)}var vt=function(e,t,a){for(var l=0,r=0;l=r,r=Ge(),38===l&&12===r&&(t[a]=1),!We(r);)Ue();return qe(e,Ne)},yt=new WeakMap,wt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,l=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||yt.get(a))&&!l){yt.set(e,!0);for(var r=[],n=function(e,t){return Ze(function(e,t){var a=-1,l=44;do{switch(We(l)){case 0:38===l&&12===Ge()&&(t[a]=1),e[a]+=vt(Ne-1,t,a);break;case 2:e[a]+=Ke(l);break;case 4:if(44===l){e[++a]=58===Ge()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=Ce(l)}}while(l=Ue());return e}($e(e),t))}(t,r),i=a.props,o=0,s=0;o<n.length;o++)for(var c=0;c<i.length;c++,s++)e.props[s]=r[o]?n[o].replace(/&\f/g,i[c]):i[c]+" "+n[o]}}},_t=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Ct=[bt],Tt=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var l,r,n=e.stylisPlugins||Ct,i={},o=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)i[t[a]]=!0;o.push(e)}));var s,c=[wt,_t],u=[ct,dt((function(e){s.insert(e)}))],g=gt(c.concat(n,u));r=function(e,t,a,l){s=a,st(pt(e?e+"{"+t.styles+"}":t.styles),g),l&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new we({key:t,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:r};return d.sheet.hydrate(o),d};function Et(e,t,a){var l="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):l+=a+" "})),l}var xt=function(e,t,a){var l=e.key+"-"+t.name;!1===a&&void 0===e.registered[l]&&(e.registered[l]=t.styles)},St=function(e,t,a){xt(e,t,a);var l=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+l:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}},Bt=function(e){for(var t,a=0,l=0,r=e.length;r>=4;++l,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(r){case 3:a^=(255&e.charCodeAt(l+2))<<16;case 2:a^=(255&e.charCodeAt(l+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(l)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)},Mt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Dt=/[A-Z]|^ms/g,Rt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zt=function(e){return 45===e.charCodeAt(1)},Lt=function(e){return null!=e&&"boolean"!=typeof e},Ot=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=zt(a=e)?a:a.replace(Dt,"-$&").toLowerCase()),t[e];var a}}(),It=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Rt,(function(e,t,a){return At={name:t,styles:a,next:At},t}))}return 1===Mt[e]||zt(e)||"number"!=typeof t||0===t?t:t+"px"};function Nt(e,t,a){if(null==a)return"";if(void 0!==a.__emotion_styles)return a;switch(typeof a){case"boolean":return"";case"object":if(1===a.anim)return At={name:a.name,styles:a.styles,next:At},a.name;if(void 0!==a.styles){var l=a.next;if(void 0!==l)for(;void 0!==l;)At={name:l.name,styles:l.styles,next:At},l=l.next;return a.styles+";"}return function(e,t,a){var l="";if(Array.isArray(a))for(var r=0;r<a.length;r++)l+=Nt(e,t,a[r])+";";else for(var n in a){var i=a[n];if("object"!=typeof i)null!=t&&void 0!==t[i]?l+=n+"{"+t[i]+"}":Lt(i)&&(l+=Ot(n)+":"+It(n,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var o=Nt(e,t,i);switch(n){case"animation":case"animationName":l+=Ot(n)+":"+o+";";break;default:l+=n+"{"+o+"}"}}else for(var s=0;s<i.length;s++)Lt(i[s])&&(l+=Ot(n)+":"+It(n,i[s])+";")}return l}(e,t,a);case"function":if(void 0!==e){var r=At,n=a(e);return At=r,Nt(e,t,n)}}if(null==t)return a;var i=t[a];return void 0!==i?i:a}var At,Ft=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Pt=function(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var l=!0,r="";At=void 0;var n=e[0];null==n||void 0===n.raw?(l=!1,r+=Nt(a,t,n)):r+=n[0];for(var i=1;i<e.length;i++)r+=Nt(a,t,e[i]),l&&(r+=n[i]);Ft.lastIndex=0;for(var o,s="";null!==(o=Ft.exec(r));)s+="-"+o[1];return{name:Bt(r)+s,styles:r,next:At}},Ht={}.hasOwnProperty,Vt=(0,v.createContext)("undefined"!=typeof HTMLElement?Tt({key:"css"}):null),Ut=(Vt.Provider,function(e){return(0,v.forwardRef)((function(t,a){var l=(0,v.useContext)(Vt);return e(t,l,a)}))}),Gt=(0,v.createContext)({}),jt=v.useInsertionEffect?v.useInsertionEffect:function(e){e()};function qt(e){jt(e)}var Wt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$t=function(e,t){var a={};for(var l in t)Ht.call(t,l)&&(a[l]=t[l]);return a[Wt]=e,a},Zt=function(e){var t=e.cache,a=e.serialized,l=e.isStringTag;return xt(t,a,l),qt((function(){return St(t,a,l)})),null},Kt=Ut((function(e,t,a){var l=e.css;"string"==typeof l&&void 0!==t.registered[l]&&(l=t.registered[l]);var r=e[Wt],n=[l],i="";"string"==typeof e.className?i=Et(t.registered,n,e.className):null!=e.className&&(i=e.className+" ");var o=Pt(n,void 0,(0,v.useContext)(Gt));i+=t.key+"-"+o.name;var s={};for(var c in e)Ht.call(e,c)&&"css"!==c&&c!==Wt&&(s[c]=e[c]);return s.ref=a,s.className=i,(0,v.createElement)(v.Fragment,null,(0,v.createElement)(Zt,{cache:t,serialized:o,isStringTag:"string"==typeof r}),(0,v.createElement)(r,s))}));a(679);var Qt=function(e,t){var a=arguments;if(null==t||!Ht.call(t,"css"))return v.createElement.apply(void 0,a);var l=a.length,r=new Array(l);r[0]=Kt,r[1]=$t(e,t);for(var n=2;n<l;n++)r[n]=a[n];return v.createElement.apply(null,r)};function Yt(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Pt(t)}v.useInsertionEffect?v.useInsertionEffect:v.useLayoutEffect;var Jt=function e(t){for(var a=t.length,l=0,r="";l<a;l++){var n=t[l];if(null!=n){var i=void 0;switch(typeof n){case"boolean":break;case"object":if(Array.isArray(n))i=e(n);else for(var o in i="",n)n[o]&&o&&(i&&(i+=" "),i+=o);break;default:i=n}i&&(r&&(r+=" "),r+=i)}}return r};function Xt(e,t,a){var l=[],r=Et(e,l,a);return l.length<2?a:r+t(l)}var ea=function(e){var t=e.cache,a=e.serializedArr;return qt((function(){for(var e=0;e<a.length;e++)St(t,a[e],!1)})),null},ta=Ut((function(e,t){var a=[],l=function(){for(var e=arguments.length,l=new Array(e),r=0;r<e;r++)l[r]=arguments[r];var n=Pt(l,t.registered);return a.push(n),xt(t,n,!1),t.key+"-"+n.name},r={css:l,cx:function(){for(var e=arguments.length,a=new Array(e),r=0;r<e;r++)a[r]=arguments[r];return Xt(t.registered,l,Jt(a))},theme:(0,v.useContext)(Gt)},n=e.children(r);return(0,v.createElement)(v.Fragment,null,(0,v.createElement)(ea,{cache:t,serializedArr:a}),n)}));function aa(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)a=n[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function la(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,l=new Array(t);a<t;a++)l[a]=e[a];return l}function ra(e,t){if(e){if("string"==typeof e)return la(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?la(e,t):void 0}}function na(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var l,r,n=[],_n=!0,i=!1;try{for(a=a.call(e);!(_n=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);_n=!0);}catch(e){i=!0,r=e}finally{try{_n||null==a.return||a.return()}finally{if(i)throw r}}return n}}(e,t)||ra(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ia(e){return ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ia(e)}function oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sa(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function ca(e,t,a){return t&&sa(e.prototype,t),a&&sa(e,a),e}function ua(e,t){return ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ua(e,t)}function ga(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ua(e,t)}function da(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ba(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function pa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function ma(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(a),!0).forEach((function(t){ba(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):pa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function fa(e){return fa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fa(e)}function ha(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,l=fa(e);if(t){var r=fa(this).constructor;a=Reflect.construct(l,arguments,r)}else a=l.apply(this,arguments);return ha(this,a)}}var va=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ya=function(){};function wa(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function _a(e,t,a){var l=[a];if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&l.push("".concat(wa(e,r)));return l.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ca=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===ia(e)&&null!==e?[e]:[];var t},Ta=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,ma({},aa(e,va))};function Ea(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function xa(e){return Ea(e)?window.pageYOffset:e.scrollTop}function Sa(e,t){Ea(e)?window.scrollTo(0,t):e.scrollTop=t}function Ba(e,t,a,l){return a*((e=e/l-1)*e*e+1)+t}function Ma(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ya,r=xa(e),n=t-r,i=10,o=0;function s(){var t=Ba(o+=i,r,n,a);Sa(e,t),o<a?window.requestAnimationFrame(s):l(e)}s()}function Da(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ra=!1,za={get passive(){return Ra=!0}},La="undefined"!=typeof window?window:{};La.addEventListener&&La.removeEventListener&&(La.addEventListener("p",ya,za),La.removeEventListener("p",ya,!1));var Oa=Ra;function Ia(e){return null!=e}function Na(e,t,a){return e?t:a}function Aa(e){var t=e.maxHeight,a=e.menuEl,l=e.minHeight,r=e.placement,n=e.shouldScroll,i=e.isFixedPosition,o=e.theme.spacing,s=function(e){var t=getComputedStyle(e),a="absolute"===t.position,l=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!a||"static"!==t.position)&&l.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=s.getBoundingClientRect().height,g=a.getBoundingClientRect(),d=g.bottom,b=g.height,p=g.top,m=a.offsetParent.getBoundingClientRect().top,f=i?window.innerHeight:function(e){return Ea(e)?window.innerHeight:e.clientHeight}(s),h=xa(s),k=parseInt(getComputedStyle(a).marginBottom,10),v=parseInt(getComputedStyle(a).marginTop,10),y=m-v,w=f-p,_=y+h,C=u-h-p,T=d-f+h+k,E=h+p-v,x=160;switch(r){case"auto":case"bottom":if(w>=b)return{placement:"bottom",maxHeight:t};if(C>=b&&!i)return n&&Ma(s,T,x),{placement:"bottom",maxHeight:t};if(!i&&C>=l||i&&w>=l)return n&&Ma(s,T,x),{placement:"bottom",maxHeight:i?w-k:C-k};if("auto"===r||i){var S=t,B=i?y:_;return B>=l&&(S=Math.min(B-k-o.controlHeight,t)),{placement:"top",maxHeight:S}}if("bottom"===r)return n&&Sa(s,T),{placement:"bottom",maxHeight:t};break;case"top":if(y>=b)return{placement:"top",maxHeight:t};if(_>=b&&!i)return n&&Ma(s,E,x),{placement:"top",maxHeight:t};if(!i&&_>=l||i&&y>=l){var M=t;return(!i&&_>=l||i&&y>=l)&&(M=i?y-v:_-v),n&&Ma(s,E,x),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}var Fa=function(e){return"auto"===e?"bottom":e},Pa=(0,v.createContext)({getPortalPlacement:null}),Ha=function(e){ga(a,e);var t=ka(a);function a(){var e;oa(this,a);for(var l=arguments.length,r=new Array(l),n=0;n<l;n++)r[n]=arguments[n];return(e=t.call.apply(t,[this].concat(r))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var a=e.props,l=a.minMenuHeight,r=a.maxMenuHeight,n=a.menuPlacement,i=a.menuPosition,o=a.menuShouldScrollIntoView,s=a.theme;if(t){var c="fixed"===i,u=Aa({maxHeight:r,menuEl:t,minHeight:l,placement:n,shouldScroll:o&&!c,isFixedPosition:c,theme:s}),g=e.context.getPortalPlacement;g&&g(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,a=e.state.placement||Fa(t);return ma(ma({},e.props),{},{placement:a,maxHeight:e.state.maxHeight})},e}return ca(a,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),a}(v.Component);Ha.contextType=Pa;var Va=function(e){var t=e.theme,a=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*a,"px ").concat(3*a,"px"),textAlign:"center"}},Ua=Va,Ga=Va,ja=function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Qt("div",t({css:n("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},l)},i),a)};ja.defaultProps={children:"No options"};var qa=function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Qt("div",t({css:n("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},l)},i),a)};qa.defaultProps={children:"Loading..."};var Wa,$a,Za,Ka=function(e){ga(l,e);var a=ka(l);function l(){var e;oa(this,l);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=a.call.apply(a,[this].concat(r))).state={placement:null},e.getPortalPlacement=function(t){var a=t.placement;a!==Fa(e.props.menuPlacement)&&e.setState({placement:a})},e}return ca(l,[{key:"render",value:function(){var e=this.props,a=e.appendTo,l=e.children,r=e.className,n=e.controlElement,i=e.cx,o=e.innerProps,s=e.menuPlacement,c=e.menuPosition,u=e.getStyles,g="fixed"===c;if(!a&&!g||!n)return null;var d=this.state.placement||Fa(s),b=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(n),p=g?0:window.pageYOffset,m=b[d]+p,f=Qt("div",t({css:u("menuPortal",{offset:m,position:c,rect:b}),className:i({"menu-portal":!0},r)},o),l);return Qt(Pa.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},a?(0,k.createPortal)(f,a):f)}}]),l}(v.Component),Qa=["size"],Ya={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ja=function(e){var a=e.size,l=aa(e,Qa);return Qt("svg",t({height:a,width:a,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ya},l))},Xa=function(e){return Qt(Ja,t({size:20},e),Qt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},el=function(e){return Qt(Ja,t({size:20},e),Qt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tl=function(e){var t=e.isFocused,a=e.theme,l=a.spacing.baseUnit,r=a.colors;return{label:"indicatorContainer",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*l,transition:"color 150ms",":hover":{color:t?r.neutral80:r.neutral40}}},al=tl,ll=tl,rl=function(){var e=Yt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Wa||($a=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Za||(Za=$a.slice(0)),Wa=Object.freeze(Object.defineProperties($a,{raw:{value:Object.freeze(Za)}})))),nl=function(e){var t=e.delay,a=e.offset;return Qt("span",{css:Yt({animation:"".concat(rl," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},il=function(e){var a=e.className,l=e.cx,r=e.getStyles,n=e.innerProps,i=e.isRtl;return Qt("div",t({css:r("loadingIndicator",e),className:l({indicator:!0,"loading-indicator":!0},a)},n),Qt(nl,{delay:0,offset:i}),Qt(nl,{delay:160,offset:!0}),Qt(nl,{delay:320,offset:!i}))};il.defaultProps={size:4};var ol=["data"],sl=["innerRef","isDisabled","isHidden","inputClassName"],cl={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ul={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ma({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},cl)},gl=function(e){return ma({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},cl)},dl=function(e){var t=e.children,a=e.innerProps;return Qt("div",a,t)},bl={ClearIndicator:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Qt("div",t({css:n("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},l)},i),a||Qt(Xa,null))},Control:function(e){var a=e.children,l=e.cx,r=e.getStyles,n=e.className,i=e.isDisabled,o=e.isFocused,s=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return Qt("div",t({ref:s,css:r("control",e),className:l({control:!0,"control--is-disabled":i,"control--is-focused":o,"control--menu-is-open":u},n)},c),a)},DropdownIndicator:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Qt("div",t({css:n("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},l)},i),a||Qt(el,null))},DownChevron:el,CrossIcon:Xa,Group:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,u=e.theme,g=e.selectProps;return Qt("div",t({css:n("group",e),className:r({group:!0},l)},s),Qt(i,t({},o,{selectProps:g,theme:u,getStyles:n,cx:r}),c),Qt("div",null,a))},GroupHeading:function(e){var a=e.getStyles,l=e.cx,r=e.className,n=Ta(e);n.data;var i=aa(n,ol);return Qt("div",t({css:a("groupHeading",e),className:l({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var a=e.children,l=e.className,r=e.cx,n=e.innerProps,i=e.getStyles;return Qt("div",t({css:i("indicatorsContainer",e),className:r({indicators:!0},l)},n),a)},IndicatorSeparator:function(e){var a=e.className,l=e.cx,r=e.getStyles,n=e.innerProps;return Qt("span",t({},n,{css:r("indicatorSeparator",e),className:l({"indicator-separator":!0},a)}))},Input:function(e){var a=e.className,l=e.cx,r=e.getStyles,n=e.value,i=Ta(e),o=i.innerRef,s=i.isDisabled,c=i.isHidden,u=i.inputClassName,g=aa(i,sl);return Qt("div",{className:l({"input-container":!0},a),css:r("input",e),"data-value":n||""},Qt("input",t({className:l({input:!0},u),ref:o,style:gl(c),disabled:s},g)))},LoadingIndicator:il,Menu:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.innerRef,o=e.innerProps;return Qt("div",t({css:n("menu",e),className:r({menu:!0},l),ref:i},o),a)},MenuList:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.innerProps,o=e.innerRef,s=e.isMulti;return Qt("div",t({css:n("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},l),ref:o},i),a)},MenuPortal:Ka,LoadingMessage:qa,NoOptionsMessage:ja,MultiValue:function(e){var t=e.children,a=e.className,l=e.components,r=e.cx,n=e.data,i=e.getStyles,o=e.innerProps,s=e.isDisabled,c=e.removeProps,u=e.selectProps,g=l.Container,d=l.Label,b=l.Remove;return Qt(ta,null,(function(l){var p=l.css,m=l.cx;return Qt(g,{data:n,innerProps:ma({className:m(p(i("multiValue",e)),r({"multi-value":!0,"multi-value--is-disabled":s},a))},o),selectProps:u},Qt(d,{data:n,innerProps:{className:m(p(i("multiValueLabel",e)),r({"multi-value__label":!0},a))},selectProps:u},t),Qt(b,{data:n,innerProps:ma({className:m(p(i("multiValueRemove",e)),r({"multi-value__remove":!0},a)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:dl,MultiValueLabel:dl,MultiValueRemove:function(e){var a=e.children,l=e.innerProps;return Qt("div",t({role:"button"},l),a||Qt(Xa,{size:14}))},Option:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.isDisabled,o=e.isFocused,s=e.isSelected,c=e.innerRef,u=e.innerProps;return Qt("div",t({css:n("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":o,"option--is-selected":s},l),ref:c,"aria-disabled":i},u),a)},Placeholder:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Qt("div",t({css:n("placeholder",e),className:r({placeholder:!0},l)},i),a)},SelectContainer:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.innerProps,o=e.isDisabled,s=e.isRtl;return Qt("div",t({css:n("container",e),className:r({"--is-disabled":o,"--is-rtl":s},l)},i),a)},SingleValue:function(e){var a=e.children,l=e.className,r=e.cx,n=e.getStyles,i=e.isDisabled,o=e.innerProps;return Qt("div",t({css:n("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},l)},o),a)},ValueContainer:function(e){var a=e.children,l=e.className,r=e.cx,n=e.innerProps,i=e.isMulti,o=e.getStyles,s=e.hasValue;return Qt("div",t({css:o("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},l)},n),a)}},pl=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ml(e){var t=e.defaultInputValue,a=void 0===t?"":t,l=e.defaultMenuIsOpen,r=void 0!==l&&l,n=e.defaultValue,i=void 0===n?null:n,o=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,g=e.onMenuClose,d=e.onMenuOpen,b=e.value,p=aa(e,pl),m=na((0,v.useState)(void 0!==o?o:a),2),f=m[0],h=m[1],k=na((0,v.useState)(void 0!==s?s:r),2),y=k[0],w=k[1],_=na((0,v.useState)(void 0!==b?b:i),2),C=_[0],T=_[1],E=(0,v.useCallback)((function(e,t){"function"==typeof c&&c(e,t),T(e)}),[c]),x=(0,v.useCallback)((function(e,t){var a;"function"==typeof u&&(a=u(e,t)),h(void 0!==a?a:e)}),[u]),S=(0,v.useCallback)((function(){"function"==typeof d&&d(),w(!0)}),[d]),B=(0,v.useCallback)((function(){"function"==typeof g&&g(),w(!1)}),[g]),M=void 0!==o?o:f,D=void 0!==s?s:y,R=void 0!==b?b:C;return ma(ma({},p),{},{inputValue:M,menuIsOpen:D,onChange:E,onInputChange:x,onMenuClose:B,onMenuOpen:S,value:R})}function fl(e){return function(e){if(Array.isArray(e))return la(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ra(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function kl(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((l=e[a])===(r=t[a])||hl(l)&&hl(r)))return!1;var l,r;return!0}for(var vl={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},yl=function(e){return Qt("span",t({css:vl},e))},wl={guidance:function(e){var t=e.isSearchable,a=e.isMulti,l=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(l?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,l=void 0===a?"":a,r=e.labels,n=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(l,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(l,n?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,l=e.options,r=e.label,n=void 0===r?"":r,i=e.selectValue,o=e.isDisabled,s=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(n," focused, ").concat(c(i,a),".");if("menu"===t){var u=o?" disabled":"",g="".concat(s?"selected":"focused").concat(u);return"option ".concat(n," ").concat(g,", ").concat(c(l,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},_l=function(e){var t=e.ariaSelection,a=e.focusedOption,l=e.focusedValue,r=e.focusableOptions,n=e.isFocused,i=e.selectValue,o=e.selectProps,s=e.id,c=o.ariaLiveMessages,u=o.getOptionLabel,g=o.inputValue,d=o.isMulti,b=o.isOptionDisabled,p=o.isSearchable,m=o.menuIsOpen,f=o.options,h=o.screenReaderStatus,k=o.tabSelectsValue,y=o["aria-label"],w=o["aria-live"],_=(0,v.useMemo)((function(){return ma(ma({},wl),c||{})}),[c]),C=(0,v.useMemo)((function(){var e,a="";if(t&&_.onChange){var l=t.option,r=t.options,n=t.removedValue,o=t.removedValues,s=t.value,c=n||l||(e=s,Array.isArray(e)?null:e),g=c?u(c):"",d=r||o||void 0,p=d?d.map(u):[],m=ma({isDisabled:c&&b(c,i),label:g,labels:p},t);a=_.onChange(m)}return a}),[t,_,b,i,u]),T=(0,v.useMemo)((function(){var e="",t=a||l,r=!!(a&&i&&i.includes(a));if(t&&_.onFocus){var n={focused:t,label:u(t),isDisabled:b(t,i),isSelected:r,options:f,context:t===a?"menu":"value",selectValue:i};e=_.onFocus(n)}return e}),[a,l,u,b,_,f,i]),E=(0,v.useMemo)((function(){var e="";if(m&&f.length&&_.onFilter){var t=h({count:r.length});e=_.onFilter({inputValue:g,resultsMessage:t})}return e}),[r,g,m,_,f,h]),x=(0,v.useMemo)((function(){var e="";if(_.guidance){var t=l?"value":m?"menu":"input";e=_.guidance({"aria-label":y,context:t,isDisabled:a&&b(a,i),isMulti:d,isSearchable:p,tabSelectsValue:k})}return e}),[y,a,l,d,b,p,m,_,i,k]),S="".concat(T," ").concat(E," ").concat(x),B=Qt(v.Fragment,null,Qt("span",{id:"aria-selection"},C),Qt("span",{id:"aria-context"},S)),M="initial-input-focus"===(null==t?void 0:t.action);return Qt(v.Fragment,null,Qt(yl,{id:s},M&&B),Qt(yl,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},n&&!M&&B))},Cl=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Tl=new RegExp("["+Cl.map((function(e){return e.letters})).join("")+"]","g"),El={},xl=0;xl<Cl.length;xl++)for(var Sl=Cl[xl],Bl=0;Bl<Sl.letters.length;Bl++)El[Sl.letters[Bl]]=Sl.base;var Ml=function(e){return e.replace(Tl,(function(e){return El[e]}))},Dl=function(e,t){var a;void 0===t&&(t=kl);var l,r=[],n=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n&&a===this&&t(i,r)||(l=e.apply(this,i),n=!0,a=this,r=i),l}}(Ml),Rl=function(e){return e.replace(/^\s+|\s+$/g,"")},zl=function(e){return"".concat(e.label," ").concat(e.value)},Ll=["innerRef"];function Ol(e){var a=e.innerRef,l=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),l=1;l<t;l++)a[l-1]=arguments[l];var r=Object.entries(e).filter((function(e){var t=na(e,1)[0];return!a.includes(t)}));return r.reduce((function(e,t){var a=na(t,2),l=a[0],r=a[1];return e[l]=r,e}),{})}(aa(e,Ll),"onExited","in","enter","exit","appear");return Qt("input",t({ref:a},l,{css:Yt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Il=["boxSizing","height","overflow","paddingRight","position"],Nl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Al(e){e.preventDefault()}function Fl(e){e.stopPropagation()}function Pl(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Hl(){return"ontouchstart"in window||navigator.maxTouchPoints}var Vl=!("undefined"==typeof window||!window.document||!window.document.createElement),Ul=0,Gl={capture:!1,passive:!1},jl=function(){return document.activeElement&&document.activeElement.blur()},ql={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Wl(e){var t=e.children,a=e.lockEnabled,l=e.captureEnabled,r=function(e){var t=e.isEnabled,a=e.onBottomArrive,l=e.onBottomLeave,r=e.onTopArrive,n=e.onTopLeave,i=(0,v.useRef)(!1),o=(0,v.useRef)(!1),s=(0,v.useRef)(0),c=(0,v.useRef)(null),u=(0,v.useCallback)((function(e,t){if(null!==c.current){var s=c.current,u=s.scrollTop,g=s.scrollHeight,d=s.clientHeight,b=c.current,p=t>0,m=g-d-u,f=!1;m>t&&i.current&&(l&&l(e),i.current=!1),p&&o.current&&(n&&n(e),o.current=!1),p&&t>m?(a&&!i.current&&a(e),b.scrollTop=g,f=!0,i.current=!0):!p&&-t>u&&(r&&!o.current&&r(e),b.scrollTop=0,f=!0,o.current=!0),f&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[a,l,r,n]),g=(0,v.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,v.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),b=(0,v.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;u(e,t)}),[u]),p=(0,v.useCallback)((function(e){if(e){var t=!!Oa&&{passive:!1};e.addEventListener("wheel",g,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",b,t)}}),[b,d,g]),m=(0,v.useCallback)((function(e){e&&(e.removeEventListener("wheel",g,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",b,!1))}),[b,d,g]);return(0,v.useEffect)((function(){if(t){var e=c.current;return p(e),function(){m(e)}}}),[t,p,m]),function(e){c.current=e}}({isEnabled:void 0===l||l,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),n=function(e){var t=e.isEnabled,a=e.accountForScrollbars,l=void 0===a||a,r=(0,v.useRef)({}),n=(0,v.useRef)(null),i=(0,v.useCallback)((function(e){if(Vl){var t=document.body,a=t&&t.style;if(l&&Il.forEach((function(e){var t=a&&a[e];r.current[e]=t})),l&&Ul<1){var n=parseInt(r.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+n||0;Object.keys(Nl).forEach((function(e){var t=Nl[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(o,"px"))}t&&Hl()&&(t.addEventListener("touchmove",Al,Gl),e&&(e.addEventListener("touchstart",Pl,Gl),e.addEventListener("touchmove",Fl,Gl))),Ul+=1}}),[l]),o=(0,v.useCallback)((function(e){if(Vl){var t=document.body,a=t&&t.style;Ul=Math.max(Ul-1,0),l&&Ul<1&&Il.forEach((function(e){var t=r.current[e];a&&(a[e]=t)})),t&&Hl()&&(t.removeEventListener("touchmove",Al,Gl),e&&(e.removeEventListener("touchstart",Pl,Gl),e.removeEventListener("touchmove",Fl,Gl)))}}),[l]);return(0,v.useEffect)((function(){if(t){var e=n.current;return i(e),function(){o(e)}}}),[t,i,o]),function(e){n.current=e}}({isEnabled:a});return Qt(v.Fragment,null,a&&Qt("div",{onClick:jl,css:ql}),t((function(e){r(e),n(e)})))}var $l=function(e){return e.label},Zl=function(e){return e.value},Kl={clearIndicator:ll,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,a=e.isFocused,l=e.theme,r=l.colors,n=l.borderRadius,i=l.spacing;return{label:"control",alignItems:"center",backgroundColor:t?r.neutral5:r.neutral0,borderColor:t?r.neutral10:a?r.primary:r.neutral20,borderRadius:n,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(r.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:a?r.primary:r.neutral30}}},dropdownIndicator:al,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,a=e.theme,l=a.spacing.baseUnit,r=a.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?r.neutral10:r.neutral20,marginBottom:2*l,marginTop:2*l,width:1}},input:function(e){var t=e.isDisabled,a=e.value,l=e.theme,r=l.spacing,n=l.colors;return ma({margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:n.neutral80,transform:a?"translateZ(0)":""},ul)},loadingIndicator:function(e){var t=e.isFocused,a=e.size,l=e.theme,r=l.colors,n=l.spacing.baseUnit;return{label:"loadingIndicator",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*n,transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Ga,menu:function(e){var t,a=e.placement,l=e.theme,r=l.borderRadius,n=l.spacing,i=l.colors;return da(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(a),"100%"),da(t,"backgroundColor",i.neutral0),da(t,"borderRadius",r),da(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),da(t,"marginBottom",n.menuGutter),da(t,"marginTop",n.menuGutter),da(t,"position","absolute"),da(t,"width","100%"),da(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,a=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:a,paddingTop:a,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,a=e.offset,l=e.position;return{left:t.left,position:l,top:a,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,a=t.spacing,l=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:l/2,display:"flex",margin:a.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,a=t.borderRadius,l=t.colors,r=e.cropWithEllipsis;return{borderRadius:a/2,color:l.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,a=t.spacing,l=t.borderRadius,r=t.colors;return{alignItems:"center",borderRadius:l/2,backgroundColor:e.isFocused?r.dangerLight:void 0,display:"flex",paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}}},noOptionsMessage:Ua,option:function(e){var t=e.isDisabled,a=e.isFocused,l=e.isSelected,r=e.theme,n=r.spacing,i=r.colors;return{label:"option",backgroundColor:l?i.primary:a?i.primary25:"transparent",color:t?i.neutral20:l?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*n.baseUnit,"px ").concat(3*n.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:l?i.primary:i.primary50}}},placeholder:function(e){var t=e.theme,a=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,a=e.theme,l=a.spacing,r=a.colors;return{label:"singleValue",color:t?r.neutral40:r.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:l.baseUnit/2,marginRight:l.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,a=e.isMulti,l=e.hasValue,r=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:a&&l&&r?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},Ql={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Yl={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Da(),captureMenuScroll:!Da(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=ma({ignoreCase:!0,ignoreAccents:!0,stringify:zl,trim:!0,matchFrom:"any"},undefined),l=a.ignoreCase,r=a.ignoreAccents,n=a.stringify,i=a.trim,o=a.matchFrom,s=i?Rl(t):t,c=i?Rl(n(e)):n(e);return l&&(s=s.toLowerCase(),c=c.toLowerCase()),r&&(s=Dl(s),c=Ml(c)),"start"===o?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:$l,getOptionValue:Zl,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Jl(e,t,a,l){return{type:"option",data:t,isDisabled:rr(e,t,a),isSelected:nr(e,t,a),label:ar(e,t),value:lr(e,t),index:l}}function Xl(e,t){return e.options.map((function(a,l){if("options"in a){var r=a.options.map((function(a,l){return Jl(e,a,t,l)})).filter((function(t){return tr(e,t)}));return r.length>0?{type:"group",data:a,options:r,index:l}:void 0}var n=Jl(e,a,t,l);return tr(e,n)?n:void 0})).filter(Ia)}function er(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,fl(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function tr(e,t){var a=e.inputValue,l=void 0===a?"":a,r=t.data,n=t.isSelected,i=t.label,o=t.value;return(!or(e)||!n)&&ir(e,{label:i,value:o,data:r},l)}var ar=function(e,t){return e.getOptionLabel(t)},lr=function(e,t){return e.getOptionValue(t)};function rr(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function nr(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var l=lr(e,t);return a.some((function(t){return lr(e,t)===l}))}function ir(e,t,a){return!e.filterOption||e.filterOption(t,a)}var or=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},sr=1,cr=function(e){ga(l,e);var a=ka(l);function l(e){var t;return oa(this,l),(t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,a){var l=t.props,r=l.onChange,n=l.name;a.name=n,t.ariaOnChange(e,a),r(e,a)},t.setValue=function(e,a,l){var r=t.props,n=r.closeMenuOnSelect,i=r.isMulti,o=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:o}),n&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:a,option:l})},t.selectOption=function(e){var a=t.props,l=a.blurInputOnSelect,r=a.isMulti,n=a.name,i=t.state.selectValue,o=r&&t.isOptionSelected(e,i),s=t.isOptionDisabled(e,i);if(o){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:n});r?t.setValue([].concat(fl(i),[e]),"select-option",e):t.setValue(e,"select-option")}l&&t.blurInput()},t.removeValue=function(e){var a=t.props.isMulti,l=t.state.selectValue,r=t.getOptionValue(e),n=l.filter((function(e){return t.getOptionValue(e)!==r})),i=Na(a,n,n[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Na(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,a=t.state.selectValue,l=a[a.length-1],r=a.slice(0,a.length-1),n=Na(e,r,r[0]||null);t.onChange(n,{action:"pop-value",removedValue:l})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,a=new Array(e),l=0;l<e;l++)a[l]=arguments[l];return _a.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return ar(t.props,e)},t.getOptionValue=function(e){return lr(t.props,e)},t.getStyles=function(e,a){var l=Kl[e](a);l.boxSizing="border-box";var r=t.props.styles[e];return r?r(l,a):l},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,ma(ma({},bl),e.components);var e},t.buildCategorizedOptions=function(){return Xl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return er(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:ma({value:e},a)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var a=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():a&&t.openMenu("first"):(a&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var a=t.props,l=a.isMulti,r=a.menuIsOpen;t.focusInput(),r?(t.setState({inputIsHiddenAfterUpdate:!l}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Ea(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var a=e.touches,l=a&&a.item(0);l&&(t.initialTouchX=l.clientX,t.initialTouchY=l.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var a=e.touches,l=a&&a.item(0);if(l){var r=Math.abs(l.clientX-t.initialTouchX),n=Math.abs(l.clientY-t.initialTouchY);t.userIsDragging=r>5||n>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var a=t.props.inputValue,l=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(l,{action:"input-change",prevInputValue:a}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var a=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:a}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return or(t.props)},t.onKeyDown=function(e){var a=t.props,l=a.isMulti,r=a.backspaceRemovesValue,n=a.escapeClearsValue,i=a.inputValue,o=a.isClearable,s=a.isDisabled,c=a.menuIsOpen,u=a.onKeyDown,g=a.tabSelectsValue,d=a.openMenuOnFocus,b=t.state,p=b.focusedOption,m=b.focusedValue,f=b.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!l||i)return;t.focusValue("previous");break;case"ArrowRight":if(!l||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(m)t.removeValue(m);else{if(!r)return;l?t.popValue():o&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!g||!p||d&&t.isOptionSelected(p,f))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):o&&n&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++sr),t.state.selectValue=Ca(e.value),t}return ca(l,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,a,l,r,n,i=this.props,o=i.isDisabled,s=i.menuIsOpen,c=this.state.isFocused;(c&&!o&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),c&&o&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,a=this.focusedOptionRef,l=t.getBoundingClientRect(),r=a.getBoundingClientRect(),n=a.offsetHeight/3,r.bottom+n>l.bottom?Sa(t,Math.min(a.offsetTop+a.clientHeight-t.offsetHeight+n,t.scrollHeight)):r.top-n<l.top&&Sa(t,Math.max(a.offsetTop-n,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,a=this.state,l=a.selectValue,r=a.isFocused,n=this.buildFocusableOptions(),i="first"===e?0:n.length-1;if(!this.props.isMulti){var o=n.indexOf(l[0]);o>-1&&(i=o)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:n[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,l=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=a.indexOf(l);l||(r=-1);var n=a.length-1,i=-1;if(a.length){switch(e){case"previous":i=0===r?0:-1===r?n:r-1;break;case"next":r>-1&&r<n&&(i=r+1)}this.setState({inputIsHidden:-1!==i,focusedValue:a[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var r=0,n=l.indexOf(a);a||(n=-1),"up"===e?r=n>0?n-1:l.length-1:"down"===e?r=(n+1)%l.length:"pageup"===e?(r=n-t)<0&&(r=0):"pagedown"===e?(r=n+t)>l.length-1&&(r=l.length-1):"last"===e&&(r=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Ql):ma(ma({},Ql),this.props.theme):Ql}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,l=this.getValue,r=this.selectOption,n=this.setValue,i=this.props,o=i.isMulti,s=i.isRtl,c=i.options;return{clearValue:e,cx:t,getStyles:a,getValue:l,hasValue:this.hasValue(),isMulti:o,isRtl:s,options:c,selectOption:r,selectProps:i,setValue:n,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return rr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return nr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ir(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:l})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,a=e.isDisabled,l=e.isSearchable,r=e.inputId,n=e.inputValue,i=e.tabIndex,o=e.form,s=e.menuIsOpen,c=this.getComponents().Input,u=this.state,g=u.inputIsHidden,d=u.ariaSelection,b=this.commonProps,p=r||this.getElementId("input"),m=ma(ma(ma({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?v.createElement(c,t({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:a,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:o,type:"text",value:n},m)):v.createElement(Ol,t({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ya,onFocus:this.onInputFocus,disabled:a,tabIndex:i,inputMode:"none",form:o,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,a=this.getComponents(),l=a.MultiValue,r=a.MultiValueContainer,n=a.MultiValueLabel,i=a.MultiValueRemove,o=a.SingleValue,s=a.Placeholder,c=this.commonProps,u=this.props,g=u.controlShouldRenderValue,d=u.isDisabled,b=u.isMulti,p=u.inputValue,m=u.placeholder,f=this.state,h=f.selectValue,k=f.focusedValue,y=f.isFocused;if(!this.hasValue()||!g)return p?null:v.createElement(s,t({},c,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(b)return h.map((function(a,o){var s=a===k,u="".concat(e.getOptionLabel(a),"-").concat(e.getOptionValue(a));return v.createElement(l,t({},c,{components:{Container:r,Label:n,Remove:i},isFocused:s,isDisabled:d,key:u,index:o,removeProps:{onClick:function(){return e.removeValue(a)},onTouchEnd:function(){return e.removeValue(a)},onMouseDown:function(e){e.preventDefault()}},data:a}),e.formatOptionLabel(a,"value"))}));if(p)return null;var w=h[0];return v.createElement(o,t({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,a=this.commonProps,l=this.props,r=l.isDisabled,n=l.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||n)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,t({},a,{innerProps:o,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,a=this.commonProps,l=this.props,r=l.isDisabled,n=l.isLoading,i=this.state.isFocused;return e&&n?v.createElement(e,t({},a,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),a=e.DropdownIndicator,l=e.IndicatorSeparator;if(!a||!l)return null;var r=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused;return v.createElement(l,t({},r,{isDisabled:n,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var a=this.commonProps,l=this.props.isDisabled,r=this.state.isFocused,n={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,t({},a,{innerProps:n,isDisabled:l,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,a=this.getComponents(),l=a.Group,r=a.GroupHeading,n=a.Menu,i=a.MenuList,o=a.MenuPortal,s=a.LoadingMessage,c=a.NoOptionsMessage,u=a.Option,g=this.commonProps,d=this.state.focusedOption,b=this.props,p=b.captureMenuScroll,m=b.inputValue,f=b.isLoading,h=b.loadingMessage,k=b.minMenuHeight,y=b.maxMenuHeight,w=b.menuIsOpen,_=b.menuPlacement,C=b.menuPosition,T=b.menuPortalTarget,E=b.menuShouldBlockScroll,x=b.menuShouldScrollIntoView,S=b.noOptionsMessage,B=b.onMenuScrollToTop,M=b.onMenuScrollToBottom;if(!w)return null;var D,R=function(a,l){var r=a.type,n=a.data,i=a.isDisabled,o=a.isSelected,s=a.label,c=a.value,b=d===n,p=i?void 0:function(){return e.onOptionHover(n)},m=i?void 0:function(){return e.selectOption(n)},f="".concat(e.getElementId("option"),"-").concat(l),h={id:f,onClick:m,onMouseMove:p,onMouseOver:p,tabIndex:-1};return v.createElement(u,t({},g,{innerProps:h,data:n,isDisabled:i,isSelected:o,key:f,label:s,type:r,value:c,isFocused:b,innerRef:b?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(a.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(a){if("group"===a.type){var n=a.data,i=a.options,o=a.index,s="".concat(e.getElementId("group"),"-").concat(o),c="".concat(s,"-heading");return v.createElement(l,t({},g,{key:s,data:n,options:i,Heading:r,headingProps:{id:c,data:a.data},label:e.formatGroupLabel(a.data)}),a.options.map((function(e){return R(e,"".concat(o,"-").concat(e.index))})))}if("option"===a.type)return R(a,"".concat(a.index))}));else if(f){var z=h({inputValue:m});if(null===z)return null;D=v.createElement(s,g,z)}else{var L=S({inputValue:m});if(null===L)return null;D=v.createElement(c,g,L)}var O={minMenuHeight:k,maxMenuHeight:y,menuPlacement:_,menuPosition:C,menuShouldScrollIntoView:x},I=v.createElement(Ha,t({},g,O),(function(a){var l=a.ref,r=a.placerProps,o=r.placement,s=r.maxHeight;return v.createElement(n,t({},g,O,{innerRef:l,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:f,placement:o}),v.createElement(Wl,{captureEnabled:p,onTopArrive:B,onBottomArrive:M,lockEnabled:E},(function(a){return v.createElement(i,t({},g,{innerRef:function(t){e.getMenuListRef(t),a(t)},isLoading:f,maxHeight:s,focusedOption:d}),D)})))}));return T||"fixed"===C?v.createElement(o,t({},g,{appendTo:T,controlElement:this.controlRef,menuPlacement:_,menuPosition:C}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,l=t.isDisabled,r=t.isMulti,n=t.name,i=this.state.selectValue;if(n&&!l){if(r){if(a){var o=i.map((function(t){return e.getOptionValue(t)})).join(a);return v.createElement("input",{name:n,type:"hidden",value:o})}var s=i.length>0?i.map((function(t,a){return v.createElement("input",{key:"i-".concat(a),name:n,type:"hidden",value:e.getOptionValue(t)})})):v.createElement("input",{name:n,type:"hidden"});return v.createElement("div",null,s)}var c=i[0]?this.getOptionValue(i[0]):"";return v.createElement("input",{name:n,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,a=this.state,l=a.ariaSelection,r=a.focusedOption,n=a.focusedValue,i=a.isFocused,o=a.selectValue,s=this.getFocusableOptions();return v.createElement(_l,t({},e,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:r,focusedValue:n,isFocused:i,selectValue:o,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),a=e.Control,l=e.IndicatorsContainer,r=e.SelectContainer,n=e.ValueContainer,i=this.props,o=i.className,s=i.id,c=i.isDisabled,u=i.menuIsOpen,g=this.state.isFocused,d=this.commonProps=this.getCommonProps();return v.createElement(r,t({},d,{className:o,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:g}),this.renderLiveRegion(),v.createElement(a,t({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:g,menuIsOpen:u}),v.createElement(n,t({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(l,t({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,l=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,n=t.ariaSelection,i=t.isFocused,o=t.prevWasFocused,s=e.options,c=e.value,u=e.menuIsOpen,g=e.inputValue,d=e.isMulti,b=Ca(c),p={};if(a&&(c!==a.value||s!==a.options||u!==a.menuIsOpen||g!==a.inputValue)){var m=u?function(e,t){return er(Xl(e,t))}(e,b):[],f=l?function(e,t){var a=e.focusedValue,l=e.selectValue.indexOf(a);if(l>-1){if(t.indexOf(a)>-1)return a;if(l<t.length)return t[l]}return null}(t,b):null,h=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,m);p={selectValue:b,focusedOption:h,focusedValue:f,clearFocusValueOnUpdate:!1}}var k=null!=r&&e!==a?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},v=n,y=i&&o;return i&&!y&&(v={value:Na(d,b,b[0]||null),options:b,action:"initial-input-focus"},y=!o),"initial-input-focus"===(null==n?void 0:n.action)&&(v=null),ma(ma(ma({},p),k),{},{prevProps:e,ariaSelection:v,prevWasFocused:y})}}]),l}(v.Component);cr.defaultProps=Yl;var ur=(0,v.forwardRef)((function(e,a){var l=ml(e);return v.createElement(cr,t({ref:a},l))})),gr=(v.Component,ur),dr=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],br=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,l=String(e).toLowerCase(),r=String(a.getOptionValue(t)).toLowerCase(),n=String(a.getOptionLabel(t)).toLowerCase();return r===l||n===l},pr={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,a,l){return!(!e||t.some((function(t){return br(e,t,l)}))||a.some((function(t){return br(e,t,l)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},mr=(0,v.forwardRef)((function(e,a){var l=function(e){var t=e.allowCreateWhileLoading,a=void 0!==t&&t,l=e.createOptionPosition,r=void 0===l?"last":l,n=e.formatCreateLabel,i=void 0===n?pr.formatCreateLabel:n,o=e.isValidNewOption,s=void 0===o?pr.isValidNewOption:o,c=e.getNewOptionData,u=void 0===c?pr.getNewOptionData:c,g=e.onCreateOption,d=e.options,b=void 0===d?[]:d,p=e.onChange,m=aa(e,dr),f=m.getOptionValue,h=void 0===f?Zl:f,k=m.getOptionLabel,y=void 0===k?$l:k,w=m.inputValue,_=m.isLoading,C=m.isMulti,T=m.value,E=m.name,x=(0,v.useMemo)((function(){return s(w,Ca(T),b,{getOptionValue:h,getOptionLabel:y})?u(w,i(w)):void 0}),[i,u,y,h,w,s,b,T]),S=(0,v.useMemo)((function(){return!a&&_||!x?b:"first"===r?[x].concat(fl(b)):[].concat(fl(b),[x])}),[a,r,_,x,b]),B=(0,v.useCallback)((function(e,t){if("select-option"!==t.action)return p(e,t);var a=Array.isArray(e)?e:[e];if(a[a.length-1]!==x)p(e,t);else if(g)g(w);else{var l=u(w,w),r={action:"create-option",name:E,option:l};p(Na(C,[].concat(fl(Ca(T)),[l]),l),r)}}),[u,w,C,E,x,g,p,T]);return ma(ma({},m),{},{options:S,onChange:B})}(ml(e));return v.createElement(cr,t({ref:a},l))})),fr=mr;function hr(t){let{label:a,htmlFor:l,help:r,children:n}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)("label",{style:{marginBottom:"8px",display:"inline-block"},htmlFor:l},a),n,r&&(0,e.createElement)("p",{style:{fontSize:"12px",fontStyle:"normal",color:"rgb(117, 117, 117)"}},r))}var kr=t=>{const a={className:"generate-advanced-select",classNamePrefix:"generate-advanced-select",isSearchable:!1,styles:{indicatorSeparator:()=>({display:"none"}),indicatorsContainer:e=>({...e,maxHeight:"30px"}),menuPortal:e=>({...e,zIndex:999999}),control:e=>({...e,marginBottom:"8px"}),valueContainer:e=>({...e,padding:"0 6px"}),input:e=>({...e,margin:0,padding:0})},instanceId:"input-field",maxMenuHeight:250,theme:e=>({borderRadius:2,colors:{...e.colors,primary:"var(--wp-admin-theme-color)",neutral20:"#757575",neutral30:"#757575"},spacing:{controlHeight:30,baseUnit:3,menuGutter:3}}),menuPortalTarget:document.querySelector("body")},l=Object.assign({},{marginBottom:"24px"},t?.wrapperStyles),r=t?.isCreatable?fr:gr,n=Object.assign({},a,t);return(0,e.createElement)("div",{style:l},(0,e.createElement)(hr,{label:n.label,htmlFor:n.id,help:n.help},(0,e.createElement)(r,n)))};const vr=function(e,t,a){const l={};return e.reduce(((e,r)=>{const n=r[t]||a;if(Object.keys(l).includes(n))e[l[n]].options.push(r);else{const t=e.push({label:n,options:[r]});l[n]=t-1}return e}),[])};var yr=a=>(0,e.createElement)(kr,t({id:"gblocks-select-query-parameters",label:(0,i.__)("Select query parameter","generateblocks"),placeholder:(0,i.__)("Select query parameter","generateblocks"),isSearchable:!0,pageSize:20},a,{menuPlacement:"top",options:vr(a.options,"group","Other")})),wr=a=>(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},(0,e.createElement)(n.Button,t({isPrimary:!0,text:(0,i.__)("Add Parameter","generateblocks")},a))),_r=(0,m.applyFilters)("generateblocks.editor.query-loop.query-parameters",[{id:"post_type",type:"postTypeSelect",default:"post",label:(0,i.__)("Post type","generateblocks"),description:(0,i.__)("Retrieves posts by post types.","generateblocks"),group:(0,i.__)("Post type","generateblocks"),isSticky:!0},{id:"per_page",type:"number",default:10,label:(0,i.__)("Posts per page","generateblocks"),description:(0,i.__)("Number of post to show per page.","generateblocks"),group:(0,i.__)("Pagination","generateblocks"),isSticky:!0},{id:"page",type:"number",default:1,label:(0,i.__)("Page","generateblocks"),description:(0,i.__)("Display posts from page.","generateblocks"),group:(0,i.__)("Pagination","generateblocks")},{id:"offset",type:"number",default:void 0,label:(0,i.__)("Offset","generateblocks"),description:(0,i.__)("Offset the result set by a specific number of items.","generateblocks"),group:(0,i.__)("Pagination","generateblocks")},{id:"search",type:"text",default:"",label:(0,i.__)("Search","generateblocks"),description:(0,i.__)("Show posts based on a keyword search.","generateblocks"),group:(0,i.__)("Search","generateblocks")},{id:"order",type:"select",default:"desc",selectOptions:[{value:"desc",label:"DESC"},{value:"asc",label:"ASC"}],label:(0,i.__)("Order","generateblocks"),description:(0,i.__)("Designates the ascending or descending order of the ‘orderby‘ parameter.","generateblocks"),group:(0,i.__)("Order & Order by","generateblocks")},{id:"orderby",type:"select",default:"date",selectOptions:[{value:"id",label:"Id"},{value:"title",label:"Title"},{value:"slug",label:"Slug"},{value:"author",label:"Author"},{value:"date",label:"Date"},{value:"modified",label:"Last modified date"},{value:"parent",label:"Parent id"},{value:"menu_order",label:"Menu order"}],label:(0,i.__)("Order by","generateblocks"),description:(0,i.__)("Sort retrieved posts by parameter.","generateblocks"),group:(0,i.__)("Order & Order by","generateblocks")},{id:"author",type:"authorsSelect",default:[],dependencies:{filterName:"generateblocks.editor.query-loop.author"},label:(0,i.__)("Authors","generateblocks"),description:(0,i.__)("Show posts from authors.","generateblocks"),group:(0,i.__)("Author","generateblocks")},{id:"author_exclude",type:"authorsSelect",default:[],dependencies:{filterName:"generateblocks.editor.query-loop.author-exclude"},label:(0,i.__)("Exclude authors","generateblocks"),description:(0,i.__)("Exclude posts from authors.","generateblocks"),group:(0,i.__)("Author","generateblocks")},{id:"tax_query",type:"taxonomySelect",default:[],label:(0,i.__)("Taxonomies","generateblocks"),description:(0,i.__)("Show posts from taxonomies.","generateblocks"),group:(0,i.__)("Taxonomy","generateblocks"),isRepeatable:!0,repeatableDefaultValue:{taxonomy:"",terms:[],rest:"",includeChildren:!0}},{id:"tax_query_exclude",type:"taxonomySelect",default:[],label:(0,i.__)("Exclude taxonomies","generateblocks"),description:(0,i.__)("Exclude posts from taxonomies.","generateblocks"),group:(0,i.__)("Taxonomy","generateblocks"),isRepeatable:!0,repeatableDefaultValue:{taxonomy:"",terms:[],rest:"",includeChildren:!0}},{id:"status",type:"multiSelect",default:[],selectOptions:[{value:"publish",label:(0,i.__)("Publish","generateblocks")},{value:"pending",label:(0,i.__)("Pending","generateblocks")},{value:"draft",label:(0,i.__)("Draft","generateblocks")},{value:"auto-draft",label:(0,i.__)("Auto draft","generateblocks")},{value:"future",label:(0,i.__)("Future","generateblocks")},{value:"private",label:(0,i.__)("Private","generateblocks")},{value:"inherit",label:(0,i.__)("Inherit","generateblocks")},{value:"trash",label:(0,i.__)("Trash","generateblocks")},{value:"any",label:(0,i.__)("Any","generateblocks")}],label:(0,i.__)("Post status","generateblocks"),description:(0,i.__)("Show posts by post status.","generateblocks"),group:(0,i.__)("Status","generateblocks")},{id:"parent",type:"postsSelect",default:[],dependencies:{postType:"post_type",filterName:"generateblocks.editor.query-loop.include-parent"},label:(0,i.__)("Parent","generateblocks"),description:(0,i.__)("Show posts from parents.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"parent_exclude",type:"postsSelect",default:[],dependencies:{postType:"post_type",filterName:"generateblocks.editor.query-loop.exclude-parent"},label:(0,i.__)("Parent exclude","generateblocks"),description:(0,i.__)("Do not show posts from parents.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"include",type:"postsSelect",default:[],dependencies:{postType:"post_type"},label:(0,i.__)("Include posts","generateblocks"),description:(0,i.__)("Limit result set to specific posts.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"exclude",type:"postsSelect",default:[],dependencies:{postType:"post_type",filterName:"generateblocks.editor.query-loop.exclude-posts-select"},label:(0,i.__)("Exclude posts","generateblocks"),description:(0,i.__)("Ensure result set excludes specific posts.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"stickyPosts",type:"select",default:"include",selectOptions:[{value:"include",label:"Include"},{value:"exclude",label:"Exclude"},{value:"ignore",label:"Ignore"},{value:"only",label:"Only"}],label:(0,i.__)("Sticky posts","generateblocks"),description:(0,i.__)("Configure how sticky posts should show in the query.","generateblocks"),group:(0,i.__)("Post","generateblocks")},{id:"after",type:"dateTimePicker",default:"",label:(0,i.__)("After","generateblocks"),description:(0,i.__)("Limit response to posts published after a given date.","generateblocks"),group:(0,i.__)("Date","generateblocks")},{id:"before",type:"dateTimePicker",default:"",label:(0,i.__)("Before","generateblocks"),description:(0,i.__)("Limit response to posts published before a given date.","generateblocks"),group:(0,i.__)("Date","generateblocks")}]),Cr=t=>{let{postType:a,onChange:r,value:n,help:o}=t;const s=(0,l.useSelect)((e=>{const{getPostTypes:t}=e(Z.store);return t({per_page:-1})||[]}),[]),c=(0,e.useMemo)((()=>s.filter((e=>e.viewable&&"attachment"!==e.slug)).reduce(((e,t)=>(e.push({value:t.slug,label:t.name}),e)),[])),[s]),u=c.filter((e=>e.value===a||e.value===n));return(0,e.createElement)(kr,{id:"gblocks-select-post-type",label:(0,i.__)("Select post type","generateblocks"),help:o,placeholder:(0,i.__)("Select post type","generateblocks"),options:c,value:u,onChange:r,isLoading:0===c.length})},Tr=a=>{const{options:l,value:r}=a;return(0,e.createElement)(kr,t({},a,{id:"gblocks-simple-select",value:l.filter((e=>e.value===r))}))};function Er(t){const{label:a,onChange:r,value:n,help:o,filterName:s="generateblocks.editor.authors-select"}=t,c=(0,l.useSelect)((e=>{const{getUsers:t}=e(Z.store);return t({who:"authors"})||[]}),[]),u=(0,e.useMemo)((()=>{const e=c.reduce(((e,t)=>(e.push({value:t.id,label:t.name}),e)),[]);return(0,m.applyFilters)(s,e)}),[c]),g=u.filter((e=>n.includes(e.value)));return(0,e.createElement)(kr,{id:"gblocks-select-author",label:a||(0,i.__)("Select authors","generateblocks"),help:o,placeholder:a||(0,i.__)("Select authors","generateblocks"),options:u,isMulti:!0,isSearchable:!0,value:g,onChange:r,isLoading:0===u.length})}function xr(t){const{taxonomy:a,label:r,onChange:n,value:o=[],help:s,filterName:c="generateblocks.editor.taxonomies-select"}=t,{taxonomies:u,isResolving:g}=(e=>(0,l.useSelect)((t=>{const{getEntityRecords:a,isResolving:l}=t(Z.store),r=["taxonomy",e,{per_page:-1}];return{taxonomies:a(...r)||[],isResolving:l("getEntityRecords",r)}}),[e]))(a),d=(0,e.useMemo)((()=>{const e=u.reduce(((e,t)=>(e.push({value:t.id,label:t.name}),e)),[]);return(0,m.applyFilters)(c,e)}),[JSON.stringify(u)]),b=d.filter((e=>o.includes(e.value)));return(0,e.createElement)(kr,{id:"gblocks-select-author",label:r||(0,i.__)("Select terms","generateblocks"),help:s,placeholder:r||(0,i.__)("Select terms","generateblocks"),options:d,isMulti:!0,isSearchable:!0,value:b,onChange:n,isLoading:g})}function Sr(a){return(0,e.createElement)(xr,t({},a,{taxonomy:"category"}))}function Br(a){return(0,e.createElement)(xr,t({},a,{taxonomy:"post_tag"}))}function Mr(t){let{id:a,onClick:l}=t;return(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Delete parameter","generateblocks-pro")},(0,e.createElement)(n.Button,{className:"gblocks-remove-parameter",onClick:()=>{window.confirm((0,i.__)("This will permanently delete this parameter.","generateblocks"))&&l(a)},icon:b("trash")}))}function Dr(t){const{label:a,value:l,onChange:r}=t,[o,s]=(0,e.useState)(l.taxonomy),[c,u]=(0,e.useState)(l.terms),[g,d]=(0,e.useState)(!1!==l.includeChildren),b=K();(0,e.useEffect)((()=>{l.taxonomy!==o&&s(l.taxonomy),JSON.stringify(l.terms)!==JSON.stringify(c)&&u(l.terms)}),[l]),(0,e.useEffect)((()=>{if(o){const e=b.filter((e=>e.slug===o)),t=e[0]?e[0].rest_base:void 0;r({taxonomy:o,terms:c,rest:t,includeChildren:g})}}),[o,JSON.stringify(c),g]);const p=(0,e.useMemo)((()=>b.filter((e=>"nav_menu"!==e.slug)).map((e=>({value:e.slug,label:e.name})))),[b]);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)("label",{htmlFor:"tax-label",style:{marginBottom:"8px",display:"inline-block"}},a),(0,e.createElement)(Tr,{wrapperStyles:{marginBottom:"8px"},options:p,value:o,onChange:e=>{s(e.value),u([])}}),o&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(xr,{taxonomy:o,value:c,filterName:"generateblocks.editor.taxonomy-parameter-control."+t.id,onChange:e=>{const t=e.reduce(((e,t)=>(e.push(t.value),e)),[]);u(t)},help:0===c.length?(0,i.__)("You must select at least one term.","generateblocks"):""}),(0,e.createElement)(n.ToggleControl,{checked:g,label:(0,i.__)("Include child terms","generateblocks"),onChange:d})))}function Rr(a){const{postType:r,label:n,value:o,filterName:s="generateblocks.editor.post-type-record-select",...c}=a,{records:u,isResolving:g}=(e=>(0,l.useSelect)((t=>{const{getEntityRecords:a,isResolving:l}=t(Z.store),r=["postType",e,{per_page:-1}];return{records:a(...r)||[],isResolving:l("getEntityRecords",r)}}),[e]))(r)||[],d=(0,e.useMemo)((()=>{const e=u?.map((e=>{const t=e.title&&e.title.raw?e.title.raw:e.slug;return{value:e.id,label:`#${e.id}: ${t}`}}));return(0,m.applyFilters)(s,e)}),[u,r]),b=d.filter((e=>o.includes(e.value)));return(0,e.createElement)(kr,t({id:"gblocks-select-posts",label:n||(0,i.__)("Select post","generateblocks"),placeholder:n||(0,i.__)("Select post","generateblocks"),value:b,isLoading:g,isSearchable:!0,isMulti:!0},c,{options:d}))}function zr(t){let{label:a,help:l,value:r,onChange:i}=t;const o=r?new Date(r):new Date;return(0,e.createElement)("div",{style:{marginBottom:"24px"}},(0,e.createElement)(hr,{label:a,help:l},(0,e.createElement)(n.DateTimePicker,{currentDate:o,onChange:i,is12Hour:!0})))}function Lr(e,t){return e===t}function Or(e){return"function"==typeof e?function(){return e}:e}function Ir(e,t,a){var l=a&&a.equalityFn||Lr,r=function(e){var t=(0,v.useState)(Or(e)),a=t[0],l=t[1];return[a,(0,v.useCallback)((function(e){return l(Or(e))}),[])]}(e),n=r[0],i=r[1],o=se((0,v.useCallback)((function(e){return i(e)}),[i]),t,a),s=(0,v.useRef)(e);return l(s.current,e)||(o(e),s.current=e),[n,o]}function Nr(a){const[l,r,i]=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[l,r]=(0,e.useState)(t),[n]=Ir(l,a);return[n,r,l]}(a?.value,800);return(0,e.useEffect)((()=>{a.onChange(l)}),[l]),(0,e.createElement)(n.TextControl,t({},a,{value:i,onChange:r}))}var Ar=function(a){const{options:l,value:r}=a;return(0,e.createElement)(kr,t({},a,{isMulti:!0,id:"gblocks-simple-multi-select",value:l.filter((e=>r.includes(e.value)))}))};function Fr(a){const{id:l,type:r,label:o,description:s,selectOptions:c=[],isSticky:u,value:g,default:d,onChange:b,onClickRemove:p,dependencies:m}=a,f=(e=>{switch(e){case"text":case"number":return Nr;case"postTypeSelect":return Cr;case"select":return Tr;case"multiSelect":return Ar;case"authorsSelect":return Er;case"categoriesSelect":return Sr;case"tagsSelect":return Br;case"taxonomySelect":return Dr;case"postsSelect":return Rr;case"dateTimePicker":return zr;case"toggleControl":return n.ToggleControl}})(r);let h=s;return"per_page"===l&&("-1"===g||g>50)&&(h+=" "+(0,i.__)("Editor only: A maximum of 50 posts can be previewed in the editor.","generateblocks")),(0,e.createElement)("div",{className:"gblocks-parameter-component"},(0,e.createElement)(f,t({id:l,type:r,label:o,help:h,options:c,value:g,placeholder:d,onChange:b},m)),!u&&(0,e.createElement)(Mr,{id:l,onClick:p}))}var Pr=a=>{let{parameter:l,query:r,setParameter:n,removeParameter:i}=a;const{dependencies:o={}}=l,s=r[l.id],c=Object.keys(o).reduce(((e,t)=>(e[t]=r[o[t]]||o[t],e)),{});function u(a,r,n){return(0,e.createElement)(Fr,t({},l,{value:a,onChange:r,onClickRemove:n,dependencies:c}))}return l.isRepeatable?(0,e.createElement)(e.Fragment,null,Array.isArray(s)&&s.map(((e,t)=>u(e,(e=>{s[t]=e,n(l.id,[...s])}),(e=>{s.splice(t,1),0===s.length?i(e):n(l.id,[...s])}))))):u(s,(function(e){n(l.id,((e,t)=>{switch(e){case"post_type":case"order":case"orderby":case"stickyPosts":return t.value;case"status":case"author":case"author_exclude":case"include":case"exclude":case"parent":case"parent_exclude":return t.reduce(((e,t)=>(e.push(t.value),e)),[]);default:return t}})(l.id,e))}),i)},Hr=t=>{let{query:a,setParameter:l,removeParameter:r}=t;const n=(e=>_r.filter((e=>e.isSticky)).concat(Object.keys(e).map((e=>_r.find((t=>e===t.id&&!t.isSticky)))).filter(Boolean)))(a);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{marginBottom:"1.33em"}},n&&n.map((t=>(0,e.createElement)(Pr,{key:t.id,parameter:t,query:a,setParameter:l,removeParameter:r})))))};const Vr="add_query_parameter",Ur="remove_query_parameter",Gr=function(e,t){switch(t.type){case Vr:return Object.assign({},e,t.payload);case Ur:const{[t.payload]:a,...l}=e;return l;default:throw new Error(`queryReducer does not support action type "${t.type}".`)}};var jr=t=>{let{attributes:a,setAttributes:l}=t;const{queryState:o,insertParameters:s,setParameter:c,removeParameter:u}=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[a,l]=(0,e.useReducer)(Gr,t);return{queryState:a,setParameter:(e,t)=>l({type:Vr,payload:{[e]:t}}),insertParameters:e=>l({type:Vr,payload:e}),removeParameter:e=>l({type:Ur,payload:e})}}(a.query),[g,d]=(0,e.useState)(!1);(0,e.useEffect)((()=>{var e;(e=a.query)&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype&&s({post_type:"post",per_page:10})}),[]),(0,e.useEffect)((()=>{l({query:o})}),[JSON.stringify(o),!(0,V.isEqual)(a.query,o)]);const p=(0,e.useMemo)((()=>_r.map((e=>(e.isDisabled=!e.isRepeatable&&Object.keys(o).includes(e.id),e)))),[o]);return(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(C,{id:"queryLoopControls",title:(0,i.__)("Query Parameters","generateblocks"),initialOpen:!0,icon:b("query-params"),className:"gblocks-panel-label"},(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Inherit query from template","generateblocks"),help:(0,i.__)("Toggle to use the global query context that is set with the current template, such as an archive or search.","generateblocks"),checked:!!a.inheritQuery,onChange:e=>l({inheritQuery:e})}),!a.inheritQuery&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Hr,{query:o,setParameter:c,removeParameter:u}),!g&&(0,e.createElement)(wr,{onClick:()=>{d(!0)}}),g&&(0,e.createElement)(yr,{options:p,onChange:e=>{if(e.isRepeatable&&Array.isArray(e.default)&&e.repeatableDefaultValue){const t=o[e.id]?o[e.id]:e.default;c(e.id,[...t,e.repeatableDefaultValue])}else c(e.id,e.default);d(!1)}}))))},qr=t=>{let{clientId:a}=t;const{insertBlocks:o}=(0,l.useDispatch)("core/block-editor"),{getBlock:s}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{selectBlock:c}=(0,l.useDispatch)("core/block-editor"),u=s(a),d=!!u&&u?.innerBlocks[0],p=!!u&&u?.innerBlocks[0]?.innerBlocks[0],m={useDynamicData:!0,isPagination:!0},f=["generateblocks/button-container",{isPagination:!0},[["generateblocks/button",Object.assign({},m,generateBlocksStyling.button,{text:(0,i.__)("Previous","generateblocks"),dynamicLinkType:"pagination-prev",dynamicLinkRemoveIfEmpty:!0})],["generateblocks/button",Object.assign({},m,generateBlocksStyling.button,{text:(0,i.__)("1 2 … 10","generateblocks"),dynamicContentType:"pagination-numbers"})],["generateblocks/button",Object.assign({},m,generateBlocksStyling.button,{text:(0,i.__)("Next","generateblocks"),dynamicLinkType:"pagination-next",dynamicLinkRemoveIfEmpty:!0})]]];return(0,e.createElement)(r.BlockControls,null,(!!d||!!p)&&(0,e.createElement)(n.ToolbarGroup,null,!!d&&(0,e.createElement)(n.ToolbarButton,{icon:b("grid"),label:(0,i.__)("Open Grid","generateblocks"),onClick:()=>{c(d.clientId)},showTooltip:!0}),!!p&&(0,e.createElement)(n.ToolbarButton,{icon:b("container"),label:(0,i.__)("Open Container","generateblocks"),onClick:()=>{c(p.clientId)},showTooltip:!0})),(0,e.createElement)(n.ToolbarGroup,null,(0,e.createElement)(n.ToolbarButton,{icon:b("add-pagination"),label:(0,i.__)("Add Pagination","generateblocks"),onClick:()=>{o((0,g.createBlocksFromInnerBlocksTemplate)([f]),void 0,a)},showTooltip:!0})))},Wr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object.keys(e).filter((e=>t.includes(e))).reduce(((t,a)=>Object.assign({},t,{[a]:e[a]})),{})},$r=[{name:"title-date-excerpt",title:(0,i.__)("Title, date, & excerpt","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M15 33h171v11H15zM15 51h79v5H15zM15 71h171v5H15zM15 82h171v5H15zM15 116h171v11H15zM15 134h79v5H15zM15 154h171v5H15zM15 165h171v5H15z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:40,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:100,lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"title-date",title:(0,i.__)("Title & date","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M14 30h171v11H14zM14 48h79v5H14zM14 88h171v11H14zM14 106h79v5H14zM14 146h171v11H14zM14 164h79v5H14z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:100,lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:20,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"0",dynamicContentType:"post-date",fontSize:14}]]]]]]},{name:"two-columns",title:(0,i.__)("Two columns","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M14 28h78v11H14zM14 46h36.035v5H14zM14 66h78v5H14zM14 77h78v5H14zM108 28h78v11h-78zM108 46h36.035v5H108zM108 66h78v5h-78zM108 77h78v5h-78zM14 118h78v11H14zM14 136h36.035v5H14zM14 156h78v5H14zM14 167h78v5H14zM108 118h78v11h-78zM108 136h36.035v5H108zM108 156h78v5h-78zM108 167h78v5h-78z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,horizontalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:50,widthMobile:100,backgroundColor:"#fafafa",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20",lock:{remove:!0,move:!0}},[["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:30,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"30",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"two-columns-feature-image",title:(0,i.__)("Two columns & featured image","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},(0,e.createElement)("path",{d:"M110 57h78v11h-78V57ZM110 16h78v35h-78V16ZM110 76h78v5h-78zM110 87h55v5h-55zM110 149h78v11h-78v-11ZM110 108h78v35h-78v-35ZM110 168h78v5h-78zM110 179h55v5h-55zM15 149h78v11H15v-11ZM15 108h78v35H15v-35ZM15 168h78v5H15zM15 179h55v5H15zM15 57h78v11H15V57ZM15 16h78v35H15V16ZM15 76h78v5H15zM15 87h55v5H15z"})),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,verticalGap:20,horizontalGap:20,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:50,widthMobile:100,backgroundColor:"#fafafa",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20",lock:{remove:!0,move:!0}},[["generateblocks/image",{useDynamicData:!0,dynamicContentType:"featured-image",marginBottom:"30"}],["generateblocks/headline",{useDynamicData:!0,element:"h2",fontSize:30,dynamicContentType:"post-title",dynamicLinkType:"single-post",marginBottom:"5"}],["generateblocks/headline",{useDynamicData:!0,element:"p",marginBottom:"30",dynamicContentType:"post-date",fontSize:14}],["generateblocks/headline",{useDynamicData:!0,element:"div",dynamicContentType:"post-excerpt"}]]]]]]},{name:"blank",title:(0,i.__)("Start blank","generateblocks"),icon:(0,e.createElement)("svg",{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"}),innerBlocks:[["generateblocks/grid",{isQueryLoop:!0,lock:{remove:!0}},[["generateblocks/container",{isQueryLoopItem:!0,width:100,lock:{remove:!0,move:!0}}]]]]}],Zr=t=>{let{clientId:a,isDisabled:r}=t;if(r)return!1;const{replaceInnerBlocks:o}=(0,l.useDispatch)("core/block-editor");return(0,e.createElement)(n.Placeholder,{label:(0,i.__)("Query Loop","generateblocks"),icon:b("query-loop"),instructions:(0,i.__)("Choose a layout to start with.","generateblocks"),className:"gblocks-query-loop-layout-selector"},(0,e.createElement)("div",{className:"gblocks-query-loop-layout-selector__content"},$r.map((t=>(0,e.createElement)(n.Button,{key:`template-${t}`,onClick:()=>{o(a,(0,g.createBlocksFromInnerBlocksTemplate)(t.innerBlocks))}},t.icon,(0,e.createElement)("p",null,t.title))))))};(0,g.registerBlockType)("generateblocks/query-loop",{apiVersion:2,title:(0,i.__)("Query Loop","generateblocks"),description:(0,i.__)("Build a list of posts from any post type using advanced query parameters.","generateblocks"),icon:b("query-loop"),category:"generateblocks",keywords:[(0,i.__)("query"),(0,i.__)("loop"),(0,i.__)("generate")],attributes:ye,supports:{className:!1,customClassName:!1},providesContext:{"generateblocks/query":"query","generateblocks/queryId":"uniqueId","generateblocks/inheritQuery":"inheritQuery"},edit:Y((function(t){const{attributes:a,clientId:n,setAttributes:i}=t,o=(0,r.useBlockProps)(),s=(0,l.useSelect)((e=>!!e(r.store).getBlocks(n).length),[n]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",o,s?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(qr,{clientId:n}),(0,e.createElement)(jr,{attributes:Wr(a,Object.keys(ye)),setAttributes:i,clientId:n}),(0,e.createElement)(r.BlockContextProvider,{value:{"generateblocks/query":a.query}},(0,e.createElement)(r.InnerBlocks,{renderAppender:!1}))):(0,e.createElement)(Zr,{clientId:n})))})),save:()=>(0,e.createElement)(r.InnerBlocks.Content,null)});const Kr=["wide","full"],Qr=(0,q.createHigherOrderComponent)((t=>a=>{if("generateblocks/container"!==a.name)return(0,e.createElement)(t,a);const{insertBlocks:o}=(0,l.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:s,getBlockRootClientId:c,getBlocksByClientId:u}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{attributes:d,clientId:p,setAttributes:m}=a,{isGrid:f,isQueryLoopItem:h,align:k}=d;let v=!1;v="function"==typeof s?s(p,"generateblocks/grid",!0)[0]:c(p);const y=(0,g.getBlockSupport)("","align",!0)&&!f;return(0,e.createElement)(e.Fragment,null,!h&&f&&v&&(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(n.ToolbarGroup,null,(0,e.createElement)(n.ToolbarButton,{className:"gblocks-block-control-icon gblocks-add-grid-item",icon:b("addContainer"),label:(0,i.__)("Duplicate Grid Item","generateblocks"),onClick:()=>{const e=u(p)[0],t=(0,g.cloneBlock)(e,{uniqueId:""});o(t,void 0,v)},showTooltip:!0}))),y&&(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(r.BlockAlignmentToolbar,{value:k,onChange:e=>{m({align:e}),"full"===e&&m({outerContainer:"full"})},controls:Kr})),(0,e.createElement)(t,a))}),"withBlockControls");(0,m.addFilter)("editor.BlockEdit","generateblocks/container-block-controls",Qr);var Yr=t=>{let{attributes:a,setAttributes:l,deviceType:n}=t;const{alignment:i,alignmentTablet:o,alignmentMobile:s}=a;return(0,e.createElement)(r.BlockControls,null,"Desktop"===n&&(0,e.createElement)(r.AlignmentToolbar,{value:i,onChange:e=>{l({alignment:e})}}),"Tablet"===n&&(0,e.createElement)(r.AlignmentToolbar,{value:o,onChange:e=>{l({alignmentTablet:e})}}),"Mobile"===n&&(0,e.createElement)(r.AlignmentToolbar,{value:s,onChange:e=>{l({alignmentMobile:e})}}))},Jr=t=>{let{fontFamily:a,googleFont:l,googleFontVariants:r,isBlockPreview:n}=t;if(n)return null;const i=r?`:${r}`:"",o="https://fonts.googleapis.com/css?family="+a.replace(/ /g,"+")+i;return(0,e.createElement)(e.Fragment,null,a&&l&&(0,e.createElement)("link",{rel:"stylesheet",href:o}))};class Xr extends e.Component{render(){const{label:t,value:a,onChange:l,rangeMin:r=0,rangeMax:i=100,inputMin:o="",inputMax:s="",step:c=1,help:u="",beforeIcon:g="",initialPosition:d="",placeholder:b="",disabled:p=!1}=this.props;return(0,e.createElement)("div",{className:"components-gblocks-range-control"},t&&(0,e.createElement)("div",{className:"components-gblocks-range-control--label"},t),(0,e.createElement)("div",{className:"components-gblocks-range-control--wrapper"},(0,e.createElement)("div",{className:"components-gblocks-range-control--range"},(0,e.createElement)(n.RangeControl,{className:"gblocks-range-control-range",beforeIcon:g,value:S(a)?parseFloat(a):"",onChange:e=>l(e),min:r,max:i,step:c,withInputField:!1,initialPosition:d,disabled:p})),(0,e.createElement)("div",{className:"components-gblocks-range-control-input"},(0,e.createElement)(n.TextControl,{type:"number",placeholder:""!==b?b:"",min:o,max:s,step:c,value:S(a)?a:"",disabled:p,onChange:e=>l(e),onBlur:()=>{S(a)&&l(parseFloat(a))},onClick:e=>{e.currentTarget.focus()}}))),u&&(0,e.createElement)("p",{className:"components-base-control__help"},u))}}var en=JSON.parse('{"Roboto":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Open Sans":{"weight":["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Noto Sans JP":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Lato":{"weight":["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Montserrat":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Roboto Condensed":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"sans-serif"},"Source Sans Pro":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Oswald":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Poppins":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Roboto Mono":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"monospace"},"Noto Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Raleway":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"PT Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Roboto Slab":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Merriweather":{"weight":["300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"serif"},"Ubuntu":{"weight":["300","300italic","regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Playfair Display":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Nunito":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Noto Sans KR":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Open Sans Condensed":{"weight":["300","300italic","700"],"fallback":"sans-serif"},"Rubik":{"weight":["300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Lora":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Work Sans":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Mukta":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Noto Sans TC":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Nunito Sans":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"PT Serif":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Nanum Gothic":{"weight":["regular","700","800"],"fallback":"sans-serif"},"Inter":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Fira Sans":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Noto Serif":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Quicksand":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Titillium Web":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"],"fallback":"sans-serif"},"Hind Siliguri":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Karla":{"weight":["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"sans-serif"},"Barlow":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Inconsolata":{"weight":["200","300","regular","500","600","700","800","900"],"fallback":"monospace"},"Heebo":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Noto Sans SC":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Oxygen":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Source Code Pro":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],"fallback":"monospace"},"Anton":{"weight":["regular"],"fallback":"sans-serif"},"Josefin Sans":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Arimo":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"PT Sans Narrow":{"weight":["regular","700"],"fallback":"sans-serif"},"IBM Plex Sans":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Dosis":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Noto Sans HK":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Libre Franklin":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Libre Baskerville":{"weight":["regular","italic","700"],"fallback":"serif"},"Cabin":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Hind":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Bitter":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Crimson Text":{"weight":["regular","italic","600","600italic","700","700italic"],"fallback":"serif"},"Bebas Neue":{"weight":["regular"],"fallback":"display"},"Lobster":{"weight":["regular"],"fallback":"display"},"Yanone Kaffeesatz":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Dancing Script":{"weight":["regular","500","600","700"],"fallback":"handwriting"},"Cairo":{"weight":["200","300","regular","600","700","900"],"fallback":"sans-serif"},"Abel":{"weight":["regular"],"fallback":"sans-serif"},"Fjalla One":{"weight":["regular"],"fallback":"sans-serif"},"Varela Round":{"weight":["regular"],"fallback":"sans-serif"},"Source Serif Pro":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"],"fallback":"serif"},"Arvo":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"EB Garamond":{"weight":["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"],"fallback":"serif"},"Barlow Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Architects Daughter":{"weight":["regular"],"fallback":"handwriting"},"Zilla Slab":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Indie Flower":{"weight":["regular"],"fallback":"handwriting"},"Mulish":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Comfortaa":{"weight":["300","regular","500","600","700"],"fallback":"display"},"DM Sans":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Pacifico":{"weight":["regular"],"fallback":"handwriting"},"Exo 2":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Kanit":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Prompt":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Shadows Into Light":{"weight":["regular"],"fallback":"handwriting"},"Questrial":{"weight":["regular"],"fallback":"sans-serif"},"Merriweather Sans":{"weight":["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"sans-serif"},"Teko":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Balsamiq Sans":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Asap":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Hind Madurai":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Cormorant Garamond":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Antic Slab":{"weight":["regular"],"fallback":"serif"},"Archivo Narrow":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Overpass":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Abril Fatface":{"weight":["regular"],"fallback":"display"},"Slabo 27px":{"weight":["regular"],"fallback":"serif"},"Exo":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Assistant":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Maven Pro":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Domine":{"weight":["regular","500","600","700"],"fallback":"serif"},"Fira Sans Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Caveat":{"weight":["regular","500","600","700"],"fallback":"handwriting"},"Rajdhani":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"IBM Plex Serif":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Martel":{"weight":["200","300","regular","600","700","800","900"],"fallback":"serif"},"Play":{"weight":["regular","700"],"fallback":"sans-serif"},"Amatic SC":{"weight":["regular","700"],"fallback":"handwriting"},"Bree Serif":{"weight":["regular"],"fallback":"serif"},"Tajawal":{"weight":["200","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Noto Serif JP":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Righteous":{"weight":["regular"],"fallback":"display"},"Satisfy":{"weight":["regular"],"fallback":"handwriting"},"Signika":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Catamaran":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Acme":{"weight":["regular"],"fallback":"sans-serif"},"Manrope":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Fredoka One":{"weight":["regular"],"fallback":"display"},"Nanum Myeongjo":{"weight":["regular","700","800"],"fallback":"serif"},"ABeeZee":{"weight":["regular","italic"],"fallback":"sans-serif"},"Amiri":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Patrick Hand":{"weight":["regular"],"fallback":"handwriting"},"PT Sans Caption":{"weight":["regular","700"],"fallback":"sans-serif"},"Archivo":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Alfa Slab One":{"weight":["regular"],"fallback":"display"},"Cinzel":{"weight":["regular","500","600","700","800","900"],"fallback":"serif"},"Crete Round":{"weight":["regular","italic"],"fallback":"serif"},"Permanent Marker":{"weight":["regular"],"fallback":"handwriting"},"Alegreya Sans":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Almarai":{"weight":["300","regular","700","800"],"fallback":"sans-serif"},"Barlow Semi Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Russo One":{"weight":["regular"],"fallback":"sans-serif"},"Vollkorn":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Sarabun":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Krona One":{"weight":["regular"],"fallback":"sans-serif"},"M PLUS Rounded 1c":{"weight":["100","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Noticia Text":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Courgette":{"weight":["regular"],"fallback":"handwriting"},"Monda":{"weight":["regular","700"],"fallback":"sans-serif"},"Alegreya":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Frank Ruhl Libre":{"weight":["300","regular","500","700","900"],"fallback":"serif"},"Patua One":{"weight":["regular"],"fallback":"display"},"Ubuntu Condensed":{"weight":["regular"],"fallback":"sans-serif"},"Great Vibes":{"weight":["regular"],"fallback":"handwriting"},"Quattrocento Sans":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"M PLUS 1p":{"weight":["100","300","regular","500","700","800","900"],"fallback":"sans-serif"},"Spartan":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Yantramanav":{"weight":["100","300","regular","500","700","900"],"fallback":"sans-serif"},"Lobster Two":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Archivo Black":{"weight":["regular"],"fallback":"sans-serif"},"Kaushan Script":{"weight":["regular"],"fallback":"handwriting"},"Tinos":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Cardo":{"weight":["regular","italic","700"],"fallback":"serif"},"Orbitron":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Sacramento":{"weight":["regular"],"fallback":"handwriting"},"IBM Plex Mono":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"monospace"},"Francois One":{"weight":["regular"],"fallback":"sans-serif"},"Luckiest Guy":{"weight":["regular"],"fallback":"display"},"Gothic A1":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Kalam":{"weight":["300","regular","700"],"fallback":"handwriting"},"Parisienne":{"weight":["regular"],"fallback":"handwriting"},"Gloria Hallelujah":{"weight":["regular"],"fallback":"handwriting"},"Didact Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Cantarell":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Press Start 2P":{"weight":["regular"],"fallback":"display"},"Jost":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Rokkitt":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Paytone One":{"weight":["regular"],"fallback":"sans-serif"},"Prata":{"weight":["regular"],"fallback":"serif"},"Baloo 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Cuprum":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Chivo":{"weight":["300","300italic","regular","italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Encode Sans":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"News Cycle":{"weight":["regular","700"],"fallback":"sans-serif"},"Old Standard TT":{"weight":["regular","italic","700"],"fallback":"serif"},"Hind Guntur":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Pathway Gothic One":{"weight":["regular"],"fallback":"sans-serif"},"Red Hat Display":{"weight":["regular","italic","500","500italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Public Sans":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Secular One":{"weight":["regular"],"fallback":"sans-serif"},"Volkhov":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Concert One":{"weight":["regular"],"fallback":"display"},"Asap Condensed":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Montserrat Alternates":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Ropa Sans":{"weight":["regular","italic"],"fallback":"sans-serif"},"Josefin Slab":{"weight":["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"],"fallback":"serif"},"Poiret One":{"weight":["regular"],"fallback":"display"},"Passion One":{"weight":["regular","700","900"],"fallback":"display"},"Padauk":{"weight":["regular","700"],"fallback":"sans-serif"},"Changa":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Saira Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Ultra":{"weight":["regular"],"fallback":"serif"},"Quattrocento":{"weight":["regular","700"],"fallback":"serif"},"Arapey":{"weight":["regular","italic"],"fallback":"serif"},"Vidaloka":{"weight":["regular"],"fallback":"serif"},"Playfair Display SC":{"weight":["regular","italic","700","700italic","900","900italic"],"fallback":"serif"},"Cookie":{"weight":["regular"],"fallback":"handwriting"},"Chakra Petch":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Istok Web":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Cormorant":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"DM Serif Display":{"weight":["regular","italic"],"fallback":"serif"},"Neuton":{"weight":["200","300","regular","italic","700","800"],"fallback":"serif"},"Spectral":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"serif"},"Sawarabi Mincho":{"weight":["regular"],"fallback":"sans-serif"},"Lemonada":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Yellowtail":{"weight":["regular"],"fallback":"handwriting"},"Handlee":{"weight":["regular"],"fallback":"handwriting"},"Merienda":{"weight":["regular","700"],"fallback":"handwriting"},"Philosopher":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Sanchez":{"weight":["regular","italic"],"fallback":"serif"},"Hammersmith One":{"weight":["regular"],"fallback":"sans-serif"},"Special Elite":{"weight":["regular"],"fallback":"display"},"Economica":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Staatliches":{"weight":["regular"],"fallback":"display"},"Sriracha":{"weight":["regular"],"fallback":"handwriting"},"Hind Vadodara":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Monoton":{"weight":["regular"],"fallback":"display"},"Ruda":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Advent Pro":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Saira":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Homemade Apple":{"weight":["regular"],"fallback":"handwriting"},"Sigmar One":{"weight":["regular"],"fallback":"display"},"Mitr":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Bangers":{"weight":["regular"],"fallback":"display"},"Khand":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Faustina":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Saira Semi Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Cabin Condensed":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Gudea":{"weight":["regular","italic","700"],"fallback":"sans-serif"},"Fira Sans Extra Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"DM Serif Text":{"weight":["regular","italic"],"fallback":"serif"},"El Messiri":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Electrolize":{"weight":["regular"],"fallback":"sans-serif"},"Taviraj":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"PT Mono":{"weight":["regular"],"fallback":"monospace"},"Gentium Basic":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Space Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Alice":{"weight":["regular"],"fallback":"serif"},"Unica One":{"weight":["regular"],"fallback":"display"},"Ubuntu Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Pragati Narrow":{"weight":["regular","700"],"fallback":"sans-serif"},"Noto Serif TC":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Amaranth":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Karma":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Actor":{"weight":["regular"],"fallback":"sans-serif"},"Nanum Pen Script":{"weight":["regular"],"fallback":"handwriting"},"Noto Serif SC":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Tangerine":{"weight":["regular","700"],"fallback":"handwriting"},"Carter One":{"weight":["regular"],"fallback":"display"},"Neucha":{"weight":["regular"],"fallback":"handwriting"},"Unna":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Pontano Sans":{"weight":["regular"],"fallback":"sans-serif"},"Bai Jamjuree":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Marck Script":{"weight":["regular"],"fallback":"handwriting"},"BenchNine":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Fugaz One":{"weight":["regular"],"fallback":"display"},"Yeseva One":{"weight":["regular"],"fallback":"display"},"Eczar":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Bad Script":{"weight":["regular"],"fallback":"handwriting"},"Viga":{"weight":["regular"],"fallback":"sans-serif"},"Gentium Book Basic":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Jura":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Allura":{"weight":["regular"],"fallback":"handwriting"},"Palanquin":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Sawarabi Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Rock Salt":{"weight":["regular"],"fallback":"handwriting"},"Lusitana":{"weight":["regular","700"],"fallback":"serif"},"Alef":{"weight":["regular","700"],"fallback":"sans-serif"},"Julius Sans One":{"weight":["regular"],"fallback":"sans-serif"},"Tenor Sans":{"weight":["regular"],"fallback":"sans-serif"},"Nothing You Could Do":{"weight":["regular"],"fallback":"handwriting"},"Cutive Mono":{"weight":["regular"],"fallback":"monospace"},"Khula":{"weight":["300","regular","600","700","800"],"fallback":"sans-serif"},"Adamina":{"weight":["regular"],"fallback":"serif"},"Playball":{"weight":["regular"],"fallback":"display"},"Audiowide":{"weight":["regular"],"fallback":"display"},"Jaldi":{"weight":["regular","700"],"fallback":"sans-serif"},"Black Ops One":{"weight":["regular"],"fallback":"display"},"Signika Negative":{"weight":["300","regular","600","700"],"fallback":"sans-serif"},"Shadows Into Light Two":{"weight":["regular"],"fallback":"handwriting"},"Armata":{"weight":["regular"],"fallback":"sans-serif"},"Mali":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"handwriting"},"Antic":{"weight":["regular"],"fallback":"sans-serif"},"Varela":{"weight":["regular"],"fallback":"sans-serif"},"Berkshire Swash":{"weight":["regular"],"fallback":"handwriting"},"Aleo":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"serif"},"Gelasio":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Rufina":{"weight":["regular","700"],"fallback":"serif"},"Markazi Text":{"weight":["regular","500","600","700"],"fallback":"serif"},"Nanum Gothic Coding":{"weight":["regular","700"],"fallback":"monospace"},"Allan":{"weight":["regular","700"],"fallback":"display"},"Noto Serif KR":{"weight":["200","300","regular","500","600","700","900"],"fallback":"serif"},"Abhaya Libre":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Quantico":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Marcellus":{"weight":["regular"],"fallback":"serif"},"Sorts Mill Goudy":{"weight":["regular","italic"],"fallback":"serif"},"Alata":{"weight":["regular"],"fallback":"sans-serif"},"Knewave":{"weight":["regular"],"fallback":"display"},"Alex Brush":{"weight":["regular"],"fallback":"handwriting"},"Aclonica":{"weight":["regular"],"fallback":"sans-serif"},"Gruppo":{"weight":["regular"],"fallback":"display"},"Damion":{"weight":["regular"],"fallback":"handwriting"},"Itim":{"weight":["regular"],"fallback":"handwriting"},"Bungee":{"weight":["regular"],"fallback":"display"},"Gochi Hand":{"weight":["regular"],"fallback":"handwriting"},"Mr Dafoe":{"weight":["regular"],"fallback":"handwriting"},"Freckle Face":{"weight":["regular"],"fallback":"display"},"Baloo Chettan 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Trirong":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Kosugi Maru":{"weight":["regular"],"fallback":"sans-serif"},"Rubik Mono One":{"weight":["regular"],"fallback":"sans-serif"},"Fira Mono":{"weight":["regular","500","700"],"fallback":"monospace"},"Cantata One":{"weight":["regular"],"fallback":"serif"},"Suez One":{"weight":["regular"],"fallback":"serif"},"Niconne":{"weight":["regular"],"fallback":"handwriting"},"Six Caps":{"weight":["regular"],"fallback":"sans-serif"},"Miriam Libre":{"weight":["regular","700"],"fallback":"sans-serif"},"Sarala":{"weight":["regular","700"],"fallback":"sans-serif"},"Sintony":{"weight":["regular","700"],"fallback":"sans-serif"},"Titan One":{"weight":["regular"],"fallback":"display"},"Encode Sans Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Cousine":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"PT Serif Caption":{"weight":["regular","italic"],"fallback":"serif"},"Courier Prime":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Overlock":{"weight":["regular","italic","700","700italic","900","900italic"],"fallback":"display"},"Allerta":{"weight":["regular"],"fallback":"sans-serif"},"Arsenal":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Black Han Sans":{"weight":["regular"],"fallback":"sans-serif"},"Squada One":{"weight":["regular"],"fallback":"display"},"Lateef":{"weight":["regular"],"fallback":"handwriting"},"Arima Madurai":{"weight":["100","200","300","regular","500","700","800","900"],"fallback":"display"},"Ramabhadra":{"weight":["regular"],"fallback":"sans-serif"},"Covered By Your Grace":{"weight":["regular"],"fallback":"handwriting"},"Martel Sans":{"weight":["200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Rancho":{"weight":["regular"],"fallback":"handwriting"},"Enriqueta":{"weight":["regular","500","600","700"],"fallback":"serif"},"Syncopate":{"weight":["regular","700"],"fallback":"sans-serif"},"Pinyon Script":{"weight":["regular"],"fallback":"handwriting"},"Chewy":{"weight":["regular"],"fallback":"display"},"Oleo Script":{"weight":["regular","700"],"fallback":"display"},"Kreon":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Candal":{"weight":["regular"],"fallback":"sans-serif"},"Spinnaker":{"weight":["regular"],"fallback":"sans-serif"},"Reem Kufi":{"weight":["regular"],"fallback":"sans-serif"},"Krub":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Michroma":{"weight":["regular"],"fallback":"sans-serif"},"Annie Use Your Telescope":{"weight":["regular"],"fallback":"handwriting"},"Lilita One":{"weight":["regular"],"fallback":"display"},"Coda":{"weight":["regular","800"],"fallback":"display"},"Fredericka the Great":{"weight":["regular"],"fallback":"display"},"Mukta Malar":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Bowlby One SC":{"weight":["regular"],"fallback":"display"},"Average":{"weight":["regular"],"fallback":"serif"},"Londrina Solid":{"weight":["100","300","regular","900"],"fallback":"display"},"New Tegomin":{"weight":["regular"],"fallback":"serif"},"Glegoo":{"weight":["regular","700"],"fallback":"serif"},"Pridi":{"weight":["200","300","regular","500","600","700"],"fallback":"serif"},"Boogaloo":{"weight":["regular"],"fallback":"display"},"Red Hat Text":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Aldrich":{"weight":["regular"],"fallback":"sans-serif"},"Basic":{"weight":["regular"],"fallback":"sans-serif"},"Capriola":{"weight":["regular"],"fallback":"sans-serif"},"Forum":{"weight":["regular"],"fallback":"display"},"Reenie Beanie":{"weight":["regular"],"fallback":"handwriting"},"Laila":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Alegreya Sans SC":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Share Tech Mono":{"weight":["regular"],"fallback":"monospace"},"Italianno":{"weight":["regular"],"fallback":"handwriting"},"Lalezar":{"weight":["regular"],"fallback":"display"},"Lexend Deca":{"weight":["regular"],"fallback":"sans-serif"},"Caveat Brush":{"weight":["regular"],"fallback":"handwriting"},"Shrikhand":{"weight":["regular"],"fallback":"display"},"Creepster":{"weight":["regular"],"fallback":"display"},"Kameron":{"weight":["regular","700"],"fallback":"serif"},"Coda Caption":{"weight":["800"],"fallback":"sans-serif"},"Goudy Bookletter 1911":{"weight":["regular"],"fallback":"serif"},"Coming Soon":{"weight":["regular"],"fallback":"handwriting"},"Saira Extra Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Yrsa":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Telex":{"weight":["regular"],"fallback":"sans-serif"},"Bevan":{"weight":["regular"],"fallback":"display"},"Voltaire":{"weight":["regular"],"fallback":"sans-serif"},"Days One":{"weight":["regular"],"fallback":"sans-serif"},"Cabin Sketch":{"weight":["regular","700"],"fallback":"display"},"Norican":{"weight":["regular"],"fallback":"handwriting"},"Rambla":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Mukta Vaani":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Average Sans":{"weight":["regular"],"fallback":"sans-serif"},"Arbutus Slab":{"weight":["regular"],"fallback":"serif"},"Sansita":{"weight":["regular","italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Mada":{"weight":["200","300","regular","500","600","700","900"],"fallback":"sans-serif"},"Just Another Hand":{"weight":["regular"],"fallback":"handwriting"},"Nobile":{"weight":["regular","italic","500","500italic","700","700italic"],"fallback":"sans-serif"},"Gilda Display":{"weight":["regular"],"fallback":"serif"},"VT323":{"weight":["regular"],"fallback":"monospace"},"Mandali":{"weight":["regular"],"fallback":"sans-serif"},"Caudex":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Anonymous Pro":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Bentham":{"weight":["regular"],"fallback":"serif"},"Overpass Mono":{"weight":["300","regular","600","700"],"fallback":"monospace"},"Sen":{"weight":["regular","700","800"],"fallback":"sans-serif"},"Kadwa":{"weight":["regular","700"],"fallback":"serif"},"Cambay":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Yesteryear":{"weight":["regular"],"fallback":"handwriting"},"Molengo":{"weight":["regular"],"fallback":"sans-serif"},"Nixie One":{"weight":["regular"],"fallback":"display"},"Scada":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Crimson Pro":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Arizonia":{"weight":["regular"],"fallback":"handwriting"},"Racing Sans One":{"weight":["regular"],"fallback":"display"},"Scheherazade":{"weight":["regular","700"],"fallback":"serif"},"Seaweed Script":{"weight":["regular"],"fallback":"display"},"Belleza":{"weight":["regular"],"fallback":"sans-serif"},"Harmattan":{"weight":["regular","700"],"fallback":"sans-serif"},"Leckerli One":{"weight":["regular"],"fallback":"handwriting"},"Ovo":{"weight":["regular"],"fallback":"serif"},"Merienda One":{"weight":["regular"],"fallback":"handwriting"},"Holtwood One SC":{"weight":["regular"],"fallback":"serif"},"Cinzel Decorative":{"weight":["regular","700","900"],"fallback":"display"},"Literata":{"weight":["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Mrs Saint Delafield":{"weight":["regular"],"fallback":"handwriting"},"Schoolbell":{"weight":["regular"],"fallback":"handwriting"},"Bungee Inline":{"weight":["regular"],"fallback":"display"},"Herr Von Muellerhoff":{"weight":["regular"],"fallback":"handwriting"},"Oranienbaum":{"weight":["regular"],"fallback":"serif"},"Baloo Tamma 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Sniglet":{"weight":["regular","800"],"fallback":"display"},"Bubblegum Sans":{"weight":["regular"],"fallback":"display"},"Rochester":{"weight":["regular"],"fallback":"handwriting"},"Judson":{"weight":["regular","italic","700"],"fallback":"serif"},"Marcellus SC":{"weight":["regular"],"fallback":"serif"},"Darker Grotesque":{"weight":["300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Changa One":{"weight":["regular","italic"],"fallback":"display"},"Alegreya SC":{"weight":["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Pattaya":{"weight":["regular"],"fallback":"sans-serif"},"Mallanna":{"weight":["regular"],"fallback":"sans-serif"},"Share":{"weight":["regular","italic","700","700italic"],"fallback":"display"},"Podkova":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Allerta Stencil":{"weight":["regular"],"fallback":"sans-serif"},"Charm":{"weight":["regular","700"],"fallback":"handwriting"},"Niramit":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Halant":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Graduate":{"weight":["regular"],"fallback":"display"},"Nanum Brush Script":{"weight":["regular"],"fallback":"handwriting"},"Amita":{"weight":["regular","700"],"fallback":"handwriting"},"Rozha One":{"weight":["regular"],"fallback":"serif"},"Kristi":{"weight":["regular"],"fallback":"handwriting"},"Biryani":{"weight":["200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Lustria":{"weight":["regular"],"fallback":"serif"},"Delius":{"weight":["regular"],"fallback":"handwriting"},"Suranna":{"weight":["regular"],"fallback":"serif"},"Amethysta":{"weight":["regular"],"fallback":"serif"},"Contrail One":{"weight":["regular"],"fallback":"display"},"Averia Serif Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Do Hyeon":{"weight":["regular"],"fallback":"sans-serif"},"IBM Plex Sans Condensed":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Marvel":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Rye":{"weight":["regular"],"fallback":"display"},"Fauna One":{"weight":["regular"],"fallback":"serif"},"Corben":{"weight":["regular","700"],"fallback":"display"},"Cedarville Cursive":{"weight":["regular"],"fallback":"handwriting"},"Jockey One":{"weight":["regular"],"fallback":"sans-serif"},"Libre Caslon Text":{"weight":["regular","italic","700"],"fallback":"serif"},"Carrois Gothic":{"weight":["regular"],"fallback":"sans-serif"},"Calligraffitti":{"weight":["regular"],"fallback":"handwriting"},"Trocchi":{"weight":["regular"],"fallback":"serif"},"Spectral SC":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"serif"},"Coustard":{"weight":["regular","900"],"fallback":"serif"},"Copse":{"weight":["regular"],"fallback":"serif"},"Athiti":{"weight":["200","300","regular","500","600","700"],"fallback":"sans-serif"},"Carme":{"weight":["regular"],"fallback":"sans-serif"},"Rosario":{"weight":["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"],"fallback":"sans-serif"},"Limelight":{"weight":["regular"],"fallback":"display"},"Jua":{"weight":["regular"],"fallback":"sans-serif"},"Petit Formal Script":{"weight":["regular"],"fallback":"handwriting"},"Love Ya Like A Sister":{"weight":["regular"],"fallback":"display"},"GFS Didot":{"weight":["regular"],"fallback":"serif"},"Aladin":{"weight":["regular"],"fallback":"handwriting"},"Palanquin Dark":{"weight":["regular","500","600","700"],"fallback":"sans-serif"},"Amiko":{"weight":["regular","600","700"],"fallback":"sans-serif"},"Cormorant Infant":{"weight":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"serif"},"Wallpoet":{"weight":["regular"],"fallback":"display"},"Magra":{"weight":["regular","700"],"fallback":"sans-serif"},"Grand Hotel":{"weight":["regular"],"fallback":"handwriting"},"Sunflower":{"weight":["300","500","700"],"fallback":"sans-serif"},"Big Shoulders Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Slabo 13px":{"weight":["regular"],"fallback":"serif"},"Pangolin":{"weight":["regular"],"fallback":"handwriting"},"Mr De Haviland":{"weight":["regular"],"fallback":"handwriting"},"K2D":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Marmelad":{"weight":["regular"],"fallback":"sans-serif"},"Thasadith":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"La Belle Aurore":{"weight":["regular"],"fallback":"handwriting"},"Hanuman":{"weight":["regular","700"],"fallback":"serif"},"Metrophobic":{"weight":["regular"],"fallback":"sans-serif"},"Epilogue":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"sans-serif"},"Radley":{"weight":["regular","italic"],"fallback":"serif"},"Poly":{"weight":["regular","italic"],"fallback":"serif"},"Commissioner":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Averia Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"IM Fell Double Pica":{"weight":["regular","italic"],"fallback":"serif"},"Comic Neue":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"handwriting"},"Baskervville":{"weight":["regular","italic"],"fallback":"serif"},"Kelly Slab":{"weight":["regular"],"fallback":"display"},"Oxygen Mono":{"weight":["regular"],"fallback":"monospace"},"Maitree":{"weight":["200","300","regular","500","600","700"],"fallback":"serif"},"Buenard":{"weight":["regular","700"],"fallback":"serif"},"Duru Sans":{"weight":["regular"],"fallback":"sans-serif"},"Baloo Da 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Grandstander":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"display"},"Balthazar":{"weight":["regular"],"fallback":"serif"},"ZCOOL XiaoWei":{"weight":["regular"],"fallback":"serif"},"Cutive":{"weight":["regular"],"fallback":"serif"},"Antic Didone":{"weight":["regular"],"fallback":"serif"},"Waiting for the Sunrise":{"weight":["regular"],"fallback":"handwriting"},"B612 Mono":{"weight":["regular","italic","700","700italic"],"fallback":"monospace"},"Chonburi":{"weight":["regular"],"fallback":"display"},"Montaga":{"weight":["regular"],"fallback":"serif"},"UnifrakturMaguntia":{"weight":["regular"],"fallback":"display"},"Kosugi":{"weight":["regular"],"fallback":"sans-serif"},"Gravitas One":{"weight":["regular"],"fallback":"display"},"Mirza":{"weight":["regular","500","600","700"],"fallback":"display"},"Manjari":{"weight":["100","regular","700"],"fallback":"sans-serif"},"Alike":{"weight":["regular"],"fallback":"serif"},"Lekton":{"weight":["regular","italic","700"],"fallback":"sans-serif"},"Sora":{"weight":["100","200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Gabriela":{"weight":["regular"],"fallback":"serif"},"Lemon":{"weight":["regular"],"fallback":"display"},"Esteban":{"weight":["regular"],"fallback":"serif"},"Alatsi":{"weight":["regular"],"fallback":"sans-serif"},"Turret Road":{"weight":["200","300","regular","500","700","800"],"fallback":"display"},"Monsieur La Doulaise":{"weight":["regular"],"fallback":"handwriting"},"Pompiere":{"weight":["regular"],"fallback":"display"},"Cormorant SC":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Kurale":{"weight":["regular"],"fallback":"serif"},"Frijole":{"weight":["regular"],"fallback":"display"},"Rammetto One":{"weight":["regular"],"fallback":"display"},"Chelsea Market":{"weight":["regular"],"fallback":"display"},"Megrim":{"weight":["regular"],"fallback":"display"},"IM Fell English":{"weight":["regular","italic"],"fallback":"serif"},"Oregano":{"weight":["regular","italic"],"fallback":"display"},"Andada":{"weight":["regular"],"fallback":"serif"},"Mate":{"weight":["regular","italic"],"fallback":"serif"},"Convergence":{"weight":["regular"],"fallback":"sans-serif"},"Rouge Script":{"weight":["regular"],"fallback":"handwriting"},"Bowlby One":{"weight":["regular"],"fallback":"display"},"Emilys Candy":{"weight":["regular"],"fallback":"display"},"Wendy One":{"weight":["regular"],"fallback":"sans-serif"},"Fira Code":{"weight":["300","regular","500","600","700"],"fallback":"monospace"},"Dawning of a New Day":{"weight":["regular"],"fallback":"handwriting"},"Sue Ellen Francisco":{"weight":["regular"],"fallback":"handwriting"},"Gurajada":{"weight":["regular"],"fallback":"serif"},"David Libre":{"weight":["regular","500","700"],"fallback":"serif"},"Sofia":{"weight":["regular"],"fallback":"handwriting"},"Short Stack":{"weight":["regular"],"fallback":"handwriting"},"Chau Philomene One":{"weight":["regular","italic"],"fallback":"sans-serif"},"Bellefair":{"weight":["regular"],"fallback":"serif"},"Belgrano":{"weight":["regular"],"fallback":"serif"},"Expletus Sans":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"display"},"Original Surfer":{"weight":["regular"],"fallback":"display"},"Doppio One":{"weight":["regular"],"fallback":"sans-serif"},"Be Vietnam":{"weight":["100","100italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Sail":{"weight":["regular"],"fallback":"display"},"Inder":{"weight":["regular"],"fallback":"sans-serif"},"Give You Glory":{"weight":["regular"],"fallback":"handwriting"},"IM Fell DW Pica":{"weight":["regular","italic"],"fallback":"serif"},"McLaren":{"weight":["regular"],"fallback":"display"},"Encode Sans Semi Condensed":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Bungee Shade":{"weight":["regular"],"fallback":"display"},"Baumans":{"weight":["regular"],"fallback":"display"},"Brawler":{"weight":["regular"],"fallback":"serif"},"Tenali Ramakrishna":{"weight":["regular"],"fallback":"sans-serif"},"Ceviche One":{"weight":["regular"],"fallback":"display"},"B612":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Zeyada":{"weight":["regular"],"fallback":"handwriting"},"Mountains of Christmas":{"weight":["regular","700"],"fallback":"display"},"Sedgwick Ave":{"weight":["regular"],"fallback":"handwriting"},"Gugi":{"weight":["regular"],"fallback":"display"},"Oleo Script Swash Caps":{"weight":["regular","700"],"fallback":"display"},"Skranji":{"weight":["regular","700"],"fallback":"display"},"Meddon":{"weight":["regular"],"fallback":"handwriting"},"NTR":{"weight":["regular"],"fallback":"sans-serif"},"Finger Paint":{"weight":["regular"],"fallback":"display"},"Blinker":{"weight":["100","200","300","regular","600","700","800","900"],"fallback":"sans-serif"},"Fanwood Text":{"weight":["regular","italic"],"fallback":"serif"},"Grenze Gotisch":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"display"},"Hepta Slab":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Anaheim":{"weight":["regular"],"fallback":"sans-serif"},"Major Mono Display":{"weight":["regular"],"fallback":"monospace"},"Quando":{"weight":["regular"],"fallback":"serif"},"Andika":{"weight":["regular"],"fallback":"sans-serif"},"Qwigley":{"weight":["regular"],"fallback":"handwriting"},"Vast Shadow":{"weight":["regular"],"fallback":"display"},"Happy Monkey":{"weight":["regular"],"fallback":"display"},"Montez":{"weight":["regular"],"fallback":"handwriting"},"Proza Libre":{"weight":["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"],"fallback":"sans-serif"},"Homenaje":{"weight":["regular"],"fallback":"sans-serif"},"Ma Shan Zheng":{"weight":["regular"],"fallback":"handwriting"},"Loved by the King":{"weight":["regular"],"fallback":"handwriting"},"Trade Winds":{"weight":["regular"],"fallback":"display"},"Stardos Stencil":{"weight":["regular","700"],"fallback":"display"},"Raleway Dots":{"weight":["regular"],"fallback":"display"},"Libre Barcode 39":{"weight":["regular"],"fallback":"display"},"Recursive":{"weight":["300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Numans":{"weight":["regular"],"fallback":"sans-serif"},"RocknRoll One":{"weight":["regular"],"fallback":"sans-serif"},"Rakkas":{"weight":["regular"],"fallback":"display"},"Mouse Memoirs":{"weight":["regular"],"fallback":"sans-serif"},"BioRhyme":{"weight":["200","300","regular","700","800"],"fallback":"serif"},"Ranchers":{"weight":["regular"],"fallback":"display"},"Patrick Hand SC":{"weight":["regular"],"fallback":"handwriting"},"Codystar":{"weight":["300","regular"],"fallback":"display"},"Rasa":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Meera Inimai":{"weight":["regular"],"fallback":"sans-serif"},"Clicker Script":{"weight":["regular"],"fallback":"handwriting"},"DM Mono":{"weight":["300","300italic","regular","italic","500","500italic"],"fallback":"monospace"},"Gaegu":{"weight":["300","regular","700"],"fallback":"handwriting"},"Aguafina Script":{"weight":["regular"],"fallback":"handwriting"},"Unkempt":{"weight":["regular","700"],"fallback":"display"},"Over the Rainbow":{"weight":["regular"],"fallback":"handwriting"},"Fondamento":{"weight":["regular","italic"],"fallback":"handwriting"},"Battambang":{"weight":["regular","700"],"fallback":"display"},"Cambo":{"weight":["regular"],"fallback":"serif"},"Crafty Girls":{"weight":["regular"],"fallback":"handwriting"},"Nova Mono":{"weight":["regular"],"fallback":"monospace"},"Tillana":{"weight":["regular","500","600","700","800"],"fallback":"handwriting"},"Alike Angular":{"weight":["regular"],"fallback":"serif"},"Kumbh Sans":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Katibeh":{"weight":["regular"],"fallback":"display"},"Sarpanch":{"weight":["regular","500","600","700","800","900"],"fallback":"sans-serif"},"Antonio":{"weight":["100","200","300","regular","500","600","700"],"fallback":"sans-serif"},"Mansalva":{"weight":["regular"],"fallback":"handwriting"},"Faster One":{"weight":["regular"],"fallback":"display"},"Federo":{"weight":["regular"],"fallback":"sans-serif"},"Dokdo":{"weight":["regular"],"fallback":"handwriting"},"Hi Melody":{"weight":["regular"],"fallback":"handwriting"},"Euphoria Script":{"weight":["regular"],"fallback":"handwriting"},"Orienta":{"weight":["regular"],"fallback":"sans-serif"},"Space Grotesk":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Galada":{"weight":["regular"],"fallback":"display"},"Timmana":{"weight":["regular"],"fallback":"sans-serif"},"JetBrains Mono":{"weight":["100","200","300","regular","500","600","700","800","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"monospace"},"Baloo Thambi 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Averia Sans Libre":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"UnifrakturCook":{"weight":["700"],"fallback":"display"},"Tauri":{"weight":["regular"],"fallback":"sans-serif"},"Share Tech":{"weight":["regular"],"fallback":"sans-serif"},"Walter Turncoat":{"weight":["regular"],"fallback":"handwriting"},"Geo":{"weight":["regular","italic"],"fallback":"sans-serif"},"Atma":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Almendra":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Jomhuria":{"weight":["regular"],"fallback":"display"},"Strait":{"weight":["regular"],"fallback":"sans-serif"},"Encode Sans Expanded":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Metamorphous":{"weight":["regular"],"fallback":"display"},"Iceland":{"weight":["regular"],"fallback":"display"},"Ledger":{"weight":["regular"],"fallback":"serif"},"Poller One":{"weight":["regular"],"fallback":"display"},"Vollkorn SC":{"weight":["regular","600","700","900"],"fallback":"serif"},"Vesper Libre":{"weight":["regular","500","700","900"],"fallback":"serif"},"Aref Ruqaa":{"weight":["regular","700"],"fallback":"serif"},"Livvic":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"],"fallback":"sans-serif"},"Caladea":{"weight":["regular","italic","700","700italic"],"fallback":"serif"},"Montserrat Subrayada":{"weight":["regular","700"],"fallback":"sans-serif"},"Vampiro One":{"weight":["regular"],"fallback":"display"},"Farro":{"weight":["300","regular","500","700"],"fallback":"sans-serif"},"New Rocker":{"weight":["regular"],"fallback":"display"},"Delius Swash Caps":{"weight":["regular"],"fallback":"handwriting"},"Calistoga":{"weight":["regular"],"fallback":"display"},"Carrois Gothic SC":{"weight":["regular"],"fallback":"sans-serif"},"Italiana":{"weight":["regular"],"fallback":"serif"},"Inknut Antiqua":{"weight":["300","regular","500","600","700","800","900"],"fallback":"serif"},"Life Savers":{"weight":["regular","700","800"],"fallback":"display"},"Imprima":{"weight":["regular"],"fallback":"sans-serif"},"Mako":{"weight":["regular"],"fallback":"sans-serif"},"Lily Script One":{"weight":["regular"],"fallback":"display"},"Bilbo Swash Caps":{"weight":["regular"],"fallback":"handwriting"},"IM Fell English SC":{"weight":["regular"],"fallback":"serif"},"Red Rose":{"weight":["300","regular","500","600","700"],"fallback":"display"},"Shojumaru":{"weight":["regular"],"fallback":"display"},"Prosto One":{"weight":["regular"],"fallback":"display"},"Bodoni Moda":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Mukta Mahee":{"weight":["200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Bubbler One":{"weight":["regular"],"fallback":"sans-serif"},"The Girl Next Door":{"weight":["regular"],"fallback":"handwriting"},"Artifika":{"weight":["regular"],"fallback":"serif"},"Cantora One":{"weight":["regular"],"fallback":"sans-serif"},"Scope One":{"weight":["regular"],"fallback":"serif"},"Yusei Magic":{"weight":["regular"],"fallback":"sans-serif"},"Oxanium":{"weight":["200","300","regular","500","600","700","800"],"fallback":"display"},"Tienne":{"weight":["regular","700","900"],"fallback":"serif"},"Salsa":{"weight":["regular"],"fallback":"display"},"Flamenco":{"weight":["300","regular"],"fallback":"display"},"Port Lligat Sans":{"weight":["regular"],"fallback":"sans-serif"},"Denk One":{"weight":["regular"],"fallback":"sans-serif"},"Fontdiner Swanky":{"weight":["regular"],"fallback":"display"},"Nova Round":{"weight":["regular"],"fallback":"display"},"Gafata":{"weight":["regular"],"fallback":"sans-serif"},"Cormorant Upright":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Cherry Cream Soda":{"weight":["regular"],"fallback":"display"},"Asul":{"weight":["regular","700"],"fallback":"sans-serif"},"Big Shoulders Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Voces":{"weight":["regular"],"fallback":"display"},"Dynalight":{"weight":["regular"],"fallback":"display"},"Peralta":{"weight":["regular"],"fallback":"display"},"Mina":{"weight":["regular","700"],"fallback":"sans-serif"},"Headland One":{"weight":["regular"],"fallback":"serif"},"Medula One":{"weight":["regular"],"fallback":"display"},"Englebert":{"weight":["regular"],"fallback":"sans-serif"},"Nova Square":{"weight":["regular"],"fallback":"display"},"Delius Unicase":{"weight":["regular","700"],"fallback":"handwriting"},"Sumana":{"weight":["regular","700"],"fallback":"serif"},"Bilbo":{"weight":["regular"],"fallback":"handwriting"},"Engagement":{"weight":["regular"],"fallback":"handwriting"},"ZCOOL QingKe HuangYou":{"weight":["regular"],"fallback":"display"},"Fresca":{"weight":["regular"],"fallback":"sans-serif"},"Ranga":{"weight":["regular","700"],"fallback":"display"},"Orelega One":{"weight":["regular"],"fallback":"display"},"Zen Dots":{"weight":["regular"],"fallback":"display"},"Shippori Mincho":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Henny Penny":{"weight":["regular"],"fallback":"display"},"Della Respira":{"weight":["regular"],"fallback":"serif"},"Cherry Swash":{"weight":["regular","700"],"fallback":"display"},"Notable":{"weight":["regular"],"fallback":"sans-serif"},"Arya":{"weight":["regular","700"],"fallback":"sans-serif"},"Slackey":{"weight":["regular"],"fallback":"display"},"Vibur":{"weight":["regular"],"fallback":"handwriting"},"Coiny":{"weight":["regular"],"fallback":"display"},"Lexend Zetta":{"weight":["regular"],"fallback":"sans-serif"},"Elsie":{"weight":["regular","900"],"fallback":"display"},"Fjord One":{"weight":["regular"],"fallback":"serif"},"Puritan":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Just Me Again Down Here":{"weight":["regular"],"fallback":"handwriting"},"Khmer":{"weight":["regular"],"fallback":"display"},"Girassol":{"weight":["regular"],"fallback":"display"},"Bellota Text":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Yatra One":{"weight":["regular"],"fallback":"display"},"Stalemate":{"weight":["regular"],"fallback":"handwriting"},"Wire One":{"weight":["regular"],"fallback":"sans-serif"},"Spicy Rice":{"weight":["regular"],"fallback":"display"},"Saira Stencil One":{"weight":["regular"],"fallback":"display"},"Kite One":{"weight":["regular"],"fallback":"sans-serif"},"Port Lligat Slab":{"weight":["regular"],"fallback":"serif"},"Baloo Bhaina 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Pavanam":{"weight":["regular"],"fallback":"sans-serif"},"Eater":{"weight":["regular"],"fallback":"display"},"Text Me One":{"weight":["regular"],"fallback":"sans-serif"},"Ribeye":{"weight":["regular"],"fallback":"display"},"Pirata One":{"weight":["regular"],"fallback":"display"},"Amarante":{"weight":["regular"],"fallback":"display"},"Milonga":{"weight":["regular"],"fallback":"display"},"Habibi":{"weight":["regular"],"fallback":"serif"},"Ruslan Display":{"weight":["regular"],"fallback":"display"},"Encode Sans Semi Expanded":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Nokora":{"weight":["regular","700"],"fallback":"serif"},"Rowdies":{"weight":["300","regular","700"],"fallback":"display"},"Kranky":{"weight":["regular"],"fallback":"display"},"Bigelow Rules":{"weight":["regular"],"fallback":"display"},"League Script":{"weight":["regular"],"fallback":"handwriting"},"Swanky and Moo Moo":{"weight":["regular"],"fallback":"handwriting"},"Karantina":{"weight":["300","regular","700"],"fallback":"display"},"Lovers Quarrel":{"weight":["regular"],"fallback":"handwriting"},"Mate SC":{"weight":["regular"],"fallback":"serif"},"Manuale":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Germania One":{"weight":["regular"],"fallback":"display"},"Sura":{"weight":["regular","700"],"fallback":"serif"},"Sarina":{"weight":["regular"],"fallback":"display"},"Macondo Swash Caps":{"weight":["regular"],"fallback":"display"},"Kotta One":{"weight":["regular"],"fallback":"serif"},"IM Fell French Canon SC":{"weight":["regular"],"fallback":"serif"},"Julee":{"weight":["regular"],"fallback":"handwriting"},"Charmonman":{"weight":["regular","700"],"fallback":"handwriting"},"Shanti":{"weight":["regular"],"fallback":"sans-serif"},"Gamja Flower":{"weight":["regular"],"fallback":"handwriting"},"Averia Gruesa Libre":{"weight":["regular"],"fallback":"display"},"Stint Ultra Expanded":{"weight":["regular"],"fallback":"display"},"Uncial Antiqua":{"weight":["regular"],"fallback":"display"},"Mystery Quest":{"weight":["regular"],"fallback":"display"},"Goldman":{"weight":["regular","700"],"fallback":"display"},"Paprika":{"weight":["regular"],"fallback":"display"},"IM Fell French Canon":{"weight":["regular","italic"],"fallback":"serif"},"Prociono":{"weight":["regular"],"fallback":"serif"},"Kodchasan":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Libre Barcode 39 Text":{"weight":["regular"],"fallback":"display"},"Quintessential":{"weight":["regular"],"fallback":"handwriting"},"Moul":{"weight":["regular"],"fallback":"display"},"Libre Barcode 128":{"weight":["regular"],"fallback":"display"},"Ramaraja":{"weight":["regular"],"fallback":"serif"},"Modak":{"weight":["regular"],"fallback":"display"},"Song Myung":{"weight":["regular"],"fallback":"serif"},"East Sea Dokdo":{"weight":["regular"],"fallback":"handwriting"},"Crushed":{"weight":["regular"],"fallback":"display"},"Dekko":{"weight":["regular"],"fallback":"handwriting"},"Chilanka":{"weight":["regular"],"fallback":"handwriting"},"Hanalei Fill":{"weight":["regular"],"fallback":"display"},"Mogra":{"weight":["regular"],"fallback":"display"},"Baloo Tammudu 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Baloo Bhai 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Libre Barcode 39 Extended Text":{"weight":["regular"],"fallback":"display"},"Rosarivo":{"weight":["regular","italic"],"fallback":"serif"},"KoHo":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Offside":{"weight":["regular"],"fallback":"display"},"Reggae One":{"weight":["regular"],"fallback":"display"},"Syne":{"weight":["regular","500","600","700","800"],"fallback":"sans-serif"},"Zilla Slab Highlight":{"weight":["regular","700"],"fallback":"display"},"Donegal One":{"weight":["regular"],"fallback":"serif"},"Bellota":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"display"},"Stoke":{"weight":["300","regular"],"fallback":"serif"},"Cormorant Unicase":{"weight":["300","regular","500","600","700"],"fallback":"serif"},"Cagliostro":{"weight":["regular"],"fallback":"sans-serif"},"Rationale":{"weight":["regular"],"fallback":"sans-serif"},"Margarine":{"weight":["regular"],"fallback":"display"},"Sancreek":{"weight":["regular"],"fallback":"display"},"Inria Serif":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"serif"},"Overlock SC":{"weight":["regular"],"fallback":"display"},"Nosifer":{"weight":["regular"],"fallback":"display"},"Libre Barcode EAN13 Text":{"weight":["regular"],"fallback":"display"},"Yeon Sung":{"weight":["regular"],"fallback":"display"},"Ruluko":{"weight":["regular"],"fallback":"sans-serif"},"Simonetta":{"weight":["regular","italic","900","900italic"],"fallback":"display"},"Lakki Reddy":{"weight":["regular"],"fallback":"handwriting"},"Baloo Paaji 2":{"weight":["regular","500","600","700","800"],"fallback":"display"},"Chango":{"weight":["regular"],"fallback":"display"},"Galdeano":{"weight":["regular"],"fallback":"sans-serif"},"Fahkwang":{"weight":["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Elsie Swash Caps":{"weight":["regular","900"],"fallback":"display"},"Buda":{"weight":["300"],"fallback":"display"},"Condiment":{"weight":["regular"],"fallback":"handwriting"},"Barrio":{"weight":["regular"],"fallback":"display"},"Chicle":{"weight":["regular"],"fallback":"display"},"Angkor":{"weight":["regular"],"fallback":"display"},"Akronim":{"weight":["regular"],"fallback":"display"},"Tomorrow":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"sans-serif"},"Sonsie One":{"weight":["regular"],"fallback":"display"},"Kumar One":{"weight":["regular"],"fallback":"display"},"Autour One":{"weight":["regular"],"fallback":"display"},"Libre Caslon Display":{"weight":["regular"],"fallback":"serif"},"Farsan":{"weight":["regular"],"fallback":"display"},"Fenix":{"weight":["regular"],"fallback":"serif"},"Solway":{"weight":["300","regular","500","700","800"],"fallback":"serif"},"Kulim Park":{"weight":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"],"fallback":"sans-serif"},"Stint Ultra Condensed":{"weight":["regular"],"fallback":"display"},"Metal":{"weight":["regular"],"fallback":"display"},"Rum Raisin":{"weight":["regular"],"fallback":"sans-serif"},"Redressed":{"weight":["regular"],"fallback":"handwriting"},"Tulpen One":{"weight":["regular"],"fallback":"display"},"Petrona":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Marko One":{"weight":["regular"],"fallback":"serif"},"Asar":{"weight":["regular"],"fallback":"serif"},"Nova Flat":{"weight":["regular"],"fallback":"display"},"Koulen":{"weight":["regular"],"fallback":"display"},"Lexend Exa":{"weight":["regular"],"fallback":"sans-serif"},"Londrina Outline":{"weight":["regular"],"fallback":"display"},"Cute Font":{"weight":["regular"],"fallback":"display"},"IM Fell Great Primer":{"weight":["regular","italic"],"fallback":"serif"},"Junge":{"weight":["regular"],"fallback":"serif"},"Stylish":{"weight":["regular"],"fallback":"sans-serif"},"Lexend":{"weight":["100","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Spirax":{"weight":["regular"],"fallback":"display"},"Piazzolla":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Piedra":{"weight":["regular"],"fallback":"display"},"Ribeye Marrow":{"weight":["regular"],"fallback":"display"},"Dorsa":{"weight":["regular"],"fallback":"sans-serif"},"Ibarra Real Nova":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"IM Fell DW Pica SC":{"weight":["regular"],"fallback":"serif"},"Wellfleet":{"weight":["regular"],"fallback":"display"},"Eagle Lake":{"weight":["regular"],"fallback":"handwriting"},"Meie Script":{"weight":["regular"],"fallback":"handwriting"},"Goblin One":{"weight":["regular"],"fallback":"display"},"Flavors":{"weight":["regular"],"fallback":"display"},"Gotu":{"weight":["regular"],"fallback":"sans-serif"},"Linden Hill":{"weight":["regular","italic"],"fallback":"serif"},"Chathura":{"weight":["100","300","regular","700","800"],"fallback":"sans-serif"},"Croissant One":{"weight":["regular"],"fallback":"display"},"Jomolhari":{"weight":["regular"],"fallback":"serif"},"Srisakdi":{"weight":["regular","700"],"fallback":"display"},"Modern Antiqua":{"weight":["regular"],"fallback":"display"},"Joti One":{"weight":["regular"],"fallback":"display"},"Kavoon":{"weight":["regular"],"fallback":"display"},"Sulphur Point":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Castoro":{"weight":["regular","italic"],"fallback":"serif"},"Chela One":{"weight":["regular"],"fallback":"display"},"Atomic Age":{"weight":["regular"],"fallback":"display"},"Maiden Orange":{"weight":["regular"],"fallback":"display"},"Ruthie":{"weight":["regular"],"fallback":"handwriting"},"Bayon":{"weight":["regular"],"fallback":"display"},"Potta One":{"weight":["regular"],"fallback":"display"},"Iceberg":{"weight":["regular"],"fallback":"display"},"Bigshot One":{"weight":["regular"],"fallback":"display"},"Gorditas":{"weight":["regular","700"],"fallback":"display"},"Sree Krushnadevaraya":{"weight":["regular"],"fallback":"serif"},"Trykker":{"weight":["regular"],"fallback":"serif"},"Kufam":{"weight":["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"display"},"Diplomata SC":{"weight":["regular"],"fallback":"display"},"Poor Story":{"weight":["regular"],"fallback":"display"},"Sirin Stencil":{"weight":["regular"],"fallback":"display"},"Kavivanar":{"weight":["regular"],"fallback":"handwriting"},"Syne Mono":{"weight":["regular"],"fallback":"monospace"},"Metal Mania":{"weight":["regular"],"fallback":"display"},"Arbutus":{"weight":["regular"],"fallback":"display"},"Unlock":{"weight":["regular"],"fallback":"display"},"MuseoModerno":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"display"},"Glass Antiqua":{"weight":["regular"],"fallback":"display"},"Miniver":{"weight":["regular"],"fallback":"display"},"Griffy":{"weight":["regular"],"fallback":"display"},"Bokor":{"weight":["regular"],"fallback":"display"},"Felipa":{"weight":["regular"],"fallback":"handwriting"},"Inika":{"weight":["regular","700"],"fallback":"serif"},"Princess Sofia":{"weight":["regular"],"fallback":"handwriting"},"Mrs Sheppards":{"weight":["regular"],"fallback":"handwriting"},"Monofett":{"weight":["regular"],"fallback":"display"},"Sahitya":{"weight":["regular","700"],"fallback":"serif"},"Dela Gothic One":{"weight":["regular"],"fallback":"display"},"Shippori Mincho B1":{"weight":["regular","500","600","700","800"],"fallback":"serif"},"Beth Ellen":{"weight":["regular"],"fallback":"handwriting"},"Lancelot":{"weight":["regular"],"fallback":"display"},"Rhodium Libre":{"weight":["regular"],"fallback":"serif"},"Fraunces":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"Hachi Maru Pop":{"weight":["regular"],"fallback":"handwriting"},"Snippet":{"weight":["regular"],"fallback":"sans-serif"},"Content":{"weight":["regular","700"],"fallback":"display"},"Revalia":{"weight":["regular"],"fallback":"display"},"Diplomata":{"weight":["regular"],"fallback":"display"},"Libre Barcode 128 Text":{"weight":["regular"],"fallback":"display"},"Jacques Francois Shadow":{"weight":["regular"],"fallback":"display"},"Long Cang":{"weight":["regular"],"fallback":"handwriting"},"Caesar Dressing":{"weight":["regular"],"fallback":"display"},"Odor Mean Chey":{"weight":["regular"],"fallback":"display"},"Jolly Lodger":{"weight":["regular"],"fallback":"display"},"Texturina":{"weight":["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"],"fallback":"serif"},"DotGothic16":{"weight":["regular"],"fallback":"sans-serif"},"Ewert":{"weight":["regular"],"fallback":"display"},"Romanesco":{"weight":["regular"],"fallback":"handwriting"},"Kantumruy":{"weight":["300","regular","700"],"fallback":"sans-serif"},"Asset":{"weight":["regular"],"fallback":"display"},"Odibee Sans":{"weight":["regular"],"fallback":"display"},"Emblema One":{"weight":["regular"],"fallback":"display"},"Kdam Thmor":{"weight":["regular"],"fallback":"display"},"Dr Sugiyama":{"weight":["regular"],"fallback":"handwriting"},"Bahiana":{"weight":["regular"],"fallback":"display"},"GFS Neohellenic":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Oldenburg":{"weight":["regular"],"fallback":"display"},"Molle":{"weight":["italic"],"fallback":"handwriting"},"Ravi Prakash":{"weight":["regular"],"fallback":"display"},"Gayathri":{"weight":["100","regular","700"],"fallback":"sans-serif"},"Almendra SC":{"weight":["regular"],"fallback":"serif"},"Varta":{"weight":["300","regular","500","600","700"],"fallback":"sans-serif"},"Risque":{"weight":["regular"],"fallback":"display"},"Sansita Swashed":{"weight":["300","regular","500","600","700","800","900"],"fallback":"display"},"Kiwi Maru":{"weight":["300","regular","500"],"fallback":"serif"},"Dangrek":{"weight":["regular"],"fallback":"display"},"Devonshire":{"weight":["regular"],"fallback":"handwriting"},"Big Shoulders Stencil Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Jim Nightshade":{"weight":["regular"],"fallback":"handwriting"},"Smythe":{"weight":["regular"],"fallback":"display"},"Stick":{"weight":["regular"],"fallback":"sans-serif"},"Lexend Mega":{"weight":["regular"],"fallback":"sans-serif"},"Siemreap":{"weight":["regular"],"fallback":"display"},"Londrina Shadow":{"weight":["regular"],"fallback":"display"},"Train One":{"weight":["regular"],"fallback":"display"},"IM Fell Great Primer SC":{"weight":["regular"],"fallback":"serif"},"Barriecito":{"weight":["regular"],"fallback":"display"},"Underdog":{"weight":["regular"],"fallback":"display"},"Stalinist One":{"weight":["regular"],"fallback":"display"},"Mr Bedfort":{"weight":["regular"],"fallback":"handwriting"},"Freehand":{"weight":["regular"],"fallback":"display"},"MedievalSharp":{"weight":["regular"],"fallback":"display"},"Lexend Giga":{"weight":["regular"],"fallback":"sans-serif"},"Keania One":{"weight":["regular"],"fallback":"display"},"Peddana":{"weight":["regular"],"fallback":"serif"},"Galindo":{"weight":["regular"],"fallback":"display"},"Fascinate":{"weight":["regular"],"fallback":"display"},"Londrina Sketch":{"weight":["regular"],"fallback":"display"},"Gupter":{"weight":["regular","500","700"],"fallback":"serif"},"Nova Slim":{"weight":["regular"],"fallback":"display"},"Snowburst One":{"weight":["regular"],"fallback":"display"},"ZCOOL KuaiLe":{"weight":["regular"],"fallback":"display"},"Plaster":{"weight":["regular"],"fallback":"display"},"Fascinate Inline":{"weight":["regular"],"fallback":"display"},"Newsreader":{"weight":["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"],"fallback":"serif"},"Purple Purse":{"weight":["regular"],"fallback":"display"},"Sedgwick Ave Display":{"weight":["regular"],"fallback":"handwriting"},"Jacques Francois":{"weight":["regular"],"fallback":"serif"},"Almendra Display":{"weight":["regular"],"fallback":"display"},"Irish Grover":{"weight":["regular"],"fallback":"display"},"Kumar One Outline":{"weight":["regular"],"fallback":"display"},"Andika New Basic":{"weight":["regular","italic","700","700italic"],"fallback":"sans-serif"},"Libre Barcode 39 Extended":{"weight":["regular"],"fallback":"display"},"Taprom":{"weight":["regular"],"fallback":"display"},"Miss Fajardose":{"weight":["regular"],"fallback":"handwriting"},"IM Fell Double Pica SC":{"weight":["regular"],"fallback":"serif"},"Macondo":{"weight":["regular"],"fallback":"display"},"Ruge Boogie":{"weight":["regular"],"fallback":"handwriting"},"Sunshiney":{"weight":["regular"],"fallback":"handwriting"},"Brygada 1918":{"weight":["regular","500","600","700","italic","500italic","600italic","700italic"],"fallback":"serif"},"Grenze":{"weight":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],"fallback":"serif"},"Erica One":{"weight":["regular"],"fallback":"display"},"Seymour One":{"weight":["regular"],"fallback":"sans-serif"},"Supermercado One":{"weight":["regular"],"fallback":"display"},"Zhi Mang Xing":{"weight":["regular"],"fallback":"handwriting"},"Butterfly Kids":{"weight":["regular"],"fallback":"handwriting"},"Kirang Haerang":{"weight":["regular"],"fallback":"display"},"Federant":{"weight":["regular"],"fallback":"display"},"Liu Jian Mao Cao":{"weight":["regular"],"fallback":"handwriting"},"Chenla":{"weight":["regular"],"fallback":"display"},"Hanalei":{"weight":["regular"],"fallback":"display"},"Langar":{"weight":["regular"],"fallback":"display"},"Trochut":{"weight":["regular","italic","700"],"fallback":"display"},"Smokum":{"weight":["regular"],"fallback":"display"},"Black And White Picture":{"weight":["regular"],"fallback":"sans-serif"},"Preahvihear":{"weight":["regular"],"fallback":"display"},"Bungee Outline":{"weight":["regular"],"fallback":"display"},"Astloch":{"weight":["regular","700"],"fallback":"display"},"Fasthand":{"weight":["regular"],"fallback":"serif"},"Akaya Telivigala":{"weight":["regular"],"fallback":"display"},"Inria Sans":{"weight":["300","300italic","regular","italic","700","700italic"],"fallback":"sans-serif"},"Bonbon":{"weight":["regular"],"fallback":"handwriting"},"Combo":{"weight":["regular"],"fallback":"display"},"Nova Script":{"weight":["regular"],"fallback":"display"},"Sofadi One":{"weight":["regular"],"fallback":"display"},"Passero One":{"weight":["regular"],"fallback":"display"},"Suwannaphum":{"weight":["regular"],"fallback":"display"},"Miltonian Tattoo":{"weight":["regular"],"fallback":"display"},"Bungee Hairline":{"weight":["regular"],"fallback":"display"},"Gidugu":{"weight":["regular"],"fallback":"sans-serif"},"Geostar Fill":{"weight":["regular"],"fallback":"display"},"Nerko One":{"weight":["regular"],"fallback":"handwriting"},"Lacquer":{"weight":["regular"],"fallback":"display"},"Butcherman":{"weight":["regular"],"fallback":"display"},"Sevillana":{"weight":["regular"],"fallback":"display"},"Nova Oval":{"weight":["regular"],"fallback":"display"},"Aubrey":{"weight":["regular"],"fallback":"display"},"Akaya Kanadaka":{"weight":["regular"],"fallback":"display"},"Nova Cut":{"weight":["regular"],"fallback":"display"},"Vibes":{"weight":["regular"],"fallback":"display"},"Miltonian":{"weight":["regular"],"fallback":"display"},"Moulpali":{"weight":["regular"],"fallback":"display"},"BioRhyme Expanded":{"weight":["200","300","regular","700","800"],"fallback":"serif"},"Bahianita":{"weight":["regular"],"fallback":"display"},"Suravaram":{"weight":["regular"],"fallback":"serif"},"Fruktur":{"weight":["regular"],"fallback":"display"},"Single Day":{"weight":["regular"],"fallback":"display"},"Imbue":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"serif"},"Lexend Tera":{"weight":["regular"],"fallback":"sans-serif"},"Big Shoulders Inline Text":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Dhurjati":{"weight":["regular"],"fallback":"sans-serif"},"Warnes":{"weight":["regular"],"fallback":"display"},"Kenia":{"weight":["regular"],"fallback":"display"},"Lexend Peta":{"weight":["regular"],"fallback":"sans-serif"},"Big Shoulders Stencil Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Geostar":{"weight":["regular"],"fallback":"display"},"Big Shoulders Inline Display":{"weight":["100","300","regular","500","600","700","800","900"],"fallback":"display"},"Oi":{"weight":["regular"],"fallback":"display"},"Xanh Mono":{"weight":["regular","italic"],"fallback":"monospace"},"Viaoda Libre":{"weight":["regular"],"fallback":"display"},"Truculenta":{"weight":["100","200","300","regular","500","600","700","800","900"],"fallback":"sans-serif"},"Syne Tactile":{"weight":["regular"],"fallback":"display"},"Trispace":{"weight":["100","200","300","regular","500","600","700","800"],"fallback":"sans-serif"},"Ballet":{"weight":["regular"],"fallback":"handwriting"},"Benne":{"weight":["regular"],"fallback":"serif"}}');function tn(a){const{setAttributes:l,attributes:r,options:o=[],deviceType:s,computedStyles:c={}}=a,{fontFamily:u,fontFamilyFallback:g,googleFont:d,googleFontVariants:b,fontWeight:p,textTransform:m,fontSizeUnit:f}=r,[h,k]=(0,e.useState)(o);(0,e.useEffect)((()=>{"Desktop"!==s&&k(h.filter((e=>"fontWeight"!==e&&"textTransform"!==e&&"fontFamily"!==e)))}),[s]);const v=[{value:"",label:(0,i.__)("Select font","generateblocks")},{value:"Arial",label:"Arial"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Georgia",label:"Georgia"}];Object.keys(en).slice(0,20).forEach((e=>{v.push({value:e,label:e})}));let y=[{value:"",label:(0,i.__)("Default","generateblocks")},{value:"normal",label:(0,i.__)("Normal","generateblocks")},{value:"bold",label:(0,i.__)("Bold","generateblocks")},{value:"100",label:"100"},{value:"200",label:"200"},{value:"300",label:"300"},{value:"400",label:"400"},{value:"500",label:"500"},{value:"600",label:"600"},{value:"700",label:"700"},{value:"800",label:"800"},{value:"900",label:"900"}];const w=[{value:"",label:(0,i.__)("Default","generateblocks")},{value:"uppercase",label:(0,i.__)("Uppercase","generateblocks")},{value:"lowercase",label:(0,i.__)("Lowercase","generateblocks")},{value:"capitalize",label:(0,i.__)("Capitalize","generateblocks")},{value:"initial",label:(0,i.__)("Normal","generateblocks")}];void 0!==en[u]&&void 0!==en[u].weight&&(y=[{value:"",label:(0,i.__)("Default","generateblocks")},{value:"normal",label:(0,i.__)("Normal","generateblocks")},{value:"bold",label:(0,i.__)("Bold","generateblocks")}],en[u].weight.filter((function(e){const t=e.match(/[a-z]/g),a=e.match(/[0-9]/g);return!(t&&a||"italic"===e||"regular"===e)})).forEach((e=>{y.push({value:e,label:e})})));const _=e=>{"other"===e&&(e=""),l({fontFamily:e}),void 0!==en[e]?l({googleFont:!0,fontFamilyFallback:en[e].fallback,googleFontVariants:en[e].weight.join(", ")}):l({googleFont:!1,fontFamilyFallback:"",googleFontVariants:""})};return(0,e.createElement)("div",{className:"gblocks-typography-component"},(h.includes("fontWeight")||h.includes("textTransform"))&&(0,e.createElement)(n.BaseControl,{className:"gblocks-typography-component__appearance"},h.includes("fontWeight")&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Weight","generateblocks"),value:p,options:y,onChange:e=>{l({fontWeight:e})}}),h.includes("textTransform")&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Transform","generateblocks"),value:m,options:w,onChange:e=>{l({textTransform:e})}})),h.includes("fontSize")&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Font Size","generateblocks"),attributeName:"fontSize",units:["px","em","%"],device:s,defaultPlaceholder:c.fontSize&&"px"===f?c.fontSize:"",presets:[{unit:"px",data:[13,17,25,35]}],min:"1"})),h.includes("lineHeight")&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Line Height","generateblocks"),attributeName:"lineHeight",units:["px","em","%"],device:s,presets:[{unit:"em",data:[{label:(0,i.__)("Small","generateblocks"),value:.8},{label:(0,i.__)("Medium","generateblocks"),value:1},{label:(0,i.__)("Large","generateblocks"),value:1.5}]}],min:"0",step:.1})),h.includes("letterSpacing")&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Letter Spacing","generateblocks"),attributeName:"letterSpacing",unit:"em",units:["em"],device:s,presets:[{unit:"em",data:[{label:(0,i.__)("Small","generateblocks"),value:-.02},{label:(0,i.__)("Medium","generateblocks"),value:.02},{label:(0,i.__)("Large","generateblocks"),value:.05}]}],min:-1,step:.01})),h.includes("fontFamily")&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BaseControl,{className:"gblocks-typography-component__font-family"},(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Font Family","generateblocks"),options:v,onChange:e=>{l({fontFamily:e}),_(e)}}),(0,e.createElement)("div",{className:"gblocks-typography-component__font-family-input"},(0,e.createElement)(n.TextControl,{value:u,placeholder:(0,i.__)("Enter font name","generateblocks"),onChange:e=>_(e)}),(!!g||!!d)&&(0,e.createElement)(n.TextControl,{value:g,placeholder:(0,i.__)("sans-serif","generateblocks"),onChange:e=>{l({fontFamilyFallback:e})}}))),""!==u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Use Google Fonts API","generateblocks"),checked:!!d,onChange:e=>{l({googleFont:e}),e&&void 0!==en[u]&&l({fontFamilyFallback:en[u].fallback,googleFontVariants:en[u].weight.join(", ")})}}),!!d&&(0,e.createElement)(n.TextControl,{label:(0,i.__)("Variants","generateblocks"),value:b,placeholder:(0,i.__)("300, 400, 400i","generateblocks"),onChange:e=>{l({googleFontVariants:e})}}))))}var an=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),ln=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));function rn(t){const{setAttributes:a,attributes:l,label:r=(0,i.__)("Padding","generateblocks"),type:o="padding",labelTop:s=(0,i.__)("Top","generateblocks"),labelRight:c=(0,i.__)("Right","generateblocks"),labelBottom:u=(0,i.__)("Bottom","generateblocks"),labelLeft:g=(0,i.__)("Left","generateblocks"),device:d,units:b,computedStyles:p={}}=t,m={top:o+"Top",right:o+"Right",bottom:o+"Bottom",left:o+"Left",unit:o+"Unit",sync:o+"SyncUnits"},f={top:s,right:c,bottom:u,left:g};"borderRadius"===o&&(m.top="borderRadiusTopLeft",m.right="borderRadiusTopRight",m.bottom="borderRadiusBottomRight",m.left="borderRadiusBottomLeft",f.top=(0,i._x)("T-Left","short for Top Left","generateblocks"),f.right=(0,i._x)("T-Right","short for Top Right","generateblocks"),f.bottom=(0,i._x)("B-Right","short for Bottom Right","generateblocks"),f.left=(0,i._x)("B-Left","short for Bottom Left","generateblocks")),"Desktop"!==d&&(m.top+=d,m.right+=d,m.bottom+=d,m.left+=d);const h=e=>a({[m.top]:e,[m.right]:e,[m.bottom]:e,[m.left]:e});return(0,e.createElement)(n.BaseControl,{className:"components-gblocks-dimensions-control"},(0,e.createElement)(x,{label:r,value:void 0!==l[m.unit]?l[m.unit]:"px",units:b,onClick:e=>(e=>a({[[m.unit]]:e}))(e)}),(0,e.createElement)("div",{className:"components-gblocks-dimensions-control__inputs"},(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.top,className:"components-gblocks-dimensions-control__number",placeholder:B(m.top,l,d,"margin"===o&&"px"===l.marginUnit?p.marginTop:""),type:"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),l[m.sync]?h(t):(e=>{a({[m.top]:e})})(t)}
4
+ /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Top","generateblocks"),r),value:l[m.top]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.top,className:"gblocks-dimensions-control__label"},f.top)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.right,className:"components-gblocks-dimensions-control__number",placeholder:B(m.right,l,d,""),type:"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),l[m.sync]?h(t):(e=>{a({[m.right]:e})})(t)}
5
+ /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Right","generateblocks"),r),value:l[m.right]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.right,className:"gblocks-dimensions-control__label"},f.right)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.bottom,className:"components-gblocks-dimensions-control__number",placeholder:B(m.bottom,l,d,"margin"===o&&"px"===l.marginUnit?p.marginBottom:""),type:"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),l[m.sync]?h(t):(e=>{a({[m.bottom]:e})})(t)}
6
+ /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Bottom","generateblocks"),r),value:l[m.bottom]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.bottom,className:"gblocks-dimensions-control__label"},f.bottom)),(0,e.createElement)("div",null,(0,e.createElement)("input",{id:m.left,className:"components-gblocks-dimensions-control__number",placeholder:B(m.left,l,d,""),type:"number",onChange:e=>{let t=e.target.value;"margin"!==o&&(t=t.toString().replace(/-/g,"")),l[m.sync]?h(t):(e=>{a({[m.left]:e})})(t)}
7
+ /* translators: Dimension label (padding, margin, border) */,"aria-label":(0,i.sprintf)((0,i.__)("%s Left","generateblocks"),r),value:l[m.left]||"",min:"margin"!==o?0:void 0}),(0,e.createElement)("label",{htmlFor:m.left,className:"gblocks-dimensions-control__label"},f.left)),(0,e.createElement)(n.Tooltip,{text:l[m.sync]?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks")},(0,e.createElement)(n.Button,{className:"components-gblocks-dimensions-control_sync","aria-label":l[m.sync]?(0,i.__)("Unlink Sides","generateblocks"):(0,i.__)("Link Sides","generateblocks"),isPrimary:!!l[m.sync]&&l[m.sync],"aria-pressed":!!l[m.sync]&&l[m.sync],onClick:()=>(e=>{const t=[l[m.top],l[m.right],l[m.bottom],l[m.left]].filter((e=>""!==e));if(0===t.length)return void a({[e]:!l[e]});const r=Math.max.apply(null,t).toString();a({[e]:!l[e],[m.top]:r,[m.right]:r,[m.bottom]:r,[m.left]:r})})(m.sync),isSmall:!0},l[m.sync]?an:ln))))}function nn(a){const{dimensions:l,deviceType:r}=a,n=(0,m.applyFilters)("generateblocks.editor.dimensionGroupItems",l,a);return(0,e.createElement)(e.Fragment,null,n.map(((l,n)=>(0,e.createElement)(rn,t({},a,{key:n,device:r,type:l.type,label:l.label,units:l.units,computedStyles:l.computedStyles})))))}function on(){return(on=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e}).apply(this,arguments)}function sn(e,t){if(null==e)return{};var a,l,r={},n=Object.keys(e);for(l=0;l<n.length;l++)t.indexOf(a=n[l])>=0||(r[a]=e[a]);return r}function cn(e){var t=(0,v.useRef)(e),a=(0,v.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,a.current}var un=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e<t?t:e},gn=function(e){return"touches"in e},dn=function(e){return e&&e.ownerDocument.defaultView||self},bn=function(e,t,a){var l=e.getBoundingClientRect(),r=gn(t)?function(e,t){for(var a=0;a<e.length;a++)if(e[a].identifier===t)return e[a];return e[0]}(t.touches,a):t;return{left:un((r.pageX-(l.left+dn(e).pageXOffset))/l.width),top:un((r.pageY-(l.top+dn(e).pageYOffset))/l.height)}},pn=function(e){!gn(e)&&e.preventDefault()},mn=y().memo((function(e){var t=e.onMove,a=e.onKey,l=sn(e,["onMove","onKey"]),r=(0,v.useRef)(null),n=cn(t),i=cn(a),o=(0,v.useRef)(null),s=(0,v.useRef)(!1),c=(0,v.useMemo)((function(){var e=function(e){pn(e),(gn(e)?e.touches.length>0:e.buttons>0)&&r.current?n(bn(r.current,e,o.current)):a(!1)},t=function(){return a(!1)};function a(a){var l=s.current,n=dn(r.current),i=a?n.addEventListener:n.removeEventListener;i(l?"touchmove":"mousemove",e),i(l?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,l=r.current;if(l&&(pn(t),!function(e,t){return t&&!gn(e)}(t,s.current)&&l)){if(gn(t)){s.current=!0;var i=t.changedTouches||[];i.length&&(o.current=i[0].identifier)}l.focus(),n(bn(l,t,o.current)),a(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),i({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},a]}),[i,n]),u=c[0],g=c[1],d=c[2];return(0,v.useEffect)((function(){return d}),[d]),y().createElement("div",on({},l,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:g,tabIndex:0,role:"slider"}))})),fn=function(e){return e.filter(Boolean).join(" ")},hn=function(e){var t=e.color,a=e.left,l=e.top,r=void 0===l?.5:l,n=fn(["react-colorful__pointer",e.className]);return y().createElement("div",{className:n,style:{top:100*r+"%",left:100*a+"%"}},y().createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},kn=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a},vn=(Math.PI,function(e){var t=e.s,a=e.v,l=e.a,r=(200-t)*a/100;return{h:kn(e.h),s:kn(r>0&&r<200?t*a/100/(r<=100?r:200-r)*100:0),l:kn(r/2),a:kn(l,2)}}),yn=function(e){var t=vn(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},wn=function(e){var t=vn(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Cn=function(e){var t=e.h,a=e.s,l=e.v,r=e.a;t=t/360*6,a/=100,l/=100;var n=Math.floor(t),i=l*(1-a),o=l*(1-(t-n)*a),s=l*(1-(1-t+n)*a),c=n%6;return{r:kn(255*[l,o,i,i,s,l][c]),g:kn(255*[s,l,l,o,i,i][c]),b:kn(255*[i,i,s,l,l,o][c]),a:kn(r,2)}},Tn=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?xn({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},En=Tn,xn=function(e){var t=e.r,a=e.g,l=e.b,r=e.a,n=Math.max(t,a,l),i=n-Math.min(t,a,l),o=i?n===t?(a-l)/i:n===a?2+(l-t)/i:4+(t-a)/i:0;return{h:kn(60*(o<0?o+6:o)),s:kn(n?i/n*100:0),v:kn(n/255*100),a:r}},Sn=y().memo((function(e){var t=e.hue,a=e.onChange,l=fn(["react-colorful__hue",e.className]);return y().createElement("div",{className:l},y().createElement(mn,{onMove:function(e){a({h:360*e.left})},onKey:function(e){a({h:un(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuetext":kn(t)},y().createElement(hn,{className:"react-colorful__hue-pointer",left:t/360,color:yn({h:t,s:100,v:100,a:1})})))})),Bn=y().memo((function(e){var t=e.hsva,a=e.onChange,l={backgroundColor:yn({h:t.h,s:100,v:100,a:1})};return y().createElement("div",{className:"react-colorful__saturation",style:l},y().createElement(mn,{onMove:function(e){a({s:100*e.left,v:100-100*e.top})},onKey:function(e){a({s:un(t.s+100*e.left,0,100),v:un(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+kn(t.s)+"%, Brightness "+kn(t.v)+"%"},y().createElement(hn,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:yn(t)})))})),Mn=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function Dn(e,t,a){var l=cn(a),r=(0,v.useState)((function(){return e.toHsva(t)})),n=r[0],i=r[1],o=(0,v.useRef)({color:t,hsva:n});(0,v.useEffect)((function(){if(!e.equal(t,o.current.color)){var a=e.toHsva(t);o.current={hsva:a,color:t},i(a)}}),[t,e]),(0,v.useEffect)((function(){var t;(function(e,t){if(e===t)return!0;for(var a in e)if(e[a]!==t[a])return!1;return!0})(n,o.current.hsva)||e.equal(t=e.fromHsva(n),o.current.color)||(o.current={hsva:n,color:t},l(t))}),[n,e,l]);var s=(0,v.useCallback)((function(e){i((function(t){return Object.assign({},t,e)}))}),[]);return[n,s]}var Rn="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,zn=new Map,Ln=function(e){Rn((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!zn.has(t)){var l=t.createElement("style");l.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',zn.set(t,l);var r=a.nc;r&&l.setAttribute("nonce",r),t.head.appendChild(l)}}),[])},On=function(e){var t=e.className,a=e.colorModel,l=e.color,r=void 0===l?a.defaultColor:l,n=e.onChange,i=sn(e,["className","colorModel","color","onChange"]),o=(0,v.useRef)(null);Ln(o);var s=Dn(a,r,n),c=s[0],u=s[1],g=fn(["react-colorful",t]);return y().createElement("div",on({},i,{ref:o,className:g}),y().createElement(Bn,{hsva:c,onChange:u}),y().createElement(Sn,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},In=function(e){var t=e.className,a=e.hsva,l=e.onChange,r={backgroundImage:"linear-gradient(90deg, "+wn(Object.assign({},a,{a:0}))+", "+wn(Object.assign({},a,{a:1}))+")"},n=fn(["react-colorful__alpha",t]);return y().createElement("div",{className:n},y().createElement("div",{className:"react-colorful__alpha-gradient",style:r}),y().createElement(mn,{onMove:function(e){l({a:e.left})},onKey:function(e){l({a:un(a.a+e.left)})},"aria-label":"Alpha","aria-valuetext":kn(100*a.a)+"%"},y().createElement(hn,{className:"react-colorful__alpha-pointer",left:a.a,color:wn(a)})))},Nn=function(e){var t=e.className,a=e.colorModel,l=e.color,r=void 0===l?a.defaultColor:l,n=e.onChange,i=sn(e,["className","colorModel","color","onChange"]),o=(0,v.useRef)(null);Ln(o);var s=Dn(a,r,n),c=s[0],u=s[1],g=fn(["react-colorful",t]);return y().createElement("div",on({},i,{ref:o,className:g}),y().createElement(Bn,{hsva:c,onChange:u}),y().createElement(Sn,{hue:c.h,onChange:u}),y().createElement(In,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},An={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Tn,fromHsva:function(e){var t=Cn(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Mn},Fn=function(e){return y().createElement(Nn,on({},e,{colorModel:An}))},Pn={defaultColor:"rgb(0, 0, 0)",toHsva:En,fromHsva:function(e){var t=Cn(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:Mn},Hn=function(e){return y().createElement(On,on({},e,{colorModel:Pn}))},Vn={grad:.9,turn:360,rad:360/(2*Math.PI)},Un=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Gn=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=Math.pow(10,t)),Math.round(a*e)/a+0},jn=function(e,t,a){return void 0===t&&(t=0),void 0===a&&(a=1),e>a?a:e>t?e:t},qn=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Wn=function(e){return{r:jn(e.r,0,255),g:jn(e.g,0,255),b:jn(e.b,0,255),a:jn(e.a)}},$n=function(e){return{r:Gn(e.r),g:Gn(e.g),b:Gn(e.b),a:Gn(e.a,3)}},Zn=/^#([0-9a-f]{3,8})$/i,Kn=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Qn=function(e){var t=e.r,a=e.g,l=e.b,r=e.a,n=Math.max(t,a,l),i=n-Math.min(t,a,l),o=i?n===t?(a-l)/i:n===a?2+(l-t)/i:4+(t-a)/i:0;return{h:60*(o<0?o+6:o),s:n?i/n*100:0,v:n/255*100,a:r}},Yn=function(e){var t=e.h,a=e.s,l=e.v,r=e.a;t=t/360*6,a/=100,l/=100;var n=Math.floor(t),i=l*(1-a),o=l*(1-(t-n)*a),s=l*(1-(1-t+n)*a),c=n%6;return{r:255*[l,o,i,i,s,l][c],g:255*[s,l,l,o,i,i][c],b:255*[i,i,s,l,l,o][c],a:r}},Jn=function(e){return{h:qn(e.h),s:jn(e.s,0,100),l:jn(e.l,0,100),a:jn(e.a)}},Xn=function(e){return{h:Gn(e.h),s:Gn(e.s),l:Gn(e.l),a:Gn(e.a,3)}},ei=function(e){return Yn((a=(t=e).s,{h:t.h,s:(a*=((l=t.l)<50?l:100-l)/100)>0?2*a/(l+a)*100:0,v:l+a,a:t.a}));var t,a,l},ti=function(e){return{h:(t=Qn(e)).h,s:(r=(200-(a=t.s))*(l=t.v)/100)>0&&r<200?a*l/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,a,l,r},ai=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,li=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ri=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ni=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ii={string:[[function(e){var t=Zn.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Gn(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Gn(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=ri.exec(e)||ni.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Wn({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ai.exec(e)||li.exec(e);if(!t)return null;var a,l,r=Jn({h:(a=t[1],l=t[2],void 0===l&&(l="deg"),Number(a)*(Vn[l]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ei(r)},"hsl"]],object:[[function(e){var t=e.r,a=e.g,l=e.b,r=e.a,n=void 0===r?1:r;return Un(t)&&Un(a)&&Un(l)?Wn({r:Number(t),g:Number(a),b:Number(l),a:Number(n)}):null},"rgb"],[function(e){var t=e.h,a=e.s,l=e.l,r=e.a,n=void 0===r?1:r;if(!Un(t)||!Un(a)||!Un(l))return null;var i=Jn({h:Number(t),s:Number(a),l:Number(l),a:Number(n)});return ei(i)},"hsl"],[function(e){var t=e.h,a=e.s,l=e.v,r=e.a,n=void 0===r?1:r;if(!Un(t)||!Un(a)||!Un(l))return null;var i=function(e){return{h:qn(e.h),s:jn(e.s,0,100),v:jn(e.v,0,100),a:jn(e.a)}}({h:Number(t),s:Number(a),v:Number(l),a:Number(n)});return Yn(i)},"hsv"]]},oi=function(e,t){for(var a=0;a<t.length;a++){var l=t[a][0](e);if(l)return[l,t[a][1]]}return[null,void 0]},si=function(e,t){var a=ti(e);return{h:a.h,s:jn(a.s+100*t,0,100),l:a.l,a:a.a}},ci=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},ui=function(e,t){var a=ti(e);return{h:a.h,s:a.s,l:jn(a.l+100*t,0,100),a:a.a}},gi=function(){function e(e){this.parsed=function(e){return"string"==typeof e?oi(e.trim(),ii.string):"object"==typeof e&&null!==e?oi(e,ii.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Gn(ci(this.rgba),2)},e.prototype.isDark=function(){return ci(this.rgba)<.5},e.prototype.isLight=function(){return ci(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=$n(this.rgba)).r,a=e.g,l=e.b,n=(r=e.a)<1?Kn(Gn(255*r)):"","#"+Kn(t)+Kn(a)+Kn(l)+n;var e,t,a,l,r,n},e.prototype.toRgb=function(){return $n(this.rgba)},e.prototype.toRgbString=function(){return t=(e=$n(this.rgba)).r,a=e.g,l=e.b,(r=e.a)<1?"rgba("+t+", "+a+", "+l+", "+r+")":"rgb("+t+", "+a+", "+l+")";var e,t,a,l,r},e.prototype.toHsl=function(){return Xn(ti(this.rgba))},e.prototype.toHslString=function(){return t=(e=Xn(ti(this.rgba))).h,a=e.s,l=e.l,(r=e.a)<1?"hsla("+t+", "+a+"%, "+l+"%, "+r+")":"hsl("+t+", "+a+"%, "+l+"%)";var e,t,a,l,r},e.prototype.toHsv=function(){return e=Qn(this.rgba),{h:Gn(e.h),s:Gn(e.s),v:Gn(e.v),a:Gn(e.a,3)};var e},e.prototype.invert=function(){return di({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),di(si(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),di(si(this.rgba,-e))},e.prototype.grayscale=function(){return di(si(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),di(ui(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),di(ui(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?di({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Gn(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ti(this.rgba);return"number"==typeof e?di({h:e,s:t.s,l:t.l,a:t.a}):Gn(t.h)},e.prototype.isEqual=function(e){return this.toHex()===di(e).toHex()},e}(),di=function(e){return e instanceof gi?e:new gi(e)};function bi(e,t){return e?(t||0===t)&&1!==t&&e.startsWith("#")?(e=e.replace("#",""),"rgba("+parseInt(3===e.length?e.slice(0,1).repeat(2):e.slice(0,2),16)+", "+parseInt(3===e.length?e.slice(1,2).repeat(2):e.slice(2,4),16)+", "+parseInt(3===e.length?e.slice(2,3).repeat(2):e.slice(4,6),16)+", "+t+")"):e:""}function pi(t){const{value:a,onChange:l,onOpacityChange:o,label:s,alpha:c=!1,valueOpacity:u=1,tooltip:g}=t,[d,p]=(0,e.useState)(!1),m=c&&1===u?Fn:Hn;(0,e.useEffect)((()=>{if(!d)return;const e=setTimeout((()=>{const e=document.querySelector(".gblocks-color-input-wrapper input");e&&e.focus()}),350);return()=>{clearTimeout(e),p(!1)}}),[a]);const f=(0,e.useMemo)((()=>(e=>{if(String(e).startsWith("var(")){const t=e.match(/\(([^)]+)\)/);if(t){const a=getComputedStyle(document.documentElement).getPropertyValue(t[1]);a&&(e=a)}}return di(e).toRgbString()})(a)),[a]),h=(0,q.useDebounce)(l);return(0,e.createElement)("div",{className:"gblocks-color-component"},!!s&&(0,e.createElement)("span",{className:"gblocks-color-component__label"},s),(0,e.createElement)(n.Dropdown,{className:"gblocks-color-component__toggle",contentClassName:"gblocks-color-component-content",position:"top left",renderToggle:t=>{let{isOpen:l,onToggle:r}=t;const i=(0,e.createElement)(n.Button,{className:"gblocks-color-component__toggle-button",onClick:r,"aria-expanded":l},(0,e.createElement)("span",{className:"gblocks-color-component__toggle-indicator",style:{background:a?bi(a,u):null}}));return(0,e.createElement)(e.Fragment,null,g?(0,e.createElement)(n.Tooltip,{text:g},i):i)},renderContent:()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(m,{color:f,onChange:e=>{di(e).isValid()&&(e=1===di(e).alpha()?di(e).toHex():e),h(e)}}),(0,e.createElement)("div",{className:"gblocks-color-component-content__input-wrapper"},(0,e.createElement)(n.TextControl,{className:"gblocks-color-input",type:"text",value:a||"",onChange:e=>{!e.startsWith("#")&&/^([0-9A-F]{3}){1,2}$/i.test(e)&&(e="#"+e),h(e),p(!0)},onBlur:()=>{di(a).isValid()&&1===di(a).alpha()&&h(di(a).toHex())}}),(0,e.createElement)(n.Button,{isSmall:!0,isSecondary:!0,className:"gblocks-color-input-clear",onClick:()=>{l(""),c&&1!==u&&o(1),setTimeout((function(){document.querySelector(".gblocks-color-component-content__input-wrapper input").focus()}),10)}},(0,i.__)("Clear","generateblocks"))),c&&1!==u&&(0,e.createElement)("div",{className:"gblocks-color-component-content__opacity"},(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Opacity","generateblocks")},b("gradient")),(0,e.createElement)(n.RangeControl,{value:u||0,onChange:e=>o(e),min:0,max:1,step:.01,initialPosition:1})),(0,e.createElement)(n.BaseControl,{className:"gblocks-color-component-content__palette"},(0,e.createElement)(r.ColorPalette,{value:a||"",onChange:e=>{l(e),setTimeout((function(){document.querySelector(".gblocks-color-component-content__input-wrapper input").focus()}),10)},disableCustomColors:!0,clearable:!1})))}))}function mi(t){const{setAttributes:a,attributes:l,colors:r}=t,n=(0,m.applyFilters)("generateblocks.editor.colorGroupItems",r,t);return(0,e.createElement)("div",{className:"gblocks-color-group"},n.map(((t,r)=>(0,e.createElement)("div",{key:r,className:"gblocks-color-group__row"},!!t.label&&(0,e.createElement)("span",{className:"gblocks-color-group__row-label"},t.label),t.items.map(((t,r)=>(0,e.createElement)(pi,{key:r,label:t?.label,tooltip:t?.tooltip,value:l[t.attribute],alpha:t.alpha||!1,valueOpacity:l[t.attribute+"Opacity"],onChange:e=>a({[t.attribute]:e}),onOpacityChange:e=>a({[t.attribute+"Opacity"]:e})})))))))}class fi extends e.Component{render(){const{attributes:t,setAttributes:a,attrGradient:l,attrGradientDirection:r,attrGradientColorOne:o,attrGradientColorOneOpacity:s,attrGradientColorStopOne:c,attrGradientColorTwo:u,attrGradientColorTwoOpacity:g,attrGradientColorStopTwo:d,defaultColorOne:b,defaultColorTwo:p}=this.props,{gradientSelector:m,innerZindex:f}=t,h="element"===m?(0,i.__)("Displays behind the background image.","generateblocks"):(0,i.__)("Displays in front of the background image.","generateblocks");return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Use Gradient","generateblocks"),checked:!!t[l],onChange:e=>{const l=this.props;let n=t[r],i=t[o],s=t[u];e&&(n=n||90,i=i||"rgba(255, 255, 255, 0.1)",s=s||"rgba(0, 0, 0, 0.30)"),a({[l.attrGradient]:e,[l.attrGradientDirection]:n,[l.attrGradientColorOne]:i,[l.attrGradientColorTwo]:s})}}),!!t[l]&&(0,e.createElement)(e.Fragment,null,void 0!==m&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Selector","generateblocks"),help:h,value:m,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:e=>{a({gradientSelector:e}),S(f)||"pseudo-element"!==e||a({innerZindex:1})}}),(0,e.createElement)(n.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Direction","generateblocks")),(0,e.createElement)(n.RangeControl,{value:t[r]?t[r]:0,onChange:e=>{a({[r]:e})},min:0,max:360,step:1,initialPosition:90})),(0,e.createElement)(n.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Color One","generateblocks")),(0,e.createElement)("div",{className:"gblocks-component-gradient-control"},(0,e.createElement)(pi,{value:t[o],alpha:!0,valueOpacity:t[s]||1,attrOpacity:"gradientColorOneOpacity",onChange:e=>a({[o]:e}),onOpacityChange:e=>a({[s]:e}),onClear:()=>a({[o]:b})}),(0,e.createElement)(n.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[c]||0===t[c]?t[c]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[c]:e})},onBlur:()=>{(t[c]||0===t[c])&&a({[c]:parseFloat(t[c])})},onClick:e=>{e.currentTarget.focus()}}))),(0,e.createElement)(n.BaseControl,null,(0,e.createElement)("span",{className:"components-base-control__label"},(0,i.__)("Color Two","generateblocks")),(0,e.createElement)("div",{className:"gblocks-component-gradient-control"},(0,e.createElement)(pi,{value:t[u],alpha:!0,valueOpacity:t[g]||1,attrOpacity:"gradientColorTwoOpacity",onChange:e=>a({[u]:e}),onOpacityChange:e=>a({[g]:e}),onClear:()=>a({[u]:p})}),(0,e.createElement)(n.TextControl,{className:"gblocks-component-gradient-stop-value",type:"text",value:t[d]||0===t[d]?t[d]:"",placeholder:(0,i.__)("Stop position (%)","generateblocks"),onChange:e=>{a({[d]:e})},onBlur:()=>{(t[d]||0===t[d])&&a({[d]:parseFloat(t[d])})},onClick:e=>{e.currentTarget.focus()}})))))}}var hi=fi,ki=a(856),vi=a.n(ki);function yi(e){return vi().sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0}})}const wi=e=>S(e)&&"auto"!==e;var _i=a=>{const{clientId:o,attributes:c,setAttributes:u,deviceType:g,state:d,blockDefaults:p,tagNames:f,filterTagName:h,allShapes:k,context:v}=a,{tagName:y,isGrid:w,isQueryLoopItem:_,gridId:T,width:E,widthTablet:M,widthMobile:D,autoWidthTablet:R,autoWidthMobile:z,flexGrow:L,flexGrowTablet:O,flexGrowMobile:I,flexShrink:N,flexShrinkTablet:A,flexShrinkMobile:F,flexBasis:P,flexBasisTablet:H,flexBasisMobile:V,flexBasisUnit:U,outerContainer:G,innerContainer:j,containerWidth:q,minHeight:W,minHeightUnit:$,minHeightTablet:Z,minHeightUnitTablet:K,minHeightMobile:Q,minHeightUnitMobile:Y,backgroundColor:J,bgImage:X,bgOptions:ee,bgImageSize:te,bgImageInline:ae,verticalAlignment:le,verticalAlignmentTablet:re,verticalAlignmentMobile:ne,zindex:ie,innerZindex:oe,removeVerticalGap:se,removeVerticalGapTablet:ce,removeVerticalGapMobile:ue,orderTablet:ge,orderMobile:de,align:be,shapeDividers:pe,useDynamicData:me,dynamicContentType:fe}=c,{getBlockParents:he,getBlocksByClientId:ke}=(0,l.useSelect)((e=>e("core/block-editor")),[]);(0,e.useEffect)((()=>{const e=he(o,!0);if(e.length>0){const t=ke(e);if(t.length>0)if("generateblocks/grid"===t[0].name){const e=t[0].attributes.uniqueId;e!==T&&u({isGrid:!0,gridId:e})}else w&&!_&&u({isGrid:!1,gridId:""})}else w&&!_&&u({isGrid:!1,gridId:""})}));const ve=void 0!==v["generateblocks/queryId"],ye=wi(P),we="auto"!==H&&(wi(P)||wi(H)),_e="auto"!==V&&(wi(P)||wi(H)||wi(V)),Ce=[];return Object.keys(generateBlocksInfo.imageSizes).forEach((e=>{Ce.push({label:generateBlocksInfo.imageSizes[e],value:generateBlocksInfo.imageSizes[e]})})),(0,e.createElement)(r.InspectorControls,null,!w&&(0,e.createElement)(C,t({},a,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!0,icon:b("layout"),className:"gblocks-panel-label",id:"containerLayout",state:d}),"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Container","generateblocks"),value:G,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{u({outerContainer:e}),"contained"===e&&"full"===be&&u({align:""})}}),"full"===G&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Inner Container","generateblocks"),value:j,options:[{label:(0,i.__)("Full width","generateblocks"),value:"full"},{label:(0,i.__)("Contained width","generateblocks"),value:"contained"}],onChange:e=>{u({innerContainer:e})}}),("contained"===G||"contained"===j)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:"full"===G&&"contained"===j?(0,i.__)("Inner Container Width","generateblocks"):(0,i.__)("Container Width","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(n.TextControl,{type:"number",className:"gblocks-container-width",value:parseFloat(q)||"",placeholder:p.containerWidth,onChange:e=>{u({containerWidth:""!==e?parseFloat(e):void 0})}})),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Tag Name","generateblocks"),value:y,options:f,onChange:e=>{u({tagName:h(e)})}}),(0,m.applyFilters)("generateblocks.editor.controls","","containerAfterElementTag",a,d)),(0,m.applyFilters)("generateblocks.editor.controls","","containerLayout",a,d)),w&&(0,e.createElement)(C,t({},a,{title:(0,i.__)("Layout","generateblocks"),initialOpen:!0,icon:b("layout"),className:"gblocks-panel-label",id:"containerGridLayout",state:d}),"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BaseControl,null,(0,e.createElement)(x,{label:(0,i.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),!!ye&&(0,e.createElement)("div",{className:"gblocks-small-notice-description"},(0,i.__)('Width disabled as Flex Basis is not "auto".',"generateblocks")),(0,e.createElement)(n.ButtonGroup,{className:"widthButtons"},(0,e.createElement)(n.Button,{isPrimary:25===E,onClick:()=>u({width:25}),disabled:ye},"25"),(0,e.createElement)(n.Button,{isPrimary:33.33===E,onClick:()=>u({width:33.33}),disabled:ye},"33"),(0,e.createElement)(n.Button,{isPrimary:50===E,onClick:()=>u({width:50}),disabled:ye},"50"),(0,e.createElement)(n.Button,{isPrimary:66.66===E,onClick:()=>u({width:66.66}),disabled:ye},"66"),(0,e.createElement)(n.Button,{isPrimary:75===E,onClick:()=>u({width:75}),disabled:ye},"75"),(0,e.createElement)(n.Button,{isPrimary:100===E,onClick:()=>u({width:100}),disabled:ye},"100")),(0,e.createElement)(Xr,{value:S(E)?E:"",onChange:e=>{String(e).startsWith(0)&&(e=""),u({width:e})},rangeMin:10,rangeMax:100,step:5,initialPosition:p.width,disabled:ye})),(0,e.createElement)(n.BaseControl,{className:"gblocks-flex-controls"},(0,e.createElement)("div",{className:"gblocks-utility-label"},(0,e.createElement)("label",{htmlFor:"gblocks-flex-grow-desktop",className:"components-base-control__label"},(0,i.__)("Flex","generateblocks")),(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Reset","generateblocks"),position:"top"},(0,e.createElement)(n.Button,{className:"gblocks-reset-button",icon:b("reset"),onClick:()=>{u({flexGrow:"",flexShrink:"",flexBasis:""})}}))),(0,e.createElement)("div",{className:"gblocks-flex-controls-inner"},(0,e.createElement)(n.TextControl,{help:(0,i.__)("Grow","generateblocks"),id:"gblocks-flex-grow-desktop",type:"number",value:L,min:"0",step:"1",placeholder:"0",onChange:e=>{u({flexGrow:e})},onBlur:()=>{""!==L&&u({flexGrow:parseFloat(L)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(n.TextControl,{help:(0,i.__)("Shrink","generateblocks"),type:"number",value:N,min:"0",step:"1",placeholder:"1",onChange:e=>{u({flexShrink:e})},onBlur:()=>{""!==N&&u({flexShrink:parseFloat(N)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},!isNaN(P)&&(0,e.createElement)(x,{value:U,units:["px","%"],onClick:e=>{u({flexBasisUnit:e})}}),(0,e.createElement)(n.TextControl,{help:(0,i.__)("Basis","generateblocks"),type:"text",placeholder:"auto",value:P,onChange:e=>{u({flexBasis:e})},onBlur:()=>{P.match(/(auto|fill|max-content|min-content|fit-content|content|inherit|initial|revert|unset|[0-9.]+)/g)||u({flexBasis:""})}})))),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:le,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignment:e})}}),!_&&(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Remove Vertical Gap","generateblocks"),checked:!!se,onChange:e=>{u({removeVerticalGap:e})}}),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Tag Name","generateblocks"),value:y,options:f,onChange:e=>{u({tagName:h(e)})}}),(0,m.applyFilters)("generateblocks.editor.controls","","containerAfterElementTag",a,d)),"Tablet"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BaseControl,null,(0,e.createElement)(x,{label:(0,i.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),!!we&&(0,e.createElement)("div",{className:"gblocks-small-notice-description"},(0,i.__)('Width disabled as Flex Basis is not "auto".',"generateblocks")),(0,e.createElement)(n.ButtonGroup,{className:"widthButtons"},(0,e.createElement)(n.Button,{isPrimary:!!R,disabled:we,onClick:()=>{u(R?{autoWidthTablet:!1}:{autoWidthTablet:!0})}},(0,i.__)("Auto","generateblocks")),(0,e.createElement)(n.Button,{isPrimary:25===M&&!R,onClick:()=>u({widthTablet:25,autoWidthTablet:!1}),disabled:we},"25"),(0,e.createElement)(n.Button,{isPrimary:33.33===M&&!R,onClick:()=>u({widthTablet:33.33,autoWidthTablet:!1}),disabled:we},"33"),(0,e.createElement)(n.Button,{isPrimary:50===M&&!R,onClick:()=>u({widthTablet:50,autoWidthTablet:!1}),disabled:we},"50"),(0,e.createElement)(n.Button,{isPrimary:66.66===M&&!R,onClick:()=>u({widthTablet:66.66,autoWidthTablet:!1}),disabled:we},"66"),(0,e.createElement)(n.Button,{isPrimary:75===M&&!R,onClick:()=>u({widthTablet:75,autoWidthTablet:!1}),disabled:we},"75"),(0,e.createElement)(n.Button,{isPrimary:100===M&&!R,onClick:()=>u({widthTablet:100,autoWidthTablet:!1}),disabled:we},"100")),!R&&(0,e.createElement)(Xr,{value:S(M)?M:"",onChange:e=>{String(e).startsWith(0)&&(e=""),u({widthTablet:e,autoWidthTablet:!1})},rangeMin:10,rangeMax:100,step:5,initialPosition:p.widthTablet,disabled:we})),(0,e.createElement)(n.BaseControl,{className:"gblocks-flex-controls"},(0,e.createElement)("div",{className:"gblocks-utility-label"},(0,e.createElement)("label",{htmlFor:"gblocks-flex-grow-tablet",className:"components-base-control__label"},(0,i.__)("Flex","generateblocks")),(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Reset","generateblocks"),position:"top"},(0,e.createElement)(n.Button,{className:"gblocks-reset-button",icon:b("reset"),onClick:()=>{u({flexGrowTablet:"",flexShrinkTablet:"",flexBasisTablet:""})}}))),(0,e.createElement)("div",{className:"gblocks-flex-controls-inner"},(0,e.createElement)(n.TextControl,{help:(0,i.__)("Grow","generateblocks"),id:"gblocks-flex-grow-tablet",type:"number",value:O,min:"0",step:"1",placeholder:B("flexGrow",c,"Tablet","0"),onChange:e=>{u({flexGrowTablet:e})},onBlur:()=>{""!==O&&u({flexGrowTablet:parseFloat(O)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(n.TextControl,{help:(0,i.__)("Shrink","generateblocks"),type:"number",value:A,min:"0",step:"1",placeholder:B("flexShrink",c,"Tablet","1"),onChange:e=>{u({flexShrinkTablet:e})},onBlur:()=>{""!==A&&u({flexShrinkTablet:parseFloat(A)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},!isNaN(H)&&(0,e.createElement)(x,{value:U,units:["px","%"],onClick:e=>{u({flexBasisUnit:e})}}),(0,e.createElement)(n.TextControl,{help:(0,i.__)("Basis","generateblocks"),type:"text",value:H,placeholder:B("flexBasis",c,"Tablet","auto"),onChange:e=>{u({flexBasisTablet:e})},onBlur:()=>{H.match(/(auto|fill|max-content|min-content|fit-content|content|inherit|initial|revert|unset|[0-9.]+)/g)||u({flexBasisTablet:""})}})))),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:re,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignmentTablet:e})}}),!_&&(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Remove Vertical Gap","generateblocks"),checked:!!ce,onChange:e=>{u({removeVerticalGapTablet:e})}}),(0,e.createElement)(n.TextControl,{type:"number",label:(0,i.__)("Order","generateblocks"),value:ge||0===ge?ge:"",onChange:e=>{u({orderTablet:parseFloat(e)})}})),"Mobile"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BaseControl,null,(0,e.createElement)(x,{label:(0,i.__)("Container Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),!!_e&&(0,e.createElement)("div",{className:"gblocks-small-notice-description"},(0,i.__)('Width disabled as Flex Basis is not "auto".',"generateblocks")),(0,e.createElement)(n.ButtonGroup,{className:"widthButtons"},(0,e.createElement)(n.Button,{isPrimary:!!z,disabled:_e,onClick:()=>{u(z?{autoWidthMobile:!1}:{autoWidthMobile:!0})}},(0,i.__)("Auto","generateblocks")),(0,e.createElement)(n.Button,{isPrimary:25===D&&!z,onClick:()=>u({widthMobile:25,autoWidthMobile:!1}),disabled:_e},"25"),(0,e.createElement)(n.Button,{isPrimary:33.33===D&&!z,onClick:()=>u({widthMobile:33.33,autoWidthMobile:!1}),disabled:_e},"33"),(0,e.createElement)(n.Button,{isPrimary:50===D&&!z,onClick:()=>u({widthMobile:50,autoWidthMobile:!1}),disabled:_e},"50"),(0,e.createElement)(n.Button,{isPrimary:66.66===D&&!z,onClick:()=>u({widthMobile:66.66,autoWidthMobile:!1}),disabled:_e},"66"),(0,e.createElement)(n.Button,{isPrimary:75===D&&!z,onClick:()=>u({widthMobile:75,autoWidthMobile:!1}),disabled:_e},"75"),(0,e.createElement)(n.Button,{isPrimary:100===D&&!z,onClick:()=>u({widthMobile:100,autoWidthMobile:!1}),disabled:_e},"100")),!z&&(0,e.createElement)(Xr,{value:S(D)?D:"",onChange:e=>{String(e).startsWith(0)&&(e=""),u({widthMobile:e,autoWidthMobile:!1})},rangeMin:10,rangeMax:100,step:5,initialPosition:p.widthMobile,disabled:_e})),(0,e.createElement)(n.BaseControl,{className:"gblocks-flex-controls"},(0,e.createElement)("div",{className:"gblocks-utility-label"},(0,e.createElement)("label",{htmlFor:"gblocks-flex-grow-mobile",className:"components-base-control__label"},(0,i.__)("Flex","generateblocks")),(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Reset","generateblocks"),position:"top"},(0,e.createElement)(n.Button,{className:"gblocks-reset-button",icon:b("reset"),onClick:()=>{u({flexGrowMobile:"",flexShrinkMobile:"",flexBasisMobile:""})}}))),(0,e.createElement)("div",{className:"gblocks-flex-controls-inner"},(0,e.createElement)(n.TextControl,{help:(0,i.__)("Grow","generateblocks"),id:"gblocks-flex-grow-mobile",type:"number",value:I,min:"0",step:"1",placeholder:B("flexGrow",c,"Mobile","0"),onChange:e=>{u({flexGrowMobile:e})},onBlur:()=>{""!==I&&u({flexGrowMobile:parseFloat(I)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(n.TextControl,{help:(0,i.__)("Shrink","generateblocks"),type:"number",value:F,min:"0",step:"1",placeholder:B("flexShrink",c,"Mobile","1"),onChange:e=>{u({flexShrinkMobile:e})},onBlur:()=>{""!==F&&u({flexShrinkMobile:parseFloat(F)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)("div",{className:"gblocks-flex-basis-wrapper"},!isNaN(V)&&(0,e.createElement)(x,{value:U,units:["px","%"],onClick:e=>{u({flexBasisUnit:e})}}),(0,e.createElement)(n.TextControl,{help:(0,i.__)("Basis","generateblocks"),type:"text",value:V,placeholder:B("flexBasis",c,"Mobile","auto"),onChange:e=>{u({flexBasisMobile:e})},onBlur:()=>{V.match(/(auto|fill|max-content|min-content|fit-content|content|inherit|initial|revert|unset|[0-9.]+)/g)||u({flexBasisMobile:""})}})))),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),help:(0,i.__)("Align grid item content. Does not apply if vertical alignment is set in the grid.","generateblocks"),value:ne,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignmentMobile:e})}}),!_&&(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Remove Vertical Gap","generateblocks"),checked:!!ue,onChange:e=>{u({removeVerticalGapMobile:e})}}),(0,e.createElement)(n.TextControl,{type:"number",label:(0,i.__)("Order","generateblocks"),value:de||0===de?de:"",onChange:e=>{u({orderMobile:parseFloat(e)})}})),(0,m.applyFilters)("generateblocks.editor.controls","","containerGridLayout",a,d)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:b("typography"),className:"gblocks-panel-label",id:"containerTypography",state:d}),(0,e.createElement)(tn,t({},a,{deviceType:g,options:["fontWeight","textTransform","fontSize","fontFamily"]})),(0,m.applyFilters)("generateblocks.editor.controls","","containerTypography",a,d)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:b("spacing"),className:"gblocks-panel-label",id:"containerSpacing",state:d}),(0,e.createElement)(nn,t({},a,{deviceType:g,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]})),"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Minimum Height","generateblocks"),value:$,units:["px","vh","vw"],onClick:e=>{u({minHeightUnit:e})}}),(0,e.createElement)(n.TextControl,{type:"number",value:W||"",onChange:e=>{u({minHeight:parseFloat(e)})}}),!!W&&!w&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:le,options:[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignment:e})}}),(0,e.createElement)(n.TextControl,{label:(0,i.__)("Outer z-index","generateblocks"),type:"number",value:ie||0===ie?ie:"",onChange:e=>{u({zindex:e})},onBlur:()=>{u({zindex:parseFloat(ie)})},onClick:e=>{e.currentTarget.focus()}}),(0,e.createElement)(n.TextControl,{label:(0,i.__)("Inner z-index","generateblocks"),type:"number",value:oe||0===oe?oe:"",onChange:e=>{u({innerZindex:e})},onBlur:()=>{u({innerZindex:parseFloat(oe)})},onClick:e=>{e.currentTarget.focus()}})),"Tablet"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Minimum Height","generateblocks"),value:K,units:["px","vh","vw"],onClick:e=>{u({minHeightUnitTablet:e})}}),(0,e.createElement)(n.TextControl,{type:"number",value:Z||0===Z?Z:"",onChange:e=>{u({minHeightTablet:parseFloat(e)})}}),(!!W||!!Z)&&!w&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:re,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignmentTablet:e})}})),"Mobile"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Minimum Height","generateblocks"),value:Y,units:["px","vh","vw"],onClick:e=>{u({minHeightUnitMobile:e})}}),(0,e.createElement)(n.TextControl,{type:"number",value:Q||0===Q?Q:"",onChange:e=>{u({minHeightMobile:parseFloat(e)})}}),(!!W||!!Z||!!Q)&&!w&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Vertical Alignment","generateblocks"),value:ne,options:[{label:(0,i.__)("Inherit","generateblocks"),value:"inherit"},{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"flex-start"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"flex-end"}],onChange:e=>{u({verticalAlignmentMobile:e})}})),(0,m.applyFilters)("generateblocks.editor.controls","","containerSpacing",a,d)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!1,icon:b("colors"),className:"gblocks-panel-label",id:"containerColors",state:d}),"Desktop"===g&&(0,e.createElement)(mi,t({},a,{colors:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"}]},{group:"link",label:(0,i.__)("Link","generateblocks"),items:[{attribute:"linkColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"linkColorHover"}]},{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]}]})),(0,m.applyFilters)("generateblocks.editor.controls","","containerColors",a,d)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Backgrounds","generateblocks"),initialOpen:!1,icon:b("gradients"),className:"gblocks-panel-label",id:"containerBackground",state:d}),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BaseControl,{id:"gblocks-background-image-upload",label:(0,i.__)("Image URL","generateblocks")},(0,e.createElement)("div",{className:"gblocks-bg-image-wrapper"},(0,e.createElement)(n.TextControl,{type:"text",value:X?X.image.url:"",onChange:e=>{u(e?{bgImage:{id:"",image:{url:e}}}:{bgImage:null})}}),(0,e.createElement)("div",{className:"gblocks-background-image-action-buttons"},(0,e.createElement)(r.MediaUpload,{title:(0,i.__)("Set background image","generateblocks"),onSelect:e=>{let t=p.bgImageSize;void 0===e.sizes[t]&&(t="full"),u({bgImage:{id:e.id,image:e.sizes[t]}})},onClose:()=>{document.querySelector(".gblocks-bg-image-wrapper input").focus()},allowedTypes:["image"],value:X?X.id:"",modalClass:"editor-gb-container-background__media-modal",render:t=>{let{open:a}=t;return(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Open the Media Library","generateblocks")},(0,e.createElement)(n.Button,{onClick:a,className:"is-secondary is-small"},(0,i.__)("Browse","generateblocks")))}}),(0,m.applyFilters)("generateblocks.editor.backgroundImageActions","",a,d)))),me&&""!==fe&&(0,e.createElement)(n.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("Using featured image as dynamic background.","generateblocks")),(!!X||me&&""!==fe)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Use inline style","generateblocks"),disabled:me&&""!==fe&&(_||ve),checked:!!ae,onChange:e=>{u({bgImageInline:e})}}),ee.overlay?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Background Color Overlay","generateblocks"),checked:!!ee.overlay,onChange:e=>{u({bgOptions:{...ee,overlay:e}})}}),(0,e.createElement)(n.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("The background color overlay option is deprecated. Toggle this option to use the new method.","generateblocks"))):(0,e.createElement)(e.Fragment,null,(X&&X.id||me&&""!==fe)&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Image Size","generateblocks"),value:te,options:Ce,onChange:e=>{u({bgImageSize:e})}}),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Selector","generateblocks"),value:ee.selector,options:[{label:(0,i.__)("Element","generateblocks"),value:"element"},{label:(0,i.__)("Pseudo Element","generateblocks"),value:"pseudo-element"}],onChange:e=>{u({bgOptions:{...ee,selector:e}}),"pseudo-element"!==e||oe||0===oe||u({innerZindex:1})}}),(0,e.createElement)(n.RangeControl,{label:(0,i.__)("Image Opacity","generateblocks"),value:ee.opacity,onChange:e=>{u({bgOptions:{...ee,opacity:e,selector:"pseudo-element"}}),oe||0===oe||u({innerZindex:1})},min:0,max:1,step:.01,initialPosition:p.bgOptions.opacity}),1!==ee.opacity&&"pseudo-element"!==ee.selector&&(0,e.createElement)(n.Notice,{className:"gblocks-option-notice",status:"info",isDismissible:!1},(0,i.__)("Your selector must be set to Pseudo Element to use opacity.","generateblocks"))),(0,e.createElement)(n.TextControl,{label:(0,i.__)("Size","generateblocks"),value:ee.size,onChange:e=>{u({bgOptions:{...ee,size:e}})}}),(0,e.createElement)(n.TextControl,{label:(0,i.__)("Position","generateblocks"),value:ee.position,onChange:e=>{u({bgOptions:{...ee,position:e}})}}),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Repeat","generateblocks"),value:ee.repeat,options:[{label:"no-repeat",value:"no-repeat"},{label:"repeat",value:"repeat"},{label:"repeat-x",value:"repeat-x"},{label:"repeat-y",value:"repeat-y"}],onChange:e=>{u({bgOptions:{...ee,repeat:e}})}}),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Attachment","generateblocks"),value:ee.attachment,options:[{label:"scroll",value:""},{label:"fixed",value:"fixed"},{label:"local",value:"local"}],onChange:e=>{u({bgOptions:{...ee,attachment:e}})}})),(0,e.createElement)(hi,t({},a,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorStopTwo:"gradientColorStopTwo",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",defaultColorOne:p.gradientColorOne,defaultColorTwo:p.gradientColorTwo})),(0,m.applyFilters)("generateblocks.editor.controls","","containerBackground",a,d))),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Shapes","generateblocks"),initialOpen:!1,icon:b("shapes"),className:"gblocks-panel-label",id:"containerShapes",state:d,showPanel:!("Desktop"!==g&&!c.shapeDividers.length)}),(0,e.createElement)(n.BaseControl,{className:"gb-icon-chooser gb-shape-chooser"},pe.map(((t,a)=>{const l=a+1;return(0,e.createElement)(e.Fragment,{key:a},(0,e.createElement)("div",{className:"gblocks-shape-container"},(0,e.createElement)("div",{className:s()({"gblocks-shape-toggle-preview":!0,[`gblocks-shape-toggle-preview-${l}`]:!0}),style:{backgroundColor:J}},void 0!==k[pe[a].shape]&&(0,e.createElement)("div",{className:"gblocks-shape-divider-preview",style:{color:pe[a].color},dangerouslySetInnerHTML:{__html:yi(k[pe[a].shape].icon)}})),
8
  /* translators: Shape number */
9
+ (0,i.sprintf)((0,i.__)("Shape %s","generateblocks"),l),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Dropdown,{contentClassName:"gblocks-shapes-dropdown",renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Edit Shape","generateblocks")},(0,e.createElement)(n.Button,{className:"gblocks-shape-dropdown",isSecondary:!a||void 0,isPrimary:!!a||void 0,icon:b("wrench"),onClick:l,"aria-expanded":a}))},renderContent:()=>(0,e.createElement)("div",{className:"gblocks-shape-controls"},"Desktop"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BaseControl,{className:"gb-icon-chooser"},Object.keys(generateBlocksInfo.svgShapes).map(((t,l)=>{const r=generateBlocksInfo.svgShapes[t].svgs;return(0,e.createElement)(n.PanelBody,{title:generateBlocksInfo.svgShapes[t].group,initialOpen:r.hasOwnProperty(pe[a].shape),key:l},(0,e.createElement)(n.PanelRow,null,(0,e.createElement)(n.BaseControl,null,(0,e.createElement)("ul",{className:"gblocks-icon-chooser gblocks-shape-chooser"},Object.keys(r).map(((t,l)=>(0,e.createElement)("li",{key:`editor-pblock-types-list-item-${l}`},(0,e.createElement)(n.Tooltip,{text:r[t].label},(0,e.createElement)(n.Button,{className:s()({"editor-block-list-item-button":!0,"gblocks-shape-is-active":pe[a].shape===t}),onClick:()=>{const e=[...pe];e[a]={...e[a],shape:t},u({shapeDividers:e})}},"string"==typeof r[t].icon?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:yi(r[t].icon)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},r[t].icon)))))))))))}))),(0,e.createElement)(n.BaseControl,null,(0,e.createElement)(pi,{label:(0,i.__)("Color","generateblocks"),value:pe[a].color,alpha:!0,valueOpacity:pe[a].colorOpacity,onChange:e=>{const t=[...pe];t[a]={...t[a],color:e},u({shapeDividers:t})},onOpacityChange:e=>{const t=[...pe];t[a]={...t[a],colorOpacity:e},u({shapeDividers:t})}})),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Location","generateblocks"),value:pe[a].location,options:[{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{const t=[...pe];t[a]={...t[a],location:e},u({shapeDividers:t})}}),(0,e.createElement)(x,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(n.TextControl,{type:"number",value:pe[a].height?pe[a].height:"",onChange:e=>{const t=[...pe];t[a]={...t[a],height:parseFloat(e)},u({shapeDividers:t})}}),(0,e.createElement)(x,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(n.TextControl,{type:"number",value:pe[a].width?pe[a].width:"",min:"100",onChange:e=>{const t=[...pe];t[a]={...t[a],width:parseFloat(e)},u({shapeDividers:t})}}),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Flip Horizontally","generateblocks"),checked:!!pe[a].flipHorizontally,onChange:e=>{const t=[...pe];t[a]={...t[a],flipHorizontally:e},u({shapeDividers:t})}}),(0,e.createElement)(n.TextControl,{label:(0,i.__)("z-index","generateblocks"),type:"number",min:"0",value:pe[a].zindex||0===pe[a].zindex?pe[a].zindex:"",onChange:e=>{const t=[...pe];t[a]={...t[a],zindex:e},u({shapeDividers:t})},onBlur:()=>{const e=[...pe];e[a]={...e[a],zindex:parseFloat(pe[a].zindex)},u({shapeDividers:e})},onClick:e=>{e.currentTarget.focus()}})),"Tablet"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(n.TextControl,{type:"number",value:pe[a].heightTablet?pe[a].heightTablet:"",onChange:e=>{const t=[...pe];t[a]={...t[a],heightTablet:parseFloat(e)},u({shapeDividers:t})}}),(0,e.createElement)(x,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(n.TextControl,{type:"number",value:pe[a].widthTablet?pe[a].widthTablet:"",min:"100",onChange:e=>{const t=[...pe];t[a]={...t[a],widthTablet:parseFloat(e)},u({shapeDividers:t})}})),"Mobile"===g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x,{label:(0,i.__)("Height","generateblocks"),value:"px",units:["px"],onClick:()=>!1}),(0,e.createElement)(n.TextControl,{type:"number",value:pe[a].heightMobile?pe[a].heightMobile:"",onChange:e=>{const t=[...pe];t[a]={...t[a],heightMobile:parseFloat(e)},u({shapeDividers:t})}}),(0,e.createElement)(x,{label:(0,i.__)("Width","generateblocks"),value:"%",units:["%"],onClick:()=>!1}),(0,e.createElement)(n.TextControl,{type:"number",value:pe[a].widthMobile?pe[a].widthMobile:"",min:"100",onChange:e=>{const t=[...pe];t[a]={...t[a],widthMobile:parseFloat(e)},u({shapeDividers:t})}})))})),"Desktop"===g&&(0,e.createElement)(n.Tooltip,{text:(0,i.__)("Delete Shape","generateblocks")},(0,e.createElement)(n.Button,{className:"gblocks-remove-shape",onClick:()=>{window.confirm((0,i.__)("This will permanently delete this shape.","generateblocks"))&&(e=>{const t=[...pe];t.splice(e,1),u({shapeDividers:t})})(a)},icon:b("x")}))))})),(0,e.createElement)("div",{className:"gblocks-add-new-shape"},(0,e.createElement)(n.Button,{isSecondary:!0,onClick:(()=>{const e=[...pe];e.push({shape:generateBlocksStyling.container.shapeDividers.shape,color:generateBlocksStyling.container.shapeDividers.color,colorOpacity:generateBlocksStyling.container.shapeDividers.colorOpacity,location:generateBlocksStyling.container.shapeDividers.location,height:generateBlocksStyling.container.shapeDividers.height,heightTablet:generateBlocksStyling.container.shapeDividers.heightTablet,heightMobile:generateBlocksStyling.container.shapeDividers.heightMobile,width:generateBlocksStyling.container.shapeDividers.width,widthTablet:generateBlocksStyling.container.shapeDividers.widthTablet,widthMobile:generateBlocksStyling.container.shapeDividers.widthMobile,flipHorizontally:generateBlocksStyling.container.shapeDividers.flipHorizontally,zindex:generateBlocksStyling.container.shapeDividers.zindex}),u({shapeDividers:e})}).bind(void 0)},(0,i.__)("Add Shape","generateblocks")))),(0,m.applyFilters)("generateblocks.editor.controls","","containerShapeDivider",a,d)))},Ci=t=>{let{source:a,onChange:l,help:r,dynamicContentType:n}=t;const o=(e=>{const t=[{value:"current-post",label:"caption"===e?(0,i.__)("Current image","generateblocks"):(0,i.__)("Current post","generateblocks")},{value:"post-type",label:(0,i.__)("Post type","generateblocks")}];return(0,m.applyFilters)("generateblocks.editor.dynamicContent.sourceOptions",t)})(n),s=o.filter((e=>e.value===a));return(0,e.createElement)(kr,{id:"gblocks-select-source-control",label:(0,i.__)("Data source","generateblocks"),help:r,placeholder:(0,i.__)("Select source","generateblocks"),options:o,value:s,onChange:l})},Ti=t=>{let{dynamicSource:a,postType:l,postId:r,setAttributes:n,dynamicContentType:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ci,{source:a,onChange:e=>{n({dynamicSource:e.value,postId:"",postType:"post"})},dynamicContentType:o}),"post-type"===a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Cr,{postType:l,onChange:e=>{n({postType:e.value,postId:""})}}),(0,e.createElement)(Rr,{postId:r,postType:l,value:[r],id:"gblocks-select-post",label:(0,i.__)("Select source post","generateblocks"),onChange:e=>{n({postId:e.value})},isMulti:!1})))},Ei=t=>{let{dynamicContentType:a,setAttributes:l,name:r,isCaption:n}=t;const o=((e,t)=>{let a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"post-title",label:(0,i.__)("Title","generateblocks")},{value:"post-excerpt",label:(0,i.__)("Excerpt","generateblocks")},{value:"post-date",label:(0,i.__)("Post date","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")},{value:"comments-number",label:(0,i.__)("Comments number","generateblocks")},{value:"terms",label:(0,i.__)("List of terms","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-meta",label:(0,i.__)("Author meta","generateblocks")},{value:"author-email",label:(0,i.__)("Email","generateblocks")},{value:"author-name",label:(0,i.__)("Name","generateblocks")},{value:"author-nickname",label:(0,i.__)("Nickname","generateblocks")},{value:"author-first-name",label:(0,i.__)("First name","generateblocks")},{value:"author-last-name",label:(0,i.__)("Last name","generateblocks")}]}];return"generateblocks/button"===e&&a.push({label:(0,i.__)("Pagination","generateblocks"),options:[{value:"pagination-numbers",label:(0,i.__)("Pagination numbers","generateblocks")}]}),"generateblocks/container"!==e&&"generateblocks/image"!==e||(a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"featured-image",label:(0,i.__)("Featured Image","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-avatar",label:(0,i.__)("Author avatar","generateblocks")}]}]),t&&(a=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Image","generateblocks"),options:[{value:"caption",label:(0,i.__)("Caption","generateblocks")},{value:"post-title",label:(0,i.__)("Title","generateblocks")},{value:"alt-text",label:(0,i.__)("Alt text","generateblocks")},{value:"image-description",label:(0,i.__)("Description","generateblocks")}]}]),(0,m.applyFilters)("generateblocks.editor.dynamicContent.sourceTypes",a,e)})(r,n),s=o.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===a));let c=(0,i.__)("Content source","generateblocks");return"generateblocks/container"===r&&(c=(0,i.__)("Background image source","generateblocks")),"generateblocks/image"===r&&(c=(0,i.__)("Image source","generateblocks")),(0,e.createElement)(kr,{id:"gblocks-select-content-type-control",label:c,placeholder:c,options:o,value:s,onChange:e=>{l({dynamicContentType:e.value,metaFieldName:""}),"comments-number"===e.value?l({noCommentsText:(0,i.__)("No comments","generateblocks"),singleCommentText:(0,i.__)("1 comment","generateblocks"),
10
  // translators: Number of comments.
11
+ multipleCommentsText:(0,i.__)("% comments","generateblocks")}):l({noCommentsText:"",singleCommentText:"",multipleCommentsText:""}),"author-avatar"===e.value?l({width:"50px",height:"50px"}):l({width:"",height:""})}})};const xi=(0,m.applyFilters)("generateblocks.editor.dynamicContent.linkPrependOptions",[{label:(0,i.__)("Default","generateblocks"),value:""},{label:(0,i.__)("Email","generateblocks"),value:"mailto:"},{label:(0,i.__)("Telephone","generateblocks"),value:"tel:"}]);var Si=t=>{let{linkType:a,linkMetaFieldName:l,linkMetaFieldType:r,dynamicContentType:o,setAttributes:s,isPagination:c,isActive:u,name:g,dynamicLinkRemoveIfEmpty:d}=t;const b=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0,l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Post","generateblocks"),options:[{value:"single-post",label:(0,i.__)("Single post","generateblocks")},{value:"comments-area",label:(0,i.__)("Comments area","generateblocks")},{value:"post-meta",label:(0,i.__)("Post meta","generateblocks")}]},{label:(0,i.__)("Author","generateblocks"),options:[{value:"author-archives",label:(0,i.__)("Author archives","generateblocks")},{value:"author-meta",label:(0,i.__)("Author meta","generateblocks")},{value:"author-email",label:(0,i.__)("Author email","generateblocks")}]}];return"terms"===e&&(l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Terms","generateblocks"),options:[{value:"term-archives",label:(0,i.__)("Term archives","generateblocks")}]}]),t&&(l=[{options:[{value:"",label:(0,i.__)("Select…","generateblocks")}]},{label:(0,i.__)("Pagination","generateblocks"),options:[{value:"pagination-prev",label:(0,i.__)("Previous page","generateblocks")},{value:"pagination-next",label:(0,i.__)("Next page","generateblocks")}]}],"pagination-numbers"===e&&(l=[])),"generateblocks/image"===a&&l.splice(1,0,{label:(0,i.__)("Image","generateblocks"),options:[{value:"single-image",label:(0,i.__)("Single image","generateblocks")}]}),(0,m.applyFilters)("generateblocks.editor.dynamicContent.linkTypes",l,e)}(o,c,g);if(0===b.length)return null;const p=b.reduce(((e,t)=>e.concat(t.options)),[]).filter((e=>e.value===a)),f="post-meta"===a||"author-meta"===a;return(0,e.createElement)(e.Fragment,null,u&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(kr,{id:"gblocks-select-link-type-control",label:(0,i.__)("Link source","generateblocks"),placeholder:(0,i.__)("Link source","generateblocks"),options:b,value:p,onChange:e=>s({dynamicLinkType:e.value})}),f&&(0,e.createElement)(n.TextControl,{label:(0,i.__)("Meta field name","generateblocks"),value:l,onChange:e=>s({linkMetaFieldName:e})}),("author-email"===a||f&&!!l)&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Link type","generateblocks"),value:r,onChange:e=>s({linkMetaFieldType:e}),options:xi}),!!a&&(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Remove block if link is empty","generateblocks"),checked:!!d,onChange:e=>s({dynamicLinkRemoveIfEmpty:e})})))};function Bi(t){const{isActive:a=!1,dateType:l,dateReplacePublished:r,setAttributes:o}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Date type","generateblocks"),value:l,options:[{value:"published",label:(0,i.__)("Published","generateblocks")},{value:"updated",label:(0,i.__)("Updated","generateblocks")}],onChange:e=>o({dateType:e})}),"published"===l&&(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Replace with updated date","generateblocks"),checked:!!r,onChange:e=>o({dateReplacePublished:e})})))}function Mi(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,l.useSelect)((l=>{const{getUser:n,isResolving:i,getEntityRecord:o,getEntityRecords:s,hasFinishedResolution:c}=l(Z.store),u=["postType",e,t];let g=o(...u);const d=!c("getEntityRecord",u)||i("getEntityRecord",u);let b=!1;if(a.includes("author")&&!d&&g){const e=n(g.author);b=!c("getUser",[g.author])||i("getUser",[g.author]),!b&&e&&(g=Object.assign({},g,{author:e}))}let p=!1;if(a.includes("comments")&&!d&&g){const e=["root","comment",{post:t}],a=s(...e);p=!c("getEntityRecords",e)||i("getEntityRecords",e),!p&&a&&(g=Object.assign({},g,{comments:a}))}let f=!1;if(a.includes("terms")&&!d&&g){const e=["taxonomy",r.taxonomy,{post:t}],a=s(...e);f=!c("getEntityRecords",e)||i("getEntityRecords",e),!f&&a&&(g=Object.assign({},g,{terms:a}))}return{record:(0,m.applyFilters)("generateblocks.editor.postRecord",g),isLoading:d||b||p||f}}),[e,t,a.join(),JSON.stringify(r)])}function Di(t){const{isActive:a=!1,postType:l,postId:r,metaFieldName:n,setAttributes:o}=t,{record:s,isLoading:c}=Mi(l,r),u=n?{value:n,label:n}:void 0;let g=u?[u]:[];return s&&s.meta&&(g=g.concat(Object.keys(s.meta).filter((e=>e!==n)).map((e=>({value:e,label:e}))))),(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(kr,{id:"gblocks-select-post-meta-control",label:(0,i.__)("Post meta field","generateblocks"),help:(0,i.__)("Live preview is only available to meta exposed to the REST API.","generateblocks"),placeholder:(0,i.__)("Choose or add meta key","generateblocks"),options:g,value:u,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,isLoading:c,onChange:e=>{o({metaFieldName:e?.value||void 0})}}))}function Ri(t){const{isActive:a=!1,postType:l,postId:r,metaFieldName:n,setAttributes:o}=t,{record:s,isLoading:c}=Mi(l,r,["author"]),u=n?{value:n,label:n}:void 0;let g=u?[u]:[];return s&&s.author&&s.author.meta&&(g=g.concat(Object.keys(s.author.meta).filter((e=>e!==n)).map((e=>({value:e,label:e}))))),(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(kr,{id:"gblocks-select-author-meta-control",label:(0,i.__)("Author meta field","generateblocks"),help:(0,i.__)("Live preview is only available to meta exposed to the REST API.","generateblocks"),placeholder:(0,i.__)("Choose or add meta key","generateblocks"),options:g,value:u,isSearchable:!0,isCreatable:!0,isClearable:!0,formatCreateLabel:e=>`Add "${e}"`,isLoading:c,onChange:e=>{o({metaFieldName:e?.value||void 0})}}))}function zi(t){const{isActive:a,noCommentsText:l,singleCommentText:r,multipleCommentsText:o,setAttributes:s}=t;return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.TextControl,{label:(0,i.__)("No comments text","generateblocks"),value:l,onChange:e=>s({noCommentsText:e})}),(0,e.createElement)(n.TextControl,{label:(0,i.__)("Single comment text","generateblocks"),value:r,onChange:e=>s({singleCommentText:e})}),(0,e.createElement)(n.TextControl,{label:(0,i.__)("Multiple comments text","generateblocks"),value:o,onChange:e=>s({multipleCommentsText:e})})))}function Li(t){const{isActive:a,postType:l,termTaxonomy:r,termSeparator:o,setAttributes:s,name:c}=t,u=K(),g=(0,e.useMemo)((()=>u.filter((e=>e.types.includes(l))).map((e=>({value:e.slug,label:e.name})))),[u,l]);return(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Tr,{label:(0,i.__)("Taxonomy","generateblocks"),options:g,value:r,onChange:e=>{s({termTaxonomy:e.value})}}),"generateblocks/button"!==c&&(0,e.createElement)(n.TextControl,{label:(0,i.__)("Term separator","generateblocks"),value:o,onChange:e=>s({termSeparator:e})})))}function Oi(a){const{isActive:l,useDefaultMoreLink:r,customMoreLinkText:o,setAttributes:s}=a;return(0,e.createElement)(e.Fragment,null,l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(M,t({},a,{label:(0,i.__)("Excerpt length","generateblocks"),attributeName:"excerptLength",min:"0"})),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Use default more link","generateblocks"),checked:!!r,onChange:e=>s({useDefaultMoreLink:e})}),!r&&(0,e.createElement)(Nr,{label:(0,i.__)("Custom more link text","generateblocks"),value:o,onChange:e=>s({customMoreLinkText:e})})))}var Ii=t=>{let{context:a,attributes:l,setAttributes:o,name:s}=t;const{postType:c,postId:u,useDynamicData:g,dynamicSource:d,dynamicContentType:p,dateType:m,dateReplacePublished:f,metaFieldName:h,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,termTaxonomy:w,termSeparator:_,dynamicLinkType:T,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,isQueryLoopItem:B,isCaption:M,excerptLength:D,useDefaultMoreLink:R,customMoreLinkText:z,dynamicLinkRemoveIfEmpty:L}=l,O="current-post"===d?a.postType:c,I="current-post"===d?a.postId:u,N=void 0!==a["generateblocks/queryId"];return(0,e.useEffect)((()=>{"generateblocks/container"===s&&g&&""!==p&&(B||N)&&o({bgImageInline:!0})}),[p,B]),(0,e.useEffect)((()=>{"generateblocks/headline"===s&&M&&g&&(a["generateblocks/mediaId"]?o({postId:a["generateblocks/mediaId"],postType:"attachment",dynamicSource:"current-post",dynamicContentType:p||"caption"}):o({postId:"",postType:"post",dynamicSource:"current-post",dynamicContentType:p||"caption"}))}),[M,a["generateblocks/mediaId"],g,p]),(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(C,{id:"dynamicDataControls",title:(0,i.__)("Dynamic Data","generateblocks"),initialOpen:!1,icon:b("dynamic"),className:"gblocks-panel-label"},(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Enable Dynamic Data","generateblocks"),checked:g,onChange:e=>{o({useDynamicData:e})}}),g&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ti,{dynamicSource:d,postType:c,postId:u,setAttributes:o,dynamicContentType:p}),(0,e.createElement)(Ei,{dynamicContentType:p,setAttributes:o,name:s,isCaption:M}),(0,e.createElement)(Bi,{isActive:"post-date"===p,dateType:m,dateReplacePublished:f,setAttributes:o}),(0,e.createElement)(Di,{isActive:"post-meta"===p,postType:O,postId:I,metaFieldName:h,setAttributes:o}),(0,e.createElement)(Ri,{isActive:"author-meta"===p,postType:O,postId:I,metaFieldName:h,setAttributes:o}),(0,e.createElement)(zi,{isActive:"comments-number"===p,noCommentsText:k,singleCommentText:v,multipleCommentsText:y,setAttributes:o}),(0,e.createElement)(Li,{isActive:"terms"===p,postType:O,termTaxonomy:w,termSeparator:_,setAttributes:o,name:s}),(0,e.createElement)(Oi,{isActive:"post-excerpt"===p,excerptLength:D,useDefaultMoreLink:R,customMoreLinkText:z,setAttributes:o,attributes:l}),(0,e.createElement)(Si,{isActive:"generateblocks/container"!==s||"generateblocks/container"===s&&void 0!==l.url,linkType:T,dynamicLinkRemoveIfEmpty:L,dynamicContentType:p,linkMetaFieldName:E,linkMetaFieldType:x,isPagination:S,setAttributes:o,name:s}))))};function Ni(t){let{name:a,clientId:r,align:n,children:i}=t;const{getBlockRootClientId:o}=(0,l.useSelect)((e=>e("core/block-editor")),[]),c=a.toString().replace("/","-"),u={className:s()({"wp-block":!0,"block-editor-block-list__block":!0,"gb-is-root-block":!0,[`gb-root-block-${c}`]:!0}),"data-align":n||null,"data-block":r};return o(r)?i:(0,e.createElement)("div",u,i)}var Ai=t=>{let{icon:a,hasIcon:l=!0,direction:r="left",children:n,hideChildren:i=!1,showWrapper:o=!1,wrapperClassname:s=""}=t;const c=a?(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:a}}):void 0;return(0,e.createElement)(e.Fragment,null,l&&"left"===r&&c,i||(o?(0,e.createElement)("span",{className:s},n):n),l&&"right"===r&&c)};function Fi(t){let{tagName:a,htmlAttrs:l,children:r}=t;return(0,e.createElement)(a,l,r)}function Pi(t){const{name:a,clientId:n,attributes:o,setAttributes:c,onSplit:u,onReplace:g,InnerContent:d=r.RichText,headlineRef:b}=t,{uniqueId:p,element:f,content:h,icon:k,hasIcon:v,anchor:y,removeText:w,ariaLabel:_,dynamicContentType:C,dynamicLinkType:T}=o;let E={className:s()({"gb-headline":!0,[`gb-headline-${p}`]:!0,"gb-headline-text":!v}),id:y||null,ref:b};E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",E,"generateblocks/headline",o);const x=(0,r.useBlockProps)(E),S=(0,m.applyFilters)("generateblocks.editor.headlineDisableFormatting",!1,t)?[]:null,B="terms"!==C&&T?"a":"span",M=(0,l.useSelect)((e=>e("core/rich-text").getFormatTypes()),[]),D=(0,e.useMemo)((()=>M&&T?M.filter((e=>"core/link"!==e.name)).map((e=>e.name)):S),[M,S,T]);return(0,e.createElement)(Ni,{name:a,clientId:n},(0,e.createElement)(Fi,{tagName:f,htmlAttrs:x},(0,e.createElement)(Ai,{hasIcon:v,icon:k,hideChildren:w,showWrapper:!w&&v,wrapperClassname:"gb-headline-text",ariaLabel:w&&_?_:void 0},(0,e.createElement)(d,{name:a,tagName:B,value:h,onChange:e=>c({content:e}),onSplit:u(o,n),onReplace:g,placeholder:(0,i.__)("Headline","generateblocks"),allowedFormats:D}))))}function Hi(t){const{attributes:a,setAttributes:l,isSelected:n,InnerContent:o=r.RichText,context:c,name:u,buttonRef:g}=t,{uniqueId:d,anchor:b,text:p,url:f,target:h,relNoFollow:k,relSponsored:v,icon:y,iconLocation:w,removeText:_,ariaLabel:C}=a,T=[];k&&T.push("nofollow"),h&&T.push("noopener","noreferrer"),v&&T.push("sponsored");let E={className:s()({"gb-button":!0,[`gb-button-${d}`]:!0,"gb-button-text":!y}),rel:T&&T.length>0?T.join(" "):null,"aria-label":C||null,id:b||null,ref:g};E=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",E,"generateblocks/button",a);const x=(0,r.useBlockProps)(E),S=(0,m.applyFilters)("generateblocks.editor.buttonDisableFormatting",!1,t)?[]:["core/bold","core/italic","core/strikethrough"];return(0,e.createElement)(Fi,{tagName:f?"a":"span",htmlAttrs:x},(0,e.createElement)(Ai,{hasIcon:!!y,icon:y,direction:w,hideChildren:_,showWrapper:!_&&!!y,wrapperClassname:"gb-button-text"},(0,e.createElement)(o,{name:u,placeholder:(0,i.__)("Add text…","generateblocks"),value:p,onChange:e=>l({text:e}),allowedFormats:S,isSelected:n,attributes:a,setAttributes:l,context:c})))}var Vi={useDynamicData:{type:"boolean",default:!1},isPagination:{type:"boolean",default:!1},isCaption:{type:"boolean",default:!1},dynamicContentType:{type:"string",default:""},dynamicLinkType:{type:"string",default:""},dynamicLinkRemoveIfEmpty:{type:"boolean",default:!1},dynamicSource:{type:"string",default:"current-post"},postId:{type:"number",default:""},postType:{type:"string",default:"post"},dateType:{type:"string",default:"published"},dateReplacePublished:{type:"boolean",default:!1},metaFieldName:{type:"string",default:""},linkMetaFieldName:{type:"string",default:""},linkMetaFieldType:{type:"string",default:""},termTaxonomy:{type:"string",default:""},termSeparator:{type:"string",default:", "},noCommentsText:{type:"string",default:""},singleCommentText:{type:"string",default:""},multipleCommentsText:{type:"string",default:""},useDefaultMoreLink:{type:"boolean",default:!0},customMoreLinkText:{type:"string",default:""},excerptLength:{type:"number",default:generateBlocksInfo.excerptLength}},Ui=window.wp.date;const Gi={"post-title":function(e){return e.title?e.title.raw||(0,i.__)("No post title.","generateblocks"):(0,i.__)("Post title not supported for this type.","generateblocks")},"post-excerpt":function(e,t){if(!e.excerpt)return(0,i.__)("Post except not supported for this type.","generateblocks");const{raw:a,rendered:l,protected:r}=e?.excerpt;if(r||!a&&!l)return(0,i.__)("No post excerpt.","generateblocks");const n=e=>(new window.DOMParser).parseFromString(e,"text/html"),o=n(l),s=n(generateBlocksInfo.excerptMore),c=o.body.textContent||o.body.innerText||"";let u=s.body.textContent||s.body.innerText||"";u=u.replace("...","…");let g=a.trim()?a:c;const d=g.includes(u);return g=d?g.replace(u,""):g,g=g.split(" ").splice(0,t.excerptLength).join(" "),t.useDefaultMoreLink?d&&(g+=generateBlocksInfo.excerptMore):g+=' ... <a href="#">'+t.customMoreLinkText+"</a>",g},"post-date":function(e,t){let a=t.dateType;if("published"===a&&t.dateReplacePublished&&(a="updated"),!e.date)return(0,i.__)("No post date.","generateblocks");const l="updated"===a?e.modified:e.date;return(0,Ui.dateI18n)(t.dateFormat||"F j, Y",l,"")},"post-meta":function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return qi(t.metaFieldName,e.meta,a)},"author-meta":function(e,t){return e.author?qi(t.metaFieldName,e.author.meta):Wi()},"author-email":function(e){return e.author?e.author.email||(0,i.__)("No author email.","generateblocks"):Wi()},"author-name":function(e){return e.author?e.author.name||(0,i.__)("No author name.","generateblocks"):Wi()},"author-nickname":function(e){return e.author?e.author.nickname||(0,i.__)("No author nickname.","generateblocks"):Wi()},"author-first-name":function(e){return e.author?e.author.first_name||(0,i.__)("No author first name.","generateblocks"):Wi()},"author-last-name":function(e){return e.author?e.author.last_name||(0,i.__)("No author last name.","generateblocks"):Wi()},"comments-number":function(e,t){const a=Array.isArray(e.comments)?e.comments.length:0,{noCommentsText:l,singleCommentText:r,multipleCommentsText:n}=t;return 0===a?l:1===a?r:n.replace("%",String(a))},"pagination-numbers":function(){return(0,i.__)("1 … 2 3","generateblocks")},"featured-image":function(e){return e?.featured_media},terms:function(e,t){return Array.isArray(e.terms)&&e.terms.length>0?e.terms.map((e=>e.name)).join(t.termSeparator):"No terms"},"author-avatar":function(e){return{source_url:e?.author?.avatar_urls&&e?.author?.avatar_urls[96]?e?.author?.avatar_urls[96]:""}},caption:function(e){return e?.caption?.raw||(0,i.__)("Image caption","generateblocks")},"alt-text":function(e){return e?.alt_text||(0,i.__)("Image alt text","generateblocks")},"image-description":function(e){return e?.description?.raw||(0,i.__)("Image description","generateblocks")}};function ji(e,t,a){return a?void 0:(0,i.sprintf)(// translators: %s: Content type.
12
+ (0,i.__)("Content type %s is not supported.","generateblocks"),t.dynamicContentType)}const qi=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&t[e]){const l=t[e],r=a?void 0:(0,i.__)("Meta value","generateblocks");return U().isString(l)||U().isNumber(l)?U().toString(l):r}return a?void 0:(0,i.__)("Meta value","generateblocks")};function Wi(){return(0,i.__)("Author not found.","generateblocks")}var $i=t=>{let{isGrid:a,uniqueId:l,children:r}=t;return a?(0,e.createElement)("div",{className:`gb-grid-column gb-grid-column-${l}`},r):r},Zi=t=>{let{attributes:a,allShapes:l}=t;const{shapeDividers:r}=a;return(0,e.createElement)(e.Fragment,null,!!a.shapeDividers.length&&(0,e.createElement)("div",{className:"gb-shapes"},a.shapeDividers.map(((t,a)=>{const n=a+1;return(0,e.createElement)(e.Fragment,{key:a},void 0!==l[r[a].shape]&&(0,e.createElement)("div",{className:s()({"gb-shape":!0,[`gb-shape-${n}`]:!0}),dangerouslySetInnerHTML:{__html:yi(l[r[a].shape].icon)}}))}))))};class Ki extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeVerticalGap:l}=t;let r=[];return r[".gb-grid-column-"+a]=[{"margin-bottom":!!l&&"0px !important"}],r=(0,m.applyFilters)("generateblocks.editor.desktopCSS",r,this.props,"container"),(0,e.createElement)("style",null,O(r))}}class Qi extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,widthTablet:r,autoWidthTablet:n,flexGrowTablet:i,flexShrinkTablet:o,flexBasisTablet:s,flexBasisUnit:c,minHeightTablet:u,minHeightUnitTablet:g,paddingTopTablet:d,paddingRightTablet:b,paddingBottomTablet:p,paddingLeftTablet:f,paddingUnit:h,marginTopTablet:k,marginRightTablet:v,marginBottomTablet:y,marginLeftTablet:w,marginUnit:_,borderSizeTopTablet:C,borderSizeRightTablet:T,borderSizeBottomTablet:E,borderSizeLeftTablet:x,borderRadiusTopRightTablet:S,borderRadiusBottomRightTablet:B,borderRadiusBottomLeftTablet:M,borderRadiusTopLeftTablet:D,borderRadiusUnit:R,verticalAlignmentTablet:z,alignmentTablet:L,fontSizeTablet:N,fontSizeUnit:A,orderTablet:F,shapeDividers:P,bgImage:H,bgOptions:V,gridId:U}=t;let G=[];return G[".editor-styles-wrapper .gb-container-"+a]=[{"border-top-left-radius":I(D,R),"border-top-right-radius":I(S,R),"border-bottom-right-radius":I(B,R),"border-bottom-left-radius":I(M,R),"margin-top":I(k,_),"margin-right":I(v,_),"margin-bottom":I(y,_),"margin-left":I(w,_),"text-align":L,"font-size":I(N,A),"min-height":I(u,g)}],(C||T||E||x)&&G[".editor-styles-wrapper .gb-container-"+a].push({"border-top-width":I(C,"px"),"border-right-width":I(T,"px"),"border-bottom-width":I(E,"px"),"border-left-width":I(x,"px"),"border-style":"solid"}),u&&!l&&G[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":"inherit"!==z?z:null}),l&&"inherit"!==z&&G[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":z}),G[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":I(d,h),"padding-right":I(b,h),"padding-bottom":I(p,h),"padding-left":I(f,h),width:!(!u||l)&&"100%"}],l&&(G[[".gb-post-template-"+U+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+a].join(",")]=[{width:n?"auto":I(r,"%"),"flex-grow":i,"flex-shrink":o,"flex-basis":isNaN(s)?s:I(s,c),order:F}]),H&&"pseudo-element"===V.selector&&(G[".gb-container-"+a+":before"]=[{"border-top-left-radius":I(D,R),"border-top-right-radius":I(S,R),"border-bottom-right-radius":I(B,R),"border-bottom-left-radius":I(M,R)}]),P.length&&P.forEach(((e,t)=>{G[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:I(P[t].heightTablet,"px"),width:I(P[t].widthTablet,"%")}]})),G=(0,m.applyFilters)("generateblocks.editor.tabletCSS",G,this.props,"container"),(0,e.createElement)("style",null,O(G))}}class Yi extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,removeVerticalGapTablet:l}=t;let r=[];return l&&(r[".gb-grid-column-"+a]=[{"margin-bottom":"0px !important"}]),r=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",r,this.props,"container"),(0,e.createElement)("style",null,O(r))}}class Ji extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,isGrid:l,widthMobile:r,autoWidthMobile:n,flexGrowMobile:i,flexShrinkMobile:o,flexBasisMobile:s,flexBasisUnit:c,minHeightMobile:u,minHeightUnitMobile:g,paddingTopMobile:d,paddingRightMobile:b,paddingBottomMobile:p,paddingLeftMobile:f,paddingUnit:h,marginTopMobile:k,marginRightMobile:v,marginBottomMobile:y,marginLeftMobile:w,marginUnit:_,borderSizeTopMobile:C,borderSizeRightMobile:T,borderSizeBottomMobile:E,borderSizeLeftMobile:x,borderRadiusTopRightMobile:S,borderRadiusBottomRightMobile:B,borderRadiusBottomLeftMobile:M,borderRadiusTopLeftMobile:D,borderRadiusUnit:R,verticalAlignmentMobile:z,removeVerticalGapMobile:L,alignmentMobile:N,fontSizeMobile:A,fontSizeUnit:F,orderMobile:P,shapeDividers:H,bgImage:V,bgOptions:U,gridId:G}=t;let j=[];return j[".editor-styles-wrapper .gb-container-"+a]=[{"border-top-left-radius":I(D,R),"border-top-right-radius":I(S,R),"border-bottom-right-radius":I(B,R),"border-bottom-left-radius":I(M,R),"margin-top":I(k,_),"margin-right":I(v,_),"margin-bottom":I(y,_),"margin-left":I(w,_),"text-align":N,"font-size":I(A,F),"min-height":I(u,g)}],(C||T||E||x)&&j[".editor-styles-wrapper .gb-container-"+a].push({"border-top-width":I(C,"px"),"border-right-width":I(T,"px"),"border-bottom-width":I(E,"px"),"border-left-width":I(x,"px"),"border-style":"solid"}),"inherit"!==z&&u&&!l&&j[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"row","align-items":z}),l&&"inherit"!==z&&j[".editor-styles-wrapper .gb-container-"+a].push({display:"flex","flex-direction":"column",height:"100%","justify-content":z}),j[".gb-container-"+a+" > .gb-inside-container"]=[{"padding-top":I(d,h),"padding-right":I(b,h),"padding-bottom":I(p,h),"padding-left":I(f,h),width:!(!u||l)&&"100%"}],l&&(j[[".gb-post-template-"+G+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+a].join(",")]=[{width:n?"auto":I(r,"%"),"flex-grow":i,"flex-shrink":o,"flex-basis":isNaN(s)?s:I(s,c),order:P}]),L&&(j[".gb-grid-column-"+a]=[{"margin-bottom":"0px !important"}]),V&&"pseudo-element"===U.selector&&(j[".gb-container-"+a+":before"]=[{"border-top-left-radius":I(D,R),"border-top-right-radius":I(S,R),"border-bottom-right-radius":I(B,R),"border-bottom-left-radius":I(M,R)}]),H.length&&H.forEach(((e,t)=>{j[".gb-container-"+a+" > .gb-shapes .gb-shape-"+(t+1)+" svg"]=[{height:I(H[t].heightMobile,"px"),width:I(H[t].widthMobile,"%")}]})),V&&"fixed"===U.attachment&&("element"===U.selector&&j[".editor-styles-wrapper .gb-container-"+a].push({"background-attachment":"initial"}),"pseudo-element"===U.selector&&(j[".gb-container-"+a+":before"]=[{"background-attachment":"initial"}])),j=(0,m.applyFilters)("generateblocks.editor.mobileCSS",j,this.props,"container"),(0,e.createElement)("style",null,O(j))}}function Xi(e,t,a,l,r){if(""!==e||""!==t||""!==a||""!==l)return e=0!=parseFloat(e)&&""!==e?parseFloat(e)+r+" ":"0 ",t=0!=parseFloat(t)&&""!==t?parseFloat(t)+r+" ":"0 ",a=0!=parseFloat(a)&&""!==a?parseFloat(a)+r+" ":"0 ",t===(l=0!=parseFloat(l)&&""!==l?parseFloat(l)+r+" ":"0 ")&&(l="",e===a&&(a="",e===t&&(t=""))),(e+t+a+l).trim()}var eo=e=>{const{attributes:t,featuredImage:a}=e,{dynamicImage:r,useDynamicData:n,dynamicContentType:i,bgImageSize:o}=t;return(0,l.useSelect)((e=>{const{getMedia:t}=e(Z.store);return"featured-image"===i&&a||!isNaN(parseInt(r))?t("featured-image"===i&&a?a:parseInt(r),{context:"view"}):r}),[n,r,o,a,i])};function to(e,t){return"object"==typeof e?e?.media_details?.sizes?.[t]?.source_url||e?.source_url:e}function ao(e){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",e.attributes,e),{bgImage:a,useDynamicData:l,dynamicContentType:r,bgImageSize:n}=t;let i=a?.image?.url;const o=eo(e);return l&&""!==r&&(i=to(o,n)),(0,m.applyFilters)("generateblocks.editor.bgImageURL",i,e)}function lo(e,t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{backgroundColor:l,backgroundColorOpacity:r,bgImage:n,bgImageInline:i,gradient:o,bgOptions:s,gradientColorOne:c,gradientColorOneOpacity:u,gradientColorTwo:g,gradientColorTwoOpacity:d,gradientColorStopOne:b,gradientColorStopTwo:p,gradientDirection:f,useDynamicData:h,dynamicContentType:k}=a;let v="";if(o){let e="",t="";const a=bi(c,u),l=bi(g,d);c&&""!==b&&(e=" "+b+"%"),g&&""!==p&&(t=" "+p+"%"),v="linear-gradient("+f+"deg, "+a+e+", "+l+t+")"}if("gradient"===e)return v;let y=!1;const w=bi(l,r);if(n||h&&""!==k){const e=ao(t);"element"===s.selector&&(w||o)&&void 0!==s.overlay&&s.overlay?o?y=v+", url("+e+")":w&&(y="linear-gradient(0deg, "+w+", "+w+"), url("+e+")"):(y="url("+e+")",i&&"element"!==s.selector&&(y="var(--background-image)"))}return y}function ro(t){const a=(0,m.applyFilters)("generateblocks.editor.cssAttrs",t.attributes,t),{clientId:l}=t,{uniqueId:r,isGrid:n,width:i,autoWidth:o,flexGrow:s,flexShrink:c,flexBasis:u,flexBasisUnit:g,outerContainer:d,innerContainer:b,containerWidth:p,minHeight:f,minHeightUnit:h,paddingTop:k,paddingRight:v,paddingBottom:y,paddingLeft:w,paddingUnit:_,marginTop:C,marginRight:T,marginBottom:E,marginLeft:x,marginUnit:S,borderSizeTop:B,borderSizeRight:M,borderSizeBottom:D,borderSizeLeft:R,borderRadiusTopRight:z,borderRadiusBottomRight:L,borderRadiusBottomLeft:N,borderRadiusTopLeft:A,borderRadiusUnit:F,borderColor:P,borderColorOpacity:H,backgroundColor:V,backgroundColorOpacity:U,gradient:G,gradientSelector:j,textColor:q,linkColor:W,linkColorHover:$,bgImage:Z,bgOptions:K,verticalAlignment:Q,zindex:Y,innerZindex:J,alignment:X,fontFamily:ee,fontFamilyFallback:te,fontWeight:ae,fontSize:le,fontSizeUnit:re,textTransform:ne,shapeDividers:ie,gridId:oe,useDynamicData:se,dynamicContentType:ce,bgImageInline:ue}=a;let ge=p;ge||(ge=generateBlocksDefaults.container.containerWidth);let de="";ee&&te&&(de=", "+te);const be=!!Z||se&&""!==ce,pe=lo("image",t),me=lo("gradient",t);let fe=[];return fe[".editor-styles-wrapper .gb-container-"+r]=[{"background-color":bi(V,U),color:q,"border-radius":Xi(A,z,L,N,F),margin:Xi(C,T,E,x,S),"z-index":Y,"text-align":X,"font-family":ee+de,"font-weight":ae,"text-transform":ne,"font-size":I(le,re),"min-height":I(f,h),"border-color":bi(P,H)}],be&&"element"===K.selector&&pe?fe[".editor-styles-wrapper .gb-container-"+r].push({"background-image":ue?null:pe,"background-size":K.size,"background-position":K.position,"background-repeat":K.repeat,"background-attachment":K.attachment}):G&&"element"===j&&fe[".editor-styles-wrapper .gb-container-"+r].push({"background-image":me}),(be&&"pseudo-element"===K.selector||Y||G&&"pseudo-element"===j)&&fe[".editor-styles-wrapper .gb-container-"+r].push({position:"relative"}),(be&&"pseudo-element"===K.selector||G&&"pseudo-element"===j)&&(fe[".editor-styles-wrapper .gb-container-"+r].push({overflow:"hidden"}),fe[".gb-container-"+r+" .block-list-appender"]=[{"z-index":10}]),fe[".editor-styles-wrapper .gb-container-"+r+" h1,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h2,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h3,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h4,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h5,\n\t\t.editor-styles-wrapper .gb-container-"+r+" h6"]=[{color:q}],(B||M||D||R)&&fe[".editor-styles-wrapper .gb-container-"+r].push({"border-width":Xi(B,M,D,R,"px"),"border-style":"solid"}),f&&!n&&fe[".editor-styles-wrapper .gb-container-"+r].push({display:"flex","flex-direction":"row","align-items":Q}),be&&"pseudo-element"===K.selector&&(fe[".gb-container-"+r+":before"]=[{content:'""',"background-image":pe,"background-repeat":K.repeat,"background-position":K.position,"background-size":K.size,"background-attachment":K.attachment,"z-index":"0",position:"absolute",top:"0",right:"0",bottom:"0",left:"0","border-radius":Xi(A,z,L,N,F)}],void 0!==K.opacity&&1!==K.opacity&&fe[".gb-container-"+r+":before"].push({opacity:K.opacity})),G&&"pseudo-element"===j&&(fe[".gb-container-"+r+":after"]=[{content:'""',"background-image":me,"z-index":"0 !important",position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}]),fe[".editor-styles-wrapper .gb-container-"+r+" a, .editor-styles-wrapper .gb-container-"+r+" a:visited"]=[{color:W}],fe[".editor-styles-wrapper .gb-container-"+r+" a:hover"]=[{color:$}],fe[".gb-container-"+r+" > .gb-inside-container"]=[{padding:Xi(k,v,y,w,_),width:!(!f||n)&&"100%"}],(J||0===J)&&fe[".gb-container-"+r+" > .gb-inside-container"].push({"z-index":J,position:"relative"}),"contained"!==b||n||fe[".gb-container-"+r+" > .gb-inside-container"].push({"max-width":I(ge,"px"),"margin-left":"auto","margin-right":"auto"}),fe["#block-"+l]=[{"max-width":"contained"===d&&!n&&I(ge,"px"),"margin-left":"contained"===d&&!n&&"auto","margin-right":"contained"===d&&!n&&"auto"}],n&&(fe[[".gb-post-template-"+oe+" > .gb-post-template-wrapper > .block-editor-inner-blocks",".gb-grid-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout > .gb-grid-column-"+r].join(",")]=[{width:!o&&I(i,"%"),"flex-grow":s,"flex-shrink":c,"flex-basis":isNaN(u)?u:I(u,g)}],fe[".editor-styles-wrapper .gb-container-"+r].push({display:"flex","flex-direction":"column",height:"100%","justify-content":Q})),fe["#block-"+l+":not(.has-child-selected):not(.is-selected) .block-list-appender:not(:first-child),\n\t#block-"+l+":not(.has-child-selected):not(.is-selected) .block-editor-block-list__layout > div:not(:first-child) > .block-list-appender"]=[{display:"none"}],ie.length&&(fe[".editor-styles-wrapper .gb-container-"+r].push({position:"relative"}),fe[".gb-container-"+r+" .block-list-appender"]=[{position:"relative","z-index":100}],ie.forEach(((e,t)=>{const a=[],l=t+1;"top"===ie[t].location&&a.push("scaleY(-1)"),ie[t].flipHorizontally&&(a.push("scaleX(-1)"),fe[".gblocks-shape-container > .gblocks-shape-toggle-preview-"+l+" .gblocks-shape-divider-preview"]=[{transform:"scaleX(-1)"}]),fe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l]=[{color:bi(ie[t].color,ie[t].colorOpacity),"z-index":ie[t].zindex}],"top"!==ie[t].location&&"bottom"!==ie[t].location||fe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({left:"0",right:"0"}),"bottom"===ie[t].location&&fe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({bottom:"-1px"}),"top"===ie[t].location&&fe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({top:"-1px"}),a.length&&fe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l].push({transform:a.join(" ")});let n=ie[t].width+"%";100===ie[t].width&&(n="calc("+n+" + 1.3px)"),fe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l+" svg"]=[{height:I(ie[t].height,"px"),width:n}],"top"!==ie[t].location&&"bottom"!==ie[t].location||fe[".gb-container-"+r+" > .gb-shapes .gb-shape-"+l+" svg"].push({position:"relative",left:"50%",transform:"translateX(-50%)","min-width":"100%"})}))),fe=(0,m.applyFilters)("generateblocks.editor.mainCSS",fe,t,"container"),(0,e.createElement)("style",null,O(fe))}var no=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:r=!1}=t?.attributes;return r?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ro,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(Ki,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Qi,t),"Tablet"===a&&(0,e.createElement)(Yi,t),"Mobile"===a&&(0,e.createElement)(Ji,t)))}),G);function io(a){const{attributes:o,clientId:c,name:u,filterTagName:g,allShapes:d,deviceType:p}=a,{uniqueId:f,className:h,anchor:k,tagName:v,backgroundColor:y,isGrid:w,bgOptions:_,bgImageInline:C,align:T,isBlockPreview:E=!1}=o,{selectBlock:x}=(0,l.useDispatch)("core/block-editor"),S=0<$(c);let B=!!y||o.borderSizeTop||o.borderSizeRight||o.borderSizeBottom||o.borderSizeLeft;B=(0,m.applyFilters)("generateblocks.editor.containerHasStyling",B,a);let M={className:s()({"gb-container":!0,[`gb-container-${f}`]:!0,[`${h}`]:void 0!==h,"gb-container-empty":!S&&!E,"gb-container-visual-guides":!(S||B||a.isSelected||E)}),id:k||null,"data-align":T||null};const D=ao(a);if(C&&D){let e="background-image";"element"!==_.selector&&(e="--"+e),M.style={[e]:"url("+D+")"}}M=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",M,"generateblocks/container",o);const R=(0,r.useBlockProps)(M);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(no,t({},a,{deviceType:p})),(0,e.createElement)(Ni,{name:u,clientId:c,align:T},(0,e.createElement)($i,{isGrid:w,uniqueId:f},(0,e.createElement)(Fi,{tagName:g((0,m.applyFilters)("generateblocks.frontend.containerTagName",v,o)),htmlAttrs:R},(0,m.applyFilters)("generateblocks.frontend.afterContainerOpen","",o),(0,e.createElement)("div",{className:"gb-inside-container"},(0,m.applyFilters)("generateblocks.frontend.insideContainer","",o),(0,e.createElement)(r.InnerBlocks,{templateLock:!1,renderAppender:()=>!E&&(a.isSelected?(0,e.createElement)(r.InnerBlocks.ButtonBlockAppender,null):!S&&!a.isSelected&&(0,e.createElement)(n.Button,{className:"gblocks-container-selector",onClick:()=>x(c),"aria-label":(0,i.__)("Select Container","generateblocks")},(0,e.createElement)("span",{className:"gblocks-container-selector__icon"},b("container"))))})),(0,e.createElement)(Zi,{attributes:o,allShapes:d}),(0,m.applyFilters)("generateblocks.frontend.beforeContainerClose","",o)))))}function oo(t){const{onSelectImage:a,onSelectURL:l,onUploadError:n,attributes:o,canUploadImage:s}=t,{width:c,height:u,useDynamicData:g,uniqueId:d}=o,p=(0,e.createElement)(T.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,e.createElement)(T.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));let m=generateBlocksInfo.imagePlaceholders.standard;c&&c<500&&c===u&&(m=generateBlocksInfo.imagePlaceholders.square);let f=(0,e.createElement)(r.MediaPlaceholder,{labels:{title:(0,i.__)("Image","generateblocks"),instructions:(0,i.__)("Choose an image from your media library or add one with a URL.","generateblocks")},icon:b("image"),onSelect:a,onSelectURL:g?null:l,onError:n,accept:"image/*",allowedTypes:["image"]});return s||(f=(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{className:"gb-image-"+d,src:m,alt:"",width:c||1e3,height:u||650}),p)),(0,e.createElement)("div",{className:"gblocks-image__placeholder",style:{width:!s&&c?c:null}},f)}function so(t){const{href:a,openInNewWindow:l,relNoFollow:r,relSponsored:n,children:i,disabled:o}=t,s=[];return l&&s.push("noopener","noreferrer"),r&&s.push("nofollow"),n&&s.push("sponsored"),(0,e.createElement)(e.Fragment,null,a?(0,e.createElement)("a",{href:o?void 0:a,target:l?"_blank":void 0,rel:s&&s.length>0?s.join(" "):null},i):i)}function co(a){const{src:l,alt:i,title:o,anchorAttributes:c,imageRef:u,setLoadedNaturalSize:g,naturalWidth:d,naturalHeight:b,attributes:p,temporaryURL:f}=a,{uniqueId:h,anchor:k,mediaId:v,dynamicImage:y,useDynamicData:w,className:_,align:C}=p,T=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",{className:s()({"gb-image":!0,[`gb-image-${h}`]:!0,[`${_}`]:void 0!==_,[`align${C}`]:""!==C}),id:k||null,width:d,height:b,src:f||l,alt:i,title:o},"generateblocks/image",p);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(so,c,(0,e.createElement)("img",t({},T,{ref:u,onLoad:e=>{g({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})}})),f&&(0,e.createElement)(n.Spinner,null)),(0,e.createElement)(r.BlockContextProvider,{value:{"generateblocks/dynamicImage":!!w&&parseInt(y),"generateblocks/mediaId":!w&&v}},(0,e.createElement)(r.InnerBlocks,{allowedBlocks:["generateblocks/headline"],renderAppender:!1})))}const uo={className:"block-editor-block-settings-menu__popover",position:"bottom right"};function go(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const a={width:"300px","font-style":"italic","margin-bottom":t?"15px":"0"};return(0,e.createElement)("div",{style:a},(0,i.__)("This button is using a dynamic link.","generateblocks"))}function bo(t){const{attributes:a,setAttributes:l,name:o}=t,{href:s,relNoFollow:c,relSponsored:u,dynamicLinkType:g,useDynamicData:d,url:b}=a,p=d&&g,f="generateblocks/button"===o?"target":"openInNewWindow",h=a[f],k="generateblocks/button"===o?b:s;return(0,e.createElement)(e.Fragment,null,d?(0,e.createElement)(go,{marginBottom:!!g}):(0,e.createElement)(r.URLInput,{className:"gblocks-link-url",value:k,onChange:e=>l({href:e})}),(0,m.applyFilters)("generateblocks.editor.urlInputMoreOptions","",a),(!!k||p)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Open link in a new tab","generateblocks"),checked:h||"",onChange:e=>l({[f]:e})}),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)('Add rel="nofollow"',"generateblocks"),checked:c||"",onChange:e=>l({relNoFollow:e})}),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)('Add rel="sponsored"',"generateblocks"),checked:u||"",onChange:e=>l({relSponsored:e})})))}function po(t){const{attributes:a,name:l}=t,{url:r,href:o}=a,s="generateblocks/button"===l?r:o,c=s?(0,i.__)("Change Link","generateblocks"):(0,i.__)("Add Link","generateblocks");return(0,e.createElement)(n.Dropdown,{popoverProps:uo,contentClassName:"gblocks-link-control-dropdown",renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(n.ToolbarButton,{icon:an,label:c,onClick:l,"aria-expanded":a,isPressed:!!s})},renderContent:()=>(0,e.createElement)(bo,t)})}function mo(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{attributes:l,deviceType:r}=t,n="Desktop"===r?"":r,i=e+n;return a?i:l[i]}var fo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"})),ho=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"})),ko=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"})),vo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M4 9v6h14V9H4zm8-4.8H4v1.5h8V4.2zM4 19.8h8v-1.5H4v1.5z"})),yo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M6 15h14V9H6v6zm6-10.8v1.5h8V4.2h-8zm0 15.6h8v-1.5h-8v1.5z"})),wo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M5 9v6h14V9H5zm11-4.8H8v1.5h8V4.2zM8 19.8h8v-1.5H8v1.5z"})),_o=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M5 4v11h14V4H5zm3 15.8h8v-1.5H8v1.5z"}));function Co(t){const{attributes:a,setAttributes:o,deviceType:s}=t,{align:c}=a,{wideControlsEnabled:u=!1}=(0,l.useSelect)((e=>{const{getSettings:t}=e(r.store);return{wideControlsEnabled:t().alignWide}}),[]),g={left:fo,center:ho,right:ko,floatLeft:vo,floatRight:yo,wide:wo,full:_o},d=c?g[c]:g[mo("alignment",t)]||fo,b=e=>o({[mo("alignment",t,!0)]:e!==mo("alignment",t)?e:"",align:""}),p=[{icon:fo,title:(0,i.__)("Align left","generateblocks"),onClick:()=>b("left"),isActive:"left"===mo("alignment",t)},{icon:ho,title:(0,i.__)("Align center","generateblocks"),onClick:()=>b("center"),isActive:"center"===mo("alignment",t)},{icon:ko,title:(0,i.__)("Align right","generateblocks"),onClick:()=>b("right"),isActive:"right"===mo("alignment",t)},{icon:vo,title:(0,i.__)("Float left","generateblocks"),onClick:()=>b("floatLeft"),isActive:"floatLeft"===mo("alignment",t)},{icon:yo,title:(0,i.__)("Float right","generateblocks"),onClick:()=>b("floatRight"),isActive:"floatRight"===mo("alignment",t)}];return u&&"Desktop"===s&&p.push({icon:wo,title:(0,i.__)("Wide width","generateblocks"),onClick:()=>o({align:"wide"!==c?"wide":"",alignment:"",alignmentTablet:"",alignmentMobile:""}),isActive:"wide"===c},{icon:_o,title:(0,i.__)("Full width","generateblocks"),onClick:()=>o({align:"full"!==c?"full":"",alignment:"",alignmentTablet:"",alignmentMobile:""}),isActive:"full"===c}),(0,e.createElement)(n.ToolbarGroup,{isCollapsed:!0,icon:d,controls:p})}function To(t){const{attributes:a,setAttributes:o,onSelectImage:s,onUploadError:c,onResetImage:u,imageUrl:d,canUploadImage:p,clientId:m,deviceType:f}=t,{mediaId:h,caption:k}=a,{insertBlocks:v}=(0,l.useDispatch)("core/block-editor"),y=$(m);return(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(Co,{attributes:a,setAttributes:o,deviceType:f}),0===y&&(0,e.createElement)(n.ToolbarGroup,null,(0,e.createElement)(n.ToolbarButton,{className:"gblocks-add-new-button",icon:b("caption"),label:(0,i.__)("Add Caption","generateblocks"),onClick:()=>{v((0,g.createBlock)("generateblocks/headline",{element:"figcaption",content:k,isCaption:!0}),void 0,m)},showTooltip:!0})),!!d&&(0,e.createElement)(n.ToolbarGroup,null,(0,e.createElement)(po,{attributes:a,setAttributes:o})),!!d&&p&&(0,e.createElement)(n.ToolbarGroup,null,(0,e.createElement)(r.MediaReplaceFlow,{mediaId:h,mediaURL:d,allowedTypes:["image"],accept:"image/*",onSelect:s,onError:c},(0,e.createElement)(n.MenuItem,{onClick:u},(0,i.__)("Reset")))))}function Eo(a){const{attributes:n,setAttributes:i,name:o,clientId:c,deviceType:u,temporaryURL:g}=a,{uniqueId:d,useDynamicData:b,dynamicContentType:p,href:f,openInNewWindow:h,relNoFollow:k,relSponsored:v,sizeSlug:y,className:w,align:_}=n,C=(0,e.useRef)(),T=(0,e.useRef)(),[{loadedNaturalWidth:E,loadedNaturalHeight:x},S]=(0,e.useState)({}),{naturalWidth:B,naturalHeight:M}=(0,e.useMemo)((()=>({naturalWidth:C.current?.naturalWidth||E||void 0,naturalHeight:C.current?.naturalHeight||x||void 0})),[E,x,C.current?.complete]),{getBlockRootClientId:D}=(0,l.useSelect)((e=>e("core/block-editor")),[]),R=D(c),z=eo(a),L=to(z,y),O=(0,m.applyFilters)("generateblocks.editor.dynamicImageFallback",L,a),I=b&&p?O:n.mediaUrl,N=b&&p?z?.alt_text:n.alt,A=b&&p?z?.title?.rendered:n.title,F=(0,r.useBlockProps)({className:s()({"gb-block-image":!0,[`gb-block-image-${d}`]:!0,"is-applying":!!g}),"data-align":R?_:null,ref:T});F.className.includes(w)&&(F.className=F.className.replace(w,"").trim());const P=!b||b&&!p,H={src:I,alt:N,title:A,setAttributes:i,anchorAttributes:{href:f,openInNewWindow:h,relNoFollow:k,relSponsored:v,disabled:!0},imageRef:C,setLoadedNaturalSize:S,naturalWidth:B,naturalHeight:M,attributes:n,temporaryURL:g};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(To,t({},a,{imageUrl:I,canUploadImage:P,deviceType:u})),(0,e.createElement)(Ni,{name:o,clientId:c,align:_},(0,e.createElement)(Fi,{tagName:"figure",htmlAttrs:F},g||I?(0,e.createElement)(co,H):(0,e.createElement)(oo,t({},a,{canUploadImage:P})))))}function xo(t){const{name:a,attributes:l,context:n}=t,o=function(e,t){return"current-post"===t.dynamicSource?(t.isCaption&&(e.postId=e["generateblocks/dynamicImage"]?e["generateblocks/dynamicImage"]:e["generateblocks/mediaId"],e.postType="attachment"),Object.assign({},t,e)):t}(n,Wr(l,Object.keys(Vi))),{dynamicContentType:s,dynamicLinkType:c,termSeparator:u}=o,g=((e,t)=>{const{postId:a,postType:l}=e;if(!l)return(0,i.__)("Post type not selected.","generateblocks");if(l&&!a)return(0,i.__)("Post source not selected.","generateblocks");const[r]=(0,Z.useEntityProp)("root","site","date_format"),{load:n,loadOptions:o}=function(e,t){const a=[];let l={};return e.startsWith("author-")&&a.push("author"),"terms"===e&&(a.push("terms"),l=Object.assign({},l,{taxonomy:t.termTaxonomy})),"comments-number"===e&&a.push("comments"),{load:a,loadOptions:l}}(e.dynamicContentType,e),{record:s,isLoading:c}=Mi(l,a,n,o);if("generateblocks/image"===t&&!s)return;if(c)return(0,i.__)("Loading…","generateblocks");if(!s)return(0,i.sprintf)(// translators: %1$s: post ID, %2$s: post type.
13
+ (0,i.__)("Post of id #%1$s and post type %2$s was not found.","generateblocks"),a,l);const u=Object.assign({},e,{dateFormat:r}),g="generateblocks/image"===t;return function(e,t,a){let l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=Gi[e];return r&&"function"==typeof r?r(t,a,l):ji(0,a,l)}(e.dynamicContentType,s,u,g)})(o,a),d=function(e){return{"generateblocks/headline":Pi,"generateblocks/button":Hi,"generateblocks/container":io,"generateblocks/image":Eo}[e]}(a),b="generateblocks/headline"===a?l.content:l.text;let p=l.dynamicContentType?g:b;c&&"terms"===s&&"generateblocks/headline"===a&&(p=g.split(u).map(((t,a,l)=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("a",null,t),a+1!==l.length&&u)))),"terms"===s&&"generateblocks/button"===a&&(p=g.split(u)[0]);const m=Object.assign({},l,{content:"generateblocks/headline"===a?p:void 0,text:"generateblocks/button"===a?p:void 0,dynamicImage:"generateblocks/container"===a||"generateblocks/image"===a?p:void 0}),f=Object.assign({},t,{InnerContent:l.dynamicContentType?r.RichText.Content:r.RichText,attributes:m});return(0,e.createElement)(d,f)}var So=t=>a=>{const{attributes:l,setAttributes:r,context:n,name:i}=a,o=l.useDynamicData&&(l.dynamicContentType||l.dynamicLinkType)?Object.assign({},a,{ContentRenderer:xo}):a;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,o),(0,e.createElement)(Ii,{context:n,attributes:l,setAttributes:r,name:i}))},Bo=(0,q.compose)(So,Y,(t=>a=>{const{attributes:l,setAttributes:r}=a;return(0,e.useEffect)((()=>{if(void 0!==l.isDynamic&&l.isDynamic||r({isDynamic:!0}),void 0===l.blockVersion||l.blockVersion<2){let e=l.gradient&&"pseudo-element"===l.gradientSelector&&!S(l.innerZindex);e||(e=!!l.bgImage&&void 0!==l.bgOptions.selector&&"pseudo-element"===l.bgOptions.selector),e||(e=void 0!==l.useAdvBackgrounds&&l.useAdvBackgrounds),e&&r({innerZindex:1})}if(!J(l)&&X(l.blockVersion,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.container,t=void 0!==l.useGlobalStyle&&l.useGlobalStyle,a={},n=[];t||n.push("paddingTop","paddingRight","paddingBottom","paddingLeft"),l.isGrid&&n.push("width","widthMobile"),l.gradient&&n.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),n.forEach((t=>{S(l[t])||(a[t]=e[t])})),Object.keys(a).length>0&&r(a)}void 0===l.bgOptions.selector&&r({bgOptions:{...l.bgOptions,selector:"element"}}),void 0===l.bgOptions.opacity&&r({bgOptions:{...l.bgOptions,opacity:1}}),X(l.blockVersion,2)&&r({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:l,setAttributes:r,ContentRenderer:n=io}=a,{anchor:i,fontFamily:o,googleFont:s,googleFontVariants:c,isBlockPreview:u=!1}=l,[g,d]=W("Desktop"),b=(0,m.applyFilters)("generateblocks.editor.containerTagNames",[{label:"div",value:"div"},{label:"section",value:"section"},{label:"header",value:"header"},{label:"footer",value:"footer"},{label:"aside",value:"aside"}],a,{deviceType:g}),p=(0,m.applyFilters)("generateblocks.editor.allowedContainerTagNames",["div","section","header","footer","aside","a"]),f=e=>p.includes(e)?e:"div",h=[];return Object.keys(generateBlocksInfo.svgShapes).forEach((e=>{const t=generateBlocksInfo.svgShapes[e].svgs;Object.keys(t).forEach((e=>{h[e]={label:t[e].label,icon:t[e].icon}}))})),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Yr,{attributes:l,setAttributes:r,deviceType:g}),(0,e.createElement)(_i,t({},a,{deviceType:g,setDeviceType:d,state:{deviceType:g},blockDefaults:generateBlocksDefaults.container,tagNames:b,filterTagName:f,allShapes:h})),(0,e.createElement)(L,{anchor:i,setAttributes:r}),(0,e.createElement)(Jr,{fontFamily:o,googleFont:s,googleFontVariants:c,isBlockPreview:u}),(0,e.createElement)(n,t({},a,{generateBlocksInfo:generateBlocksInfo,filterTagName:f,allShapes:h,deviceType:g})))})),Mo={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isGrid:{type:"boolean",default:!1},isQueryLoopItem:{type:"boolean",default:!1},gridId:{type:"string",default:""},tagName:{type:"string",default:generateBlocksDefaults.container.tagName},width:{type:"number",default:generateBlocksDefaults.container.width},widthTablet:{type:"number",default:generateBlocksDefaults.container.widthTablet},widthMobile:{type:"number",default:generateBlocksDefaults.container.widthMobile},autoWidthTablet:{type:"boolean",default:generateBlocksDefaults.container.autoWidthTablet},autoWidthMobile:{type:"boolean",default:generateBlocksDefaults.container.autoWidthMobile},flexGrow:{type:"number",default:generateBlocksDefaults.container.flexGrow},flexGrowTablet:{type:"number",default:generateBlocksDefaults.container.flexGrowTablet},flexGrowMobile:{type:"number",default:generateBlocksDefaults.container.flexGrowMobile},flexShrink:{type:"number",default:generateBlocksDefaults.container.flexShrink},flexShrinkTablet:{type:"number",default:generateBlocksDefaults.container.flexShrinkTablet},flexShrinkMobile:{type:"number",default:generateBlocksDefaults.container.flexShrinkMobile},flexBasis:{type:"string",default:generateBlocksDefaults.container.flexBasis},flexBasisTablet:{type:"string",default:generateBlocksDefaults.container.flexBasisTablet},flexBasisMobile:{type:"string",default:generateBlocksDefaults.container.flexBasisMobile},flexBasisUnit:{type:"string",default:generateBlocksDefaults.container.flexBasisUnit},orderTablet:{type:"number",default:generateBlocksDefaults.container.orderTablet},orderMobile:{type:"number",default:generateBlocksDefaults.container.orderMobile},outerContainer:{type:"string",default:generateBlocksDefaults.container.outerContainer},innerContainer:{type:"string",default:generateBlocksDefaults.container.innerContainer},containerWidth:{type:"number",default:generateBlocksDefaults.container.containerWidth},minHeight:{type:"number",default:generateBlocksDefaults.container.minHeight},minHeightUnit:{type:"string",default:generateBlocksDefaults.container.minHeightUnit},minHeightTablet:{type:"number",default:generateBlocksDefaults.container.minHeightTablet},minHeightUnitTablet:{type:"string",default:generateBlocksDefaults.container.minHeightUnitTablet},minHeightMobile:{type:"number",default:generateBlocksDefaults.container.minHeightMobile},minHeightUnitMobile:{type:"string",default:generateBlocksDefaults.container.minHeightUnitMobile},paddingTop:{type:"string",default:generateBlocksDefaults.container.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.container.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.container.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.container.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.container.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},paddingTopTablet:{type:"string",default:generateBlocksDefaults.container.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.container.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.container.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.container.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.container.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.container.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.container.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.container.paddingLeftMobile},marginTop:{type:"string",default:generateBlocksDefaults.container.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.container.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.container.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.container.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.container.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.container.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.container.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.container.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.container.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.container.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.container.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.container.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.container.marginLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.container.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.container.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.container.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.container.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.container.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.container.borderRadiusTopLeftMobile},borderColor:{type:"string",default:generateBlocksDefaults.container.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.container.borderColorOpacity},backgroundColor:{type:"string",default:generateBlocksDefaults.container.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.container.backgroundColorOpacity},gradient:{type:"boolean",default:generateBlocksDefaults.container.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.container.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.container.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.container.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.container.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.container.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.container.gradientColorStopTwo},gradientSelector:{type:"string",default:"element"},textColor:{type:"string",default:generateBlocksDefaults.container.textColor},linkColor:{type:"string",default:generateBlocksDefaults.container.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.container.linkColorHover},bgImage:{type:"object",default:generateBlocksDefaults.container.bgImage},bgOptions:{type:"object",default:{selector:generateBlocksDefaults.container.bgOptions.selector,opacity:generateBlocksDefaults.container.bgOptions.opacity,overlay:generateBlocksDefaults.container.bgOptions.overlay,position:generateBlocksDefaults.container.bgOptions.position,size:generateBlocksDefaults.container.bgOptions.size,repeat:generateBlocksDefaults.container.bgOptions.repeat,attachment:generateBlocksDefaults.container.bgOptions.attachment}},bgImageSize:{type:"string",default:generateBlocksDefaults.container.bgImageSize},bgImageInline:{type:"boolean",default:generateBlocksDefaults.container.bgImageInline},verticalAlignment:{type:"string",default:generateBlocksDefaults.container.verticalAlignment},verticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentTablet},verticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.container.verticalAlignmentMobile},zindex:{type:"number",default:generateBlocksDefaults.container.zindex},innerZindex:{type:"number",default:generateBlocksDefaults.container.innerZindex},removeVerticalGap:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGap},removeVerticalGapTablet:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapTablet},removeVerticalGapMobile:{type:"boolean",default:generateBlocksDefaults.container.removeVerticalGapMobile},alignment:{type:"string",default:generateBlocksDefaults.container.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.container.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.container.alignmentMobile},fontFamily:{type:"string",default:generateBlocksDefaults.container.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.container.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.container.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.container.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.container.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.container.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.container.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.container.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.container.fontSizeUnit},textTransform:{type:"string",default:""},align:{type:"string",default:""},shapeDividers:{type:"array",default:[]},isDynamic:{type:"boolean"},blockVersion:{type:"number"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Do=[{attributes:Mo,supports:{align:!1,anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save(t){let{attributes:a}=t;const{uniqueId:l,tagName:n,elementId:i,cssClasses:o,isGrid:c,align:u}=a;let g={className:s()({"gb-container":!0,[`gb-container-${l}`]:!0,[`${o}`]:""!==o,[`align${u}`]:!!u&&!c}),id:i||null};return g=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",g,"generateblocks/container",a),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:c,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-grid-column":!0,[`gb-grid-column-${l}`]:!0})},t)},(0,e.createElement)(Fi,{tagName:n,htmlAttrs:g},(0,m.applyFilters)("generateblocks.frontend.insideContainer","",a),(0,e.createElement)("div",{className:s()({"gb-inside-container":!0})},(0,e.createElement)(r.InnerBlocks.Content,null))))}}];var Ro=Do;const zo=Object.assign({},Mo,Vi);(0,g.registerBlockType)("generateblocks/container",{apiVersion:2,title:(0,i.__)("Container","generateblocks"),description:(0,i.__)("Organize your content into rows and sections.","generateblocks"),icon:b("container"),category:"generateblocks",keywords:[(0,i.__)("section"),(0,i.__)("container"),(0,i.__)("generate")],attributes:zo,supports:{align:!1,className:!1,html:!1},usesContext:["postId","postType","generateblocks/queryId"],edit:Bo,save:()=>(0,e.createElement)(r.InnerBlocks.Content,null),deprecated:Ro,__experimentalLabel:e=>e.isQueryLoopItem?(0,i.__)("Post Template","generateblocks"):(0,i.__)("Container","generateblocks")});var Lo=(0,e.createElement)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(T.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Oo=[{icon:fo,title:(0,i.__)("Align buttons left","generateblocks"),align:"left"},{icon:ho,title:(0,i.__)("Align buttons center","generateblocks"),align:"center"},{icon:ko,title:(0,i.__)("Align buttons right","generateblocks"),align:"right"}];var Io=t=>{const{attributes:a,setAttributes:o,clientId:s,deviceType:c}=t,{alignment:u,alignmentTablet:d,alignmentMobile:b,isPagination:p}=a,{insertBlocks:m}=(0,l.useDispatch)("core/block-editor"),{getBlocksByClientId:f}=(0,l.useSelect)((e=>e("core/block-editor")),[]);return(0,e.createElement)(r.BlockControls,null,!p&&(0,e.createElement)(n.ToolbarGroup,null,(0,e.createElement)(n.ToolbarButton,{className:"gblocks-add-new-button",icon:Lo,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{const e=f(s)[0];if(e){const t=e.innerBlocks,a=Object.keys(t),l=a[a.length-1];if(void 0!==t[l]){const e=t[l].clientId;if(e){const t=f(e)[0],a=(0,g.cloneBlock)(t,{uniqueId:""});m(a,void 0,s)}}else 0===t.length&&m((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,s)}},showTooltip:!0})),"Desktop"===c&&(0,e.createElement)(r.AlignmentToolbar,{value:u,alignmentControls:Oo,onChange:e=>{o({alignment:e})}}),"Tablet"===c&&(0,e.createElement)(r.AlignmentToolbar,{value:d,alignmentControls:Oo,onChange:e=>{o({alignmentTablet:e})}}),"Mobile"===c&&(0,e.createElement)(r.AlignmentToolbar,{value:b,alignmentControls:Oo,onChange:e=>{o({alignmentMobile:e})}}))},No=a=>{const{attributes:l,setAttributes:o,deviceType:s,state:c}=a,{stack:u,stackTablet:g,stackMobile:d,fillHorizontalSpace:p,fillHorizontalSpaceTablet:f,fillHorizontalSpaceMobile:h}=l;return(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!0,icon:b("spacing"),className:"gblocks-panel-label",id:"buttonContainerSpacing",state:c}),(0,e.createElement)(rn,t({},a,{device:s,type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]})),"Desktop"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:!!u,onChange:e=>{o({stack:e,stackTablet:e&&!g?e:g,stackMobile:e&&!d?e:d})}}),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:!!p,onChange:e=>{o({fillHorizontalSpace:e,fillHorizontalSpaceTablet:e&&!f?e:f,fillHorizontalSpaceMobile:e&&!h?e:h})}})),"Tablet"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:!!g,onChange:e=>{o({stackTablet:e,stackMobile:e&&!d?e:d})}}),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:!!f,onChange:e=>{o({fillHorizontalSpaceTablet:e,fillHorizontalSpaceMobile:e&&!h?e:h})}})),"Mobile"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Stack Vertically","generateblocks"),checked:!!d,onChange:e=>{o({stackMobile:e})}}),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Fill Horizontal Space","generateblocks"),checked:!!h,onChange:e=>{o({fillHorizontalSpaceMobile:e})}})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonContainerSpacing",a,c)))};function Ao(e){return"left"===e||"top"===e?"flex-start":"right"===e||"bottom"===e?"flex-end":e}class Fo extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignment:l,stack:r,fillHorizontalSpace:n}=t;let i=[];return i[".gb-button-wrapper-"+a]=[{display:!!n&&"block","flex-direction":!!r&&"column","align-items":!!r&&Ao(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!r&&"column","align-items":!!r&&Ao(l)}],n&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],i[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),r&&n&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),i=(0,m.applyFilters)("generateblocks.editor.desktopCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,O(i))}}class Po extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentTablet:l,marginTopTablet:r,marginRightTablet:n,marginBottomTablet:i,marginLeftTablet:o,marginUnit:s}=t;let c=[];return c[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{"margin-top":I(r,s),"margin-right":I(n,s),"margin-bottom":I(i,s),"margin-left":I(o,s),"justify-content":Ao(l)}],c[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":Ao(l)}],c=(0,m.applyFilters)("generateblocks.editor.tabletCSS",c,this.props,"button-container"),(0,e.createElement)("style",null,O(c))}}class Ho extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentTablet:l,stackTablet:r,fillHorizontalSpaceTablet:n}=t;let i=[];return i[".gb-button-wrapper-"+a]=[{display:!!n&&"block","flex-direction":!!r&&"column","align-items":!!r&&Ao(l)}],i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!r&&"column","align-items":!!r&&Ao(l)}],n&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],i[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),r&&n&&(i[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),i=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",i,this.props,"button-container"),(0,e.createElement)("style",null,O(i))}}class Vo extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignmentMobile:l,marginTopMobile:r,marginRightMobile:n,marginBottomMobile:i,marginLeftMobile:o,marginUnit:s,stackMobile:c,fillHorizontalSpaceMobile:u}=t;let g=[];return g[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{display:!!u&&"block","margin-top":I(r,s),"margin-right":I(n,s),"margin-bottom":I(i,s),"margin-left":I(o,s),"justify-content":Ao(l),"flex-direction":!!c&&"column","align-items":!!c&&Ao(l)}],g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"flex-direction":!!c&&"column","align-items":!!c&&Ao(l),"justify-content":Ao(l)}],u&&(g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{flex:"1"}],g[".gb-button-wrapper-"+a+" > .components-button"]=[{background:"#fff",border:"1px solid #ddd","margin-top":"10px"}]),c&&u&&(g[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout > .wp-block"]=[{width:"100% !important","box-sizing":"border-box"}]),g=(0,m.applyFilters)("generateblocks.editor.mobileCSS",g,this.props,"button-container"),(0,e.createElement)("style",null,O(g))}}class Uo extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{uniqueId:a,alignment:l,marginTop:r,marginRight:n,marginBottom:i,marginLeft:o,marginUnit:s}=t;let c=[];return c[".editor-styles-wrapper .gb-button-wrapper-"+a]=[{margin:Xi(r,n,i,o,s),"justify-content":Ao(l)}],c[".gb-button-wrapper-"+a+" > .block-editor-inner-blocks > .block-editor-block-list__layout"]=[{"justify-content":Ao(l)}],c=(0,m.applyFilters)("generateblocks.editor.mainCSS",c,this.props,"button-container"),(0,e.createElement)("style",null,O(c))}}var Go=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:r=!1}=t?.attributes;return r?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Uo,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(Fo,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Po,t),"Tablet"===a&&(0,e.createElement)(Ho,t),"Mobile"===a&&(0,e.createElement)(Vo,t)))}),G),jo=(0,q.compose)(Y,(t=>a=>{const{attributes:l,setAttributes:r}=a;return(0,e.useEffect)((()=>{void 0!==l.isDynamic&&l.isDynamic||r({isDynamic:!0}),(void 0===l.blockVersion||l.blockVersion<2)&&(l.stack||l.fillHorizontalSpace)&&(l.stack&&r({stackTablet:!0,stackMobile:!0}),l.fillHorizontalSpace&&r({fillHorizontalSpaceTablet:!0,fillHorizontalSpaceMobile:!0})),(void 0===l.blockVersion||l.blockVersion<2)&&r({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:n,setAttributes:i,clientId:o,name:c,context:u}=a,{uniqueId:d,className:b,anchor:p}=n,[f,h]=(0,e.useState)(0),[k,v]=W("Desktop"),y=$(o),{insertBlocks:w,removeBlock:_}=(0,l.useDispatch)("core/block-editor");(0,e.useEffect)((()=>{0===y&&w((0,g.createBlock)("generateblocks/button",generateBlocksStyling.button),void 0,o),h(y)}),[]),(0,e.useEffect)((()=>{1===f&&0===y&&_(o),h(y)}),[y]);let C={className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${d}`]:!0,[`${b}`]:void 0!==b}),id:p||null};C=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",C,"generateblocks/button-container",n);const T=(0,r.useBlockProps)(C);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Io,{attributes:n,setAttributes:i,clientId:o,deviceType:k}),(0,e.createElement)(No,t({},a,{deviceType:k,setDeviceType:v,state:{deviceType:k},blockDefaults:generateBlocksDefaults.buttonContainer})),(0,e.createElement)(L,{anchor:p,setAttributes:i}),(0,e.createElement)(Go,t({},a,{deviceType:k})),(0,e.createElement)(Ni,{name:c,clientId:o},(0,e.createElement)("div",T,(0,e.createElement)(r.BlockContextProvider,{value:{"generateblocks/query":u["generateblocks/query"]}},(0,e.createElement)(r.InnerBlocks,{allowedBlocks:["generateblocks/button"],renderAppender:!1})))))})),qo={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},isPagination:{type:"boolean",default:!1},alignment:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},alignmentMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.alignment},marginTop:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.buttonContainer.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.buttonContainer.marginLeftMobile},stack:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stack},stackTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackTablet},stackMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.stackMobile},fillHorizontalSpace:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpace},fillHorizontalSpaceTablet:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet},fillHorizontalSpaceMobile:{type:"boolean",default:generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile},isDynamic:{type:"boolean"},blockVersion:{type:"number"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Wo=[{attributes:qo,supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save(t){let{attributes:a}=t;const{uniqueId:l,elementId:n,cssClasses:i}=a;let o={id:n||void 0,className:s()({"gb-button-wrapper":!0,[`gb-button-wrapper-${l}`]:!0,[`${i}`]:""!==i})};return o=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",o,"generateblocks/button-container",a),(0,e.createElement)("div",o,(0,e.createElement)(r.InnerBlocks.Content,null))}}];var $o=Wo;(0,g.registerBlockType)("generateblocks/button-container",{apiVersion:2,title:(0,i.__)("Buttons","generateblocks"),description:(0,i.__)("Drive conversions with beautiful buttons.","generateblocks"),icon:b("button-container"),category:"generateblocks",keywords:[(0,i.__)("button"),(0,i.__)("buttons"),(0,i.__)("generate")],attributes:qo,supports:{className:!1,html:!1},usesContext:["generateblocks/queryId","generateblocks/query"],edit:jo,save:()=>(0,e.createElement)(r.InnerBlocks.Content,null),deprecated:$o,__experimentalLabel:e=>e.isPagination?(0,i.__)("Pagination","generateblocks"):(0,i.__)("Buttons","generateblocks")});var Zo=t=>{let{clientId:a,attributes:o,setAttributes:s}=t;const{insertBlocks:c}=(0,l.useDispatch)("core/block-editor"),{getBlockParentsByBlockName:u,getBlockRootClientId:d,getBlocksByClientId:b}=(0,l.useSelect)((e=>e("core/block-editor")),[]),{url:p,target:f,relNoFollow:h,relSponsored:k,useDynamicData:v,dynamicLinkType:y}=o,w=v&&y;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(n.ToolbarGroup,null,(0,e.createElement)(n.ToolbarButton,{className:"gblocks-add-new-button",icon:Lo,label:(0,i.__)("Add Button","generateblocks"),onClick:()=>{let e=!1;e="function"==typeof u?u(a,"generateblocks/button-container",!0)[0]:d(a);const t=b(a)[0],l=(0,g.cloneBlock)(t,{uniqueId:""});c(l,void 0,e)},showTooltip:!0})),(0,e.createElement)(n.ToolbarGroup,null,(!v||w)&&(0,e.createElement)(n.Dropdown,{contentClassName:"gblocks-button-link-dropdown",popoverProps:{className:"block-editor-block-settings-menu__popover",position:"bottom right"},renderToggle:t=>{let{isOpen:a,onToggle:l}=t;return(0,e.createElement)(n.ToolbarButton,{icon:an,label:p?(0,i.__)("Change Link","generateblocks"):(0,i.__)("Add Link","generateblocks"),onClick:l,"aria-expanded":a,isPressed:!!p})},renderContent:()=>(0,e.createElement)(e.Fragment,null,!v&&(0,e.createElement)(r.URLInput,{className:"gblocks-button-link",value:p,onChange:e=>{s({url:e,hasUrl:!!e})}}),!!v&&(0,e.createElement)("div",{style:{width:"300px","font-style":"italic","margin-bottom":y?"15px":"0"}},(0,i.__)("This button is using a dynamic link.","generateblocks")),(0,m.applyFilters)("generateblocks.editor.urlInputMoreOptions","",o),(!!p||w)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Open link in a new tab","generateblocks"),checked:f||"",onChange:e=>{s({target:e})}}),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)('Add rel="nofollow"',"generateblocks"),checked:h||"",onChange:e=>{s({relNoFollow:e})}}),(0,e.createElement)(n.ToggleControl,{label:(0,i.__)('Add rel="sponsored"',"generateblocks"),checked:k||"",onChange:e=>{s({relSponsored:e})}})))}))))},Ko={facebook:{label:(0,i._x)("Facebook","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"}))},facebookCircle:{label:(0,i._x)("Facebook - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}))},facebookSquare:{label:(0,i._x)("Facebook - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"}))},instagram:{label:(0,i._x)("Instagram","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}))},linkedin:{label:(0,i._x)("LinkedIn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"}))},linkedinSquare:{label:(0,i._x)("LinkedIn - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"}))},pinterest:{label:(0,i._x)("Pinterest","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"}))},pinterestCircle:{label:(0,i._x)("Pinterest - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"}))},pinterestSquare:{label:(0,i._x)("Pinterest - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M448 80v352c0 26.5-21.5 48-48 48H154.4c9.8-16.4 22.4-40 27.4-59.3 3-11.5 15.3-58.4 15.3-58.4 8 15.3 31.4 28.2 56.3 28.2 74.1 0 127.4-68.1 127.4-152.7 0-81.1-66.2-141.8-151.4-141.8-106 0-162.2 71.1-162.2 148.6 0 36 19.2 80.8 49.8 95.1 4.7 2.2 7.1 1.2 8.2-3.3.8-3.4 5-20.1 6.8-27.8.6-2.5.3-4.6-1.7-7-10.1-12.3-18.3-34.9-18.3-56 0-54.2 41-106.6 110.9-106.6 60.3 0 102.6 41.1 102.6 99.9 0 66.4-33.5 112.4-77.2 112.4-24.1 0-42.1-19.9-36.4-44.4 6.9-29.2 20.3-60.7 20.3-81.8 0-53-75.5-45.7-75.5 25 0 21.7 7.3 36.5 7.3 36.5-31.4 132.8-36.1 134.5-29.6 192.6l2.2.8H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"}))},reddit:{label:(0,i._x)("Reddit","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"}))},redditCircle:{label:(0,i._x)("Reddit - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"}))},redditSquare:{label:(0,i._x)("Reddit - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.8c0-14.9-11.9-26.8-26.5-26.8-14.9 0-26.8 11.9-26.8 26.8 0 14.6 11.9 26.5 26.8 26.5 14.6 0 26.5-11.9 26.5-26.5zm90.7-26.8c-14.6 0-26.5 11.9-26.5 26.8 0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-11.9 26.8-26.5 0-14.9-11.9-26.8-26.8-26.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-99.7 140.6c-10.1 0-19 4.2-25.6 10.7-24.1-16.7-56.5-27.4-92.5-28.6l18.7-84.2 59.5 13.4c0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-12.2 26.8-26.8 0-14.6-11.9-26.8-26.8-26.8-10.4 0-19.3 6.2-23.8 14.9l-65.7-14.6c-3.3-.9-6.5 1.5-7.4 4.8l-20.5 92.8c-35.7 1.5-67.8 12.2-91.9 28.9-6.5-6.8-15.8-11-25.9-11-37.5 0-49.8 50.4-15.5 67.5-1.2 5.4-1.8 11-1.8 16.7 0 56.5 63.7 102.3 141.9 102.3 78.5 0 142.2-45.8 142.2-102.3 0-5.7-.6-11.6-2.1-17 33.6-17.2 21.2-67.2-16.1-67.2z"}))},snapchat:{label:(0,i._x)("Snapchat","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"}))},soundcloud:{label:(0,i._x)("Soundcloud","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"}))},twitch:{label:(0,i._x)("Twitch","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M40.1 32L10 108.9v314.3h107V480h60.2l56.8-56.8h87l117-117V32H40.1zm357.8 254.1L331 353H224l-56.8 56.8V353H76.9V72.1h321v214zM331 149v116.9h-40.1V149H331zm-107 0v116.9h-40.1V149H224z"}))},twitter:{label:(0,i._x)("Twitter","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"}))},twitterSquare:{label:(0,i._x)("Twitter - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"}))},vimeo:{label:(0,i._x)("Vimeo","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M447.8 153.6c-2 43.6-32.4 103.3-91.4 179.1-60.9 79.2-112.4 118.8-154.6 118.8-26.1 0-48.2-24.1-66.3-72.3C100.3 250 85.3 174.3 56.2 174.3c-3.4 0-15.1 7.1-35.2 21.1L0 168.2c51.6-45.3 100.9-95.7 131.8-98.5 34.9-3.4 56.3 20.5 64.4 71.5 28.7 181.5 41.4 208.9 93.6 126.7 18.7-29.6 28.8-52.1 30.2-67.6 4.8-45.9-35.8-42.8-63.3-31 22-72.1 64.1-107.1 126.2-105.1 45.8 1.2 67.5 31.1 64.9 89.4z"}))},vimeoSquare:{label:(0,i._x)("Vimeo - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.1-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"}))},whatsapp:{label:(0,i._x)("WhatsApp","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}))},whatsappSquare:{label:(0,i._x)("WhatsApp - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224 122.8c-72.7 0-131.8 59.1-131.9 131.8 0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6 49.9-13.1 4.8 2.9c20.2 12 43.4 18.4 67.1 18.4h.1c72.6 0 133.3-59.1 133.3-131.8 0-35.2-15.2-68.3-40.1-93.2-25-25-58-38.7-93.2-38.7zm77.5 188.4c-3.3 9.3-19.1 17.7-26.7 18.8-12.6 1.9-22.4.9-47.5-9.9-39.7-17.2-65.7-57.2-67.7-59.8-2-2.6-16.2-21.5-16.2-41s10.2-29.1 13.9-33.1c3.6-4 7.9-5 10.6-5 2.6 0 5.3 0 7.6.1 2.4.1 5.7-.9 8.9 6.8 3.3 7.9 11.2 27.4 12.2 29.4s1.7 4.3.3 6.9c-7.6 15.2-15.7 14.6-11.6 21.6 15.3 26.3 30.6 35.4 53.9 47.1 4 2 6.3 1.7 8.6-1 2.3-2.6 9.9-11.6 12.5-15.5 2.6-4 5.3-3.3 8.9-2 3.6 1.3 23.1 10.9 27.1 12.9s6.6 3 7.6 4.6c.9 1.9.9 9.9-2.4 19.1zM400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM223.9 413.2c-26.6 0-52.7-6.7-75.8-19.3L64 416l22.5-82.2c-13.9-24-21.2-51.3-21.2-79.3C65.4 167.1 136.5 96 223.9 96c42.4 0 82.2 16.5 112.2 46.5 29.9 30 47.9 69.8 47.9 112.2 0 87.4-72.7 158.5-160.1 158.5z"}))},youtube:{label:(0,i._x)("YouTube","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"}))}},Qo={clock:{label:(0,i._x)("Clock","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm92.49 313l-20 25a16 16 0 01-22.49 2.5l-67-49.72a40 40 0 01-15-31.23V112a16 16 0 0116-16h32a16 16 0 0116 16v144l58 42.5a16 16 0 012.49 22.5z"}))},clockAlt:{label:(0,i._x)("Clock Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"}))},asterisk:{label:(0,i._x)("Asterisk","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"}))},at:{label:(0,i._x)("At","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"}))},award:{label:(0,i._x)("Award","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"}))},ban:{label:(0,i._x)("Ban","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"}))},bars:{label:(0,i._x)("Bars","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}))},beer:{label:(0,i._x)("Beer","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"}))},bolt:{label:(0,i._x)("Bolt","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 320 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"}))},book:{label:(0,i._x)("Book","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"}))},boxOpen:{label:(0,i._x)("Box - Open","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9zm212.6-112.2L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9z"}))},bullhorn:{label:(0,i._x)("Bullhorn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"}))},bullseye:{label:(0,i._x)("Bullseye","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"}))},burn:{label:(0,i._x)("Burn","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"}))},calendarAlt:{label:(0,i._x)("Calender","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},check:{label:(0,i._x)("Check","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}))},checkCircle:{label:(0,i._x)("Check - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}))},checkCircleOutline:{label:(0,i._x)("Check - Circle Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"}))},checkSquare:{label:(0,i._x)("Check - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"}))},checkSquareOutline:{label:(0,i._x)("Check - Square Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"}))},chevronDown:{label:(0,i._x)("Chevron - Down","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))},chevronLeft:{label:(0,i._x)("Chevron - Left","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}))},chevronRight:{label:(0,i._x)("Chevron - Right","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 256 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}))},chevronUp:{label:(0,i._x)("Chevron - Up","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"}))},circle:{label:(0,i._x)("Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"}))},circleOutline:{label:(0,i._x)("Circle - Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"}))},coffee:{label:(0,i._x)("Coffee","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"}))},dotCircle:{label:(0,i._x)("Dot - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"}))},dotCircleOutline:{label:(0,i._x)("Dot - Circle Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"}))},ellipsesH:{label:(0,i._x)("Ellipses - Horizontal","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"}))},ellipsesV:{label:(0,i._x)("Ellipses - Vertical","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 192 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"}))},envelope:{label:(0,i._x)("Envelope","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"}))},fireAlt:{label:(0,i._x)("Fire","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"}))},heart:{label:(0,i._x)("Heart","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}))},mapMarkerAlt:{label:(0,i._x)("Map Marker","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 384 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"}))},paperPlane:{label:(0,i._x)("Paper Plane","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"}))},phone:{label:(0,i._x)("Phone","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"}))},plus:{label:(0,i._x)("Plus","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}))},plusCircle:{label:(0,i._x)("Plus - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquare:{label:(0,i._x)("Plus - Square","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}))},plusSquareOutline:{label:(0,i._x)("Plus - Square Outline","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 448 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"}))},shield:{label:(0,i._x)("Shield","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"}))},star:{label:(0,i._x)("Star","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"}))},tags:{label:(0,i._x)("Tags","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 640 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"}))},userCircle:{label:(0,i._x)("User - Circle","label","generateblocks"),icon:(0,e.createElement)("svg",{"aria-hidden":"true",role:"img",height:"1em",width:"1em",viewBox:"0 0 496 512",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"}))}};class Yo extends e.Component{constructor(){super(...arguments),this.state={showIcons:!1,showGeneralIcons:!1,showSocialIcons:!1}}render(){const{attributes:t,setAttributes:a,attrIcon:l,attrIconLocation:r,locationOptions:o,attrRemoveText:s}=this.props;let c={general:{group:(0,i.__)("General","generateblocks"),svgs:Qo},social:{group:(0,i.__)("Social","generateblocks"),svgs:Ko}};return c=(0,m.applyFilters)("generateblocks.editor.iconSVGSets",c),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.BaseControl,{className:"gb-svg-html"},(0,e.createElement)(n.TextControl,{label:(0,i.__)("Icon SVG HTML","generateblocks"),value:t[l],onChange:e=>{a({[this.props.attrIcon]:yi(e)}),a(""!==e?{hasIcon:!0}:{hasIcon:!1})}}),(0,e.createElement)("div",{className:"gb-icon-preview"},(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:yi(t[l])}}),(0,e.createElement)(n.Button,{isSmall:!0,className:"reset-icon is-secondary",onClick:()=>{a({[this.props.attrIcon]:"",hasIcon:!1})}},(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},(0,i.__)("Clear","generateblocks"))))),(0,e.createElement)(n.BaseControl,{className:"gb-icon-chooser"},Object.keys(c).map(((t,l)=>{const r=c[t].svgs;return(0,e.createElement)(n.PanelBody,{title:c[t].group,initialOpen:!1,key:l},(0,e.createElement)(n.PanelRow,null,(0,e.createElement)(n.BaseControl,null,(0,e.createElement)("ul",{className:"gblocks-icon-chooser"},Object.keys(r).map(((t,l)=>(0,e.createElement)("li",{key:`editor-pblock-types-list-item-${l}`},(0,e.createElement)(n.Tooltip,{text:r[t].label},(0,e.createElement)(n.Button,{className:"editor-block-list-item-button",onClick:()=>{let l=r[t].icon;"string"!=typeof l&&(l=(0,e.renderToString)(l)),a({[this.props.attrIcon]:l,hasIcon:!0})}},"string"==typeof r[t].icon?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon",dangerouslySetInnerHTML:{__html:yi(r[t].icon)}})):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"editor-block-types-list__item-icon"},r[t].icon)))))))))))}))),void 0!==t[r]&&!t[s]&&!!t[l]&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:t[r],options:o,onChange:e=>{const l=t.iconPaddingLeft,r=t.iconPaddingRight,n=t.iconPaddingRightTablet,i=t.iconPaddingLeftTablet,o=t.iconPaddingRightMobile,s=t.iconPaddingLeftMobile;"right"===e&&(!l&&r&&a({iconPaddingLeft:r,iconPaddingRight:""}),!i&&n&&a({iconPaddingLeftTablet:n,iconPaddingRightTablet:""}),!s&&o&&a({iconPaddingLeftMobile:o,iconPaddingRightMobile:""})),"left"===e&&(!r&&l&&a({iconPaddingRight:l,iconPaddingLeft:""}),!n&&i&&a({iconPaddingRightTablet:i,iconPaddingLeftTablet:""}),!o&&s&&a({iconPaddingRightMobile:s,iconPaddingLeftMobile:""})),a({[this.props.attrIconLocation]:e})}}),void 0!==t[s]&&!!t[l]&&(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Remove Text","generateblocks"),checked:!!t[s],onChange:e=>{a({[this.props.attrRemoveText]:e})}}))}}var Jo=Yo;(0,m.addFilter)("generateblocks.editor.colorGroupItems","generateblocks/button-colors/add-conditional-color-items",(function(e,t){const{name:a,attributes:l}=t,{useDynamicData:r,dynamicContentType:n}=l;if("generateblocks/button"!==a)return e;if(r&&"pagination-numbers"===n){const t=[{group:"background",attribute:"backgroundColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!0},{group:"text",attribute:"textColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!1},{group:"border",attribute:"borderColorCurrent",tooltip:(0,i.__)("Current","generateblocks"),alpha:!0}];e.forEach(((a,l)=>{t.forEach((t=>{t.group!==a.group||a.items.some((e=>e.attribute===t.attribute))||e[l].items.push({tooltip:t.tooltip,attribute:t.attribute,alpha:t.alpha})}))}))}return e}));var Xo=a=>{const{attributes:l,deviceType:n,state:o,blockDefaults:s,computedStyles:c}=a,{icon:u,removeText:g,iconSizeUnit:d}=l;return(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(C,t({},a,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:b("typography"),className:"gblocks-panel-label",id:"buttonTypography",state:o,showPanel:!g||!1}),(0,e.createElement)(tn,t({},a,{deviceType:n,options:["fontWeight","textTransform","fontSize","letterSpacing","fontFamily"],computedStyles:c})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonTypography",a,o)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:b("spacing"),className:"gblocks-panel-label",id:"buttonSpacing",state:o}),(0,e.createElement)(nn,t({},a,{deviceType:n,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"]},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonSpacing",a,o)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!1,icon:b("colors"),className:"gblocks-panel-label",id:"buttonColors",state:o}),"Desktop"===n&&(0,e.createElement)(mi,t({},a,{colors:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"backgroundColorHover",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"textColorHover"}]},{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"borderColorHover",alpha:!0}]}]})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonColors",a,o)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Background Gradient","generateblocks"),initialOpen:!1,icon:b("gradients"),className:"gblocks-panel-label",id:"buttonBackgroundGradient",state:o}),"Desktop"===n&&(0,e.createElement)(hi,t({},a,{attrGradient:"gradient",attrGradientDirection:"gradientDirection",attrGradientColorOne:"gradientColorOne",attrGradientColorOneOpacity:"gradientColorOneOpacity",attrGradientColorStopOne:"gradientColorStopOne",attrGradientColorTwo:"gradientColorTwo",attrGradientColorTwoOpacity:"gradientColorTwoOpacity",attrGradientColorStopTwo:"gradientColorStopTwo",defaultColorOne:s.gradientColorOne,defaultColorTwo:s.gradientColorTwo})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonBackgroundGradient",a,o)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Icon","generateblocks"),initialOpen:!1,icon:b("icons"),className:"gblocks-panel-label",id:"buttonIcon",state:o,showPanel:!("Desktop"!==n&&!u)}),"Desktop"===n&&(0,e.createElement)(Jo,t({},a,{attrIcon:"icon",attrIconLocation:"iconLocation",attrRemoveText:"removeText",locationOptions:[{label:(0,i.__)("Left","generateblocks"),value:"left"},{label:(0,i.__)("Right","generateblocks"),value:"right"}]})),"Desktop"===n&&!!u&&(0,e.createElement)(e.Fragment,null,!g&&(0,e.createElement)(rn,t({},a,{device:n,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]}))),"Tablet"===n&&!!u&&(0,e.createElement)(e.Fragment,null,!g&&(0,e.createElement)(rn,t({},a,{device:n,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]}))),"Mobile"===n&&!!u&&(0,e.createElement)(e.Fragment,null,!g&&(0,e.createElement)(rn,t({},a,{device:n,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]}))),!!u&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Icon Size","generateblocks"),attributeName:"iconSize",units:["px","em"],device:n,presets:[{unit:"em",data:[.7,1,1.5,2]}],min:"1",step:"em"===d?.1:1})),(0,m.applyFilters)("generateblocks.editor.controls","","buttonIcon",a,o)))},es=t=>{let{anchor:a,ariaLabel:l,setAttributes:o}=t;return(0,e.createElement)(r.InspectorAdvancedControls,null,(0,e.createElement)(z,{anchor:a,setAttributes:o}),(0,e.createElement)(n.TextControl,{label:(0,i.__)("ARIA Label","generateblocks"),help:(0,i.__)("Helpful to people using screen readers.","generateblocks"),value:l,onChange:e=>{o({ariaLabel:e})}}))};class ts extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"button"),(0,e.createElement)("style",null,O(t))}}class as extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{url:a,uniqueId:l,removeText:r,letterSpacingTablet:n,fontSizeTablet:i,fontSizeUnit:o,marginTopTablet:s,marginRightTablet:c,marginBottomTablet:u,marginLeftTablet:g,marginUnit:d,paddingTopTablet:b,paddingRightTablet:p,paddingBottomTablet:f,paddingLeftTablet:h,paddingUnit:k,borderSizeTopTablet:v,borderSizeRightTablet:y,borderSizeBottomTablet:w,borderSizeLeftTablet:_,borderRadiusTopRightTablet:C,borderRadiusBottomRightTablet:T,borderRadiusBottomLeftTablet:E,borderRadiusTopLeftTablet:x,borderRadiusUnit:S,iconPaddingTopTablet:B,iconPaddingRightTablet:M,iconPaddingBottomTablet:D,iconPaddingLeftTablet:R,iconPaddingUnit:z,iconSizeTablet:L,iconSizeUnit:N}=t;let A=".editor-styles-wrapper .gb-button-wrapper a.gb-button-"+l;a||(A=".editor-styles-wrapper .gb-button-wrapper .gb-button-"+l);let F=[];return F[A]=[{"padding-top":I(b,k),"padding-right":I(p,k),"padding-bottom":I(f,k),"padding-left":I(h,k),"border-top-left-radius":I(x,S),"border-top-right-radius":I(C,S),"border-bottom-right-radius":I(T,S),"border-bottom-left-radius":I(E,S),"font-size":I(i,o),"letter-spacing":I(n,"em"),"margin-top":I(s,d),"margin-right":I(c,d),"margin-bottom":I(u,d),"margin-left":I(g,d)}],(v||y||w||_)&&F[A].push({"border-top-width":I(v,"px"),"border-right-width":I(y,"px"),"border-bottom-width":I(w,"px"),"border-left-width":I(_,"px"),"border-style":"solid"}),F[A+" .gb-icon"]=[{"padding-top":!r&&I(B,z),"padding-right":!r&&I(M,z),"padding-bottom":!r&&I(D,z),"padding-left":!r&&I(R,z),"font-size":I(L,N)}],F=(0,m.applyFilters)("generateblocks.editor.tabletCSS",F,this.props,"button"),(0,e.createElement)("style",null,O(F))}}class ls extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"button"),(0,e.createElement)("style",null,O(t))}}class rs extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{url:a,uniqueId:l,removeText:r,letterSpacingMobile:n,fontSizeMobile:i,fontSizeUnit:o,marginTopMobile:s,marginRightMobile:c,marginBottomMobile:u,marginLeftMobile:g,marginUnit:d,paddingTopMobile:b,paddingRightMobile:p,paddingBottomMobile:f,paddingLeftMobile:h,paddingUnit:k,borderSizeTopMobile:v,borderSizeRightMobile:y,borderSizeBottomMobile:w,borderSizeLeftMobile:_,borderRadiusTopRightMobile:C,borderRadiusBottomRightMobile:T,borderRadiusBottomLeftMobile:E,borderRadiusTopLeftMobile:x,borderRadiusUnit:S,iconPaddingTopMobile:B,iconPaddingRightMobile:M,iconPaddingBottomMobile:D,iconPaddingLeftMobile:R,iconPaddingUnit:z,iconSizeMobile:L,iconSizeUnit:N}=t;let A=".editor-styles-wrapper .gb-button-wrapper a.gb-button-"+l;a||(A=".editor-styles-wrapper .gb-button-wrapper .gb-button-"+l);let F=[];return F[A]=[{"padding-top":I(b,k),"padding-right":I(p,k),"padding-bottom":I(f,k),"padding-left":I(h,k),"border-top-left-radius":I(x,S),"border-top-right-radius":I(C,S),"border-bottom-right-radius":I(T,S),"border-bottom-left-radius":I(E,S),"font-size":I(i,o),"letter-spacing":I(n,"em"),"margin-top":I(s,d),"margin-right":I(c,d),"margin-bottom":I(u,d),"margin-left":I(g,d)}],(v||y||w||_)&&F[A].push({"border-top-width":I(v,"px"),"border-right-width":I(y,"px"),"border-bottom-width":I(w,"px"),"border-left-width":I(_,"px"),"border-style":"solid"}),F[A+" .gb-icon"]=[{"padding-top":!r&&I(B,z),"padding-right":!r&&I(M,z),"padding-bottom":!r&&I(D,z),"padding-left":!r&&I(R,z),"font-size":I(L,N)}],F=(0,m.applyFilters)("generateblocks.editor.mobileCSS",F,this.props,"button"),(0,e.createElement)("style",null,O(F))}}class ns extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{url:a,uniqueId:l,removeText:r,backgroundColor:n,backgroundColorOpacity:i,textColor:o,backgroundColorHover:s,backgroundColorHoverOpacity:c,textColorHover:u,fontFamily:g,fontFamilyFallback:d,fontWeight:b,textTransform:p,letterSpacing:f,fontSize:h,fontSizeUnit:k,marginTop:v,marginRight:y,marginBottom:w,marginLeft:_,marginUnit:C,paddingTop:T,paddingRight:E,paddingBottom:x,paddingLeft:S,paddingUnit:B,borderSizeTop:M,borderSizeRight:D,borderSizeBottom:R,borderSizeLeft:z,borderRadiusTopRight:L,borderRadiusBottomRight:N,borderRadiusBottomLeft:A,borderRadiusTopLeft:F,borderRadiusUnit:P,borderColor:H,borderColorOpacity:V,borderColorHover:U,borderColorHoverOpacity:G,gradient:j,gradientDirection:q,gradientColorOne:W,gradientColorOneOpacity:$,gradientColorStopOne:Z,gradientColorTwo:K,gradientColorTwoOpacity:Q,gradientColorStopTwo:Y,iconPaddingTop:J,iconPaddingRight:X,iconPaddingBottom:ee,iconPaddingLeft:te,iconPaddingUnit:ae,iconSize:le,iconSizeUnit:re}=t;let ne,ie="",oe="",se="";j&&(W&&""!==Z&&(oe=" "+Z+"%"),K&&""!==Y&&(se=" "+Y+"%")),j&&(ne="linear-gradient("+q+"deg, "+bi(W,$)+oe+", "+bi(K,Q)+se+");"),g&&d&&(ie=", "+d);let ce=".editor-styles-wrapper .gb-button-wrapper a.gb-button-"+l;a||(ce=".editor-styles-wrapper .gb-button-wrapper .gb-button-"+l);let ue=[];return ue[ce]=[{"background-color":bi(n,i),"background-image":ne,color:o,padding:Xi(T,E,x,S,B),"border-radius":Xi(F,L,N,A,P),"font-family":g+ie,"font-weight":b,"text-transform":p,"font-size":I(h,k),"letter-spacing":I(f,"em"),margin:Xi(v,y,w,_,C),"border-color":bi(H,V)}],(M||D||R||z)&&ue[ce].push({"border-width":Xi(M,D,R,z,"px"),"border-style":"solid"}),ue[ce+":hover, "+ce+":focus, "+ce+":active"]=[{"background-color":bi(s,c),color:u,"border-color":bi(U,G)}],ue[ce+" .gb-icon"]=[{padding:!r&&Xi(J,X,ee,te,ae),"font-size":I(le,re)}],ue=(0,m.applyFilters)("generateblocks.editor.mainCSS",ue,this.props,"button"),(0,e.createElement)("style",null,O(ue))}}var is=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:r=!1}=t?.attributes;return r?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ns,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(ts,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(as,t),"Tablet"===a&&(0,e.createElement)(ls,t),"Mobile"===a&&(0,e.createElement)(rs,t)))}),G),os=(0,q.compose)(So,Y,(t=>a=>{const{attributes:l,setAttributes:r}=a,{hasIcon:n,icon:i,hasUrl:o,url:s,blockVersion:c,gradient:u}=l;return(0,e.useEffect)((()=>{if(!n&&i&&r({hasIcon:!0}),o||r({hasUrl:!!s}),!J(l)&&X(c,2)){const e=generateBlocksLegacyDefaults.v_1_4_0.button,t={},a=[];u&&a.push("gradientDirection","gradientColorOne","gradientColorOneOpacity","gradientColorTwo","gradientColorTwoOpacity"),a.forEach((a=>{S(l[a])||(t[a]=e[a])})),Object.keys(t).length>0&&r(t)}X(c,2)&&r({blockVersion:2})}),[]),(0,e.createElement)(t,a)}))((a=>{const{attributes:l,setAttributes:r,clientId:n,ContentRenderer:i=Hi}=a,{anchor:o,ariaLabel:s,fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:d=!1}=l,b=(0,e.useRef)(null),[p,m]=(0,e.useState)({}),[f,h]=W("Desktop");return(0,e.useEffect)((()=>{const e=getComputedStyle(b.current);m({fontSize:parseInt(e.fontSize)||""})}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Zo,{clientId:n,attributes:l,setAttributes:r}),(0,e.createElement)(Xo,t({},a,{deviceType:f,setDeviceType:h,state:{deviceType:f},blockDefaults:generateBlocksDefaults.button,computedStyles:p})),(0,e.createElement)(es,{anchor:o,ariaLabel:s,setAttributes:r}),(0,e.createElement)(is,t({},a,{deviceType:f})),(0,e.createElement)(Jr,{fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:d}),(0,e.createElement)(i,t({},a,{buttonRef:b})))})),ss={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},url:{type:"string",source:"attribute",selector:".gb-button",attribute:"href"},hasUrl:{type:"boolean"},target:{type:"boolean"},relNoFollow:{type:"boolean"},relSponsored:{type:"boolean"},text:{type:"string",source:"html",selector:".gb-button-text",default:"Button"},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.button.iconLocation},customIcon:{type:"boolean",default:!1},removeText:{type:"boolean",default:generateBlocksDefaults.button.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.button.ariaLabel},backgroundColor:{type:"string",default:generateBlocksDefaults.button.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorOpacity},backgroundColorHover:{type:"string",default:generateBlocksDefaults.button.backgroundColorHover},backgroundColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.backgroundColorHoverOpacity},backgroundColorCurrent:{type:"string",default:generateBlocksDefaults.button.backgroundColorCurrent},textColor:{type:"string",default:generateBlocksDefaults.button.textColor},textColorHover:{type:"string",default:generateBlocksDefaults.button.textColorHover},textColorCurrent:{type:"string",default:generateBlocksDefaults.button.textColorCurrent},borderColor:{type:"string",default:generateBlocksDefaults.button.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorOpacity},borderColorHover:{type:"string",default:generateBlocksDefaults.button.borderColorHover},borderColorHoverOpacity:{type:"number",default:generateBlocksDefaults.button.borderColorHoverOpacity},borderColorCurrent:{type:"string",default:generateBlocksDefaults.button.borderColorCurrent},fontFamily:{type:"string",default:generateBlocksDefaults.button.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.button.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.button.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.button.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.button.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.button.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.button.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.button.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.button.fontSizeUnit},textTransform:{type:"string",default:generateBlocksDefaults.button.textTransform},letterSpacing:{type:"number",default:generateBlocksDefaults.button.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.button.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.button.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.button.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.button.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.button.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.button.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.button.marginUnit},marginTopTablet:{type:"string",default:generateBlocksDefaults.button.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.button.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.button.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.button.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.button.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.button.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.button.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.button.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.button.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.button.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.button.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.button.paddingLeft},paddingUnit:{type:"string",default:generateBlocksDefaults.button.paddingUnit},paddingTopTablet:{type:"string",default:generateBlocksDefaults.button.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.button.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.button.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.button.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.paddingLeftMobile},borderSizeTop:{type:"string",default:generateBlocksDefaults.button.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.button.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.button.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.button.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.button.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.button.borderRadiusTopLeftMobile},gradient:{type:"boolean",default:generateBlocksDefaults.button.gradient},gradientDirection:{type:"number",default:generateBlocksDefaults.button.gradientDirection},gradientColorOne:{type:"string",default:generateBlocksDefaults.button.gradientColorOne},gradientColorOneOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorOneOpacity},gradientColorStopOne:{type:"number",default:generateBlocksDefaults.button.gradientColorStopOne},gradientColorTwo:{type:"string",default:generateBlocksDefaults.button.gradientColorTwo},gradientColorTwoOpacity:{type:"number",default:generateBlocksDefaults.button.gradientColorTwoOpacity},gradientColorStopTwo:{type:"number",default:generateBlocksDefaults.button.gradientColorStopTwo},iconPaddingTop:{type:"string",default:generateBlocksDefaults.button.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.button.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.button.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.button.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.button.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.button.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.button.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.button.iconSizeUnit},blockVersion:{type:"number"},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const cs=[{attributes:{...ss,text:{type:"array",source:"children",selector:".gb-button .button-text",default:"Button"}},supports:{anchor:!1,className:!1,customClassName:!1,inserter:!1,reusable:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;return{...e,className:t,anchor:a,cssClasses:"",elementId:""}},save(t){let{attributes:a}=t;const{uniqueId:l,elementId:n,cssClasses:i,text:o,url:c,target:u,relNoFollow:g,relSponsored:d,icon:b,iconLocation:p,removeText:f,ariaLabel:h}=a,k=[];g&&k.push("nofollow"),u&&k.push("noopener","noreferrer"),d&&k.push("sponsored");let v={id:n||void 0,className:s()({"gb-button":!0,[`gb-button-${l}`]:!0,[`${i}`]:""!==i}),href:c||void 0,target:u?"_blank":void 0,rel:k&&k.length>0?k.join(" "):void 0,"aria-label":h||void 0};return v=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",v,"generateblocks/button",a),(0,e.createElement)("a",v,b&&"left"===p&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:yi(b)}}),!f&&(0,e.createElement)(r.RichText.Content,{tagName:"span",className:"button-text",value:o,key:"button-text"}),b&&"right"===p&&(0,e.createElement)("span",{className:"gb-icon",dangerouslySetInnerHTML:{__html:yi(b)}}))}}];var us=cs;function gs(e,t){const{useDynamicData:a,dynamicContentType:l,dynamicLinkType:r,isCaption:n}=e;if(a){const e={"post-title":(0,i.__)("Post title","generateblocks"),"post-excerpt":(0,i.__)("Post excerpt","generateblocks"),"post-date":(0,i.__)("Post date","generateblocks"),"post-meta":(0,i.__)("Post meta","generateblocks"),"author-email":(0,i.__)("Author email","generateblocks"),"author-name":(0,i.__)("Author name","generateblocks"),"author-nickname":(0,i.__)("Author nickname","generateblocks"),"author-first-name":(0,i.__)("Author first name","generateblocks"),"author-last-name":(0,i.__)("Author last name","generateblocks"),"author-meta":(0,i.__)("Author meta","generateblocks"),"pagination-numbers":(0,i.__)("Page numbers","generateblocks"),caption:(0,i.__)("Caption","generateblocks"),terms:(0,i.__)("List of terms","generateblocks"),"comments-number":(0,i.__)("Comments number","generateblocks")},t={"single-post":(0,i.__)("Single post","generateblocks"),"author-archives":(0,i.__)("Author archives","generateblocks"),"comments-area":(0,i.__)("Comments area","generateblocks"),"post-meta":(0,i.__)("Post meta","generateblocks"),"previous-posts":(0,i.__)("Previous posts","generateblocks"),"next-posts":(0,i.__)("Next posts","generateblocks"),"term-archives":(0,i.__)("Term archives","generateblocks"),"pagination-prev":(0,i.__)("Previous page","generateblocks"),"pagination-next":(0,i.__)("Next page","generateblocks")};return Object.keys(e).includes(l)?e[l]:Object.keys(t).includes(r)?t[r]:(0,i.__)("Dynamic content","generateblocks")}return n?(0,i.__)("Caption","generateblocks"):t}const ds=Object.assign({},ss,Vi);(0,g.registerBlockType)("generateblocks/button",{apiVersion:2,title:(0,i.__)("Button","generateblocks"),description:(0,i.__)("Drive conversions with beautiful buttons.","generateblocks"),parent:["generateblocks/button-container"],icon:b("button"),category:"generateblocks",keywords:[(0,i.__)("button"),(0,i.__)("buttons"),(0,i.__)("generate")],attributes:ds,supports:{className:!1,inserter:!1,reusable:!1},edit:os,save:t=>{let{attributes:a}=t;const{uniqueId:l,text:n,url:i,target:o,relNoFollow:c,relSponsored:u,icon:g,iconLocation:d,removeText:b,ariaLabel:p,anchor:f}=a,h=[];c&&h.push("nofollow"),o&&h.push("noopener","noreferrer"),u&&h.push("sponsored");let k={className:s()({"gb-button":!0,[`gb-button-${l}`]:!0,"gb-button-text":!g}),href:i||null,target:o?"_blank":null,rel:h&&h.length>0?h.join(" "):null,"aria-label":p||null,id:f||null};k=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",k,"generateblocks/button",a);const v=r.useBlockProps.save(k);return(0,e.createElement)(Fi,{tagName:i?"a":"span",htmlAttrs:v},(0,e.createElement)(Ai,{hasIcon:!!g,direction:d,icon:g,hideChildren:b,showWrapper:!1},(0,e.createElement)(r.RichText.Content,{value:n,tagName:g?"span":void 0,className:g?"gb-button-text":void 0})))},deprecated:us,usesContext:["postId","postType","generateblocks/query","generateblocks/inheritQuery"],__experimentalLabel:e=>gs(e,(0,i.__)("Button","generateblocks"))});var bs=window.wp.richText;const ps=(0,e.createElement)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},(0,e.createElement)("path",{d:"M4.331,15.598l2.193,1.693c0,0 -0.813,1.215 -0.992,1.215c-1.129,0.003 -1.424,0.008 -2.603,-0.001c-0.741,-0.006 -0.04,-0.955 0.187,-1.269c0.502,-0.694 1.215,-1.638 1.215,-1.638Zm7.632,-14.107c0.364,-0.061 5.412,3.896 5.439,4.272c0.031,0.438 -4.887,8.469 -5.635,9.648c-0.251,0.397 -1.185,0.206 -2.064,0.472c-0.801,0.243 -1.89,1.336 -2.193,1.105c-1.047,-0.796 -2.217,-1.646 -3.117,-2.49c-0.367,-0.343 0.388,-1.241 0.405,-2.188c0.015,-0.811 -0.644,-2.029 -0.196,-2.575c0.836,-1.019 6.931,-8.172 7.361,-8.244Zm0.144,1.454l3.95,3.105l-4.972,8.1l-5.197,-4.053l6.219,-7.152Z"})),ms="generateblocks/mark",fs=(0,q.compose)((0,l.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),(0,q.ifCondition)((function(e){return e.selectedBlock&&"generateblocks/headline"===e.selectedBlock.name})))((function(t){const a=()=>t.onChange((0,bs.toggleFormat)(t.value,{type:ms}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.RichTextShortcut,{type:"primary",character:"m",onUse:a}),(0,e.createElement)(r.RichTextToolbarButton,{icon:ps,title:(0,i.__)("Highlight","generateblocks"),onClick:a,isActive:t.isActive,shortcutType:"access",shortcutCharacter:"m",className:`toolbar-button-with-text toolbar-button__${ms}`}))})),hs={title:(0,i.__)("Highlight","generateblocks"),tagName:"mark",className:"gb-highlight",edit:fs};function ks(t){let{level:a}=t;const l={h1:"M9 5h2v10H9v-4H5v4H3V5h2v4h4V5zm6.6 0c-.6.9-1.5 1.7-2.6 2v1h2v7h2V5h-1.4z",h2:"M7 5h2v10H7v-4H3v4H1V5h2v4h4V5zm8 8c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6V15h8v-2H15z",h3:"M12.1 12.2c.4.3.8.5 1.2.7.4.2.9.3 1.4.3.5 0 1-.1 1.4-.3.3-.1.5-.5.5-.8 0-.2 0-.4-.1-.6-.1-.2-.3-.3-.5-.4-.3-.1-.7-.2-1-.3-.5-.1-1-.1-1.5-.1V9.1c.7.1 1.5-.1 2.2-.4.4-.2.6-.5.6-.9 0-.3-.1-.6-.4-.8-.3-.2-.7-.3-1.1-.3-.4 0-.8.1-1.1.3-.4.2-.7.4-1.1.6l-1.2-1.4c.5-.4 1.1-.7 1.6-.9.5-.2 1.2-.3 1.8-.3.5 0 1 .1 1.6.2.4.1.8.3 1.2.5.3.2.6.5.8.8.2.3.3.7.3 1.1 0 .5-.2.9-.5 1.3-.4.4-.9.7-1.5.9v.1c.6.1 1.2.4 1.6.8.4.4.7.9.7 1.5 0 .4-.1.8-.3 1.2-.2.4-.5.7-.9.9-.4.3-.9.4-1.3.5-.5.1-1 .2-1.6.2-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1l1.1-1.4zM7 9H3V5H1v10h2v-4h4v4h2V5H7v4z",h4:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm10-2h-1v2h-2v-2h-5v-2l4-6h3v6h1v2zm-3-2V7l-2.8 4H16z",h5:"M12.1 12.2c.4.3.7.5 1.1.7.4.2.9.3 1.3.3.5 0 1-.1 1.4-.4.4-.3.6-.7.6-1.1 0-.4-.2-.9-.6-1.1-.4-.3-.9-.4-1.4-.4H14c-.1 0-.3 0-.4.1l-.4.1-.5.2-1-.6.3-5h6.4v1.9h-4.3L14 8.8c.2-.1.5-.1.7-.2.2 0 .5-.1.7-.1.5 0 .9.1 1.4.2.4.1.8.3 1.1.6.3.2.6.6.8.9.2.4.3.9.3 1.4 0 .5-.1 1-.3 1.4-.2.4-.5.8-.9 1.1-.4.3-.8.5-1.3.7-.5.2-1 .3-1.5.3-.8 0-1.6-.1-2.3-.4-.6-.2-1.1-.6-1.6-1-.1-.1 1-1.5 1-1.5zM9 15H7v-4H3v4H1V5h2v4h4V5h2v10z",h6:"M9 15H7v-4H3v4H1V5h2v4h4V5h2v10zm8.6-7.5c-.2-.2-.5-.4-.8-.5-.6-.2-1.3-.2-1.9 0-.3.1-.6.3-.8.5l-.6.9c-.2.5-.2.9-.2 1.4.4-.3.8-.6 1.2-.8.4-.2.8-.3 1.3-.3.4 0 .8 0 1.2.2.4.1.7.3 1 .6.3.3.5.6.7.9.2.4.3.8.3 1.3s-.1.9-.3 1.4c-.2.4-.5.7-.8 1-.4.3-.8.5-1.2.6-1 .3-2 .3-3 0-.5-.2-1-.5-1.4-.9-.4-.4-.8-.9-1-1.5-.2-.6-.3-1.3-.3-2.1s.1-1.6.4-2.3c.2-.6.6-1.2 1-1.6.4-.4.9-.7 1.4-.9.6-.3 1.1-.4 1.7-.4.7 0 1.4.1 2 .3.5.2 1 .5 1.4.8 0 .1-1.3 1.4-1.3 1.4zm-2.4 5.8c.2 0 .4 0 .6-.1.2 0 .4-.1.5-.2.1-.1.3-.3.4-.5.1-.2.1-.5.1-.7 0-.4-.1-.8-.4-1.1-.3-.2-.7-.3-1.1-.3-.3 0-.7.1-1 .2-.4.2-.7.4-1 .7 0 .3.1.7.3 1 .1.2.3.4.4.6.2.1.3.3.5.3.2.1.5.2.7.1z",p:"M7.411 18V6.005h3.887c1.474 0 2.429.067 2.881.184.687.185 1.257.57 1.726 1.173.452.603.687 1.374.687 2.329 0 .737-.135 1.357-.403 1.86-.268.502-.603.904-1.021 1.189-.403.284-.821.469-1.257.57-.57.117-1.407.167-2.496.167H9.823V18H7.411zm2.412-9.968v3.401h1.324c.955 0 1.591-.05 1.926-.184.319-.118.57-.319.754-.587.185-.268.268-.57.268-.938 0-.435-.117-.787-.385-1.072a1.607 1.607 0 00-.972-.536c-.284-.05-.87-.084-1.742-.084H9.823z",div:"M6.969 6.005h4.423c1.005 0 1.759.084 2.295.235.703.2 1.306.57 1.809 1.105.503.52.871 1.173 1.14 1.944.267.754.385 1.708.385 2.83 0 .99-.118 1.844-.369 2.547-.302.871-.72 1.592-1.273 2.128-.419.402-.989.72-1.709.955-.536.167-1.24.251-2.144.251H6.969V6.005zm2.43 2.027v7.94h1.808c.67 0 1.156-.033 1.458-.1.402-.1.72-.268.972-.502.268-.235.485-.62.636-1.156.168-.536.251-1.273.251-2.195 0-.938-.083-1.641-.25-2.144-.152-.486-.386-.888-.688-1.156-.285-.285-.67-.469-1.122-.57-.335-.067-.989-.117-1.977-.117H9.398z"};if(!l.hasOwnProperty(a))return null;let r="0 0 20 20";return"p"!==a&&"div"!==a||(r="0 0 24 24"),(0,e.createElement)(n.SVG,{width:"24",height:"24",viewBox:r,xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(n.Path,{d:l[a]}))}(0,bs.registerFormatType)(ms,hs);var vs=t=>{let{setAttributes:a,element:l,isCaption:r}=t;return r?null:(0,e.createElement)(n.ToolbarGroup,{isCollapsed:!0,icon:(0,e.createElement)(ks,{level:l}),label:(0,i.__)("Change Headline Element","generateblocks"),controls:[{isActive:"h1"===l,icon:(0,e.createElement)(ks,{level:"h1"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
14
+ (0,i.__)("Heading %s","generateblocks"),"1"),onClick:()=>{a({element:"h1"})}},{isActive:"h2"===l,icon:(0,e.createElement)(ks,{level:"h2"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
15
+ (0,i.__)("Heading %s","generateblocks"),"2"),onClick:()=>{a({element:"h2"})}},{isActive:"h3"===l,icon:(0,e.createElement)(ks,{level:"h3"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
16
+ (0,i.__)("Heading %s","generateblocks"),"3"),onClick:()=>{a({element:"h3"})}},{isActive:"h4"===l,icon:(0,e.createElement)(ks,{level:"h4"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
17
+ (0,i.__)("Heading %s","generateblocks"),"4"),onClick:()=>{a({element:"h4"})}},{isActive:"h5"===l,icon:(0,e.createElement)(ks,{level:"h5"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
18
+ (0,i.__)("Heading %s","generateblocks"),"5"),onClick:()=>{a({element:"h5"})}},{isActive:"h6"===l,icon:(0,e.createElement)(ks,{level:"h6"}),title:(0,i.sprintf)(// translators: %s: heading level e.g: "1", "2", "3"
19
+ (0,i.__)("Heading %s","generateblocks"),"6"),onClick:()=>{a({element:"h6"})}},{isActive:"p"===l,icon:(0,e.createElement)(ks,{level:"p"}),title:(0,i.__)("Paragraph","generateblocks"),onClick:()=>{a({element:"p"})}},{isActive:"div"===l,icon:(0,e.createElement)(ks,{level:"div"}),title:(0,i.__)("Div","generateblocks"),onClick:()=>{a({element:"div"})}}]})},ys=(0,e.memo)((function(t){const{attributes:a,setAttributes:l,deviceType:n}=t,{element:i,alignment:o,alignmentTablet:s,alignmentMobile:c,inlineWidth:u,inlineWidthTablet:g,inlineWidthMobile:d,isCaption:b}=a;return(0,e.createElement)(r.BlockControls,null,(0,e.createElement)(vs,{setAttributes:l,element:i,isCaption:b}),"Desktop"===n&&!u&&(0,e.createElement)(r.AlignmentToolbar,{value:o,onChange:e=>{l({alignment:e})}}),"Tablet"===n&&!g&&(0,e.createElement)(r.AlignmentToolbar,{value:s,onChange:e=>{l({alignmentTablet:e})}}),"Mobile"===n&&!d&&(0,e.createElement)(r.AlignmentToolbar,{value:c,onChange:e=>{l({alignmentMobile:e})}}))}),((e,t)=>["element","alignment","alignmentTablet","alignmentMobile","inlineWidth","inlineWidthTablet","inlineWidthMobile"].every((a=>e.attributes[a]===t.attributes[a]))&&e.deviceType===t.deviceType)),ws=a=>{const{attributes:l,setAttributes:o,deviceType:s,blockState:c,computedStyles:u}=a,{element:g,marginTop:d,marginRight:p,marginBottom:f,marginLeft:h,icon:k,iconLocation:v,iconLocationTablet:y,iconLocationMobile:w,iconVerticalAlignment:_,iconVerticalAlignmentTablet:T,iconVerticalAlignmentMobile:E,iconSizeUnit:x,inlineWidth:S,inlineWidthTablet:B,inlineWidthMobile:D,removeText:R,isCaption:z}=l;return(0,e.createElement)(r.InspectorControls,null,(0,e.createElement)(C,t({},a,{id:"headlineElement",state:c,showPanel:"Desktop"===s&&!z}),(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Tag Name","generateblocks"),value:g,options:[{label:"h1",value:"h1"},{label:"h2",value:"h2"},{label:"h3",value:"h3"},{label:"h4",value:"h4"},{label:"h5",value:"h5"},{label:"h6",value:"h6"},{label:"paragraph",value:"p"},{label:"div",value:"div"},{label:"figcaption",value:"figcaption"}],onChange:e=>{o({element:e}),d||p||f||h||o("p"===e?{marginUnit:"em"}:{marginUnit:generateBlocksDefaults.headline.marginUnit})}}),(0,m.applyFilters)("generateblocks.editor.controls","","headlineElement",a,c)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Typography","generateblocks"),initialOpen:!1,icon:b("typography"),className:"gblocks-panel-label",id:"headlineTypography",state:c,showPanel:!R||!1}),(0,e.createElement)(tn,t({},a,{deviceType:s,options:["fontWeight","textTransform","fontSize","lineHeight","letterSpacing","fontFamily"],computedStyles:u})),(0,m.applyFilters)("generateblocks.editor.controls","","headlineTypography",a,c)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Spacing","generateblocks"),initialOpen:!1,icon:b("spacing"),className:"gblocks-panel-label",id:"headlineSpacing",state:c}),(0,e.createElement)(nn,t({},a,{deviceType:s,dimensions:[{type:"padding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]},{type:"margin",label:(0,i.__)("Margin","generateblocks"),units:["px","em","%"],computedStyles:u},{type:"borderSize",label:(0,i.__)("Border Size","generateblocks"),units:["px"]},{type:"borderRadius",label:(0,i.__)("Border Radius","generateblocks"),units:["px","em","%"]}]})),"Desktop"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:!!S,onChange:e=>{o({inlineWidth:e})}})),"Tablet"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:!!B,onChange:e=>{o({inlineWidthTablet:e})}})),"Mobile"===s&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ToggleControl,{label:(0,i.__)("Inline Width","generateblocks"),checked:!!D,onChange:e=>{o({inlineWidthMobile:e})}})),(0,m.applyFilters)("generateblocks.editor.controls","","headlineSpacing",a,c)),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Colors","generateblocks"),initialOpen:!1,icon:b("colors"),className:"gblocks-panel-label",id:"headlineColors",state:c,showPanel:"Desktop"===s||!1}),(0,e.createElement)(mi,t({},a,{colors:[{group:"background",label:(0,i.__)("Background","generateblocks"),items:[{attribute:"backgroundColor",alpha:!0}]},{group:"text",label:(0,i.__)("Text","generateblocks"),items:[{attribute:"textColor"}]},{group:"link",label:(0,i.__)("Link","generateblocks"),items:[{attribute:"linkColor"},{tooltip:(0,i.__)("Hover","generateblocks"),attribute:"linkColorHover"}]},{group:"border",label:(0,i.__)("Border","generateblocks"),items:[{attribute:"borderColor",alpha:!0}]},{group:"icon",label:(0,i.__)("Icon","generateblocks"),items:[{attribute:"iconColor",alpha:!0}]},{group:"highlight",label:(0,i.__)("Highlight","generateblocks"),items:[{attribute:"highlightTextColor"}]}]}))),(0,e.createElement)(C,t({},a,{title:(0,i.__)("Icon","generateblocks"),initialOpen:!1,icon:b("icons"),className:"gblocks-panel-label",id:"headlineIcon",state:c,showPanel:!("Desktop"!==s&&!k)}),"Desktop"===s&&(0,e.createElement)(Jo,t({},a,{attrIcon:"icon",attrRemoveText:"removeText",attrAriaLabel:"ariaLabel"})),"Desktop"===s&&!!k&&(0,e.createElement)(e.Fragment,null,!R&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:v,options:[{label:(0,i.__)("Inline","generateblocks"),value:"inline"},{label:(0,i.__)("Above","generateblocks"),value:"above"}],onChange:e=>{o({iconLocation:e,iconPaddingRight:"inline"===e?"0.5":"",iconPaddingBottom:"above"===e?"0.5":""})}}),"inline"===v&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Icon Alignment","generateblocks"),value:_,options:[{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{o({iconVerticalAlignment:e})}}),(0,e.createElement)(rn,t({},a,{device:s,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]})))),"Tablet"===s&&!!k&&(0,e.createElement)(e.Fragment,null,!R&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:y,options:[{label:(0,i.__)("Inherit","generateblocks"),value:""},{label:(0,i.__)("Inline","generateblocks"),value:"inline"},{label:(0,i.__)("Above","generateblocks"),value:"above"}],onChange:e=>{o({iconLocationTablet:e,iconPaddingRightTablet:"inline"===e?"0.5":"",iconPaddingBottomTablet:"above"===e?"0.5":""})}}),"inline"===y&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Icon Alignment","generateblocks"),value:T,options:[{label:(0,i.__)("Inherit","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{o({iconVerticalAlignmentTablet:e})}}),(0,e.createElement)(rn,t({},a,{device:s,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]})))),"Mobile"===s&&!!k&&(0,e.createElement)(e.Fragment,null,!R&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Icon Location","generateblocks"),value:w,options:[{label:(0,i.__)("Inherit","generateblocks"),value:""},{label:(0,i.__)("Inline","generateblocks"),value:"inline"},{label:(0,i.__)("Above","generateblocks"),value:"above"}],onChange:e=>{o({iconLocationMobile:e,iconPaddingRightMobile:"inline"===e?"0.5":"",iconPaddingBottomMobile:"above"===e?"0.5":""})}}),"inline"===w&&(0,e.createElement)(n.SelectControl,{label:(0,i.__)("Icon Alignment","generateblocks"),value:E,options:[{label:(0,i.__)("Inherit","generateblocks"),value:""},{label:(0,i.__)("Top","generateblocks"),value:"top"},{label:(0,i.__)("Center","generateblocks"),value:"center"},{label:(0,i.__)("Bottom","generateblocks"),value:"bottom"}],onChange:e=>{o({iconVerticalAlignmentMobile:e})}}),(0,e.createElement)(rn,t({},a,{device:s,type:"iconPadding",label:(0,i.__)("Padding","generateblocks"),units:["px","em","%"]})))),!!k&&(0,e.createElement)(M,t({},a,{label:(0,i.__)("Icon Size","generateblocks"),attributeName:"iconSize",units:["px","em"],device:s,presets:[{unit:"em",data:[.7,1,1.5,2]}],presetUnit:"em",min:"1",step:"em"===x?.1:1})),(0,m.applyFilters)("generateblocks.editor.controls","","headlineIcon",a,c)))};class _s extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.desktopCSS",t,this.props,"headline"),(0,e.createElement)("style",null,O(t))}}class Cs extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:r,alignmentTablet:n,fontSizeTablet:i,fontSizeUnit:o,lineHeightTablet:s,lineHeightUnit:c,letterSpacingTablet:u,marginTopTablet:g,marginRightTablet:d,marginBottomTablet:b,marginLeftTablet:p,marginUnit:f,paddingTopTablet:h,paddingRightTablet:k,paddingBottomTablet:v,paddingLeftTablet:y,paddingUnit:w,borderSizeTopTablet:_,borderSizeRightTablet:C,borderSizeBottomTablet:T,borderSizeLeftTablet:E,borderRadiusTopRightTablet:x,borderRadiusBottomRightTablet:S,borderRadiusBottomLeftTablet:B,borderRadiusTopLeftTablet:M,borderRadiusUnit:D,icon:R,iconLocationTablet:z,iconVerticalAlignmentTablet:L,iconPaddingTopTablet:N,iconPaddingRightTablet:A,iconPaddingBottomTablet:F,iconPaddingLeftTablet:P,iconPaddingUnit:H,iconSizeTablet:V,iconSizeUnit:U,inlineWidthTablet:G,removeText:j}=t,q=r+".gb-headline-"+l;let W="inline-block",$=[];return $[".editor-styles-wrapper "+q]=[{"text-align":n,"font-size":I(i,o),"line-height":I(s,c),"letter-spacing":I(u,"em"),display:!!R&&"flex","align-items":Ao("inline"===z?L:n),"justify-content":Ao(n),"flex-direction":!(!R||"above"!==z)&&"column","margin-top":I(g,f)+" !important","margin-right":I(d,f)+" !important","margin-bottom":I(b,f)+" !important","margin-left":I(p,f)+" !important","padding-top":I(h,w),"padding-right":I(k,w),"padding-bottom":I(v,w),"padding-left":I(y,w),"border-top-left-radius":I(M,D),"border-top-right-radius":I(x,D),"border-bottom-right-radius":I(S,D),"border-bottom-left-radius":I(B,D)}],R&&(W="inline-flex",$[".editor-styles-wrapper "+q].push({display:!!G&&W})),(_||C||T||E)&&$[".editor-styles-wrapper "+q].push({"border-top-width":I(_,"px"),"border-right-width":I(C,"px"),"border-bottom-width":I(T,"px"),"border-left-width":I(E,"px"),"border-style":"solid"}),$[q+" .gb-icon"]=[{"padding-top":!j&&I(N,H),"padding-right":!j&&I(A,H),"padding-bottom":!j&&I(F,H),"padding-left":!j&&I(P,H),"align-self":!(!R||"above"!==z)&&Ao(n),display:!(!R||"above"!==z)&&"inline"}],$[q+" .gb-icon svg"]=[{width:I(V,U),height:I(V,U)}],$['.gb-is-root-block[data-block="'+a+'"]']=[{display:!!G&&"inline-flex"}],$=(0,m.applyFilters)("generateblocks.editor.tabletCSS",$,this.props,"text"),(0,e.createElement)("style",null,O($))}}class Ts extends e.Component{render(){let t=[];return t=(0,m.applyFilters)("generateblocks.editor.tabletOnlyCSS",t,this.props,"headline"),(0,e.createElement)("style",null,O(t))}}class Es extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:r,alignmentMobile:n,fontSizeMobile:i,fontSizeUnit:o,lineHeightMobile:s,lineHeightUnit:c,letterSpacingMobile:u,marginTopMobile:g,marginRightMobile:d,marginBottomMobile:b,marginLeftMobile:p,marginUnit:f,paddingTopMobile:h,paddingRightMobile:k,paddingBottomMobile:v,paddingLeftMobile:y,paddingUnit:w,borderSizeTopMobile:_,borderSizeRightMobile:C,borderSizeBottomMobile:T,borderSizeLeftMobile:E,borderRadiusTopRightMobile:x,borderRadiusBottomRightMobile:S,borderRadiusBottomLeftMobile:B,borderRadiusTopLeftMobile:M,borderRadiusUnit:D,icon:R,iconLocationMobile:z,iconVerticalAlignmentMobile:L,iconPaddingTopMobile:N,iconPaddingRightMobile:A,iconPaddingBottomMobile:F,iconPaddingLeftMobile:P,iconPaddingUnit:H,iconSizeMobile:V,iconSizeUnit:U,inlineWidthMobile:G,removeText:j}=t,q=r+".gb-headline-"+l;let W="inline-block",$=[];return $[".editor-styles-wrapper "+q]=[{"text-align":n,"font-size":I(i,o),"line-height":I(s,c),"letter-spacing":I(u,"em"),display:!!R&&"flex","align-items":Ao("inline"===z?L:n),"justify-content":Ao(n),"flex-direction":!(!R||"above"!==z)&&"column","margin-top":I(g,f)+" !important","margin-right":I(d,f)+" !important","margin-bottom":I(b,f)+" !important","margin-left":I(p,f)+" !important","padding-top":I(h,w),"padding-right":I(k,w),"padding-bottom":I(v,w),"padding-left":I(y,w),"border-top-left-radius":I(M,D),"border-top-right-radius":I(x,D),"border-bottom-right-radius":I(S,D),"border-bottom-left-radius":I(B,D)}],R&&(W="inline-flex",$[".editor-styles-wrapper "+q].push({display:!!G&&W})),(_||C||T||E)&&$[".editor-styles-wrapper "+q].push({"border-top-width":I(_,"px"),"border-right-width":I(C,"px"),"border-bottom-width":I(T,"px"),"border-left-width":I(E,"px"),"border-style":"solid"}),$[q+" .gb-icon"]=[{"padding-top":!j&&I(N,H),"padding-right":!j&&I(A,H),"padding-bottom":!j&&I(F,H),"padding-left":!j&&I(P,H),"align-self":!(!R||"above"!==z)&&Ao(n),display:!(!R||"above"!==z)&&"inline"}],$[q+" .gb-icon svg"]=[{width:I(V,U),height:I(V,U)}],$['.gb-is-root-block[data-block="'+a+'"]']=[{display:!!G&&"inline-flex"}],$=(0,m.applyFilters)("generateblocks.editor.mobileCSS",$,this.props,"headline"),(0,e.createElement)("style",null,O($))}}class xs extends e.Component{render(){const t=(0,m.applyFilters)("generateblocks.editor.cssAttrs",this.props.attributes,this.props),{clientId:a}=this.props,{uniqueId:l,element:r,alignment:n,backgroundColor:i,backgroundColorOpacity:o,textColor:s,linkColor:c,linkColorHover:u,borderColor:g,borderColorOpacity:d,highlightTextColor:b,fontFamily:p,fontFamilyFallback:f,fontWeight:h,fontSize:k,fontSizeUnit:v,textTransform:y,lineHeight:w,lineHeightUnit:_,letterSpacing:C,marginTop:T,marginRight:E,marginBottom:x,marginLeft:S,marginUnit:B,paddingTop:M,paddingRight:D,paddingBottom:R,paddingLeft:z,paddingUnit:L,borderSizeTop:N,borderSizeRight:A,borderSizeBottom:F,borderSizeLeft:P,borderRadiusTopRight:H,borderRadiusBottomRight:V,borderRadiusBottomLeft:U,borderRadiusTopLeft:G,borderRadiusUnit:j,icon:q,iconColor:W,iconColorOpacity:$,iconLocation:Z,iconVerticalAlignment:K,iconPaddingTop:Q,iconPaddingRight:Y,iconPaddingBottom:J,iconPaddingLeft:X,iconPaddingUnit:ee,iconSize:te,iconSizeUnit:ae,inlineWidth:le,removeText:re}=t;let ne="",ie="inline-block";p&&f&&(ne=", "+f);const oe=r+".gb-headline-"+l;let se=[];return se[".editor-styles-wrapper "+oe]=[{color:s,"font-family":p+ne,"font-weight":h,"text-transform":y,"text-align":n,"font-size":I(k,v),"line-height":I(w,_),"letter-spacing":I(C,"em"),display:!!q&&"flex","align-items":Ao("inline"===Z?K:n),"justify-content":Ao(n),"flex-direction":!(!q||"above"!==Z)&&"column"}],se[".editor-styles-wrapper .gb-container "+oe]=[{color:s}],q&&(ie="inline-flex"),se[".editor-styles-wrapper "+oe].push({"background-color":bi(i,o),color:s,display:!!le&&ie,"margin-top":I(T,B),"margin-right":I(E,B),"margin-bottom":I(x,B),"margin-left":I(S,B),padding:Xi(M,D,R,z,L),"border-radius":Xi(G,H,V,U,j),"border-color":bi(g,d)}),(N||A||F||P)&&se[".editor-styles-wrapper "+oe].push({"border-width":Xi(N,A,F,P,"px"),"border-style":"solid"}),se[".editor-styles-wrapper "+oe+" a"]=[{color:c}],se[".editor-styles-wrapper "+oe+" a:hover"]=[{color:u}],se[oe+" .gb-icon"]=[{padding:!re&&Xi(Q,Y,J,X,ee),"align-self":!(!q||"above"!==Z)&&Ao(n),color:bi(W,$),display:!(!q||"above"!==Z)&&"inline"}],se[oe+" .gb-icon svg"]=[{width:I(te,ae),height:I(te,ae)}],se[oe+" .gb-highlight"]=[{color:b}],se['.gb-is-root-block[data-block="'+a+'"]']=[{display:!!le&&"inline-flex"}],se=(0,m.applyFilters)("generateblocks.editor.mainCSS",se,this.props,"headline"),(0,e.createElement)("style",null,O(se))}}var Ss=(0,e.memo)((function(t){const a=(0,l.useSelect)((e=>{if(!e("core/edit-post"))return"Desktop";const{__experimentalGetPreviewDeviceType:t=(()=>"Desktop")}=e("core/edit-post");return t()}),[]),{isBlockPreview:r=!1}=t?.attributes;return r?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)(xs,t),a&&(0,e.createElement)(e.Fragment,null,"Desktop"===a&&(0,e.createElement)(_s,t),("Tablet"===a||"Mobile"===a)&&(0,e.createElement)(Cs,t),"Tablet"===a&&(0,e.createElement)(Ts,t),"Mobile"===a&&(0,e.createElement)(Es,t)))}),G);const Bs=(e,t)=>(a,l)=>{let r;return r=l||a?(0,g.createBlock)("generateblocks/headline",{...e,content:a}):(0,g.createBlock)("core/paragraph"),l&&(r.clientId=t),r};var Ms=(0,q.compose)(So,Y)((a=>{const{attributes:l,setAttributes:r,ContentRenderer:n=Pi,context:i}=a,{uniqueId:o,anchor:s,fontFamily:c,googleFont:u,googleFontVariants:g,icon:d,hasIcon:b,element:p,isBlockPreview:f=!1}=l,h=(0,e.useRef)(null),[k,v]=(0,e.useState)({}),[y,w]=W("Desktop");return(0,e.useEffect)((()=>{!b&&d&&r({hasIcon:!0})}),[]),(0,e.useEffect)((()=>{const e=getComputedStyle(h.current);v({marginTop:parseInt(e.marginTop)||"",marginBottom:parseInt(e.marginBottom)||"",fontSize:parseInt(e.fontSize)||""})}),[p]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ys,{attributes:l,setAttributes:r,deviceType:y,context:i}),(0,e.createElement)(ws,t({},a,{uniqueId:o,deviceType:y,setDeviceType:w,blockState:{deviceType:y},computedStyles:k})),(0,e.createElement)(L,{anchor:s,setAttributes:r}),(0,e.createElement)(Ss,t({},a,{deviceType:y})),(0,e.createElement)(Jr,{fontFamily:c,googleFont:u,googleFontVariants:g,isBlockPreview:f}),(0,m.applyFilters)("generateblocks.editor.beforeHeadlineElement","",a),(0,e.createElement)(n,t({},a,{onSplit:Bs,headlineRef:h})))})),Ds={uniqueId:{type:"string",default:""},anchor:{type:"string",default:""},content:{type:"string",source:"html",selector:".gb-headline-text"},element:{type:"string",default:"h2"},alignment:{type:"string",default:generateBlocksDefaults.headline.alignment},alignmentTablet:{type:"string",default:generateBlocksDefaults.headline.alignmentTablet},alignmentMobile:{type:"string",default:generateBlocksDefaults.headline.alignmentMobile},backgroundColor:{type:"string",default:generateBlocksDefaults.headline.backgroundColor},backgroundColorOpacity:{type:"number",default:generateBlocksDefaults.headline.backgroundColorOpacity},textColor:{type:"string",default:generateBlocksDefaults.headline.textColor},linkColor:{type:"string",default:generateBlocksDefaults.headline.linkColor},linkColorHover:{type:"string",default:generateBlocksDefaults.headline.linkColorHover},borderColor:{type:"string",default:generateBlocksDefaults.headline.borderColor},borderColorOpacity:{type:"number",default:generateBlocksDefaults.headline.borderColorOpacity},highlightTextColor:{type:"string",default:generateBlocksDefaults.headline.highlightTextColor},fontFamily:{type:"string",default:generateBlocksDefaults.headline.fontFamily},fontFamilyFallback:{type:"string",default:generateBlocksDefaults.headline.fontFamilyFallback},googleFont:{type:"boolean",default:generateBlocksDefaults.headline.googleFont},googleFontVariants:{type:"string",default:generateBlocksDefaults.headline.googleFontVariants},fontWeight:{type:"string",default:generateBlocksDefaults.headline.fontWeight},fontSize:{type:"number",default:generateBlocksDefaults.headline.fontSize},fontSizeTablet:{type:"number",default:generateBlocksDefaults.headline.fontSizeTablet},fontSizeMobile:{type:"number",default:generateBlocksDefaults.headline.fontSizeMobile},fontSizeUnit:{type:"string",default:generateBlocksDefaults.headline.fontSizeUnit},textTransform:{type:"string",default:""},lineHeight:{type:"number",default:generateBlocksDefaults.headline.lineHeight},lineHeightTablet:{type:"number",default:generateBlocksDefaults.headline.lineHeightTablet},lineHeightMobile:{type:"number",default:generateBlocksDefaults.headline.lineHeightMobile},lineHeightUnit:{type:"string",default:generateBlocksDefaults.headline.lineHeightUnit},letterSpacing:{type:"number",default:generateBlocksDefaults.headline.letterSpacing},letterSpacingTablet:{type:"number",default:generateBlocksDefaults.headline.letterSpacingTablet},letterSpacingMobile:{type:"number",default:generateBlocksDefaults.headline.letterSpacingMobile},marginTop:{type:"string",default:generateBlocksDefaults.headline.marginTop},marginRight:{type:"string",default:generateBlocksDefaults.headline.marginRight},marginBottom:{type:"string",default:generateBlocksDefaults.headline.marginBottom},marginLeft:{type:"string",default:generateBlocksDefaults.headline.marginLeft},marginUnit:{type:"string",default:generateBlocksDefaults.headline.marginUnit},marginSyncUnits:{type:"boolean",default:!1},marginTopTablet:{type:"string",default:generateBlocksDefaults.headline.marginTopTablet},marginRightTablet:{type:"string",default:generateBlocksDefaults.headline.marginRightTablet},marginBottomTablet:{type:"string",default:generateBlocksDefaults.headline.marginBottomTablet},marginLeftTablet:{type:"string",default:generateBlocksDefaults.headline.marginLeftTablet},marginTopMobile:{type:"string",default:generateBlocksDefaults.headline.marginTopMobile},marginRightMobile:{type:"string",default:generateBlocksDefaults.headline.marginRightMobile},marginBottomMobile:{type:"string",default:generateBlocksDefaults.headline.marginBottomMobile},marginLeftMobile:{type:"string",default:generateBlocksDefaults.headline.marginLeftMobile},paddingTop:{type:"string",default:generateBlocksDefaults.headline.paddingTop},paddingRight:{type:"string",default:generateBlocksDefaults.headline.paddingRight},paddingBottom:{type:"string",default:generateBlocksDefaults.headline.paddingBottom},paddingLeft:{type:"string",default:generateBlocksDefaults.headline.paddingLeft},paddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.paddingTopTablet},paddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.paddingRightTablet},paddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.paddingBottomTablet},paddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.paddingLeftTablet},paddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.paddingTopMobile},paddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.paddingRightMobile},paddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.paddingBottomMobile},paddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.paddingLeftMobile},paddingUnit:{type:"string",default:generateBlocksDefaults.headline.paddingUnit},paddingSyncUnits:{type:"boolean",default:!1},borderSizeTop:{type:"string",default:generateBlocksDefaults.headline.borderSizeTop},borderSizeRight:{type:"string",default:generateBlocksDefaults.headline.borderSizeRight},borderSizeBottom:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottom},borderSizeLeft:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeft},borderSizeTopTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopTablet},borderSizeRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightTablet},borderSizeBottomTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomTablet},borderSizeLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftTablet},borderSizeTopMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeTopMobile},borderSizeRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeRightMobile},borderSizeBottomMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeBottomMobile},borderSizeLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderSizeLeftMobile},borderRadiusTopRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRight},borderRadiusBottomRight:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRight},borderRadiusBottomLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeft},borderRadiusTopLeft:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeft},borderRadiusUnit:{type:"string",default:generateBlocksDefaults.headline.borderRadiusUnit},borderRadiusTopRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightTablet},borderRadiusBottomRightTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightTablet},borderRadiusBottomLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftTablet},borderRadiusTopLeftTablet:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftTablet},borderRadiusTopRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopRightMobile},borderRadiusBottomRightMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomRightMobile},borderRadiusBottomLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusBottomLeftMobile},borderRadiusTopLeftMobile:{type:"string",default:generateBlocksDefaults.headline.borderRadiusTopLeftMobile},icon:{type:"string",source:"html",selector:".gb-icon"},hasIcon:{type:"boolean",default:!1},iconColor:{type:"string",default:generateBlocksDefaults.headline.iconColor},iconColorOpacity:{type:"number",default:generateBlocksDefaults.headline.iconColorOpacity},customIcon:{type:"boolean",default:!1},iconLocation:{type:"string",default:generateBlocksDefaults.headline.iconLocation},iconLocationTablet:{type:"string",default:generateBlocksDefaults.headline.iconLocationTablet},iconLocationMobile:{type:"string",default:generateBlocksDefaults.headline.iconLocationMobile},iconVerticalAlignment:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignment},iconVerticalAlignmentTablet:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentTablet},iconVerticalAlignmentMobile:{type:"string",default:generateBlocksDefaults.headline.iconVerticalAlignmentMobile},iconPaddingTop:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTop},iconPaddingRight:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRight},iconPaddingBottom:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottom},iconPaddingLeft:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeft},iconPaddingTopTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopTablet},iconPaddingRightTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightTablet},iconPaddingBottomTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomTablet},iconPaddingLeftTablet:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftTablet},iconPaddingTopMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingTopMobile},iconPaddingRightMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingRightMobile},iconPaddingBottomMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingBottomMobile},iconPaddingLeftMobile:{type:"string",default:generateBlocksDefaults.headline.iconPaddingLeftMobile},iconPaddingUnit:{type:"string",default:generateBlocksDefaults.headline.iconPaddingUnit},iconPaddingSyncUnits:{type:"boolean",default:!1},iconSize:{type:"number",default:generateBlocksDefaults.headline.iconSize},iconSizeTablet:{type:"number",default:generateBlocksDefaults.headline.iconSizeTablet},iconSizeMobile:{type:"number",default:generateBlocksDefaults.headline.iconSizeMobile},iconSizeUnit:{type:"string",default:generateBlocksDefaults.headline.iconSizeUnit},inlineWidth:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidth},inlineWidthTablet:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthTablet},inlineWidthMobile:{type:"boolean",default:generateBlocksDefaults.headline.inlineWidthMobile},removeText:{type:"boolean",default:generateBlocksDefaults.headline.removeText},ariaLabel:{type:"string",default:generateBlocksDefaults.headline.ariaLabel},elementId:{type:"string",default:""},cssClasses:{type:"string",default:""}};const Rs={from:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("generateblocks/headline",{content:t})}},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("generateblocks/headline",{content:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:e=>{let{content:t}=e;return(0,g.createBlock)("core/heading",{content:t})}}]};var zs=Rs;const Ls=[{attributes:{...Ds,content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}},supports:{anchor:!1,className:!1,customClassName:!1},migrate(e){const t=e.cssClasses?e.cssClasses:e.className,a=e.elementId?e.elementId:e.anchor;let l=e.element?e.element:generateBlocksDefaults.headline.element;return e.icon&&e.removeText&&"div"!==l&&(l="div"),{...e,className:t,anchor:a,cssClasses:"",elementId:"",element:l}},save(a){let{attributes:l}=a;const{uniqueId:n,elementId:i,cssClasses:o,element:c,content:u,icon:g,removeText:d,ariaLabel:b}=l;let p={id:i||void 0,className:s()({"gb-headline":!0,[`gb-headline-${n}`]:!0,[`${o}`]:""!==o})};return p=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",p,"generateblocks/headline",l),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:g,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${n}`]:!0})},t)},g&&(0,e.createElement)("span",{className:"gb-icon","aria-label":d&&b?b:void 0,dangerouslySetInnerHTML:{__html:yi(g)}}),!d&&(0,e.createElement)(r.RichText.Content,t({tagName:c,value:u},p)))}},{attributes:{...Ds,element:{type:"string",default:"p"},content:{type:"array",source:"children",selector:"p,h1,h2,h3,h4,h5,h6"}},save(a){let{attributes:l}=a;const{uniqueId:n,elementId:i,cssClasses:o,element:c,content:u,icon:g,removeText:d,ariaLabel:b}=l;let p={id:i||void 0,className:s()({"gb-headline":!0,[`gb-headline-${n}`]:!0,[`${o}`]:""!==o})};return p=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",p,"generateblocks/headline",l),(0,e.createElement)((e=>{let{condition:t,wrap:a,children:l}=e;return t?a(l):l}),{condition:g,wrap:t=>(0,e.createElement)("div",{className:s()({"gb-headline-wrapper":!0,[`gb-headline-wrapper-${n}`]:!0})},t)},g&&(0,e.createElement)("span",{className:"gb-icon","aria-label":d&&b?b:void 0,dangerouslySetInnerHTML:{__html:yi(g)}}),!d&&(0,e.createElement)(r.RichText.Content,t({tagName:c,value:u},p)))}}];var Os=Ls;const Is=Object.assign({},Ds,Vi);(0,g.registerBlockType)("generateblocks/headline",{apiVersion:2,title:(0,i.__)("Headline","generateblocks"),description:(0,i.__)("Craft text-rich content with advanced typography.","generateblocks"),icon:b("headline"),category:"generateblocks",keywords:[(0,i.__)("heading"),(0,i.__)("headline"),(0,i.__)("title"),(0,i.__)("generate")],attributes:Is,supports:{className:!1},edit:Ms,save:t=>{let{attributes:a}=t;const{uniqueId:l,anchor:n,element:i,content:o,icon:c,hasIcon:u,removeText:g}=a;let d={className:s()({"gb-headline":!0,[`gb-headline-${l}`]:!0,"gb-headline-text":!u}),id:n||null};d=(0,m.applyFilters)("generateblocks.frontend.htmlAttributes",d,"gener