uawdijnntqw1x1x1
IP : 3.133.13.2
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
www
/
wp-content
/
plugins
/
stackable-ultimate-gutenberg-blocks
/
dist
/
editor_blocks.js
/
/
/*! For license information please see editor_blocks.js.LICENSE.txt */ (()=>{var e={686:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});l.Alignment.addStyles(r),l.BlockDiv.addStyles(r),l.Column.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r);const s=r;var c=o(4184),d=o.n(c),u=o(910),b=o(8333),m=o(9783),p=o(7462);o(7294);var k=o(8003),g=o(3882);const h='<svg data-prefix="fas" data-icon="chevron-down" class="svg-inline--fa fa-chevron-down fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',v=(0,g.applyFilters)("stackable.accordion.variations",[{name:"default",isDefault:!0,description:(0,k.sprintf)((0,k._x)("%s Layout","Block layout name",u.i18n),(0,k.__)("Default",u.i18n)),attributes:{className:"is-style-default"},isActive:["className"],pickerTitle:(0,k.__)("Default",u.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 13.4H9v7.2h30v-7.2zM9 11c-1.105 0-2 1.075-2 2.4v7.2c0 1.325.895 2.4 2 2.4h30c1.105 0 2-1.075 2-2.4v-7.2c0-1.325-.895-2.4-2-2.4H9z"}),(0,n.createElement)("path",{d:"M9 26h30v2H9v-2zM9 31h30v2H9v-2zM9 36h30v2H9v-2z"}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.146 16.146a.5.5 0 01.708 0l.646.647.646-.647a.5.5 0 01.708.708l-1 1a.5.5 0 01-.708 0l-1-1a.5.5 0 010-.708z"}),(0,n.createElement)("path",{d:"M12 16h12v2H12v-2z"}))},innerBlocks:[["stackable/column",{templateLock:"insert",hasContainer:!0,htmlTag:"summary",className:"stk--container-small stk-block-accordion__heading"},[["stackable/icon-label",{},[["stackable/heading",{text:(0,k._x)("Title for This Block","Heading placeholder",u.i18n),hasP:!0,textTag:"h4"}],["stackable/icon",{icon:h,linkHasLink:!1}]]]]],["stackable/column",{templateLock:!1,className:"stk-block-accordion__content"},[["stackable/text",{text:(0,k._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",u.i18n)}]]]],scope:["block"]},{name:"plain",description:(0,k.sprintf)((0,k._x)("%s Layout","Block layout name",u.i18n),(0,k.__)("Plain",u.i18n)),attributes:{className:"is-style-plain",blockBorderType:"solid",blockBorderColor:"#dfdad1",blockBorderWidth:{top:0,right:0,bottom:1,left:0},blockPadding:{top:"",right:"",bottom:24,left:""}},isActive:["className"],pickerTitle:(0,k.__)("Plain",u.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 13H9v2h14v-2zm16 6H9v2h30v-2zM9 24h30v2H9v-2zm30 5H9v2h30v-2zM9 34h30v1H9v-1zm27.854-20.854a.5.5 0 00-.708.708l1 1a.5.5 0 00.708 0l1-1a.5.5 0 00-.708-.708l-.646.647-.646-.647z"}))},innerBlocks:[["stackable/column",{templateLock:"insert",htmlTag:"summary",className:"stk--container-small stk-block-accordion__heading"},[["stackable/icon-label",{},[["stackable/heading",{text:(0,k._x)("Title for This Block","Heading placeholder",u.i18n),hasP:!0,textTag:"h4"}],["stackable/icon",{icon:h,linkHasLink:!1}]]]]],["stackable/column",{templateLock:!1,className:"stk-block-accordion__content",containerPadding:{top:0,right:0,bottom:0,left:0}},[["stackable/text",{text:(0,k._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",u.i18n)}]]]],scope:["block"]},{name:"shadow",description:(0,k.sprintf)((0,k._x)("%s Layout","Block layout name",u.i18n),(0,k.__)("Shadow",u.i18n)),attributes:{className:"is-style-shadow"},isActive:["className"],pickerTitle:(0,k.__)("Shadow",u.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 13h30v23H9V13zm2 27H9v-2a2 2 0 01-2-2V13a2 2 0 012-2h30c.748 0 1.744.824 1.744 2.02C42 13.02 43 13 43 13v27H11zm22.854-23.854a.5.5 0 00-.708.708l1 1a.5.5 0 00.708 0l1-1a.5.5 0 00-.708-.708l-.646.647-.646-.647zM12 16h15v2H12v-2zm24 5H12v2h24v-2zm-24 5h24v2H12v-2zm24 5H12v2h24v-2z"}))},isPremium:!u.isPro,scope:["block"]},{name:"colored",description:(0,k.sprintf)((0,k._x)("%s Layout","Block layout name",u.i18n),(0,k.__)("Colored",u.i18n)),attributes:{className:"is-style-colored"},isActive:["className"],pickerTitle:(0,k.__)("Colored",u.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 13H9v22h30V13zM9 11a2 2 0 00-2 2v22a2 2 0 002 2h30a2 2 0 002-2V13a2 2 0 00-2-2H9z"}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 13h30v22H9V13zm3 13v-3h24v3H12zm24 6v-3H12v3h24zm-3.805-15.78a.616.616 0 01.943 0l.862.97.862-.97a.616.616 0 01.943 0c.26.293.26.767 0 1.06l-1.334 1.5a.616.616 0 01-.942 0l-1.334-1.5a.818.818 0 010-1.06zM24 16H12v3h12v-3z"}))},isPremium:!u.isPro,scope:["block"]},{name:"plus",description:(0,k.sprintf)((0,k._x)("%s Layout","Block layout name",u.i18n),(0,k.__)("Plus",u.i18n)),attributes:{className:"is-style-plus"},isActive:["className"],pickerTitle:(0,k.__)("Plus",u.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.5 12h-16v2h16v-2zm3.5 8H9v2h30v-2zM9 25h30v2H9v-2zm30 5H9v2h30v-2zM13 10h-2v2H9v2h2v2h2v-2h2v-2h-2v-2z"}))},isPremium:!u.isPro,scope:["block"]}]);var C=o(78),y=o(3749),f=o(3284),B=o(8085);const S=v[0].innerBlocks,_=(0,n.memo)((()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("General",u.i18n),id:"general",initialOpen:!0},(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.__)("Open at the start",u.i18n),attribute:"startOpen"}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.__)("Close adjacent on open",u.i18n),attribute:"onlyOnePanelOpen",helpTooltip:{video:"accordion-adjacent-open",title:(0,k.__)("Close adjacent on open",u.i18n),description:(0,k.__)("Automatically closes adjacent accordion panels when clicked.",u.i18n)}}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.__)("Enable FAQ Schema",u.i18n),attribute:"enableFAQ"}))),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.BlockDiv.InspectorControls,{backgroundMediaAllowVideo:!1}),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-accordion"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.InspectorBottomTip,null))))),A=(0,y.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{var t,o,a,r;const{clientId:c,className:b}=e,[m,p]=(0,n.useState)(e.attributes.startOpen),{hasInnerBlocks:k}=(0,f.useSelect)((e=>{const{getBlockOrder:t}=e("core/block-editor");return{hasInnerBlocks:t(c).length>0}}),[c]),[g,h]=(0,n.useState)(!1),{getEditorDom:v}=(0,f.useSelect)("stackable/editor-dom"),y=(0,l.getAlignmentClasses)(e.attributes),B=(null===(t=window)||void 0===t||null===(o=t.location)||void 0===o?void 0:o.href)&&-1!==window.location.href.indexOf("customize.php"),A=(null===(a=window)||void 0===a||null===(r=a.location)||void 0===r?void 0:r.href)&&-1!==window.location.href.indexOf("widgets.php"),w=()=>{var e,t;return B?null===(e=document)||void 0===e?void 0:e.querySelector("#customize-controls"):A?null===(t=document)||void 0===t?void 0:t.querySelector(".edit-widgets-main-block-list.block-editor-block-list__layout"):v()};var E;((0,n.useEffect)((()=>{var e;if(!g)return;const t=null===(e=w())||void 0===e?void 0:e.querySelector(`[data-block="${c}"] [data-type="stackable/column"]`),o=e=>{e.target.closest('[data-type="stackable/icon"]')||p(!m)};return null==t||t.addEventListener("click",o),()=>{null==t||t.removeEventListener("click",o)}}),[c,m,p,g,v]),(0,n.useEffect)((()=>{g&&h(!1)}),[e.className]),g)||(null===(E=w())||void 0===E?void 0:E.querySelector(`[data-block="${c}"] [data-type="stackable/column"]`))&&h(!0);const T=d()([b,"stk-block-accordion","stk-inner-blocks",y,"stk-block-content"],{"stk--is-open":m}),x=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:u.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(_,null),x&&(0,n.createElement)("style",{key:"block-css"},x),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-accordion"}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:T,renderHtmlTag:!1,enableVariationPicker:!0},(0,n.createElement)(C.InnerBlocks,{template:S,templateLock:"insert"})),e.isHovered&&k&&(0,n.createElement)(l.MarginBottom,null))}));(0,g.addFilter)("stackable.block-component.icon.after","stackable/blockquote",(e=>{const t=(0,b.useBlockAttributesContext)((e=>e.icon2)),o=(0,b.useBlockSetAttributesContext)(),{clientId:a}=(0,C.useBlockEditContext)(),{parentTree:l,getBlock:r}=(0,f.useSelect)((e=>{const{getBlock:t,getBlockParents:o}=e("core/block-editor"),n=o(a).map((e=>({clientId:e,name:t(e).name})));return{getBlock:t,parentTree:n}}),[a]),{getActiveBlockVariation:s}=(0,f.useSelect)("core/blocks"),c=(0,B.findLast)(l,(e=>"stackable/accordion"===e.name)),d=r(null==c?void 0:c.clientId),m=(0,B.findLast)(l,(e=>"stackable/column"===e.name));if((0,B.findLast)(l,(e=>"stackable/icon-label"===e.name))&&(null==d?void 0:d.innerBlocks[0].clientId)===(null==m?void 0:m.clientId)&&d){const a=s(d.name,d.attributes),l="plus"===(null==a?void 0:a.name)?(0,g.applyFilters)("stackable.block-component.plus.icon-close"):void 0;return(0,n.createElement)(n.Fragment,null,e,(0,n.createElement)(i.IconControl,{label:(0,k.__)("Open Icon",u.i18n),value:t,defaultValue:l,onChange:e=>o({icon2:e}),help:(0,k.__)("The open icon will appear when the accordion is opened",u.i18n)}))}return e})),(0,g.addFilter)("stackable.block-default-styles.use-saved-style","stackable/icon-label",((e,t,o)=>!("stackable/icon-label"===t.name&&o.length>=2&&"stackable/accordion"===o[o.length-2])&&e)),(0,g.addFilter)("stackable.block-component.icon.default","stackable/accordion",(e=>{const{clientId:t}=(0,C.useBlockEditContext)(),{parentTree:o,getBlock:a}=(0,f.useSelect)((e=>{const{getBlock:o,getBlockParents:a}=e("core/block-editor"),n=a(t).map((e=>({clientId:e,name:o(e).name})));return{getBlock:o,parentTree:n}}),[t]),{getActiveBlockVariation:n}=(0,f.useSelect)("core/blocks"),l=(0,B.findLast)(o,(e=>"stackable/accordion"===e.name)),i=a(null==l?void 0:l.clientId),r=(0,B.findLast)(o,(e=>"stackable/column"===e.name));if((0,B.findLast)(o,(e=>"stackable/icon-label"===e.name))&&(null==i?void 0:i.innerBlocks[0].clientId)===(null==r?void 0:r.clientId)&&i){const e=n(i.name,i.attributes);return"plus"===(null==e?void 0:e.name)?(0,g.applyFilters)("stackable.block-component.plus.icon-open"):h}return e}));const w=e=>{const{attributes:t}=e,o=(0,l.getAlignmentClasses)(e.attributes),a=(0,l.getResponsiveClasses)(e.attributes),i=d()([e.className,"stk-block-accordion",a,"stk-inner-blocks",o,"stk-block-content"],{"stk--is-open":t.startOpen,"stk--single-open":t.onlyOnePanelOpen});return(0,n.createElement)(l.BlockDiv.Content,{className:i,attributes:t,open:t.startOpen||void 0,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,n.createElement)(C.InnerBlocks.Content,null))},E=(0,y.compose)((0,m.withVersion)(u.version))(w);var T=o(7545);const x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.version;const t=new T.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.Row.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),t.add({attributes:{startOpen:{type:"boolean",default:""},onlyOnePanelOpen:{type:"boolean",default:""},enableFAQ:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{htmlTag:"details"},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},I=x(u.version),z=JSON.parse('{"apiVersion":3,"name":"stackable/accordion","title":"Accordion","description":"A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Toggle","Faq"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/accordion-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon-label","stackable/heading","stackable/icon"],"stk-substitution-blocks":["stackable/text"]}'),M={attributes:{uniqueId:"8a219b3",hasBackground:!1,hasBorders:!1,htmlTag:"details",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},startOpen:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/column",attributes:{uniqueId:"77f0868",hasBackground:!1,hasBorders:!1,hasContainer:!0,htmlTag:"summary",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,templateLock:"insert",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",className:"stk--container-small stk-block-accordion__heading",containerBackgroundColor:"#FFFFFF"},innerBlocks:[{name:"stackable/icon-label",attributes:{uniqueId:"ffe2f68",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"352ae36",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!0,show:!0,showText:!0,text:(0,k.__)("Title for This Block",u.i18n),textTag:"h4",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/icon",attributes:{uniqueId:"9ad9c69",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},icon:'<svg data-prefix="fas" data-icon="chevron-down" class="svg-inline--fa fa-chevron-down fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,linkHasLink:!1,linkNewTab:!1,linkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]}]}]},{name:"stackable/column",attributes:{uniqueId:"2912fed",hasBackground:!1,hasBorders:!1,hasContainer:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,templateLock:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",className:"stk-block-accordion__content"},innerBlocks:[{name:"stackable/text",attributes:{uniqueId:"9610635",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,k.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",u.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]},H=[{attributes:x("3.12.11"),save:(0,m.withVersion)("3.12.11")(w),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:x("3.11.9"),save:(0,m.withVersion)("3.11.9")(w),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:x("3.7.9"),save:(0,m.withVersion)("3.7.9")(w),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var N=o(4296);const D={...z,icon:a.AccordionIcon,attributes:I,supports:{anchor:!0,stkColumnResize:!1,spacing:!0},example:M,deprecated:H,variations:v,edit:A,save:E,substitute:N.default}},4296:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/accordion",transform:(e,t)=>["core/details",{open:!1,summary:t[0][2][0][2][0][1].text},t[1][2]]},n=a},2:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>V});var a=o(2610),n=o(8003),l=o(3882),i=o(7462);o(7294);const r=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M19.8 9.3C10.5 11.8 4.6 17 2.1 24.8c2.3-3.6 5.6-5.4 9.9-5.4 3.3 0 6 1.1 8.3 3.3 2.2 2.2 3.4 5 3.4 8.3 0 3.2-1.1 5.8-3.3 8-2.2 2.2-5.1 3.2-8.7 3.2-3.7 0-6.5-1.2-8.6-3.5C1 36.3 0 33.1 0 29 0 18.3 6.5 11.2 19.6 7.9l.2 1.4zm26.4 0C36.9 11.9 31 17 28.5 24.8c2.2-3.6 5.5-5.4 9.8-5.4 3.2 0 6 1.1 8.3 3.2 2.3 2.2 3.4 4.9 3.4 8.3 0 3.1-1.1 5.8-3.3 7.9-2.2 2.2-5.1 3.3-8.6 3.3-3.7 0-6.6-1.1-8.6-3.4-2.1-2.3-3.1-5.5-3.1-9.7 0-10.7 6.6-17.8 19.7-21.1l.1 1.4z"}))};var s=o(910);const c=(0,l.applyFilters)("stackable.blockquote.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",s.i18n),(0,n.__)("Default",s.i18n)),isDefault:!0,attributes:{className:"is-style-default",hasContainer:!0,contentAlign:"left"},isActive:["className"],pickerTitle:(0,n.__)("Default",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 14H9v20h30V14zM9 12a2 2 0 00-2 2v20a2 2 0 002 2h30a2 2 0 002-2V14a2 2 0 00-2-2H9zm11.5 6.622H36v2H20.5v-2zm15.5 4H20.5v2H36v-2zm-15.5 4H36v2H20.5v-2z"}),(0,a.createElement)("path",{d:"M16.493 22c-.6 0-1.035-.21-1.304-.63a2.248 2.248 0 01-.294-.665 3.068 3.068 0 01-.11-.827c0-.624.159-1.187.477-1.69.331-.505.815-.9 1.452-1.188l.165.324a2.523 2.523 0 00-.937.665c-.257.3-.41.606-.46.918a1.673 1.673 0 00-.054.413c0 .12.018.234.055.342.27-.288.625-.432 1.066-.432.428 0 .777.126 1.047.378.27.24.404.575.404 1.007 0 .408-.14.744-.423 1.007-.281.252-.643.378-1.084.378zM12.709 22c-.6 0-1.035-.21-1.305-.63a2.248 2.248 0 01-.294-.665 3.068 3.068 0 01-.11-.827c0-.624.16-1.187.478-1.69.33-.505.814-.9 1.451-1.188l.165.324a2.523 2.523 0 00-.936.665c-.258.3-.41.606-.46.918a1.669 1.669 0 00-.055.413c0 .12.018.234.055.342.27-.288.625-.432 1.066-.432.429 0 .778.126 1.047.378.27.24.404.575.404 1.007 0 .408-.14.744-.422 1.007-.282.252-.643.378-1.084.378z"}))},innerBlocks:[["stackable/icon",{icon:(0,a.renderToString)((0,a.createElement)(r,null)),linkHasLink:!1}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",s.i18n)}]],scope:["block"]},{name:"simple",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",s.i18n),(0,n.__)("Simple",s.i18n)),attributes:{className:"is-style-simple",contentAlign:"left"},isActive:["className"],pickerTitle:(0,n.__)("Simple",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.341 30H11v-.002c-1.38-.036-2.387-.581-3.018-1.635-.298-.467-.536-1.044-.714-1.73A8.508 8.508 0 017 24.482c0-1.621.387-3.086 1.16-4.396.803-1.309 1.978-2.338 3.525-3.086l.402.842c-.863.374-1.622.95-2.276 1.73-.625.78-.996 1.574-1.115 2.385-.09.374-.134.732-.134 1.075 0 .312.044.608.134.889.654-.748 1.517-1.122 2.588-1.122 1.04 0 1.888.327 2.543.982.073.07.143.143.208.219h2.168a8.795 8.795 0 01.325-2H11v-2h6.405c.802-1.268 1.959-2.268 3.472-3l.401.842c-.862.374-1.621.95-2.275 1.73-.114.142-.22.285-.317.428H41v2H17.877a4.603 4.603 0 00-.124 1.032c0 .312.045.608.134.889.655-.748 1.517-1.122 2.588-1.122 1.041 0 1.889.327 2.543.982.074.07.143.143.208.219H41v2H23.985c.01.13.015.262.015.4 0 .591-.107 1.125-.32 1.6H41v2H20.341zm-4.02-4h-1.527c.01.13.014.262.014.4 0 .591-.106 1.125-.32 1.6h2.477a6.637 6.637 0 01-.506-1.367c-.054-.208-.1-.42-.137-.633z"}))},innerBlocks:[["stackable/icon",{icon:(0,a.renderToString)((0,a.createElement)(r,null)),opacity:.2,position:"absolute",positionNum:{top:-50,right:"",bottom:"",left:-50},iconSize:200,linkHasLink:!1}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",s.i18n)}]],scope:["block"]},{name:"highlighted",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",s.i18n),(0,n.__)("Highlighted",s.i18n)),attributes:{className:"is-style-highlighted"},isActive:["className"],pickerTitle:(0,n.__)("Highlighted",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40 19H15v10h12v-2h6v-2h6v-2h-4v-2h5v-2z"}),(0,a.createElement)("path",{d:"M11.924 22c-.429 0-.74-.168-.932-.504a1.908 1.908 0 01-.21-.532 2.731 2.731 0 01-.079-.662c0-.499.114-.95.342-1.352.236-.403.581-.72 1.036-.95l.119.259a1.821 1.821 0 00-.67.532c-.183.24-.293.485-.328.734-.026.115-.04.226-.04.331 0 .096.014.187.04.273a.943.943 0 01.761-.345c.307 0 .556.1.748.302.193.192.289.46.289.806 0 .326-.1.595-.302.806-.201.201-.46.302-.774.302zM9.22 22c-.428 0-.739-.168-.931-.504a1.911 1.911 0 01-.21-.532A2.732 2.732 0 018 20.302c0-.499.114-.95.341-1.352.236-.403.582-.72 1.037-.95l.118.259a1.82 1.82 0 00-.67.532c-.183.24-.292.485-.327.734-.027.115-.04.226-.04.331 0 .096.013.187.04.273a.943.943 0 01.76-.345c.307 0 .556.1.749.302.192.192.289.46.289.806 0 .326-.101.595-.302.806-.201.201-.46.302-.775.302z"}))},isPremium:!s.isPro,scope:["block"]},{name:"huge",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",s.i18n),(0,n.__)("Huge",s.i18n)),attributes:{className:"is-style-huge"},isActive:["className"],pickerTitle:(0,n.__)("Huge",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 17H14v3h25v-3zm0 6H14v3h25v-3zm-25 6h25v3H14v-3z"}),(0,a.createElement)("path",{d:"M10.709 20c-.515 0-.887-.168-1.118-.504a1.741 1.741 0 01-.252-.532 2.301 2.301 0 01-.095-.662c0-.499.137-.95.41-1.352.283-.403.698-.72 1.244-.95l.141.259a2.168 2.168 0 00-.803.532c-.22.24-.351.485-.393.734a1.253 1.253 0 00-.048.331c0 .096.016.187.048.273.23-.23.535-.345.913-.345.367 0 .667.1.897.302.231.192.347.46.347.806 0 .326-.12.595-.362.806-.242.201-.551.302-.93.302zM7.465 20c-.515 0-.888-.168-1.119-.504a1.741 1.741 0 01-.252-.532A2.301 2.301 0 016 18.302c0-.499.136-.95.41-1.352.283-.403.698-.72 1.244-.95l.141.259a2.168 2.168 0 00-.803.532c-.22.24-.352.485-.394.734a1.253 1.253 0 00-.047.331c0 .096.016.187.047.273.231-.23.536-.345.914-.345.367 0 .666.1.897.302.231.192.347.46.347.806 0 .326-.12.595-.362.806-.242.201-.551.302-.93.302z"}))},isPremium:!s.isPro,scope:["block"]},{name:"centered-quote",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",s.i18n),(0,n.__)("Centered Quote",s.i18n)),attributes:{className:"is-style-centered-quote"},isActive:["className"],pickerTitle:(0,n.__)("Centered Quote",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.37 29.237C26.102 30.413 27.282 31 28.91 31c1.198 0 2.178-.352 2.943-1.058a3.71 3.71 0 00.713-.942H39v-2h-6.001c-.017-.783-.191-1.45-.524-2H39v-2H26.047c.025-.215.065-.436.121-.662.069-.45.213-.896.432-1.338H39v-2H28.189a6.641 6.641 0 011.769-1.093L29.509 17c-1.146.534-2.109 1.2-2.89 2h-8.703a6.642 6.642 0 011.769-1.093L19.236 17c-1.145.534-2.109 1.2-2.89 2H9v2h5.922a8.614 8.614 0 00-.705 2H9v2h5v.058c0 .67.07 1.318.207 1.942H9v2h5.95c.048.082.097.161.147.237C15.83 30.413 17.01 31 18.637 31c1.198 0 2.178-.352 2.943-1.058.294-.284.532-.598.713-.942h2.93c.048.082.097.161.147.237zM24.48 27a8.96 8.96 0 01-.207-1.942V25h-2.07c.332.55.506 1.217.523 2h1.754zm-8.706-4h8.716a8.618 8.618 0 01.705-2h-8.868a4.54 4.54 0 00-.432 1.338 5.209 5.209 0 00-.12.662z"}))},isPremium:!s.isPro,scope:["block"]}]),d=JSON.parse('{"apiVersion":3,"name":"stackable/blockquote","title":"Blockquote","description":"Display a quote in style","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/blockquote-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon"],"stk-substitution-blocks":["stackable/text"]}');var u=o(9384),b=o(7200);const m=new b.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});u.Alignment.addStyles(m),u.BlockDiv.addStyles(m),u.Advanced.addStyles(m),u.Transform.addStyles(m),u.EffectsAnimations.addStyles(m),u.ContainerDiv.addStyles(m,{sizeSelector:".stk-block-blockquote__content",sizeVerticalAlignRule:"alignItems",sizeHorizontalAlignRule:"margin"}),u.MarginBottom.addStyles(m);const p=m,k=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M22.3 30.5c0 6-4.8 10.8-10.8 10.8-2.3 0-4.5-.8-6.3-2-.9-.6-1.8-1.4-2.5-2.4-1.8-2.4-2.7-5.4-2.7-9 0-4.5 1.3-8.5 4-11.9 2.7-3.4 6.4-5.8 11.1-7.3v2.8c-2.7 2.2-4.4 5-4.9 8.3.4-.1.9-.1 1.3-.1 6-.1 10.8 4.8 10.8 10.8zm16.9-10.9c-.5 0-.9 0-1.3.1.5-3.3 2.2-6.1 4.9-8.3V8.7c-4.7 1.4-8.4 3.9-11.1 7.3-2.7 3.4-4 7.4-4 11.9 0 3.6.9 6.6 2.7 9 .8 1 1.6 1.8 2.5 2.4 1.8 1.3 3.9 2 6.3 2 6 0 10.8-4.8 10.8-10.8 0-6-4.8-10.9-10.8-10.9z"}))},g=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M9.4 14.6c-2.4 2.9-3.6 5.9-3.6 8.9 0 1.3.2 2.4.5 3.3 1.8-1.4 3.8-2.1 6-2.1 2.9 0 5.3.9 7.3 2.7 2 1.8 3 4.2 3 7.3 0 1.9-.5 3.6-1.4 5.1-.9 1.5-2.2 2.7-3.8 3.6s-3.3 1.3-5.1 1.3c-4.1 0-7.3-1.6-9.5-4.9C.9 36.9 0 33.5 0 29.4c0-5.2 1.4-9.9 4.1-14 2.8-4.1 6.9-7.5 12.5-10l1.5 2.8c-3.3 1.3-6.2 3.5-8.7 6.4zm27.5 0c-2.4 2.9-3.6 5.9-3.6 8.9 0 1.3.2 2.4.5 3.3 1.8-1.4 3.8-2.1 6-2.1 2.9 0 5.4.9 7.4 2.7 2 1.8 3 4.2 3 7.3 0 2.8-1 5.2-3 7.1-2 1.9-4.4 2.9-7.3 2.9-4.1 0-7.3-1.6-9.5-4.9-1.8-2.7-2.8-6.2-2.8-10.3 0-5.2 1.4-9.9 4.1-14 2.8-4.1 6.9-7.5 12.5-10l1.5 2.8c-3.5 1.2-6.4 3.4-8.8 6.3z"}))},h=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M22.6 12.8c-1.9.5-3.7 1.2-5.3 2.1-1.6.9-3.1 1.9-4.3 3-1.2 1.1-2.2 2.4-2.9 3.7-.7 1.3-1.1 2.7-1.1 4 0 1.2.1 1.8.3 1.8.8 0 1.5-.3 2.4-.9.8-.6 1.9-.9 3.3-.9 2.1 0 3.9.8 5.4 2.4 1.5 1.6 2.3 3.7 2.3 6.2s-1 4.6-2.9 6.4c-1.9 1.8-4.3 2.6-7.3 2.6-1.8 0-3.4-.4-4.9-1.1-1.5-.8-2.8-1.8-3.9-3.1s-2-2.8-2.6-4.6C.3 32.5 0 30.6 0 28.6c0-3 .6-5.8 1.8-8.3 1.2-2.5 2.8-4.8 4.9-6.7 2-1.9 4.4-3.5 7.2-4.6 2.8-1.2 5.6-1.8 8.6-2v5.8zm27.4 0c-1.9.5-3.7 1.2-5.4 2.1-1.7.9-3.1 1.9-4.3 3-1.2 1.1-2.2 2.4-2.9 3.7-.7 1.3-1.1 2.7-1.1 4 0 1.2.1 1.8.4 1.8.8 0 1.5-.3 2.3-.9.8-.6 1.9-.9 3.3-.9 2 0 3.8.8 5.3 2.4 1.5 1.6 2.3 3.7 2.3 6.2s-1 4.6-2.9 6.4c-2 1.8-4.4 2.6-7.3 2.6-1.7 0-3.3-.4-4.8-1.1-1.5-.8-2.8-1.8-3.9-3.1s-2-2.8-2.7-4.6c-.7-1.8-1-3.7-1-5.7 0-3 .6-5.8 1.8-8.3 1.2-2.5 2.8-4.8 4.9-6.7 2-1.9 4.4-3.5 7.2-4.6 2.8-1.2 5.7-1.8 8.8-2v5.7z"}))},v=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M12.5 9.2H19c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v3.4c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7h-5.8c-.7 0-1.3.2-1.7.6-.4.4-.6 1-.6 1.7v1.3H20c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v12.5c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7H3c-1.1 0-1.8-.2-2.3-.7-.5-.4-.7-1.2-.7-2.2V21.9c0-4.3 1.1-7.4 3.4-9.6 2.3-2 5.3-3.1 9.1-3.1zm26.9 0h6.5c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v3.4c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7h-5.8c-.7 0-1.3.2-1.7.6-.4.4-.6 1-.6 1.7v1.3H47c1.1 0 1.8.2 2.3.7.5.5.7 1.2.7 2.3v12.5c0 1.1-.2 1.8-.7 2.3-.5.5-1.2.7-2.3.7H30c-1.1 0-1.8-.2-2.3-.7-.5-.5-.7-1.2-.7-2.3V21.9c0-4.3 1.1-7.4 3.4-9.6 2.2-2 5.2-3.1 9-3.1z"}))},C=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M20.8 44.5H0V23.7L9.3 5.5h7.3L12 23.7h8.8v20.8zm29.2 0H29.2V23.7l9.3-18.1h7.3l-4.6 18.1H50v20.8z"}))},y=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M10.3 24.8V26H20v16.9H0V26.2C0 13.4 6.6 7.1 19.9 7.1v7.1c-3.4.5-5.9 1.6-7.4 3.3-1.5 1.7-2.2 4.1-2.2 7.3zm30 0V26H50v16.9H30.1V26.2c0-12.7 6.6-19.1 19.9-19.1v7.1c-6.4.7-9.7 4.3-9.7 10.6z"}))},f=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M21.1 6.8v36.4H0V22.1L21.1 6.8zm28.9 0v36.4H28.9V22.1L50 6.8z"}))},B=function(e){return(0,a.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"},e),(0,a.createElement)("path",{d:"M14.7 45.9H0V31.3C0 17.6 8.6 6.6 21.6 4.1v4.7c-10 2.6-16.7 10.9-16.7 22.6h9.8v14.5zm28.1 0H28.4V31.3C28.4 17.6 37 6.6 50 4.1v4.7c-9.8 2.6-16.7 10.9-16.7 22.6h9.5v14.5z"}))},S={"round-thin":{icon:(0,a.createElement)(r,null),title:(0,n.__)("Round Thin",s.i18n),value:(0,a.renderToString)((0,a.createElement)(r,null))},round:{icon:(0,a.createElement)(g,null),title:(0,n.__)("Round",s.i18n),value:(0,a.renderToString)((0,a.createElement)(g,null))},"round-thick":{icon:(0,a.createElement)(h,null),title:(0,n.__)("Round Thick",s.i18n),value:(0,a.renderToString)((0,a.createElement)(h,null))},"round-fat":{icon:(0,a.createElement)(k,null),title:(0,n.__)("Round Fat",s.i18n),value:(0,a.renderToString)((0,a.createElement)(k,null))},"square-thin":{icon:(0,a.createElement)(B,null),title:(0,n.__)("Square Thin",s.i18n),value:(0,a.renderToString)((0,a.createElement)(B,null))},square:{icon:(0,a.createElement)(y,null),title:(0,n.__)("Square",s.i18n),value:(0,a.renderToString)((0,a.createElement)(y,null))},"square-simple":{icon:(0,a.createElement)(f,null),title:(0,n.__)("Square Simple",s.i18n),value:(0,a.renderToString)((0,a.createElement)(f,null))},"square-modern":{icon:(0,a.createElement)(C,null),title:(0,n.__)("Square Modern",s.i18n),value:(0,a.renderToString)((0,a.createElement)(C,null))},"square-fat":{icon:(0,a.createElement)(v,null),title:(0,n.__)("Square Fat",s.i18n),value:(0,a.renderToString)((0,a.createElement)(v,null))}};var _=o(4184),A=o.n(_),w=o(9783),E=o(78),T=o(3749),x=o(3284);(0,a.renderToString)((0,a.createElement)(r,null));const I=c[0].innerBlocks,z=(0,a.memo)((()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(b.InspectorTabs,null),(0,a.createElement)(u.Alignment.InspectorControls,null),(0,a.createElement)(u.BlockDiv.InspectorControls,null),(0,a.createElement)(u.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content",hasContentVerticalAlign:!0}),(0,a.createElement)(u.Advanced.InspectorControls,null),(0,a.createElement)(u.Transform.InspectorControls,null),(0,a.createElement)(u.EffectsAnimations.InspectorControls,null),(0,a.createElement)(u.CustomAttributes.InspectorControls,null),(0,a.createElement)(u.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-blockquote"}),(0,a.createElement)(u.Responsive.InspectorControls,null),(0,a.createElement)(u.ConditionalDisplay.InspectorControls,null),(0,a.createElement)(b.InspectorStyleControls,null,(0,a.createElement)(b.InspectorBottomTip,null))))),M=(0,T.compose)(w.withBlockWrapperIsHovered,w.withQueryLoopContext,w.withBlockAttributeContext)((e=>{const{className:t}=e,o=(0,u.getAlignmentClasses)(e.attributes),{hasInnerBlocks:n}=(0,x.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor");return{hasInnerBlocks:o(e.clientId).length>0}}),[e.clientId]),l=A()([t,"stk-block-blockquote"]),i=A()(["stk-block-content","stk-inner-blocks",o,"stk-block-blockquote__content"]),r=(0,b.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:s.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(z,null),(0,a.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:l,enableVariationPicker:!0},r&&(0,a.createElement)("style",{key:"block-css"},r),(0,a.createElement)(u.CustomCSS,{mainBlockClass:"stk-block-blockquote"}),(0,a.createElement)(u.ContainerDiv,{className:i},(0,a.createElement)(E.InnerBlocks,{template:I,templateLock:"all"}))),e.isHovered&&n&&(0,a.createElement)(u.MarginBottom,null))}));(0,l.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/blockquote",((e,t)=>"stackable/blockquote"!==(null==t?void 0:t.name)&&e)),(0,l.addFilter)("stackable.block-component.icon.after","stackable/blockquote",(e=>{const{clientId:t}=(0,E.useBlockEditContext)(),{parentBlock:o}=(0,x.useSelect)((e=>{const{getBlockRootClientId:o,getBlock:a}=e("core/block-editor");return{parentBlock:a(o(t))}}),[t]);return"stackable/blockquote"===(null==o?void 0:o.name)?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(b.AdvancedToolbarControl,{label:(0,n.__)("Quotation Mark Icons",s.i18n),multiline:!0,controls:Object.values(S),attribute:"icon",default:S["round-thin"].value})):e})),(0,l.addFilter)("stackable.block-component.icon.label","stackable/blockquote",(e=>{const{clientId:t}=(0,E.useBlockEditContext)(),{parentBlock:o}=(0,x.useSelect)((e=>{const{getBlockRootClientId:o,getBlock:a}=e("core/block-editor");return{parentBlock:a(o(t))}}),[t]);return"stackable/blockquote"===(null==o?void 0:o.name)?(0,n.__)("Pick another icon",s.i18n):e})),(0,l.addFilter)("stackable.block-default-styles.use-saved-style","stackable/blockquote",((e,t,o)=>!("stackable/icon"===t.name&&o.length>=1&&"stackable/blockquote"===o[o.length-1])&&e));const H=e=>{const{attributes:t,className:o}=e,n=(0,u.getAlignmentClasses)(t),l=(0,u.getResponsiveClasses)(t),i=A()([o,"stk-block-blockquote",l]),r=A()([n,"stk-block-blockquote__content"]),s=A()(["stk-block-content","stk-inner-blocks"]);return(0,a.createElement)(u.BlockDiv.Content,{className:i,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,a.createElement)("style",null,t.generatedCss),(0,a.createElement)(u.CustomCSS.Content,{attributes:t}),(0,a.createElement)(u.ContainerDiv.Content,{className:r,attributes:t},(0,a.createElement)("div",{className:s},(0,a.createElement)(E.InnerBlocks.Content,null))))},N=(0,T.compose)((0,w.withVersion)(s.version))(H);var D=o(7545);const O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.version;const t=new D.AttributeObject;return u.BlockDiv.addAttributes(t),u.Style.addAttributes(t),u.MarginBottom.addAttributes(t),u.ContainerDiv.addAttributes(t),u.Alignment.addAttributes(t),u.Advanced.addAttributes(t),u.Transform.addAttributes(t),u.EffectsAnimations.addAttributes(t),u.CustomAttributes.addAttributes(t),u.ConditionalDisplay.addAttributes(t),u.CustomCSS.addAttributes(t),u.Responsive.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{htmlTag:"blockquote"},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},L=O(s.version),R={attributes:{uniqueId:"7da7c6b",hasBackground:!1,hasBorders:!1,hasContainer:!0,htmlTag:"blockquote",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],displayCondition:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/icon",attributes:{uniqueId:"d5fad12",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},icon:'<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 50 50"><path d="M19.8 9.3C10.5 11.8 4.6 17 2.1 24.8c2.3-3.6 5.6-5.4 9.9-5.4 3.3 0 6 1.1 8.3 3.3 2.2 2.2 3.4 5 3.4 8.3 0 3.2-1.1 5.8-3.3 8-2.2 2.2-5.1 3.2-8.7 3.2-3.7 0-6.5-1.2-8.6-3.5C1 36.3 0 33.1 0 29 0 18.3 6.5 11.2 19.6 7.9l.2 1.4zm26.4 0C36.9 11.9 31 17 28.5 24.8c2.2-3.6 5.5-5.4 9.8-5.4 3.2 0 6 1.1 8.3 3.2 2.3 2.2 3.4 4.9 3.4 8.3 0 3.1-1.1 5.8-3.3 7.9-2.2 2.2-5.1 3.3-8.6 3.3-3.7 0-6.6-1.1-8.6-3.4-2.1-2.3-3.1-5.5-3.1-9.7 0-10.7 6.6-17.8 19.7-21.1l.1 1.4z"></path></svg>',showBackgroundShape:!1,linkHasLink:!1,linkNewTab:!1,linkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"9f7bc33",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},fontStyle:"italic",fontWeight:"300",hasP:!1,show:!0,showText:!0,text:(0,n.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",s.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},U=[{attributes:O("3.12.11"),save:(0,w.withVersion)("3.12.11")(H),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:e=>{let t={...e,version:2};return t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:O("3.11.9"),save:(0,w.withVersion)("3.11.9")(H),isEligible:e=>{const t=u.deprecateContainerBackgroundColorOpacity.isEligible(e),o=u.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:e=>{let t={...e,version:2};return t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:O("3.7.9"),save:(0,w.withVersion)("3.7.9")(H),isEligible:e=>e.version<2||void 0===e.version,migrate:e=>{let t={...e,version:2};const o=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&o&&(t={...t,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:O("3.7.9"),save:(0,w.withVersion)("3.7.9")(H)}];var P=o(6639);const V={...d,icon:o(9467).BlockquoteIcon,attributes:L,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:R,deprecated:U,variations:c,edit:M,save:N,substitute:P.default}},6639:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/blockquote",transform:(e,t)=>["core/pullquote",{value:t[1][1].text,align:e.contentAlign}]},n=a},2423:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>r});var a=o(3318),n=o(4267),l=o(9783),i=o(9384);const r=[{attributes:(0,n.Y)("3.12.11"),save:(0,l.withVersion)("3.12.11")(a.v),isEligible:e=>{const t=i.deprecateBlockShadowColor.isEligible(e),o=i.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:(0,n.Y)("3.11.9"),save:(0,l.withVersion)("3.11.9")(a.v),isEligible:e=>{const t=i.deprecateContainerBackgroundColorOpacity.isEligible(e),o=i.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t}},{attributes:(0,n.Y)("3.7.9"),save:(0,l.withVersion)("3.7.9")(a.v),migrate:e=>{let t=i.deprecateContainerBackgroundColorOpacity.migrate(e);return t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),i.deprecateBlockBackgroundColorOpacity.migrate(t)}},{attributes:(0,n.Y)("3.4.2"),save:(0,l.withVersion)("3.4.2")(a.v),migrate:e=>{const{collapseOn:t,contentAlign:o}=e;return{...e,buttonAlign:"desktop"===t?"vertical":"",buttonAlignTablet:"tablet"===t?"vertical":"",buttonAlignMobile:"mobile"===t?"vertical":"",contentAlign:"desktop"===t?"center":o}}}]},4221:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>H});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.addBlockStyles("flexWrap",[{renderIn:"save",selector:".stk-button-group",styleRule:"flexWrap",attrName:"flexWrap",key:"flexWrap-save",responsive:"all"},{renderIn:"edit",selector:".stk-button-group .block-editor-block-list__layout",styleRule:"flexWrap",attrName:"flexWrap",key:"flexWrap",responsive:"all",valuePreCallback:(e,t,o)=>"mobile"===o?"wrap":e||"nowrap"}]),r.addBlockStyles("buttonAlign",[{renderIn:"save",selector:".stk-button-group",styleRule:"flexDirection",attrName:"buttonAlign",key:"buttonAlign-save-group",responsive:"all",valuePreCallback:e=>"vertical"===e?"column":"horizontal"===e?"row":e},{renderIn:"edit",selector:".stk-button-group .block-editor-block-list__layout",styleRule:"flexDirection",attrName:"buttonAlign",key:"buttonAlign-list-layout",responsive:"all",valuePreCallback:e=>"vertical"===e?"column":"horizontal"===e?"row":e},{renderIn:"save",selector:".stk-block",styleRule:"flexBasis",attrName:"buttonAlign",key:"buttonAlign-save-block",responsive:"all",valuePreCallback:e=>"vertical"===e?"auto":"horizontal"===e?0:void 0},{renderIn:"save",selector:".stk-button-group",styleRule:"alignItems",attrName:"buttonAlign",key:"buttonAlign-save-button-group",responsive:"all",valuePreCallback:(e,t,o)=>{const a=t("contentAlign",o,"normal",!0);return"vertical"===e?t("buttonFullWidth")?"stretch":"center"===a?"center":"right"===a?"flex-end":"flex-start":"horizontal"===e?"center":e},dependencies:["contentAlign","buttonFullWidth"]},{renderIn:"edit",selector:".stk-button-group .block-editor-block-list__layout",styleRule:"alignItems",attrName:"buttonAlign",key:"buttonAlign-group-list-layout",responsive:"all",valuePreCallback:(e,t,o)=>{const a=t("contentAlign",o,"normal",!0);return"vertical"===e?t("buttonFullWidth")?"stretch":"center"===a?"center":"right"===a?"flex-end":"flex-start":"horizontal"===e?"center":e},dependencies:["contentAlign","buttonFullWidth"]}]),r.addBlockStyles("buttonFullWidth",[{renderIn:"save",selector:".stk-block-button, .stk-block-icon-button",styleRule:"flex",attrName:"buttonFullWidth",key:"buttonFullWidth-save",valueCallback:(e,t)=>{let o="0%";return t("flexWrap")&&(o="auto"),e?"1 0 "+o:void 0},dependencies:["flexWrap"]},{renderIn:"edit",selector:'.stk-block-button, .stk-block-icon-button, [data-type^="stackable/"]',styleRule:"flex",attrName:"buttonFullWidth",key:"buttonFullWidth",valueCallback:(e,t)=>{let o="0%";return t("flexWrap")&&(o="auto"),e?"1 0 "+o:void 0},dependencies:["flexWrap"]}]),r.addBlockStyles("flexWrap",[{renderIn:"save",selector:".stk-button-group",styleRule:"--stk-button-group-flex-wrap",attrName:"flexWrap",key:"flexWrap-save-button-group",responsive:"all",valueCallback:e=>e?"auto":void 0},{renderIn:"save",selector:".stk-button-group .stk-block-button",styleRule:"width",attrName:"flexWrap",key:"flexWrap-save-button-group-unset-width",responsive:"all",valueCallback:e=>e?"unset":void 0}]),l.Alignment.addStyles(r),l.BlockDiv.addStyles(r,{verticalAlignSelectorEdit:".stk-button-group > .block-editor-inner-blocks > .block-editor-block-list__layout",verticalAlignSelectorSave:".stk-button-group"}),l.MarginBottom.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r),(0,l.addFlexGapStyles)(r,{editSelector:".block-editor-block-list__layout",saveSelector:".stk-inner-blocks"});const s=r;var c=o(910),d=o(4184),u=o.n(d),b=o(8333),m=o(9783),p=o(3749),k=o(78),g=o(8003),h=o(3284);const v=["stackable/button","stackable/icon-button"],C=[["stackable/button"]],y=i.advancedToolbarControlControls["flex-horizontal"].map((e=>({...e,value:"flex-start"===e.value?"left":"flex-end"===e.value?"right":e.value}))),f=y.map((e=>({align:e.value,icon:e.icon,title:e.title}))),B=[{title:(0,g.__)("Horizontal",c.i18n),value:"horizontal"},{title:(0,g.__)("Vertical",c.i18n),value:"vertical"}],S=[{title:(0,g.__)("Horizontal",c.i18n),value:"horizontal"},{title:(0,g.__)("Vertical",c.i18n),value:"vertical"}],_=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(k.BlockControls,null,(0,n.createElement)(k.AlignmentToolbar,{value:e.contentAlign,onChange:t=>e.setAttributes({contentAlign:t}),alignmentControls:f})),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(i.AlignButtonsControl,{label:(0,g.sprintf)((0,g.__)("%s Alignment",c.i18n),(0,g.__)("Content",c.i18n)),attribute:"contentAlign",responsive:"all",controls:e.contentAlignControls}),(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,g.sprintf)((0,g.__)("%s Alignment",c.i18n),(0,g.__)("Button",c.i18n)),controls:"Desktop"===e.deviceType?B:S,attribute:"buttonAlign",responsive:"all"}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,g.__)("Full Width Buttons",c.i18n),attribute:"buttonFullWidth",defaultValue:!1}),(0,n.createElement)(l.FlexGapControls,{placeholderTemplate:"button"}),(0,n.createElement)(i.AdvancedSelectControl,{label:(0,g.__)("Flex Wrap",c.i18n),attribute:"flexWrap",options:[{label:(0,g.__)("No Wrap",c.i18n),value:""},{label:(0,g.__)("Wrap",c.i18n),value:"wrap"},{label:(0,g.__)("Wrap Reverse",c.i18n),value:"wrap-reverse"}],responsive:"all"})),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-button-group"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),A=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{className:t,attributes:o,setAttributes:a}=e,{collapseOn:r=""}=o,d=(0,b.useDeviceType)(),m=(0,l.getRowClasses)(o),p=(0,l.getAlignmentClasses)(o),{hasInnerBlocks:g}=(0,h.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor");return{hasInnerBlocks:o(e.clientId).length>0}}),[e.clientId]),f=u()([t,"stk-block-button-group",m]),B=u()(["stk-inner-blocks",p,"stk-block-content","stk-button-group",{[`stk--collapse-on-${r}`]:r}]);let S=null;"horizontal"===o.buttonAlign&&(S=y),"Tablet"!==d&&"Mobile"!==d||("horizontal"===o.buttonAlignTablet?S=y:"vertical"===o.buttonAlignTablet&&(S=null)),"Mobile"===d&&("horizontal"===o.buttonAlignMobile?S=y:"vertical"===o.buttonAlignMobile&&(S=null));const A=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(_,{contentAlign:o.contentAlign,setAttributes:a,contentAlignControls:S,deviceType:d}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:f},A&&(0,n.createElement)("style",{key:"block-css"},A),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-button-group"}),!g&&(0,n.createElement)(i.GroupPlaceholder,{blockName:"stackable/button"}),(0,n.createElement)("div",{className:B},(0,n.createElement)(k.InnerBlocks,{orientation:"horizontal",allowedBlocks:v,template:C,templateInsertUpdatesSelection:!0,renderAppender:!!g&&void 0}))),e.isHovered&&g&&(0,n.createElement)(l.MarginBottom,null))}));var w=o(3318),E=o(4267);const T=JSON.parse('{"apiVersion":3,"name":"stackable/button-group","title":"Button Group","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Link"],"stk-variants":[{"name":"icon-button","title":"Icon Button","description":"Add a customizable button.","category":"stackable","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},{"name":"button","title":"Button","description":"Add a customizable button.","category":"stackable","stk-type":"essential","stk-demo":"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},{"name":"social-buttons","title":"Social Buttons","description":"Add social buttons.","category":"stackable","stk-type":"special","stk-demo":"https://wpstackable.com/social-buttons-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/button-group|icon-button"]}],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}'),x={attributes:{uniqueId:"6b587de",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"824bdf0",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,g.__)("Button Text",c.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button",attributes:{uniqueId:"99649b5",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"transparent",buttonBorderType:"solid",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,g.__)("Button Text",c.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"is-style-ghost"},innerBlocks:[]},{name:"stackable/button",attributes:{uniqueId:"baa8a30",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"transparent",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,g.__)("Button Text",c.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"is-style-plain"},innerBlocks:[]}]},I=[{name:"button",title:(0,g.__)("Button",c.i18n),"stk-type":"essential","stk-demo":"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink",isDefault:!0,innerBlocks:[],example:x},{name:"icon-button",title:(0,g.__)("Icon Button",c.i18n),icon:a.IconButtonsIcon,"stk-type":"essential",innerBlocks:[["stackable/icon-button",{}]],example:{attributes:{uniqueId:"8dde419",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/icon-button",attributes:{uniqueId:"36bfca0",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fa" data-icon="star" class="svg-inline--fa fa-star fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"f6ceb36",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"transparent",buttonBorderType:"solid",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fa" data-icon="star" class="svg-inline--fa fa-star fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",className:"is-style-ghost"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"782fec3",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fa" data-icon="star" class="svg-inline--fa fa-star fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",className:"is-style-pill"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"1c03190",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"transparent",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fa" data-icon="star" class="svg-inline--fa fa-star fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",className:"is-style-plain"},innerBlocks:[]}]}},{name:"social-buttons",title:(0,g.__)("Social Buttons",c.i18n),description:(0,g.__)("Add social buttons.",c.i18n),icon:a.SocialButtonsIcon,"stk-type":"special",scope:["inserter"],example:{name:"stackable/button-group",attributes:{uniqueId:"e3d2560",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/icon-button",attributes:{uniqueId:"2c536c7",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#3b5998",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="facebook-square" class="svg-inline--fa fa-facebook-square fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"8e6e6c3",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#00acee",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"408d1e9",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#c13584",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"bde83ec",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#c4302b",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"f1cc6a3",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#0e76a8",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]}]},innerBlocks:[["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="facebook-square" class="svg-inline--fa fa-facebook-square fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#3b5998"}],["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#00acee"}],["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#c13584"}],["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#c4302b"}],["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#0e76a8"}]]}];var z=o(2423),M=o(571);const H={...T,icon:a.ButtonGroupIcon,attributes:E.Z,supports:{anchor:!0,align:["center","wide","full"],stkLayoutReset:!1,stkSaveBlockStyle:!1,stkDefaultTab:"layout",spacing:!0},variations:I,deprecated:z.default,example:x,edit:A,save:w.Z,substitute:M.default}},3318:(e,t,o)=>{"use strict";o.d(t,{v:()=>d,Z:()=>u});var a=o(2610),n=o(9783),l=o(910),i=o(1991),r=o.n(i),s=o(78),c=o(9384);const d=e=>{const{attributes:t}=e,{collapseOn:o=""}=t,n=(0,c.getRowClasses)(e.attributes),l=(0,c.getAlignmentClasses)(e.attributes),i=(0,c.getResponsiveClasses)(e.attributes),d=r()([e.className,"stk-block-button-group",i]),u=r()([n,"stk-inner-blocks",l,"stk-block-content","stk-button-group",{[`stk--collapse-on-${o}`]:o}]);return(0,a.createElement)(c.BlockDiv.Content,{className:d,attributes:t,version:e.version},t.generatedCss&&(0,a.createElement)("style",null,t.generatedCss),(0,a.createElement)(c.CustomCSS.Content,{attributes:t}),(0,a.createElement)("div",{className:u},(0,a.createElement)(s.InnerBlocks.Content,null)))},u=(0,n.withVersion)(l.version)(d)},4267:(e,t,o)=>{"use strict";o.d(t,{Y:()=>r,Z:()=>s});const a=e=>{e.add({attributes:{collapseOn:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.4.3"})};var n=o(9384),l=o(7545),i=o(910);const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.version;const t=new l.AttributeObject;return n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.MarginBottom.addAttributes(t),n.Row.addAttributes(t),n.Alignment.addAttributes(t),n.Advanced.addAttributes(t),n.Transform.addAttributes(t),n.EffectsAnimations.addAttributes(t),n.CustomAttributes.addAttributes(t),n.CustomCSS.addAttributes(t),n.Responsive.addAttributes(t),n.ConditionalDisplay.addAttributes(t),t.add({attributes:{flexWrap:{type:"string",stkResponsive:!0,default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.add({attributes:{buttonAlign:{type:"string",stkResponsive:!0,default:""},buttonFullWidth:{type:"boolean",default:""}},versionAdded:"3.4.3",versionDeprecated:""}),(0,n.addFlexGapAttributes)(t),a(t),t.getMerged(e)},s=r(i.version)},571:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>n,default:()=>l});var a=o(7545);const n={from:"stackable/button-group",variants:["stackable/button-group|icon-button","stackable/button-group|button"],transform:(e,t,o)=>"stackable/button-group|icon-button"in o&&o["stackable/button-group|icon-button"]===a.BLOCK_STATE.DISABLED&&t.length&&"stackable/icon-button"===t[0][0]?["core/social-links",{align:e.contentAlign},[["core/social-link",{service:"facebook"}],["core/social-link",{service:"twitter"}]]]:"stackable/button-group|button"in o&&o["stackable/button-group|button"]===a.BLOCK_STATE.DISABLED?["core/buttons",{},t]:["stackable/button-group",e,t]},l=n},1545:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(7462),n=o(2610),l=o(4184),i=o.n(l),r=o(910),s=o(7200),c=o(9384),d=o(8333),u=o(9783),b=o(8003),m=o(3749),p=o(78);const k=new s.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});k.addBlockStyles("buttonFullWidth",[{renderIn:"edit",selectorCallback:(e,t,o)=>`.editor-styles-wrapper [data-block="${o}"]`,styleRule:"width",attrName:"buttonFullWidth",key:"buttonFullWidth",valueCallback:e=>e?"100%":void 0}]),c.BlockDiv.addStyles(k),c.Advanced.addStyles(k),c.Transform.addStyles(k),c.Button.addStyles(k,{selector:".stk-button"}),c.Typography.addStyles(k,{selector:".stk-button__inner-text",hoverSelector:".stk-button:hover .stk-button__inner-text"}),c.EffectsAnimations.addStyles(k);const g=k;var h=o(7545);o(7294);const v=["normal","hover","parent-hover"],C=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return(0,h.getAttributeName)(e,"Desktop",t)},y=[{name:"default",label:(0,b.__)("Default",r.i18n),isDefault:!0,icon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M5 31V17h38v14H5zm12-8h20v2H17v-2zm-4 0h-2v2h2v-2z",fillRule:"evenodd",clipRule:"evenodd"}))},onSelect:e=>{const t=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return e[C(t,o)]};let o={buttonBorderType:""};return v.forEach((e=>{o={...o,[C("buttonBackgroundColor",e)]:"transparent"!==t("buttonBackgroundColor",e)?t("buttonBackgroundColor",e):t("textColor1",e),[C("textColor1",e)]:"transparent"===t("buttonBackgroundColor",e)?void 0:t("buttonBackgroundColor",e)}})),o}},{name:"ghost",label:(0,b.__)("Ghost",r.i18n),icon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M41 19H7v10h34V19zm2-2H5v14h38V17zm-26 6h20v2H17v-2zm-4 0h-2v2h2v-2z",fillRule:"evenodd",clipRule:"evenodd"}))},onSelect:e=>{const t=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return e[C(t,o)]};let o={buttonBackgroundColorType:"",buttonBorderType:"solid"};return v.forEach((e=>{o={...o,[C("buttonBorderColor",e)]:"transparent"===t("buttonBackgroundColor",e)?t("textColor1",e):t("buttonBackgroundColor",e),[C("buttonBackgroundColor",e)]:"transparent",[C("textColor1",e)]:"transparent"===t("buttonBackgroundColor",e)?t("buttonBorderColor",e)||t("textColor1",e):t("buttonBackgroundColor",e),[C("iconColor1",e)]:"transparent"===t("buttonBackgroundColor",e)?t("buttonBorderType",e)?t("buttonBorderColor",e):t("iconColor1",e):t("buttonBackgroundColor",e)}})),o}},{name:"plain",label:(0,b.__)("Plain",r.i18n),icon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M13 23h-2v2h2v-2zm24 0H17v2h20v-2z",fillRule:"evenodd",clipRule:"evenodd"}))},onSelect:e=>{const t=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return e[C(t,o)]};let o={buttonBackgroundColorType:"",buttonBorderType:""};return v.forEach((e=>{o={...o,[C("iconColor1",e)]:"transparent"===t("buttonBackgroundColor",e)?t("iconColor1",e):t("buttonBackgroundColor",e),[C("textColor1",e)]:"transparent"===t("buttonBackgroundColor",e)?t("textColor1",e):t("buttonBackgroundColor",e),[C("buttonBackgroundColor",e)]:"transparent"}})),o}},{name:"link",label:(0,b.__)("Link",r.i18n),icon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M34 20H14v2h20v-2zm-20 7h20v-1H14v1z",fillRule:"evenodd",clipRule:"evenodd"}))},onSelect:()=>{let e={buttonBackgroundColorType:"",buttonBorderType:""};return v.forEach((t=>{e={...e,[C("buttonBackgroundColor",t)]:"",[C("buttonBorderType",t)]:"",[C("iconColor1",t)]:"",[C("textColor1",t)]:"",[C("buttonBackgroundColor",t)]:""}})),e}}],f=(0,n.memo)((e=>{const{getPlaceholder:t}=(0,d.useBlockLayoutDefaults)();return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(p.BlockControls,null,(0,n.createElement)(p.AlignmentToolbar,{value:e.contentAlign,onChange:t=>e.setAttributes({contentAlign:t})})),(0,n.createElement)(s.InspectorTabs,{hasLayoutPanel:!1}),(0,n.createElement)(c.BlockStyle.InspectorControls,{styles:y},(0,n.createElement)(c.Button.InspectorControls.HoverEffects,null)),(0,n.createElement)(c.Button.InspectorControls,{blockState:e.blockState,borderSelector:".stk-button",hasFullWidth:!0,borderRadiusPlaceholder:t("button-border-radius"),iconGapPlaceholderName:"button-icon-gap"}),(0,n.createElement)(c.Typography.InspectorControls,(0,a.Z)({},e,{hasTextTag:!1,initialOpen:!1,hasColor:!1})),(0,n.createElement)(c.BlockDiv.InspectorControls,{initialOpen:"spacing"}),(0,n.createElement)(c.Advanced.InspectorControls,null),(0,n.createElement)(c.Transform.InspectorControls,null),(0,n.createElement)(c.EffectsAnimations.InspectorControls,null),(0,n.createElement)(c.CustomAttributes.InspectorControls,null),(0,n.createElement)(c.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-button"}),(0,n.createElement)(c.Responsive.InspectorControls,null),(0,n.createElement)(c.ConditionalDisplay.InspectorControls,null))})),B=(0,m.compose)(u.withBlockWrapper,u.withQueryLoopContext,u.withBlockAttributeContext)((e=>{const{className:t,onReplace:o,attributes:a,setAttributes:l}=e,u=(0,c.getTypographyClasses)(e.attributes),m=c.CustomAttributes.getCustomAttributes(e.attributes),p=(0,c.getAlignmentClasses)(e.attributes),k=(0,d.useBlockStyle)(y),h=i()([t,"stk-block-button",p,{[`is-style-${k}`]:k}]),v=i()([u,"stk-button__inner-text"]),C=(0,s.useBlockCssGenerator)({attributes:e.attributes,blockStyles:g,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:r.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(f,{contentAlign:a.contentAlign,setAttributes:l,blockState:e.blockState}),C&&(0,n.createElement)("style",{key:"block-css"},C),(0,n.createElement)(c.CustomCSS,{mainBlockClass:"stk-block-button"}),(0,n.createElement)(c.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:h,applyCustomAttributes:!1},(0,n.createElement)(c.Button,{buttonProps:{tagName:e.attributes.linkTag,id:e.attributes.anchorId||void 0,...m}},(0,n.createElement)(c.Typography,{tagName:"span",className:v,placeholder:(0,b.__)("Button text",r.i18n),withoutInteractiveFormatting:!0,onReplace:o}))))})),S=e=>{const{className:t,...o}=e,l=(0,c.getResponsiveClasses)(e.attributes),r=c.CustomAttributes.getCustomAttributes(e.attributes),s=(0,c.getTypographyClasses)(e.attributes),d=(0,c.getAlignmentClasses)(e.attributes),u=i()([t,"stk-block-button",d,l]),b=i()([s,"stk-button__inner-text"]);return(0,n.createElement)(c.BlockDiv.Content,(0,a.Z)({},p.useBlockProps.save({className:u}),{attributes:e.attributes,applyCustomAttributes:!1,version:e.version}),e.attributes.generatedCss&&(0,n.createElement)("style",null,e.attributes.generatedCss),(0,n.createElement)(c.CustomCSS.Content,{attributes:e.attributes}),(0,n.createElement)(c.Button.Content,(0,a.Z)({},o,{attributes:e.attributes,buttonProps:{id:e.attributes.anchorId||void 0,...r}}),(0,n.createElement)(c.Typography.Content,{attributes:e.attributes,tagName:"span",className:b})))},_=(0,m.compose)((0,u.withVersion)(r.version))(S),A={attributes:{uniqueId:"123456",text:(0,b.__)("Call to action",r.i18n)},innerBlocks:[]},w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.version;const t=new h.AttributeObject;return c.BlockDiv.addAttributes(t),c.Style.addAttributes(t),c.EffectsAnimations.addAttributes(t),c.CustomAttributes.addAttributes(t),c.CustomCSS.addAttributes(t),c.Responsive.addAttributes(t),c.ConditionalDisplay.addAttributes(t),c.Advanced.addAttributes(t),c.Transform.addAttributes(t),c.Button.addAttributes(t,{selector:".stk-button"}),c.Typography.addAttributes(t,".stk-button__inner-text",{hasTextTag:!1,hasColor:!1}),t.add({attributes:{contentAlign:{stkResponsive:!0,type:"string",default:""},anchorId:{type:"string",selector:"a.stk-button",source:"attribute",attribute:"id",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},E=w(r.version),T=JSON.parse('{"apiVersion":3,"name":"stackable/button","title":"Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"parent":["stackable/button-group"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-demo":"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-block-dependency":"stackable/button-group|button"}');var x=o(378);const I={from:[{type:"block",isMultiblock:!1,blocks:["stackable/icon-button"],transform:e=>(0,x.createBlock)("stackable/button",e)}]},z=I,M=[{attributes:w("3.12.11"),save:(0,u.withVersion)("3.12.11")(S),isEligible:e=>{const t=c.deprecateBlockShadowColor.isEligible(e),o=c.deprecateContainerShadowColor.isEligible(e),a=c.deprecateShadowColor.isEligible("button%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=c.deprecateBlockShadowColor.migrate(t),t=c.deprecateContainerShadowColor.migrate(t),t=c.deprecateShadowColor.migrate("button%s")(t),t=c.deprecateContainerBackgroundColorOpacity.migrate(t),t=c.deprecateBlockBackgroundColorOpacity.migrate(t),t=c.deprecateButtonGradientColor.migrate("button%s")(t),t}},{attributes:w("3.11.9"),save:(0,u.withVersion)("3.11.9")(S),isEligible:e=>{const t=c.deprecateContainerBackgroundColorOpacity.isEligible(e),o=c.deprecateBlockBackgroundColorOpacity.isEligible(e),a=c.deprecateButtonGradientColor.isEligible("button%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=c.deprecateContainerBackgroundColorOpacity.migrate(t),t=c.deprecateBlockBackgroundColorOpacity.migrate(t),t=c.deprecateButtonGradientColor.migrate("button%s")(t),t=c.deprecateBlockShadowColor.migrate(t),t=c.deprecateContainerShadowColor.migrate(t),t=c.deprecateShadowColor.migrate("button%s")(t),t}},{attributes:w("3.7.9"),save:(0,u.withVersion)("3.7.9")(S),migrate:e=>{let t=c.deprecateContainerBackgroundColorOpacity.migrate(e);return t=c.deprecateButtonGradientColor.migrate("button%s")(t),t=c.deprecateBlockShadowColor.migrate(t),t=c.deprecateContainerShadowColor.migrate(t),t=c.deprecateShadowColor.migrate("button%s")(t),c.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var H=o(9168);const N={...T,icon:o(9467).ButtonIcon,attributes:E,supports:{anchor:!0,splitting:!0},transforms:z,deprecated:M,example:A,edit:B,save:_,substitute:H.default}},9168:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>n,default:()=>l});var a=o(7545);const n={from:"stackable/button",variants:["stackable/button-group|button"],transform:(e,t,o)=>"stackable/button-group|button"in o&&o["stackable/button-group|button"]===a.BLOCK_STATE.DISABLED?["core/button",{text:e.text}]:["stackable/button",e]},l=n},5471:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(910),n=o(8003),l=o(3882),i=o(7462),r=o(2610);o(7294);const s=(0,l.applyFilters)("stackable.call-to-action.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Default",a.i18n)),isDefault:!0,attributes:{className:"is-style-default",hasContainer:!0},isActive:["className"],pickerTitle:(0,n.__)("Default",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 15h30v19H9V15zm-2 0a2 2 0 012-2h30a2 2 0 012 2v19a2 2 0 01-2 2H9a2 2 0 01-2-2V15zm28.5 3H13v2h22.5v-2zM13 23h22.5v2H13v-2zm16 5H19v3h10v-3z"}))},innerBlocks:[["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",a.i18n),textTag:"h3"}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",a.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n.__)("Button",a.i18n)}]]]],scope:["block"]},{name:"horizontal",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Horizontal",a.i18n)),attributes:{className:"is-style-horizontal",hasContainer:!0,innerBlockOrientation:"horizontal",innerBlockContentAlign:"alignwide",innerBlockVerticalAlign:"center",align:"wide"},isActive:["className"],pickerTitle:(0,n.__)("Horizontal",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 15H6v19h36V15zM6 13a2 2 0 00-2 2v19a2 2 0 002 2h36a2 2 0 002-2V15a2 2 0 00-2-2H6zm3 10.5h9v2H9v-2zM21 21h9v2h-9v-2zm9 5h-9v2h9v-2zm9-3h-6v3h6v-3z"}))},innerBlocks:[["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",a.i18n),textTag:"h3"}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",a.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n.__)("Button",a.i18n)}]]]],scope:["block"]},{name:"horizontal-2",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Horizontal 2",a.i18n)),attributes:{className:"is-style-horizontal-2"},isActive:["className"],pickerTitle:(0,n.__)("Horizontal 2",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 15H6v19h36V15zM6 13a2 2 0 00-2 2v19a2 2 0 002 2h36a2 2 0 002-2V15a2 2 0 00-2-2H6zm3 5h9v2H9v-2zm20 5H9v2h20v-2zM9 28h20v2H9v-2zm30-10h-6v3h6v-3z"}))},isPremium:!a.isPro,scope:["block"]},{name:"horizontal-3",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Horizontal 3",a.i18n)),attributes:{className:"is-style-horizontal-3"},isActive:["className"],pickerTitle:(0,n.__)("Horizontal 3",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 15H6v19h36V15zM6 13a2 2 0 00-2 2v19a2 2 0 002 2h36a2 2 0 002-2V15a2 2 0 00-2-2H6zm3 5h9v2H9v-2zm30 0H21v2h18v-2zm-18 5h18v2H21v-2zm18 5h-6v3h6v-3z"}))},isPremium:!a.isPro,scope:["block"]},{name:"split-centered",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Split Centered",a.i18n)),attributes:{className:"is-style-split-centered"},isActive:["className"],pickerTitle:(0,n.__)("Split Centered",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 15H6v19h36V15zM6 13a2 2 0 00-2 2v19a2 2 0 002 2h36a2 2 0 002-2V15a2 2 0 00-2-2H6zm3 5h9v2H9v-2zm30 0H21v2h18v-2zm-18 5h18v2H21v-2zm6 5h-6v3h6v-3z"}))},isPremium:!a.isPro,scope:["block"]}]),c=JSON.parse('{"apiVersion":3,"name":"stackable/call-to-action","title":"Call to Action","description":"A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["CTA"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/call-to-action-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/heading","stackable/text","stackable/button-group","stackable/button"]}');var d=o(9384),u=o(7200);const b=new u.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});d.Alignment.addStyles(b),d.BlockDiv.addStyles(b),d.Advanced.addStyles(b),d.Transform.addStyles(b),d.EffectsAnimations.addStyles(b),d.ContainerDiv.addStyles(b,{sizeSelector:".stk-block-call-to-action__content",sizeHorizontalAlignRule:"margin"}),d.MarginBottom.addStyles(b),d.Separator.addStyles(b);const m=b;var p=o(8085),k=o(4184),g=o.n(k),h=o(9783),v=o(78),C=o(3749),y=o(3284);const f=s[0].innerBlocks,B=(0,r.memo)((()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.InspectorTabs,null),(0,r.createElement)(d.ContentAlign.InspectorControls,null),(0,r.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,r.createElement)(d.BlockDiv.InspectorControls,null),(0,r.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,r.createElement)(d.BlockLink.InspectorControls,null),(0,r.createElement)(d.Advanced.InspectorControls,null),(0,r.createElement)(d.Transform.InspectorControls,null),(0,r.createElement)(d.Separator.InspectorControls,null),(0,r.createElement)(d.EffectsAnimations.InspectorControls,null),(0,r.createElement)(d.CustomAttributes.InspectorControls,null),(0,r.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-call-to-action"}),(0,r.createElement)(d.Responsive.InspectorControls,null),(0,r.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,r.createElement)(u.InspectorStyleControls,null,(0,r.createElement)(u.InspectorBottomTip,null))))),S=(0,C.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext)((e=>{var t;const{className:o}=e,{hasInnerBlocks:n,innerBlocks:l}=(0,y.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),i=(0,d.getAlignmentClasses)(e.attributes),s=(0,d.getSeparatorClasses)(e.attributes),c=g()([o,"stk-block-call-to-action",s]),b=g()(["stk-block-content","stk-inner-blocks",i,"stk-block-call-to-action__content",`stk-${e.attributes.uniqueId}-inner-blocks`],(0,d.getContentAlignmentClasses)(e.attributes)),k=null===(t=(0,p.last)(l))||void 0===t?void 0:t.name,h=n?["stackable/text","core/paragraph"].includes(k)?()=>(0,r.createElement)(r.Fragment,null):v.InnerBlocks.DefaultBlockAppender:v.InnerBlocks.ButtonBlockAppender,C=(0,u.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:a.version});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(B,null),(0,r.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c,enableVariationPicker:!0},C&&(0,r.createElement)("style",{key:"block-css"},C),(0,r.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-call-to-action"}),(0,r.createElement)(d.Separator,null,(0,r.createElement)(d.ContainerDiv,{className:b},(0,r.createElement)(v.InnerBlocks,{template:f,templateLock:!1,renderAppender:h})))),e.isHovered&&n&&(0,r.createElement)(d.MarginBottom,null))}));var _=o(1991),A=o.n(_);const w=e=>{const{attributes:t,className:o}=e,a=(0,d.getAlignmentClasses)(t),n=(0,d.getSeparatorClasses)(t),i=(0,d.getResponsiveClasses)(t),s=A()([o,"stk-block-call-to-action",i,n]),c=A()(["stk-block-call-to-action__content"],(0,d.getContentAlignmentClasses)(t)),u=A()((0,l.applyFilters)("stackable.call-to-action.save.innerClassNames",[a,"stk-block-content","stk-inner-blocks",`stk-${t.uniqueId}-inner-blocks`],e));return(0,r.createElement)(d.BlockDiv.Content,{className:s,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,r.createElement)("style",null,t.generatedCss),(0,r.createElement)(d.CustomCSS.Content,{attributes:t}),(0,r.createElement)(d.Separator.Content,{attributes:t},(0,r.createElement)(d.ContainerDiv.Content,{className:c,attributes:t},(0,r.createElement)("div",{className:u},(0,r.createElement)(v.InnerBlocks.Content,null)),(0,r.createElement)(d.BlockLink.Content,{attributes:t}))))},E=(0,C.compose)((0,h.withVersion)(a.version))(w);var T=o(7545);const x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.version;const t=new T.AttributeObject;return d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.MarginBottom.addAttributes(t),d.ContainerDiv.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.BlockLink.addAttributes(t),d.Separator.addAttributes(t),d.ContentAlign.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{hasContainer:!0,contentAlign:"center"},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},I=x(a.version),z={attributes:{uniqueId:"e1cf244",hasBackground:!1,hasBorders:!1,hasContainer:!0,contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],displayCondition:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"0482a4d",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Title for This Block",a.i18n),textTag:"h3",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"3d22629",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"e1e1c84",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"852fde3",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,n.__)("Button",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var M=o(4247),H=o.n(M);(0,l.addFilter)("stackable.call-to-action.save.innerClassNames","stackable/3.8.0",((e,t)=>(H()(t.version,"3.8.0")>=0||e.push({"stk--block-horizontal-flex":!1,[`stk-${t.attributes.uniqueId}-inner-blocks`]:!1,[`stk--block-orientation-${t.attributes.innerBlockOrientation}`]:t.attributes.innerBlockOrientation}),e)));const N=[{attributes:x("3.12.11"),save:(0,h.withVersion)("3.12.11")(w),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),n=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e),l=e.version<2||void 0===e.version;return t||o||a||n||l},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a=d.deprecateShadowColor.migrate("topSeparator%s")(a),a=d.deprecateShadowColor.migrate("bottomSeparator%s")(a),[a,t]}},{attributes:x("3.11.9"),save:(0,h.withVersion)("3.11.9")(w),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a=d.deprecateShadowColor.migrate("topSeparator%s")(a),a=d.deprecateShadowColor.migrate("bottomSeparator%s")(a),[a,t]}},{attributes:x("3.7.9"),save:(0,h.withVersion)("3.7.9")(w),isEligible:e=>e.version<2||void 0===e.version,migrate:(e,t)=>{let o={...e,version:2};e.containerVerticalAlign&&(o={...o,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const a=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&a&&(o={...o,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),o={...o,innerBlockColumnGap:0}),o=d.deprecateContainerBackgroundColorOpacity.migrate(o),o=d.deprecateBlockBackgroundColorOpacity.migrate(o),o=d.deprecateBlockShadowColor.migrate(o),o=d.deprecateContainerShadowColor.migrate(o),o=d.deprecateShadowColor.migrate("topSeparator%s")(o),o=d.deprecateShadowColor.migrate("bottomSeparator%s")(o),[o,t]}}];var D=o(701);const O={...c,icon:o(9467).CTAIcon,attributes:I,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:z,variations:s,deprecated:N,edit:S,save:E,substitute:D.default}},701:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/call-to-action",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t]]]},n=a},462:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>R});var a=o(9467),n=o(7462),l=o(2610);o(7294);var i=o(910),r=o(8003),s=o(3882);const c=(0,s.applyFilters)("stackable.card.variations",[{name:"default",isDefault:!0,description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",i.i18n),(0,r.__)("Default",i.i18n)),attributes:{className:"is-style-default",hasContainer:!0,imageWidthUnit:"",imageWidthUnitTablet:"",imageWidthUnitMobile:"",imageWidth:"",imageWidthTablet:"",imageWidthMobile:"",imageHeight:"",imageHeightTablet:"",imageHeightMobile:""},isActive:["className"],pickerTitle:(0,r.__)("Default",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,n.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 40V21H9v19h30zM9 7a2 2 0 00-2 2v31a2 2 0 002 2h30a2 2 0 002-2V9a2 2 0 00-2-2H9zm2.5 17h22v2h-22v-2zM21 34h-9.5v3H21v-3zm-9.5-5h24v2h-24v-2z"}))},innerBlocks:[["stackable/heading",{}],["stackable/subtitle",{text:(0,r._x)("Subtitle for This Block","Subtitle placeholder",i.i18n)}],["stackable/text",{text:(0,r._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",i.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,r._x)("Button","Button placeholder",i.i18n)}]]]],scope:["block"]},{name:"default-2",isDefault:!0,description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",i.i18n),(0,r.__)("Default 2",i.i18n)),attributes:{className:"is-style-default-2",hasContainer:!0,imageWidthUnit:"",imageWidthUnitTablet:"",imageWidthUnitMobile:"",imageWidth:"",imageWidthTablet:"",imageWidthMobile:"",imageHeight:"",imageHeightTablet:"",imageHeightMobile:""},isActive:["className"],pickerTitle:(0,r.__)("Default 2",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,n.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 40V21H9v19h30zM9 7a2 2 0 00-2 2v31a2 2 0 002 2h30a2 2 0 002-2V9a2 2 0 00-2-2H9zm3 17h15v2H12v-2zm8 10h-8v3h8v-3zm7 0h3v3h-3v-3zm8 0h-3v3h3v-3zm-23-5h19v2H12v-2z"}))},innerBlocks:[["stackable/heading",{}],["stackable/text",{text:(0,r._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",i.i18n)}],["stackable/columns",{rowAlign:"center",innerBlockContentAlign:"alignfull",align:"full"},[["stackable/column",{columnSpacing:{top:0,right:0,bottom:0,left:0}},[["stackable/button-group",{},[["stackable/button",{text:(0,r._x)("Button","Button placeholder",i.i18n)}]]]]],["stackable/column",{columnSpacing:{top:0,right:0,bottom:0,left:0}},[["stackable/button-group",{columnSpacing:{top:0,right:0,bottom:0,left:0},contentAlign:"right"},[["stackable/icon-button",{buttonBackgroundColor:"transparent",icon:'<svg data-prefix="fas" data-icon="share-alt" class="svg-inline--fa fa-share-alt fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"></path></svg>',iconColor1:"#D3D3D3",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",className:"is-style-plain"}],["stackable/icon-button",{buttonBackgroundColor:"transparent",icon:'<svg data-prefix="fab" data-icon="facebook-f" class="svg-inline--fa fa-facebook-f fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><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"></path></svg>',iconColor1:"#D3D3D3",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",className:"is-style-plain"}]]]]]]]],scope:["block"]},{name:"horizontal",description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",i.i18n),(0,r.__)("Horizontal",i.i18n)),attributes:{className:"is-style-horizontal"},pickerTitle:(0,r.__)("Horizontal",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,n.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M43 14H18v21h25V14zM6 12a2 2 0 00-2 2v21a2 2 0 002 2h37a2 2 0 002-2V14a2 2 0 00-2-2H6zm15.5 6h15v2h-15v-2zM28 28h-6.5v3H28v-3zm-6.5-5h17v2h-17v-2z"}))},isActive:["className"],isPremium:!i.isPro,scope:["block"]},{name:"full",description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",i.i18n),(0,r.__)("Full",i.i18n)),attributes:{className:"is-style-full"},pickerTitle:(0,r.__)("Full",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,n.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12a2 2 0 00-2 2v21a2 2 0 002 2h37a2 2 0 002-2V14a2 2 0 00-2-2H6zm33 5.5H7V20h32v-2.5zm-32 11h13V32H7v-3.5zM42 23H7v2.5h35V23z"}))},isActive:["className"],isPremium:!i.isPro,scope:["block"]},{name:"faded",description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",i.i18n),(0,r.__)("Faded",i.i18n)),attributes:{className:"is-style-faded"},pickerTitle:(0,r.__)("Faded",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,n.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 8a2 2 0 00-2 2v28a2 2 0 002 2h37a2 2 0 002-2V10a2 2 0 00-2-2H6zm30.5 11.5H8V22h28.5v-2.5zM8 31h12v3H8v-3zm31.5-6H8v2.5h31.5V25z"}))},isActive:["className"],isPremium:!i.isPro,scope:["block"]}]);var d=o(9384),u=o(8333),b=o(7200);const m=new b.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});d.Alignment.addStyles(m),d.BlockDiv.addStyles(m),d.Column.addStyles(m),d.Advanced.addStyles(m),d.Transform.addStyles(m),d.EffectsAnimations.addStyles(m),d.ContainerDiv.addStyles(m,{sizeSelector:".stk-block-card__content",sizeHorizontalAlignRule:"margin",wrapperSelector:".%s-container"}),d.Image.addStyles(m,{enableWidthCallback:e=>{const t=e("className");return"horizontal"===(0,u.getBlockStyle)(c,t).name},editorWidthUnitCallback:(e,t,o,a)=>{const n=a("className");return"horizontal"===(0,u.getBlockStyle)(c,n).name&&"tablet"===t?"px":e},enableAspectRatio:e=>{const t=e("className"),o=(0,u.getBlockStyle)(c,t);return!["horizontal","full","faded"].includes(o.name)},selector:".stk-block-card__image"});const p=m;var k=o(1991),g=o.n(k),h=o(8085),v=o(9783),C=o(78),y=o(3749),f=o(3284);const B=c[0].innerBlocks,S=["px","vw"],_=["px","vh"],A=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(b.InspectorTabs,null),(0,l.createElement)(d.Image.InspectorControls,{initialOpen:!0,hasWidth:"horizontal"===e.blockStyle,hasHeight:e.hasHeight,widthUnits:S,heightUnits:_,hasBorderRadius:!1,hasShape:!1,hasShadow:!1,hasAspectRatio:!["horizontal","full","faded"].includes(e.blockStyle)}),(0,l.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,l.createElement)(d.BlockDiv.InspectorControls,null),(0,l.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-card__content"}),(0,l.createElement)(d.BlockLink.InspectorControls,null),(0,l.createElement)(d.Advanced.InspectorControls,null),(0,l.createElement)(d.Transform.InspectorControls,null),(0,l.createElement)(d.EffectsAnimations.InspectorControls,null),(0,l.createElement)(d.CustomAttributes.InspectorControls,null),(0,l.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-card"}),(0,l.createElement)(d.Responsive.InspectorControls,null),(0,l.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,l.createElement)(b.InspectorStyleControls,null,(0,l.createElement)(b.InspectorBottomTip,null))))),w=(0,y.compose)(v.withBlockWrapperIsHovered,v.withQueryLoopContext,v.withBlockAttributeContext)((e=>{var t;const{hasContainer:o}=e.attributes,{className:a}=e,{hasInnerBlocks:n,innerBlocks:r}=(0,f.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),s=(0,d.getBlockOrientation)(e.attributes),m=(0,d.getAlignmentClasses)(e.attributes),k=(0,u.useBlockStyle)(c),v=g()([a,"stk-block-card"]),y=g()(["stk-block-content","stk--no-padding"]),w=g()(["stk-inner-blocks",m,"stk-block-card__content",`stk-${e.attributes.uniqueId}-inner-blocks`],{"stk-container-padding":o}),E=null===(t=(0,h.last)(r))||void 0===t?void 0:t.name,T=n?["stackable/text","core/paragraph"].includes(E)?()=>(0,l.createElement)(l.Fragment,null):C.InnerBlocks.DefaultBlockAppender:C.InnerBlocks.ButtonBlockAppender;let x=["default","default-2"].includes(k);const I=(0,u.useDeviceType)();"horizontal"===k&&"Mobile"===I&&(x=!0);const z=e.attributes.imageWidthUnit||"px",M=e.attributes.imageHeightUnit||"px",H=(0,b.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:i.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(A,{blockStyle:k,hasHeight:x}),H&&(0,l.createElement)("style",{key:"block-css"},H),(0,l.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-card"}),(0,l.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:v,enableVariationPicker:!0},e.attributes.uniqueId&&(0,l.createElement)(d.ContainerDiv,{className:y},(0,l.createElement)(d.Image,{showTooltips:e.isHovered,className:"stk-block-card__image",enableWidth:"horizontal"===k,enableHeight:x,enableDiagonal:!1,widthUnits:S,heightUnits:_,defaultWidth:250,width:"horizontal"!==k?100:void 0,widthUnit:"horizontal"!==k?"%":z,height:"horizontal"!==k?void 0:100,heightUnit:"horizontal"!==k?M:"%",hasTooltip:!["full","faded"].includes(k)}),(0,l.createElement)("div",{className:w},(0,l.createElement)(C.InnerBlocks,{template:B,orientation:s,renderAppender:T})))),e.isHovered&&n&&(0,l.createElement)(d.MarginBottom,null))})),E=e=>{const{attributes:t}=e,{hasContainer:o}=e.attributes,a=(0,d.getAlignmentClasses)(e.attributes),n=(0,d.getResponsiveClasses)(e.attributes),i=g()([e.className,"stk-block-card",n]),r=g()((0,s.applyFilters)("stackable.card.save.contentClassNames",{"stk--no-padding":!0},e)),c=g()((0,s.applyFilters)("stackable.card.save.wrapperClassNames",{"stk-container-padding":o,"stk-block-card__content":!0},e)),u=g()((0,s.applyFilters)("stackable.card.save.innerClassNames",[{"stk-block-content":!0,"stk-inner-blocks":!0,[a]:a},`stk-${t.uniqueId}-inner-blocks`],e));return(0,l.createElement)(d.BlockDiv.Content,{className:i,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(d.CustomCSS.Content,{attributes:t}),t.uniqueId&&(0,l.createElement)(d.ContainerDiv.Content,{className:r,attributes:t},(e.attributes.imageUrl||e.attributes.imageExternalUrl)&&(0,l.createElement)(d.Image.Content,{className:"stk-block-card__image",attributes:t}),(0,s.applyFilters)("stackable.card.save.container-div.content",(0,l.createElement)("div",{className:c},(0,l.createElement)("div",{className:u},(0,l.createElement)(C.InnerBlocks.Content,null))),e,u),(0,l.createElement)(d.BlockLink.Content,{attributes:t})))},T=(0,y.compose)((0,v.withVersion)(i.version))(E);var x=o(7545);const I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.version;const t=new x.AttributeObject;return d.BlockDiv.addAttributes(t),d.ContainerDiv.addAttributes(t),d.Column.addAttributes(t),d.Image.addAttributes(t,{imageWidthUnitDefault:"px"}),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.BlockLink.addAttributes(t),d.Style.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0},design:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{hasContainer:!0},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},z=I(i.version),M=JSON.parse('{"apiVersion":3,"name":"stackable/card","title":"Card","description":"Describe a single subject in a small card. You can use this to describe your product, service or a person.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/card-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/heading","stackable/text","stackable/subtitle","stackable/button-group","stackable/button"]}'),H={attributes:{uniqueId:"fce02f9",hasBackground:!1,hasBorders:!1,hasContainer:!0,imageShow:!0,imageUrl:"https://source.unsplash.com/400x300/?abstract",imageSize:"full",imageShapeStretch:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",className:"is-style-default"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"b72d337",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,r.__)("Title for This Block",i.i18n),textTag:"h2",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/subtitle",attributes:{uniqueId:"e7cca4d",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,r.__)("Subtitle for This Block",i.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"1da8f4c",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,r.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",i.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"e79f4a1",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"3ef5604",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,r.__)("Button",i.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var N=o(4247),D=o.n(N);(0,s.addFilter)("stackable.card.save.innerClassNames","stackable/3.8.0",((e,t)=>(D()(t.version,"3.8.0")>=0||e.push({[`stk-${t.attributes.uniqueId}-inner-blocks`]:!1,"stk--block-horizontal-flex":!1,[`stk--block-orientation-${t.attributes.innerBlockOrientation}`]:t.attributes.innerBlockOrientation}),e))),(0,s.addFilter)("stackable.card.save.container-div.content","stackable/3.0.2",((e,t,o)=>1===D()(t.version,"3.0.2")?e:(0,l.createElement)("div",{className:o},(0,l.createElement)(C.InnerBlocks.Content,null)))),(0,s.addFilter)("stackable.card.save.contentClassNames","stackable/3.0.2",((e,t)=>1===D()(t.version,"3.0.2")?e:{"stk-block-card__content":!0,"stk--no-padding":!0})),(0,s.addFilter)("stackable.card.save.wrapperClassNames","stackable/3.0.2",((e,t)=>1===D()(t.version,"3.0.2")?e:{})),(0,s.addFilter)("stackable.card.save.innerClassNames","stackable/3.0.2",((e,t)=>{if(1===D()(t.version,"3.0.2"))return e;const o=(0,d.getAlignmentClasses)(t.attributes);return e.push({"stk-block-content":!0,"stk-inner-blocks":!0,[o]:o,"stk-container-padding":t.attributes.hasContainer}),e}));const O=[{attributes:I("3.12.11"),save:(0,v.withVersion)("3.12.11")(E),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecationImageOverlayOpacity.migrate(a),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),[a,t]}},{attributes:I("3.11.9"),save:(0,v.withVersion)("3.11.9")(E),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a||d.deprecationImageOverlayOpacity.isEligible(e)},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecationImageOverlayOpacity.migrate(a),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),[a,t]}},{attributes:I("3.7.9"),save:(0,v.withVersion)("3.7.9")(E),isEligible:e=>e.version<2||void 0===e.version,migrate:(e,t)=>{let o={...e,version:2};e.containerVerticalAlign&&(o={...o,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const a=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&a&&(o={...o,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),o={...o,innerBlockColumnGap:0}),o=d.deprecationImageOverlayOpacity.migrate(o),o=d.deprecateContainerBackgroundColorOpacity.migrate(o),o=d.deprecateBlockBackgroundColorOpacity.migrate(o),o=d.deprecateBlockShadowColor.migrate(o),o=d.deprecateContainerShadowColor.migrate(o),[o,t]}},{attributes:I("3.0.2"),save:(0,v.withVersion)("3.0.2")(E)}];var L=o(1088);const R={...M,icon:a.CardIcon,attributes:z,supports:{anchor:!0,align:!0,spacing:!0},example:H,deprecated:O,variations:c,edit:w,save:T,substitute:L.default}},1088:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/card",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{align:e.align,hasContainer:!0},[["stackable/image",{imageUrl:e.imageUrl}],...t]]]]},n=a},7664:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.addBlockStyles("slidesToShow",[{styleRule:"--slides-to-show",attrName:"slidesToShow",key:"slidesToShow",responsive:"all"}]),r.addBlockStyles("slideColumnGap",[{styleRule:"--gap",attrName:"slideColumnGap",key:"slideColumnGap",format:"%spx",responsive:"all"}]),r.addBlockStyles("fadeDuration",[{styleRule:"--transition-duration",attrName:"fadeDuration",key:"fadeDuration",format:"%ss"}]),r.addBlockStyles("arrowJustify",[{selector:".stk-block-carousel__buttons",styleRule:"justifyContent",attrName:"arrowJustify",key:"arrowJustify"}]),r.addBlockStyles("arrowAlign",[{selector:".stk-block-carousel__buttons",styleRule:"alignItems",attrName:"arrowAlign",key:"arrowAlign",enabledCallback:e=>"outside"!==e("arrowPosition"),dependencies:["arrowPosition"]}]),r.addBlockStyles("arrowButtonOffset",[{styleRule:"--button-offset",attrName:"arrowButtonOffset",key:"arrowButtonOffset",format:"%spx",responsive:"all"}]),r.addBlockStyles("arrowButtonGap",[{styleRule:"--button-gap",attrName:"arrowButtonGap",key:"arrowButtonGap",format:"%spx",responsive:"all"}]),r.addBlockStyles("arrowButtonColor",[{selector:".stk-block-carousel__button",hoverSelector:".stk-block-carousel__button:hover",styleRule:"background",attrName:"arrowButtonColor",key:"arrowButtonColor",hover:"all"}]),r.addBlockStyles("arrowIconColor",[{selector:".stk-block-carousel__button",hoverSelector:".stk-block-carousel__button:hover",styleRule:"fill",attrName:"arrowIconColor",key:"arrowIconColor",hover:"all"},{selector:".stk-block-carousel__button svg.ugb-custom-icon :is(g,path,rect,polygon,ellipse)",hoverSelector:".stk-block-carousel__button svg.ugb-custom-icon :is(g,path,rect,polygon,ellipse):hover",styleRule:"fill",attrName:"arrowIconColor",key:"arrowIconColor",hover:"all"}]),r.addBlockStyles("arrowWidth",[{styleRule:"--button-width",attrName:"arrowWidth",key:"arrowWidth",hasUnits:"px",responsive:"all"}]),r.addBlockStyles("arrowHeight",[{styleRule:"--button-height",attrName:"arrowHeight",key:"arrowHeight",hasUnits:"px",responsive:"all"}]),r.addBlockStyles("arrowBorderRadius",[{selector:".stk-block-carousel__button",styleRule:"borderRadius",attrName:"arrowBorderRadius",key:"arrowBorderRadius",format:"%spx"}]),r.addBlockStyles("arrowIconSize",[{selector:".stk-block-carousel__button svg",styleRule:"width",attrName:"arrowIconSize",key:"arrowIconSize-width",format:"%spx",responsive:"all"},{selector:".stk-block-carousel__button svg",styleRule:"height",attrName:"arrowIconSize",key:"arrowIconSize-height",format:"%spx",responsive:"all"}]),r.addBlockStyles("arrowOpacity",[{selector:".stk-block-carousel__button",hoverSelector:".stk-block-carousel__button:hover",styleRule:"opacity",attrName:"arrowOpacity",key:"arrowOpacity",hover:"all"}]),r.addBlockStyles("dotsJustify",[{selector:".stk-block-carousel__dots",styleRule:"justifyContent",attrName:"dotsJustify",key:"dotsJustify"}]),r.addBlockStyles("dotsOffset",[{selector:".stk-block-carousel__dots",styleRule:"--dot-offset",attrName:"dotsOffset",key:"dotsOffset",format:"%spx",responsive:"all"}]),r.addBlockStyles("dotsGap",[{styleRule:"--dot-gap",attrName:"dotsGap",key:"dotsGap",format:"%spx"}]),r.addBlockStyles("dotsColor",[{selector:".stk-block-carousel__dot",hoverSelector:".stk-block-carousel__dot",styleRule:"--dot-color",hoverStyleRule:"--dot-color-hover",attrName:"dotsColor",key:"dotsColor",hover:"all"}]),r.addBlockStyles("dotsActiveColor",[{selector:".stk-block-carousel__dot.stk-block-carousel__dot--active:before",styleRule:"backgroundColor",attrName:"dotsActiveColor",key:"dotsActiveColor"}]),r.addBlockStyles("dotsSize",[{styleRule:"--dot-size",attrName:"dotsSize",key:"dotsSize",format:"%spx"}]),r.addBlockStyles("dotsBorderRadius",[{selector:".stk-block-carousel__dot:before",styleRule:"borderRadius",attrName:"dotsBorderRadius",key:"dotsBorderRadius",format:"%spx"}]),r.addBlockStyles("dotsActiveWidth",[{styleRule:"--dot-active-width",attrName:"dotsActiveWidth",key:"dotsActiveWidth",format:"%spx"}]),r.addBlockStyles("dotsActiveHeight",[{styleRule:"--dot-active-height",attrName:"dotsActiveHeight",key:"dotsActiveHeight",format:"%spx"}]),l.Alignment.addStyles(r,{editorSelectorCallback:e=>`.stk--block-align-${e("uniqueId")} > .block-editor-inner-blocks > .block-editor-block-list__layout`}),l.BlockDiv.addStyles(r),l.MarginBottom.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r),l.Separator.addStyles(r);const s=r;var c=o(910),d=o(4184),u=o.n(d),b=o(8333),m=o(9783),p=o(3749),k=o(8003),g=o(3284),h=o(8085),v=o(7545);const C='<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-left" class="svg-inline--fa fa-chevron-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" width="32" height="32"><path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path></svg>',y='<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" width="32" height="32"><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg>',f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new v.AttributeObject;return l.BlockDiv.addAttributes(t),l.Columns.addAttributes(t),l.Style.addAttributes(t),l.MarginBottom.addAttributes(t),l.Row.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.Separator.addAttributes(t),l.ContentAlign.addAttributes(t),t.add({attributes:{carouselType:{type:"string",default:""},fadeDuration:{type:"number",default:""},autoplay:{type:"boolean",default:!0},autoplaySpeed:{type:"number",default:""},slidesToShow:{type:"number",default:"",stkResponsive:!0},slideColumnGap:{type:"number",default:"",stkResponsive:!0},infiniteScroll:{type:"boolean",default:!1},showArrows:{type:"boolean",default:!0},showArrowsOnMobile:{type:"boolean",default:!0},arrowIconPrev:{type:"string",source:"html",selector:".stk-block-carousel__button__prev",default:""},arrowIconNext:{type:"string",source:"html",selector:".stk-block-carousel__button__next",default:""},arrowPosition:{type:"string",default:""},arrowJustify:{type:"string",default:""},arrowAlign:{type:"string",default:""},arrowButtonOffset:{type:"number",default:"",stkResponsive:!0},arrowButtonGap:{type:"number",default:"",stkResponsive:!0},arrowButtonColor:{type:"string",default:"",stkHover:!0},arrowIconColor:{type:"string",default:"",stkHover:!0},arrowHeight:{type:"number",default:"",stkUnits:"px",stkResponsive:!0},arrowWidth:{type:"number",default:"",stkUnits:"px",stkResponsive:!0},arrowBorderRadius:{type:"number",default:""},arrowIconSize:{type:"number",default:"",stkResponsive:!0},arrowOpacity:{type:"number",default:"",stkHover:!0},showDots:{type:"boolean",default:!0},dotsJustify:{type:"string",default:""},dotsOffset:{type:"number",default:"",stkResponsive:!0},dotsGap:{type:"number",default:""},dotsStyle:{type:"string",default:""},dotsColor:{type:"string",default:"",stkHover:!0},dotsActiveColor:{type:"string",default:""},dotsSize:{type:"number",default:""},dotsBorderRadius:{type:"number",default:""},dotsActiveWidth:{type:"number",default:""},dotsActiveHeight:{type:"number",default:""},showDotsOnMobile:{type:"boolean",default:!0},ariaLabelPrev:{type:"string",default:""},ariaLabelNext:{type:"string",default:""},ariaLabelSlide:{type:"string",default:""},ariaLabelSlideOf:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},B=f(c.version),S=["stackable/column"],_=[["stackable/column"],["stackable/column"],["stackable/column"]],A=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(l.ColumnsControl,{label:(0,k.__)("Slides",c.i18n),sliderMax:10}),(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.__)("Carousel Type",c.i18n),controls:[{value:"",title:(0,k.__)("Slide",c.i18n)},{value:"fade",title:(0,k.__)("Fade",c.i18n)}],attribute:"carouselType"}),"slide"===e.carouselType&&(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.__)("Infinite Scrolling",c.i18n),checked:e.infiniteScroll,onChange:t=>e.setAttributes({infiniteScroll:t}),defaultValue:!1,help:(0,k.__)("Only visible in the frontend.",c.i18n)}),"slide"===e.carouselType&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Slides to Show",c.i18n),sliderMax:4,min:1,attribute:"slidesToShow",placeholder:"1",responsive:"all"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Slide Gap",c.i18n),sliderMax:100,min:0,attribute:"slideColumnGap",placeholder:"30",responsive:"all"})),"fade"===e.carouselType&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Fade duration",c.i18n),attribute:"fadeDuration",sliderMax:2,min:0,step:.1,placeholder:"0.3"}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.__)("Autoplay",c.i18n),checked:e.autoplay,onChange:t=>e.setAttributes({autoplay:t}),defaultValue:!0}),e.autoplay&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Speed (ms)",c.i18n),attribute:"autoplaySpeed",sliderMax:6e3,sliderMin:1e3,min:0,step:100,placeholder:"4000"}),(0,n.createElement)(i.ControlSeparator,null)),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Arrows",c.i18n),id:"arrows",hasToggle:!0,checked:e.showArrows,onChange:t=>e.setAttributes({showArrows:t})},(0,n.createElement)(i.IconControl,{label:(0,k.__)("Previous Slide Icon",c.i18n),value:e.arrowIconPrev||e.defaultIcon.prev,defaultValue:e.defaultIcon.prev,onChange:t=>{t===e.defaultIcon.prev?e.setAttributes({arrowIconPrev:""}):e.setAttributes({arrowIconPrev:t})}}),(0,n.createElement)(i.IconControl,{label:(0,k.__)("Next Slide Icon",c.i18n),value:e.arrowIconNext||e.defaultIcon.next,defaultValue:e.defaultIcon.next,onChange:t=>{t===e.defaultIcon.next?e.setAttributes({arrowIconNext:""}):e.setAttributes({arrowIconNext:t})}}),(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.__)("Arrow Position",c.i18n),attribute:"arrowPosition",controls:[{value:"",title:(0,k.__)("Inside",c.i18n)},{value:"outside",title:(0,k.__)("Outside",c.i18n)}],onChange:t=>{e.setAttributes({arrowPosition:t,arrowJustify:"",arrowAlign:""})}}),(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.sprintf)((0,k.__)("%s Justify",c.i18n),(0,k.__)("Button",c.i18n)),attribute:"arrowJustify",controls:"flex-horizontal-alt",placeholder:"space-between",disabled:"outside"===e.arrowPosition&&["","center"].includes(e.arrowAlign)?["flex-start","center","flex-end"]:[]}),(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.sprintf)((0,k.__)("%s Alignment",c.i18n),(0,k.__)("Button",c.i18n)),attribute:"arrowAlign",controls:"vertical",placeholder:"center",disabled:"outside"===e.arrowPosition&&["flex-start","center","flex-end"].includes(e.arrowJustify)?["center"]:[],onChange:t=>{t||"outside"!==e.arrowPosition?e.setAttributes({arrowAlign:t}):e.setAttributes({arrowAlign:t,arrowJustify:""})}}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Offset",c.i18n),(0,k.__)("Button",c.i18n)),attribute:"arrowButtonOffset",sliderMin:"outside"===e.arrowPosition?0:-100,sliderMax:100,responsive:"all",placeholder:"12"}),["flex-start","center","flex-end"].includes(e.arrowJustify)&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Button Gap",c.i18n),attribute:"arrowButtonGap",min:0,sliderMax:100,responsive:"all",placeholder:"12"}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(i.ColorPaletteControl,{label:(0,k.sprintf)((0,k.__)("%s Color",c.i18n),(0,k.__)("Button",c.i18n)),attribute:"arrowButtonColor",hover:"all"}),(0,n.createElement)(i.ColorPaletteControl,{label:(0,k.sprintf)((0,k.__)("%s Color",c.i18n),(0,k.__)("Icon",c.i18n)),attribute:"arrowIconColor",hover:"all"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Width",c.i18n),(0,k.__)("Button",c.i18n)),attribute:"arrowWidth",units:["px","%"],sliderMax:[200,100],min:[0,0],responsive:"all",placeholder:"40"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Height",c.i18n),(0,k.__)("Button",c.i18n)),attribute:"arrowHeight",units:["px","%"],sliderMax:[200,100],min:[0,0],responsive:"all",placeholder:"40"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Border Radius",c.i18n),attribute:"arrowBorderRadius",sliderMax:Math.max(e.arrowHeight,e.arrowWidth,40),min:0,placeholder:"40"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Size",c.i18n),(0,k.__)("Icon",c.i18n)),attribute:"arrowIconSize",sliderMax:100,min:0,responsive:"all",placeholder:"16"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Opacity",c.i18n),attribute:"arrowOpacity",hover:"all",min:0,max:1,step:.01,placeholder:"0.9"}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.sprintf)((0,k.__)("Show %s on mobile",c.i18n),(0,k.__)("arrows",c.i18n)),checked:e.showArrowsOnMobile,onChange:t=>e.setAttributes({showArrowsOnMobile:t}),defaultValue:!0})),(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Dots",c.i18n),id:"dots",hasToggle:!0,checked:e.showDots,onChange:t=>e.setAttributes({showDots:t})},(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.sprintf)((0,k.__)("%s Justify",c.i18n),(0,k.__)("Dots",c.i18n)),attribute:"dotsJustify",controls:"horizontal",placeholder:"center"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Offset",c.i18n),(0,k.__)("Dots",c.i18n)),attribute:"dotsOffset",sliderMin:-100,sliderMax:100,responsive:"all",placeholder:"12"}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.__)("Dot Style",c.i18n),attribute:"dotsStyle",controls:[{value:"",title:(0,k.__)("Solid",c.i18n)},{value:"outline",title:(0,k.__)("Outline",c.i18n)}],isSmall:!0}),(0,n.createElement)(i.ColorPaletteControl,{label:(0,k.sprintf)((0,k.__)("%s Color",c.i18n),(0,k.__)("Dot",c.i18n)),attribute:"dotsColor",hover:"all"}),(0,n.createElement)(i.ColorPaletteControl,{label:(0,k.sprintf)((0,k.__)("%s Color",c.i18n),(0,k.__)("Active Dot",c.i18n)),attribute:"dotsActiveColor"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Size",c.i18n),(0,k.__)("Dot",c.i18n)),attribute:"dotsSize",sliderMin:1,sliderMax:40,placeholder:"8"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Border Radius",c.i18n),attribute:"dotsBorderRadius",sliderMax:e.dotsSize||8,min:0,placeholder:e.dotsSize||"8"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Gap",c.i18n),(0,k.__)("Dots",c.i18n)),attribute:"dotsGap",sliderMin:0,sliderMax:40,placeholder:"16",help:(e.dotsSize||8)+(e.dotsGap||16)<24?(0,k.sprintf)((0,k.__)("To improve accessibility, the clickable area of the dots will not go below %s.",c.i18n),"24px"):void 0}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Width",c.i18n),(0,k.__)("Active Dot",c.i18n)),attribute:"dotsActiveWidth",sliderMin:1,sliderMax:40,placeholder:"30"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.sprintf)((0,k.__)("%s Height",c.i18n),(0,k.__)("Active Dot",c.i18n)),attribute:"dotsActiveHeight",sliderMin:1,sliderMax:40,placeholder:e.dotsSize||"8"}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.sprintf)((0,k.__)("Show %s on mobile",c.i18n),(0,k.__)("dots",c.i18n)),checked:e.showDotsOnMobile,onChange:t=>e.setAttributes({showDotsOnMobile:t}),defaultValue:!0}))),(0,n.createElement)(l.ContentAlign.InspectorControls,null),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.BlockDiv.InspectorControls,{sizeControlSpacingProps:{enableMargin:!1}}),(0,n.createElement)(l.Separator.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(i.InspectorAdvancedControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Accessibility",c.i18n),id:"accessibility"},(0,n.createElement)(i.AdvancedTextControl,{label:(0,k.sprintf)((0,k.__)("%s label",c.i18n),(0,k.__)("Previous slide",c.i18n)),attribute:"ariaLabelPrev",placeholder:"Previous slide"}),(0,n.createElement)(i.AdvancedTextControl,{label:(0,k.sprintf)((0,k.__)("%s label",c.i18n),(0,k.__)("Next slide",c.i18n)),attribute:"ariaLabelNext",placeholder:"Next slide"}),(0,n.createElement)(i.AdvancedTextControl,{label:(0,k.sprintf)((0,k.__)("%s label",c.i18n),(0,k.__)("Slide",c.i18n)),attribute:"ariaLabelSlide",placeholder:"Slide %%d",help:(0,k.__)("Use %%d to show the slide number.",c.i18n)}),(0,n.createElement)(i.AdvancedTextControl,{label:(0,k.sprintf)((0,k.__)("%s label",c.i18n),(0,k.__)("Slide N of N",c.i18n)),attribute:"ariaLabelSlideOf",placeholder:"Slide %%d of %%d",help:(0,k.__)("Use two %%d to show the slide number and the total slides. e.g. Slide 1 of 3.",c.i18n)}))),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-carousel"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),w=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{var t,o;const{className:a,attributes:r,setAttributes:d}=e,m=(0,l.getRowClasses)(e.attributes),p=(0,l.getSeparatorClasses)(e.attributes),k=(0,l.getAlignmentClasses)(e.attributes),{hasInnerBlocks:v,numInnerBlocks:f}=(0,g.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor"),a=o(e.clientId).length;return{hasInnerBlocks:a>0,numInnerBlocks:a}}),[e.clientId]),[B,w]=i.ColumnInnerBlocks.useContext(),E=""===r.carouselType?"slide":r.carouselType,T=u()([a,"stk-block-carousel",m,p,w,{"stk--is-slide":"slide"===E,"stk--is-fade":"fade"===E,"stk--infinite-scroll":"slide"===E&&r.infiniteScroll,"stk--hide-mobile-arrows":!1===r.showArrowsOnMobile,"stk--hide-mobile-dots":!1===r.showDotsOnMobile,"stk--arrows-outside":"outside"===r.arrowPosition,"stk--dots-outline":"outline"===r.dotsStyle,[`stk--arrows-justify-${r.arrowJustify||"space-between"}`]:r.arrowJustify||"space-between",[`stk--arrows-align-${r.arrowAlign||"center"}`]:r.arrowAlign||"center"}]),x=u()(["stk-inner-blocks",k,"stk-block-content","stk-block-carousel__slider-wrapper"],(0,l.getContentAlignmentClasses)(e.attributes)),I=(0,b.useDeviceType)(),[z,M]=(0,n.useState)(1),[H,N]=(0,n.useState)(1),[D,O]=(0,n.useState)(0),[L,R]=(0,n.useState)({next:y,prev:C}),U=(0,n.useRef)(),P=(0,n.useRef)(),V="rtl"===(null===(t=document.documentElement)||void 0===t?void 0:t.getAttribute("dir"))||"rtl"===(null===(o=document.body)||void 0===o?void 0:o.getAttribute("dir"));let F=f,G=r.slidesToShow||1;"slide"===E&&("Tablet"!==I&&"Mobile"!==I||!r.slidesToShowTablet||(G=r.slidesToShowTablet),"Mobile"===I&&r.slidesToShowMobile&&(G=r.slidesToShowMobile),V||(F-=G-1)),(0,n.useEffect)((()=>{R(V?{next:C,prev:y}:{next:y,prev:C})}),[V]),(0,n.useEffect)((()=>{O(V&&"slide"===E?G-1:0)}),[G,E]);const q=e=>{if(M(e),N(e),"slide"===E){const t=U.current.querySelector(".block-editor-block-list__layout");t&&(U.current.scrollLeft=t.children[e-1].offsetLeft)}clearTimeout(P.current),P.current=setTimeout((()=>{P.current=null}),500)};(0,n.useEffect)((()=>{U.current.scrollLeft=0,M(1),N(1)}),[E]),(0,n.useEffect)((()=>{const e=setInterval((()=>{if("slide"===E){const e=U.current.querySelector(".block-editor-block-list__layout"),t=U.current.scrollLeft,{slide:o}=Array.from(e.children).reduce(((e,o,a)=>{const n=a+1,l=Math.abs(o.offsetLeft-t);return l<=e.offsetDiff?{slide:n,offsetDiff:l}:e}),{slide:1,offsetDiff:1e3});P.current||(M(o),N(o))}else{const e=U.current.querySelector(":scope > .block-editor-inner-blocks > .block-editor-block-list__layout > .is-selected");if(e){const t=Array.from(e.parentElement.children).indexOf(e)+1;t!==z&&(P.current||(M(t),N(t)))}}}),1e3);return()=>clearInterval(e)}),[E,z]),(0,n.useEffect)((()=>{z>F&&M(F)}),[F,z]);const W=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(A,{carouselType:E,setAttributes:d,infiniteScroll:r.infiniteScroll,autoplay:r.autoplay,showArrows:r.showArrows,arrowIconPrev:r.arrowIconPrev,arrowIconNext:r.arrowIconNext,arrowPosition:r.arrowPosition,arrowJustify:r.arrowJustify,arrowHeight:r.arrowHeight,arrowWidth:r.arrowWidth,showArrowsOnMobile:r.showArrowsOnMobile,showDots:r.showDots,dotsSize:r.dotsSize,dotsGap:r.dotsGap,showDotsOnMobile:r.showDotsOnMobile,defaultIcon:L}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:T},W&&(0,n.createElement)("style",{key:"block-css"},W),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-carousel"}),!v&&(0,n.createElement)(i.GroupPlaceholder,null),(0,n.createElement)(l.Separator,null,(0,n.createElement)("div",{className:"stk-block-carousel__content-wrapper"},(0,n.createElement)("div",{className:x,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},"fade"===E&&(0,n.createElement)("style",null,(0,h.range)(F).map((e=>`.stk-${r.uniqueId}-column > .stk-block-carousel__slider > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="stackable/column"]:nth-child(${e+1}) {\n\t\t\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t\t\tvisibility: hidden;\n\t\t\t\t\t\t\t\t\t\tleft: ${V?"":"-"}${100*e}%;\n\t\t\t\t\t\t\t\t\t}`)),`.stk-${r.uniqueId}-column > .stk-block-carousel__slider > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="stackable/column"]:nth-child(${z}) {\n\t\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t\t\tvisibility: visible;\n\t\t\t\t\t\t\t\t\tz-index: 2;\n\t\t\t\t\t\t\t\t\ttransition-duration: var(--transition-duration, 0.3s);\n\t\t\t\t\t\t\t\t\ttransition-delay: 0s;\n\t\t\t\t\t\t\t\t}`),(0,n.createElement)("div",{className:"stk-block-carousel__slider",ref:U,role:"list"},(0,n.createElement)(i.ColumnInnerBlocks,{providerValue:B,orientation:"horizontal",template:e.attributes.templateLock?void 0:_,allowedBlocks:S,renderAppender:!1,templateLock:e.attributes.templateLock||!1})),r.showArrows&&(0,n.createElement)("div",{className:"stk-block-carousel__buttons"},(0,n.createElement)("button",{className:"stk-block-carousel__button stk-block-carousel__button__prev",onClick:e=>{e.preventDefault();let t=z-1;t<=D&&(t=F),q(t)}},(0,n.createElement)(i.SvgIcon,{value:r.arrowIconPrev||L.prev})),(0,n.createElement)("button",{className:"stk-block-carousel__button stk-block-carousel__button__next",onClick:e=>{null==e||e.preventDefault();let t=z+1;t>F&&(t=D+1),q(t)}},(0,n.createElement)(i.SvgIcon,{value:r.arrowIconNext||L.next})))),r.showDots&&(0,n.createElement)("div",{className:"stk-block-carousel__dots",role:"list","data-label":"Slide %d"},(0,h.range)(F).map((e=>{if(V&&e<D)return null;const t=u()("stk-block-carousel__dot",{"stk-block-carousel__dot--active":e+1===H});return(0,n.createElement)("div",{key:e,role:"listitem"},(0,n.createElement)("button",{className:t,onClick:t=>{t.preventDefault(),q(e+1)}}))})))))),e.isHovered&&v&&(0,n.createElement)(l.MarginBottom,null))}));var E=o(78),T=o(3882);const x=e=>{const{attributes:t}=e,o=(0,l.getRowClasses)(e.attributes),a=(0,l.getSeparatorClasses)(e.attributes),r=(0,l.getAlignmentClasses)(e.attributes),s=(0,l.getResponsiveClasses)(e.attributes),c=u()([e.className,"stk-block-carousel",s,a,{"stk--is-slide":""===t.carouselType,"stk--is-fade":"fade"===t.carouselType,"stk--infinite-scroll":""===t.carouselType&&t.infiniteScroll,"stk--hide-mobile-arrows":!1===t.showArrowsOnMobile,"stk--hide-mobile-dots":!1===t.showDotsOnMobile,"stk--arrows-outside":"outside"===t.arrowPosition,"stk--dots-outline":"outline"===t.dotsStyle,[`stk--arrows-justify-${t.arrowJustify||"space-between"}`]:t.arrowJustify||"space-between",[`stk--arrows-align-${t.arrowAlign||"center"}`]:t.arrowAlign||"center"}]),d=u()((0,T.applyFilters)("stackable.carousel.save.contentClassNames",[[o,"stk-inner-blocks",r,"stk-block-content","stk-block-carousel__slider-wrapper"],(0,l.getContentAlignmentClasses)(e.attributes)],e));return(0,n.createElement)(l.BlockDiv.Content,{className:c,attributes:t,version:e.version,"data-slides-to-show":t.slidesToShow},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,n.createElement)(l.Separator.Content,{attributes:t},(0,n.createElement)("div",{className:"stk-block-carousel__content-wrapper"},(0,n.createElement)("div",{className:d},(0,n.createElement)("div",{className:"stk-block-carousel__slider",role:"list","data-autoplay":t.autoplay?t.autoplaySpeed||"4000":void 0,"data-label-slide-of":t.ariaLabelPrev||"Slide %%d of %%d"},(0,n.createElement)(E.InnerBlocks.Content,null)),t.showArrows&&(0,n.createElement)("div",{className:"stk-block-carousel__buttons"},(0,n.createElement)("button",{className:"stk-block-carousel__button stk-block-carousel__button__prev","aria-label":t.ariaLabelPrev||"Previous slide"},(0,n.createElement)(i.SvgIcon.Content,{value:t.arrowIconPrev||C})),(0,n.createElement)("button",{className:"stk-block-carousel__button stk-block-carousel__button__next","aria-label":t.ariaLabelNext||"Next slide"},(0,n.createElement)(i.SvgIcon.Content,{value:t.arrowIconNext||y})))),t.showDots&&(0,n.createElement)("div",{className:"stk-block-carousel__dots",role:"list","data-label":t.ariaLabelSlide||"Slide %%d"}))))},I=(0,p.compose)((0,m.withVersion)(c.version))(x),z=JSON.parse('{"apiVersion":3,"name":"stackable/carousel","title":"Carousel","description":"A carousel slider.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Slider"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/carousel-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),M=[{attributes:f("3.12.11"),save:(0,m.withVersion)("3.12.11")(x),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e),a=l.deprecateShadowColor.isEligible("topSeparator%s")(e),n=l.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||n},migrate:e=>{let t={...e};return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateShadowColor.migrate("topSeparator%s")(t),t=l.deprecateShadowColor.migrate("bottomSeparator%s")(t),t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:f("3.11.9"),save:(0,m.withVersion)("3.11.9")(x),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateShadowColor.migrate("topSeparator%s")(t),t=l.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}}];var H=o(459);const N={...z,icon:a.CarouselIcon,attributes:B,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkSaveBlockStyle:!1,stkDefaultTab:"layout",stkColumnResize:!1,stkBlockLinking:!0,spacing:!0},example:{attributes:{uniqueId:"1234567"},innerBlocks:[{name:"stackable/column",attributes:{uniqueId:"1234568"},innerBlocks:[]},{name:"stackable/column",attributes:{uniqueId:"1234569"},innerBlocks:[]},{name:"stackable/column",attributes:{uniqueId:"1234570"},innerBlocks:[]}]},deprecated:M,edit:w,save:I,substitute:H.default}},459:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/carousel",transform:(e,t)=>["stackable/columns",{...e},t]},n=a},5325:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>z});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r={marginTop:{valuePreCallback:e=>null==e?void 0:e.top},marginRight:{valuePreCallback:e=>null==e?void 0:e.right},marginBottom:{valuePreCallback:e=>null==e?void 0:e.bottom},marginLeft:{valuePreCallback:e=>null==e?void 0:e.left}},s=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.addBlockStyles("columnSpacing",[{selector:".%s-container",styleRule:"marginTop",attrName:"columnSpacing",key:"columnSpacing-top",responsive:"all",hasUnits:"px",valuePreCallback:r.marginTop.valuePreCallback},{selector:".%s-container",styleRule:"marginRight",attrName:"columnSpacing",key:"columnSpacing-right",responsive:"all",hasUnits:"px",valuePreCallback:r.marginRight.valuePreCallback},{selector:".%s-container",styleRule:"marginBottom",attrName:"columnSpacing",key:"columnSpacing-bottom",responsive:"all",hasUnits:"px",valuePreCallback:r.marginBottom.valuePreCallback},{selector:".%s-container",styleRule:"marginLeft",attrName:"columnSpacing",key:"columnSpacing-left",responsive:"all",hasUnits:"px",valuePreCallback:r.marginLeft.valuePreCallback},{renderIn:"edit",selector:".%s-container",styleRule:"--column-spacing-top",attrName:"columnSpacing",key:"columnSpacing-top-edit-for-highlight",responsive:"all",hasUnits:"px",valuePreCallback:r.marginTop.valuePreCallback},{renderIn:"edit",selector:".%s-container",styleRule:"--column-spacing-right",attrName:"columnSpacing",key:"columnSpacing-right-edit-for-highlight",responsive:"all",hasUnits:"px",valuePreCallback:r.marginRight.valuePreCallback},{renderIn:"edit",selector:".%s-container",styleRule:"--column-spacing-bottom",attrName:"columnSpacing",key:"columnSpacing-bottom-edit-for-highlight",responsive:"all",hasUnits:"px",valuePreCallback:r.marginBottom.valuePreCallback},{renderIn:"edit",selector:".%s-container",styleRule:"--column-spacing-left",attrName:"columnSpacing",key:"columnSpacing-left-edit-for-highlight",responsive:"all",hasUnits:"px",valuePreCallback:r.marginLeft.valuePreCallback}]),l.Alignment.addStyles(s,{columnAlignSelectorEditCallback:(e,t,o)=>`[data-block="${o}"]`}),l.BlockDiv.addStyles(s),l.Column.addStyles(s),l.ContainerDiv.addStyles(s,{sizeSelector:".%s-container",sizeHorizontalAlignRule:"margin",sizeVerticalAlignRule:"justifyContent",sizeVerticalAlignSelector:".%s-inner-blocks"}),l.Advanced.addStyles(s),l.Transform.addStyles(s),l.EffectsAnimations.addStyles(s);const c=s;var d=o(4184),u=o.n(d),b=o(910),m=o(8333),p=o(9783),k=o(3749),g=o(78),h=o(8003),v=o(3882),C=o(3284);const y=(0,n.memo)((e=>(0,n.createElement)(g.InnerBlocks.ButtonBlockAppender,e))),f=(0,n.memo)((e=>{const{getPlaceholder:t}=(0,m.useBlockLayoutDefaults)();return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(i.FourRangeControl,{label:(0,h.__)("Column Spacing",b.i18n),attribute:"columnSpacing",responsive:"all",units:["px","em","vw"],defaultLocked:!0,min:[0,0],sliderMax:[200,30],placeholder:e.isOnlyBlock&&e.useZeroColumnSpacing?"0":t("column-margin"),helpTooltip:{video:"inner-block-padding",description:(0,h.__)("Sets the paddings between the column content and the border.",b.i18n)},visualGuide:{selector:".stk-%s-container",highlight:"column-spacing",defaultValue:"12px"}})),(0,n.createElement)(l.Alignment.InspectorControls,{hasContainerSize:!0,hasColumnAlignment:!0}),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.BlockLink.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-column"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(i.AdvancedToggleControl,{label:(0,h.__)("Align Last Block to Bottom",b.i18n),checked:e.alignLastBlockToBottom,onChange:t=>e.setAttributes({alignLastBlockToBottom:t})})),(0,n.createElement)(l.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}))})),B=(0,k.compose)(p.withBlockWrapperIsHovered,p.withQueryLoopContext,p.withBlockAttributeContext)((e=>{const{clientId:t,className:o,isHovered:a}=e,{hasInnerBlocks:r,isOnlyBlock:s,useZeroColumnSpacing:d,parentBlock:m}=(0,C.useSelect)((e=>{const{getBlockOrder:o,getBlockRootClientId:a,getBlock:n}=e("core/block-editor"),l=a(t),i=n(l);return{hasInnerBlocks:o(t).length>0,rootClientId:l,isOnlyBlock:1===o(l).length,parentBlock:i,useZeroColumnSpacing:!["stackable/timeline"].includes(i.name)}}),[t]),p=(0,l.getBlockOrientation)(e.attributes),[k,h]=(0,l.getColumnClasses)(e.attributes),B=(0,l.getAlignmentClasses)(e.attributes),S=(0,v.applyFilters)("stackable.block.column.allowed-inner-blocks",void 0,e),_=u()([o,"stk-block-column",k]),A=u()(["stk-block-content","stk-inner-blocks",h,B,"stk-block-column__content",`stk-${e.attributes.uniqueId}-inner-blocks`,{"stk--align-last-block-to-bottom":e.attributes.alignLastBlockToBottom}]),w=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:b.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(f,{isOnlyBlock:s,useZeroColumnSpacing:d,alignLastBlockToBottom:e.attributes.alignLastBlockToBottom,setAttributes:e.setAttributes}),w&&(0,n.createElement)("style",{key:"block-css"},w),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-column"}),(0,n.createElement)(l.Column,{clientId:t,parentBlock:m,isHovered:a,showHandle:a,context:e.context,columnWidth:e.attributes.columnWidth,columnWidthTablet:e.attributes.columnWidthTablet,columnWidthMobile:e.attributes.columnWidthMobile},(0,n.createElement)(l.Linking,{show:a}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:_,"data-v":e.attributes.version||4},(0,n.createElement)(l.ContainerDiv,{className:A},(0,n.createElement)(g.InnerBlocks,{allowedBlocks:S,templateLock:e.attributes.templateLock||!1,orientation:p,renderAppender:r?void 0:y})))))}));var S=o(1991),_=o.n(S);const A=e=>{const{attributes:t}=e,[o,a]=(0,l.getColumnClasses)(e.attributes),i=(0,l.getAlignmentClasses)(e.attributes),r=(0,l.getResponsiveClasses)(e.attributes),s=_()((0,v.applyFilters)("stackable.column.save.blockClassNames",[e.className,"stk-block-column",o,r],e)),c=_()([a,"stk-block-column__content"]),d=(0,v.applyFilters)("stackable.column.save.innerClassNames",_()([i,"stk-block-content","stk-inner-blocks",`stk-${t.uniqueId}-inner-blocks`,{"stk--align-last-block-to-bottom":e.attributes.alignLastBlockToBottom}]),e);return(0,n.createElement)(l.BlockDiv.Content,{className:s,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,n.createElement)(l.ContainerDiv.Content,{className:c,attributes:t},(0,n.createElement)("div",{className:d},(0,n.createElement)(g.InnerBlocks.Content,null)),(0,n.createElement)(l.BlockLink.Content,{attributes:t})))},w=(0,k.compose)((0,p.withVersion)(b.version))(A);var E=o(7545);const T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.version;const t=new E.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.ContainerDiv.addAttributes(t),l.Column.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.BlockLink.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0},templateLock:{type:"string",default:""},columnSpacing:{stkResponsive:!0,stkHover:!0,stkUnits:"px",type:"object"},alignLastBlockToBottom:{type:"boolean",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:4},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},x=T(b.version);(0,v.addFilter)("stackable.column.save.innerClassNames","stackable/3.8.0",((e,t)=>(0,E.semverCompare)(t.version,"<=","3.7.9")?_()(e,{"stk--block-horizontal-flex":!1,[`stk--block-orientation-${t.attributes.innerBlockOrientation}`]:t.attributes.innerBlockOrientation}):e)),(0,v.addFilter)("stackable.column.save.blockClassNames","stackable/3.7.0",((e,t)=>(0,E.semverCompare)(t.version,"<","3.7.0")?e.filter((e=>"stk-block-column--v3"!==e)):e)),(0,v.addFilter)("stackable.column.save.blockClassNames","stackable/3.4.3",((e,t)=>(0,E.semverCompare)(t.version,"<","3.4.3")?e.filter((e=>"stk-block-column--v2"!==e)):e)),(0,v.addFilter)("stackable.column.save.innerClassNames","stackable/3.4.3",((e,t)=>(0,E.semverCompare)(t.version,"<","3.4.3")?_()(e,{[`stk-${t.attributes.uniqueId}-inner-blocks`]:!1}):e)),(0,v.addFilter)("stackable.column.save.blockClassNames","stackable/3.8.0",((e,t)=>(0,E.semverCompare)(t.version,">","3.7.9")?(e.push({"stk-block-column--v2":!1,"stk-block-column--v3":!1}),e):e));const I=[{attributes:T("3.12.11"),save:(0,p.withVersion)("3.12.11")(A),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e),a=e.version<4||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<4||void 0===e.version;let a={...e};return o&&(a={...a,version:4,className:_()(e.className,{"stk-block-column--v2":!1,"stk-block-column--v3":!1})},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=l.deprecateContainerBackgroundColorOpacity.migrate(a),a=l.deprecateBlockBackgroundColorOpacity.migrate(a),a=l.deprecateBlockShadowColor.migrate(a),a=l.deprecateContainerShadowColor.migrate(a),[a,t]}},{attributes:T("3.11.9"),save:(0,p.withVersion)("3.11.9")(A),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<4||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<4||void 0===e.version;let a={...e};return o&&(a={...a,version:4,className:_()(e.className,{"stk-block-column--v2":!1,"stk-block-column--v3":!1})},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=l.deprecateContainerBackgroundColorOpacity.migrate(a),a=l.deprecateBlockBackgroundColorOpacity.migrate(a),a=l.deprecateBlockShadowColor.migrate(a),a=l.deprecateContainerShadowColor.migrate(a),[a,t]}},{attributes:T("3.7.9"),save:(0,p.withVersion)("3.7.9")(A),isEligible:e=>e.version<4||void 0===e.version,migrate:(e,t)=>{let o={...e,version:4,className:_()(e.className,{"stk-block-column--v2":!1,"stk-block-column--v3":!1})};e.containerVerticalAlign&&(o={...o,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const a=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&a&&(o={...o,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),o={...o,innerBlockColumnGap:0}),o=l.deprecateContainerBackgroundColorOpacity.migrate(o),o=l.deprecateBlockBackgroundColorOpacity.migrate(o),o=l.deprecateBlockShadowColor.migrate(o),o=l.deprecateContainerShadowColor.migrate(o),[o,t]}},{attributes:T("3.6.6"),save:(0,p.withVersion)("3.6.6")(A)},{attributes:T("3.4.2"),save:(0,p.withVersion)("3.4.2")(A)}],z={...JSON.parse('{"apiVersion":3,"name":"stackable/column","title":"Inner Column","description":"A single column with advanced layout options.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/columnWrapDesktop"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Section rows"],"parent":["stackable/columns","stackable/carousel","stackable/feature","stackable/feature-grid","stackable/horizontal-scroller","stackable/tab-content"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-available-states":["enabled","hidden"]}'),icon:a.ColumnIcon,attributes:x,supports:{anchor:!0,reusable:!1,stkBlockLinking:!0,stkSaveBlockStyle:!1,stkDefaultTab:"layout",spacing:!0},deprecated:I,edit:B,save:w}},8107:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>R});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});l.Alignment.addStyles(r,{editorSelectorCallback:e=>`.stk--block-align-${e("uniqueId")} > .block-editor-inner-blocks > .block-editor-block-list__layout`}),l.BlockDiv.addStyles(r),l.MarginBottom.addStyles(r),l.ContainerDiv.addStyles(r,{sizeSelector:".%s-column",sizeVerticalAlignRule:"justifyContent",sizeVerticalAlignSelector:".%s-column"}),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r),l.Separator.addStyles(r),l.Columns.addStyles(r);const s=r;var c,d=o(910),u=o(4184),b=o.n(u),m=o(9783),p=o(7545),k=o(3749),g=o(8003),h=o(3882),v=o(3284);const C=["stackable/column"],y=null===(c=navigator)||void 0===c?void 0:c.userAgent;y&&-1!==y.indexOf("Firefox")&&(0,h.addFilter)("stackable.columns.edit.blockClassNames","stackable/columns-has-single-block-polyfill",((e,t)=>{const{numInnerBlocks:o}=(0,v.useSelect)((e=>{const{getBlockOrder:o}=e("core/block-editor");return{numInnerBlocks:o(t.clientId).length}}),[t.clientId]);return 1===o&&e.push("stk-block-columns--has-single-block-polyfill"),e}));const f=(0,n.memo)((()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.Columns.InspectorControls,null),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(i.ControlSeparator,null)),(0,n.createElement)(l.ContentAlign.InspectorControls,null),(0,n.createElement)(l.Alignment.InspectorControls,{hasContainerSize:!0,containerSizePriority:1,hasContainerHeight:!1,hasColumnJustify:!0,hasRowAlignment:!0}),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Separator.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-columns"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),B=(0,k.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{clientId:t,className:o}=e,a=(0,l.getRowClasses)(e.attributes),r=(0,l.getSeparatorClasses)(e.attributes),c=(0,l.getAlignmentClasses)(e.attributes),[u,m]=i.ColumnInnerBlocks.useContext(),{hasInnerBlocks:k}=(0,v.useSelect)((e=>{const{getBlockOrder:o}=e("core/block-editor");return{hasInnerBlocks:o(t).length>0}}),[t]),g=b()((0,h.applyFilters)("stackable.columns.edit.blockClassNames",[o,"stk-block-columns",a,r,m],e)),y=(0,p.useQueryLoopInstanceId)(e.attributes.uniqueId),B=b()(["stk-inner-blocks",c,"stk-block-content"],(0,l.getContentAlignmentClasses)(e.attributes,"column",y)),S=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:d.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(f,null),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:g,enableVariationPicker:!0},S&&(0,n.createElement)("style",{key:"block-css"},S),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-columns"}),!k&&(0,n.createElement)(i.GroupPlaceholder,null),(0,n.createElement)(l.Separator,null,(0,n.createElement)("div",{className:B,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},(0,n.createElement)(i.ColumnInnerBlocks,{providerValue:u,orientation:"horizontal",allowedBlocks:C,renderAppender:!1,templateLock:e.attributes.templateLock||!1})))),e.isHovered&&k&&(0,n.createElement)(l.MarginBottom,null))}));var S=o(1991),_=o.n(S),A=o(78);const w=e=>{const{attributes:t}=e,o=(0,l.getRowClasses)(e.attributes),a=(0,l.getSeparatorClasses)(e.attributes),i=(0,l.getAlignmentClasses)(e.attributes),r=(0,l.getResponsiveClasses)(e.attributes),s=_()([e.className,"stk-block-columns",r,a]),c=_()((0,h.applyFilters)("stackable.columns.save.contentClassNames",[[o,"stk-inner-blocks",i,"stk-block-content"],(0,l.getContentAlignmentClasses)(e.attributes)],e));return(0,n.createElement)(l.BlockDiv.Content,{className:s,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,n.createElement)(l.Separator.Content,{attributes:t},(0,n.createElement)("div",{className:c},(0,n.createElement)(A.InnerBlocks.Content,null))))},E=(0,m.withVersion)(d.version)(w),T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new p.AttributeObject;return l.BlockDiv.addAttributes(t),l.Columns.addAttributes(t),l.Style.addAttributes(t),l.MarginBottom.addAttributes(t),l.Row.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.Separator.addAttributes(t),l.ContentAlign.addAttributes(t),t.add({attributes:{templateLock:{type:"string",default:""},columnArrangement:{stkResponsive:!0,type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.add({attributes:{containerWidth:{stkResponsive:!0,type:"number",default:"",stkUnits:"px"},containerHorizontalAlign:{stkResponsive:!0,type:"string",default:""}},versionAdded:"3.10.1",versionDeprecated:""}),t.getMerged(e)},x=T(d.version),I=JSON.parse('{"apiVersion":3,"name":"stackable/columns","title":"Columns","description":"Multiple columns with advanced layout options.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Section rows","Container"],"providesContext":{"stackable/innerBlockOrientation":"columnJustify","stackable/columnWrapDesktop":"columnWrapDesktop"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/columns-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-available-states":["enabled","hidden"]}');var z=o(8085),M=o(378);const H={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{if(1===e.length&&"stackable/column"===e[0].name)return;if(1===e.length&&"core/columns"===e[0].name){const a=e[0],n=[],l={uniqueId:(0,p.createUniqueClass)(a.clientId)};for(const[e,t]of Object.entries(a.attributes))switch(e){case"align":e&&(l.align=t,l.innerBlockContentAlign="align"+t);break;case"style":{const e=(0,z.get)(t,"color.background");e&&(l.hasBackground=!0,l.blockBackgroundColor=e);break}case"backgroundColor":t&&(l.hasBackground=!0)}for(const e of a.innerBlocks){const a={uniqueId:(0,p.createUniqueClass)(e.clientId)},l=(0,z.get)(e.attributes,"style.spacing.padding");var t,o;l&&(a.containerPadding={},a.containerPadding.top=parseInt(l.top),a.containerPadding.right=parseInt(l.right),a.containerPadding.bottom=parseInt(l.bottom),a.containerPadding.left=parseInt(l.left),a.containerPaddingUnit=(null===(t=l.top)||void 0===t||null===(o=t.match(/([a-z]*)$/g))||void 0===o?void 0:o[0])||""),n.push((0,M.createBlock)("stackable/column",a,e.innerBlocks))}return(0,M.createBlock)("stackable/columns",l,n)}const a=e.map((e=>(0,M.createBlock)(e.name,e.attributes,e.innerBlocks))),n=(0,M.createBlock)("stackable/column",{},a),l=(0,M.createBlock)("stackable/columns",{},[n]);return l.attributes.uniqueId=(0,p.createUniqueClass)(l.clientId),l},isMatch:e=>{const{length:t}=e;return t&&t<=10}}]};var N=o(7462);o(7294);const D=[{name:"one-column-full",title:(0,g.__)("100",d.i18n),description:(0,g.__)("One column",d.i18n),icon:function(e){return(0,n.createElement)("svg",(0,N.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M39 14H9v20h30V14zM9 12c-1.1 0-2 .9-2 2v20c0 1.1.9 2 2 2h30c1.1 0 2-.9 2-2V14c0-1.1-.9-2-2-2H9z",fillRule:"evenodd",clipRule:"evenodd"}))},innerBlocks:[["stackable/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,g.__)("50 / 50",d.i18n),description:(0,g.__)("Two columns; equal split",d.i18n),icon:function(e){return(0,n.createElement)("svg",(0,N.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M39 12c1.1 0 2 .9 2 2v20c0 1.1-.9 2-2 2H9c-1.1 0-2-.9-2-2V14c0-1.1.9-2 2-2h30zm0 22V14H25v20h14zm-16 0H9V14h14v20z",fillRule:"evenodd",clipRule:"evenodd"}))},isDefault:!0,innerBlocks:[["stackable/column"],["stackable/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,g.__)("30 / 70",d.i18n),description:(0,g.__)("Two columns; one-third, two-thirds split",d.i18n),icon:function(e){return(0,n.createElement)("svg",(0,N.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M39 12c1.1 0 2 .9 2 2v20c0 1.1-.9 2-2 2H9c-1.1 0-2-.9-2-2V14c0-1.1.9-2 2-2h30zm0 22V14H20v20h19zm-21 0H9V14h9v20z",fillRule:"evenodd",clipRule:"evenodd"}))},innerBlocks:[["stackable/column",{columnWidth:33.3}],["stackable/column",{columnWidth:66.7}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,g.__)("70 / 30",d.i18n),description:(0,g.__)("Two columns; two-thirds, one-third split",d.i18n),icon:function(e){return(0,n.createElement)("svg",(0,N.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M39 12c1.1 0 2 .9 2 2v20c0 1.1-.9 2-2 2H9c-1.1 0-2-.9-2-2V14c0-1.1.9-2 2-2h30zm0 22V14h-9v20h9zm-11 0H9V14h19v20z",fillRule:"evenodd",clipRule:"evenodd"}))},innerBlocks:[["stackable/column",{columnWidth:66.7}],["stackable/column",{columnWidth:33.3}]],scope:["block"]},{name:"three-columns-equal",title:(0,g.__)("33 / 33 / 33",d.i18n),description:(0,g.__)("Three columns; equal split",d.i18n),icon:function(e){return(0,n.createElement)("svg",(0,N.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M41 14c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v20c0 1.1.9 2 2 2h30c1.1 0 2-.9 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z",fillRule:"evenodd",clipRule:"evenodd"}))},innerBlocks:[["stackable/column"],["stackable/column"],["stackable/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,g.__)("25 / 50 / 25",d.i18n),description:(0,g.__)("Three columns; wide center column",d.i18n),icon:function(e){return(0,n.createElement)("svg",(0,N.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M41 14c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v20c0 1.1.9 2 2 2h30c1.1 0 2-.9 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z",fillRule:"evenodd",clipRule:"evenodd"}))},innerBlocks:[["stackable/column",{columnWidth:25}],["stackable/column",{columnWidth:50}],["stackable/column",{columnWidth:25}]],scope:["block"]},{name:"four-columns-equal",title:(0,g.__)("25 / 25 / 25 / 25",d.i18n),description:(0,g.__)("Four columns; equal split",d.i18n),icon:function(e){return(0,n.createElement)("svg",(0,N.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M39 12H9c-1.1 0-2 .9-2 2v20c0 1.1.9 2 2 2h30c1.1 0 2-.9 2-2V14c0-1.1-.9-2-2-2zM15 34H9V14h6v20zm8 0h-6V14h6v20zm8 0h-6V14h6v20zm8 0h-6V14h6v20z"}))},innerBlocks:[["stackable/column",{columnWidth:25}],["stackable/column",{columnWidth:25}],["stackable/column",{columnWidth:25}],["stackable/column",{columnWidth:25}]],scope:["block"]}],O={name:"stackable/columns",attributes:{uniqueId:"474cdf7",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/column",attributes:{uniqueId:"4c01a47",hasBackground:!1,hasBorders:!1,hasContainer:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/text",attributes:{uniqueId:"bb2c914",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<meta charset="utf-8">${(0,g.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",d.i18n)}`,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},{name:"stackable/column",attributes:{uniqueId:"6dd2b08",hasBackground:!1,hasBorders:!1,hasContainer:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/text",attributes:{uniqueId:"17aa65b",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<meta charset="utf-8">${(0,g.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",d.i18n)}`,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};(0,h.addFilter)("stackable.columns.save.contentClassNames","stackable/3.8.0",((e,t)=>(0,p.semverCompare)(t.version,"<","3.8.0")?[...e,{"stk--has-column-order":t.attributes.columnArrangementMobile||t.attributes.columnArrangementTablet}]:e));const L=[{attributes:T("3.12.11"),save:(0,m.withVersion)("3.12.11")(w),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e),a=l.deprecateShadowColor.isEligible("topSeparator%s")(e),n=l.deprecateShadowColor.isEligible("bottomSeparator%s")(e),i=!!e.columnFit;return t||o||a||n||i},migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateShadowColor.migrate("topSeparator%s")(t),t=l.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.11.9"),save:(0,m.withVersion)("3.11.9")(w),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e),a=!!e.columnFit;return t||o||a},migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateShadowColor.migrate("topSeparator%s")(t),t=l.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.7.9"),save:(0,m.withVersion)("3.7.9")(w),isEligible:e=>!!e.columnFit,migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateShadowColor.migrate("topSeparator%s")(t),t=l.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.6.1"),save:(0,m.withVersion)("3.6.1")(w)}],R={...I,icon:a.ColumnsIcon,attributes:x,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkLayoutReset:!1,stkSaveBlockStyle:!1,stkDefaultTab:"layout",spacing:!0},example:O,deprecated:L,transforms:H,variations:D,edit:B,save:E}},1875:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>E});var a=o(9467),n=o(7462),l=o(2610),i=o(9384),r=o(7200);const s=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.Alignment.addStyles(s),i.BlockDiv.addStyles(s),i.Advanced.addStyles(s),i.Transform.addStyles(s),i.Typography.addStyles(s,{selector:".stk-block-count-up__text",hoverSelector:".stk-block-count-up__text:hover"}),i.EffectsAnimations.addStyles(s);const c=s;var d=o(910),u=o(4184),b=o.n(u),m=o(9783),p=o(3749),k=o(8003);const g=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,k.__)("Counter",d.i18n),id:"count-up",initialOpen:!0},(0,l.createElement)(r.AdvancedRangeControl,{label:(0,k.__)("Duration (ms)",d.i18n),attribute:"duration",min:100,sliderMax:5e3,step:100,placeholder:"1000"}))),(0,l.createElement)(i.Typography.InspectorControls,(0,n.Z)({},e,{hasTextTag:!1,hasTextShadow:!0,initialOpen:!1})),(0,l.createElement)(i.Alignment.InspectorControls,null),(0,l.createElement)(i.BlockDiv.InspectorControls,null),(0,l.createElement)(i.Advanced.InspectorControls,null),(0,l.createElement)(i.Transform.InspectorControls,null),(0,l.createElement)(i.EffectsAnimations.InspectorControls,null),(0,l.createElement)(i.CustomAttributes.InspectorControls,null),(0,l.createElement)(i.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-count-up"}),(0,l.createElement)(i.Responsive.InspectorControls,null),(0,l.createElement)(i.ConditionalDisplay.InspectorControls,null)))),h=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{className:t}=e,o=(0,i.getTypographyClasses)(e.attributes),a=(0,i.getAlignmentClasses)(e.attributes),n=b()([t,"stk-block-count-up"]),s=b()(["stk-block-count-up__text",o,a]),u=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:d.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(g,{blockState:e.blockState}),u&&(0,l.createElement)("style",{key:"block-css"},u),(0,l.createElement)(i.CustomCSS,{mainBlockClass:"stk-block-count-up"}),(0,l.createElement)(i.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:n},(0,l.createElement)(i.Typography,{tagName:"div",placeholder:(0,k.__)("1,234.56",d.i18n),className:s})),e.isHovered&&(0,l.createElement)(i.MarginBottom,null))})),v=e=>{const{className:t,attributes:o}=e,a=(0,i.getResponsiveClasses)(e.attributes),n=(0,i.getTypographyClasses)(e.attributes),r=(0,i.getAlignmentClasses)(e.attributes),s=b()([t,"stk-block-count-up",a]),c=b()(["stk-block-count-up__text",n,r]),d=""===o.duration?null:o.duration;return(0,l.createElement)(i.BlockDiv.Content,{className:s,attributes:o,version:e.version},o.generatedCss&&(0,l.createElement)("style",null,o.generatedCss),(0,l.createElement)(i.CustomCSS.Content,{attributes:o}),(0,l.createElement)(i.Typography.Content,{tagName:"div",attributes:o,className:c,"data-duration":d}))},C=(0,p.compose)((0,m.withVersion)(d.version))(v);var y=o(7545);const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new y.AttributeObject;return i.Alignment.addAttributes(t),i.BlockDiv.addAttributes(t),i.Style.addAttributes(t),i.EffectsAnimations.addAttributes(t),i.CustomAttributes.addAttributes(t),i.CustomCSS.addAttributes(t),i.MarginBottom.addAttributes(t),i.Responsive.addAttributes(t),i.ConditionalDisplay.addAttributes(t),i.Advanced.addAttributes(t),i.Transform.addAttributes(t),i.Typography.addAttributes(t,".stk-block-count-up__text"),t.add({attributes:{duration:{type:"number",default:""}},versionAdded:"3.4.2"}),t.getMerged(e)},B=f(d.version),S=JSON.parse('{"apiVersion":3,"name":"stackable/count-up","title":"Count Up","description":"Showcase your stats. Display how many customers you have or the number of downloads of your app.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Number"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/count-up-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),_={attributes:{uniqueId:"6b01660",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,k.__)("1,234,567",d.i18n),textTag:"p",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",contentAlign:"center"},innerBlocks:[]},A=[{attributes:f("3.12.11"),save:(0,m.withVersion)("3.12.11")(v),isEligible:e=>{const t=i.deprecateBlockShadowColor.isEligible(e),o=i.deprecateContainerShadowColor.isEligible(e),a=i.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:f("3.11.9"),save:(0,m.withVersion)("3.11.9")(v),isEligible:e=>{const t=i.deprecateContainerBackgroundColorOpacity.isEligible(e),o=i.deprecateBlockBackgroundColorOpacity.isEligible(e),a=i.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:f("3.7.9"),save:(0,m.withVersion)("3.7.9")(v),migrate:e=>{let t=i.deprecateContainerBackgroundColorOpacity.migrate(e);return t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateTypographyShadowColor.migrate("%s")(t),i.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var w=o(5531);const E={...S,icon:a.CountUpIcon,attributes:B,supports:{anchor:!0,align:!0,spacing:!0},example:_,deprecated:A,edit:h,save:C,substitute:w.default}},5531:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/count-up",transform:e=>["core/paragraph",{fontSize:"x-large",content:e.text,align:e.contentAlign,style:{spacing:{margin:{top:"0",bottom:"0"}}}}]},n=a},5161:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>P});var a=o(9467),n=o(2610),l=o(8333),i=o(7200),r=o(910),s=o(8003);const c=[{value:":",title:(0,s.__)("Colon",r.i18n)},{value:"|",title:(0,s.__)("Line",r.i18n)}],d=e=>{const{attributes:t}=e;return(0,n.createElement)("div",{className:"stk-block-countdown__divider-wrapper"},":"===t.dividerType&&(0,n.createElement)("div",{className:"stk-block-countdown__divider-colon"},":"),"|"===t.dividerType&&(0,n.createElement)("div",{className:"stk-block-countdown__divider-line"}))};d.Content=e=>{const{attributes:t}=e;return(0,n.createElement)("div",{className:"stk-block-countdown__divider-wrapper"},":"===t.dividerType&&(0,n.createElement)("div",{className:"stk-block-countdown__divider-colon"},":"),"|"===t.dividerType&&(0,n.createElement)("div",{className:"stk-block-countdown__divider-line"}))},d.InspectorControls=()=>{const e=(0,l.useBlockAttributesContext)((e=>e.hasDivider)),t=(0,l.useBlockAttributesContext)((e=>e.dividerType)),o=(0,l.useBlockSetAttributesContext)();return(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,s.__)("Separator",r.i18n),id:"divider",hasToggle:!0,checked:e,onChange:e=>o({hasDivider:e})},(0,n.createElement)(i.AdvancedToolbarControl,{controls:c,attribute:"dividerType",fullwidth:!0,default:":",isSmall:!1}),":"===t&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Size",r.i18n),min:1,sliderMin:1,sliderMax:100,attribute:"dividerSizeColon",placeholder:"45"}),":"===t&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Top Offset",r.i18n),min:-50,sliderMin:-50,sliderMax:50,attribute:"dividerTopOffset",placeholder:"-12"}),"|"===t&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Size",r.i18n),min:1,max:100,sliderMin:1,sliderMax:100,attribute:"dividerSizeLine",placeholder:"50"}),(0,n.createElement)(i.ColorPaletteControl,{label:(0,s.__)("Color",r.i18n),attribute:"dividerColor"})))},d.addAttributes=e=>{e.add({attributes:{hasDivider:{type:"boolean",default:!1},dividerType:{type:"string",default:":"},dividerColor:{type:"string",default:""},dividerSizeLine:{type:"number",default:""},dividerSizeColon:{type:"number",default:""},dividerTopOffset:{type:"number",default:""}},versionAdded:"3.6.0",versionDeprecated:""})},d.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""};e.addBlockStyles("dividerColor",[{...o,selectorCallback:e=>":"===e("dividerType")?".stk-block-countdown__divider-colon":".stk-block-countdown__divider-line",styleRuleCallback:e=>":"===e("dividerType")?"color":"backgroundColor",attrName:"dividerColor",key:"dividerColor",responsive:"all",dependencies:["dividerType"]}]),e.addBlockStyles("dividerSizeLine",[{...o,selector:".stk-block-countdown__divider-line",styleRule:"height",attrName:"dividerSizeLine",key:"dividerSizeLine",hasUnits:"%",responsive:"all"}]),e.addBlockStyles("dividerSizeColon",[{...o,selector:".stk-block-countdown__divider-colon",styleRule:"fontSize",attrName:"dividerSizeColon",key:"dividerSizeColon",hasUnits:"px",responsive:"all"}]),e.addBlockStyles("dividerTopOffset",[{...o,selector:".stk-block-countdown__divider-colon",styleRule:"top",attrName:"dividerTopOffset",key:"dividerTopOffset",hasUnits:"px",responsive:"all"}])};var u=o(9384);const b=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});b.addBlockStyles("contentAlignment",[{selector:".%s.stk-block-countdown .stk-block-countdown__container",styleRule:"display",responsive:"all",attrName:"contentAlignment",valueCallback:()=>"flex"},{selector:".%s.stk-block-countdown .stk-block-countdown__container",styleRule:"justifyContent",attrName:"contentAlignment",key:"contentAlignment",responsive:"all"}]),b.addBlockStyles("boxGap",[{selector:".%s.stk-block-countdown .stk-block-countdown__container",styleRule:"gap",attrName:"boxGap",key:"boxGap",responsive:"all",hasUnits:"px"}]),b.addBlockStyles("labelMarginTop",[{selector:".stk-block-countdown__label",styleRule:"marginTop",attrName:"labelMarginTop",key:"labelMarginTop",responsive:"all",hasUnits:"px"}]),d.addStyles(b),u.ContainerDiv.addStyles(b),u.Alignment.addStyles(b),u.BlockDiv.addStyles(b),u.Advanced.addStyles(b),u.Transform.addStyles(b),u.Typography.addStyles(b,{selector:".stk-block-countdown__digit",hoverSelector:".stk-block-countdown__digit:hover",attrNameTemplate:"digit%s"}),u.Typography.addStyles(b,{selector:".stk-block-countdown__label",hoverSelector:".stk-block-countdown__label:hover",attrNameTemplate:"label%s"}),u.Typography.addStyles(b,{selector:".stk-block-countdown__message",hoverSelector:".stk-block-countdown__message:hover",attrNameTemplate:"message%s"}),u.EffectsAnimations.addStyles(b);const m=b,p=3600,k=86400,g=(e,t)=>t&&e<10?"0"+e:e,h=e=>{const[t,o]=(0,n.useState)("");return(0,n.useEffect)((()=>{e.datetime||o(0);const t=isNaN(e.datetime)?Date.parse(e.datetime):e.datetime,a=((e,t,o,a)=>{let n=0;return isNaN(e)||(n+=e*k),isNaN(t)||(n+=t*p),isNaN(o)||(n+=60*o),isNaN(a)||(n+=1*a),n+Math.floor(Date.now()/1e3)})(e.daysLeft,e.hoursLeft,e.minutesLeft,e.secondsLeft),n=setInterval((()=>{const n=""!==e.timezone?{timeZone:e.timezone}:"";let l="dueDate"===e.countdownType?Math.floor(t/1e3-Math.floor(Date.parse((new Date).toLocaleString("en-US",n))/1e3)):a-Math.floor(Date.now()/1e3);switch(l<=0&&(l=0),e.type){case"days":o(g(Math.floor(l/k),e.isDoubleDigit));break;case"hours":o(g(Math.floor(l%k/p),e.isDoubleDigit));break;case"minutes":o(g(Math.floor(l%p/60),e.isDoubleDigit));break;default:o(g(Math.floor(l%60/1),e.isDoubleDigit))}}),1e3);return()=>{clearInterval(n)}}),[e.datetime,e.countdownType,e.daysLeft,e.hoursLeft,e.minutesLeft,e.secondsLeft,e.isDoubleDigit,e.timezone]),(0,n.createElement)("div",{className:e.className},t)};h.Content=e=>(0,n.createElement)("div",{className:e.className}),h.defaultProps={datetime:"",type:"seconds",value:0};const v=[{value:"",label:"Local Timezone"},{value:"America/Puerto_Rico",label:"Puerto Rico (Atlantic)"},{value:"America/New_York",label:"New York (Eastern)"},{value:"America/Chicago",label:"Chicago (Central)"},{value:"America/Denver",label:"Denver (Mountain)"},{value:"America/Phoenix",label:"Phoenix (MST)"},{value:"America/Los_Angeles",label:"Los Angeles (Pacific)"},{value:"America/Anchorage",label:"Anchorage (Alaska)"},{value:"Pacific/Honolulu",label:"Honolulu (Hawaii)"},{value:"America/Adak",label:"Adak"},{value:"America/Anchorage",label:"Anchorage"},{value:"America/Anguilla",label:"Anguilla"},{value:"America/Antigua",label:"Antigua"},{value:"America/Araguaina",label:"Araguaina"},{value:"America/Argentina/Buenos_Aires",label:"Argentina - Buenos Aires"},{value:"America/Argentina/Catamarca",label:"Argentina - Catamarca"},{value:"America/Argentina/ComodRivadavia",label:"Argentina - ComodRivadavia"},{value:"America/Argentina/Cordoba",label:"Argentina - Cordoba"},{value:"America/Argentina/Jujuy",label:"Argentina - Jujuy"},{value:"America/Argentina/La_Rioja",label:"Argentina - La Rioja"},{value:"America/Argentina/Mendoza",label:"Argentina - Mendoza"},{value:"America/Argentina/Rio_Gallegos",label:"Argentina - Rio Gallegos"},{value:"America/Argentina/Salta",label:"Argentina - Salta"},{value:"America/Argentina/San_Juan",label:"Argentina - San Juan"},{value:"America/Argentina/San_Luis",label:"Argentina - San Luis"},{value:"America/Argentina/Tucuman",label:"Argentina - Tucuman"},{value:"America/Argentina/Ushuaia",label:"Argentina - Ushuaia"},{value:"America/Aruba",label:"Aruba"},{value:"America/Asuncion",label:"Asuncion"},{value:"America/Atikokan",label:"Atikokan"},{value:"America/Atka",label:"Atka"},{value:"America/Bahia",label:"Bahia"},{value:"America/Barbados",label:"Barbados"},{value:"America/Belem",label:"Belem"},{value:"America/Belize",label:"Belize"},{value:"America/Blanc-Sablon",label:"Blanc-Sablon"},{value:"America/Boa_Vista",label:"Boa Vista"},{value:"America/Bogota",label:"Bogota"},{value:"America/Boise",label:"Boise"},{value:"America/Buenos_Aires",label:"Buenos Aires"},{value:"America/Cambridge_Bay",label:"Cambridge Bay"},{value:"America/Campo_Grande",label:"Campo Grande"},{value:"America/Cancun",label:"Cancun"},{value:"America/Caracas",label:"Caracas"},{value:"America/Catamarca",label:"Catamarca"},{value:"America/Cayenne",label:"Cayenne"},{value:"America/Cayman",label:"Cayman"},{value:"America/Chicago",label:"Chicago"},{value:"America/Chihuahua",label:"Chihuahua"},{value:"America/Coral_Harbour",label:"Coral Harbour"},{value:"America/Cordoba",label:"Cordoba"},{value:"America/Costa_Rica",label:"Costa Rica"},{value:"America/Cuiaba",label:"Cuiaba"},{value:"America/Curacao",label:"Curacao"},{value:"America/Danmarkshavn",label:"Danmarkshavn"},{value:"America/Dawson",label:"Dawson"},{value:"America/Dawson_Creek",label:"Dawson Creek"},{value:"America/Denver",label:"Denver"},{value:"America/Detroit",label:"Detroit"},{value:"America/Dominica",label:"Dominica"},{value:"America/Edmonton",label:"Edmonton"},{value:"America/Eirunepe",label:"Eirunepe"},{value:"America/El_Salvador",label:"El Salvador"},{value:"America/Ensenada",label:"Ensenada"},{value:"America/Fortaleza",label:"Fortaleza"},{value:"America/Fort_Wayne",label:"Fort Wayne"},{value:"America/Glace_Bay",label:"Glace Bay"},{value:"America/Godthab",label:"Godthab"},{value:"America/Goose_Bay",label:"Goose Bay"},{value:"America/Grand_Turk",label:"Grand Turk"},{value:"America/Grenada",label:"Grenada"},{value:"America/Guadeloupe",label:"Guadeloupe"},{value:"America/Guatemala",label:"Guatemala"},{value:"America/Guayaquil",label:"Guayaquil"},{value:"America/Guyana",label:"Guyana"},{value:"America/Halifax",label:"Halifax"},{value:"America/Havana",label:"Havana"},{value:"America/Hermosillo",label:"Hermosillo"},{value:"America/Indiana/Indianapolis",label:"Indiana - Indianapolis"},{value:"America/Indiana/Knox",label:"Indiana - Knox"},{value:"America/Indiana/Marengo",label:"Indiana - Marengo"},{value:"America/Indiana/Petersburg",label:"Indiana - Petersburg"},{value:"America/Indiana/Tell_City",label:"Indiana - Tell City"},{value:"America/Indiana/Vevay",label:"Indiana - Vevay"},{value:"America/Indiana/Vincennes",label:"Indiana - Vincennes"},{value:"America/Indiana/Winamac",label:"Indiana - Winamac"},{value:"America/Indianapolis",label:"Indianapolis"},{value:"America/Inuvik",label:"Inuvik"},{value:"America/Iqaluit",label:"Iqaluit"},{value:"America/Jamaica",label:"Jamaica"},{value:"America/Jujuy",label:"Jujuy"},{value:"America/Juneau",label:"Juneau"},{value:"America/Kentucky/Louisville",label:"Kentucky - Louisville"},{value:"America/Kentucky/Monticello",label:"Kentucky - Monticello"},{value:"America/Knox_IN",label:"Knox IN"},{value:"America/La_Paz",label:"La Paz"},{value:"America/Lima",label:"Lima"},{value:"America/Los_Angeles",label:"Los Angeles"},{value:"America/Louisville",label:"Louisville"},{value:"America/Maceio",label:"Maceio"},{value:"America/Managua",label:"Managua"},{value:"America/Manaus",label:"Manaus"},{value:"America/Marigot",label:"Marigot"},{value:"America/Martinique",label:"Martinique"},{value:"America/Matamoros",label:"Matamoros"},{value:"America/Mazatlan",label:"Mazatlan"},{value:"America/Mendoza",label:"Mendoza"},{value:"America/Menominee",label:"Menominee"},{value:"America/Merida",label:"Merida"},{value:"America/Mexico_City",label:"Mexico City"},{value:"America/Miquelon",label:"Miquelon"},{value:"America/Moncton",label:"Moncton"},{value:"America/Monterrey",label:"Monterrey"},{value:"America/Montevideo",label:"Montevideo"},{value:"America/Montreal",label:"Montreal"},{value:"America/Montserrat",label:"Montserrat"},{value:"America/Nassau",label:"Nassau"},{value:"America/New_York",label:"New York"},{value:"America/Nipigon",label:"Nipigon"},{value:"America/Nome",label:"Nome"},{value:"America/Noronha",label:"Noronha"},{value:"America/North_Dakota/Center",label:"North Dakota - Center"},{value:"America/North_Dakota/New_Salem",label:"North Dakota - New Salem"},{value:"America/Ojinaga",label:"Ojinaga"},{value:"America/Panama",label:"Panama"},{value:"America/Pangnirtung",label:"Pangnirtung"},{value:"America/Paramaribo",label:"Paramaribo"},{value:"America/Phoenix",label:"Phoenix"},{value:"America/Port-au-Prince",label:"Port-au-Prince"},{value:"America/Porto_Acre",label:"Porto Acre"},{value:"America/Port_of_Spain",label:"Port of Spain"},{value:"America/Porto_Velho",label:"Porto Velho"},{value:"America/Puerto_Rico",label:"Puerto Rico"},{value:"America/Rainy_River",label:"Rainy River"},{value:"America/Rankin_Inlet",label:"Rankin Inlet"},{value:"America/Recife",label:"Recife"},{value:"America/Regina",label:"Regina"},{value:"America/Resolute",label:"Resolute"},{value:"America/Rio_Branco",label:"Rio Branco"},{value:"America/Rosario",label:"Rosario"},{value:"America/Santa_Isabel",label:"Santa Isabel"},{value:"America/Santarem",label:"Santarem"},{value:"America/Santiago",label:"Santiago"},{value:"America/Santo_Domingo",label:"Santo Domingo"},{value:"America/Sao_Paulo",label:"Sao Paulo"},{value:"America/Scoresbysund",label:"Scoresbysund"},{value:"America/Shiprock",label:"Shiprock"},{value:"America/St_Barthelemy",label:"St Barthelemy"},{value:"America/St_Johns",label:"St Johns"},{value:"America/St_Kitts",label:"St Kitts"},{value:"America/St_Lucia",label:"St Lucia"},{value:"America/St_Thomas",label:"St Thomas"},{value:"America/St_Vincent",label:"St Vincent"},{value:"America/Swift_Current",label:"Swift Current"},{value:"America/Tegucigalpa",label:"Tegucigalpa"},{value:"America/Thule",label:"Thule"},{value:"America/Thunder_Bay",label:"Thunder Bay"},{value:"America/Tijuana",label:"Tijuana"},{value:"America/Toronto",label:"Toronto"},{value:"America/Tortola",label:"Tortola"},{value:"America/Vancouver",label:"Vancouver"},{value:"America/Virgin",label:"Virgin"},{value:"America/Whitehorse",label:"Whitehorse"},{value:"America/Winnipeg",label:"Winnipeg"},{value:"America/Yakutat",label:"Yakutat"},{value:"America/Yellowknife",label:"Yellowknife"},{value:"Europe/Amsterdam",label:"Amsterdam"},{value:"Europe/Andorra",label:"Andorra"},{value:"Europe/Athens",label:"Athens"},{value:"Europe/Belfast",label:"Belfast"},{value:"Europe/Belgrade",label:"Belgrade"},{value:"Europe/Berlin",label:"Berlin"},{value:"Europe/Bratislava",label:"Bratislava"},{value:"Europe/Brussels",label:"Brussels"},{value:"Europe/Bucharest",label:"Bucharest"},{value:"Europe/Budapest",label:"Budapest"},{value:"Europe/Chisinau",label:"Chisinau"},{value:"Europe/Copenhagen",label:"Copenhagen"},{value:"Europe/Dublin",label:"Dublin"},{value:"Europe/Gibraltar",label:"Gibraltar"},{value:"Europe/Guernsey",label:"Guernsey"},{value:"Europe/Helsinki",label:"Helsinki"},{value:"Europe/Isle_of_Man",label:"Isle of Man"},{value:"Europe/Istanbul",label:"Istanbul"},{value:"Europe/Jersey",label:"Jersey"},{value:"Europe/Kaliningrad",label:"Kaliningrad"},{value:"Europe/Kiev",label:"Kiev"},{value:"Europe/Lisbon",label:"Lisbon"},{value:"Europe/Ljubljana",label:"Ljubljana"},{value:"Europe/London",label:"London"},{value:"Europe/Luxembourg",label:"Luxembourg"},{value:"Europe/Madrid",label:"Madrid"},{value:"Europe/Malta",label:"Malta"},{value:"Europe/Mariehamn",label:"Mariehamn"},{value:"Europe/Minsk",label:"Minsk"},{value:"Europe/Monaco",label:"Monaco"},{value:"Europe/Moscow",label:"Moscow"},{value:"Europe/Nicosia",label:"Nicosia"},{value:"Europe/Oslo",label:"Oslo"},{value:"Europe/Paris",label:"Paris"},{value:"Europe/Podgorica",label:"Podgorica"},{value:"Europe/Prague",label:"Prague"},{value:"Europe/Riga",label:"Riga"},{value:"Europe/Rome",label:"Rome"},{value:"Europe/Samara",label:"Samara"},{value:"Europe/San_Marino",label:"San Marino"},{value:"Europe/Sarajevo",label:"Sarajevo"},{value:"Europe/Simferopol",label:"Simferopol"},{value:"Europe/Skopje",label:"Skopje"},{value:"Europe/Sofia",label:"Sofia"},{value:"Europe/Stockholm",label:"Stockholm"},{value:"Europe/Tallinn",label:"Tallinn"},{value:"Europe/Tirane",label:"Tirane"},{value:"Europe/Tiraspol",label:"Tiraspol"},{value:"Europe/Uzhgorod",label:"Uzhgorod"},{value:"Europe/Vaduz",label:"Vaduz"},{value:"Europe/Vatican",label:"Vatican"},{value:"Europe/Vienna",label:"Vienna"},{value:"Europe/Vilnius",label:"Vilnius"},{value:"Europe/Volgograd",label:"Volgograd"},{value:"Europe/Warsaw",label:"Warsaw"},{value:"Europe/Zagreb",label:"Zagreb"},{value:"Europe/Zaporozhye",label:"Zaporozhye"},{value:"Europe/Zurich",label:"Zurich"},{value:"Asia/Aden",label:"Aden"},{value:"Asia/Almaty",label:"Almaty"},{value:"Asia/Amman",label:"Amman"},{value:"Asia/Anadyr",label:"Anadyr"},{value:"Asia/Aqtau",label:"Aqtau"},{value:"Asia/Aqtobe",label:"Aqtobe"},{value:"Asia/Ashgabat",label:"Ashgabat"},{value:"Asia/Ashkhabad",label:"Ashkhabad"},{value:"Asia/Baghdad",label:"Baghdad"},{value:"Asia/Bahrain",label:"Bahrain"},{value:"Asia/Baku",label:"Baku"},{value:"Asia/Bangkok",label:"Bangkok"},{value:"Asia/Beirut",label:"Beirut"},{value:"Asia/Bishkek",label:"Bishkek"},{value:"Asia/Brunei",label:"Brunei"},{value:"Asia/Calcutta",label:"Calcutta"},{value:"Asia/Choibalsan",label:"Choibalsan"},{value:"Asia/Chongqing",label:"Chongqing"},{value:"Asia/Chungking",label:"Chungking"},{value:"Asia/Colombo",label:"Colombo"},{value:"Asia/Dacca",label:"Dacca"},{value:"Asia/Damascus",label:"Damascus"},{value:"Asia/Dhaka",label:"Dhaka"},{value:"Asia/Dili",label:"Dili"},{value:"Asia/Dubai",label:"Dubai"},{value:"Asia/Dushanbe",label:"Dushanbe"},{value:"Asia/Gaza",label:"Gaza"},{value:"Asia/Harbin",label:"Harbin"},{value:"Asia/Ho_Chi_Minh",label:"Ho Chi Minh"},{value:"Asia/Hong_Kong",label:"Hong Kong"},{value:"Asia/Hovd",label:"Hovd"},{value:"Asia/Irkutsk",label:"Irkutsk"},{value:"Asia/Istanbul",label:"Istanbul"},{value:"Asia/Jakarta",label:"Jakarta"},{value:"Asia/Jayapura",label:"Jayapura"},{value:"Asia/Jerusalem",label:"Jerusalem"},{value:"Asia/Kabul",label:"Kabul"},{value:"Asia/Kamchatka",label:"Kamchatka"},{value:"Asia/Karachi",label:"Karachi"},{value:"Asia/Kashgar",label:"Kashgar"},{value:"Asia/Kathmandu",label:"Kathmandu"},{value:"Asia/Katmandu",label:"Katmandu"},{value:"Asia/Kolkata",label:"Kolkata"},{value:"Asia/Krasnoyarsk",label:"Krasnoyarsk"},{value:"Asia/Kuala_Lumpur",label:"Kuala Lumpur"},{value:"Asia/Kuching",label:"Kuching"},{value:"Asia/Kuwait",label:"Kuwait"},{value:"Asia/Macao",label:"Macao"},{value:"Asia/Macau",label:"Macau"},{value:"Asia/Magadan",label:"Magadan"},{value:"Asia/Makassar",label:"Makassar"},{value:"Asia/Manila",label:"Manila"},{value:"Asia/Muscat",label:"Muscat"},{value:"Asia/Nicosia",label:"Nicosia"},{value:"Asia/Novokuznetsk",label:"Novokuznetsk"},{value:"Asia/Novosibirsk",label:"Novosibirsk"},{value:"Asia/Omsk",label:"Omsk"},{value:"Asia/Oral",label:"Oral"},{value:"Asia/Phnom_Penh",label:"Phnom Penh"},{value:"Asia/Pontianak",label:"Pontianak"},{value:"Asia/Pyongyang",label:"Pyongyang"},{value:"Asia/Qatar",label:"Qatar"},{value:"Asia/Qyzylorda",label:"Qyzylorda"},{value:"Asia/Rangoon",label:"Rangoon"},{value:"Asia/Riyadh",label:"Riyadh"},{value:"Asia/Saigon",label:"Saigon"},{value:"Asia/Sakhalin",label:"Sakhalin"},{value:"Asia/Samarkand",label:"Samarkand"},{value:"Asia/Seoul",label:"Seoul"},{value:"Asia/Shanghai",label:"Shanghai"},{value:"Asia/Singapore",label:"Singapore"},{value:"Asia/Taipei",label:"Taipei"},{value:"Asia/Tashkent",label:"Tashkent"},{value:"Asia/Tbilisi",label:"Tbilisi"},{value:"Asia/Tehran",label:"Tehran"},{value:"Asia/Tel_Aviv",label:"Tel Aviv"},{value:"Asia/Thimbu",label:"Thimbu"},{value:"Asia/Thimphu",label:"Thimphu"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Ujung_Pandang",label:"Ujung Pandang"},{value:"Asia/Ulaanbaatar",label:"Ulaanbaatar"},{value:"Asia/Ulan_Bator",label:"Ulan Bator"},{value:"Asia/Urumqi",label:"Urumqi"},{value:"Asia/Vientiane",label:"Vientiane"},{value:"Asia/Vladivostok",label:"Vladivostok"},{value:"Asia/Yakutsk",label:"Yakutsk"},{value:"Asia/Yekaterinburg",label:"Yekaterinburg"},{value:"Asia/Yerevan",label:"Yerevan"},{value:"Africa/Abidjan",label:"Abidjan"},{value:"Africa/Accra",label:"Accra"},{value:"Africa/Addis_Ababa",label:"Addis Ababa"},{value:"Africa/Algiers",label:"Algiers"},{value:"Africa/Asmara",label:"Asmara"},{value:"Africa/Asmera",label:"Asmera"},{value:"Africa/Bamako",label:"Bamako"},{value:"Africa/Bangui",label:"Bangui"},{value:"Africa/Banjul",label:"Banjul"},{value:"Africa/Bissau",label:"Bissau"},{value:"Africa/Blantyre",label:"Blantyre"},{value:"Africa/Brazzaville",label:"Brazzaville"},{value:"Africa/Bujumbura",label:"Bujumbura"},{value:"Africa/Cairo",label:"Cairo"},{value:"Africa/Casablanca",label:"Casablanca"},{value:"Africa/Ceuta",label:"Ceuta"},{value:"Africa/Conakry",label:"Conakry"},{value:"Africa/Dakar",label:"Dakar"},{value:"Africa/Dar_es_Salaam",label:"Dar es Salaam"},{value:"Africa/Djibouti",label:"Djibouti"},{value:"Africa/Douala",label:"Douala"},{value:"Africa/El_Aaiun",label:"El Aaiun"},{value:"Africa/Freetown",label:"Freetown"},{value:"Africa/Gaborone",label:"Gaborone"},{value:"Africa/Harare",label:"Harare"},{value:"Africa/Johannesburg",label:"Johannesburg"},{value:"Africa/Kampala",label:"Kampala"},{value:"Africa/Khartoum",label:"Khartoum"},{value:"Africa/Kigali",label:"Kigali"},{value:"Africa/Kinshasa",label:"Kinshasa"},{value:"Africa/Lagos",label:"Lagos"},{value:"Africa/Libreville",label:"Libreville"},{value:"Africa/Lome",label:"Lome"},{value:"Africa/Luanda",label:"Luanda"},{value:"Africa/Lubumbashi",label:"Lubumbashi"},{value:"Africa/Lusaka",label:"Lusaka"},{value:"Africa/Malabo",label:"Malabo"},{value:"Africa/Maputo",label:"Maputo"},{value:"Africa/Maseru",label:"Maseru"},{value:"Africa/Mbabane",label:"Mbabane"},{value:"Africa/Mogadishu",label:"Mogadishu"},{value:"Africa/Monrovia",label:"Monrovia"},{value:"Africa/Nairobi",label:"Nairobi"},{value:"Africa/Ndjamena",label:"Ndjamena"},{value:"Africa/Niamey",label:"Niamey"},{value:"Africa/Nouakchott",label:"Nouakchott"},{value:"Africa/Ouagadougou",label:"Ouagadougou"},{value:"Africa/Porto-Novo",label:"Porto-Novo"},{value:"Africa/Sao_Tome",label:"Sao Tome"},{value:"Africa/Timbuktu",label:"Timbuktu"},{value:"Africa/Tripoli",label:"Tripoli"},{value:"Africa/Tunis",label:"Tunis"},{value:"Africa/Windhoek",label:"Windhoek"},{value:"Australia/ACT",label:"ACT"},{value:"Australia/Adelaide",label:"Adelaide"},{value:"Australia/Brisbane",label:"Brisbane"},{value:"Australia/Broken_Hill",label:"Broken Hill"},{value:"Australia/Canberra",label:"Canberra"},{value:"Australia/Currie",label:"Currie"},{value:"Australia/Darwin",label:"Darwin"},{value:"Australia/Eucla",label:"Eucla"},{value:"Australia/Hobart",label:"Hobart"},{value:"Australia/LHI",label:"LHI"},{value:"Australia/Lindeman",label:"Lindeman"},{value:"Australia/Lord_Howe",label:"Lord Howe"},{value:"Australia/Melbourne",label:"Melbourne"},{value:"Australia/North",label:"North"},{value:"Australia/NSW",label:"NSW"},{value:"Australia/Perth",label:"Perth"},{value:"Australia/Queensland",label:"Queensland"},{value:"Australia/South",label:"South"},{value:"Australia/Sydney",label:"Sydney"},{value:"Australia/Tasmania",label:"Tasmania"},{value:"Australia/Victoria",label:"Victoria"},{value:"Australia/West",label:"West"},{value:"Australia/Yancowinna",label:"Yancowinna"},{value:"Indian/Antananarivo",label:"Antananarivo"},{value:"Indian/Chagos",label:"Chagos"},{value:"Indian/Christmas",label:"Christmas"},{value:"Indian/Cocos",label:"Cocos"},{value:"Indian/Comoro",label:"Comoro"},{value:"Indian/Kerguelen",label:"Kerguelen"},{value:"Indian/Mahe",label:"Mahe"},{value:"Indian/Maldives",label:"Maldives"},{value:"Indian/Mauritius",label:"Mauritius"},{value:"Indian/Mayotte",label:"Mayotte"},{value:"Indian/Reunion",label:"Reunion"},{value:"Atlantic/Azores",label:"Azores"},{value:"Atlantic/Bermuda",label:"Bermuda"},{value:"Atlantic/Canary",label:"Canary"},{value:"Atlantic/Cape_Verde",label:"Cape Verde"},{value:"Atlantic/Faeroe",label:"Faeroe"},{value:"Atlantic/Faroe",label:"Faroe"},{value:"Atlantic/Jan_Mayen",label:"Jan Mayen"},{value:"Atlantic/Madeira",label:"Madeira"},{value:"Atlantic/Reykjavik",label:"Reykjavik"},{value:"Atlantic/South_Georgia",label:"South Georgia"},{value:"Atlantic/Stanley",label:"Stanley"},{value:"Atlantic/St_Helena",label:"St Helena"},{value:"Pacific/Apia",label:"Apia"},{value:"Pacific/Auckland",label:"Auckland"},{value:"Pacific/Chatham",label:"Chatham"},{value:"Pacific/Easter",label:"Easter"},{value:"Pacific/Efate",label:"Efate"},{value:"Pacific/Enderbury",label:"Enderbury"},{value:"Pacific/Fakaofo",label:"Fakaofo"},{value:"Pacific/Fiji",label:"Fiji"},{value:"Pacific/Funafuti",label:"Funafuti"},{value:"Pacific/Galapagos",label:"Galapagos"},{value:"Pacific/Gambier",label:"Gambier"},{value:"Pacific/Guadalcanal",label:"Guadalcanal"},{value:"Pacific/Guam",label:"Guam"},{value:"Pacific/Honolulu",label:"Honolulu"},{value:"Pacific/Johnston",label:"Johnston"},{value:"Pacific/Kiritimati",label:"Kiritimati"},{value:"Pacific/Kosrae",label:"Kosrae"},{value:"Pacific/Kwajalein",label:"Kwajalein"},{value:"Pacific/Majuro",label:"Majuro"},{value:"Pacific/Marquesas",label:"Marquesas"},{value:"Pacific/Midway",label:"Midway"},{value:"Pacific/Nauru",label:"Nauru"},{value:"Pacific/Niue",label:"Niue"},{value:"Pacific/Norfolk",label:"Norfolk"},{value:"Pacific/Noumea",label:"Noumea"},{value:"Pacific/Pago_Pago",label:"Pago Pago"},{value:"Pacific/Palau",label:"Palau"},{value:"Pacific/Pitcairn",label:"Pitcairn"},{value:"Pacific/Ponape",label:"Ponape"},{value:"Pacific/Port_Moresby",label:"Port Moresby"},{value:"Pacific/Rarotonga",label:"Rarotonga"},{value:"Pacific/Saipan",label:"Saipan"},{value:"Pacific/Samoa",label:"Samoa"},{value:"Pacific/Tahiti",label:"Tahiti"},{value:"Pacific/Tarawa",label:"Tarawa"},{value:"Pacific/Tongatapu",label:"Tongatapu"},{value:"Pacific/Truk",label:"Truk"},{value:"Pacific/Wake",label:"Wake"},{value:"Pacific/Wallis",label:"Wallis"},{value:"Pacific/Yap",label:"Yap"},{value:"Antarctica/Casey",label:"Casey"},{value:"Antarctica/Davis",label:"Davis"},{value:"Antarctica/DumontDUrville",label:"DumontDUrville"},{value:"Antarctica/Macquarie",label:"Macquarie"},{value:"Antarctica/Mawson",label:"Mawson"},{value:"Antarctica/McMurdo",label:"McMurdo"},{value:"Antarctica/Palmer",label:"Palmer"},{value:"Antarctica/Rothera",label:"Rothera"},{value:"Antarctica/South_Pole",label:"South Pole"},{value:"Antarctica/Syowa",label:"Syowa"},{value:"Antarctica/Troll",label:"Troll"},{value:"Antarctica/Vostok",label:"Vostok"},{value:"Arctic/Longyearbyen",label:"Longyearbyen"}];var C=o(4184),y=o.n(C),f=o(9783),B=o(3749),S=o(7537),_=o(78),A=o(3882);const w=[{value:"dueDate",title:(0,s.__)("Due Date",r.i18n)},{value:"recurring",title:(0,s.__)("Recurring",r.i18n)}],E=[{label:(0,s.__)("None",r.i18n),value:""},{label:(0,s.__)("Hide Block",r.i18n),value:"hide"},{label:(0,s.__)("Display Message Upon Expiration",r.i18n),value:"showMessage"}],T=e=>{if(e.contentAlignment)return"stk-block-countdown--aligned"},x=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,s.__)("General",r.i18n),id:"countdown",initialOpen:!0},(0,n.createElement)(i.AdvancedToolbarControl,{controls:w,attribute:"countdownType",fullwidth:!0,isSmall:!1,allowReset:!1,onChange:t=>{"recurring"===t?e.setAttributes({countdownType:"recurring",actionOnExpiration:"",timezone:""}):e.setAttributes({countdownType:"dueDate",daysLeft:"",hoursLeft:"",minutesLeft:"",secondsLeft:"",restartInterval:"",timezone:""})}}),(0,n.createElement)("h3",{className:"components-base-control__label"},"dueDate"===e.countdownType?(0,s.__)("End Date",r.i18n):(0,s.__)("Start Date",r.i18n)),(0,n.createElement)(S.DateTimePicker,{currentDate:e.date,is12Hour:!0,onChange:t=>{e.setAttributes({date:t.slice(0,t.length-3)})},__nextRemoveResetButton:!0}),(0,n.createElement)(i.AdvancedSelectControl,{label:(0,s.__)("Timezone",r.i18n),options:v,attribute:"timezone",allowReset:!1}),"dueDate"===e.countdownType&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AdvancedSelectControl,{label:(0,s.__)("Action on Expiration",r.i18n),options:E,defaultValue:"",attribute:"actionOnExpiration"}),"showMessage"===e.actionOnExpiration),"recurring"===e.countdownType&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)("h3",{className:"components-base-control__label"},(0,s.__)("Countdown Duration",r.i18n)),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Days",r.i18n),min:0,max:364,attribute:"daysLeft"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Hours",r.i18n),min:0,max:23,attribute:"hoursLeft"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Minutes",r.i18n),min:0,max:59,attribute:"minutesLeft"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Seconds",r.i18n),min:0,max:59,attribute:"secondsLeft"}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Restart Countdown After no. of Hours",r.i18n),min:0,maxSlider:10,attribute:"restartInterval"})),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,s.__)("Enable Double Digit",r.i18n),attribute:"isDoubleDigitHidden",defaultValue:!1}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Box Gap",r.i18n),min:0,sliderMax:50,attribute:"boxGap",placeholder:"16"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,s.__)("Label Top Margin",r.i18n),min:0,sliderMax:50,attribute:"labelMarginTop",placeholder:"8"}))),(0,n.createElement)(u.Typography.InspectorControls,{label:(0,s.__)("Digits",r.i18n),attrNameTemplate:"digit%s",hasTextTag:!1,hasTextContent:!1,initialOpen:!1}),(0,n.createElement)(u.Typography.InspectorControls,{label:(0,s.__)("Labels",r.i18n),attrNameTemplate:"label%s",hasTextTag:!1,hasTextContent:!1,initialOpen:!1}),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(i.AlignButtonsControl,{label:(0,s.__)("Content Alignment",r.i18n),responsive:"all",attribute:"contentAlignment"})),(0,n.createElement)(d.InspectorControls,null),(0,n.createElement)(u.BlockDiv.InspectorControls,null),(0,n.createElement)(u.Advanced.InspectorControls,null),(0,n.createElement)(u.Transform.InspectorControls,null),(0,n.createElement)(u.ContainerDiv.InspectorControls,{hasContentVerticalAlign:!0,sizeSelector:".stk-block-countdown__content"}),"showMessage"===e.actionOnExpiration&&(0,n.createElement)(u.Typography.InspectorControls,{label:(0,s.__)("Expired Message",r.i18n),attrNameTemplate:"message%s",hasTextTag:!0,hasTextContent:!0,initialOpen:!1}),(0,n.createElement)(u.EffectsAnimations.InspectorControls,null),(0,n.createElement)(u.CustomAttributes.InspectorControls,null),(0,n.createElement)(u.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-countdown"}),(0,n.createElement)(u.Responsive.InspectorControls,null),(0,n.createElement)(u.ConditionalDisplay.InspectorControls,null)))),I=(0,B.compose)(f.withBlockWrapperIsHovered,f.withQueryLoopContext,f.withBlockAttributeContext)((e=>{const{className:t,setAttributes:o,attributes:a}=e,l=(0,u.getTypographyClasses)(a,"digit%s"),c=(0,u.getTypographyClasses)(a,"label%s"),b=(0,u.getTypographyClasses)(a,"message%s"),p=y()([t,"stk-block-countdown",T(a)]),k=y()(["stk-block-countdown__content-container"]),g=y()(["stk-block-countdown__digit","stk-block-countdown__digit-day",l]),v=y()(["stk-block-countdown__digit","stk-block-countdown__digit-hour",l]),C=y()(["stk-block-countdown__digit","stk-block-countdown__digit-minute",l]),f=y()(["stk-block-countdown__digit","stk-block-countdown__digit-second",l]),B=y()(["stk-block-countdown__label-day","stk-block-countdown__label",c]),S=y()(["stk-block-countdown__label-hour","stk-block-countdown__label",c]),_=y()(["stk-block-countdown__label-minute","stk-block-countdown__label",c]),A=y()(["stk-block-countdown__label-second","stk-block-countdown__label",c]),w=y()(["stk-block-countdown__message",b]),E=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:r.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(x,{setAttributes:o,countdownType:a.countdownType,date:a.date,actionOnExpiration:a.actionOnExpiration}),E&&(0,n.createElement)("style",{key:"block-css"},E),(0,n.createElement)(u.CustomCSS,{mainBlockClass:"stk-block-countdown"}),(0,n.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:p},(0,n.createElement)("div",{className:"stk-block-countdown__container"},a.dayShow&&(0,n.createElement)(u.ContainerDiv,{className:k},(0,n.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,n.createElement)(h,{className:g,type:"days",datetime:a.date,countdownType:a.countdownType,timezone:a.timezone,daysLeft:a.daysLeft,hoursLeft:a.hoursLeft,minutesLeft:a.minutesLeft,secondsLeft:a.secondsLeft,isDoubleDigit:a.isDoubleDigitHidden}),(0,n.createElement)(u.Typography,{identifier:"day",tagName:"p",className:B,attrNameTemplate:"day%s",placeholder:(0,s.__)("Days",r.i18n),allowedFormats:[]}))),a.hasDivider&&a.dayShow&&(0,n.createElement)(d,{attributes:a}),a.hourShow&&(0,n.createElement)(u.ContainerDiv,{className:k},(0,n.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,n.createElement)(h,{className:v,type:"hours",datetime:a.date,countdownType:a.countdownType,timezone:a.timezone,daysLeft:a.daysLeft,hoursLeft:a.hoursLeft,minutesLeft:a.minutesLeft,secondsLeft:a.secondsLeft,isDoubleDigit:a.isDoubleDigitHidden}),(0,n.createElement)(u.Typography,{identifier:"hour",tagName:"p",className:S,attrNameTemplate:"hour%s",placeholder:(0,s.__)("Hours",r.i18n),allowedFormats:[]}))),a.hasDivider&&a.hourShow&&(0,n.createElement)(d,{attributes:a}),a.minuteShow&&(0,n.createElement)(u.ContainerDiv,{className:k},(0,n.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,n.createElement)(h,{className:C,type:"minutes",datetime:a.date,countdownType:a.countdownType,timezone:a.timezone,daysLeft:a.daysLeft,hoursLeft:a.hoursLeft,minutesLeft:a.minutesLeft,secondsLeft:a.secondsLeft,isDoubleDigit:a.isDoubleDigitHidden}),(0,n.createElement)(u.Typography,{identifier:"minute",tagName:"p",className:_,attrNameTemplate:"minute%s",placeholder:(0,s.__)("Minutes",r.i18n),allowedFormats:[]}))),a.hasDivider&&a.minuteShow&&a.secondShow&&(0,n.createElement)(d,{attributes:a}),a.secondShow&&(0,n.createElement)(u.ContainerDiv,{className:k},(0,n.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,n.createElement)(h,{className:f,type:"seconds",datetime:a.date,countdownType:a.countdownType,timezone:a.timezone,daysLeft:a.daysLeft,hoursLeft:a.hoursLeft,minutesLeft:a.minutesLeft,secondsLeft:a.secondsLeft,isDoubleDigit:a.isDoubleDigitHidden}),(0,n.createElement)(u.Typography,{identifier:"second",tagName:"p",className:A,attrNameTemplate:"second%s",placeholder:(0,s.__)("Seconds",r.i18n),allowedFormats:[]})))),"showMessage"===a.actionOnExpiration&&(0,n.createElement)(u.Typography,{identifier:"message",className:w,attrNameTemplate:"message%s"})),e.isHovered&&(0,n.createElement)(u.MarginBottom,null))}));(0,A.addFilter)("stackable.block-component.typography.before","stackable/posts",((e,t)=>{const{name:o}=(0,_.useBlockEditContext)();return"stackable/countdown"!==o||"label%s"!==t.attrNameTemplate?e:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AdvancedToggleControl,{label:(0,s.__)("Days",r.i18n),attribute:"dayShow",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,s.__)("Hours",r.i18n),attribute:"hourShow",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,s.__)("Minutes",r.i18n),attribute:"minuteShow",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,s.__)("Seconds",r.i18n),attribute:"secondShow",defaultValue:!0}),(0,n.createElement)(i.AdvancedTextControl,{label:(0,s.__)("Days Label",r.i18n),attribute:"dayText",placeholder:"Days",default:(0,s.__)("Days",r.i18n)}),(0,n.createElement)(i.AdvancedTextControl,{label:(0,s.__)("Hours Label",r.i18n),attribute:"hourText",placeholder:"Hours",default:(0,s.__)("Hours",r.i18n)}),(0,n.createElement)(i.AdvancedTextControl,{label:(0,s.__)("Minutes Label",r.i18n),attribute:"minuteText",placeholder:"Minutes",default:(0,s.__)("Minutes",r.i18n)}),(0,n.createElement)(i.AdvancedTextControl,{label:(0,s.__)("Seconds Label",r.i18n),attribute:"secondText",placeholder:"Seconds",default:(0,s.__)("Seconds",r.i18n)}))}));const z=e=>{const{className:t,attributes:o}=e;let a="";"recurring"===o.countdownType&&(a=86400*o.daysLeft+3600*o.hoursLeft+60*o.minutesLeft+1*o.secondsLeft);const l=(0,u.getResponsiveClasses)(e.attributes),i=(0,u.getTypographyClasses)(o,"digit%s"),r=(0,u.getTypographyClasses)(o,"label%s"),s=(0,u.getTypographyClasses)(o,"message%s"),c=y()([t,"stk-block-countdown",l,T(o)]),b=y()(["stk-block-countdown__content-container"]),m=y()(["stk-block-countdown__digit","stk-block-countdown__digit-day",i]),p=y()(["stk-block-countdown__digit","stk-block-countdown__digit-hour",i]),k=y()(["stk-block-countdown__digit","stk-block-countdown__digit-minute",i]),g=y()(["stk-block-countdown__digit","stk-block-countdown__digit-second",i]),v=y()(["stk-block-countdown__label-day","stk-block-countdown__label",r]),C=y()(["stk-block-countdown__label-hour","stk-block-countdown__label",r]),f=y()(["stk-block-countdown__label-minute","stk-block-countdown__label",r]),B=y()(["stk-block-countdown__label-second","stk-block-countdown__label",r]),S=y()(["stk-block-countdown__message",s]);return(0,n.createElement)(u.BlockDiv.Content,{className:c,attributes:o,"data-stk-countdown-date":o.date,"data-stk-countdown-duration":a,"data-stk-countdown-restart-interval":o.restartInterval,"data-stk-countdown-type":o.countdownType,"data-stk-countdown-action":o.actionOnExpiration,"data-stk-countdown-timezone":o.timezone,"data-stk-countdown-is-double-digit":o.isDoubleDigitHidden,version:e.version,"data-v":e.attributes.version},(0,n.createElement)(u.CustomCSS.Content,{attributes:o}),(0,n.createElement)("div",{className:"stk-block-countdown__container"},o.generatedCss&&(0,n.createElement)("style",null,o.generatedCss),o.dayShow&&(0,n.createElement)(u.ContainerDiv.Content,{className:b,attributes:o},(0,n.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,n.createElement)(h.Content,{className:m}),(0,n.createElement)(u.Typography.Content,{className:v,attrNameTemplate:"day%s",attributes:o}))),o.hasDivider&&o.dayShow&&(0,n.createElement)(d.Content,{attributes:o}),o.hourShow&&(0,n.createElement)(u.ContainerDiv.Content,{className:b,attributes:o},(0,n.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,n.createElement)(h.Content,{className:p}),(0,n.createElement)(u.Typography.Content,{className:C,attrNameTemplate:"hour%s",attributes:o}))),o.hasDivider&&o.hourShow&&(0,n.createElement)(d.Content,{attributes:o}),o.minuteShow&&(0,n.createElement)(u.ContainerDiv.Content,{className:b,attributes:o},(0,n.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,n.createElement)(h.Content,{className:k}),(0,n.createElement)(u.Typography.Content,{className:f,attrNameTemplate:"minute%s",attributes:o}))),o.hasDivider&&o.minuteShow&&o.secondShow&&(0,n.createElement)(d.Content,{attributes:o}),o.secondShow&&(0,n.createElement)(u.ContainerDiv.Content,{className:b,attributes:o},(0,n.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,n.createElement)(h.Content,{className:g}),(0,n.createElement)(u.Typography.Content,{className:B,attrNameTemplate:"second%s",attributes:o})))),"showMessage"===o.actionOnExpiration&&(0,n.createElement)(u.Typography.Content,{className:S,attrNameTemplate:"message%s",attributes:o}))},M=(0,B.compose)((0,f.withVersion)(r.version))(z);var H=o(7545);const N={countdownType:{type:"string",selector:"[data-stk-countdown-type]",source:"attribute",attribute:"data-stk-countdown-type",default:"dueDate"},date:{type:"string",selector:"[data-stk-countdown-date]",source:"attribute",attribute:"data-stk-countdown-date",default:(0,o(3162).date)("Y-m-d\\TH:i",Date.now()+3456e5)},restartInterval:{type:"string",selector:"[data-stk-countdown-restart-interval]",source:"attribute",attribute:"data-stk-countdown-restart-interval",default:""},actionOnExpiration:{type:"string",selector:"[data-stk-countdown-action]",source:"attribute",attribute:"data-stk-countdown-action",default:""},timezone:{type:"string",selector:"[data-stk-countdown-timezone]",source:"attribute",attribute:"data-stk-countdown-timezone",default:""},isDoubleDigitAttribute:{type:"string",selector:"[data-stk-countdown-is-double-digit]",source:"attribute",attribute:"data-stk-countdown-is-double-digit",default:""},isDoubleDigitHidden:{type:"boolean",default:!1},dayText:{type:"string",selector:".stk-block-countdown__label-day",source:"text",default:(0,s.__)("Days",r.i18n)},hourText:{type:"string",selector:".stk-block-countdown__label-hour",source:"text",default:(0,s.__)("Hours",r.i18n)},minuteText:{type:"string",selector:".stk-block-countdown__label-minute",source:"text",default:(0,s.__)("Minutes",r.i18n)},secondText:{type:"string",selector:".stk-block-countdown__label-second",source:"text",default:(0,s.__)("Seconds",r.i18n)},daysLeft:{type:"number",default:""},hoursLeft:{type:"number",default:""},minutesLeft:{type:"number",default:""},secondsLeft:{type:"number",default:""},boxGap:{type:"number",default:""},labelMarginTop:{type:"number",default:""},dayShow:{type:"boolean",default:!0},hourShow:{type:"boolean",default:!0},minuteShow:{type:"boolean",default:!0},secondShow:{type:"boolean",default:!0},contentAlignment:{type:"string",default:""}},D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.version;const t=new H.AttributeObject;return d.addAttributes(t),u.BlockDiv.addAttributes(t),u.ContainerDiv.addAttributes(t),u.Style.addAttributes(t),u.EffectsAnimations.addAttributes(t),u.CustomAttributes.addAttributes(t),u.CustomCSS.addAttributes(t),u.Responsive.addAttributes(t),u.ConditionalDisplay.addAttributes(t),u.Advanced.addAttributes(t),u.Transform.addAttributes(t),u.Alignment.addAttributes(t),u.MarginBottom.addAttributes(t),u.Typography.addAttributes(t,".stk-block-countdown__digit",{hasTextTag:!1,hasTextContent:!1,attrNameTemplate:"digit%s"}),u.Typography.addAttributes(t,".stk-block-countdown__label",{hasTextTag:!1,hasTextContent:!1,attrNameTemplate:"label%s"}),u.Typography.addAttributes(t,".stk-block-countdown__message",{hasTextTag:!0,hasTextContent:!0,attrNameTemplate:"message%s"}),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0},...N},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},O=D(r.version),L=JSON.parse('{"apiVersion":3,"name":"stackable/countdown","title":"Countdown","description":"Display a countdown timer on your website.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Timer"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/countdown-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),R=[{attributes:D("3.12.11"),save:(0,f.withVersion)("3.12.11")(z),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:e=>{let t={...e};return t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateTypographyGradientColor.migrate("digit%s")(t),t=u.deprecateTypographyGradientColor.migrate("label%s")(t),t=u.deprecateTypographyGradientColor.migrate("message%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t}},{attributes:D("3.11.9"),save:(0,f.withVersion)("3.11.9")(z),isEligible:e=>{const t=u.deprecateContainerBackgroundColorOpacity.isEligible(e),o=u.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version,n=u.deprecateTypographyGradientColor.isEligible("digit%s")(e),l=u.deprecateTypographyGradientColor.isEligible("label%s")(e),i=u.deprecateTypographyGradientColor.isEligible("message%s")(e);return t||o||a||n||l||i},migrate:e=>{let t={...e};return t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateTypographyGradientColor.migrate("digit%s")(t),t=u.deprecateTypographyGradientColor.migrate("label%s")(t),t=u.deprecateTypographyGradientColor.migrate("message%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t}},{attributes:D("3.7.9"),save:(0,f.withVersion)("3.7.9")(z),isEligible:e=>e.version<2||void 0===e.version,migrate:e=>{let t={...e};const o=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&o&&(t={...t,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateTypographyGradientColor.migrate("digit%s")(t),t=u.deprecateTypographyGradientColor.migrate("label%s")(t),t=u.deprecateTypographyGradientColor.migrate("message%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t}},{attributes:D("3.7.9"),save:(0,f.withVersion)("3.7.9")(z),migrate:e=>{let t=u.deprecateContainerBackgroundColorOpacity.migrate(e);return t=u.deprecateTypographyGradientColor.migrate("digit%s")(t),t=u.deprecateTypographyGradientColor.migrate("label%s")(t),t=u.deprecateTypographyGradientColor.migrate("message%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),u.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var U=o(8948);const P={...L,icon:a.CountdownIcon,edit:I,save:M,example:{attributes:{uniqueId:"32ce10a"},innerBlocks:[]},deprecated:R,attributes:O,supports:{anchor:!0,align:["center","wide","full"],spacing:!0},substitute:U.default}},8948:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/countdown",transform:e=>["stackable/columns",{...e},[["stackable/column",{align:"center"},[["core/paragraph",{fontSize:"x-large",content:"3",align:"center",style:{spacing:{margin:{top:"0",bottom:"0"}}}}],["core/paragraph",{content:"Days",align:"center",style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]],["stackable/column",{align:"center"},[["core/paragraph",{fontSize:"x-large",content:"16",align:"center",style:{spacing:{margin:{top:"0",bottom:"0"}}}}],["core/paragraph",{content:"Hours",align:"center",style:{spacing:{margin:{top:"0",bottom:"0"}}}}]]]]]},n=a},1646:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>C});var a=o(9467),n=o(2610);const l="dist/images/block-design-library-preview.f1220a2.jpg";var i=o(910),r=o(7200),s=o(9384),c=o(7545),d=o(7397),u=o(8003),b=o(3284),m=o(378),p=o(3882),k=o(7537),g=o(78);const h=(e,t,o,a)=>{const n=i.settings.stackable_block_states||{};let l=!1;const r=e=>e.map((e=>{let t=!0,o=10;for(;t&&o>0;){const a=e[0];t=(e=(0,c.substituteCoreIfDisabled)(...e,d.c))[0]in n&&n[e[0]]===c.BLOCK_STATE.DISABLED,l||a===e[0]||(l=!0),o--}return e[2]&&e[2].length>0&&(e[2]=r(e[2])),Array.isArray(e[2])||(e[2]=[]),e}));if([e,t,o]=r([[e,t,o]])[0],l&&alert("Notice: Disabled blocks in the design will be substituted with other Stackable or core blocks"),"Wireframes"===a.uikit){(0,m.getBlockVariations)(e).length>0||(t.uniqueId="");const a=e=>{e.forEach((e=>{const t=e[0];!((0,m.getBlockType)(t)&&(0,m.getBlockVariations)(t).length>0)&&e[1].uniqueId&&delete e[1].uniqueId,a(e[2])}))};a(o)}const u=e.replace(/^\w+\//g,""),b=e=>{null==e||e.forEach((e=>{try{let t=e[1];t=s.deprecateContainerBackgroundColorOpacity.migrate(t),t=s.deprecateBlockBackgroundColorOpacity.migrate(t),t=s.deprecateTypographyGradientColor.migrate("%s")(t),e[1]=t,b(e[2])}catch(e){}}))};b(o),(0,p.addFilter)(`stackable.${u}.design.filtered-block-attributes`,"stackable.design-library.attributes--migrate-to-new-color-picker",(e=>{let t={...e};return t=s.deprecateContainerBackgroundColorOpacity.migrate(t),t=s.deprecateBlockBackgroundColorOpacity.migrate(t),t=s.deprecateTypographyGradientColor.migrate("%s")(t),t}));const k=(0,p.applyFilters)(`stackable.${u}.design.filtered-block-attributes`,t);return(0,m.createBlock)(e,k,(0,m.createBlocksFromInnerBlocksTemplate)(o))},v=e=>(0,m.parse)(e),C={...JSON.parse('{"apiVersion":3,"name":"stackable/design-library","title":"Design Library","description":"Choose a layout or block from the Stackable Design Library.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Template"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/designs/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-available-states":["enabled","hidden"]}'),icon:a.StackableIcon,attributes:{previewMode:{type:"boolean",default:!1}},supports:{stkSaveBlockStyle:!1},example:{attributes:{previewMode:!0}},edit:e=>{const{clientId:t,attributes:o}=e,[s,c]=(0,n.useState)(!1),d=(0,g.useBlockProps)({className:"ugb-design-library-block"});if(o.previewMode){const e=l.match(/https?:/i)?l:i.srcUrl?`${i.srcUrl}/${l}`:l;return(0,n.createElement)("div",{className:"ugb-design-library-block"},(0,n.createElement)("img",{src:e,alt:"design-library"}))}return(0,n.createElement)("div",d,(0,n.createElement)(k.Placeholder,{icon:(0,n.createElement)(a.SVGStackableIcon,null),label:(0,u.__)("Stackable Design Library",i.i18n),instructions:(0,u.__)("Open the Design Library and select a pre-designed block or layout.",i.i18n)},(0,n.createElement)(r.Button,{isSecondary:!0,className:"ugb-design-library-block__button",onClick:()=>{c(!0)}},(0,u.__)("Open Design Library",i.i18n))),s&&(0,n.createElement)(r.ModalDesignLibrary,{onClose:()=>{c(!1)},onSelect:function(e,o){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const n=Array.isArray(e)?e:[e],l=Array.isArray(o)?o:[o],i=n.reduce(((e,t,o)=>{const a=l[o],{name:n,attributes:i,innerBlocks:r,serialized:s}=t;if(n&&i){const t=h(n,(0,p.applyFilters)("stackable.design-library.attributes",i),r||[],a);e.push(t)}else s?e.push(v(s)):console.error("Design library selection failed: No block data found");return e}),[]);i.length&&((0,b.dispatch)("core/block-editor").replaceBlocks(t,i),a&&a())}}))},save:()=>null}},1191:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>T});var a=o(9467),n=o(2610),l=o(9384),i=o(8333),r=o(7200),s=o(910),c=o(7545),d=o(7462);o(7294);var u=o(8003);const b=[{name:"default",label:(0,u.__)("Default",s.i18n),isDefault:!0,icon:function(e){return(0,n.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M8 23h32v2H8v-2z",fillRule:"evenodd",clipRule:"evenodd"}))}},{name:"bar",label:(0,u.__)("Bar",s.i18n),icon:function(e){return(0,n.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M8 24.5A1.5 1.5 0 019.5 23h29a1.5 1.5 0 010 3h-29A1.5 1.5 0 018 24.5z",fillRule:"evenodd",clipRule:"evenodd"}))}},{name:"dots",label:(0,u.__)("Dots",s.i18n),icon:function(e){return(0,n.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M18 24.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm7 0a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm5.5 1.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",fillRule:"evenodd",clipRule:"evenodd"}))}},{name:"asterisks",label:(0,u.__)("Asterisks",s.i18n),icon:function(e){return(0,n.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,n.createElement)("path",{d:"M17.279 24.77L17.182 26h.531l-.113-1.23 1.006.691.265-.474-1.118-.491 1.11-.499-.257-.466-1.006.7.121-1.231h-.547l.113 1.23-1.014-.7-.265.475 1.11.483-1.118.49.282.491.997-.7zM24.182 26l.097-1.23-.997.7-.282-.491 1.118-.491-1.11-.483.265-.474 1.014.7L24.174 23h.547l-.12 1.23 1.005-.7.257.467-1.11.499 1.118.49-.265.475-1.006-.692.113 1.231h-.53zm7 0l.097-1.23-.997.7-.282-.491 1.118-.491-1.11-.483.265-.474 1.014.7L31.174 23h.547l-.12 1.23 1.005-.7.257.467-1.11.499 1.118.49-.265.475-1.006-.692.113 1.231h-.53z",fillRule:"evenodd",clipRule:"evenodd"}))}}],m=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});m.addBlockStyles("color",[{selectorCallback:e=>{var t;const o=null===(t=(0,i.getBlockStyle)(b,e("className")||""))||void 0===t?void 0:t.name;return"dots"===o?".stk-block-divider__dot":"asterisks"===o?".stk-block-divider__dot:before":"hr.stk-block-divider__hr"},styleRuleCallback:e=>{var t;return"asterisks"===(null===(t=(0,i.getBlockStyle)(b,e("className")||""))||void 0===t?void 0:t.name)?"color":"background"},attrName:"color",key:"color",dependencies:["className"]}]),m.addBlockStyles("height",[{selector:".stk-block-divider__dot:before",styleRule:"fontSize",attrName:"height",key:"height-dot",responsive:"all",format:"calc(%spx * 1.8)",enabledCallback:e=>{var t;return"asterisks"===(null===(t=(0,i.getBlockStyle)(b,e("className")||""))||void 0===t?void 0:t.name)},dependencies:["className"]}]),m.addBlockStyles("height",[{selector:"hr.stk-block-divider__hr",styleRule:"borderRadius",attrName:"height",key:"height-hr",responsive:"all",format:"calc(%spx / 2)",enabledCallback:e=>{var t;return"bar"===(null===(t=(0,i.getBlockStyle)(b,e("className")||""))||void 0===t?void 0:t.name)},dependencies:["className"]}]),m.addBlockStyles("height",[{selector:".stk-block-divider__dot",styleRule:"width",attrName:"height",key:"height-dot-width",responsive:"all",format:"%spx",enabledCallback:e=>{var t;const o=null===(t=(0,i.getBlockStyle)(b,e("className")||""))||void 0===t?void 0:t.name;return["dots","asterisks"].includes(o)},dependencies:["className"]}]),m.addBlockStyles("height",[{selectorCallback:e=>{var t;const o=null===(t=(0,i.getBlockStyle)(b,e("className")||""))||void 0===t?void 0:t.name;return["dots","asterisks"].includes(o)?".stk-block-divider__dot":"hr.stk-block-divider__hr"},styleRule:"height",attrName:"height",key:"height-hr-height",format:"%spx",responsive:"all",dependencies:["className"]}]),m.addBlockStyles("width",[{selectorCallback:e=>{var t;const o=null===(t=(0,i.getBlockStyle)(b,e("className")||""))||void 0===t?void 0:t.name;return["dots","asterisks"].includes(o)?".stk-block-divider__dots":"hr.stk-block-divider__hr"},styleRule:"width",attrName:"width",key:"width",format:"%s%",responsive:"all",dependencies:["className"]}]),l.Alignment.addStyles(m),l.BlockDiv.addStyles(m),l.Advanced.addStyles(m),l.Transform.addStyles(m),l.EffectsAnimations.addStyles(m);const p=m;var k=o(4184),g=o.n(k),h=o(9783),v=o(3749);const C=(0,n.memo)((()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(r.InspectorTabs,null),(0,n.createElement)(l.BlockStyle.InspectorControls,{styles:b},(0,n.createElement)(r.ColorPaletteControl,{label:(0,u.__)("Color",s.i18n),attribute:"color"}),(0,n.createElement)(r.AdvancedRangeControl,{label:(0,u.__)("Width",s.i18n)+" (%)",responsive:"all",attribute:"width",min:1,max:100,placeholder:""}),(0,n.createElement)(r.AdvancedRangeControl,{label:(0,u.__)("Height / Size",s.i18n),responsive:"all",attribute:"height",min:1,sliderMax:100,placeholder:""})),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-divider"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),y=(0,v.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext)((e=>{const{className:t}=e,o=(0,l.getAlignmentClasses)(e.attributes),a=(0,i.useBlockStyle)(b),c=g()([t,"stk-block-divider",o]),d=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:s.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(C,null),d&&(0,n.createElement)("style",{key:"block-css"},d),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-divider"}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c},["dots","asterisks"].includes(a)?(0,n.createElement)("div",{className:"stk-block-divider__dots","aria-hidden":"true"},(0,n.createElement)("div",{className:"stk-block-divider__dot"}),(0,n.createElement)("div",{className:"stk-block-divider__dot"}),(0,n.createElement)("div",{className:"stk-block-divider__dot"})):(0,n.createElement)("hr",{className:"stk-block-divider__hr"})),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))})),f=e=>{const{className:t,attributes:o}=e,a=(0,l.getResponsiveClasses)(e.attributes),r=(0,l.getAlignmentClasses)(e.attributes),{name:s}=(0,i.getBlockStyle)(b,t||o.className)||{},c=g()([t,"stk-block-divider",a,r]);return(0,n.createElement)(l.BlockDiv.Content,{className:c,attributes:o,version:e.version},o.generatedCss&&(0,n.createElement)("style",null,o.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:o}),["dots","asterisks"].includes(s)?(0,n.createElement)("div",{className:"stk-block-divider__dots","aria-hidden":"true"},(0,n.createElement)("div",{className:"stk-block-divider__dot"}),(0,n.createElement)("div",{className:"stk-block-divider__dot"}),(0,n.createElement)("div",{className:"stk-block-divider__dot"})):(0,n.createElement)("hr",{className:"stk-block-divider__hr"}))},B=(0,v.compose)((0,h.withVersion)(s.version))(f),S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.version;const t=new c.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.Alignment.addAttributes(t),l.MarginBottom.addAttributes(t),t.add({attributes:{color:{type:"string",default:""},height:{stkResponsive:!0,type:"number",default:""},width:{stkResponsive:!0,type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},_=S(s.version),A=JSON.parse('{"apiVersion":3,"name":"stackable/divider","title":"Divider","description":"Add a pause between your content.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Horizontal Rule","HR"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}'),w=[{attributes:S("3.12.11"),save:(0,h.withVersion)("3.12.11")(f),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:S("3.11.9"),save:(0,h.withVersion)("3.11.9")(f),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:S("3.7.9"),save:(0,h.withVersion)("3.7.9")(f),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var E=o(9939);const T={...A,icon:a.DividerIcon,attributes:_,supports:{align:["center","wide","full"],anchor:!0,spacing:!0},example:{attributes:{uniqueId:"93e7eca",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},color:"#28303D",height:16,width:69,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",className:"is-style-bar"},innerBlocks:[]},deprecated:w,edit:y,save:B,substitute:E.default}},9939:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/divider",transform:()=>["core/separator"]},n=a},7138:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>x});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});l.Alignment.addStyles(r),l.BlockDiv.addStyles(r),l.Column.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r);const s=r;var c=o(4184),d=o.n(c),u=o(910),b=o(9783),m=o(3749),p=o(78),k=o(8003),g=o(3882);const h=[["stackable/text",{text:(0,k.__)("Some short text that can be expanded to show more details.",u.i18n),className:"stk-block-expand__short-text",customAttributes:[["aria-hidden","false"]]}],["stackable/button",{text:(0,k.__)("Show more",u.i18n),linkUrl:"#",className:"is-style-link stk-block-expand__show-button",customAttributes:[["aria-hidden","false"],["role","button"],["aria-expanded","false"]]}],["stackable/text",{text:(0,k.__)("Some long text that will be expanded when the show more button is clicked by the visitor.",u.i18n),className:"stk-block-expand__more-text",customAttributes:[["aria-hidden","true"]]}],["stackable/button",{text:(0,k.__)("Show less",u.i18n),linkUrl:"#",className:"is-style-link stk-block-expand__hide-button",customAttributes:[["aria-hidden","true"],["role","button"],["aria-expanded","true"]]}]],v=(0,n.memo)((()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-expand"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null),(0,n.createElement)(i.InspectorBlockControls,null,(0,n.createElement)(i.InspectorBottomTip,null))))),C=(0,m.compose)(b.withBlockWrapperIsHovered,b.withQueryLoopContext,b.withBlockAttributeContext)((e=>{const{className:t}=e,o=(0,l.getAlignmentClasses)(e.attributes),a=d()([t,"stk-block-expand"]),r=d()(["stk-inner-blocks",o,"stk-block-content"]),c=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:u.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(v,null),c&&(0,n.createElement)("style",{key:"block-css"},c),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-expand"}),(0,n.createElement)("style",null,`.stk-block.stk-block-expand .stk-block-expand__short-text::before { content: "${(0,k.__)("Less text",u.i18n)}" !important; }`),(0,n.createElement)("style",null,`.stk-block.stk-block-expand .stk-block-expand__more-text::before { content: "${(0,k.__)("More text",u.i18n)}" !important; }`),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:a},(0,n.createElement)("div",{className:r},(0,n.createElement)(p.InnerBlocks,{template:h,templateLock:"all",orientation:"horizontal"}))),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))}));(0,g.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/expand",((e,t)=>"stackable/expand"!==(null==t?void 0:t.name)&&e)),(0,g.addFilter)("stackable.edit.button.enable-link","stackable/expand",((e,t)=>"stackable/expand"!==(null==t?void 0:t.name)&&e)),(0,g.addFilter)("stackable.edit.link.enable-link-popup","stackable/expand",((e,t)=>"stackable/expand"!==(null==t?void 0:t.name)&&e)),(0,g.addFilter)("stackable.block-default-styles.use-saved-style","stackable/expand",((e,t,o)=>!("stackable/button"===t.name&&o.length>=1&&"stackable/expand"===o[o.length-1])&&e));const y=e=>{const{attributes:t}=e,o=(0,l.getAlignmentClasses)(e.attributes),a=(0,l.getResponsiveClasses)(e.attributes),i=d()([e.className,"stk-block-expand",a]),r=d()(["stk-inner-blocks",o,"stk-block-content"]);return(0,n.createElement)(l.BlockDiv.Content,{className:i,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,n.createElement)("div",{className:r},(0,n.createElement)(p.InnerBlocks.Content,null)))},f=(0,m.compose)((0,b.withVersion)(u.version))(y);var B=o(7545);const S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.version;const t=new B.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.Row.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),t.addDefaultValues({attributes:{customAttributes:[["aria-expanded","false"]]},versionAdded:"3.0.0",versionDeprecated:"3.9.1"}),t.getMerged(e)},_=S(u.version),A=JSON.parse('{"apiVersion":3,"name":"stackable/expand","title":"Expand / Show More","description":"Display a small snippet of text. Your readers can toggle it to show more information.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Hide","Less"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/expand-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/text","stackable/button-group|button"]}'),w={attributes:{uniqueId:"76cbc5c",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[["aria-expanded","false"]],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/text",attributes:{uniqueId:"f06aeac",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[["aria-hidden","false"]],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,k.__)("Some short text that can be expanded to show more details.",u.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"stk-block-expand__short-text"},innerBlocks:[]},{name:"stackable/button",attributes:{uniqueId:"8ea90fc",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[["aria-hidden","false"],["role","button"]],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkUrl:"#",linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,k.__)("Show more",u.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"is-style-link stk-block-expand__show-button"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"45a5d67",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[["aria-hidden","true"]],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,k.__)("Some long text that will be expanded when the show more button is clicked by the visitor.",u.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"stk-block-expand__more-text"},innerBlocks:[]},{name:"stackable/button",attributes:{uniqueId:"ff2b0aa",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[["aria-hidden","true"],["role","button"]],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkUrl:"#",linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,k.__)("Show less",u.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"is-style-link stk-block-expand__hide-button"},innerBlocks:[]}]},E=[{attributes:S("3.12.11"),save:(0,b.withVersion)("3.12.11")(y),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:S("3.11.9"),save:(0,b.withVersion)("3.11.9")(y),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:S("3.7.9"),save:(0,b.withVersion)("3.7.9")(y),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var T=o(9302);const x={...A,icon:a.ExpandIcon,attributes:_,supports:{anchor:!0,stkDefaultTab:"layout",spacing:!0},example:w,deprecated:E,edit:C,save:f,substitute:T.default}},9302:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/expand",transform:(e,t)=>["stackable/text",{text:t[2][1].text}]},n=a},1850:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(9467),n=o(910),l=o(8003),i=o(3882),r=o(7462),s=o(2610);o(7294);const c=(0,i.applyFilters)("stackable.feature-grid.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Default",n.i18n)),attributes:{className:"is-style-default",innerBlockContentAlign:"alignwide",align:"wide"},isActive:["className"],pickerTitle:(0,l.__)("Default",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 9H9v30h30V9zM9 7a2 2 0 00-2 2v30a2 2 0 002 2h30a2 2 0 002-2V9a2 2 0 00-2-2H9zm21 10a6 6 0 11-12 0 6 6 0 0112 0zm2 8H16v2h16v-2zm-4 8v3h-8v-3h8zm7-2v-2H14v2h21z"}))},isDefault:!0,innerBlocks:[["stackable/column",{hasContainer:!0},[["stackable/image"],["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h3"}],["stackable/text",{text:(0,l._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n),buttonBackgroundColor:"transparent",className:"is-style-plain"}]]]]],["stackable/column",{hasContainer:!0},[["stackable/image"],["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h3"}],["stackable/text",{text:(0,l._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n),buttonBackgroundColor:"transparent",className:"is-style-plain"}]]]]],["stackable/column",{hasContainer:!0},[["stackable/image"],["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h3"}],["stackable/text",{text:(0,l._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n),buttonBackgroundColor:"transparent",className:"is-style-plain"}]]]]]],scope:["block"]},{name:"float",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Float",n.i18n)),attributes:{innerBlockContentAlign:"alignwide",className:"is-style-float",align:"full"},isActive:["className"],pickerTitle:(0,l.__)("Float",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a6 6 0 100-12 6 6 0 000 12zm28 1H19v2h21v-2zm-21 5h24v2H19v-2zm8.5 5H19v3h8.5v-3z"}))},innerBlocks:[["stackable/column",{contentAlign:"left",containerPadding:{left:80}},[["stackable/image",{imageShape:"circle",imageHeight:150,imageWidth:150,blockMargin:{top:"",right:"",bottom:"",left:-80},imageWidthUnit:"px"}],["stackable/heading",{text:(0,l.__)("Title",n.i18n),textTag:"h3"}],["stackable/text",{text:(0,l._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n),buttonBackgroundColor:"transparent",buttonBorderType:"solid",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",className:"is-style-ghost"}]]]]],["stackable/column",{contentAlign:"left",containerPadding:{left:80}},[["stackable/image",{imageShape:"circle",imageHeight:150,imageWidth:150,blockMargin:{top:"",right:"",bottom:"",left:-80},imageWidthUnit:"px"}],["stackable/heading",{text:(0,l.__)("Title",n.i18n),textTag:"h3"}],["stackable/text",{text:(0,l._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n),buttonBackgroundColor:"transparent",buttonBorderType:"solid",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",className:"is-style-ghost"}]]]]]],scope:["block"]},{name:"horizontal",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Horizontal",n.i18n)),attributes:{className:"is-style-horizontal"},isActive:["className"],pickerTitle:(0,l.__)("Horizontal",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.5 13h-37v21h37V13zm-37-2a2 2 0 00-2 2v21a2 2 0 002 2h37a2 2 0 002-2V13a2 2 0 00-2-2h-37zM20 23a6 6 0 11-12 0 6 6 0 0112 0zm16-5H22.5v2H36v-2zm-13.5 8H30v3h-7.5v-3zM39 22H22.5v2H39v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"large-mid",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Large Mid",n.i18n)),attributes:{className:"is-style-large-mid"},isActive:["className"],pickerTitle:(0,l.__)("Large Mid",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41 8H23v32h18V8zM23 6a2 2 0 00-2 2v32a2 2 0 002 2h18a2 2 0 002-2V8a2 2 0 00-2-2H23zm14 10a5 5 0 11-10 0 5 5 0 0110 0zm0 10v-2H27v2h10zm1 3v2H26v-2h12zm-1 8v-3H27v3h10zM17 16a5 5 0 11-10 0 5 5 0 0110 0zm0 8H7v2h10v-2zM6 29h12v2H6v-2zm11 5H7v3h10v-3z"}))},isPremium:!n.isPro,scope:["block"]},{name:"offset",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Offset",n.i18n)),attributes:{className:"is-style-offset"},isActive:["className"],pickerTitle:(0,l.__)("Offset",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12h-9.083a6.002 6.002 0 00-11.834 0H9a2 2 0 00-2 2v24a2 2 0 002 2h30a2 2 0 002-2V14a2 2 0 00-2-2zm-9.083 2a6.002 6.002 0 01-11.834 0H9v24h30V14h-9.083zM32 22H15v2h17v-2zm2 5v2H14v-2h20zm-7 8v-3h-6v3h6z"}))},isPremium:!n.isPro,scope:["block"]},{name:"zigzag",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Zizag",n.i18n)),attributes:{className:"is-style-zigzag"},isActive:["className"],pickerTitle:(0,l.__)("Zigzag",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27 6h16v32H27V6zm-2 0a2 2 0 012-2h16a2 2 0 012 2v32a2 2 0 01-2 2H27a2 2 0 01-2-2V6zm10 13a5 5 0 100-10 5 5 0 000 10zm4 3v2h-8v-2h8zm1 7v-2H30v2h10zm-1 3v3h-8v-3h8zM5 9h16v32H5V9zM3 9a2 2 0 012-2h16a2 2 0 012 2v32a2 2 0 01-2 2H5a2 2 0 01-2-2V9zm15 8a5 5 0 11-10 0 5 5 0 0110 0zm-1 10v-2H9v2h8zm1 3v2H8v-2h10zm-1 8v-3H9v3h8z"}))},isPremium:!n.isPro,scope:["block"]}]);var d=o(9384),u=o(7200);const b=new u.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});d.Alignment.addStyles(b,{editorSelectorCallback:e=>`.stk--block-align-${e("uniqueId")} > .block-editor-inner-blocks > .block-editor-block-list__layout`}),d.BlockDiv.addStyles(b),d.Column.addStyles(b),d.Advanced.addStyles(b),d.Transform.addStyles(b),d.EffectsAnimations.addStyles(b),d.Separator.addStyles(b),d.Columns.addStyles(b);const m=b;var p=o(4184),k=o.n(p),g=o(9783),h=o(3749),v=o(3284);const C=["stackable/column"],y=c[0].innerBlocks,f=(0,s.memo)((()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(u.InspectorTabs,null),(0,s.createElement)(d.Columns.InspectorControls,null),(0,s.createElement)(u.InspectorLayoutControls,null,(0,s.createElement)(u.ControlSeparator,null)),(0,s.createElement)(d.ContentAlign.InspectorControls,null),(0,s.createElement)(d.Alignment.InspectorControls,{hasColumnJustify:!0,hasRowAlignment:!0}),(0,s.createElement)(d.BlockDiv.InspectorControls,null),(0,s.createElement)(d.Separator.InspectorControls,null),(0,s.createElement)(d.Advanced.InspectorControls,null),(0,s.createElement)(d.Transform.InspectorControls,null),(0,s.createElement)(d.EffectsAnimations.InspectorControls,null),(0,s.createElement)(d.CustomAttributes.InspectorControls,null),(0,s.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-feature-grid"}),(0,s.createElement)(d.Responsive.InspectorControls,null),(0,s.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,s.createElement)(u.InspectorStyleControls,null,(0,s.createElement)(u.InspectorBottomTip,null))))),B=(0,h.compose)(g.withBlockWrapperIsHovered,g.withQueryLoopContext,g.withBlockAttributeContext)((e=>{const{className:t}=e,{hasInnerBlocks:o}=(0,v.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor");return{hasInnerBlocks:o(e.clientId).length>0}}),[e.clientId]),a=(0,d.getRowClasses)(e.attributes),l=(0,d.getSeparatorClasses)(e.attributes),i=(0,d.getAlignmentClasses)(e.attributes),[r,c]=u.ColumnInnerBlocks.useContext(),b=k()([t,"stk-block-feature-grid","stk-block-columns",a,l,c],{"stk--column-wrap-desktop":e.attributes.columnWrapDesktop}),p=k()(["stk-inner-blocks",i,"stk-block-content"],(0,d.getContentAlignmentClasses)(e.attributes)),g=(0,u.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:n.version});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(f,null),g&&(0,s.createElement)("style",{key:"block-css"},g),(0,s.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-feature-grid"}),(0,s.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b,enableVariationPicker:!0},(0,s.createElement)(d.Separator,null,(0,s.createElement)("div",{className:p},(0,s.createElement)(u.ColumnInnerBlocks,{providerValue:r,template:y,allowedBlocks:C,orientation:"horizontal",renderAppender:!1})))),e.isHovered&&o&&(0,s.createElement)(d.MarginBottom,null))}));var S=o(78);const _=e=>{const{attributes:t}=e,o=(0,d.getRowClasses)(e.attributes),a=(0,d.getSeparatorClasses)(e.attributes),n=(0,d.getAlignmentClasses)(e.attributes),l=(0,d.getResponsiveClasses)(e.attributes),r=k()((0,i.applyFilters)("stackable.feature-grid.save.blockClassNames",[[e.className,"stk-block-feature-grid","stk-block-columns",l,a,{"stk--column-wrap-desktop":t.columnWrapDesktop}]],e)),c=k()([o,"stk-inner-blocks",n,"stk-block-content"],(0,d.getContentAlignmentClasses)(t));return(0,s.createElement)(d.BlockDiv.Content,{className:r,attributes:t,version:e.version},t.generatedCss&&(0,s.createElement)("style",null,t.generatedCss),(0,s.createElement)(d.CustomCSS.Content,{attributes:t}),(0,s.createElement)(d.Separator.Content,{attributes:t},(0,s.createElement)("div",{className:c},(0,s.createElement)(S.InnerBlocks.Content,null))))},A=(0,h.compose)((0,g.withVersion)(n.version))(_);var w=o(7545);const E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.version;const t=new w.AttributeObject;return d.BlockDiv.addAttributes(t),d.Columns.addAttributes(t),d.Style.addAttributes(t),d.Row.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.Separator.addAttributes(t),d.ContentAlign.addAttributes(t),t.add({attributes:{columnArrangement:{stkResponsive:!0,type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{contentAlign:"center"},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},T=E(n.version),x=JSON.parse('{"apiVersion":3,"name":"stackable/feature-grid","title":"Feature Grid","description":"Display multiple product features or services. You can use Feature Grids one after another.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/columnWrapDesktop":"columnWrapDesktop"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/feature-grid-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/image","stackable/heading","stackable/text","stackable/button-group","stackable/button"]}'),I={attributes:{uniqueId:"150ccfb",hasBackground:!1,hasBorders:!1,contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},innerBlockContentAlign:"alignwide",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",align:"full",className:"is-style-default"},innerBlocks:[{name:"stackable/column",attributes:{uniqueId:"b195383",hasBackground:!1,hasBorders:!1,hasContainer:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/image",attributes:{uniqueId:"9fbcacb",hasBackground:!1,hasBorders:!1,imageShow:!0,imageUrl:"https://source.unsplash.com/400x300/?donut",imageSize:"full",imageHeight:75,imageWidth:75,imageShape:"circle",imageShapeStretch:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",imageWidthUnitTablet:"%",imageWidthUnitMobile:"%"},innerBlocks:[]},{name:"stackable/heading",attributes:{uniqueId:"0edd499",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,l.__)("Title for This Block",n.i18n),textTag:"h3",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"635f14c",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,l.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",n.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"b37a0ec",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"11990c0",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"transparent",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,l.__)("Button",n.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"is-style-plain"},innerBlocks:[]}]}]},{name:"stackable/column",attributes:{uniqueId:"8d99f14",hasBackground:!1,hasBorders:!1,hasContainer:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/image",attributes:{uniqueId:"744652d",hasBackground:!1,hasBorders:!1,imageShow:!0,imageUrl:"https://source.unsplash.com/400x300/?coffee",imageSize:"full",imageHeight:75,imageWidth:75,imageShape:"circle",imageShapeStretch:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",imageWidthUnitTablet:"%",imageWidthUnitMobile:"%"},innerBlocks:[]},{name:"stackable/heading",attributes:{uniqueId:"03761ef",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,l.__)("Title for This Block",n.i18n),textTag:"h3",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"0d46d83",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,l.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",n.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"fe6e7e0",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"b0a3903",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"transparent",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,l.__)("Button",n.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"is-style-plain"},innerBlocks:[]}]}]}]};var z=o(4247),M=o.n(z);(0,i.addFilter)("stackable.feature-grid.save.blockClassNames","stackable/3.13.3",((e,t)=>{if(1===M()(t.version,"3.13.3"))return e;const o=(0,d.getSeparatorClasses)(t.attributes),a=(0,d.getResponsiveClasses)(t.attributes),n=[t.className,"stk-block-feature-grid",a,o];return t.attributes.columnWrapDesktop&&n.push("stk--column-wrap-desktop"),n})),(0,i.addFilter)("stackable.feature-grid.save.blockClassNames","stackable/3.1.0",((e,t)=>{if(1===M()(t.version,"3.1.0"))return e;const o=(0,d.getSeparatorClasses)(t.attributes),a=(0,d.getResponsiveClasses)(t.attributes);return[t.className,"stk-block-feature-grid",a,o]}));const H=[{attributes:E("3.12.11"),save:(0,g.withVersion)("3.12.11")(_),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),n=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e),l=!!e.columnFit;return t||o||a||n||l},migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateShadowColor.migrate("topSeparator%s")(t),t=d.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:E("3.11.9"),save:(0,g.withVersion)("3.11.9")(_),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=!!e.columnFit;return t||o||a},migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateShadowColor.migrate("topSeparator%s")(t),t=d.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:E("3.7.3"),save:(0,g.withVersion)("3.7.3")(_),isEligible:e=>!!e.columnFit,migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateShadowColor.migrate("topSeparator%s")(t),t=d.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:E("3.1.0"),save:(0,g.withVersion)("3.1.0")(_)}];var N=o(7666);const D={...x,icon:a.FeatureGridIcon,attributes:T,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:I,deprecated:H,variations:c,edit:B,save:A,substitute:N.default}},7666:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/feature-grid",transform:(e,t)=>["stackable/columns",{...e,contentAlign:"center"},t]},n=a},1733:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(9467),n=o(910),l=o(8003),i=o(3882),r=o(7462),s=o(2610);o(7294);const c=(0,i.applyFilters)("stackable.feature.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Default",n.i18n)),attributes:{className:"is-style-default"},isActive:["className"],pickerTitle:(0,l.__)("Default",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 31V16H27v15h15zM23 16H6v2h17v-2zM6 22h17v2H6v-2zm8 6H6v3h8v-3z"}))},isDefault:!0,innerBlocks:[["stackable/column",{columnAlign:"center"},[["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n)}],["stackable/text",{text:(0,l._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n)}]]]]],["stackable/column",{templateLock:"insert",columnAlign:"center"},[["stackable/image",{}]]]],scope:["block"]},{name:"horizontal",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Horizontal",n.i18n)),attributes:{className:"is-style-horizontal",align:"full",innerBlockContentAlign:"alignwide"},isActive:["className"],pickerTitle:(0,l.__)("Horizontal",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 16v15H27V16h15zM6 16h17v2H6v-2zm7 6H6v2h7v-2zm3 0h7v2h-7v-2zm-2 6H6v3h8v-3z"}))},innerBlocks:[["stackable/column",{columnAlign:"center"},[["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h2"}],["stackable/columns",{},[["stackable/column",{align:"full"},[["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h3"}],["stackable/text",{text:(0,l._x)("Description for this block. Use this space for describing your block.","Content placeholder",n.i18n)}]]],["stackable/column",{},[["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h3"}],["stackable/text",{text:(0,l._x)("Description for this block. Use this space for describing your block.","Content placeholder",n.i18n)}]]]]],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n)}]]]]],["stackable/column",{templateLock:"insert",columnAlign:"center"},[["stackable/image",{}]]]],scope:["block"]},{name:"overlap-shape-1",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Shape 1",n.i18n)),attributes:{className:"is-style-overlap-shape-1"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Shape 1",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 16h16v16H6V16zm-2 0a2 2 0 012-2h16a2 2 0 011.99 1.796v-.006c.967-.62 2.07-1.13 3.382-1.439 3.785-.883 9.314-.088 12.755 2.238 3.418 2.31 4.772 6.152 3.258 9.243-1.491 3.091-5.85 5.446-10.461 6.506-3.09.71-6.293.839-9.079.434A2 2 0 0122 34H6a2 2 0 01-2-2V16zm6 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-shape-2",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Shape 2",n.i18n)),attributes:{className:"is-style-overlap-shape-2"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Shape 2",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.127 12.589c3.418 2.31 4.772 6.152 3.258 9.243-1.491 3.091-5.85 5.446-10.461 6.506-3.033.697-6.175.834-8.924.456V36a2 2 0 01-2 2H6a2 2 0 01-2-2V20a2 2 0 012-2h11.323c.306-.309.628-.622.96-.942a74.172 74.172 0 001.957-1.962c1.846-1.915 3.822-3.964 7.132-4.745 3.785-.883 9.314-.088 12.755 2.238zM6 20h16v16H6V20zm4 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-shape-3",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Shape 3",n.i18n)),attributes:{className:"is-style-overlap-shape-3"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Shape 3",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12h16v16H6V12zm-2 0a2 2 0 012-2h16a2 2 0 012 2v7.783a10.753 10.753 0 013.372-1.432c3.785-.883 9.314-.088 12.755 2.238 3.418 2.31 4.772 6.152 3.258 9.243-1.491 3.091-5.85 5.446-10.461 6.506-4.611 1.06-9.475.824-12.824-.544-3.275-1.33-5.122-3.742-5.1-5.794H6a2 2 0 01-2-2V12zm6 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-shape-4",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Shape 4",n.i18n)),attributes:{className:"is-style-overlap-shape-4"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Shape 4",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.46 11.997c4.007 2.676 5.594 7.125 3.819 10.704-1.07 2.188-3.396 4.059-6.279 5.462V36a2 2 0 01-2 2H16a2 2 0 01-2-2v-6.027a15.45 15.45 0 01-1.02-.37c-3.954-1.585-6.133-4.5-5.972-6.92.155-1.981 1.877-3.631 3.84-5.511a85.742 85.742 0 002.295-2.272c2.165-2.217 4.481-4.59 8.362-5.493 4.438-1.023 10.92-.102 14.954 2.59zM16 20h16v16H16V20zm4 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-shape-5",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Shape 5",n.i18n)),attributes:{className:"is-style-overlap-shape-5"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Shape 5",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 11h16v16H16V11zm-2 0a2 2 0 012-2h16a2 2 0 012 2v6.687c.885.375 1.714.813 2.46 1.31 4.007 2.676 5.594 7.125 3.819 10.704-1.748 3.579-6.859 6.306-12.265 7.533-5.406 1.227-11.108.954-15.035-.63-3.953-1.586-6.132-4.5-5.97-6.92.154-1.982 1.876-3.632 3.839-5.512.434-.416.88-.844 1.324-1.289.324-.32.646-.65.971-.983l.001-.001c.282-.289.566-.58.856-.87V11zm6 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-background-1",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Background 1",n.i18n)),attributes:{className:"is-style-overlap-background-1"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Background 1",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 11h28v26H16v-3H6a2 2 0 01-2-2V16a2 2 0 012-2h10v-3zM6 16h16v16H6V16zm4 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-background-2",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Background 2",n.i18n)),attributes:{className:"is-style-overlap-background-2"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Background 2",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8h28v26H24v3a2 2 0 01-2 2H6a2 2 0 01-2-2V21a2 2 0 012-2h10V8zM6 21h16v16H6V21zm4 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-background-3",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Background 3",n.i18n)),attributes:{className:"is-style-overlap-background-3"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Background 3",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10h16v16H6V10zm-2 0a2 2 0 012-2h16a2 2 0 012 2v3h20v26H16V28H6a2 2 0 01-2-2V10zm6 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-background-4",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Background 4",n.i18n)),attributes:{className:"is-style-overlap-background-4"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Background 4",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 8h34v23h-7v6a2 2 0 01-2 2H16a2 2 0 01-2-2v-6H7V8zm9 13h16v16H16V21zm4 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]},{name:"overlap-background-5",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Overlap Background 5",n.i18n)),attributes:{className:"is-style-overlap-background-5"},isActive:["className"],pickerTitle:(0,l.__)("Overlap Background 5",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 12h16v16H16V12zm-2 0a2 2 0 012-2h16a2 2 0 012 2v3h7v23H7V15h7v-3zm6 4h8v2h-8v-2zm8 6h-8v2h8v-2z"}))},isPremium:!n.isPro,scope:["block"]}]);var d=o(9384),u=o(7200);const b=new u.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});b.addBlockStyles("rowGap",[{renderIn:"save",selector:".%s-column",styleRule:"--stk-row-gap",attrName:"rowGap",key:"rowGap-save",format:"%spx",responsive:"all"},{renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"--stk-row-gap",attrName:"rowGap",key:"rowGap",format:"%spx",responsive:"all"}]),b.addBlockStyles("columnWrapDesktop",[{renderIn:"save",styleRule:"--stk-feature-flex-wrap",attrName:"columnWrapDesktop",key:"columnWrapDesktop-save",valueCallback:e=>e?"wrap":"nowrap"}]),d.Alignment.addStyles(b),d.BlockDiv.addStyles(b),d.ContainerDiv.addStyles(b),d.Column.addStyles(b),d.Columns.addStyles(b,{hasRowGap:!1}),d.Advanced.addStyles(b),d.Transform.addStyles(b),d.EffectsAnimations.addStyles(b),d.Separator.addStyles(b);const m=b;var p=o(4184),k=o.n(p),g=o(9783),h=o(3749),v=o(3284);const C=c[0].innerBlocks,y=(0,s.memo)((()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(u.InspectorTabs,null),(0,s.createElement)(d.Columns.InspectorControls,{hasColumnsControl:!1}),(0,s.createElement)(d.ContentAlign.InspectorControls,null),(0,s.createElement)(d.Alignment.InspectorControls,null),(0,s.createElement)(d.BlockDiv.InspectorControls,null),(0,s.createElement)(d.ContainerDiv.InspectorControls,{hasContentVerticalAlign:!0}),(0,s.createElement)(d.Separator.InspectorControls,null),(0,s.createElement)(d.Advanced.InspectorControls,null),(0,s.createElement)(d.Transform.InspectorControls,null),(0,s.createElement)(d.EffectsAnimations.InspectorControls,null),(0,s.createElement)(d.CustomAttributes.InspectorControls,null),(0,s.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-feature"}),(0,s.createElement)(d.Responsive.InspectorControls,null),(0,s.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,s.createElement)(u.InspectorStyleControls,null,(0,s.createElement)(u.InspectorBottomTip,null))))),f=(0,h.compose)(g.withBlockWrapperIsHovered,g.withQueryLoopContext,g.withBlockAttributeContext)((e=>{const{className:t}=e,o=e.attributes.alignVertical?void 0:(0,d.getRowClasses)(e.attributes),a=(0,d.getSeparatorClasses)(e.attributes),l=(0,d.getAlignmentClasses)(e.attributes),[i,r]=u.ColumnInnerBlocks.useContext(),{hasInnerBlocks:c}=(0,v.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor");return{hasInnerBlocks:o(e.clientId).length>0}}),[e.clientId]),b=k()([t,"stk-block-feature",o,a,r]),p=k()(["stk-inner-blocks",l,"stk-block-content"],(0,d.getContentAlignmentClasses)(e.attributes)),g=(0,u.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:n.version});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(y,null),g&&(0,s.createElement)("style",{key:"block-css"},g),(0,s.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-feature"}),(0,s.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b,enableVariationPicker:!0},(0,s.createElement)(d.Separator,null,(0,s.createElement)(d.ContainerDiv,{className:p},(0,s.createElement)(u.ColumnInnerBlocks,{providerValue:i,template:C,templateLock:"insert",orientation:e.attributes.alignVertical?"vertical":"horizontal"})))),e.isHovered&&c&&(0,s.createElement)(d.MarginBottom,null))}));var B=o(1991),S=o.n(B),_=o(78);const A=e=>{const{attributes:t}=e,o=e.attributes.alignVertical?void 0:(0,d.getRowClasses)(e.attributes),a=(0,d.getSeparatorClasses)(e.attributes),n=(0,d.getAlignmentClasses)(e.attributes),l=(0,d.getResponsiveClasses)(e.attributes),r=(0,d.getContentAlignmentClasses)(t),c=S()([e.className,"stk-block-feature",l,a]),u=S()((0,i.applyFilters)("stackable.feature.save.contentClassNames",{[r]:r},e)),b=S()((0,i.applyFilters)("stackable.feature.save.innerClassNames",{"stk-inner-blocks":!0,[n]:n,"stk-block-content":!0,[o]:[o]},e));return(0,s.createElement)(d.BlockDiv.Content,{className:c,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,s.createElement)("style",null,t.generatedCss),(0,s.createElement)(d.CustomCSS.Content,{attributes:t}),(0,s.createElement)(d.Separator.Content,{attributes:t},(0,s.createElement)(d.ContainerDiv.Content,{className:u,attributes:t},(0,s.createElement)("div",{className:b},(0,s.createElement)(_.InnerBlocks.Content,null)))))},w=(0,h.compose)((0,g.withVersion)(n.version))(A);var E=o(7545);const T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.version;const t=new E.AttributeObject;return d.BlockDiv.addAttributes(t),d.Columns.addAttributes(t),d.Style.addAttributes(t),d.Row.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.Separator.addAttributes(t),d.ContentAlign.addAttributes(t),d.ContainerDiv.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0},alignVertical:{type:"boolean",default:""},columnArrangement:{stkResponsive:!0,type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},x=T(n.version),I=JSON.parse('{"apiVersion":3,"name":"stackable/feature","title":"Feature","description":"Display a product feature or a service in a large area.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/columnWrapDesktop":"columnWrapDesktop"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/feature-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/image"],"stk-substitution-blocks":["stackable/heading","stackable/text","stackable/button-group","stackable/button"]}'),z={attributes:{uniqueId:"34ff1fd",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},innerBlockContentAlign:"alignwide",hasContainer:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",className:"is-style-horizontal",align:"full"},innerBlocks:[{name:"stackable/column",attributes:{uniqueId:"ac106a4",hasBackground:!1,hasBorders:!1,hasContainer:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"011c500",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,l.__)("Title for This Block",n.i18n),textTag:"h4",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"d5ddfa5",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,l.__)("Description for this block. Use this space for describing your block.",n.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"2d13b5e",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"37f134b",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,l.__)("Button",n.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]},{name:"stackable/column",attributes:{uniqueId:"3ae32a5",hasBackground:!1,hasBorders:!1,hasContainer:!1,columnAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,templateLock:"insert",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/image",attributes:{uniqueId:"366ed12",hasBackground:!1,hasBorders:!1,imageShow:!0,imageUrl:"https://source.unsplash.com/400x300/?architecture",imageSize:"full",imageShapeStretch:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",imageWidthUnit:"%",imageWidthUnitTablet:"%",imageWidthUnitMobile:"%"},innerBlocks:[]}]}]};var M=o(4247),H=o.n(M);(0,i.addFilter)("stackable.feature.save.contentClassNames","stackable/3.0.2",((e,t)=>{if(1===H()(t.version,"3.0.2"))return e;const o=(0,d.getContentAlignmentClasses)(t.attributes),a=t.attributes.alignVertical?void 0:(0,d.getRowClasses)(t.attributes);return{[a]:a,[o]:o}})),(0,i.addFilter)("stackable.feature.save.innerClassNames","stackable/3.0.2",((e,t)=>{if(1===H()(t.version,"3.0.2"))return e;const o=(0,d.getAlignmentClasses)(t.attributes);return{"stk-inner-blocks":!0,[o]:o,"stk-block-content":!0}})),(0,i.addFilter)("stackable.feature.save.innerClassNames","stackable/3.8.0",((e,t)=>(0,E.semverCompare)(t.version,"<","3.8.0")?{...e,"stk--has-column-order":t.attributes.columnArrangementMobile||t.attributes.columnArrangementTablet}:e));const N=[{attributes:T("3.12.11"),save:(0,g.withVersion)("3.12.11")(A),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),n=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e),l=e.version<2||void 0===e.version;return t||o||a||n||l},migrate:e=>{let t={...e,version:2};return!!e.columnFit&&(t={...t,columnFit:"",columnFitAlign:"",columnJustify:e.columnFitAlign}),t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateShadowColor.migrate("topSeparator%s")(t),t=d.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.11.9"),save:(0,g.withVersion)("3.11.9")(A),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:e=>{let t={...e,version:2};return!!e.columnFit&&(t={...t,columnFit:"",columnFitAlign:"",columnJustify:e.columnFitAlign}),t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateShadowColor.migrate("topSeparator%s")(t),t=d.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.7.9"),save:(0,g.withVersion)("3.7.9")(A),isEligible:e=>e.version<2||void 0===e.version,migrate:e=>{let t={...e,version:2};e.columnFit&&(t={...t,columnFit:"",columnFitAlign:"",columnJustify:e.columnFitAlign});const o=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&o&&(t={...t,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateShadowColor.migrate("topSeparator%s")(t),t=d.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.0.2"),save:(0,g.withVersion)("3.0.2")(A)}];var D=o(7248);const O={...I,icon:a.FeatureIcon,attributes:x,supports:{anchor:!0,align:["center","wide","full"],stkBlockLinking:!1,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:z,deprecated:N,variations:c,edit:f,save:w,substitute:D.default}},7248:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/feature",transform:(e,t)=>["stackable/columns",{...e},t]},n=a},4523:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(9467),n=o(378),l=o(5295);const i={from:[{type:"block",isMultiBlock:!0,blocks:["stackable/text"],transform:e=>e.map((e=>{let{...t}=e;return(0,n.createBlock)("stackable/heading",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["stackable/subtitle"],transform:e=>e.map((e=>{let{...t}=e;return(0,n.createBlock)("stackable/heading",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{content:t}=e;return(0,n.createBlock)("stackable/heading",{text:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{content:t}=e;return(0,n.createBlock)("stackable/heading",{text:t})}))}],to:[{type:"block",isMultiBlock:!0,blocks:["stackable/text"],transform:e=>e.map((e=>{let{...t}=e;return(0,n.createBlock)("stackable/text",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["stackable/subtitle"],transform:e=>e.map((e=>{let{...t}=e;return(0,n.createBlock)("stackable/subtitle",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{text:t}=e;return(0,n.createBlock)("core/paragraph",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{text:t}=e;return(0,n.createBlock)("core/heading",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["stackable/icon-label"],transform:e=>e.map((e=>{let{...t}=e;return(0,n.createBlocksFromInnerBlocksTemplate)([["stackable/icon-label",{},l.h.map((e=>("stackable/heading"===e[0]&&(e[1]=t),e)))]])[0]}))}]},r=i;var s=o(7462),c=o(2610),d=o(9384),u=o(7200);const b=new u.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});b.addBlockStyles("topLineHeight",[{selector:".stk-block-heading__top-line",styleRule:"height",attrName:"topLineHeight",key:"topLineHeight",format:"%spx"}]),b.addBlockStyles("topLineWidth",[{selector:".stk-block-heading__top-line",styleRule:"width",attrName:"topLineWidth",key:"topLineWidth",hasUnits:"px",hover:"all"}]),b.addBlockStyles("topLineColor",[{selector:".stk-block-heading__top-line",styleRule:"backgroundColor",attrName:"topLineColor",key:"topLineColor",hover:"all"}]),b.addBlockStyles("topLineMargin",[{selector:".stk-block-heading__top-line",styleRule:"marginBottom",attrName:"topLineMargin",key:"topLineMargin",responsive:"all",format:"%spx"}]),b.addBlockStyles("topLineAlign",[{selector:".stk-block-heading__top-line",styleRule:"marginLeft",attrName:"topLineAlign",key:"topLineAlign-left",responsive:"all",valueCallback:e=>"center"===e||"right"===e?"auto":"0"},{selector:".stk-block-heading__top-line",styleRule:"marginRight",attrName:"topLineAlign",key:"topLineAlign",responsive:"all",valueCallback:e=>"center"===e||"left"===e?"auto":"0"}]),b.addBlockStyles("bottomLineHeight",[{selector:".stk-block-heading__bottom-line",styleRule:"height",attrName:"bottomLineHeight",key:"bottomLineHeight",format:"%spx"}]),b.addBlockStyles("bottomLineWidth",[{selector:".stk-block-heading__bottom-line",styleRule:"width",attrName:"bottomLineWidth",key:"bottomLineWidth",hasUnits:"px",hover:"all"}]),b.addBlockStyles("bottomLineColor",[{selector:".stk-block-heading__bottom-line",styleRule:"backgroundColor",attrName:"bottomLineColor",key:"bottomLineColor",hover:"all"}]),b.addBlockStyles("bottomLineMargin",[{selector:".stk-block-heading__bottom-line",styleRule:"marginTop",attrName:"bottomLineMargin",key:"bottomLineMargin",responsive:"all",format:"%spx"}]),b.addBlockStyles("bottomLineAlign",[{selector:".stk-block-heading__bottom-line",styleRule:"marginLeft",attrName:"bottomLineAlign",key:"bottomLineAlign",responsive:"all",valueCallback:e=>"center"===e||"right"===e?"auto":0},{selector:".stk-block-heading__bottom-line",styleRule:"marginRight",attrName:"bottomLineAlign",key:"bottomLineAlign-right",responsive:"all",valueCallback:e=>"center"===e||"left"===e?"auto":0}]),d.Alignment.addStyles(b),d.BlockDiv.addStyles(b),d.Advanced.addStyles(b),d.Transform.addStyles(b),d.Typography.addStyles(b,{selector:".stk-block-heading__text",hoverSelector:".stk-block-heading__text:hover"}),d.EffectsAnimations.addStyles(b);const m=b;var p=o(910),k=o(4184),g=o.n(k),h=o(8085),v=o(7545),C=o(9783),y=o(3749),f=o(8003),B=o(3284),S=o(3882);(0,S.addFilter)("editor.Autocomplete.completers","stackable/heading",((e,t)=>"stackable/heading"===t?[...e,(0,v.createBlockCompleter)()]:e));const _=(0,c.memo)((e=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(u.InspectorTabs,null),(0,c.createElement)(d.Typography.InspectorControls,(0,s.Z)({},e,{hasRemoveMargins:!0,initialOpen:!0,hasTextShadow:!0})),(0,c.createElement)(d.Alignment.InspectorControls,{labelContentAlign:(0,f.sprintf)((0,f.__)("%s Alignment",p.i18n),(0,f.__)("Text",p.i18n))}),(0,c.createElement)(d.BlockDiv.InspectorControls,null),(0,c.createElement)(d.Advanced.InspectorControls,null),(0,c.createElement)(d.Transform.InspectorControls,null),!!(0,S.applyFilters)("stackable.heading.edit.top-bottom-line.enable-handlers",!0,e.parentBlock)&&(0,c.createElement)(u.InspectorStyleControls,null,(0,c.createElement)(u.PanelAdvancedSettings,{title:(0,f.__)("Top Line",p.i18n),id:"top-line",hasToggle:!0,checked:e.showTopLine,onChange:t=>e.setAttributes({showTopLine:t})},(0,c.createElement)(u.ColorPaletteControl,{label:(0,f.__)("Line Color",p.i18n),attribute:"topLineColor",hover:"all"}),(0,c.createElement)(u.AdvancedRangeControl,{label:(0,f.__)("Width",p.i18n),units:["px","%","vw"],attribute:"topLineWidth",min:"0",sliderMax:[200,100],hover:"all"}),(0,c.createElement)(u.AdvancedRangeControl,{label:(0,f.__)("Height",p.i18n),attribute:"topLineHeight",min:"0",sliderMax:"20",placeholder:"4"}),(0,c.createElement)(u.AdvancedRangeControl,{label:(0,f.__)("Margin",p.i18n),attribute:"topLineMargin",responsive:"all",sliderMin:"0",sliderMax:"100"}),(0,c.createElement)(u.AlignButtonsControl,{label:(0,f.__)("Align",p.i18n),attribute:"topLineAlign",responsive:"all"})),(0,c.createElement)(u.PanelAdvancedSettings,{title:(0,f.__)("Bottom Line",p.i18n),id:"bottom-line",hasToggle:!0,checked:e.showBottomLine,onChange:t=>e.setAttributes({showBottomLine:t})},(0,c.createElement)(u.ColorPaletteControl,{label:(0,f.__)("Line Color",p.i18n),attribute:"bottomLineColor",hover:"all"}),(0,c.createElement)(u.AdvancedRangeControl,{label:(0,f.__)("Width",p.i18n),units:["px","%","vw"],attribute:"bottomLineWidth",min:0,sliderMax:[200,100],hover:"all"}),(0,c.createElement)(u.AdvancedRangeControl,{label:(0,f.__)("Height",p.i18n),attribute:"bottomLineHeight",min:"0",sliderMax:"20",placeholder:"4"}),(0,c.createElement)(u.AdvancedRangeControl,{label:(0,f.__)("Margin",p.i18n),attribute:"bottomLineMargin",responsive:"all",sliderMin:"0",sliderMax:"100"}),(0,c.createElement)(u.AlignButtonsControl,{label:(0,f.__)("Align",p.i18n),attribute:"bottomLineAlign",responsive:"all"}))),(0,c.createElement)(d.EffectsAnimations.InspectorControls,null),(0,c.createElement)(d.CustomAttributes.InspectorControls,null),(0,c.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-heading"}),(0,c.createElement)(d.Responsive.InspectorControls,null),(0,c.createElement)(d.ConditionalDisplay.InspectorControls,null)))),A=(0,y.compose)(C.withBlockWrapperIsHovered,C.withQueryLoopContext,C.withBlockAttributeContext)((e=>{const{className:t,onReplace:o,setAttributes:a,onRemove:n,mergeBlocks:l,attributes:i}=e,{parentBlock:r}=(0,B.useSelect)((t=>{const{getBlockRootClientId:o,getBlock:a}=t("core/block-editor");return{parentBlock:a(o(e.clientId))}}),[e.clientId]),s=(0,d.getTypographyClasses)(e.attributes),b=(0,d.getAlignmentClasses)(e.attributes),k=g()([t,"stk-block-heading","stk-block-heading--v2"]),v=g()(["stk-block-heading__text",s,b],{"stk-block-heading--use-theme-margins":i.useThemeTextMargins});(0,d.useUniqueId)(i,!0);const[C,y]=(0,c.useState)(e.attributes.text),S=(0,c.useRef)(null);(0,c.useEffect)((()=>{clearTimeout(S.current);const t=e.attributes.anchor,o=e.attributes.text;S.current=setTimeout((()=>{(0,h.kebabCase)(t)!==(0,h.kebabCase)(C)&&t||((0,B.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),a({anchor:(0,h.kebabCase)(o)})),y(o)}),300)}),[e.attributes.anchor,e.attributes.text]);const A=(0,u.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:p.version});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(_,{showTopLine:e.attributes.showTopLine,showBottomLine:e.attributes.showBottomLine,setAttributes:a,parentBlock:r,blockState:e.blockState}),A&&(0,c.createElement)("style",{key:"block-css"},A),(0,c.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-heading"}),(0,c.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:k},e.attributes.showTopLine&&(0,c.createElement)("div",{className:"stk-block-heading__top-line"}),(0,c.createElement)(d.Typography,{defaultTag:"h2",placeholder:(0,f.__)("Add heading text here",p.i18n),className:v,onMerge:l,onRemove:n,onReplace:o}),e.attributes.showBottomLine&&(0,c.createElement)("div",{className:"stk-block-heading__bottom-line"})),e.isHovered&&(0,c.createElement)(d.MarginBottom,null))})),w=e=>{const{className:t,attributes:o}=e,a=(0,d.getResponsiveClasses)(e.attributes),n=(0,d.getTypographyClasses)(e.attributes),l=(0,d.getAlignmentClasses)(e.attributes),i=g()((0,S.applyFilters)("stackable.heading.save.blockClassNames",[t,"stk-block-heading",a,"stk-block-heading--v2"],e)),r=g()(["stk-block-heading__text",n,l],{"stk-block-heading--use-theme-margins":o.useThemeTextMargins});return(0,c.createElement)(d.BlockDiv.Content,{className:i,attributes:o,version:e.version},o.generatedCss&&(0,c.createElement)("style",null,o.generatedCss),(0,c.createElement)(d.CustomCSS.Content,{attributes:o}),e.attributes.showTopLine&&(0,c.createElement)("div",{className:"stk-block-heading__top-line"}),(0,c.createElement)(d.Typography.Content,{attributes:o,className:r,defaultTag:"h2"}),e.attributes.showBottomLine&&(0,c.createElement)("div",{className:"stk-block-heading__bottom-line"}))},E=(0,y.compose)((0,C.withVersion)(p.version))(w),T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.version;const t=new v.AttributeObject;return d.Alignment.addAttributes(t),d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.CustomCSS.addAttributes(t),d.MarginBottom.addAttributes(t),d.Responsive.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.Typography.addAttributes(t,".stk-block-heading__text",{defaultTextTag:"h2"}),t.add({attributes:{showTopLine:{type:"boolean",default:""},topLineWidth:{type:"number",default:"",stkUnits:"px",stkHover:!0},topLineHeight:{type:"number",default:""},topLineColor:{type:"string",default:"",stkHover:!0},topLineMargin:{type:"number",default:"",stkResponsive:!0},topLineAlign:{type:"string",default:"",stkResponsive:!0},showBottomLine:{type:"boolean",default:""},bottomLineWidth:{type:"number",default:"",stkUnits:"px",stkHover:!0},bottomLineHeight:{type:"number",default:""},bottomLineColor:{type:"string",default:"",stkHover:!0},bottomLineMargin:{type:"number",default:"",stkResponsive:!0},bottomLineAlign:{type:"string",default:"",stkResponsive:!0},useThemeTextMargins:{type:"boolean",default:""},anchor:{attribute:"id",selector:"*",source:"attribute",type:"string"}},versionAdded:"3.0.0",versionDeprecated:""}),t.add({attributes:{textRemoveTextMargins:{type:"boolean",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.6.2"}),t.getMerged(e)},x=T(p.version),I=JSON.parse('{"apiVersion":3,"name":"stackable/heading","title":"Heading","description":"Introduce new sections of your content in style.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Title"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-heading-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),z={attributes:{uniqueId:"7bc983a",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,f.__)("Title for This Block",p.i18n),textTag:"h2",showTopLine:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]};var M=o(4247),H=o.n(M);(0,S.addFilter)("stackable.heading.save.blockClassNames","stackable/3.6.1",((e,t)=>{if(1===H()(t.version,"3.6.1"))return e;const o=(0,d.getResponsiveClasses)(t.attributes);return[t.className,"stk-block-heading",o]}));const N=[{attributes:T("3.12.11"),save:(0,C.withVersion)("3.12.11")(w),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateTypographyGradientColor.migrate("%s")(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:T("3.11.9"),save:(0,C.withVersion)("3.11.9")(w),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=d.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateTypographyGradientColor.migrate("%s")(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:T("3.7.9"),save:(0,C.withVersion)("3.7.9")(w),migrate:e=>{let t=d.deprecateContainerBackgroundColorOpacity.migrate(e);return t=d.deprecateTypographyGradientColor.migrate("%s")(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t=d.deprecateTypographyShadowColor.migrate("%s")(t),d.deprecateBlockBackgroundColorOpacity.migrate(t)}},{attributes:T("3.5.0"),save:(0,C.withVersion)("3.5.0")(w),migrate:e=>{const{textRemoveTextMargins:t,...o}=e;return{...o,useThemeTextMargins:!e.textRemoveTextMargins}}}];var D=o(2433);const O={...I,icon:a.HeadingIcon,attributes:x,supports:{anchor:!0,align:["center","wide","full"],spacing:!0,splitting:!0},deprecated:N,edit:A,save:E,example:z,transforms:r,merge:(e,t)=>({text:(e.text||"")+((t.hasOwnProperty("content")?t.content:t.text)||"")}),substitute:D.default}},2433:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/heading",transform:e=>["core/heading",{content:e.text,level:e.textTag?Number(e.textTag.replace("h","")):2,textAlign:e.contentAlign}]},n=a},6613:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(7462),n=o(2610);o(7294);var l=o(910),i=o(8003),r=o(3882);const s=(0,r.applyFilters)("stackable.hero.variations",[{name:"default",description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",l.i18n),(0,i.__)("Default",l.i18n)),isDefault:!0,attributes:{className:"is-style-default",innerBlockAlign:"center",hasContainer:!0},isActive:["className"],pickerTitle:(0,i.__)("Default",l.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 12H6v23h36V12zM6 10a2 2 0 00-2 2v23a2 2 0 002 2h36a2 2 0 002-2V12a2 2 0 00-2-2H6z"}),(0,n.createElement)("path",{d:"M13 17h21v2H13v-2zM19 27h10v3H19v-3zM11 22h26v2H11v-2z"}))},innerBlocks:[["stackable/heading",{text:(0,i._x)("Title for This Block","Heading placeholder",l.i18n)}],["stackable/text",{text:(0,i._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,i._x)("Button","Button placeholder",l.i18n)}]]]],scope:["block"]},{name:"horizontal",description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",l.i18n),(0,i.__)("Horizontal",l.i18n)),attributes:{className:"is-style-horizontal",hasBackground:!0,blockBackgroundColor:"#FFFFFF",blockPadding:{top:0,right:0,bottom:0,left:0},hasContainer:!1,innerBlockContentAlign:"alignfull",align:"full",contentAlign:""},isActive:["className"],pickerTitle:(0,i.__)("Horizontal",l.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 12.348h17v22.304H25V12.348zm-2 0H6v22.304h17V12.348zm-19 0C4 11.05 4.895 10 6 10h36c1.105 0 2 1.051 2 2.348v22.304C44 35.95 43.105 37 42 37H6c-1.105 0-2-1.051-2-2.348V12.348z"}),(0,n.createElement)("path",{d:"M9 19h9v2H9v-2zM9 24h6v2H9v-2z"}))},innerBlocks:[["stackable/columns",{},[["stackable/column",{contentAlign:"left",innerBlockAlign:"center",columnSpacing:{top:32,right:32,bottom:32,left:32}},[["stackable/heading",{text:(0,i._x)("Title for This Block","Heading placeholder",l.i18n),textTag:"h1"}],["stackable/text",{text:(0,i._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,i._x)("Button","Button placeholder",l.i18n)}]]]]],["stackable/column",{columnSpacing:{top:0,right:0,bottom:0,left:0}},[["stackable/image",{imageHeight:750,imageWidth:100}]]]]]],scope:["block"]},{name:"half-overlay",description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",l.i18n),(0,i.__)("Half Overlay",l.i18n)),attributes:{className:"is-style-half-overlay"},isActive:["className"],pickerTitle:(0,i.__)("Half Overlay",l.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 12.348h17v22.304H25V12.348zm-21 0C4 11.05 4.895 10 6 10h36c1.105 0 2 1.051 2 2.348v22.304C44 35.95 43.105 37 42 37H6c-1.105 0-2-1.051-2-2.348V12.348zM9 18h9v3H9v-3zm6 6H9v3h6v-3z"}))},isPremium:!l.isPro,scope:["block"]},{name:"center-overlay",description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",l.i18n),(0,i.__)("Center Overlay",l.i18n)),attributes:{className:"is-style-center-overlay"},isActive:["className"],pickerTitle:(0,i.__)("Center Overlay",l.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 12H6v23h36V12zM6 10a2 2 0 00-2 2v23a2 2 0 002 2h36a2 2 0 002-2V12a2 2 0 00-2-2H6z"}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15h26v17H11V15zm7 4h12v3H18v-3zm14 6H16v3h16v-3z"}))},isPremium:!l.isPro,scope:["block"]},{name:"side-overlay",description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",l.i18n),(0,i.__)("Side Overlay",l.i18n)),attributes:{className:"is-style-side-overlay"},isActive:["className"],pickerTitle:(0,i.__)("Side Overlay",l.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 12H6v23h36V12zM6 10a2 2 0 00-2 2v23a2 2 0 002 2h36a2 2 0 002-2V12a2 2 0 00-2-2H6z"}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 15h22v17H9V15zm4 4h11v3H13v-3zm14 6H13v3h14v-3z"}))},isPremium:!l.isPro,scope:["block"]},{name:"half",description:(0,i.__)("Half Layout",l.i18n),attributes:{className:"is-style-half"},isActive:["className"],pickerTitle:(0,i.__)("Half",l.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 14a2 2 0 012-2h36a2 2 0 012 2v19a2 2 0 01-2 2H6a2 2 0 01-2-2V14zm6 5h8v3h-8v-3zm12 6H10v3h12v-3z"}),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 17v6h4v7H8V17h12zm22-3H6v19h36V14zm-32 8v-3h8v3h-8zM6 12a2 2 0 00-2 2v19a2 2 0 002 2h36a2 2 0 002-2V14a2 2 0 00-2-2H6zm16 13v3H10v-3h12z"}))},isPremium:!l.isPro,scope:["block"]}]),c=JSON.parse('{"apiVersion":3,"name":"stackable/hero","title":"Hero","description":"A large hero area. Typically used at the very top of a page.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Header"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/hero-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/heading","stackable/text","stackable/button-group","stackable/button"]}');var d=o(9384),u=o(7200);const b=new u.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});d.Alignment.addStyles(b),d.BlockDiv.addStyles(b),d.Advanced.addStyles(b),d.Transform.addStyles(b),d.EffectsAnimations.addStyles(b),d.ContainerDiv.addStyles(b,{sizeSelector:".stk-block-hero__content",sizeHorizontalAlignRule:"margin"}),d.MarginBottom.addStyles(b),d.Separator.addStyles(b);const m=b;var p=o(8085),k=o(4184),g=o.n(k),h=o(9783),v=o(3749),C=o(78),y=o(3284);const f=s[0].innerBlocks,B=(0,n.memo)((()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(u.InspectorTabs,null),(0,n.createElement)(d.ContentAlign.InspectorControls,null),(0,n.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,n.createElement)(d.BlockDiv.InspectorControls,null),(0,n.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,n.createElement)(d.Separator.InspectorControls,null),(0,n.createElement)(d.Advanced.InspectorControls,null),(0,n.createElement)(d.Transform.InspectorControls,null),(0,n.createElement)(d.EffectsAnimations.InspectorControls,null),(0,n.createElement)(d.CustomAttributes.InspectorControls,null),(0,n.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-hero"}),(0,n.createElement)(d.Responsive.InspectorControls,null),(0,n.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,n.createElement)(u.InspectorStyleControls,null,(0,n.createElement)(u.InspectorBottomTip,null))))),S=(0,v.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext)((e=>{var t;const{className:o,attributes:a}=e,{hasInnerBlocks:i,innerBlocks:r}=(0,y.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),s=(0,d.getAlignmentClasses)(e.attributes),c=(0,d.getSeparatorClasses)(e.attributes),b=g()([o,"stk-block-hero",c,"stk-content-align"]),k=g()(["stk-block-content","stk-inner-blocks",s,"stk-block-hero__content",`stk-${a.uniqueId}-inner-blocks`],(0,d.getContentAlignmentClasses)(e.attributes)),h=null===(t=(0,p.last)(r))||void 0===t?void 0:t.name,v=i?["stackable/text","core/paragraph"].includes(h)?()=>(0,n.createElement)(n.Fragment,null):C.InnerBlocks.DefaultBlockAppender:C.InnerBlocks.ButtonBlockAppender,S=(0,u.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:l.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(B,null),(0,n.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b,enableVariationPicker:!0},S&&(0,n.createElement)("style",{key:"block-css"},S),(0,n.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-hero"}),(0,n.createElement)(d.Separator,null,(0,n.createElement)(d.ContainerDiv,{className:k},(0,n.createElement)(C.InnerBlocks,{template:f,templateLock:!1,renderAppender:v})))),e.isHovered&&i&&(0,n.createElement)(d.MarginBottom,null))}));var _=o(1991),A=o.n(_);const w=e=>{const{attributes:t,className:o}=e,a=(0,d.getAlignmentClasses)(t),l=(0,d.getSeparatorClasses)(t),i=(0,d.getResponsiveClasses)(t),s=A()([o,"stk-block-hero",i,l]),c=A()(["stk-block-hero__content"],(0,d.getContentAlignmentClasses)(t)),u=A()((0,r.applyFilters)("stackable.hero.save.innerClassNames",["stk-block-content","stk-inner-blocks",a,`stk-${t.uniqueId}-inner-blocks`],e));return(0,n.createElement)(d.BlockDiv.Content,{className:s,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(d.CustomCSS.Content,{attributes:t}),(0,n.createElement)(d.Separator.Content,{attributes:t},(0,n.createElement)(d.ContainerDiv.Content,{className:c,attributes:t},(0,n.createElement)("div",{className:u},(0,n.createElement)(C.InnerBlocks.Content,null)))))},E=(0,v.compose)((0,h.withVersion)(l.version))(w);var T=o(7545);const x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.version;const t=new T.AttributeObject;return d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.MarginBottom.addAttributes(t),d.ContainerDiv.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.Separator.addAttributes(t),d.ContentAlign.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{hasContainer:!0,contentAlign:"center",containerHeight:500,containerVerticalAlign:"center"},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},I=x(l.version),z={attributes:{uniqueId:"c5a87cb",hasBackground:!1,hasBorders:!1,hasContainer:!0,containerBackgroundColor:"#000000",containerHeight:500,containerVerticalAlign:"center",contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],displayCondition:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"ab8669f",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},textColorClass:"has-white-color",textColor1:"#FFFFFF",hasP:!1,show:!0,showText:!0,text:(0,i.__)("Header Title",l.i18n),textTag:"h2",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"49b0171",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},textColorClass:"has-white-color",textColor1:"#FFFFFF",hasP:!1,show:!0,showText:!0,text:(0,i.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",l.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"869a544",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"12e2b68",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,i.__)("Button",l.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var M=o(4247),H=o.n(M);(0,r.addFilter)("stackable.hero.save.innerClassNames","stackable/3.8.0",((e,t)=>(H()(t.version,"3.8.0")>=0||e.push({[`stk-${t.attributes.uniqueId}-inner-blocks`]:!1,"stk--block-horizontal-flex":!1,[`stk--block-orientation-${t.attributes.innerBlockOrientation}`]:t.attributes.innerBlockOrientation}),e)));const N=[{attributes:x("3.12.11"),save:(0,h.withVersion)("3.12.11")(w),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),n=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e),l=e.version<2||void 0===e.version;return t||o||a||n||l},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a=d.deprecateShadowColor.migrate("topSeparator%s")(a),a=d.deprecateShadowColor.migrate("bottomSeparator%s")(a),a}},{attributes:x("3.11.9"),save:(0,h.withVersion)("3.11.9")(w),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a=d.deprecateShadowColor.migrate("topSeparator%s")(a),a=d.deprecateShadowColor.migrate("bottomSeparator%s")(a),a}},{attributes:x("3.7.9"),save:(0,h.withVersion)("3.7.9")(w),isEligible:e=>e.version<2||void 0===e.version,migrate:(e,t)=>{let o={...e,version:2};e.containerVerticalAlign&&(o={...o,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const a=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&a&&(o={...o,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColorOpacity:0}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),o={...o,innerBlockColumnGap:0}),o=d.deprecateContainerBackgroundColorOpacity.migrate(o),o=d.deprecateBlockBackgroundColorOpacity.migrate(o),o=d.deprecateBlockShadowColor.migrate(o),o=d.deprecateContainerShadowColor.migrate(o),o=d.deprecateShadowColor.migrate("topSeparator%s")(o),o=d.deprecateShadowColor.migrate("bottomSeparator%s")(o),[o,t]}}];var D=o(6294);const O={...c,icon:o(9467).HeroIcon,attributes:I,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:z,variations:s,deprecated:N,edit:S,save:E,substitute:D.default}},6294:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/hero",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t]]]},n=a},2683:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>M});var a=o(2610),n=o(9384),l=o(7200);const i=new l.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.addBlockStyles("columnSpacing",[{selector:".%s-horizontal-scroller",styleRule:"--stk-columns-spacing",attrName:"columnSpacing",key:"columnSpacing",hasUnits:"px",responsive:"all"}]),i.addBlockStyles("horizontalScrollerColumnGap",[{selector:".%s-horizontal-scroller",styleRule:"--stk-column-gap",attrName:"horizontalScrollerColumnGap",key:"horizontalScrollerColumnGap-save",format:"%spx",responsive:"all"}]),i.addBlockStyles("horizontalScrollerColumnWidth",[{selector:".%s-horizontal-scroller",styleRule:"--stk-column-width",attrName:"horizontalScrollerColumnWidth",key:"horizontalScrollerColumnWidth-save",hasUnits:"px",responsive:"all"}]),i.addBlockStyles("horizontalScrollerHeight",[{selector:".%s-horizontal-scroller",styleRule:"--stk-column-height",attrName:"horizontalScrollerHeight",key:"horizontalScrollerHeight-save",format:"%spx"}]),i.addBlockStyles("horizontalScrollerLeftOffset",[{selector:".%s-horizontal-scroller",styleRule:"--stk-left-offset",attrName:"horizontalScrollerLeftOffset",key:"horizontalScrollerLeftOffset-save",hasUnits:"px",responsive:"all"}]),i.addBlockStyles("horizontalScrollerSnap",[{selector:".%s-horizontal-scroller",styleRule:"--stk-snapping",attrName:"horizontalScrollerSnap",key:"horizontalScrollerSnap-save"}]),i.addBlockStyles("scrollbarHeight",[{selector:".%s-horizontal-scroller",styleRule:"--stk-scrollbar-height",attrName:"scrollbarHeight",key:"scrollbarHeight",format:"%spx",enabledCallback:e=>e("showScrollbar"),dependencies:["showScrollbar"]},{selector:".%s-horizontal-scroller",styleRule:"--stk-scrollbar-height-firefox",attrName:"scrollbarHeight",key:"scrollbarHeightFirefox",valueCallback:e=>0===e?"none":e<10?"thin":"auto",enabledCallback:e=>e("showScrollbar"),dependencies:["showScrollbar"]}]),i.addBlockStyles("scrollbarTrackColor",[{selector:".%s-horizontal-scroller",styleRule:"--stk-scrollbar-track-color",attrName:"scrollbarTrackColor",key:"scrollbarTrackColor",enabledCallback:e=>e("showScrollbar"),dependencies:["showScrollbar"]}]),i.addBlockStyles("scrollbarThumbColor",[{selector:".%s-horizontal-scroller",styleRule:"--stk-scrollbar-thumb-color",attrName:"scrollbarThumbColor",key:"scrollbarThumbColor",enabledCallback:e=>e("showScrollbar"),dependencies:["showScrollbar"]}]),i.addBlockStyles("scrollbarThumbRadius",[{selector:".%s-horizontal-scroller",styleRule:"--stk-scrollbar-thumb-radius",attrName:"scrollbarThumbRadius",key:"scrollbarThumbRadius",hasUnits:"px",enabledCallback:e=>e("showScrollbar"),dependencies:["showScrollbar"]}]),n.Alignment.addStyles(i,{editorSelectorCallback:e=>`.stk--block-align-${e("uniqueId")} > .block-editor-inner-blocks > .block-editor-block-list__layout`}),n.BlockDiv.addStyles(i),n.MarginBottom.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i);const r=i;var s=o(910),c=o(4184),d=o.n(c),u=o(9783),b=o(7545),m=o(3749),p=o(8003),k=o(3284);const g=["stackable/column"],h=[["stackable/column"],["stackable/column"],["stackable/column"]],v=(0,a.memo)((e=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l.InspectorTabs,null),(0,a.createElement)(l.InspectorLayoutControls,null,(0,a.createElement)(n.ColumnsControl,{sliderMax:10}),(0,a.createElement)(l.AdvancedSelectControl,{label:(0,p.__)("Snapping",s.i18n),attribute:"horizontalScrollerSnap",options:[{value:"start",label:(0,p.__)("Snap to Start",s.i18n)},{value:"center",label:(0,p.__)("Snap to Center",s.i18n)},{value:"none",label:(0,p.__)("No Snapping",s.i18n)}],default:"center"}),(0,a.createElement)(l.ControlSeparator,null),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,p.__)("Item Width",s.i18n),attribute:"horizontalScrollerColumnWidth",responsive:"all",units:["px","em","%","vw"],min:[0,0,0],sliderMax:[500,40,100],step:[1,.1,1],placeholder:300}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,p.__)("Height",s.i18n),attribute:"horizontalScrollerHeight",min:"0",sliderMin:0,sliderMax:500,step:"1",placeholder:"auto"}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,p.__)("Inner Column Spacing",s.i18n),attribute:"columnSpacing",responsive:"all",units:["px","em","vw"],defaultLocked:!0,min:[0,0],sliderMax:[200,30],placeholder:"12"}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,p.__)("Gap",s.i18n),attribute:"horizontalScrollerColumnGap",responsive:"all",min:0,sliderMax:100,placeholder:"0"}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,p.__)("Left Offset",s.i18n),attribute:"horizontalScrollerLeftOffset",responsive:"all",units:["px","em","%"],min:[0,0,0],sliderMax:[500,40,50],step:[1,.1,1]}),(0,a.createElement)(l.ControlSeparator,null)),(0,a.createElement)(n.Alignment.InspectorControls,{hasRowAlignment:!0}),(0,a.createElement)(l.InspectorStyleControls,null,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,p.__)("Scrollbar",s.i18n),initialOpen:!1,hasToggle:!0,checked:e.showScrollbar,onChange:t=>e.setAttributes({showScrollbar:t})},(0,a.createElement)(l.AdvancedRangeControl,{label:(0,p.__)("Height",s.i18n),attribute:"scrollbarHeight",min:"0",sliderMin:0,sliderMax:25,step:"1",placeholder:"10"}),(0,a.createElement)(l.ColorPaletteControl,{label:(0,p.__)("Track Color",s.i18n),attribute:"scrollbarTrackColor"}),(0,a.createElement)(l.ColorPaletteControl,{label:(0,p.__)("Thumb Color",s.i18n),attribute:"scrollbarThumbColor"}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,p.__)("Thumb Radius",s.i18n),attribute:"scrollbarThumbRadius",allowReset:!0,min:"0",units:["px","%","rem"],step:"1",sliderMax:Math.ceil((e.scrollbarHeight||10)/2)}))),(0,a.createElement)(n.BlockDiv.InspectorControls,null),(0,a.createElement)(n.Advanced.InspectorControls,null),(0,a.createElement)(n.Transform.InspectorControls,null),(0,a.createElement)(n.EffectsAnimations.InspectorControls,null),(0,a.createElement)(n.CustomAttributes.InspectorControls,null),(0,a.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-horizontal-scroller"}),(0,a.createElement)(n.Responsive.InspectorControls,null),(0,a.createElement)(n.ConditionalDisplay.InspectorControls,null)))),C=(0,m.compose)(u.withBlockWrapperIsHovered,u.withQueryLoopContext,u.withBlockAttributeContext)((e=>{const{className:t,setAttributes:o}=e,{showScrollbar:i,scrollbarHeight:c}=e.attributes,u=(0,n.getAlignmentClasses)(e.attributes),{hasInnerBlocks:m}=(0,k.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor");return{hasInnerBlocks:o(e.clientId).length>0}}),[e.clientId]),[p,C]=l.ColumnInnerBlocks.useContext(),y=d()([t,"stk-block-horizontal-scroller editor",C]),f=(0,b.useQueryLoopInstanceId)(e.attributes.uniqueId),B=d()(["stk-inner-blocks",u,"stk-block-content"],(0,n.getContentAlignmentClasses)(e.attributes,"horizontal-scroller",f),{"stk--with-scrollbar":i}),S=(0,l.useBlockCssGenerator)({attributes:e.attributes,blockStyles:r,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:s.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(v,{setAttributes:o,showScrollbar:i,scrollbarHeight:c}),(0,a.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:y},S&&(0,a.createElement)("style",{key:"block-css"},S),(0,a.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-horizontal-scroller"}),!m&&(0,a.createElement)(l.GroupPlaceholder,null),(0,a.createElement)("div",{className:B,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},(0,a.createElement)(l.ColumnInnerBlocks,{providerValue:p,orientation:"horizontal",renderAppender:!1,template:e.attributes.templateLock?void 0:h,allowedBlocks:g,templateLock:e.attributes.templateLock||!1}))),e.isHovered&&m&&(0,a.createElement)(n.MarginBottom,null))}));var y=o(78),f=o(3882);const B=e=>{const{attributes:t}=e,o=(0,n.getRowClasses)(e.attributes),l=(0,n.getAlignmentClasses)(e.attributes),i=(0,n.getResponsiveClasses)(e.attributes),r=d()([e.className,"stk-block-horizontal-scroller",i]),s=d()((0,f.applyFilters)("stackable.horizontal-scroller.save.contentClassNames",[[o,"stk-inner-blocks",l,"stk-block-content"],(0,n.getContentAlignmentClasses)(e.attributes,"horizontal-scroller")],e),{"stk--with-scrollbar":t.showScrollbar});return(0,a.createElement)(n.BlockDiv.Content,{className:r,attributes:t,version:e.version},t.generatedCss&&(0,a.createElement)("style",null,t.generatedCss),(0,a.createElement)(n.CustomCSS.Content,{attributes:t}),(0,a.createElement)("div",{className:s},(0,a.createElement)(y.InnerBlocks.Content,null)))},S=(0,u.withVersion)(s.version)(B),_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.version;const t=new b.AttributeObject;return t.add({attributes:{columnSpacing:{stkResponsive:!0,stkUnits:"px",type:"number",default:""},horizontalScrollerColumnWidth:{stkResponsive:!0,type:"number",default:"",stkUnits:"px"},horizontalScrollerHeight:{type:"number",default:""},horizontalScrollerColumnGap:{stkResponsive:!0,type:"number",default:""},horizontalScrollerSnap:{type:"string",default:""},horizontalScrollerLeftOffset:{stkResponsive:!0,type:"number",default:"",stkUnits:"px"},templateLock:{type:"string",default:""},columnArrangement:{stkResponsive:!0,type:"string",default:""},scrollbarHeight:{type:"number",default:""},scrollbarTrackColor:{type:"string",default:""},scrollbarThumbColor:{type:"string",default:""},scrollbarThumbRadius:{type:"number",default:"",stkUnits:"px"},showScrollbar:{type:"boolean",default:!1}},versionAdded:"3.6.4",versionDeprecated:""}),n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.MarginBottom.addAttributes(t),n.Row.addAttributes(t),n.Alignment.addAttributes(t),n.Advanced.addAttributes(t),n.Transform.addAttributes(t),n.EffectsAnimations.addAttributes(t),n.CustomAttributes.addAttributes(t),n.CustomCSS.addAttributes(t),n.Responsive.addAttributes(t),n.ConditionalDisplay.addAttributes(t),n.ContentAlign.addAttributes(t),t.getMerged(e)},A=_(s.version),w={name:"stackable/horizontal-scroller",attributes:{uniqueId:"a21e899",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/column",attributes:{uniqueId:"d2ced8c",hasBackground:!1,hasBorders:!1,hasContainer:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"b8d7379",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<meta charset="utf-8">${(0,p.__)("123",s.i18n)}`,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},{name:"stackable/column",attributes:{uniqueId:"1edfa2d",hasBackground:!1,hasBorders:!1,hasContainer:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"00f4f9f",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<meta charset="utf-8">${(0,p.__)("456",s.i18n)}`,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},{name:"stackable/column",attributes:{uniqueId:"f68fbe7",hasBackground:!1,hasBorders:!1,hasContainer:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"5867b97",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<meta charset="utf-8">${(0,p.__)("789",s.i18n)}`,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]},E=JSON.parse('{"apiVersion":3,"name":"stackable/horizontal-scroller","title":"Horizontal Scroller","description":"A slider that scrolls horizontally.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Slider","Carousel"],"providesContext":{"stackable/columnFit":"columnFit"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/horizontal-scroller-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}');var T=o(4247),x=o.n(T);(0,f.addFilter)("stackable.horizontal-scroller.save.contentClassNames","stackable/3_8_0",((e,t)=>x()(t.version,"3.8.0")>=0?e:[...e,{"stk--fit-content":!0}]));const I=[{attributes:_("3.12.11"),save:(0,u.withVersion)("3.12.11")(B),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t}},{attributes:_("3.11.9"),save:(0,u.withVersion)("3.11.9")(B),isEligible:e=>{const t=n.deprecateContainerBackgroundColorOpacity.isEligible(e),o=n.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t}},{attributes:_("3.7.9"),save:(0,u.withVersion)("3.7.9")(B),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var z=o(5469);const M={...E,icon:o(9467).HorizontalScrollerIcon,attributes:A,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkLayoutReset:!1,stkSaveBlockStyle:!1,stkDefaultTab:"layout",stkColumnResize:!1,spacing:!0},example:w,deprecated:I,edit:C,save:S,substitute:z.default}},5469:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/horizontal-scroller",transform:(e,t)=>["stackable/columns",{...e},t]},n=a},1840:(e,t,o)=>{"use strict";o.d(t,{h:()=>C,Z:()=>f});var a=o(2610),n=o(9384),l=o(7200);const i=new l.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});n.Alignment.addStyles(i),n.BlockDiv.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i),n.ContainerDiv.addStyles(i,{sizeSelector:".stk-block-icon-box__content",sizeHorizontalAlignRule:"margin",sizeVerticalAlignRule:"justifyContent"}),n.MarginBottom.addStyles(i);const r=i;var s=o(910),c=o(8085),d=o(4184),u=o.n(d),b=o(9783),m=o(7545),p=o(7397),k=o(3749),g=o(78),h=o(8003),v=o(3284);const C=[["stackable/icon-label",{blockMargin:{bottom:0}},[["stackable/icon",{contentAlign:"left"}],["stackable/heading",{text:(0,h.__)("Icon Box",s.i18n),hasP:!0,textTag:"h4"}]]],(0,m.substituteCoreIfDisabled)("stackable/text",{text:"Description for this block."},[],p.c)],y=(0,a.memo)((()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l.InspectorTabs,{hasLayoutPanel:!1}),(0,a.createElement)(n.BlockDiv.InspectorControls,null),(0,a.createElement)(n.BlockLink.InspectorControls,null),(0,a.createElement)(n.Advanced.InspectorControls,null),(0,a.createElement)(n.Transform.InspectorControls,null),(0,a.createElement)(n.EffectsAnimations.InspectorControls,null),(0,a.createElement)(n.CustomAttributes.InspectorControls,null),(0,a.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-box"}),(0,a.createElement)(n.Responsive.InspectorControls,null),(0,a.createElement)(n.ConditionalDisplay.InspectorControls,null),(0,a.createElement)(n.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content",hasContentVerticalAlign:!0}),(0,a.createElement)(l.InspectorStyleControls,null,(0,a.createElement)(l.InspectorBottomTip,null))))),f=(0,k.compose)(b.withBlockWrapperIsHovered,b.withQueryLoopContext,b.withBlockAttributeContext)((e=>{var t;const{className:o}=e,{hasInnerBlocks:i,innerBlocks:d}=(0,v.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),b=(0,n.getAlignmentClasses)(e.attributes),m=u()([o,"stk-block-icon-box"]),p=u()(["stk-block-content","stk-inner-blocks",b,"stk-block-icon-box__content"]),k=null===(t=(0,c.last)(d))||void 0===t?void 0:t.name,h=i?["stackable/text","core/paragraph"].includes(k)?()=>(0,a.createElement)(a.Fragment,null):g.InnerBlocks.DefaultBlockAppender:g.InnerBlocks.ButtonBlockAppender,f=(0,l.useBlockCssGenerator)({attributes:e.attributes,blockStyles:r,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:s.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(y,null),(0,a.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:m},f&&(0,a.createElement)("style",{key:"block-css"},f),(0,a.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-icon-box"}),(0,a.createElement)(n.ContainerDiv,{className:p},(0,a.createElement)(g.InnerBlocks,{template:C,templateLock:!1,renderAppender:h}))),e.isHovered&&(0,a.createElement)(n.MarginBottom,null))}))},9834:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>y});const a=JSON.parse('{"apiVersion":3,"name":"stackable/icon-box","title":"Icon Box","description":"A small text area with an icon that can be used to summarize features or services","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/icon-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon-label","stackable/icon","stackable/heading"]}');var n=o(1840),l=o(2610),i=o(910),r=o(9783),s=o(4184),c=o.n(s),d=o(9384),u=o(78);const b=e=>{const{attributes:t,className:o}=e,a=(0,d.getAlignmentClasses)(t),n=(0,d.getResponsiveClasses)(t),i=c()([o,"stk-block-icon-box",n]),r=c()(["stk-block-content","stk-inner-blocks",a,"stk-block-icon-box__content"]);return(0,l.createElement)(d.BlockDiv.Content,{className:i,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(d.CustomCSS.Content,{attributes:t}),(0,l.createElement)(d.ContainerDiv.Content,{className:r,attributes:t},(0,l.createElement)(u.InnerBlocks.Content,null),(0,l.createElement)(d.BlockLink.Content,{attributes:t})))},m=(0,o(3749).compose)((0,r.withVersion)(i.version))(b);var p=o(7545);const k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.version;const t=new p.AttributeObject;return d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.MarginBottom.addAttributes(t),d.ContainerDiv.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.BlockLink.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},g=k(i.version);var h=o(8003);const v={attributes:{uniqueId:"18a7284",hasBackground:!1,hasBorders:!1,hasContainer:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],displayCondition:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/icon-label",attributes:{uniqueId:"cb769fc",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/icon",attributes:{uniqueId:"7133826",hasBackground:!1,hasBorders:!1,contentAlign:"left",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},icon:'<svg data-prefix="fa" data-icon="star" class="svg-inline--fa fa-star fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,linkHasLink:!1,linkNewTab:!1,linkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/heading",attributes:{uniqueId:"2e38fc1",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!0,show:!0,showText:!0,text:(0,h.__)("Icon Box",i.i18n),textTag:"h4",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},{name:"stackable/text",attributes:{uniqueId:"622267b",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,h.__)("Description for this block. Use this space for describing your block.",i.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},C=[{attributes:k("3.12.11"),save:(0,r.withVersion)("3.12.11")(b),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:e=>{let t={...e,version:2};return!!e.containerVerticalAlign&&(t={...t,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t}},{attributes:k("3.11.9"),save:(0,r.withVersion)("3.11.9")(b),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:e=>{let t={...e,version:2};return!!e.containerVerticalAlign&&(t={...t,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t}},{attributes:k("3.7.9"),save:(0,r.withVersion)("3.7.9")(b),isEligible:e=>e.version<2||void 0===e.version,migrate:e=>{let t={...e,version:2};e.containerVerticalAlign&&(t={...t,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const o=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&o&&(t={...t,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t}},{attributes:k("3.7.9"),save:(0,r.withVersion)("3.7.9")(b)}],y={...a,icon:o(9467).IconBoxIcon,attributes:g,supports:{anchor:!0,html:!1,align:!0,spacing:!0},example:v,deprecated:C,edit:n.Z,save:m}},7511:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/icon-box",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t]]]},n=a},4391:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>M});var a=o(2610),n=o(4184),l=o.n(n),i=o(910),r=o(7200),s=o(9384),c=o(9783),d=o(3749),u=o(8003),b=o(7545);const m='<svg data-prefix="fa" data-icon="star" class="svg-inline--fa fa-star fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.version;const t=new b.AttributeObject;return s.BlockDiv.addAttributes(t),s.Style.addAttributes(t),s.EffectsAnimations.addAttributes(t),s.CustomAttributes.addAttributes(t),s.CustomCSS.addAttributes(t),s.Responsive.addAttributes(t),s.ConditionalDisplay.addAttributes(t),s.Advanced.addAttributes(t),s.Transform.addAttributes(t),s.Button.addAttributes(t,{selector:".stk-button"}),t.add({attributes:{anchorId:{type:"string",selector:"a.stk-button",source:"attribute",attribute:"id",default:""}},versionAdded:"3.0.0",versionDeprecarted:""}),t.addDefaultValues({attributes:{icon:m},versionAdded:"3.0.0",versionDeprecarted:""}),t.getMerged(e)},k=p(i.version),g=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.BlockDiv.addStyles(g),s.Advanced.addStyles(g),s.Transform.addStyles(g),s.Button.addStyles(g,{selector:".stk-button",hoverSelector:".stk-button:hover",textSelector:".stk-button__inner-text",textHoverSelector:".stk-button:hover .stk-button__inner-text"}),s.EffectsAnimations.addStyles(g);const h=g;var v=o(7462);o(7294);const C=["normal","hover","parent-hover"],y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return(0,b.getAttributeName)(e,"Desktop",t)},f=e=>{const t=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return e[y(t,o)]};let o={buttonBorderType:""};return C.forEach((e=>{o={...o,[y("buttonBackgroundColor",e)]:"transparent"!==t("buttonBackgroundColor",e)?t("buttonBackgroundColor",e):t("iconColor1",e),[y("iconColor1",e)]:"transparent"===t("buttonBackgroundColor",e)?void 0:t("iconColor1",e),[y("buttonWidth",e)]:void 0}})),o},B=[{name:"default",label:(0,u.__)("Default",i.i18n),isDefault:!0,icon:function(e){return(0,a.createElement)("svg",(0,v.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,a.createElement)("path",{d:"M5 31V17h38v14H5zm12-8h20v2H17v-2zm-4 0h-2v2h2v-2z",fillRule:"evenodd",clipRule:"evenodd"}))},onSelect:f},{name:"ghost",label:(0,u.__)("Ghost",i.i18n),icon:function(e){return(0,a.createElement)("svg",(0,v.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,a.createElement)("path",{d:"M41 19H7v10h34V19zm2-2H5v14h38V17zm-26 6h20v2H17v-2zm-4 0h-2v2h2v-2z",fillRule:"evenodd",clipRule:"evenodd"}))},onSelect:e=>{const t=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return e[y(t,o)]};let o={buttonBackgroundColorType:"",buttonBorderType:"solid"};return C.forEach((e=>{o={...o,[y("buttonBorderColor",e)]:"transparent"===t("buttonBackgroundColor",e)?t("iconColor1",e):t("buttonBackgroundColor",e),[y("buttonBackgroundColor",e)]:"transparent",[y("iconColor1",e)]:"transparent"===t("buttonBackgroundColor",e)?t("buttonBorderType",e)?t("buttonBorderColor",e):t("iconColor1",e):t("buttonBackgroundColor",e)}})),o}},{name:"pill",label:(0,u.__)("Pill",i.i18n),icon:function(e){return(0,a.createElement)("svg",(0,v.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,a.createElement)("path",{d:"M5 24a7 7 0 017-7h24a7 7 0 110 14H12a7 7 0 01-7-7zm12-1h20v2H17v-2zm-4 0h-2v2h2v-2z",fillRule:"evenodd",clipRule:"evenodd"}))},onSelect:f},{name:"plain",label:(0,u.__)("Plain",i.i18n),icon:function(e){return(0,a.createElement)("svg",(0,v.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,a.createElement)("path",{d:"M13 23h-2v2h2v-2zm24 0H17v2h20v-2z",fillRule:"evenodd",clipRule:"evenodd"}))},onSelect:e=>{const t=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return e[y(t,o)]};let o={buttonBackgroundColorType:"",buttonBorderType:""};return C.forEach((e=>{o={...o,[y("iconColor1",e)]:"transparent"===t("buttonBackgroundColor",e)?t("iconColor1",e):t("buttonBackgroundColor",e),[y("buttonBackgroundColor",e)]:"transparent"}})),o}}],S=(0,a.memo)((()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(r.InspectorTabs,{hasLayoutPanel:!1}),(0,a.createElement)(s.BlockStyle.InspectorControls,{styles:B},(0,a.createElement)(s.Button.InspectorControls.HoverEffects,null)),(0,a.createElement)(s.Button.InspectorControls.Link,null),(0,a.createElement)(s.Button.InspectorControls.Colors,{hasTextColor:!1,hasIconColor:!0}),(0,a.createElement)(s.Button.InspectorControls.Icon,{hasColor:!1,defaultValue:m}),(0,a.createElement)(s.Button.InspectorControls.Size,{hasWidth:!0,paddingPlaceholderName:"icon-button-padding"}),(0,a.createElement)(s.Button.InspectorControls.Borders,{borderSelector:".stk-button",placeholder:"24"}),(0,a.createElement)(s.BlockDiv.InspectorControls,{initialOpen:"spacing"}),(0,a.createElement)(s.Advanced.InspectorControls,null),(0,a.createElement)(s.Transform.InspectorControls,null),(0,a.createElement)(s.EffectsAnimations.InspectorControls,null),(0,a.createElement)(s.CustomAttributes.InspectorControls,null),(0,a.createElement)(s.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-button"}),(0,a.createElement)(s.Responsive.InspectorControls,null),(0,a.createElement)(s.ConditionalDisplay.InspectorControls,null)))),_=(0,d.compose)(c.withBlockWrapper,c.withQueryLoopContext,c.withBlockAttributeContext)((e=>{const{className:t}=e,o=s.CustomAttributes.getCustomAttributes(e.attributes),n=l()([t,"stk-block-icon-button"]),c=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:h,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:i.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(S,null),c&&(0,a.createElement)("style",{key:"block-css"},c),(0,a.createElement)(s.CustomCSS,{mainBlockClass:"stk-block-icon-button"}),(0,a.createElement)(s.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:n,applyCustomAttributes:!1},(0,a.createElement)(s.Button,{linkTrigger:".stk--inner-svg",buttonProps:{id:e.attributes.anchorId||void 0,...o}})))})),A=e=>{const{className:t,...o}=e,n=(0,s.getResponsiveClasses)(e.attributes),i=s.CustomAttributes.getCustomAttributes(e.attributes),r=l()([t,"stk-block-icon-button",n]);return(0,a.createElement)(s.BlockDiv.Content,{className:r,attributes:e.attributes,applyCustomAttributes:!1,version:e.version},e.attributes.generatedCss&&(0,a.createElement)("style",null,e.attributes.generatedCss),(0,a.createElement)(s.CustomCSS.Content,{attributes:e.attributes}),(0,a.createElement)(s.Button.Content,(0,v.Z)({},o,{attributes:e.attributes,buttonProps:{id:e.attributes.anchorId||void 0,...i}})))},w=(0,d.compose)((0,c.withVersion)(i.version))(A),E=JSON.parse('{"apiVersion":3,"name":"stackable/icon-button","title":"Icon Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"parent":["stackable/button-group"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-demo":"https://wpstackable.com/icon-button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-block-dependency":"stackable/button-group|icon-button"}');var T=o(378);const x={from:[{type:"block",isMultiblock:!1,blocks:["stackable/button"],transform:e=>(0,T.createBlock)("stackable/icon-button",{...e,icon:e.icon||m})}]},I=x,z=[{attributes:p("3.12.11"),save:(0,c.withVersion)("3.12.11")(A),isEligible:e=>{const t=s.deprecateBlockShadowColor.isEligible(e),o=s.deprecateContainerShadowColor.isEligible(e),a=s.deprecateShadowColor.isEligible("button%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=s.deprecateContainerBackgroundColorOpacity.migrate(t),t=s.deprecateBlockBackgroundColorOpacity.migrate(t),t=s.deprecateButtonGradientColor.migrate("button%s")(t),t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),t=s.deprecateShadowColor.migrate("button%s")(t),t}},{attributes:p("3.11.9"),save:(0,c.withVersion)("3.11.9")(A),isEligible:e=>{const t=s.deprecateContainerBackgroundColorOpacity.isEligible(e),o=s.deprecateBlockBackgroundColorOpacity.isEligible(e),a=s.deprecateButtonGradientColor.isEligible("button%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=s.deprecateContainerBackgroundColorOpacity.migrate(t),t=s.deprecateBlockBackgroundColorOpacity.migrate(t),t=s.deprecateButtonGradientColor.migrate("button%s")(t),t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),t=s.deprecateShadowColor.migrate("button%s")(t),t}},{attributes:p("3.7.9"),save:(0,c.withVersion)("3.7.9")(A),migrate:e=>{let t=s.deprecateContainerBackgroundColorOpacity.migrate(e);return t=s.deprecateButtonGradientColor.migrate("button%s")(t),t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),t=s.deprecateShadowColor.migrate("button%s")(t),s.deprecateBlockBackgroundColorOpacity.migrate(t)}}],M={...E,icon:o(9467).IconButtonIcon,attributes:k,supports:{anchor:!0},transforms:I,deprecated:z,edit:_,save:w}},5295:(e,t,o)=>{"use strict";o.d(t,{h:()=>g,Z:()=>v});var a=o(2610),n=o(9384),l=o(7200);const i=new l.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.addBlockStyles("iconGap2",[{renderIn:"save",selector:".stk-inner-blocks",attrName:"iconGap2",key:"iconGap-save",styleRule:"gap",format:"%spx",responsive:"all"},{renderIn:"edit",selector:".stk-inner-blocks .block-editor-block-list__layout",attrName:"iconGap2",key:"iconGap",styleRule:"gap",format:"%spx",responsive:"all"}]),n.Alignment.addStyles(i),n.BlockDiv.addStyles(i),n.Column.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i);const r=i;var s=o(910),c=o(4184),d=o.n(c),u=o(9783),b=o(3749),m=o(78),p=o(8003),k=o(3882);const g=[["stackable/icon",{contentAlign:"left"}],["stackable/heading",{text:(0,p.__)("Icon Label",s.i18n),hasP:!0,textTag:"h4"}]],h=(0,a.memo)((()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l.InspectorTabs,{hasLayoutPanel:!1}),(0,a.createElement)(l.InspectorStyleControls,null,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,p.__)("General",s.i18n),id:"general",initialOpen:!0},(0,a.createElement)(l.AdvancedRangeControl,{label:(0,p.__)("Icon Gap",s.i18n),attribute:"iconGap2",responsive:"all",min:0,sliderMax:300,placeholder:"28"}))),(0,a.createElement)(n.BlockDiv.InspectorControls,null),(0,a.createElement)(n.Advanced.InspectorControls,null),(0,a.createElement)(n.Transform.InspectorControls,null),(0,a.createElement)(n.EffectsAnimations.InspectorControls,null),(0,a.createElement)(n.CustomAttributes.InspectorControls,null),(0,a.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-label"}),(0,a.createElement)(n.Responsive.InspectorControls,null),(0,a.createElement)(n.ConditionalDisplay.InspectorControls,null),(0,a.createElement)(l.InspectorStyleControls,null,(0,a.createElement)(l.InspectorBottomTip,null))))),v=(0,b.compose)(u.withBlockWrapperIsHovered,u.withQueryLoopContext,u.withBlockAttributeContext)((e=>{const{className:t,attributes:o,clientId:i}=e,c=(0,n.getRowClasses)(o),u=(0,n.getAlignmentClasses)(o),b=d()([t,"stk-block-icon-label",c]),p=d()(["stk-inner-blocks",u,"stk-block-content"]),k=(0,l.useBlockCssGenerator)({attributes:e.attributes,blockStyles:r,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:s.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(h,null),k&&(0,a.createElement)("style",{key:"block-css"},k),(0,a.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-icon-label"}),(0,a.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b},(0,a.createElement)("div",{className:p},(0,a.createElement)(m.InnerBlocks,{orientation:"horizontal",template:g,templateLock:"insert",templateInsertUpdatesSelection:!0}))),e.isHovered&&(0,a.createElement)(n.MarginBottom,{previewSelector:`[data-block="${i}"] > .stk-block`}))}));(0,k.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/icon-label",((e,t)=>"stackable/icon-label"!==(null==t?void 0:t.name)&&e)),(0,k.addFilter)("stackable.heading.edit.top-bottom-line.enable-handlers","stackable/icon-label",((e,t)=>"stackable/icon-label"!==(null==t?void 0:t.name)&&e))},7075:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>f});var a=o(9467),n=o(5295),l=o(2610),i=o(4184),r=o.n(i),s=o(9783),c=o(910),d=o(9384),u=o(78);const b=e=>{const{attributes:t,className:o}=e,a=(0,d.getRowClasses)(t),n=(0,d.getAlignmentClasses)(t),i=(0,d.getResponsiveClasses)(t),s=r()([o,"stk-block-icon-label",i]),c=r()([a,"stk-inner-blocks",n,"stk-block-content"]);return(0,l.createElement)(d.BlockDiv.Content,{className:s,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(d.CustomCSS.Content,{attributes:t}),(0,l.createElement)("div",{className:c},(0,l.createElement)(u.InnerBlocks.Content,null)))},m=(0,o(3749).compose)((0,s.withVersion)(c.version))(b);var p=o(7545);const k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new p.AttributeObject;return d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.MarginBottom.addAttributes(t),d.Row.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.Alignment.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.ConditionalDisplay.addAttributes(t),t.add({attributes:{iconGap:{type:"number",stkResponsive:!0,default:""},iconGap2:{type:"number",stkResponsive:!0,default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},g=k(c.version),h=JSON.parse('{"apiVersion":3,"name":"stackable/icon-label","title":"Icon Label","description":"An Icon and Heading paired together.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/icon-label-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon","stackable/heading"]}'),v={attributes:{uniqueId:"655525d",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/icon",attributes:{uniqueId:"a732e98",hasBackground:!1,hasBorders:!1,contentAlign:"left",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},icon:'<svg data-prefix="fa" data-icon="star" class="svg-inline--fa fa-star fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,linkHasLink:!1,linkNewTab:!1,linkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/heading",attributes:{uniqueId:"749b033",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!0,show:!0,showText:!0,text:(0,o(8003).__)("Icon Label",c.i18n),textTag:"h4",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},C=[{attributes:k("3.13.1"),save:(0,s.withVersion)("3.13.1")(b),isEligible:(e,t)=>{var o;if("stackable/icon"!==(null===(o=t[0])||void 0===o?void 0:o.name))return!1;const a=t[0].attributes,n=!!(a.iconSize||a.iconSizeTablet||a.iconSizeMobile),l=!!(e.iconGap||0===e.iconGap||e.iconGapTablet||e.iconGapMobile),i=!!(e.iconGap2||0===e.iconGap2||e.iconGap2Tablet||e.iconGap2Mobile);return l||n&&!i},migrate:(e,t)=>{const o={...e},{iconGap:a,iconGapTablet:n,iconGapMobile:l}=e,i=t[0].attributes,{iconSize:r,iconSizeTablet:s,iconSizeMobile:c}=i,d=r||36,u=s||d,b=c||u,m=a||64,p=n||m,k=l||p,g=m-d>=0?m-d:0,h=p-u>=0?p-u:0,v=k-b>=0?k-b:0;return o.iconGap2=28===g?"":g,o.iconGap2Tablet=28===h?"":h,o.iconGap2Mobile=28===v?"":v,o.iconGap="",o.iconGapTablet="",o.iconGapMobile="",o}},{attributes:k("3.12.11"),save:(0,s.withVersion)("3.12.11")(b),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t}},{attributes:k("3.11.9"),save:(0,s.withVersion)("3.11.9")(b),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t}},{attributes:k("3.7.9"),save:(0,s.withVersion)("3.7.9")(b),migrate:e=>{let t=d.deprecateContainerBackgroundColorOpacity.migrate(e);return t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),d.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var y=o(2946);const f={...h,icon:a.IconLabelIcon,attributes:g,supports:{anchor:!0,align:["center","wide","full"],stkBlockLinking:!1,spacing:!0},example:v,deprecated:C,edit:n.Z,save:m,substitute:y.default}},2946:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/icon-label",to:"stackable/text",transform:(e,t)=>["stackable/text",{text:t[1][1].text}]},n=a},941:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>H});var a=o(9467),n=o(7462),l=o(2610),i=o(9384),r=o(7200);const s=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.Alignment.addStyles(s),i.Advanced.addStyles(s),i.Transform.addStyles(s),i.Typography.addStyles(s,{selector:".stk-block-icon-list-item__text",hoverSelector:".stk-block-icon-list-item__text:hover"}),i.EffectsAnimations.addStyles(s);const c=s;var d=o(5319),u=o(3749),b=o(3284),m=o(378),p=o(78);const k=wp.keycodes;function g(e){const t=(0,m.switchToBlockType)(e,"stackable/icon-list");if(t)return t;const o=(0,m.switchToBlockType)(e,"core/paragraph");return o?(0,m.switchToBlockType)(o,"stackable/icon-list"):null}function h(e){const t=[];for(let o of e)if("stackable/icon-list-item"===o.name)t.push(o);else if("stackable/icon-list"===o.name)t.push(...o.innerBlocks);else if(o=g(o))for(const{innerBlocks:e}of o)t.push(...e);return t}var v=o(910),C=o(4184),y=o.n(C),f=o(9783);o(8003);const B=["style","advanced"],S=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,{tabs:B,hasLayoutPanel:!1}),(0,l.createElement)(i.Typography.InspectorControls,(0,n.Z)({},e,{hasTextTag:!1,initialOpen:!0,hasTextShadow:!0})),(0,l.createElement)(i.Advanced.InspectorControls,null),(0,l.createElement)(i.Transform.InspectorControls,null),(0,l.createElement)(i.EffectsAnimations.InspectorControls,null),(0,l.createElement)(i.CustomAttributes.InspectorControls,null),(0,l.createElement)(i.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-list-item"}),(0,l.createElement)(i.Responsive.InspectorControls,null),(0,l.createElement)(i.ConditionalDisplay.InspectorControls,null)))),_=(0,u.compose)(f.withBlockWrapperIsHovered,f.withQueryLoopContext,f.withBlockAttributeContext)((e=>{const{attributes:t,clientId:o,onReplace:a,mergeBlocks:n,context:s,className:g,setAttributes:C}=e,{icon:f,text:B}=t,_=(0,i.getTypographyClasses)(e.attributes),A=(0,i.getAlignmentClasses)(e.attributes),{parentBlock:w}=(0,b.useSelect)((e=>{const{getBlockRootClientId:t,getBlock:a}=e("core/block-editor");return{parentBlock:a(t(o))}}),[o]),{"stackable/ordered":E,"stackable/uniqueId":T}=s,x=(0,l.useRef)(),I=(0,l.useRef)();(0,l.useEffect)((()=>{clearTimeout(x.current),E!==e.attributes.ordered&&(x.current=setTimeout((()=>{(0,b.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),C({ordered:E})}),300))}),[E]),(0,l.useEffect)((()=>{clearTimeout(I.current),T!==e.attributes.parentUniqueId&&(I.current=setTimeout((()=>{(0,b.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),C({parentUniqueId:T})}),300))}),[T]);const z=y()([g,"stk-block-icon-list-item"]),M=y()(["stk-block-icon-list-item__text",_,A]),H=((e,t)=>{const{removeBlocks:o,selectionChange:a,insertBlocks:n}=(0,b.useDispatch)(p.store),{getBlock:i,getBlockRootClientId:r,getBlockIndex:s}=(0,b.useSelect)(p.store),c=(0,l.useRef)(e);return c.current=e,(0,u.useRefEffect)((e=>{function l(e){var l;if(e.defaultPrevented||e.keyCode!==k.ENTER)return;if(c.current.length)return;e.preventDefault();const d=i(r(t)),u=s(t),b=d.innerBlocks.reduce(((e,t,o)=>(o>=u&&e.push(t.clientId),e)),[]);o(b,!1);const p=(0,m.createBlock)((0,m.getDefaultBlockName)()),g=[...(null===(l=d.innerBlocks[u].innerBlocks[0])||void 0===l?void 0:l.innerBlocks)||[],...d.innerBlocks.slice(u+1)],h=g.length?[(0,m.cloneBlock)({...d,innerBlocks:g})]:[],v=s(d.clientId),C=r(d.clientId);n([p,...h],v+1,C),a(p.clientId)}return e.addEventListener("keydown",l),()=>{e.removeEventListener("keydown",l)}}),[t])})(B,o),N=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:v.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(S,{blockState:e.blockState}),(0,l.createElement)(i.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:z,blockTag:"li",renderHtmlTag:!1,tabIndex:-1},N&&(0,l.createElement)("style",{key:"block-css"},N),(0,l.createElement)(i.CustomCSS,{mainBlockClass:"stk-block-icon-list-item"}),(0,l.createElement)("div",{className:"stk-block-icon-list-item__content"},!E&&f&&(0,l.createElement)(i.Icon,{value:f,openEvenIfUnselected:!0,hasLinearGradient:!1}),!E&&!f&&(0,l.createElement)(i.Icon,{value:(0,d.xP)(`#stk-icon-list__icon-svg-def-${T}`),openEvenIfUnselected:!0,hasLinearGradient:!1}),E&&(0,l.createElement)("span",{className:"stk-block-icon-list-item__marker"}),(0,l.createElement)(i.Typography,{ref:H,tagName:"span",className:M,onMerge:e=>{n(e),e||t.text||1!==w.innerBlocks.length||(0,b.dispatch)("core/block-editor").removeBlocks([o,w.clientId])},onReplace:a?function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];a(h(e),...o)}:void 0,enableDebounce:!1}))))})),A=(0,u.createHigherOrderComponent)((e=>t=>{if("stackable/icon-list-item"!==t.name)return(0,l.createElement)(e,t);const o={...t.wrapperProps,tabIndex:-1};return(0,l.createElement)(e,(0,n.Z)({},t,{wrapperProps:o}))}),"withNegativeTabIndex");wp.hooks.addFilter("editor.BlockEdit","stackable/with-icon-list-negative-tab-index",A);const w=e=>{const{className:t,attributes:o}=e,a=(0,i.getResponsiveClasses)(o),n=(0,i.getTypographyClasses)(e.attributes),r=(0,i.getAlignmentClasses)(e.attributes),s=y()([t,"stk-block-icon-list-item",a]),c=y()(["stk-block-icon-list-item__text",n,r]);return(0,l.createElement)(i.BlockDiv.Content,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:s,blockTag:"li",renderHtmlTag:!1},o.generatedCss&&(0,l.createElement)("style",null,o.generatedCss),(0,l.createElement)(i.CustomCSS.Content,{attributes:o}),(0,l.createElement)("div",{className:"stk-block-icon-list-item__content"},!o.ordered&&o.icon&&(0,l.createElement)(i.Icon.Content,{value:o.icon,attributes:o,hasLinearGradient:!1}),!o.ordered&&!o.icon&&(0,l.createElement)(i.Icon.Content,{attributes:o,useSvgDef:!0,value:(0,d.xP)(`#stk-icon-list__icon-svg-def-${o.parentUniqueId}`),hasLinearGradient:!1}),o.ordered&&(0,l.createElement)("span",{className:"stk-block-icon-list-item__marker","aria-hidden":"true"}),(0,l.createElement)(i.Typography.Content,{attributes:o,tagName:"span",className:c})))},E=(0,u.compose)((0,f.withVersion)(v.version))(w);var T=o(7545);const x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.version;const t=new T.AttributeObject;return i.BlockDiv.addAttributes(t),i.Style.addAttributes(t),i.EffectsAnimations.addAttributes(t),i.CustomAttributes.addAttributes(t),i.CustomCSS.addAttributes(t),i.Responsive.addAttributes(t),i.ConditionalDisplay.addAttributes(t),i.Advanced.addAttributes(t),i.Transform.addAttributes(t),i.Alignment.addAttributes(t),i.MarginBottom.addAttributes(t),i.Typography.addAttributes(t,".stk-block-icon-list-item__text",{hasTextTag:!1}),t.add({attributes:{icon:{type:"string",default:""},ordered:{type:"boolean",default:!1},parentUniqueId:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},I=x(v.version),z=JSON.parse('{"apiVersion":3,"name":"stackable/icon-list-item","title":"Icon List Item","description":"A single list entry in the Icon List block","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/ordered","stackable/uniqueId"],"keywords":[],"parent":["stackable/icon-list"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-demo":"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),M=[{attributes:x("3.12.11"),save:(0,f.withVersion)("3.12.11")(w),isEligible:e=>{const t=i.deprecateBlockShadowColor.isEligible(e),o=i.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t}}],H={...z,icon:a.IconListItemIcon,attributes:I,supports:{anchor:!0,__experimentalSelector:"li",reusable:!1,stkSaveBlockStyle:!1,splitting:!0},example:{attributes:{uniqueId:"1234567"},innerBlocks:[]},edit:_,save:E,deprecated:M,merge:(e,t)=>({...e,text:e.text+t.text})}},6013:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>C});var a=o(2610),n=o(4184),l=o.n(n),i=o(9384),r=o(9783),s=o(910);const c=e=>{const{attributes:t,className:o}=e,n=(0,i.getResponsiveClasses)(t),r=(0,i.getTypographyClasses)(t),s=(0,i.getAlignmentClasses)(t),c=t.ordered?"ol":"ul",d=l()([o,"stk-block-icon-list",s,n,r]);return(0,a.createElement)(i.BlockDiv.Content,{className:d,attributes:t,version:e.version},t.generatedCss&&(0,a.createElement)("style",null,t.generatedCss),(0,a.createElement)(i.CustomCSS.Content,{attributes:t}),(0,a.createElement)(i.Typography.Content,{tagName:c,attributes:t,multiline:"li"}))};(0,o(3749).compose)((0,r.withVersion)(s.version))(c);var d=o(7545);const u={columns:{stkResponsive:!0,type:"number",default:""},columnGap:{stkResponsive:!0,type:"number",default:""},ordered:{type:"boolean",default:!1},indentation:{type:"number",default:""},listAlignment:{stkResponsive:!0,type:"string",default:""},icon:{type:"string",default:o(5319).t5},markerColor:{type:"string",default:"",stkHover:!0},icons:{type:"object",default:{}},iconSize:{stkResponsive:!0,type:"number",default:""},iconOpacity:{stkHover:!0,type:"number",default:""},iconRotation:{type:"number",default:""},listType:{type:"string",default:""},iconGap:{stkResponsive:!0,type:"number",default:""},rowGap:{stkResponsive:!0,type:"number",default:""}},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.version;const t=new d.AttributeObject;return i.Alignment.addAttributes(t),i.Advanced.addAttributes(t),i.Transform.addAttributes(t),i.BlockDiv.addAttributes(t),i.Style.addAttributes(t),i.CustomAttributes.addAttributes(t),i.CustomCSS.addAttributes(t),i.EffectsAnimations.addAttributes(t),i.Responsive.addAttributes(t),i.ConditionalDisplay.addAttributes(t),i.Typography.addAttributes(t,"ul,ol",{hasTextTag:!1,multiline:"li",multilineWrapperTags:["ol","ul"]}),i.MarginBottom.addAttributes(t),t.add({attributes:u,versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)};b(s.version);var m=o(378);const p=e=>Array.from(e.matchAll(/<li>(.*?)<\/li>/gs)).map((e=>e[1])),k=(e,t)=>{if(!e)return;const o=`ul li:nth-child(${t+1})`;return o in e?e[o]:void 0},g=()=>{let e;try{const t=document.createElement("div");t.className="editor-styles-wrapper",t.classList.add("stk-dummy-element"),document.body.appendChild(t);const o=window.getComputedStyle(t).getPropertyValue("font-size");e=parseFloat(o),t.remove()}catch(t){e=16}return e},h=e=>g()*parseFloat(e),v=e=>{return t=g()*parseFloat(e)/2.067,Math.round(4*t)/4;var t},C=[{attributes:b("3.12.11"),save:(0,r.withVersion)("3.12.11")(c),isEligible:e=>{const t=i.deprecateBlockShadowColor.isEligible(e),o=i.deprecateContainerShadowColor.isEligible(e);return t||o},supports:{anchor:!0,spacing:!0,__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:!0},migrate:(e,t)=>{let o={...e};const{text:a,icons:n,iconSize:l,ordered:r,iconGap:s}=e,c=l||1,u=s||0;return o={...o,listFullWidth:!1,iconVerticalAlignment:"baseline",iconGap:u+4,iconSize:r?h(c):v(c)},t=a?p(a).map(((e,t)=>{const o=(0,m.createBlock)("stackable/icon-list-item",{text:e,icon:k(n,t)});return o.attributes.uniqueId=(0,d.createUniqueClass)(o.clientId),o})):[(0,m.createBlock)("stackable/icon-list-item")],o=i.deprecateContainerBackgroundColorOpacity.migrate(o),o=i.deprecateBlockBackgroundColorOpacity.migrate(o),o=i.deprecateTypographyGradientColor.migrate("%s")(o),o=i.deprecateBlockShadowColor.migrate(o),o=i.deprecateContainerShadowColor.migrate(o),[o,t]}},{attributes:b("3.12.8"),save:(0,r.withVersion)("3.12.8")(c),supports:{anchor:!0,spacing:!0,__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:!0},migrate:(e,t)=>{let o={...e};const{text:a,icons:n,iconSize:l,ordered:r,iconGap:s}=e,c=l||1,d=s||0;return o={...o,listFullWidth:!1,iconVerticalAlignment:"baseline",iconGap:d+4,iconSize:r?h(c):v(c)},t=a?p(a).map(((e,t)=>(0,m.createBlock)("stackable/icon-list-item",{text:e,icon:k(n,t)}))):[(0,m.createBlock)("stackable/icon-list-item")],o=i.deprecateContainerBackgroundColorOpacity.migrate(o),o=i.deprecateBlockBackgroundColorOpacity.migrate(o),o=i.deprecateTypographyGradientColor.migrate("%s")(o),o=i.deprecateBlockShadowColor.migrate(o),o=i.deprecateContainerShadowColor.migrate(o),[o,t]}},{attributes:b("3.11.9"),save:(0,r.withVersion)("3.11.9")(c),isEligible:e=>{const t=i.deprecateContainerBackgroundColorOpacity.isEligible(e),o=i.deprecateBlockBackgroundColorOpacity.isEligible(e),a=i.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t}},{attributes:b("3.7.9"),save:(0,r.withVersion)("3.7.9")(c),migrate:e=>{let t=i.deprecateContainerBackgroundColorOpacity.migrate(e);return t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),i.deprecateBlockBackgroundColorOpacity.migrate(t)}}]},7865:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>V});var a=o(9467),n=o(7462),l=o(2610),i=o(9384),r=o(7200);const s=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.addBlockStyles("iconGap",[{selector:".stk-block-icon-list-item__content",styleRule:"gap",attrName:"iconGap",key:"iconGap",responsive:"all",format:"%spx"}]),s.addBlockStyles("listType",[{selector:"ol",styleRule:"--stk-list-style-type",attrName:"listType",key:"listType"}]),s.addBlockStyles("columns",[{selector:"",styleRule:"--stk-icon-list-column-count",attrName:"columns",key:"columns",responsive:"all"}]),s.addBlockStyles("columnGap",[{selector:"",styleRule:"--stk-icon-list-column-gap",attrName:"columnGap",key:"columnGap",responsive:"all",format:"%spx"}]),s.addBlockStyles("rowGap",[{selector:"",styleRule:"--stk-icon-list-row-gap",attrName:"rowGap",key:"rowGap",responsive:"all",format:"%spx"}]),s.addBlockStyles("indentation",[{selector:["ul","ol"],styleRule:"paddingLeft",attrName:"indentation",key:"indentation",responsive:"all",format:"%spx"}]),s.addBlockStyles("markerColor",[{selector:"",hover:"all",hoverSelector:".%s:hover",styleRule:"--stk-icon-list-marker-color",attrName:"markerColor",key:"markerColor"}]),s.addBlockStyles("iconOpacity",[{selector:"",hover:"all",hoverSelector:".%s:hover",styleRule:"--stk-icon-list-icon-opacity",attrName:"iconOpacity",key:"iconOpacity"}]),s.addBlockStyles("iconRotation",[{selector:"",hover:"all",hoverSelector:".%s:hover",styleRule:"--stk-icon-list-icon-rotation",attrName:"iconRotation",key:"iconRotation",valueCallback:e=>e+"deg"}]),s.addBlockStyles("iconSize",[{selector:"",styleRule:"--stk-icon-list-icon-size",attrName:"iconSize",key:"iconSize",responsive:"all",format:"%spx"},{selector:"ul .stk-block-icon-list-item__content .stk--svg-wrapper",styleRule:"marginRight",attrName:"iconSize",key:"iconMarginRight",responsive:"all",valueCallback:e=>0===e?"0px":void 0}]),s.addBlockStyles("iconVerticalAlignment",[{selector:".stk-block-icon-list-item__content",styleRule:"alignItems",attrName:"iconVerticalAlignment",key:"iconVerticalAlignment",responsive:"all"}]),s.addBlockStyles("iconVerticalOffset",[{selector:["ul .stk-block-icon-list-item__content .stk--inner-svg","ol .stk-block-icon-list-item__content .stk-block-icon-list-item__marker"],styleRule:"transform",attrName:"iconVerticalOffset",key:"iconVerticalOffset",responsive:"all",format:"translateY(%spx)"}]),s.addBlockStyles("hasPeriod",[{selector:".stk-block-icon-list-item__marker::before",styleRule:"content",attrName:"hasPeriod",key:"hasPeriod",valueCallback:e=>e?void 0:"counter(stk-icon-list-counter, var(--stk-list-style-type, decimal))",enabledCallback:e=>e("ordered"),dependencies:["ordered"]}]),s.addBlockStyles("listAlignment",[{selector:".stk-block-icon-list-item__content",styleRule:"marginInline",attrName:"listAlignment",key:"listAlignment-marginInline",responsive:"all",valueCallback:e=>"center"===e?"auto":"right"===e?"auto 0":"left"===e?"0 auto":""}]),s.addBlockStyles("listFullWidth",[{selector:["ul","ol"],responsive:"all",styleRule:"width",attrName:"listFullWidth",key:"listFullWidth",valueCallback:e=>e?void 0:"fit-content",enabledCallback:e=>"grid"===e("listDisplayStyle"),dependencies:["listDisplayStyle"]}]),s.addBlockStyles("contentAlign",[{selector:".stk-block-icon-list__group",responsive:"all",styleRule:"marginInline",attrName:"contentAlign",key:"contentAlign-group",valueCallback:e=>"center"===e?"auto":"right"===e?"auto 0":"left"===e?"0 auto":"",enabledCallback:e=>"grid"!==e("listDisplayStyle"),dependencies:["listDisplayStyle"]}]),s.addBlockStyles("listItemBorderStyle",[{selectorCallback:e=>{const t=e("columns")||1;return`.wp-block-stackable-icon-list-item:not(:nth-last-child(-n + ${"grid"===e("listDisplayStyle")?t:1}))::after`},styleRule:"borderBottomStyle",attrName:"listItemBorderStyle",key:"listItemBorderStyle"}]),s.addBlockStyles("listItemBorderWidth",[{selectorCallback:e=>{const t=e("columns")||1;return`.wp-block-stackable-icon-list-item:not(:nth-last-child(-n + ${"grid"===e("listDisplayStyle")?t:1}))::after`},styleRule:"borderWidth",attrName:"listItemBorderWidth",key:"listItemBorderWidth",responsive:"all",format:"%spx"}]),s.addBlockStyles("listItemBorderColor",[{selectorCallback:e=>{const t=e("columns")||1;return`.wp-block-stackable-icon-list-item:not(:nth-last-child(-n + ${"grid"===e("listDisplayStyle")?t:1}))::after`},styleRule:"borderColor",attrName:"listItemBorderColor",key:"listItemBorderColor"}]),i.Alignment.addStyles(s),i.Typography.addStyles(s,{selector:["ul li","ol li","ul li span","ol li span"],hoverSelector:[".%s:hover ul li",".%s:hover ol li"]}),i.MarginBottom.addStyles(s),i.BlockDiv.addStyles(s),i.Advanced.addStyles(s),i.Transform.addStyles(s),i.EffectsAnimations.addStyles(s);const c=s;var d=o(4184),u=o.n(d),b=o(910),m=o(9783),p=o(8003),k=o(5319),g=o(3749),h=o(78),v=o(3284),C=o(3882),y=o(8333);const f=["stackable/icon-list-item"],B=[["stackable/icon-list-item",{text:""}]],S=[{label:(0,p.__)("Unordered List",b.i18n),value:"unordered"},{label:(0,p.__)("Ordered List",b.i18n),value:"ordered"}],_=[{label:(0,p.__)("List",b.i18n),value:""},{label:(0,p.__)("Grid",b.i18n),value:"grid"}],A=[{label:(0,p.__)("Number",b.i18n),value:"decimal"},{label:(0,p.__)("Padded Number",b.i18n),value:"decimal-leading-zero"},{label:(0,p.__)("Lowercase Roman",b.i18n),value:"lower-roman"},{label:(0,p.__)("Uppercase Roman",b.i18n),value:"upper-roman"},{label:(0,p.__)("Lowercase Letters",b.i18n),value:"lower-alpha"},{label:(0,p.__)("Uppercase Letters",b.i18n),value:"upper-alpha"}],w=[{value:"",title:(0,p.__)("None",b.i18n)},{value:"solid",title:(0,p.__)("Solid",b.i18n)},{value:"dashed",title:(0,p.__)("Dashed",b.i18n)},{value:"dotted",title:(0,p.__)("Dotted",b.i18n)}],E=["stretch"],T=(0,l.memo)((e=>{const{getPlaceholder:t}=(0,y.useBlockLayoutDefaults)();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,{hasLayoutPanel:!1}),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,p.__)("General",b.i18n),initialOpen:!0,id:"general"},(0,l.createElement)(r.AlignButtonsControl,{label:(0,p.sprintf)((0,p.__)("%s Alignment",b.i18n),(0,p.__)("List Item",b.i18n)),attribute:"listAlignment",responsive:"all"}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,p.__)("Full Width",b.i18n),attribute:"listFullWidth",defaultValue:!0,help:(0,p.__)("More noticeable when using wide layouts or list item borders",b.i18n)}),!e.listFullWidth&&(0,l.createElement)(r.AlignButtonsControl,{label:(0,p.sprintf)((0,p.__)("%s Alignment",b.i18n),(0,p.__)("List",b.i18n)),attribute:"contentAlign",responsive:"all",justified:!1}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Columns",b.i18n),attribute:"columns",min:"1",sliderMax:"4",step:"1",placeholder:"1",responsive:"all"}),e.columns>1&&(0,l.createElement)(r.AdvancedSelectControl,{label:(0,p.__)("List Display Style",b.i18n),options:_,attribute:"listDisplayStyle"}),e.columns>1&&(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Column Gap",b.i18n),attribute:"columnGap",min:"0",sliderMax:"50",responsive:"all",placeholder:"16"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Row Gap",b.i18n),attribute:"rowGap",min:"0",sliderMax:"50",responsive:"all",placeholder:t("icon-list-row-gap")}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Icon Gap",b.i18n),attribute:"iconGap",min:"0",sliderMax:"20",responsive:"all",placeholder:t("icon-list-icon-gap")}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Indentation",b.i18n),attribute:"indentation",min:"0",sliderMax:"50",responsive:"all",placeholder:t("icon-list-indentation")}))),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,p.__)("Icons & Numbers",b.i18n),initialOpen:!1,id:"icon-and-markers"},(0,l.createElement)(r.AdvancedSelectControl,{label:(0,p.__)("List Type",b.i18n),options:S,value:e.ordered?"ordered":"unordered",onChange:t=>e.setAttributes({ordered:"ordered"===t}),default:"unordered"}),!e.ordered&&(0,l.createElement)(r.IconControl,{label:(0,p.__)("Icon",b.i18n),value:e.icon,onChange:t=>{e.setAttributes({icon:t}),e.resetCustomIcons()},defaultValue:k.t5}),e.ordered&&(0,l.createElement)(r.AdvancedSelectControl,{label:(0,p.__)("List Type",b.i18n),attribute:"listType",options:A}),e.ordered&&(0,l.createElement)(r.AdvancedToggleControl,{label:(0,p.__)("With Period",b.i18n),attribute:"hasPeriod",defaultValue:!0}),(0,l.createElement)(r.ColorPaletteControl,{label:(0,p.__)("Color",b.i18n),attribute:"markerColor",hover:"all"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.sprintf)((0,p.__)("%s Size",b.i18n),e.ordered?(0,p.__)("Number",b.i18n):(0,p.__)("Icon",b.i18n)),attribute:"iconSize",min:0,max:50,step:1,allowReset:!0,responsive:"all",placeholder:t("icon-list-icon-size")}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Icon Opacity",b.i18n),attribute:"iconOpacity",min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",hover:"all"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Icon Rotation",b.i18n),attribute:"iconRotation",min:0,max:360,allowReset:!0,placeholder:"0"}),(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,p.__)("Icon Vertical Alignment",b.i18n),controls:"flex-vertical",omit:E,attribute:"iconVerticalAlignment",fullwidth:!0,responsive:"all",help:(0,p.__)("This is more visible if you have long text in your list.",b.i18n),placeholder:"center"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Icon Vertical Offset",b.i18n),attribute:"iconVerticalOffset",min:-1e3,sliderMin:-50,sliderMax:50,step:1,allowReset:!0,responsive:"all",placeholder:"0"})),(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,p.__)("Icon List Item Borders",b.i18n),initialOpen:!1,id:"icon-list-item-borders"},(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,p.__)("Borders",b.i18n),controls:w,className:"ugb-border-controls__border-type-toolbar",attribute:"listItemBorderStyle",fullwidth:!0,isSmall:!0}),e.listItemBorderStyle&&(0,l.createElement)(r.AdvancedRangeControl,{label:(0,p.__)("Border Width",b.i18n),attribute:"listItemBorderWidth",responsive:"all",min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,placeholder:"1"}),e.listItemBorderStyle&&(0,l.createElement)(r.ColorPaletteControl,{label:(0,p.__)("Border Color",b.i18n),attribute:"listItemBorderColor",value:e.listItemBorderColor?e.listItemBorderColor:"#00000066",default:"#00000066"}))),(0,l.createElement)(i.Typography.InspectorControls,(0,n.Z)({},e,{isMultiline:!0,initialOpen:!1,hasTextTag:!1,hasTextContent:!1})),(0,l.createElement)(i.Alignment.InspectorControls,{enableContentAlign:!1}),(0,l.createElement)(i.BlockDiv.InspectorControls,null),(0,l.createElement)(i.Advanced.InspectorControls,null),(0,l.createElement)(i.Transform.InspectorControls,null),(0,l.createElement)(i.EffectsAnimations.InspectorControls,null),(0,l.createElement)(i.CustomAttributes.InspectorControls,null),(0,l.createElement)(i.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-list"}),(0,l.createElement)(i.Responsive.InspectorControls,null),(0,l.createElement)(i.ConditionalDisplay.InspectorControls,null))})),x=(0,g.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{attributes:t,setAttributes:o,className:a}=e,{ordered:n,icon:s,listItemBorderStyle:d,listItemBorderColor:m,listDisplayStyle:p,listFullWidth:g}=t,C=!g&&"grid"!==p,y=n?"ol":"ul",S=C?"div":y,_=(0,i.getTypographyClasses)(t),A=(0,i.getAlignmentClasses)(t),{innerBlocks:w}=(0,v.useSelect)((t=>{const{getBlock:o}=t("core/block-editor");return{innerBlocks:o(e.clientId).innerBlocks}}),[e.clientId]),E=u()([a,"stk-block-icon-list",A,_]),x=u()([n?"stk-block-icon-list__ol":"stk-block-icon-list__ul",p&&"grid"===p?"stk-block-icon-list--grid":"stk-block-icon-list--column"]),I=(0,h.useInnerBlocksProps)({className:x},{allowedBlocks:f,template:B,templateInsertUpdatesSelection:!0,renderAppender:!1,__experimentalCaptureToolbars:!0}),z=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:b.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(T,{blockState:e.blockState,setAttributes:o,columns:t.columns,ordered:n,icon:s,listFullWidth:g,listItemBorderStyle:d,listItemBorderColor:m,resetCustomIcons:()=>{w.forEach((e=>{(0,v.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{icon:""})}))}}),z&&(0,l.createElement)("style",{key:"block-css"},z),(0,l.createElement)(i.CustomCSS,{mainBlockClass:"stk-block-icon-list"}),(0,l.createElement)(i.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:E},!n&&(0,l.createElement)(k._h,{icon:s,uniqueId:t.uniqueId}),(0,l.createElement)(S,{className:x},C&&(0,l.createElement)(y,{className:"stk-block-icon-list__group"},I.children),!C&&I.children)),e.isHovered&&(0,l.createElement)(i.MarginBottom,null))}));(0,C.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/icon-list",((e,t)=>"stackable/icon-list-item"!==(null==t?void 0:t.name)&&e));const I=(0,g.compose)((0,m.withVersion)(b.version))((e=>{const{attributes:t,className:o}=e,a=(0,i.getResponsiveClasses)(t),n=(0,i.getTypographyClasses)(t),r=(0,i.getAlignmentClasses)(t),s=!t.listFullWidth&&"grid"!==t.listDisplayStyle,c=t.ordered?"ol":"ul",d=s?"div":c,b=u()([o,"stk-block-icon-list",r,a,n]),m=u()([t.ordered?"stk-block-icon-list__ol":"stk-block-icon-list__ul",t.listDisplayStyle&&"grid"===t.listDisplayStyle?"stk-block-icon-list--grid":"stk-block-icon-list--column"]);return(0,l.createElement)(i.BlockDiv.Content,{className:b,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(i.CustomCSS.Content,{attributes:t}),!t.ordered&&(0,l.createElement)(k._h,{icon:t.icon,uniqueId:t.uniqueId}),(0,l.createElement)(d,{className:m},s&&(0,l.createElement)(c,{className:"stk-block-icon-list__group"},(0,l.createElement)(h.InnerBlocks.Content,null)),!s&&(0,l.createElement)(h.InnerBlocks.Content,null)))})),z=JSON.parse('{"apiVersion":3,"name":"stackable/icon-list","title":"Icon List","description":"An unordered list with icons. You can use this as a list of features or benefits.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Checklist","Bullets","Number list"],"providesContext":{"stackable/ordered":"ordered","stackable/uniqueId":"uniqueId"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-list-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}');var M=o(7545);const H={columns:{stkResponsive:!0,type:"number",default:""},columnGap:{stkResponsive:!0,type:"number",default:""},ordered:{type:"boolean",default:!1},indentation:{type:"number",default:""},listAlignment:{stkResponsive:!0,type:"string",default:""},listDisplayStyle:{type:"string",default:""},listFullWidth:{type:"boolean",default:!0},icon:{type:"string",default:k.t5},markerColor:{type:"string",default:"",stkHover:!0},icons:{type:"object",default:{}},iconSize:{stkResponsive:!0,type:"number",default:""},iconOpacity:{stkHover:!0,type:"number",default:""},iconRotation:{type:"number",default:""},iconVerticalAlignment:{stkResponsive:!0,type:"string",default:""},iconVerticalOffset:{stkResponsive:!0,type:"number",default:""},listType:{type:"string",default:""},iconGap:{stkResponsive:!0,type:"number",default:""},rowGap:{stkResponsive:!0,type:"number",default:""},hasPeriod:{type:"boolean",default:!0},listItemBorderStyle:{type:"string",default:""},listItemBorderWidth:{stkResponsive:!0,type:"number",default:""},listItemBorderColor:{type:"string",default:""}},N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.version;const t=new M.AttributeObject;return i.Alignment.addAttributes(t),i.Advanced.addAttributes(t),i.Transform.addAttributes(t),i.BlockDiv.addAttributes(t),i.Style.addAttributes(t),i.CustomAttributes.addAttributes(t),i.CustomCSS.addAttributes(t),i.EffectsAnimations.addAttributes(t),i.Responsive.addAttributes(t),i.ConditionalDisplay.addAttributes(t),i.Typography.addAttributes(t,"ul,ol",{hasTextTag:!1}),i.MarginBottom.addAttributes(t),t.add({attributes:H,versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)}(b.version),D={attributes:{uniqueId:"635c98b",hasBackground:!1,hasBorders:!1,customAttributes:[],effectAnimationOut:{},effectAnimationIn:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<li>${(0,p.__)("Line 1",b.i18n)}</li><li>${(0,p.__)("Line 2",b.i18n)}</li><li>${(0,p.__)("Line 3",b.i18n)}</li><li>${(0,p.__)("Line 4",b.i18n)}</li><li>${(0,p.__)("Line 5",b.i18n)}</li><li>${(0,p.__)("Line 6",b.i18n)}</li>`,columns:2,ordered:!1,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 190 190"><polygon points="173.8,28.4 60.4,141.8 15.7,97.2 5.1,107.8 60.4,163 184.4,39 173.8,28.4"/></svg>',icons:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]};var O=o(6013),L=o(378),R=o(2413);function U(e){return e.flatMap((e=>{let{name:t,attributes:o,innerBlocks:a=[]}=e;return"stackable/icon-list-item"===t?[o.text,...U(a)]:U(a)}))}const P={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading","stackable/text","stackable/heading","stackable/subtitle"],transform:e=>{let t=[];if(e.length>1)t=e.map((e=>{let{content:t}=e;return(0,L.createBlock)("stackable/icon-list-item",{text:t})}));else if(1===e.length){const o=(0,R.create)({html:e[0].content});t=(0,R.split)(o,"\n").map((e=>(0,L.createBlock)("stackable/icon-list-item",{text:(0,R.toHTMLString)({value:e})})))}return(0,L.createBlock)("stackable/icon-list",{anchor:e.anchor},t)}},{type:"block",blocks:["core/list"],transform:(e,t)=>{const o=t.map((e=>{let{attributes:t}=e;return(0,L.createBlock)("stackable/icon-list-item",{text:t.content})}));return(0,L.createBlock)("stackable/icon-list",{anchor:e.anchor},o)}}],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,o)=>U(o).map((t=>(0,L.createBlock)(e,{content:t})))}))),...["stackable/text","stackable/heading"].map((e=>({type:"block",blocks:[e],transform:(t,o)=>U(o).map((t=>(0,L.createBlock)(e,{text:t})))}))),{type:"block",blocks:["core/list"],transform:(e,t)=>{const o=t.map((e=>{let{attributes:t}=e;return(0,L.createBlock)("core/list-item",{content:t.text})}));return(0,L.createBlock)("core/list",{anchor:e.anchor},o)}}]},V={...z,icon:a.IconListIcon,attributes:N,supports:{anchor:!0,spacing:!0,__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:!0},example:D,deprecated:O.default,edit:x,save:I,transforms:P}},6194:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/icon-list",transform:()=>["core/list",{},[["core/list-item",{content:"First item list"}],["core/list-item",{content:"Second item list"}],["core/list-item",{content:"Third item list"}]]]},n=a},5319:(e,t,o)=>{"use strict";o.d(t,{t5:()=>r,_h:()=>s,xP:()=>c});var a=o(2610),n=o(8003),l=(o(378),o(7294)),i=o(910);const r='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 190 190"><polygon points="173.8,28.4 60.4,141.8 15.7,97.2 5.1,107.8 60.4,163 184.4,39 173.8,28.4"/></svg>',s=e=>{const{icon:t,uniqueId:o}=e,n=`<defs><g id="stk-icon-list__icon-svg-def-${o}">${t}</g></defs>`;return(0,a.createElement)("svg",{dangerouslySetInnerHTML:{__html:n},style:{display:"none"}})},c=e=>`<svg><use xlink:href="${e}"></use></svg>`;(0,l.forwardRef)(((e,t)=>{const{component:o,...n}=e;return(0,a.createElement)(o,n," ",e.children," ")})),(0,n.__)("Number",i.i18n),(0,n.__)("Padded Number",i.i18n),(0,n.__)("Lowercase Roman",i.i18n),(0,n.__)("Uppercase Roman",i.i18n),(0,n.__)("Lowercase Letters",i.i18n),(0,n.__)("Uppercase Letters",i.i18n)},2686:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});l.Alignment.addStyles(r),l.BlockDiv.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r),l.Icon.addStyles(r,{selector:".stk--svg-wrapper",hoverSelector:".stk--svg-wrapper:hover"});const s=r;var c=o(4184),d=o.n(c),u=o(8085),b=o(910),m=o(9783),p=o(3749),k=o(8003),g=o(3882),h=o(7545);const v='<svg data-prefix="fa" data-icon="star" class="svg-inline--fa fa-star fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.version;const t=new h.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.Icon.addAttributes(t),l.Link.addAttributes(t),t.add({attributes:{ariaLabel:{type:"string",source:"attribute",selector:"svg[data-icon]",attribute:"aria-label",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{icon:v,linkHasLink:!1},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},y=C(b.version),f=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.Icon.InspectorControls,{initialOpen:!0,hasMultiColor:!0,defaultValue:e.derivedIcon}),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Link.InspectorControls,{hasToggle:!0,isAdvancedTab:!0}),(0,n.createElement)(i.InspectorAdvancedControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Accessibility",b.i18n),id:"accessibility"},(0,n.createElement)(i.AdvancedTextControl,{isDynamic:!1,label:(0,k.__)("Icon Label",b.i18n),attribute:"ariaLabel"}))),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),B=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{className:t,attributes:o}=e,a=(0,l.getAlignmentClasses)(o),r=d()([t,"stk-block-icon",a]),c=(0,g.applyFilters)("stackable.block-component.icon.default",v),u=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:b.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(f,{derivedIcon:c}),u&&(0,n.createElement)("style",{key:"block-css"},u),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-icon"}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:r},(0,n.createElement)(l.Link,{linkTrigger:".stk--inner-svg"},(0,n.createElement)(l.Icon,{defaultValue:v}))),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))}));(0,g.addFilter)("stackable.icon.design.filtered-block-attributes","stackable/table-of-contents",(e=>(0,u.omit)(e,["icon","icon2"])));var S=o(7462),_=o(78);const A=e=>{const{attributes:t,className:o}=e,a=(0,l.getAlignmentClasses)(e.attributes),i=(0,l.getResponsiveClasses)(e.attributes),r=d()([o,"stk-block-icon",a,i]);return(0,n.createElement)(l.BlockDiv.Content,(0,S.Z)({},_.useBlockProps.save({className:r}),{attributes:t,version:e.version}),t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),t.linkUrl?(0,n.createElement)(l.Link.Content,{attributes:t},(0,n.createElement)(l.Icon.Content,{attributes:t})):(0,n.createElement)(l.Icon.Content,{attributes:t}))},w=(0,p.compose)((0,m.withVersion)(b.version))(A),E=JSON.parse('{"apiVersion":3,"name":"stackable/icon","title":"Icon","description":"Pick an icon or upload your own SVG icon to decorate your content.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}');var T=o(5295),x=o(1840),I=o(378);const z={to:[{type:"block",isMultiBlock:!0,blocks:["stackable/icon-box"],transform:e=>e.map((e=>{let{...t}=e;return(0,I.createBlocksFromInnerBlocksTemplate)([["stackable/icon-box",{},x.h.map((e=>("stackable/icon-label"===e[0]&&(e[2][0][1]=t),e)))]])[0]}))},{type:"block",isMultiBlock:!0,blocks:["stackable/icon-label"],transform:e=>e.map((e=>{let{...t}=e;return(0,I.createBlocksFromInnerBlocksTemplate)([["stackable/icon-label",{},T.h.map((e=>("stackable/icon"===e[0]&&(e[1]=t),e)))]])[0]}))}]},M=z,H=[{attributes:C("3.12.11"),save:(0,m.withVersion)("3.12.11")(A),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:C("3.11.9"),save:(0,m.withVersion)("3.11.9")(A),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:C("3.7.9"),save:(0,m.withVersion)("3.7.9")(A),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var N=o(6012);const D={...E,icon:a.IconIcon,attributes:y,supports:{anchor:!0,spacing:!0},example:{attributes:{uniqueId:"35e1f64",hasBackground:!1,hasBorders:!1,contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},icon:'<svg data-prefix="far" data-icon="star" class="svg-inline--fa fa-star fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 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.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"></path></svg>',iconColor1:"#000000",showBackgroundShape:!1,linkHasLink:!1,linkNewTab:!1,linkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},transforms:M,deprecated:H,edit:B,save:w,substitute:N.default}},6012:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/icon",transform:()=>["core/paragraph",{content:""}]},n=a},4357:(e,t,o)=>{"use strict";o.d(t,{h:()=>v,Z:()=>y});var a=o(2610),n=o(9384),l=o(7200);const i=new l.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});n.Alignment.addStyles(i),n.BlockDiv.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i);const r=i;var s=o(1032),c=o(4184),d=o.n(c),u=o(8085),b=o(910),m=o(9783),p=o(3749),k=o(78),g=(o(8003),o(3882)),h=o(3284);const v=s.Z[0].innerBlocks,C=(0,a.memo)((()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l.InspectorTabs,null),(0,a.createElement)(n.Alignment.InspectorControls,null),(0,a.createElement)(n.BlockDiv.InspectorControls,null),(0,a.createElement)(n.BlockLink.InspectorControls,null),(0,a.createElement)(n.Advanced.InspectorControls,null),(0,a.createElement)(n.Transform.InspectorControls,null),(0,a.createElement)(n.EffectsAnimations.InspectorControls,null),(0,a.createElement)(n.CustomAttributes.InspectorControls,null),(0,a.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-image-box"}),(0,a.createElement)(n.Responsive.InspectorControls,null),(0,a.createElement)(n.ConditionalDisplay.InspectorControls,null),(0,a.createElement)(l.InspectorBlockControls,null,(0,a.createElement)(l.InspectorBottomTip,null))))),y=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{var t;const{hasInnerBlocks:o,innerBlocks:i}=(0,h.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),{className:s}=e,c=(0,n.getBlockOrientation)(e.attributes),m=(0,n.getAlignmentClasses)(e.attributes),p=(0,n.getRowClasses)(e.attributes),g=d()([s,"stk-block-image-box"]),y=d()(["stk-block-content","stk-inner-blocks",m,p,"stk-hover-parent","stk-block-image-box__content"]),f=null===(t=(0,u.last)(i))||void 0===t?void 0:t.name,B=o?["stackable/text","core/paragraph"].includes(f)?()=>(0,a.createElement)(a.Fragment,null):k.InnerBlocks.DefaultBlockAppender:k.InnerBlocks.ButtonBlockAppender,S=(0,l.useBlockCssGenerator)({attributes:e.attributes,blockStyles:r,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:b.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(C,null),S&&(0,a.createElement)("style",{key:"block-css"},S),(0,a.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-image-box"}),(0,a.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:g,enableVariationPicker:!0},(0,a.createElement)("div",{className:y},(0,a.createElement)(k.InnerBlocks,{templateLock:"insert",template:v,orientation:c,renderAppender:B}))),e.isHovered&&o&&(0,a.createElement)(n.MarginBottom,null))}));(0,g.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/image-box",((e,t)=>"stackable/image-box"!==(null==t?void 0:t.name)&&e)),(0,g.addFilter)("stackable.edit.image.enable-link","stackable/image-box",((e,t)=>"stackable/image-box"!==(null==t?void 0:t.name)&&e)),(0,g.addFilter)("stackable.block-default-styles.use-saved-style","stackable/image-box",((e,t,o)=>!(["stackable/heading","stackable/subtitle","stackable/text"].includes(t.name)&&o.length>=2&&"stackable/image-box"===o[o.length-2])&&e))},1471:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>f});var a=o(9467),n=o(4357),l=o(2610),i=o(4184),r=o.n(i),s=o(9783),c=o(910),d=o(9384),u=o(78);const b=e=>{const{attributes:t}=e,o=(0,d.getAlignmentClasses)(e.attributes),a=(0,d.getResponsiveClasses)(e.attributes),n=(0,d.getRowClasses)(e.attributes),i=r()([e.className,"stk-block-image-box",a,"stk-hover-parent"]),s=r()(["stk-block-content","stk-inner-blocks",o,n,"stk-block-image-box__content"]);return(0,l.createElement)(d.BlockDiv.Content,{className:i,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(d.CustomCSS.Content,{attributes:t}),(0,l.createElement)("div",{className:s},(0,l.createElement)(u.InnerBlocks.Content,null)),(0,l.createElement)(d.BlockLink.Content,{attributes:t,isHidden:!1}))},m=(0,o(3749).compose)((0,s.withVersion)(c.version))(b);var p=o(7545);const k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new p.AttributeObject;return d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.BlockLink.addAttributes(t),t.add({attributes:{design:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{contentAlign:"center"},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},g=k(c.version);var h=o(1032);const v=JSON.parse('{"apiVersion":3,"name":"stackable/image-box","title":"Image Box","description":"Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/image-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/image","stackable/subtitle","stackable/icon"],"stk-substitution-blocks":["stackable/heading","stackable/text"]}'),C={attributes:{uniqueId:"e65ffe4",hasBackground:!1,hasBorders:!1,contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",className:"is-style-default"},innerBlocks:[{name:"stackable/image",attributes:{uniqueId:"f45cd4f",hasBackground:!1,hasBorders:!1,imageShow:!0,imageUrl:"https://source.unsplash.com/400x300/?shoes",imageSize:"full",imageHeight:350,imageShapeStretch:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",imageWidthUnit:"%",imageWidthUnitTablet:"%",imageWidthUnitMobile:"%",imageFilterParentHover:"brightness(0.3)"},innerBlocks:[]},{name:"stackable/column",attributes:{uniqueId:"cd5f242",hasBackground:!1,hasBorders:!1,hasContainer:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"889b5d9",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,o(8003).__)("Title",c.i18n),textTag:"h4",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]},y=[{attributes:k("3.12.11"),save:(0,s.withVersion)("3.12.11")(b),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t}},{attributes:k("3.11.9"),save:(0,s.withVersion)("3.11.9")(b),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=d.deprecateContainerBackgroundColorOpacity.migrate(t),t=d.deprecateBlockBackgroundColorOpacity.migrate(t),t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),t}},{attributes:k("3.7.9"),save:(0,s.withVersion)("3.7.9")(b),migrate:e=>{let t=d.deprecateContainerBackgroundColorOpacity.migrate(e);return t=d.deprecateBlockShadowColor.migrate(t),t=d.deprecateContainerShadowColor.migrate(t),d.deprecateBlockBackgroundColorOpacity.migrate(t)}}],f={...v,icon:a.ImageBoxIcon,supports:{anchor:!0,align:!0,stkAlign:!0,stkDefaultTab:"layout",stkColumnResize:!1,spacing:!0},attributes:g,example:C,deprecated:y,variations:h.Z,edit:n.Z,save:m}},6901:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/image-box",transform:(e,t)=>{var o,a;return["stackable/columns",{...e,hasBackground:!0,blockBackgroundMediaUrl:null===(o=t[0][1])||void 0===o?void 0:o.imageUrl,blockPadding:{top:null===(a=t[0][1])||void 0===a?void 0:a.imageHeight,right:0,bottom:0,left:0}},t=t.filter((e=>!["stackable/image","core/image"].includes(e[0])))]}},n=a},1032:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});var a=o(7462),n=o(2610);o(7294);var l=o(8003),i=o(3882),r=o(910);const s=(0,i.applyFilters)("stackable.image-box.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",r.i18n),(0,l.__)("Default",r.i18n)),pickerTitle:(0,l.__)("Default",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 13h30v22H9V13zm-2 0a2 2 0 012-2h30a2 2 0 012 2v22a2 2 0 01-2 2H9a2 2 0 01-2-2V13zm25.5 10h-18v2h18v-2zm-12-5h7v2h-7v-2zm15 10h-23v2h23v-2z"}))},attributes:{contentAlign:"center",className:"is-style-default"},isActive:["className"],innerBlocks:[["stackable/image",{imageHeight:350,imageOverlayColorParentHover:"#000000B3"}],["stackable/column",{templateLock:!1,blockVerticalAlign:"center"},[["stackable/subtitle",{text:(0,l._x)("Subtitle for This Block","Subtitle placeholder",r.i18n),blockMargin:{bottom:8},opacity:0,textColorClass:"has-white-color",textColor1:"#FFFFFF",opacityParentHover:1}],["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",r.i18n),textTag:"h4",textColorClass:"has-white-color",textColor1:"#FFFFFF"}],["stackable/text",{text:(0,l._x)("Text for This Block","Text placeholder",r.i18n),opacity:0,transform:"translateY(-24px)",opacityParentHover:1,transformParentHover:"translateY(0px)",textColorClass:"has-white-color",textColor1:"#FFFFFF"}],["stackable/icon",{blockMargin:{top:56},opacity:0,transform:"translateY(24px)",icon:'<svg data-prefix="fas" data-icon="arrow-right" class="svg-inline--fa fa-arrow-right fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg>',opacityParentHover:1,transformParentHover:"translateY(0px)",iconColor1:"#FFFFFF"}]]]],scope:["block"]},{name:"plain",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",r.i18n),(0,l.__)("Plain",r.i18n)),pickerTitle:(0,l.__)("Plain",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 13h30v22H9V13zm-2 0a2 2 0 012-2h30a2 2 0 012 2v22a2 2 0 01-2 2H9a2 2 0 01-2-2V13zm25.5 10h-18v2h18v-2zm-12-5h7v2h-7v-2zm15 10h-23v2h23v-2z"}))},attributes:{contentAlign:"left",className:"is-style-plain"},isActive:["className"],innerBlocks:[["stackable/image",{imageHeight:350,imageOverlayColorParentHover:"#000000B3"}],["stackable/column",{containerPadding:{top:32,right:32,bottom:32,left:32},templateLock:!1,containerVerticalAlign:"flex-end"},[["stackable/subtitle",{text:(0,l._x)("Subtitle for This Block","Subtitle placeholder",r.i18n),blockMargin:{bottom:8},transform:"translateY(32px)",transformParentHover:"translateY(0px)",textColorClass:"has-white-color",textColor1:"#FFFFFF"}],["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",r.i18n),textTag:"h4",transform:"translateY(32px)",transformParentHover:"translateY(0px)",textColorClass:"has-white-color",textColor1:"#FFFFFF"}],["stackable/text",{text:(0,l._x)("Text for This Block","Text placeholder",r.i18n),opacity:0,opacityParentHover:1,textColorClass:"has-white-color",textColor1:"#FFFFFF"}],["stackable/icon",{opacity:0,transform:"translateY(-32px)",opacityParentHover:1,transformParentHover:"translateY(0px)",icon:'<svg data-prefix="fas" data-icon="arrow-right" class="svg-inline--fa fa-arrow-right fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg>',iconColor1:"#FFFFFF"}]]]],scope:["block"]},{name:"box",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",r.i18n),(0,l.__)("Box",r.i18n)),attributes:{className:"is-style-box"},pickerTitle:(0,l.__)("Box",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 11H9v26h30V11zM9 9a2 2 0 00-2 2v26a2 2 0 002 2h30a2 2 0 002-2V11a2 2 0 00-2-2H9zm26 6H13v18h22V15zm-22-1h-1v20h24V14H13zm16.923 9H17.346v2h12.577v-2zM21.5 18h4.962v2H21.5v-2zM32 28H15.962v2H32v-2z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"captioned",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",r.i18n),(0,l.__)("Captioned",r.i18n)),attributes:{className:"is-style-captioned"},pickerTitle:(0,l.__)("Captioned",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 13h30v13H9V13zm-2 0a2 2 0 012-2h30a2 2 0 012 2v26a2 2 0 01-2 2H9a2 2 0 01-2-2V13zm7 21h21v2.5H14V34zm16-5.5H20V31h10v-2.5z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"fade",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",r.i18n),(0,l.__)("Fade",r.i18n)),attributes:{className:"is-style-fade"},pickerTitle:(0,l.__)("Fade",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 13H9v22h30V13zM9 11a2 2 0 00-2 2v22a2 2 0 002 2h30a2 2 0 002-2V13a2 2 0 00-2-2H9zm4 19h21v2H13v-2zm16-5H19v2h10v-2z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"line",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",r.i18n),(0,l.__)("Line",r.i18n)),attributes:{className:"is-style-line"},pickerTitle:(0,l.__)("Line",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 13a2 2 0 012-2h30a2 2 0 012 2v22a2 2 0 01-2 2H9a2 2 0 01-2-2V13zm7.5 7.5H33V23H14.5v-2.5zm13.5-5h-7.5V18H28v-2.5zM12.5 30H36v2.5H12.5V30zM10 27h28v-1H10v1z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]}])},6705:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.addBlockStyles("figcaptionAlignment",[{selector:".%s .stk-img-figcaption",styleRule:"textAlign",attrName:"figcaptionAlignment"}]),l.Alignment.addStyles(r),l.BlockDiv.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.Typography.addStyles(r,{selector:".stk-img-figcaption",hoverSelector:".stk-img-figcaption:hover",attrNameTemplate:"figcaption%s"}),l.EffectsAnimations.addStyles(r),l.Image.addStyles(r);const s=r;var c=o(4184),d=o.n(c),u=o(910),b=o(9783),m=o(8003),p=o(3749),k=o(78),g=o(3882),h=o(3284);const v=["px","vh","%"],C=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.Image.InspectorControls,{initialOpen:!0,heightUnits:v,hasLightbox:!0,hasManuallyChangedDimensions:e.hasManuallyChangedDimensions}),e.enableLink&&(0,n.createElement)(l.Link.InspectorControls,{hasTitle:!0,isAdvancedTab:!0}),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-image"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null),(0,n.createElement)(l.Typography.InspectorControls,{label:(0,m.__)("Caption",u.i18n),attrNameTemplate:"figcaption%s",hasToggle:!0,hasTextTag:!1,hasTextContent:!0,initialOpen:!1})))),y=(0,p.compose)(b.withBlockWrapperIsHovered,b.withQueryLoopContext,b.withBlockAttributeContext)((e=>{const{clientId:t,className:o}=e,a=d()((0,l.getTypographyClasses)(e.attributes,"figcaption%s"),"stk-img-figcaption"),r=(0,l.getAlignmentClasses)(e.attributes),{parentBlock:c}=(0,h.useSelect)((e=>{const{getBlockRootClientId:o,getBlock:a}=e("core/block-editor");return{parentBlock:a(o(t))}}),[t]),b=(0,g.applyFilters)("stackable.edit.image.enable-link",!0,c),p=d()([o,"stk-block-image",r]),[k,y]=(0,n.useState)(!!e.attributes.imageWidth);(0,n.useEffect)((()=>{y(!!e.attributes.imageWidth)}),[e.attributes.imageWidth]);const f=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:u.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(C,{enableLink:b,hasManuallyChangedDimensions:k}),f&&(0,n.createElement)("style",{key:"block-css"},f),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-image"}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:p},(0,n.createElement)(l.Image,{showTooltips:!0,heightUnits:v,defaultWidth:"100",defaultHeight:"auto",hasManuallyChangedDimensions:k}),e.attributes.figcaptionShow&&(0,n.createElement)(l.Typography,{className:a,attrNameTemplate:"figcaption%s",placeholder:(0,m.__)("Image Caption",u.i18n)})),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))}));(0,g.addFilter)("stackable.block-component.typography.before","stackable/image",((e,t)=>{const{name:o}=(0,k.useBlockEditContext)();return"stackable/image"!==o||"figcaption%s"!==t.attrNameTemplate?e:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AlignButtonsControl,{label:(0,m.__)("Caption Alignment",u.i18n),attribute:"figcaptionAlignment"}))}));var f=o(7462);const B=e=>{const{attributes:t}=e,o=(0,l.getResponsiveClasses)(e.attributes),a=(0,l.getAlignmentClasses)(e.attributes),i=(0,l.getTypographyClasses)(t,"figcaption%s"),r=d()([e.className,"stk-block-image",o,a]);return(0,n.createElement)(l.BlockDiv.Content,{className:r,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(e.attributes.imageUrl||e.attributes.imageExternalUrl)&&(0,n.createElement)(l.Image.Content,{hasWrapper:!0,version:e.version,figcaptionClassnames:i,attributes:t,customWrapper:e.attributes.linkUrl&&(e=>(0,n.createElement)(l.Link.Content,(0,f.Z)({attributes:t},e)))}),(0,n.createElement)(l.BlockLink.Content,{attributes:t}))},S=(0,p.compose)((0,b.withVersion)(u.version))(B);var _=o(7545);const A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.version;const t=new _.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.Image.addAttributes(t),l.Link.addAttributes(t,{selector:"a.stk-link"}),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.BlockLink.addAttributes(t),l.Typography.addAttributes(t,".stk-img-figcaption",{hasTextContent:!0,attrNameTemplate:"figcaption%s"}),t.add({attributes:{figcaptionShow:{type:"boolean",default:!1},figcaptionAlignment:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},w=A(u.version),E=JSON.parse('{"apiVersion":3,"name":"stackable/image","title":"Image","description":"An image with advanced controls to make a visual statement.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-image-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}');var T=o(378),x=o(4357);const I={from:[{type:"block",isMultiBlock:!0,blocks:["stackable/image-box"],__experimentalConvert:e=>e.map((e=>{const t=e.innerBlocks[0].attributes;return(0,T.createBlock)("stackable/image",t)}))}],to:[{type:"block",isMultiBlock:!0,blocks:["stackable/image-box"],transform:e=>e.map((e=>{let{...t}=e;const o=(0,T.createBlocksFromInnerBlocksTemplate)([["stackable/image-box",{},x.h.map((e=>("stackable/image"===e[0]&&(e[1]=t),e)))]])[0];return o.attributes.uniqueId=(0,_.createUniqueClass)(o.clientId),o}))}]},z=I;(0,g.addFilter)("stackable.image.save.wrapper","stackable/image-link-wrapper",((e,t,o,a,l)=>{if(!t.version)return e;if(!t.hasWrapper)return e;if((0,_.semverCompare)(t.version,"<","3.12.7")){const e=t.customWrapper||"figure";return(0,n.createElement)(e,null,(0,n.createElement)("div",{className:o},a.props.children),t.figcaptionShow&&t.src&&(0,n.createElement)(k.RichText.Content,{tagName:"figcaption",className:l,value:t.figcaption}),t.children)}return e})),(0,g.addFilter)("stackable.image.save.wrapper","stackable/image-caption-wrapper",((e,t,o,a)=>{if(!t.version)return e;if(!t.hasWrapper)return e;if((0,_.semverCompare)(t.version,"<","3.12.4")){const e=t.customWrapper||"figure";return(0,n.createElement)(e,{className:o},a.props.children)}return e}));const M=[{attributes:A("3.12.11"),save:(0,b.withVersion)("3.12.11")(B),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e),a=l.deprecateShadowColor.isEligible("image%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=l.deprecationImageOverlayOpacity.migrate(t),t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateShadowColor.migrate("image%s")(t),t}},{attributes:A("3.12.6"),save:(0,b.withVersion)("3.12.6")(B)},{attributes:A("3.12.3"),save:(0,b.withVersion)("3.12.3")(B)},{attributes:A("3.11.9"),save:(0,b.withVersion)("3.11.9")(B),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e),a=l.deprecationImageOverlayOpacity.isEligible(e);return t||o||a},migrate:e=>{let t={...e};return t=l.deprecationImageOverlayOpacity.migrate(t),t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateShadowColor.migrate("image%s")(t),t}},{attributes:A("3.7.9"),save:(0,b.withVersion)("3.7.9")(B),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecationImageOverlayOpacity.migrate(e),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateShadowColor.migrate("image%s")(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var H=o(9462);const N={...E,icon:a.ImageIcon,attributes:w,supports:{anchor:!0,align:!0,spacing:!0},example:{attributes:{uniqueId:"7fb9397",hasBackground:!1,hasBorders:!1,imageShow:!0,imageUrl:"https://source.unsplash.com/400x300/?fashion",imageSize:"full",imageShapeStretch:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",imageWidthUnit:"%",imageWidthUnitTablet:"%",imageWidthUnitMobile:"%"},innerBlocks:[]},transforms:z,deprecated:M,edit:y,save:S,substitute:H.default}},9462:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/image",transform:e=>["core/image",{height:null!=e&&e.imageHeight?(null==e?void 0:e.imageHeight)+"px":void 0,url:null==e?void 0:e.imageUrl}]},n=a},8728:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>G});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.addBlockStyles("height",[{renderIn:"edit",selector:".stk-block-map__canvas",styleRule:"height",attrName:"height",key:"height",format:"%spx",responsive:"all"},{renderIn:"save",selector:".stk-block-map__canvas, iframe",styleRule:"height",attrName:"height",key:"height-save",format:"%spx",responsive:"all"}]),l.BlockDiv.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r);const s=r;var c=o(910),d=o(8003);const u=e=>`${c.srcUrl}/${e}`,b=[{value:"default",label:(0,d.__)("Default",c.i18n),image:(0,n.createElement)("img",{src:u("dist/images/block-map-default.c329774.png"),alt:(0,d.__)("Default",c.i18n)}),json:[]},{value:"silver",label:(0,d.__)("Silver",c.i18n),image:(0,n.createElement)("img",{src:u("dist/images/block-map-silver.57ca974.png"),alt:(0,d.__)("Silver",c.i18n)}),json:[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}]},{value:"retro",label:(0,d.__)("Retro",c.i18n),image:(0,n.createElement)("img",{src:u("dist/images/block-map-retro.5bc00eb.png"),alt:(0,d.__)("Retro",c.i18n)}),json:[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}]},{value:"dark",label:(0,d.__)("Dark",c.i18n),image:(0,n.createElement)("img",{src:u("dist/images/block-map-dark.9ad2a90.png"),alt:(0,d.__)("Dark",c.i18n)}),json:[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}]},{value:"night",label:(0,d.__)("Night",c.i18n),image:(0,n.createElement)("img",{src:u("dist/images/block-map-night.de54e85.png"),alt:(0,d.__)("Night",c.i18n)}),json:[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}]},{value:"aubergine",label:(0,d.__)("Aubergine",c.i18n),image:(0,n.createElement)("img",{src:u("dist/images/block-map-aubergine.4f9433c.png"),alt:(0,d.__)("Aubergine",c.i18n)}),json:[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3C7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}]}];var m=o(7537);const p=e=>{const[t,o]=(0,n.useState)(0);(0,n.useEffect)((()=>{var e,a;if(null===(e=window)||void 0===e||null===(a=e.google)||void 0===a||!a.maps){const e=setInterval((()=>{window.google&&window.google.maps&&(clearInterval(e),o(t+1))}),250);return()=>clearInterval(e)}}),[]);const a=(0,n.useRef)(),l=(0,n.useRef)();return(0,n.useEffect)((()=>{if(a.current&&window.google&&window.google.maps){const t=l.current=new google.maps.places.Autocomplete(a.current);t.setFields(["place_id","geometry","formatted_address"]),t.addListener("place_changed",(()=>{const o=t.getPlace();o.geometry&&e.onPlaceChange(o)})),window.autocomplete=t}}),[a.current,t]),(0,n.createElement)(m.TextControl,{label:(0,d.__)("Location",c.i18n),ref:a,value:e.value,help:(0,d.__)("Type in a pair of latitude longitude coordinates. You can also type in the name of the location if your API Key has Geocoding API and Places API enabled.",c.i18n),onChange:t=>{e.onTextChange(t)}})};p.defaultProps={onChange:null,value:""};const k=p;var g=o(7545);const h=350,v=12,C="Quezon City",y={lat:14.680936247180512,lng:121.04845461073226},f=e=>{let t,{mapStyle:o,customMapStyle:a}=e;var n;if(a)try{t=JSON.parse(a)}catch(e){t=[]}else t=(null===(n=b.find((e=>e.value===o)))||void 0===n?void 0:n.json)||[];return t},B=e=>{const{icon:t,iconColor1:o,iconSize:a,iconRotation:n,iconOpacity:l,iconAnchorPositionX:i,iconAnchorPositionY:r}=e,s=(0,g.createElementFromHTMLString)(t);if(!s)return null;o&&"currentColor"!==s.firstElementChild.getAttribute("fill")&&s.querySelectorAll("g,path,rect,polygon,ellipse").forEach((e=>{e.setAttribute("style",`fill: ${o}`)}));const c=a?parseInt(a,10):40;s.setAttribute("height",c),s.setAttribute("width",c),s.setAttribute("style",`color: ${o||"#000000"}; opacity: ${l||0===l?parseFloat(l,10):1}`),s.setAttribute("transform",`rotate(${n||0===n?parseInt(n,10):0})`);const d=(new XMLSerializer).serializeToString(s),u={url:`data:image/svg+xml;base64,${window.btoa(d)}`},b=(i||0===i?parseInt(i,10):0)+c/2,m=(r||0===r?parseInt(r,10):0)+c;return u.anchor={x:b,y:m},u};let S=null;var _=o(8333),A=o(9783),w=o(4184),E=o.n(w),T=o(8085),x=o(3749),I=o(3284);const z=["style","advanced"],M=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,{tabs:z,hasLayoutPanel:!1}),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,d.__)("General",c.i18n),className:E()({"stk--uses-api-key":e.apiKey}),initialOpen:!0,id:"general"},e.userCanManageApiKey&&!e.apiKey&&(0,n.createElement)(m.Notice,{className:"stk-block-map__api-key-notice",status:"info",isDismissible:!1},(0,d.__)("Some map features require a Google API Key.",c.i18n)," ",(0,n.createElement)(m.ExternalLink,{type:"link",href:c.settingsUrl+"#editor-settings",rel:"next"},(0,d.__)("Add API key here.",c.i18n))),e.apiKey?(0,n.createElement)(k,{value:e.address,onTextChange:t=>{if(!t)return e.setAttributes({address:t});let o="";if(t.match(/^\s*[-\d.]+(.*?)[, ][-\d.]+/)){const[,e,,a]=t.match(/^\s*([-\d.]+)(.*?)([-\d.]+)/);o={lat:parseFloat(e),lng:parseFloat(a)}}else e.geocodeAddress(t);e.setAttributes({address:t,location:o})},onPlaceChange:t=>{e.setAttributes({address:t.formatted_address,location:{lat:t.geometry.location.lat(),lng:t.geometry.location.lng()}})}}):(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AdvancedTextControl,{label:(0,d.__)("Location",c.i18n),attribute:"address",placeholder:(0,d.__)("Enter an address or location",c.i18n)})),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,d.__)("Height",c.i18n),attribute:"height",min:0,sliderMin:200,sliderMax:500,step:1,allowReset:!0,placeholder:h,responsive:"all"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,d.__)("Zoom",c.i18n),attribute:"zoom",min:1,max:24,step:1,allowReset:!0,placeholder:v}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,d.__)("Enable Dragging",c.i18n),className:"stk--needs-api-key",attribute:"isDraggable",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,d.__)("Full Screen Button",c.i18n),className:"stk--needs-api-key",attribute:"showFullScreenButton",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,d.__)("Map Type Buttons",c.i18n),className:"stk--needs-api-key",attribute:"showMapTypeButtons",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,d.__)("Street View Button",c.i18n),className:"stk--needs-api-key",attribute:"showStreetViewButton",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,d.__)("Zoom Buttons",c.i18n),className:"stk--needs-api-key",attribute:"showZoomButtons",defaultValue:!0})),(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,d.__)("Map Style",c.i18n),className:E()({"stk--uses-api-key":e.apiKey}),initialOpen:!1,id:"map-style"},(0,n.createElement)(i.StyleControl,{className:"stk--needs-api-key",options:b,value:e.mapStyle,onSelect:t=>{e.setAttributes({mapStyle:t.value,customMapStyle:""})}}),(0,n.createElement)(i.AdvancedTextControl,{className:"stk--needs-api-key",label:(0,d.__)("Custom Map Style (Paste JSON here)",c.i18n),isMultiline:!0,attribute:"customMapStyle",onChange:t=>{e.setAttributes({mapStyle:"",customMapStyle:t})},help:(0,n.createElement)(n.Fragment,null,(0,n.createElement)(m.ExternalLink,{href:"https://docs.wpstackable.com/article/483-how-to-use-stackable-map-block#style"},(0,d.__)("Learn how to use Custom Map Styles",c.i18n)))})),(0,n.createElement)(i.PanelAdvancedSettings,{className:E()("stk--needs-api-key",{"stk--uses-api-key":e.apiKey}),title:(0,d.__)("Map Marker",c.i18n),initialOpen:!1,hasToggle:!0,checked:!!e.apiKey&&e.showMarker,onChange:t=>e.setAttributes({showMarker:t}),id:"map-marker"},(0,n.createElement)("div",{className:"stk--needs-api-key"},(0,n.createElement)(l.Icon.InspectorControls,{hideControlsIfIconIsNotSet:!0,hasShape:!1,wrapInPanels:!1,hasBackgroundShape:!1,responsive:"",hover:"",hasGradient:!1,iconSizeProps:{sliderMin:20,sliderMax:100,placeholder:40},iconControlHelp:(0,d.__)("Uploaded Icon and Icon Color settings are not fully compatible.",c.i18n)})),e.icon&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,d.__)("Horizontal Icon Anchor Point",c.i18n),className:"stk--needs-api-key",attribute:"iconAnchorPositionX",sliderMin:-100,sliderMax:100,step:1,allowReset:!0,placeholder:"0"}),e.icon&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,d.__)("Vertical Icon Anchor Point",c.i18n),className:"stk--needs-api-key",attribute:"iconAnchorPositionY",sliderMin:-100,sliderMax:100,step:1,allowReset:!0,placeholder:"0"}))),(0,n.createElement)(l.BlockDiv.InspectorControls,{hasSizeSpacing:!1}),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-map"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),H=(0,x.compose)(A.withBlockWrapperIsHovered,A.withQueryLoopContext,A.withBlockAttributeContext)((e=>{var t,o,a,r,u,b;const{attributes:p,className:k,isHovered:A,isSelected:w,setAttributes:x}=e,{address:z,icon:H,iconAnchorPositionX:N,iconAnchorPositionY:D,iconColor1:O,iconOpacity:L,iconRotation:R,iconSize:U,location:P,mapStyle:V,customMapStyle:F,isDraggable:G,showFullScreenButton:q,showMapTypeButtons:W,showMarker:$,showStreetViewButton:j,showZoomButtons:Z,zoom:J,htmlTag:K}=p,{stackable_google_maps_api_key:Y}=c.settings,Q=(0,n.useMemo)((()=>(0,g.currentUserHasCapability)("manage_options")),[]),[,X]=(0,n.useState)(""),[ee,te]=(0,n.useState)(!1);(0,n.useEffect)((()=>{((e,t)=>{var o,a;e&&("object"==typeof(null===(o=window)||void 0===o?void 0:o.google)&&"object"==typeof(null===(a=window)||void 0===a?void 0:a.google.maps)?t():S?S.then(t):S=(e=>new Promise((t=>{if(document.querySelector("script#stackable-google-map"))return void t();const o=document.createElement("script");o.id="stackable-google-map",o.src=`https://maps.googleapis.com/maps/api/js?key=${e}&libraries=places&callback=Function.prototype`,o.type="text/javascript",o.async=!0,o.onload=t,document.body.appendChild(o)})))(e).then(t))})(Y,be)}),[]),(0,n.useEffect)((()=>{(0,I.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),x({usesApiKey:!!Y}),Y||z&&P&&P.lat&&P.lng&&x({address:P.lat+","+P.lng})}),[Y]);const oe=(0,_.useDeviceType)(),ae=(0,l.getAlignmentClasses)(e.attributes),ne=E()([k,"stk-block-map",ae]),le=(0,g.getAttributeName)("height",oe),ie=p[le],re=(0,n.useRef)(),se=(0,n.useRef)(),ce=(0,n.useRef)(),de=(0,n.useRef)(),ue=(0,n.useRef)(),be=()=>{const e=ce.current,t={center:P||y,zoom:J||v,fullscreenControl:q,styles:f(p),zoomControl:Z,mapTypeControl:W,streetViewControl:j,draggable:G},o=re.current=new google.maps.Map(e,t);se.current=new google.maps.Marker({position:o.getCenter()}),ue.current=new google.maps.Geocoder,me(),ee||te(!0)},me=()=>{const e=se.current,t=re.current;e.setMap($?t:null);const o=B(p);e.setOptions({icon:o}),e.setPosition(P||y)};(0,n.useEffect)((()=>{ee&&me()}),[P,U,N,D,O,L,R,$,H]),(0,n.useEffect)((()=>{re.current&&re.current.setOptions({center:P||y,zoom:J||v,fullscreenControl:q,styles:f(p),zoomControl:Z,mapTypeControl:W,streetViewControl:j,draggable:G})}),[P,J,G,q,Z,W,j,V,F]),(0,n.useEffect)((()=>{ee&&be()}),[K]);const[pe,ke]=(0,n.useState)(!0),ge=(0,n.useCallback)((0,T.debounce)((e=>{pe&&ue.current.geocode({address:e},(function(e,t){"OK"===t?x({location:e[0].geometry.location}):"REQUEST_DENIED"===t&&ke(!1)}))}),400),[ue.current,x,pe]),he=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(M,{apiKey:Y,userCanManageApiKey:Q,setAttributes:x,geocodeAddress:ge,address:z,mapStyle:V,showMarker:$,icon:H}),he&&(0,n.createElement)("style",{key:"block-css"},he),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-map"}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:ne},(0,n.createElement)(m.ResizableBox,{ref:de,showHandle:A||w,size:{height:parseInt(ie,10)||h},minHeight:50,enable:{bottom:!0},onResize:(e,t,o,a)=>{X(a.height)},onResizeStop:(e,t,o,a)=>{let n=ie;""!==n&&void 0!==n||(n=h),x({[le]:parseInt(n)+a.height})}},A&&(0,n.createElement)(i.ResizerTooltip,{label:(0,d.__)("Map",c.i18n),enableWidth:!1,height:null!==(t=de.current)&&void 0!==t&&null!==(o=t.state)&&void 0!==o&&o.isResizing?null===(a=de.current)||void 0===a||null===(r=a.state)||void 0===r?void 0:r.height:ie||h,heightUnits:["px"],onChangeHeight:e=>{let{value:t}=e;x({[le]:t})},defaultHeight:h,heightPlaceholder:h}),(null===(u=de.current)||void 0===u||null===(b=u.state)||void 0===b?void 0:b.isResizing)&&(0,n.createElement)("style",null,`.stk-block.stk-${p.uniqueId} { height: auto !important; }\n\t\t\t\t\t\t\t.stk-block.stk-${p.uniqueId} .stk-block-map__canvas { height: 100% !important; }`),Y?(0,n.createElement)("div",{className:"stk-block-map__canvas",ref:ce}):(0,n.createElement)("iframe",{title:(0,d.__)("Embedded content from Google Map Platform.",c.i18n),src:`https://maps.google.com/maps?q=${z||C}&t=&z=${J||v}&ie=UTF8&output=embed`,frameBorder:"0"}))),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))}));var N=o(3882);const D=e=>{const{attributes:t}=e,{address:o,location:a,isDraggable:i,showFullScreenButton:r,showMapTypeButtons:s,showMarker:u,showStreetViewButton:b,showZoomButtons:m,usesApiKey:p,zoom:k}=t,g=(0,l.getResponsiveClasses)(e.attributes),h=(0,l.getAlignmentClasses)(e.attributes),S=E()([e.className,"stk-block-map",g,h],{"stk--uses-api-key":p}),_=f(t),A={center:a||y,zoom:k||v,styles:_.length?_:void 0,gestureHandling:i?void 0:"none",fullscreenControl:r,mapTypeControl:s,streetViewControl:b,zoomControl:m},w=!!u&&{position:a||y,title:o||void 0};return(0,n.createElement)(l.BlockDiv.Content,{className:S,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),p?(0,n.createElement)("div",{"data-map-options":JSON.stringify(A),"data-marker-options":JSON.stringify(w),"data-icon-options":JSON.stringify((0,N.applyFilters)("stackable.map.icon-options",B(t),t,e)),className:"stk-block-map__canvas"}):(0,n.createElement)(n.RawHTML,null,`<iframe\n\t\t\t\t\t\ttitle="${(0,d.__)("Embedded content from Google Maps Platform.",c.i18n)}"\n\t\t\t\t\t\tsrc="https://maps.google.com/maps?q=${o||C}&t=&z=${k||v}&ie=UTF8&output=embed"\n\t\t\t\t\t\tstyle="border:0;width:100%;max-width:none;max-height:none;height:100%;"\n\t\t\t\t\t\taria-hidden="false"\n\t\t\t\t\t\ttabIndex="0"\n\t\t\t\t\t\tallowfullscreen\n\t\t\t\t\t\tloading="lazy"\n\t\t\t\t\t\tframeBorder="0"\n\t\t\t\t\t></iframe>`))},O=(0,x.compose)((0,A.withVersion)(c.version))(D),L={usesApiKey:{type:"boolean",default:!1},address:{type:"string",default:""},location:{type:"object",default:""},zoom:{type:"number",default:""},height:{type:"number",default:"",stkResponsive:!0},mapStyle:{type:"string",default:""},customMapStyle:{type:"string",default:""},showMarker:{type:"boolean",default:!1},showZoomButtons:{type:"boolean",default:!0},showMapTypeButtons:{type:"boolean",default:!0},showStreetViewButton:{type:"boolean",default:!0},showFullScreenButton:{type:"boolean",default:!0},isDraggable:{type:"boolean",default:!0},iconAnchorPositionX:{type:"number",default:""},iconAnchorPositionY:{type:"number",default:""}},R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new g.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.Link.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.BlockLink.addAttributes(t),l.Icon.addAttributes(t),t.add({attributes:L,versionAdded:"3.2.0",versionDeprecated:""}),t.getMerged(e)},U=R(c.version),P=JSON.parse('{"apiVersion":3,"name":"stackable/map","title":"Map","description":"Embedded Google Map with advanced controls.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","keywords":["location","address"],"stk-type":"special","stk-demo":"https://wpstackable.com/map-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),V={attributes:{example:`<iframe title="${(0,d.__)("Map Example","Map Example Text",c.i18n)}" src="https://maps.google.com/maps?q=14.633600461871746, 121.04300214414138&t=&z=12&ie=UTF8&iwloc=&output=embed" class="stk-map" height="300" frameborder="0" style="border:0;width: 100%; max-width: none;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>`}};(0,N.addFilter)("stackable.map.icon-options","stackable/3.13.0",((e,t,o)=>(0,g.semverCompare)(o.version,"<","3.13.0")?(e=>{const t={...e};if(!e.icon)return null;const o=(0,g.createElementFromHTMLString)(e.icon);return o&&o.firstElementChild?(o.firstElementChild.setAttribute("fill","currentColor"),t.icon=o.outerHTML,B(t)):null})(t):e));const F=[{attributes:R("3.12.11"),save:(0,A.withVersion)("3.12.11")(D),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:R("3.11.9"),save:(0,A.withVersion)("3.11.9")(D),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:R("3.7.9"),save:(0,A.withVersion)("3.7.9")(D),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}],G={...P,icon:a.MapIcon,attributes:U,supports:{align:["full","wide","center"],anchor:!0,spacing:!0},example:V,deprecated:F,edit:H,save:O}},9740:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/map",transform:()=>["stackable/image"]},n=a},8456:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(910),n=o(8003),l=o(3882),i=o(7462),r=o(2610);o(7294);const s=(0,l.applyFilters)("stackable.notification.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Default",a.i18n)),attributes:{className:"is-style-default",hasContainer:!0},isDefault:!0,pickerTitle:(0,n.__)("Default",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12a2 2 0 00-2 2v19a2 2 0 002 2h30a2 2 0 002-2V14a2 2 0 00-2-2H9zm16 12H11v2h14v-2zm-14 5h26v2H11v-2zm.583-11a1.417 1.417 0 112.834 0 1.417 1.417 0 01-2.834 0zM13 16.083a1.917 1.917 0 100 3.834 1.917 1.917 0 000-3.834zm0 1a.25.25 0 01.25.25V18a.25.25 0 11-.5 0v-.667a.25.25 0 01.25-.25zm0 1.334a.25.25 0 100 .5h.002a.25.25 0 000-.5H13z"}))},isActive:["className"],innerBlocks:[["stackable/icon",{icon:'<svg data-prefix="fas" data-icon="exclamation-triangle" class="svg-inline--fa fa-exclamation-triangle fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true" width="32" height="32"><path fill="currentColor" d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"></path></svg>',iconColor1:"#FFFFFF"}],["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",a.i18n),textTag:"h3"}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",a.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",a.i18n),buttonBackgroundColor:"transparent",buttonBorderType:"solid",buttonBorderColor:"#FFFFFF",textColorClass:"has-white-color",textColor1:"#FFFFFF",buttonBorderWidth:{top:1,right:1,bottom:1,left:1}}]]]],scope:["block"]},{name:"plain",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Plain",a.i18n)),attributes:{className:"is-style-plain",blockShadow:"0px 2px 20px rgba(153, 153, 153, 0.2)",hasContainer:!1,containerPadding:{top:32,right:32,bottom:32,left:32},dismissibleColor:"var(--stk-container-background-color, #40ba7b)"},pickerTitle:(0,n.__)("Plain",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13h32v23H8V13zm-2 0a2 2 0 012-2h32a2 2 0 012 2v23a2 2 0 01-2 2H8a2 2 0 01-2-2V13zm19 12H12v2h13v-2zm-13 5h24v2H12v-2zm.583-11a1.417 1.417 0 112.834 0 1.417 1.417 0 01-2.834 0zM14 17.083a1.917 1.917 0 100 3.834 1.917 1.917 0 000-3.834zm0 1a.25.25 0 01.25.25V19a.25.25 0 11-.5 0v-.667a.25.25 0 01.25-.25zm0 1.334a.25.25 0 100 .5h.002a.25.25 0 000-.5H14z"}))},isActive:["className"],innerBlocks:[["stackable/icon",{icon:'<svg data-prefix="fas" data-icon="exclamation-triangle" class="svg-inline--fa fa-exclamation-triangle fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true" width="32" height="32"><path fill="currentColor" d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"></path></svg>',iconColor1:"var(--stk-container-background-color, #40ba7b)"}],["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",a.i18n),textTag:"h3",textColor1:"var(--stk-container-background-color, #40ba7b)"}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",a.i18n),textColor1:"var(--stk-container-background-color, #40ba7b)"}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",a.i18n),buttonBackgroundColor:"transparent",buttonBorderType:"solid",buttonBorderColor:"var(--stk-container-background-color, #40ba7b)",textColor1:"var(--stk-container-background-color, #40ba7b)",buttonBorderWidth:{top:1,right:1,bottom:1,left:1}}]]]],scope:["block"]},{name:"side",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Side",a.i18n)),attributes:{className:"is-style-side"},pickerTitle:(0,n.__)("Side",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 16h27v15H15V16zM4 16a2 2 0 012-2h36a2 2 0 012 2v15a2 2 0 01-2 2H6a2 2 0 01-2-2V16zm6 5.583a1.417 1.417 0 100 2.834 1.417 1.417 0 000-2.834zM8.083 23a1.917 1.917 0 113.834 0 1.917 1.917 0 01-3.834 0zm2.167-.667a.25.25 0 00-.5 0V23a.25.25 0 10.5 0v-.667zm-.5 1.334a.25.25 0 01.25-.25h.002a.25.25 0 010 .5H10a.25.25 0 01-.25-.25zM19 20h12v2H19v-2zm19 5H19v2h19v-2z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]},{name:"bordered",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Bordered",a.i18n)),attributes:{className:"is-style-bordered"},pickerTitle:(0,n.__)("Bordered",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42 14H8v21h34V14zM6 12a2 2 0 00-2 2v21a2 2 0 002 2h36a2 2 0 002-2V14a2 2 0 00-2-2H6zm19 12H12v2h13v-2zm13 5v2H12v-2h26zM11.583 19a1.417 1.417 0 112.834 0 1.417 1.417 0 01-2.834 0zM13 17.083a1.917 1.917 0 100 3.834 1.917 1.917 0 000-3.834zm0 1a.25.25 0 01.25.25V19a.25.25 0 11-.5 0v-.667a.25.25 0 01.25-.25zm0 1.334a.25.25 0 100 .5h.002a.25.25 0 000-.5H13z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]},{name:"outlined",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Outlined",a.i18n)),attributes:{className:"is-style-outlined"},pickerTitle:(0,n.__)("Outlined",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 36V13h32v23H8zM5 12a2 2 0 012-2h34a2 2 0 012 2v25a2 2 0 01-2 2H7a2 2 0 01-2-2V12zm20 13H12v2h13v-2zm-13 5h24v2H12v-2zm.583-11a1.417 1.417 0 112.834 0 1.417 1.417 0 01-2.834 0zM14 17.083a1.917 1.917 0 100 3.834 1.917 1.917 0 000-3.834zm0 1a.25.25 0 01.25.25V19a.25.25 0 11-.5 0v-.667a.25.25 0 01.25-.25zm0 1.334a.25.25 0 100 .5h.002a.25.25 0 000-.5H14z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]},{name:"large-icon",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Large Icon",a.i18n)),attributes:{className:"is-style-large-icon"},pickerTitle:(0,n.__)("Large Icon",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12a2 2 0 00-2 2v2.056a3.333 3.333 0 110 2.186V33a2 2 0 002 2h30a2 2 0 002-2V14a2 2 0 00-2-2H9zm1.15 3.725a.5.5 0 00-.937.351l.468 1.249a.5.5 0 10.936-.351l-.468-1.249zm-.001 2.848a.5.5 0 01.293-.643l.003-.002a.5.5 0 01.35.937h-.003a.5.5 0 01-.643-.292zM11 24h14v2H11v-2zm26 5H11v2h26v-2z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]}]),c=JSON.parse('{"apiVersion":3,"name":"stackable/notification","title":"Notification","description":"Show a notice to your readers. People can dismiss the notice to permanently hide it.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Notice","Alert"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/notification-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon"],"stk-substitution-blocks":["stackable/heading","stackable/text","stackable/button-group","stackable/button"]}');var d=o(9384),u=o(7200);const b=new u.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});b.addBlockStyles("dismissibleSize",[{selector:".stk-container",attrName:"dismissibleSize",key:"dismissibleSize",styleRule:"paddingInlineEnd",enabledCallback:e=>e("isDismissible")&&e("dismissibleSize"),valuePreCallback:e=>e+44,format:"%spx",dependencies:["isDismissible"]}]),b.addBlockStyles("dismissibleColor",[{selector:".stk-block-notification__close-button svg",attrName:"dismissibleColor",key:"dismissibleColor",styleRule:"fill",enabledCallback:e=>e("isDismissible"),dependencies:["isDismissible"]}]),d.Alignment.addStyles(b),d.BlockDiv.addStyles(b),d.Advanced.addStyles(b),d.Transform.addStyles(b),d.EffectsAnimations.addStyles(b),d.ContainerDiv.addStyles(b,{sizeSelector:".stk-block-notification__content",sizeHorizontalAlignRule:"margin"}),d.MarginBottom.addStyles(b);const m=b,p=function(e){return(0,r.createElement)("svg",(0,i.Z)({viewBox:"0 0 28.3 28.3",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{d:"M52.4-166.2c3.2 0 3.2-5 0-5s-3.2 5 0 5zM16.8 13.9L26.9 3.8c.6-.6.6-1.5 0-2.1s-1.5-.6-2.1 0L14.7 11.8 4.6 1.7c-.6-.6-1.5-.6-2.1 0s-.6 1.5 0 2.1l10.1 10.1L2.5 24c-.6.6-.6 1.5 0 2.1.3.3.7.4 1.1.4s.8-.1 1.1-.4l10-10.1 10.1 10.1c.3.3.7.4 1.1.4s.8-.1 1.1-.4c.6-.6.6-1.5 0-2.1L16.8 13.9z"}))};var k=o(8085),g=o(4184),h=o.n(g),v=o(9783),C=o(3749),y=o(78),f=o(3284);const B=s[0].innerBlocks,S=(0,r.memo)((e=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.InspectorTabs,null),(0,r.createElement)(d.ContentAlign.InspectorControls,null),(0,r.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,r.createElement)(u.InspectorStyleControls,null,(0,r.createElement)(u.PanelAdvancedSettings,{title:(0,n.__)("General",a.i18n),id:"general",initialOpen:!0},(0,r.createElement)(u.AdvancedSelectControl,{label:(0,n.__)("Notification Type",a.i18n),attribute:"notificationType",options:[{label:(0,n.__)("Success",a.i18n),value:""},{label:(0,n.__)("Error",a.i18n),value:"error"},{label:(0,n.__)("Warning",a.i18n),value:"warning"},{label:(0,n.__)("Information",a.i18n),value:"info"}]})),(0,r.createElement)(u.PanelAdvancedSettings,{title:(0,n.__)("Dismissible",a.i18n),id:"dismissible",hasToggle:!0,checked:e.isDismissible,onChange:t=>e.setAttributes({isDismissible:t})},(0,r.createElement)(u.AdvancedRangeControl,{label:(0,n.__)("Icon Size",a.i18n),attribute:"dismissibleSize",min:"0",sliderMax:"50",step:"1",placeholder:"16"}),(0,r.createElement)(u.ColorPaletteControl,{label:(0,n.__)("Icon Color",a.i18n),attribute:"dismissibleColor"}))),(0,r.createElement)(d.BlockDiv.InspectorControls,null),(0,r.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,r.createElement)(d.BlockLink.InspectorControls,null),(0,r.createElement)(d.Advanced.InspectorControls,null),(0,r.createElement)(d.Transform.InspectorControls,null),(0,r.createElement)(d.EffectsAnimations.InspectorControls,null),(0,r.createElement)(d.CustomAttributes.InspectorControls,null),(0,r.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-notification"}),(0,r.createElement)(d.Responsive.InspectorControls,null),(0,r.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,r.createElement)(u.InspectorStyleControls,null,(0,r.createElement)(u.InspectorBottomTip,null))))),_=(0,C.compose)(v.withBlockWrapperIsHovered,v.withQueryLoopContext,v.withBlockAttributeContext)((e=>{var t;const{className:o,attributes:n,setAttributes:l}=e,{hasInnerBlocks:i,innerBlocks:s}=(0,f.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),c=(0,d.getAlignmentClasses)(e.attributes),b=h()([o,"stk-block-notification"],{"stk--is-dismissible":n.isDismissible,[`stk--is-${e.attributes.notificationType}`]:e.attributes.notificationType}),g=h()(["stk-block-content","stk-inner-blocks",c,"stk-block-notification__content",`stk-${n.uniqueId}-inner-blocks`],(0,d.getContentAlignmentClasses)(n)),v=null===(t=(0,k.last)(s))||void 0===t?void 0:t.name,C=i?["stackable/text","core/paragraph"].includes(v)?()=>(0,r.createElement)(r.Fragment,null):y.InnerBlocks.DefaultBlockAppender:y.InnerBlocks.ButtonBlockAppender,_=(0,u.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:a.version});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(S,{setAttributes:l,isDismissible:n.isDismissible}),(0,r.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b,enableVariationPicker:!0},_&&(0,r.createElement)("style",{key:"block-css"},_),(0,r.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-notification"}),(0,r.createElement)(d.ContainerDiv,{className:g},(0,r.createElement)(y.InnerBlocks,{template:B,templateLock:!1,renderAppender:C}),n.isDismissible&&(0,r.createElement)("span",{className:"stk-block-notification__close-button",role:"button",tabIndex:"0"},(0,r.createElement)(p,{width:n.dismissibleSize||16,height:n.dismissibleSize||16})))),e.isHovered&&i&&(0,r.createElement)(d.MarginBottom,null))}));(0,l.addFilter)("stackable.block-default-styles.use-saved-style","stackable/notification",((e,t,o)=>!("stackable/icon"===t.name&&o.length>=1&&"stackable/notification"===o[o.length-1])&&e));var A=o(1991),w=o.n(A);const E=e=>{const{attributes:t,className:o}=e,a=(0,d.getAlignmentClasses)(t),n=(0,d.getResponsiveClasses)(t),i=w()([o,"stk-block-notification",n],{"stk--is-dismissible":t.isDismissible,[`stk--is-${e.attributes.notificationType}`]:e.attributes.notificationType}),s=w()(["stk-block-notification__content"],(0,d.getContentAlignmentClasses)(t)),c=w()((0,l.applyFilters)("stackable.notification.save.innerClassNames",["stk-block-content","stk-inner-blocks",a,`stk-${t.uniqueId}-inner-blocks`],e));return(0,r.createElement)(d.BlockDiv.Content,{className:i,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,r.createElement)("style",null,t.generatedCss),(0,r.createElement)(d.CustomCSS.Content,{attributes:t}),(0,r.createElement)(d.ContainerDiv.Content,{className:s,attributes:t},(0,r.createElement)("div",{className:c},(0,r.createElement)(y.InnerBlocks.Content,null)),(0,r.createElement)(d.BlockLink.Content,{attributes:t}),t.isDismissible&&(0,r.createElement)("button",{className:"stk-block-notification__close-button"},(0,r.createElement)(p,{width:t.dismissibleSize||16,height:t.dismissibleSize||16}))))},T=(0,C.compose)((0,v.withVersion)(a.version))(E);var x=o(7545);const I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.version;const t=new x.AttributeObject;return d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.MarginBottom.addAttributes(t),d.ContainerDiv.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.BlockLink.addAttributes(t),d.ContentAlign.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0},notificationType:{type:"string",default:""},isDismissible:{type:"boolean",default:!0},dismissibleSize:{type:"number",default:""},dismissibleColor:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{hasContainer:!0},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},z=I(a.version),M={attributes:{uniqueId:"5c36ce5",hasBackground:!1,hasBorders:!1,hasContainer:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],displayCondition:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,isDismissible:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",className:"is-style-default"},innerBlocks:[{name:"stackable/icon",attributes:{uniqueId:"b1cac08",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},icon:'<svg data-prefix="fas" data-icon="exclamation-triangle" class="svg-inline--fa fa-exclamation-triangle fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true" width="32" height="32"><path fill="currentColor" d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"></path></svg>',iconColor1:"#FFFFFF",showBackgroundShape:!1,linkHasLink:!1,linkNewTab:!1,linkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/heading",attributes:{uniqueId:"c114813",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Title for This Block",a.i18n),textTag:"h3",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"3d45ff0",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"a118ab3",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"4319436",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"transparent",buttonBorderType:"solid",buttonBorderColor:"#FFFFFF",buttonBorderWidth:{top:1,right:1,bottom:1,left:1},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,textColorClass:"has-white-color",textColor1:"#FFFFFF",hasP:!1,show:!0,showText:!0,text:(0,n.__)("Button",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var H=o(4247),N=o.n(H);(0,l.addFilter)("stackable.notification.save.innerClassNames","stackable/3.8.0",((e,t)=>(N()(t.version,"3.8.0")>=0||e.push({[`stk-${t.attributes.uniqueId}-inner-blocks`]:!1,"stk--block-horizontal-flex":!1,[`stk--block-orientation-${t.attributes.innerBlockOrientation}`]:t.attributes.innerBlockOrientation}),e)));const D=[{attributes:I("3.12.11"),save:(0,v.withVersion)("3.12.11")(E),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a}},{attributes:I("3.11.9"),save:(0,v.withVersion)("3.11.9")(E),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a}},{attributes:I("3.7.9"),save:(0,v.withVersion)("3.7.9")(E),isEligible:e=>e.version<2||void 0===e.version,migrate:(e,t)=>{let o={...e,version:2};e.containerVerticalAlign&&(o={...o,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const a=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&a&&(o={...o,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),o={...o,innerBlockColumnGap:0}),o=d.deprecateContainerBackgroundColorOpacity.migrate(o),o=d.deprecateBlockBackgroundColorOpacity.migrate(o),o=d.deprecateBlockShadowColor.migrate(o),o=d.deprecateContainerShadowColor.migrate(o),[o,t]}}],O={...c,icon:o(9467).NotificationIcon,attributes:z,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,spacing:!0},example:M,variations:s,deprecated:D,edit:_,save:T}},6454:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/notification",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{hasContainer:!0,containerBackgroundColor:e.containerBackgroundColor},t]]]},n=a},1322:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>E});var a=o(9467),n=o(7462),l=o(2610),i=o(9384),r=o(7200);const s=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.addBlockStyles("shapeSize",[{selector:".stk-block-number-box__container",styleRule:"height",attrName:"shapeSize",key:"shapeSize",responsive:"all",hasUnits:"px",enabledCallback:e=>e("hasShape"),dependencies:["hasShape"]},{selector:".stk-block-number-box__container",styleRule:"width",attrName:"shapeSize",key:"shapeSize-width",responsive:"all",hasUnits:"px",enabledCallback:e=>e("hasShape"),dependencies:["hasShape"]}]),(0,i.addBackgroundStyles)(s,{attrNameTemplate:"shape%s",selector:".stk-block-number-box__container",renderCondition:"hasShape"}),(0,i.addBorderStyles)(s,{attrNameTemplate:"shape%s",selector:".stk-block-number-box__container",renderCondition:"hasShape"}),i.Alignment.addStyles(s),i.BlockDiv.addStyles(s),i.Advanced.addStyles(s),i.Transform.addStyles(s),i.Typography.addStyles(s,{selector:".stk-block-number-box__text",hoverSelector:".stk-block-number-box__text:hover"}),i.EffectsAnimations.addStyles(s);const c=s;var d=o(910),u=o(4184),b=o.n(u),m=o(9783),p=o(3749),k=o(8003);const g=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,k.__)("Shape",d.i18n),id:"shape",initialOpen:!0,hasToggle:!0,checked:e.hasShape,onChange:t=>e.setAttributes({hasShape:t})},(0,l.createElement)(r.AdvancedRangeControl,{label:(0,k.__)("Size",d.i18n),attribute:"shapeSize",responsive:"all",min:"0",sliderMax:"200",placeholder:"96"}),(0,l.createElement)(i.BackgroundControls,{attrNameTemplate:"shape%s",hasGradient:!1,hasBackgroundImage:!1,hasBackgroundGradientBlendMode:!1}),(0,l.createElement)(i.BorderControls,{attrNameTemplate:"shape%s",borderSliderMax:"100"}))),(0,l.createElement)(i.Typography.InspectorControls,(0,n.Z)({},e,{initialOpen:!1,hasTextTag:!1,sizePlaceholder:"56"})),(0,l.createElement)(i.Alignment.InspectorControls,null),(0,l.createElement)(i.BlockDiv.InspectorControls,null),(0,l.createElement)(i.Advanced.InspectorControls,null),(0,l.createElement)(i.Transform.InspectorControls,null),(0,l.createElement)(i.EffectsAnimations.InspectorControls,null),(0,l.createElement)(i.CustomAttributes.InspectorControls,null),(0,l.createElement)(i.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-number-box"}),(0,l.createElement)(i.Responsive.InspectorControls,null),(0,l.createElement)(i.ConditionalDisplay.InspectorControls,null)))),h=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{className:t,attributes:o,setAttributes:a}=e,n=(0,i.getTypographyClasses)(e.attributes),s=(0,i.getAlignmentClasses)(e.attributes),u=b()([t,"stk-block-number-box"],{"stk--has-shape":e.attributes.hasShape}),m=b()(["stk-block-number-box__container",s]),p=b()(["stk-block-number-box__text",n]),k=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:d.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(g,{setAttributes:a,blockState:e.blockState,hasShape:o.hasShape}),k&&(0,l.createElement)("style",{key:"block-css"},k),(0,l.createElement)(i.CustomCSS,{mainBlockClass:"stk-block-number-box"}),(0,l.createElement)(i.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:u},(0,l.createElement)("div",{className:m},(0,l.createElement)(i.Typography,{tagName:"span",placeholder:"1",className:p}))),e.isHovered&&(0,l.createElement)(i.MarginBottom,null))})),v=e=>{const{className:t,attributes:o}=e,a=(0,i.getResponsiveClasses)(e.attributes),n=(0,i.getTypographyClasses)(e.attributes),r=(0,i.getAlignmentClasses)(e.attributes),s=b()([t,"stk-block-number-box",a],{"stk--has-shape":o.hasShape}),c=b()(["stk-block-number-box__container",r]),d=b()(["stk-block-number-box__text",n]);return(0,l.createElement)(i.BlockDiv.Content,{className:s,attributes:o,version:e.version},o.generatedCss&&(0,l.createElement)("style",null,o.generatedCss),(0,l.createElement)(i.CustomCSS.Content,{attributes:o}),(0,l.createElement)("div",{className:c},(0,l.createElement)(i.Typography.Content,{tagName:"span",attributes:o,className:d,role:"presentation"})))},C=(0,p.compose)((0,m.withVersion)(d.version))(v);var y=o(7545);const f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new y.AttributeObject;return i.Alignment.addAttributes(t),i.BlockDiv.addAttributes(t),i.Style.addAttributes(t),i.EffectsAnimations.addAttributes(t),i.CustomAttributes.addAttributes(t),i.CustomCSS.addAttributes(t),i.MarginBottom.addAttributes(t),i.Responsive.addAttributes(t),i.ConditionalDisplay.addAttributes(t),i.Advanced.addAttributes(t),i.Transform.addAttributes(t),i.Typography.addAttributes(t,".stk-block-number-box__text"),(0,i.addBackgroundAttributes)(t,"shape%s"),(0,i.addBorderAttributes)(t,"shape%s"),t.add({attributes:{hasShape:{type:"boolean",default:!0},shapeSize:{type:"number",stkResponsive:!0,default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},B=f(d.version),S=JSON.parse('{"apiVersion":3,"name":"stackable/number-box","title":"Number Box","description":"Display steps or methods that your users will do in your service.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Steps"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/number-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),_={attributes:{uniqueId:"d8282a9",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,k.__)("01",d.i18n),textTag:"p",hasShape:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",shapeBackgroundCustomSizeUnit:"%",shapeBackgroundCustomSizeUnitTablet:"%",shapeBackgroundCustomSizeUnitMobile:"%",contentAlign:"center"},innerBlocks:[]},A=[{attributes:f("3.13.11"),save:e=>{const{className:t,attributes:o}=e,a=(0,i.getResponsiveClasses)(e.attributes),n=(0,i.getTypographyClasses)(e.attributes),r=(0,i.getAlignmentClasses)(e.attributes),s=b()([t,"stk-block-number-box",a,r],{"stk--has-shape":o.hasShape}),c=b()(["stk-block-number-box__text",n]);return(0,l.createElement)(i.BlockDiv.Content,{className:s,attributes:o,version:e.version},o.generatedCss&&(0,l.createElement)("style",null,o.generatedCss),(0,l.createElement)(i.CustomCSS.Content,{attributes:o}),(0,l.createElement)(i.Typography.Content,{tagName:"div",attributes:o,className:c,role:"presentation"}))}},{attributes:f("3.12.11"),save:(0,m.withVersion)("3.12.11")(v),isEligible:e=>{const t=i.deprecateBlockShadowColor.isEligible(e),o=i.deprecateContainerShadowColor.isEligible(e),a=i.deprecateShadowColor.isEligible("shape%s")(e);return t||o||a},migrate:e=>{let t=i.deprecateBlockBackgroundColorOpacity.migrate(e);return t=i.deprecationBackgrounColorOpacity.migrate("shape%s")(t),t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateShadowColor.migrate("shape%s")(t),t}},{attributes:f("3.11.9"),save:(0,m.withVersion)("3.11.9")(v),isEligible:e=>i.deprecateBlockBackgroundColorOpacity.isEligible(e)||i.deprecationBackgrounColorOpacity.isEligible("shape%s")(e)||i.deprecateTypographyGradientColor.isEligible("%s")(e),migrate:e=>{let t=i.deprecateBlockBackgroundColorOpacity.migrate(e);return t=i.deprecationBackgrounColorOpacity.migrate("shape%s")(t),t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateShadowColor.migrate("shape%s")(t),t}},{attributes:f("3.7.9"),save:(0,m.withVersion)("3.7.9")(v),migrate:e=>{let t=i.deprecateBlockBackgroundColorOpacity.migrate(e);return t=i.deprecationBackgrounColorOpacity.migrate("shape%s")(t),t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateShadowColor.migrate("shape%s")(t),t}}];var w=o(4106);const E={...S,icon:a.NumberBoxIcon,attributes:B,supports:{anchor:!0,align:!0,spacing:!0},example:_,deprecated:A,edit:h,save:C,substitute:w.default}},4106:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/number-box",transform:e=>["core/paragraph",{fontSize:"xx-large",content:e.text,align:e.contentAlign,style:{spacing:{margin:{top:"0",bottom:"0"}}}}]},n=a},5872:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>Q});var a=o(2610),n=o(8085),l=o(3882);const i=(e,t,o,l)=>{if("list"!==t)return e;const{contentOrder:i=[]}=o,r=i.map((e=>"featured-image"===e?null:l[e]));return(0,a.createElement)(a.Fragment,null,l["featured-image"],(0,a.createElement)("article",{className:"stk-container-padding"},(0,n.compact)(r).map(((e,t)=>(0,a.createElement)(a.Fragment,{key:t},e)))))};(0,l.addFilter)("stackable.posts.edit.item.output","list",i),(0,l.addFilter)("stackable.posts.save.item.output","list",i);var r=o(910),s=o(8003),c=o(7462);o(7294);const d=(0,l.applyFilters)("stackable.posts.variations",[{name:"default",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("Default",r.i18n)),isDefault:!0,attributes:{className:"is-style-default",contentOrder:["title","featured-image","meta","category","excerpt","readmore"],hasContainer:!1,imageWidth:100,imageWidthUnit:"%"},pickerTitle:(0,s.__)("Default",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37 8H11v15h26V8zm0 18H11v2h26v-2zm-26 6h26v2H11v-2zm26 6H11v2h26v-2z"}))},isActive:["className"],scope:["block"]},{name:"list",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("List",r.i18n)),attributes:{imageWidth:35,contentOrder:["title","meta","category","excerpt","readmore"],imageWidthUnit:"%",imageHeightUnit:"px",hasContainer:!1,className:"is-style-list",innerBlockContentAlign:"alignwide",align:"wide"},pickerTitle:(0,s.__)("List",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37 8H11v15h26V8zm0 18H11v2h26v-2zm-26 6h26v2H11v-2zm26 6H11v2h26v-2z"}))},isActive:["className"],scope:["block"]},{name:"image-card",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("Image Card",r.i18n)),attributes:{className:"is-style-image-card"},pickerTitle:(0,s.__)("Image Card",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35 20v16H13V20h22zm-24-8a2 2 0 012-2h22a2 2 0 012 2v24a2 2 0 01-2 2H13a2 2 0 01-2-2V12zm20 12H17v2h14v-2zm-5-10H16v2h10v-2zm5 16H17v2h14v-2z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"horizontal",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("Horizontal",r.i18n)),attributes:{className:"is-style-horizontal"},pickerTitle:(0,s.__)("Horizontal",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 32V16H9v16h21zm9-18a2 2 0 012 2v16a2 2 0 01-2 2H9a2 2 0 01-2-2V16a2 2 0 012-2h30zm-26 6h10v2H13v-2zm13 6H13v2h13v-2z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"horizontal-2",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("Horizontal 2",r.i18n)),attributes:{className:"is-style-horizontal-2"},pickerTitle:(0,s.__)("Horizontal 2",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,a.createElement)("path",{d:"M39 32V16H18v16h21zm0-18c1.1 0 2 .9 2 2v16c0 1.1-.9 2-2 2H9c-1.1 0-2-.9-2-2V16c0-1.1.9-2 2-2h30zm-4 8H25v-2h10v2zm-13 6h13v-2H22v2z",fillRule:"evenodd",clipRule:"evenodd"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"portfolio",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("Portfolio",r.i18n)),attributes:{className:"is-style-portfolio"},pickerTitle:(0,s.__)("Portfolio",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 12a2 2 0 012-2h22a2 2 0 012 2v23a2 2 0 01-2 2H13a2 2 0 01-2-2V12zm4 13h10v2H15v-2zm18 6H15v2h18v-2z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"portfolio-2",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("Portfolio 2",r.i18n)),attributes:{className:"is-style-portfolio-2"},pickerTitle:(0,s.__)("Portfolio 2",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 10a2 2 0 00-2 2v23a2 2 0 002 2h22a2 2 0 002-2V12a2 2 0 00-2-2H13zm16 4H19v2h10v-2zM15 31h18v2H15v-2zm18-8H15v2h18v-2z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"vertical-card",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("Vertical Card",r.i18n)),attributes:{className:"is-style-vertical-card"},pickerTitle:(0,s.__)("Vertical Card",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 35V19h22v16H13zm-2-23a2 2 0 012-2h22a2 2 0 012 2v23a2 2 0 01-2 2H13a2 2 0 01-2-2V12zm5 11h10v2H16v-2zm16 6H16v2h16v-2z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]},{name:"vertical-card-2",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",r.i18n),(0,s.__)("Vertical Card 2",r.i18n)),attributes:{className:"is-style-vertical-card-2"},pickerTitle:(0,s.__)("Vertical Card 2",r.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,c.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 11h24v25H12V11zm-2 0a2 2 0 012-2h24a2 2 0 012 2v25a2 2 0 01-2 2H12a2 2 0 01-2-2V11zm22 15H16v6h16v-6zM19 15h10v2H19v-2zm12 6H17v2h14v-2z"}))},isActive:["className"],isPremium:!r.isPro,scope:["block"]}]);var u=o(9384),b=o(8333),m=o(7200);const p=new m.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""}),k=" .%s-container",g=e=>t=>t("hoverStateInContainer")?` .%s-container:hover ${e}`:` .%s-container ${e}:hover`,h=["hoverStateInContainer"];p.addBlockStyles("columns",[{selector:"",styleRule:"--stk-columns",attrName:"columns",key:"columns",responsive:"all"}]),p.addBlockStyles("containerPadding",[{selector:"",responsive:"all",styleRule:"--stk-container-padding-left",attrName:"containerPadding",key:"containerPadding",hasUnits:"px",valueCallback:e=>null==e?void 0:e.left},{selector:"",responsive:"all",styleRule:"--stk-container-padding-right",attrName:"containerPadding",key:"containerPadding-right",hasUnits:"px",valueCallback:e=>null==e?void 0:e.right}]),p.addBlockStyles("columnGap",[{selector:"",styleRule:"--stk-column-gap",attrName:"columnGap",key:"columnGap",format:"%spx",responsive:"all"}]),p.addBlockStyles("innerBlockContentWidth",[{selector:".stk-content-align",hasUnits:"px",responsive:"all",styleRule:"maxWidth",attrName:"innerBlockContentWidth",key:"innerBlockContentWidth"}]),p.addBlockStyles("innerBlockAlign",[{selector:".stk-content-align",responsive:"all",styleRule:"marginLeft",attrName:"innerBlockAlign",key:"innerBlockAlign-margin-left",valueCallback:(e,t,o)=>{if(void 0!==t("innerBlockContentWidth",o)&&""!==t("innerBlockContentWidth",o))return"center"===e||"flex-end"===e?"auto":0},dependencies:["innerBlockContentWidth"]},{selector:".stk-content-align",responsive:"all",styleRule:"marginRight",attrName:"innerBlockAlign",key:"innerBlockAlign",valueCallback:(e,t,o)=>{if(void 0!==t("innerBlockContentWidth",o)&&""!==t("innerBlockContentWidth",o))return"center"===e||"flex-start"===e?"auto":0},dependencies:["innerBlockContentWidth"]}]),p.addBlockStyles("categoryHighlightColor",[{selector:" .%s-container .stk-button",styleRule:"background",attrName:"categoryHighlightColor",key:"categoryHighlightColor-button",enabledCallback:e=>e("categoryHighlighted"),dependencies:["categoryHighlighted"]},{selector:" .%s-container .stk-button:after",styleRule:"background",attrName:"categoryHighlightColor",key:"categoryHighlightColor-button-after",hoverSelectorCallback:e=>e("categoryHoverStateInContainer")?" .%s-container:hover .stk-button:after":" .%s-container .stk-button:hover:after",hover:"all",valuePreCallback:(e,t,o,a)=>{if("normal"!==a)return e},enabledCallback:e=>e("categoryHighlighted"),dependencies:["categoryHighlighted","categoryHoverStateInContainer"]},{selector:" .%s-container .stk-button:after",styleRule:"opacity",attrName:"categoryHighlightColor",key:"categoryHighlightColor-opacity",hoverSelectorCallback:e=>e("categoryHoverStateInContainer")?" .%s-container:hover .stk-button:after":" .%s-container .stk-button:hover:after",hover:"all",valuePreCallback:(e,t,o,a)=>{if("normal"!==a)return void 0!==e&&""!==e?1:void 0},enabledCallback:e=>e("categoryHighlighted"),dependencies:["categoryHighlighted","categoryHoverStateInContainer"]}]),p.addBlockStyles("imageSpacing",[{selector:" .%s-container .stk-block-posts__image-link",styleRule:"marginBottom",attrName:"imageSpacing",key:"imageSpacing",format:"%spx",responsive:"all"}]),p.addBlockStyles("titleSpacing",[{selector:".stk-block-posts__title",styleRule:"marginBottom",attrName:"titleSpacing",key:"titleSpacing",format:"%spx",responsive:"all"}]),p.addBlockStyles("categorySpacing",[{selector:".stk-block-posts__category",styleRule:"marginBottom",attrName:"categorySpacing",key:"categorySpacing",format:"%spx",responsive:"all"}]),p.addBlockStyles("excerptSpacing",[{selector:".stk-block-posts__excerpt",styleRule:"marginBottom",attrName:"excerptSpacing",key:"excerptSpacing",format:"%spx",responsive:"all"}]),p.addBlockStyles("metaSpacing",[{selector:".stk-block-posts__meta",styleRule:"marginBottom",attrName:"metaSpacing",key:"metaSpacing",format:"%spx",responsive:"all"}]),p.addBlockStyles("readmoreSpacing",[{selector:".stk-block-posts__readmore",styleRule:"marginBottom",attrName:"readmoreSpacing",key:"readmoreSpacing",format:"%spx",responsive:"all"}]),p.addBlockStyles("imageWidth",[{renderIn:"save",selector:".stk-container-padding",styleRule:"width",attrName:"imageWidth",key:"imageWidth",responsive:"all",valueCallback:(e,t,o)=>{if("%"===t("imageWidthUnit",o)&&void 0!==e&&""!==e)return 100-parseInt(e)+"%"},enabledCallback:e=>{const t=e("className"),o=(0,b.getBlockStyle)(d,t);return"list"===(null==o?void 0:o.name)},dependencies:["imageWidthUnit","className"]},{renderIn:"save",selector:".stk-block-posts__image-link:not(:empty)",styleRule:"width",attrName:"imageWidth",key:"imageWidthHorizontalSave",responsive:"all",hasUnits:"%",enabledCallback:e=>{const t=e("className"),o=(0,b.getBlockStyle)(d,t);return("%"===e("imageWidthUnit")||"%"===e("imageWidthUnitTablet"))&&["horizontal","horizontal-2"].includes(null==o?void 0:o.name)&&e("imageHasLink")},dependencies:["imageWidthUnitTablet","imageWidthUnit","imageHasLink","className"]}]),u.Alignment.addStyles(p),u.BlockDiv.addStyles(p),u.Column.addStyles(p),u.Transform.addStyles(p),u.Advanced.addStyles(p),u.EffectsAnimations.addStyles(p),u.ContainerDiv.addStyles(p,{backgroundSelector:k,borderSelector:k,sizeSelector:k}),u.Image.addStyles(p,{dependencies:["imageHoverStateInContainer","imageOverlayColorType"],enableHeightCallback:e=>{const t=e("className"),o=(0,b.getBlockStyle)(d,t);return!["portfolio"].includes(null==o?void 0:o.name)},enableAspectRatioCallback:e=>{const t=e("className"),o=(0,b.getBlockStyle)(d,t);return!["list","horizontal","horizontal-2","portfolio","portfolio-2","vertical-card-2"].includes(null==o?void 0:o.name)},saveEnableWidthCallback:e=>{const t=e("className"),o=e("imageHasLink"),a=(0,b.getBlockStyle)(d,t);return!["horizontal","horizontal-2"].includes(null==a?void 0:a.name)||!o},selectorCallback:e=>{const t=e("className"),o=(0,b.getBlockStyle)(d,t),a=e("imageHasLink");return["list"].includes(null==o?void 0:o.name)&&a?" .%s-container .stk-block-posts__image-link":".stk-img-wrapper"},widthStyleRuleCallback:e=>{const t=e("className"),o=(0,b.getBlockStyle)(d,t),a=e("imageHasLink");return["list"].includes(null==o?void 0:o.name)&&a?"flexBasis":"width"}}),u.Typography.addStyles(p,{editSelector:".stk-block-posts__title",saveSelector:".stk-block-posts__title a",editHoverSelectorCallback:g(".stk-block-posts__title"),saveHoverSelectorCallback:g(".stk-block-posts__title a"),attrNameTemplate:"title%s",dependencies:h}),u.Typography.addStyles(p,{selectorCallback:e=>".stk-block-posts__category a"+(e("highlighted")?" .stk-button__inner-text":""),hoverSelectorCallback:e=>{const t=e("highlighted")?" .stk-button__inner-text":"";return e("hoverStateInContainer")?` .%s-container:hover .stk-block-posts__category a${t}`:`.stk-block-posts__category a:hover${t}`},attrNameTemplate:"category%s",dependencies:["Highlighted","hoverStateInContainer",...h]}),u.Typography.addStyles(p,{selector:".stk-block-posts__excerpt p",hoverSelectorCallback:g(".stk-block-posts__excerpt p"),attrNameTemplate:"excerpt%s",dependencies:h}),u.Typography.addStyles(p,{selector:".stk-block-posts__meta",hoverSelectorCallback:g(".stk-block-posts__meta"),attrNameTemplate:"meta%s",dependencies:h}),u.Typography.addStyles(p,{selector:".stk-block-posts__readmore",hoverSelectorCallback:g(".stk-block-posts__readmore"),attrNameTemplate:"readmore%s",dependencies:h}),(0,u.addFlexGapStyles)(p,{selector:".stk-block-posts__items",enableColumnGap:!1});const v=p;var C=o(3726),y=o.n(C),f=o(4184),B=o.n(f),S=o(3162);const _=wp.htmlEntities,A={dot:"·",space:" ",comma:",",dash:"—",pipe:"|"},w=[{label:(0,s.__)("Featured Image",r.i18n),value:"featured-image"},{label:(0,s.__)("Title",r.i18n),value:"title"},{label:(0,s.__)("Meta",r.i18n),value:"meta"},{label:(0,s.__)("Category",r.i18n),value:"category"},{label:(0,s.__)("Excerpt",r.i18n),value:"excerpt"},{label:(0,s.__)("Read More Button",r.i18n),value:"readmore"}],E=(e,t)=>{let{isHovered:o}=t;const{className:i="",categoryHighlighted:c=!1,imageSize:m,metaSeparator:p,excerptLength:k,authorShow:g=!0,dateShow:h=!0,commentsShow:v=!0,imageShow:C=!0,categoryShow:f=!0,titleShow:w=!0,metaShow:E=!0,excerptShow:T=!0,readmoreShow:x=!0,contentOrder:I=[]}=e,z=(0,b.getBlockStyle)(d,i),M=B()(["stk-block-posts__item"]),H=B()("stk-block-posts__title",(0,u.getTypographyClasses)(e,"title%s")),N=B()("stk-block-posts__category","stk-subtitle",(0,u.getTypographyClasses)(e,"category%s")),D=B()("stk-block-posts__excerpt",(0,u.getTypographyClasses)(e,"excerpt%s")),O=B()("stk-block-posts__meta","stk-subtitle",(0,u.getTypographyClasses)(e,"meta%s")),L=B()("stk-block-posts__readmore",(0,u.getTypographyClasses)(e,"readmore%s"));return(t,i)=>{var d;const{featured_image_urls:b,post_title:B,category_list:R,author_info:U,post_date_gmt:P,comments_num:V,post_excerpt_stackable:F}=t,G=null==b||null===(d=b[m||"full"])||void 0===d?void 0:d[0],q=!["portfolio","portfolio-2","horizontal","horizontal-2"].includes(null==z?void 0:z.name),W=["list","horizontal","horizontal-2"].includes(null==z?void 0:z.name),$=!!G&&(0,a.createElement)(u.Image,{showTooltips:o,src:G,alt:(0,s.__)("featured",r.i18n),hasRemove:!1,enableClickToEdit:!1,defaultWidth:100,defaultHeight:"auto",enableWidth:W,widthResizePosition:"horizontal"===(null==z?void 0:z.name)?"left":"right",enableDiagonal:"list"===(null==z?void 0:z.name),enableHeight:q,hasTooltip:q,heightResizePosition:"vertical-card-2"===(null==z?void 0:z.name)?"top":"bottom",className:"stk-block-posts__image-link"}),j=(0,a.createElement)(u.Typography,{defaultTag:"h3",attrNameTemplate:"title%s",className:H,value:(0,_.decodeEntities)(B.trim())||(0,s.__)("(Untitled)",r.i18n),editable:!1}),Z=R&&(0,a.createElement)("div",{className:N},c?(0,a.createElement)("a",{href:"#",className:"stk-button"},(0,a.createElement)(u.Typography,{tagName:"span",className:"stk-button__inner-text",attrNameTemplate:"category%s",value:y()(R),editable:!1})):(0,a.createElement)(u.Typography,{tagName:"a",attrNameTemplate:"category%s",value:y()(R),editable:!1})),J=(0,a.createElement)("span",{className:"stk-block-posts__meta-sep"},A[p||"dot"]),K=(null==U?void 0:U.name)&&(0,a.createElement)("span",null,U.name),Y=P&&(0,a.createElement)("time",{dateTime:(0,S.format)("c",P)},(0,S.dateI18n)("F d, Y",P)),Q=(0,a.createElement)("span",null,V);let X=F.split(" ");X=X.length>(k||55)?X.slice(0,k||55).join(" ")+"...":t.post_excerpt_stackable;const ee=X&&(0,a.createElement)("div",{className:D,dangerouslySetInnerHTML:{__html:X}}),te=(0,a.createElement)(u.Typography,{identifier:"read-more-"+i,tagName:"a",attrNameTemplate:"readmore%s",className:L,defaultValue:(0,s.__)("Continue Reading",r.i18n)}),oe=(g||h||v)&&(0,a.createElement)("aside",{className:O},g&&K,g&&K&&(h&&Y||v&&Q)&&J,h&&Y,(g&&K||h&&Y)&&v&&Q&&J,v&&Q),ae={"featured-image":C&&$,title:w&&j,category:f&&Z,meta:E&&oe,excerpt:T&&ee,readmore:x&&te},ne=I.map((e=>ae[e]));let le=(0,a.createElement)("article",null,(0,n.compact)(ne).map(((e,t)=>(0,a.createElement)(a.Fragment,{key:t},e))));return le=(0,l.applyFilters)("stackable.posts.edit.item.output",le,null==z?void 0:z.name,e,{...ae}),(0,a.createElement)("div",{className:M,key:i},(0,a.createElement)(u.ContainerDiv,null,le))}};E.save=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.version;const{imageHasLink:o=!0,className:i="",authorShow:s=!0,dateShow:m=!0,commentsShow:p=!0,imageShow:k=!0,categoryShow:g=!0,titleShow:h=!0,metaShow:v=!0,excerptShow:C=!0,readmoreShow:y=!0,contentOrder:f=[]}=e,S=(0,b.getBlockStyle)(d,i),_=B()(["stk-block-posts__item"]),A=B()("stk-block-posts__title",(0,u.getTypographyClasses)(e,"title%s")),w=B()("stk-block-posts__category","stk-subtitle",(0,u.getTypographyClasses)(e,"category%s")),E=B()("stk-block-posts__excerpt",(0,u.getTypographyClasses)(e,"excerpt%s")),T=B()("stk-block-posts__meta","stk-subtitle",(0,u.getTypographyClasses)(e,"meta%s")),x=B()("stk-block-posts__readmore",(0,u.getTypographyClasses)(e,"readmore%s"));let I=(0,a.createElement)(u.Image.Content,{attributes:e});I=(0,l.applyFilters)("stackable.posts.feature-image",I,t),o&&(I=(0,a.createElement)("a",{href:"!#postLink!#",className:"stk-block-posts__image-link"},I));const z=(0,a.createElement)(u.Typography.Content,(0,c.Z)({defaultTag:"h3",attrNameTemplate:"title%s",className:A,value:"<a href='!#postLink!#'>!#title!#</a>",attributes:e},(0,l.applyFilters)("stackable.posts.title.typography-content",{},t))),M=(0,a.createElement)(u.Typography.Content,(0,c.Z)({tagName:"div",attrNameTemplate:"category%s",className:w,value:"!#category!#",attributes:e},(0,l.applyFilters)("stackable.posts.title.category-content",{},t))),H=(0,a.createElement)("span",{className:"stk-block-posts__meta-sep"},"!#metaSeparator!#"),N=(0,a.createElement)("span",null,"!#authorName!#"),D=(0,a.createElement)("time",{dateTime:"!#dateTime!#"},"!#date!#"),O=(0,a.createElement)("span",null,"!#commentsNum!#"),L=(0,a.createElement)("div",{className:E,dangerouslySetInnerHTML:{__html:"!#excerpt!#"}}),R=(0,a.createElement)(u.Typography.Content,(0,c.Z)({tagName:"a",href:"!#postLink!#",attrNameTemplate:"readmore%s",className:x,value:"!#readmoreText!#",attributes:e},(0,l.applyFilters)("stackable.posts.title.readmore-content",{},t))),U=(s||m||p)&&(0,a.createElement)("aside",{className:T},s&&N,s&&N&&(m&&D||p&&O)&&H,m&&D,(s&&N||m&&D)&&p&&O&&H,p&&O),P={"featured-image":k&&I,title:h&&z,category:g&&M,meta:v&&U,excerpt:C&&L,readmore:y&&R},V=f.map((e=>P[e]));let F=(0,a.createElement)("article",null,(0,n.compact)(V).map(((e,t)=>(0,a.createElement)(a.Fragment,{key:t},e))));return F=(0,l.applyFilters)("stackable.posts.save.item.output",F,null==S?void 0:S.name,e,{...P}),(0,a.createElement)(a.Fragment,null,"<!–- /stk-start:posts/template –->",(0,a.createElement)("div",{className:_},(0,a.createElement)(u.ContainerDiv.Content,{attributes:e},F)),"<!–- /stk-end:post/template –->")};var T=o(9783),x=o(7545),I=o(7537),z=o(78),M=o(3284),H=o(3749);const N=["stackable/load-more","stackable/pagination"],D=["title","featured-image","meta","category","excerpt","readmore"],O=e=>{var t;const{clientId:o,attributes:l,name:i,className:c,setAttributes:p}=e,{stkQueryId:k,imageSize:g,type:h="post",orderBy:C="date",order:y="desc",taxonomyType:f="category",taxonomy:S="",taxonomyFilterType:_="__in",contentOrder:A=D,uniqueId:T}=l,x=(0,u.getAlignmentClasses)(l),R=(0,b.useBlockStyle)(d),{getActiveBlockVariation:U}=(0,M.useSelect)("core/blocks"),{posts:P,isRequesting:V,hasPosts:F}=(0,b.usePostsQuery)(l),G=(0,H.useInstanceId)(O),q=B()("stk-inner-blocks",(0,u.getContentAlignmentClasses)(l)),W=B()([c,"stk-block-posts",x],{"stk--has-container":l.hasContainer}),$=B()(["stk-block-posts__items"]),j=B()(["stk-inner-blocks"]),Z=A.map((e=>{var t;return null===(t=w.find((t=>t.value===e)))||void 0===t?void 0:t.label})),J=(0,a.useMemo)((()=>{var e,t,o;return null===(e=(0,n.first)(P))||void 0===e||null===(t=e.featured_image_urls)||void 0===t||null===(o=t[g||"full"])||void 0===o?void 0:o[0]}),[null==P?void 0:P.length]),K=(0,a.useMemo)((()=>E(l,{isHovered:e.isHovered})),[l,e.isHovered]);(0,a.useEffect)((()=>{k!==G&&p({stkQueryId:G})}),[k,G]);const Y=U(i,l),Q=(null==Y||null===(t=Y.attributes)||void 0===t?void 0:t.contentOrder)||D,X=(0,m.useBlockCssGenerator)({attributes:e.attributes,blockStyles:v,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:r.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(L,{setAttributes:p,blockState:e.blockState,contentOrderOptions:Z,contentOrder:A,DefaultContentOrder:Q,orderBy:C,order:y,type:h,taxonomyType:f,taxonomy:S,taxonomyFilterType:_,blockStyle:R,focalPointPlaceholder:J}),X&&(0,a.createElement)("style",{key:"block-css"},X),(0,a.createElement)(u.CustomCSS,{mainBlockClass:"stk-block-posts"}),V||!F?(0,a.createElement)(I.Placeholder,{icon:"admin-post",label:(0,s.__)("Posts",r.i18n)},!Array.isArray(P)||V?(0,a.createElement)(I.Spinner,null):(0,s.__)("No posts found.",r.i18n)):(0,a.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:W,enableVariationPicker:!0},(0,a.createElement)("div",{className:q,key:`posts-wrapper-${o}`},(0,a.createElement)("div",{className:$,key:`posts-content-${o}`},(P||[]).map(K)),(0,a.createElement)("div",{className:j,key:`posts-inner-${o}`},(0,a.createElement)(z.InnerBlocks,{allowedBlocks:N})))),e.isHovered&&!V&&F&&T&&(0,a.createElement)(u.MarginBottom,null))},L=(0,a.memo)((e=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(m.InspectorTabs,null),(0,a.createElement)(m.InspectorLayoutControls,null,(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Columns",r.i18n),attribute:"columns",responsive:"all",min:1,sliderMax:4,placeholder:"2"}),(0,a.createElement)(u.FlexGapControls,null),(0,a.createElement)(m.ControlSeparator,null),(0,a.createElement)(m.SortControl,{label:(0,s.__)("Content Arrangement",r.i18n),axis:"y",values:e.contentOrderOptions,num:e.contentOrderOptions.length,allowReset:!(0,n.isEqual)(e.contentOrder,e.defaultContentOrder),onChange:t=>{t?e.setAttributes({contentOrder:t.map((e=>{var t;return null===(t=w.find((t=>t.label===e)))||void 0===t?void 0:t.value}))}):e.setAttributes({contentOrder:e.defaultContentOrder})},helpTooltip:{video:"posts-content-order",description:(0,s.__)("Sets the order of the items displayed (category, title, meta, excerpt, read more button, image) for each post",r.i18n)}}),(0,a.createElement)(m.ControlSeparator,null)),(0,a.createElement)(u.ContentAlign.InspectorControls,null),(0,a.createElement)(u.Alignment.InspectorControls,null),(0,a.createElement)(m.InspectorStyleControls,null,(0,a.createElement)(m.PanelAdvancedSettings,{title:(0,s.__)("Query",r.i18n),id:"query",initialOpen:!0},(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Number of items",r.i18n),min:1,max:100,allowReset:!0,attribute:"numberOfItems",placeholder:"6",default:6}),(0,a.createElement)(m.AdvancedSelectControl,{label:(0,s.__)("Order by",r.i18n),options:[{label:(0,s.__)("Newest to Oldest",r.i18n),value:"date,desc"},{label:(0,s.__)("Oldest to Newest",r.i18n),value:"date,asc"},{label:(0,s.__)("A → Z",r.i18n),value:"title,asc"},{label:(0,s.__)("Z → A",r.i18n),value:"title,desc"},{label:(0,s.__)("Last Modified to Oldest",r.i18n),value:"modified,desc"},{label:(0,s.__)("Oldest Modified to Last",r.i18n),value:"modified,asc"},{label:(0,s.__)("Menu Order",r.i18n),value:"menu_order,asc"},{label:(0,s.__)("Random",r.i18n),value:"rand,desc"}],value:`${e.orderBy},${e.order}`,onChange:t=>{const[o,a]=t.split(",");e.setAttributes({orderBy:o,order:a})},default:"date,desc"}),(0,a.createElement)(m.TaxonomyControl,{allowReset:!0,postType:e.type,onChangePostType:t=>e.setAttributes({type:t}),taxonomyType:e.taxonomyType,onChangeTaxonomyType:t=>e.setAttributes({taxonomyType:t}),taxonomy:e.taxonomy,onChangeTaxonomy:t=>e.setAttributes({taxonomy:t}),taxonomyFilterType:e.taxonomyFilterType,onChangeTaxonomyFilterType:t=>e.setAttributes({taxonomyFilterType:t}),stkVersion:"3"}),r.showProNotice&&(0,a.createElement)(m.ProControlButton,{type:"posts"}),(0,l.applyFilters)("stackable.posts.edit.inspector.style.query",null)),(0,a.createElement)(m.PanelAdvancedSettings,{title:(0,s.__)("Spacing",r.i18n),id:"spacing"},(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Featured Image",r.i18n),attribute:"imageSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Title",r.i18n),attribute:"titleSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Category",r.i18n),attribute:"categorySpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Excerpt",r.i18n),attribute:"excerptSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Meta",r.i18n),attribute:"metaSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Read More Link",r.i18n),attribute:"readmoreSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}))),(0,a.createElement)(u.BlockDiv.InspectorControls,null),(0,a.createElement)(u.ContainerDiv.InspectorControls,{hasContentVerticalAlign:!0}),(0,a.createElement)(u.Advanced.InspectorControls,null),(0,a.createElement)(u.Transform.InspectorControls,null),(0,a.createElement)(u.Image.InspectorControls,(0,c.Z)({},e,{label:(0,s.__)("Featured Image",r.i18n),hasHeight:!["portfolio","portfolio-2","horizontal","horizontal-2"].includes(e.blockStyle),hasBorderRadius:!["portfolio","portfolio-2","horizontal","horizontal-2"].includes(e.blockStyle),hasShape:!1,hasWidth:["list","horizontal","horizontal-2"].includes(e.blockStyle),hasAlt:!1,hasSelector:!1,src:e.focalPointPlaceholder,hasToggle:!0,hasAspectRatio:!["list","horizontal","horizontal-2","portfolio","portfolio-2","vertical-card-2"].includes(e.blockStyle)})),(0,a.createElement)(u.Typography.InspectorControls,(0,c.Z)({},e,{label:(0,s.__)("Title",r.i18n),hasToggle:!0,attrNameTemplate:"title%s",hasTextContent:!1,hasAlign:!0,initialOpen:!1})),(0,a.createElement)(u.Typography.InspectorControls,(0,c.Z)({},e,{label:(0,s.__)("Category",r.i18n),hasToggle:!0,attrNameTemplate:"category%s",hasTextContent:!1,hasAlign:!0,hasTextTag:!1,initialOpen:!1})),(0,a.createElement)(u.Typography.InspectorControls,(0,c.Z)({},e,{label:(0,s.__)("Excerpt",r.i18n),hasToggle:!0,attrNameTemplate:"excerpt%s",hasTextTag:!1,hasTextContent:!1,hasAlign:!0,initialOpen:!1})),(0,a.createElement)(u.Typography.InspectorControls,(0,c.Z)({},e,{label:(0,s.__)("Meta",r.i18n),hasToggle:!0,attrNameTemplate:"meta%s",hasTextTag:!1,hasTextContent:!1,hasAlign:!0,initialOpen:!1})),(0,a.createElement)(u.Typography.InspectorControls,(0,c.Z)({},e,{label:(0,s.__)("Read More Link",r.i18n),attrNameTemplate:"readmore%s",hasTextTag:!1,hasToggle:!0,hasAlign:!0,initialOpen:!1})),(0,a.createElement)(u.EffectsAnimations.InspectorControls,null),(0,a.createElement)(u.CustomAttributes.InspectorControls,null),(0,a.createElement)(u.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-posts"}),(0,a.createElement)(u.Responsive.InspectorControls,null),(0,a.createElement)(u.ConditionalDisplay.InspectorControls,null)))),R=(0,H.compose)(T.withBlockWrapperIsHovered,T.withQueryLoopContext,T.withBlockAttributeContext)(O);(0,l.addFilter)("stackable.block-component.typography.color.after","stackable/posts",((e,t)=>{const{name:o}=(0,z.useBlockEditContext)();return"stackable/posts"!==o?e:(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Apply hover effect when container is hovered",r.i18n),attribute:(0,x.getAttrName)(t.attrNameTemplate,"hoverStateInContainer")}))})),(0,l.addFilter)("stackable.block-component.typography.color.after","stackable/posts",((e,t)=>{const{name:o}=(0,z.useBlockEditContext)(),n=(0,b.useBlockAttributesContext)((e=>e.categoryHighlighted));return"stackable/posts"!==o||"category%s"!==t.attrNameTemplate?e:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Highlighted",r.i18n),attribute:"categoryHighlighted"}),n&&(0,a.createElement)(m.ColorPaletteControl,{label:(0,s.__)("Highlight Color",r.i18n),hover:"all",attribute:"categoryHighlightColor"}),e)})),(0,l.addFilter)("stackable.block-component.typography.before","stackable/posts",((e,t)=>{const{name:o}=(0,z.useBlockEditContext)();return"stackable/posts"!==o||"excerpt%s"!==t.attrNameTemplate?e:(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Excerpt Length",r.i18n),attribute:"excerptLength",placeholder:"55",min:1,sliderMax:100})})),(0,l.addFilter)("stackable.block-component.typography.before","stackable/posts",((e,t)=>{const{name:o}=(0,z.useBlockEditContext)();return"stackable/posts"!==o||"meta%s"!==t.attrNameTemplate?e:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Show Author",r.i18n),attribute:"authorShow"}),(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Show Date",r.i18n),attribute:"dateShow"}),(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Show Comments",r.i18n),attribute:"commentsShow"}),(0,a.createElement)(m.AdvancedSelectControl,{label:(0,s.__)("Separator",r.i18n),options:[{label:(0,s.__)("Default (Dot)",r.i18n),value:""},{label:(0,s.__)("Space",r.i18n),value:"space"},{label:(0,s.__)("Comma",r.i18n),value:"comma"},{label:(0,s.__)("Dash",r.i18n),value:"dash"},{label:(0,s.__)("Pipe",r.i18n),value:"pipe"}],attribute:"metaSeparator",helpTooltip:{video:"posts-meta-separator",description:(0,s.__)("Sets the separators between meta items (dot, space, comma, dash, pipe)",r.i18n)}}))})),(0,l.addFilter)("stackable.block-component.image.before","stackable/posts",(e=>{const{name:t}=(0,z.useBlockEditContext)(),o=(0,b.useBlockAttributesContext)((e=>e.imageSize)),n=(0,b.useBlockSetAttributesContext)();return"stackable/posts"!==t?e:(0,a.createElement)(a.Fragment,null,(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Add post links to images",r.i18n),attribute:"imageHasLink"}),(0,a.createElement)(m.ImageSizeControl,{label:(0,s.__)("Image Size",r.i18n),value:o,onChange:e=>n({imageSize:e}),default:"full",helpTooltip:{video:"image-size",description:(0,s.__)("Sets the image display size to thumbnail, medium, large or full size. A smaller image size will also load faster.",r.i18n)}}),(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Apply hover effect when container is hovered",r.i18n),attribute:"imageHoverStateInContainer"}))}));const U=e=>{const{version:t,className:o,attributes:n}=e,l=(0,u.getResponsiveClasses)(e.attributes),i=(0,u.getAlignmentClasses)(e.attributes),r=B()("stk-inner-blocks",(0,u.getContentAlignmentClasses)(n)),s=B()([o,"stk-block-posts",l,i],{"stk--has-container":n.hasContainer}),c=B()(["stk-block-posts__items"]),d=B()(["stk-inner-blocks"]);return(0,a.createElement)(u.BlockDiv.Content,{className:s,attributes:n,version:e.version,"data-v":e.attributes.version},n.generatedCss&&(0,a.createElement)("style",null,n.generatedCss),(0,a.createElement)(u.CustomCSS.Content,{attributes:n}),(0,a.createElement)("div",{className:r},(0,a.createElement)("div",{className:c},E.save({...n,className:o||n.className},t)),(0,a.createElement)("div",{className:d},(0,a.createElement)(z.InnerBlocks.Content,null))))},P=(0,H.compose)((0,T.withVersion)(r.version))(U),V={stkQueryId:{type:"number"},columns:{type:"number",default:"",stkResponsive:!0},contentOrder:{type:"array",default:""},innerBlockContentWidth:{stkResponsive:!0,stkUnits:"px",type:"number",default:""},innerBlockAlign:{type:"string",default:""},numberOfItems:{type:"number",default:6},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},type:{type:"string",default:"post"},taxonomyType:{type:"string",default:"category"},taxonomy:{type:"string",default:""},taxonomyFilterType:{type:"string",default:"__in"},postOffset:{type:"number",default:""},postExclude:{type:"string",default:""},excludeCurrentPost:{type:"boolean",default:""},postInclude:{type:"string",default:""},readmoreText:{type:"string",default:""},imageSpacing:{stkResponsive:!0,type:"number",default:""},titleSpacing:{stkResponsive:!0,type:"number",default:""},categorySpacing:{stkResponsive:!0,type:"number",default:""},excerptSpacing:{stkResponsive:!0,type:"number",default:""},metaSpacing:{stkResponsive:!0,type:"number",default:""},readmoreSpacing:{stkResponsive:!0,type:"number",default:""},titleShow:{type:"boolean",default:!0},categoryShow:{type:"boolean",default:!0},excerptShow:{type:"boolean",default:!0},metaShow:{type:"boolean",default:!0},readmoreShow:{type:"boolean",default:!0},authorShow:{type:"boolean",default:""},dateShow:{type:"boolean",default:""},commentsShow:{type:"boolean",default:""},excerptLength:{type:"number",default:""},metaSeparator:{type:"string",default:""},titleHoverStateInContainer:{type:"boolean",default:""},categoryHoverStateInContainer:{type:"boolean",default:""},categoryHighlighted:{type:"boolean",default:""},categoryHighlightColor:{stkHover:!0,type:"string",default:""},excerptHoverStateInContainer:{type:"boolean",default:""},metaHoverStateInContainer:{type:"boolean",default:""},readmoreHoverStateInContainer:{type:"boolean",default:""},imageHoverStateInContainer:{type:"boolean",default:""},imageHasLink:{type:"boolean",default:!0}},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.version;const t=new x.AttributeObject;return u.BlockDiv.addAttributes(t),u.Style.addAttributes(t),u.ContainerDiv.addAttributes(t),u.Image.addAttributes(t,{imageWidthUnitDefault:"px"}),u.Alignment.addAttributes(t),u.Advanced.addAttributes(t),u.EffectsAnimations.addAttributes(t),u.CustomAttributes.addAttributes(t),u.CustomCSS.addAttributes(t),u.Responsive.addAttributes(t),u.ConditionalDisplay.addAttributes(t),u.Typography.addAttributes(t,"stk-block-posts__title",{hasTextContent:!1,attrNameTemplate:"title%s"}),u.Typography.addAttributes(t,"stk-block-posts__category",{hasTextTag:!1,hasTextContent:!1,attrNameTemplate:"category%s"}),u.Typography.addAttributes(t,"stk-block-posts__excerpt",{hasTextTag:!1,hasTextContent:!1,attrNameTemplate:"excerpt%s"}),u.Typography.addAttributes(t,"stk-block-posts__meta",{hasTextTag:!1,hasTextContent:!1,attrNameTemplate:"meta%s"}),u.Typography.addAttributes(t,"stk-block-posts__readmore",{hasTextTag:!1,hasTextContent:!1,attrNameTemplate:"readmore%s"}),u.Transform.addAttributes(t),u.ContentAlign.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0},...V},versionAdded:"3.0.0",versionDeprecated:""}),(0,u.addFlexGapAttributes)(t),t.addDefaultValues({attributes:{readmoreText:(0,s.__)("Continue Reading",r.i18n),commentsShow:!0,authorShow:!0,dateShow:!0,titleShow:!0,titleTextTag:"h3",postType:"post",numberOfItems:6,orderBy:"date",order:"desc",taxonomyType:"category",taxonomy:"",taxonomyFilterType:"__in",contentOrder:["category","featured-image","title","meta","excerpt","readmore"]},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},G=F(r.version),q=JSON.parse('{"apiVersion":3,"name":"stackable/posts","title":"Posts","description":"Your latest blog posts. Use this to showcase a few of your posts in your landing pages.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Blog Posts","Lastest Posts","Query Loop"],"providesContext":{"type":"type","orderBy":"orderBy","order":"order","taxonomyType":"taxonomyType","taxonomy":"taxonomy","taxonomyFilterType":"taxonomyFilterType","postOffset":"postOffset","postExclude":"postExclude","postInclude":"postInclude","numberOfItems":"numberOfItems","stkQueryId":"stkQueryId"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/blog-posts-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}');var W=o(9467),$=o(4247),j=o.n($);const Z=(e,t)=>-1===j()(t,"3.0.3")?{...e,attributes:void 0}:e;(0,l.addFilter)("stackable.posts.title.typography-content","stackable/3_0_2",Z),(0,l.addFilter)("stackable.posts.title.category-content","stackable/3_0_2",Z),(0,l.addFilter)("stackable.posts.title.readmore-content","stackable/3_0_2",Z),(0,l.addFilter)("stackable.posts.feature-image","stackable/3_6_3",((e,t)=>-1===j()("3.6.3",t)?e:(0,a.createElement)(u.Image.Content,null)));const J=[{attributes:F("3.12.11"),save:(0,T.withVersion)("3.12.11")(U),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e),a=u.deprecateShadowColor.isEligible("image%s")(e),n=e.version<2||void 0===e.version;return t||o||a||n},migrate:e=>{let t={...e,version:2};return(e.innerBlockContentWidth||e.innerBlockContentWidthTablet||e.innerBlockContentWidthMobile)&&(t={...t,innerBlockContentWidth:"",innerBlockContentWidthTablet:"",innerBlockContentWidthMobile:"",innerBlockContentWidthUnit:"px",innerBlockContentWidthUnitTablet:"",innerBlockContentWidthUnitMobile:"",blockWidth:e.innerBlockContentWidth,blockWidthTablet:e.innerBlockContentWidthTablet,blockWidthMobile:e.innerBlockContentWidthMobile,blockWidthUnit:e.innerBlockContentWidthUnit,blockWidthUnitTablet:e.innerBlockContentWidthUnitTablet,blockWidthUnitMobile:e.innerBlockContentWidthUnitMobile,innerBlockAlign:"",innerBlockAlignTablet:"",innerBlockAlignMobile:"",blockHorizontalAlign:e.innerBlockAlign,blockHorizontalAlignTablet:e.innerBlockAlignTablet,blockHorizontalAlignMobile:e.innerBlockAlignMobile}),t=u.deprecationImageOverlayOpacity.migrate(t),t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateTypographyGradientColor.migrate("title%s")(t),t=u.deprecateTypographyGradientColor.migrate("category%s")(t),t=u.deprecateTypographyGradientColor.migrate("excerpt%s")(t),t=u.deprecateTypographyGradientColor.migrate("meta%s")(t),t=u.deprecateTypographyGradientColor.migrate("readmore%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t=u.deprecateShadowColor.migrate("image%s")(t),t}},{attributes:F("3.11.9"),save:(0,T.withVersion)("3.11.9")(U),isEligible:e=>{const t=u.deprecateContainerBackgroundColorOpacity.isEligible(e),o=u.deprecateBlockBackgroundColorOpacity.isEligible(e),a=u.deprecationImageOverlayOpacity.isEligible(e),n=u.deprecateTypographyGradientColor.isEligible("title%s")(e),l=u.deprecateTypographyGradientColor.isEligible("category%s")(e),i=u.deprecateTypographyGradientColor.isEligible("excerpt%s")(e),r=u.deprecateTypographyGradientColor.isEligible("meta%s")(e),s=u.deprecateTypographyGradientColor.isEligible("readmore%s")(e),c=e.version<2||void 0===e.version;return t||o||a||c||n||l||i||r||s},migrate:e=>{let t={...e,version:2};return(e.innerBlockContentWidth||e.innerBlockContentWidthTablet||e.innerBlockContentWidthMobile)&&(t={...t,innerBlockContentWidth:"",innerBlockContentWidthTablet:"",innerBlockContentWidthMobile:"",innerBlockContentWidthUnit:"px",innerBlockContentWidthUnitTablet:"",innerBlockContentWidthUnitMobile:"",blockWidth:e.innerBlockContentWidth,blockWidthTablet:e.innerBlockContentWidthTablet,blockWidthMobile:e.innerBlockContentWidthMobile,blockWidthUnit:e.innerBlockContentWidthUnit,blockWidthUnitTablet:e.innerBlockContentWidthUnitTablet,blockWidthUnitMobile:e.innerBlockContentWidthUnitMobile,innerBlockAlign:"",innerBlockAlignTablet:"",innerBlockAlignMobile:"",blockHorizontalAlign:e.innerBlockAlign,blockHorizontalAlignTablet:e.innerBlockAlignTablet,blockHorizontalAlignMobile:e.innerBlockAlignMobile}),t=u.deprecationImageOverlayOpacity.migrate(t),t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateTypographyGradientColor.migrate("title%s")(t),t=u.deprecateTypographyGradientColor.migrate("category%s")(t),t=u.deprecateTypographyGradientColor.migrate("excerpt%s")(t),t=u.deprecateTypographyGradientColor.migrate("meta%s")(t),t=u.deprecateTypographyGradientColor.migrate("readmore%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t=u.deprecateShadowColor.migrate("image%s")(t),t}},{attributes:F("3.7.9"),save:(0,T.withVersion)("3.7.9")(U),isEligible:e=>e.version<2||void 0===e.version,migrate:e=>{let t={...e,version:2};(e.innerBlockContentWidth||e.innerBlockContentWidthTablet||e.innerBlockContentWidthMobile)&&(t={...t,innerBlockContentWidth:"",innerBlockContentWidthTablet:"",innerBlockContentWidthMobile:"",innerBlockContentWidthUnit:"px",innerBlockContentWidthUnitTablet:"",innerBlockContentWidthUnitMobile:"",blockWidth:e.innerBlockContentWidth,blockWidthTablet:e.innerBlockContentWidthTablet,blockWidthMobile:e.innerBlockContentWidthMobile,blockWidthUnit:e.innerBlockContentWidthUnit,blockWidthUnitTablet:e.innerBlockContentWidthUnitTablet,blockWidthUnitMobile:e.innerBlockContentWidthUnitMobile,innerBlockAlign:"",innerBlockAlignTablet:"",innerBlockAlignMobile:"",blockHorizontalAlign:e.innerBlockAlign,blockHorizontalAlignTablet:e.innerBlockAlignTablet,blockHorizontalAlignMobile:e.innerBlockAlignMobile});const o=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&o&&(t={...t,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),t=u.deprecationImageOverlayOpacity.migrate(t),t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateTypographyGradientColor.migrate("title%s")(t),t=u.deprecateTypographyGradientColor.migrate("category%s")(t),t=u.deprecateTypographyGradientColor.migrate("excerpt%s")(t),t=u.deprecateTypographyGradientColor.migrate("meta%s")(t),t=u.deprecateTypographyGradientColor.migrate("readmore%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t=u.deprecateShadowColor.migrate("image%s")(t),t}},{attributes:F("3.7.9"),save:(0,T.withVersion)("3.7.9")(U)},{attributes:F("3.6.3"),save:(0,T.withVersion)("3.6.3")(U)},{attributes:F("3.0.2"),save:(0,T.withVersion)("3.0.2")(U)}],K=(0,H.createHigherOrderComponent)((e=>t=>{if("stackable/posts"===t.name){const{name:e,attributes:o}=t,a=(0,M.select)("core/blocks").getActiveBlockVariation(e,o);"default"===(null==a?void 0:a.name)&&-1===o.contentOrder.indexOf("featured-image")&&o.contentOrder.splice(1,0,"featured-image")}return(0,a.createElement)(e,t)}),"withFeaturedImageFix");(0,l.addFilter)("editor.BlockEdit","stackable/posts-block-featured-image-fix",K);var Y=o(6742);const Q={...q,icon:W.BlogPostsIcon,supports:{align:["center","wide","full"],anchor:!0,stkAlign:!0,spacing:!0},attributes:G,example:{attributes:{uniqueId:"feb3776",hasBackground:!1,hasBorders:!1,hasContainer:!1,imageShow:!0,imageSize:"full",imageWidth:100,imageShapeStretch:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},titleHasP:!1,titleShow:!0,titleTextTag:"h3",categoryHasP:!1,categoryShow:!0,excerptHasP:!1,excerptShow:!0,metaHasP:!1,metaShow:!0,readmoreHasP:!1,readmoreShow:!0,stkQueryId:1,contentOrder:["category","featured-image","title","meta","excerpt","readmore"],numberOfItems:1,order:"desc",orderBy:"date",type:"post",taxonomyType:"category",taxonomyFilterType:"__in",authorShow:!0,dateShow:!0,commentsShow:!0,imageHasLink:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",imageWidthUnit:"%",titleLineHeightUnit:"em",titleLineHeightUnitTablet:"em",titleLineHeightUnitMobile:"em",categoryLineHeightUnit:"em",categoryLineHeightUnitTablet:"em",categoryLineHeightUnitMobile:"em",excerptLineHeightUnit:"em",excerptLineHeightUnitTablet:"em",excerptLineHeightUnitMobile:"em",metaLineHeightUnit:"em",metaLineHeightUnitTablet:"em",metaLineHeightUnitMobile:"em",readmoreLineHeightUnit:"em",readmoreLineHeightUnitTablet:"em",readmoreLineHeightUnitMobile:"em"},innerBlocks:[]},deprecated:J,variations:d,edit:R,save:P,substitute:Y.default}},6742:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/posts",transform:e=>["core/query",{queryId:0,query:{perPage:10,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1,taxQuery:null,parents:[],format:[]},layout:{type:"default"}},[["core/post-template",{layout:{type:"grid",columnCount:e.columns}},[["core/post-featured-image",{aspectRatio:"1"}],["core/post-title",{}],["core/post-date",{}],["core/post-excerpt",{moreText:"Continue Reading"}]]]]]},n=a},504:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>x});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});l.Alignment.addStyles(r),l.BlockDiv.addStyles(r),l.Column.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r);const s=r;var c=o(910),d=o(4184),u=o.n(d),b=o(9783),m=o(3749),p=o(78),k=o(8003),g=o(3882);const h=[["stackable/text",{text:"$",htmlTag:"span",innerTextTag:"span"}],["stackable/text",{text:"99",htmlTag:"span",innerTextTag:"span",className:"stk-block-price__price"}],["stackable/text",{text:".00",htmlTag:"span",innerTextTag:"span"}]],v=(0,n.memo)((()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-price"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),C=(0,m.compose)(b.withBlockWrapperIsHovered,b.withQueryLoopContext,b.withBlockAttributeContext)((e=>{const{className:t,attributes:o}=e,a=(0,l.getRowClasses)(o),r=(0,l.getAlignmentClasses)(o),d=u()([t,"stk-block-price",a,r]),b=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(v,null),b&&(0,n.createElement)("style",{key:"block-css"},b),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-price"}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:d},(0,n.createElement)(p.InnerBlocks,{template:h,templateLock:"all"})),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))}));(0,g.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/price",((e,t)=>"stackable/price"!==(null==t?void 0:t.name)&&e)),(0,g.addFilter)("stackable.text.edit.enable-column","stackable/price",((e,t)=>"stackable/price"!==(null==t?void 0:t.name)&&e)),(0,g.addFilter)("stackable.text.edit.placeholder","stackable/price",((e,t)=>{let{parentBlock:o,isFirstBlock:a,isLastBlock:n}=t;return"stackable/price"!==(null==o?void 0:o.name)?e:a?"$":n?".00":"100"}));const y=e=>{const{attributes:t,className:o}=e,a=(0,l.getAlignmentClasses)(t),i=(0,l.getResponsiveClasses)(t),r=u()([o,"stk-block-price",i,a]);return(0,n.createElement)(l.BlockDiv.Content,{className:r,attributes:t,"data-video":t.videoLink,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,n.createElement)(p.InnerBlocks.Content,null))},f=(0,m.compose)((0,b.withVersion)(c.version))(y);var B=o(7545);const S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new B.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.MarginBottom.addAttributes(t),l.Row.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.Alignment.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),t.getMerged(e)},_=S(c.version),A=JSON.parse('{"apiVersion":3,"name":"stackable/price","title":"Price","description":"Show a price of a product or service with currency and a suffix styled with different weights","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Currency","Pricing","Number"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/price-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/text"]}'),w={attributes:{uniqueId:"1060b1d",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",contentAlign:"center"},innerBlocks:[{name:"stackable/text",attributes:{uniqueId:"12d466a",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},htmlTag:"span",hasP:!1,show:!0,showText:!0,text:(0,k.__)("$",c.i18n),innerTextTag:"span",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"78527e2",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},htmlTag:"span",hasP:!1,show:!0,showText:!0,text:(0,k.__)("99",c.i18n),innerTextTag:"span",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"stk-block-price__price"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"116b754",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},htmlTag:"span",hasP:!1,show:!0,showText:!0,text:(0,k.__)(".00",c.i18n),innerTextTag:"span",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},E=[{attributes:S("3.12.11"),save:(0,b.withVersion)("3.12.11")(y),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:S("3.11.9"),save:(0,b.withVersion)("3.11.9")(y),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:S("3.7.9"),save:(0,b.withVersion)("3.7.9")(y),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var T=o(2664);const x={...A,icon:a.PricingBoxIcon,attributes:_,supports:{anchor:!0,spacing:!0},example:w,deprecated:E,edit:C,save:f,substitute:T.default}},2664:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/price",transform:(e,t)=>{let o="";for(const e of t)o+=e[1].text;return["core/paragraph",{fontSize:"x-large",align:e.contentAlign,content:o}]}},n=a},2245:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),n=o(910),l=o(8003),i=o(3882),r=o(7462),s=o(2610);o(7294);const c=(0,i.applyFilters)("stackable.pricing-box.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Default",n.i18n)),attributes:{className:"is-style-basic"},isDefault:!0,pickerTitle:(0,l.__)("Default",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 12h22v23H13V12zm-2 0a2 2 0 012-2h22a2 2 0 012 2v23a2 2 0 01-2 2H13a2 2 0 01-2-2V12zm18 5H19v2h10v-2zM19 29h10v3H19v-3zm13-6H16v2h16v-2z"}))},isActive:["className"],innerBlocks:[["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h3"}],["stackable/price",{}],["stackable/subtitle",{text:(0,l._x)("Subtitle for This Block","Subtitle placeholder",n.i18n)}],["stackable/icon-list",{text:(0,l.sprintf)("<li>%s</li><li>%s</li><li>%s</li>",...[(0,l.__)("one",n.i18n),(0,l.__)("two",n.i18n),(0,l.__)("three",n.i18n)].map((e=>(0,l.sprintf)((0,l.__)("Package inclusion %s",n.i18n),e))))}],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n)}]]]],scope:["block"]},{name:"compact",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Compact",n.i18n)),attributes:{className:"is-style-compact"},pickerTitle:(0,l.__)("Compact",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41 13H7v22h34V13zM7 11a2 2 0 00-2 2v22a2 2 0 002 2h34a2 2 0 002-2V13a2 2 0 00-2-2H7zm19 6h10v2H26v-2zm10 6H26v2h10v-2zm-25 6h25v2H11v-2zm11-12H11v8h11v-8z"}))},isActive:["className"],innerBlocks:[["stackable/columns",{},[["stackable/column",{},[["stackable/image",{}]]],["stackable/column",{contentAlign:"left",columnAlign:"center"},[["stackable/heading",{text:(0,l._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h3"}],["stackable/price",{}],["stackable/subtitle",{text:(0,l._x)("Subtitle for This Block","Subtitle placeholder",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l._x)("Button","Button placeholder",n.i18n)}]]]]]]],["stackable/icon-list",{text:(0,l.sprintf)("<li>%s</li><li>%s</li><li>%s</li>",...[(0,l.__)("one",n.i18n),(0,l.__)("two",n.i18n),(0,l.__)("three",n.i18n)].map((e=>(0,l.sprintf)((0,l.__)("Package inclusion %s",n.i18n),e))))}]],scope:["block"]},{name:"banner",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Banner Layout",n.i18n)),attributes:{className:"is-style-banner"},pickerTitle:(0,l.__)("Banner",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35 37V15H13v22h22zM13 9a2 2 0 00-2 2v26a2 2 0 002 2h22a2 2 0 002-2V11a2 2 0 00-2-2H13zm6 10h10v2H19v-2zm10 12H19v3h10v-3zm-13-6h16v2H16v-2z"}))},isActive:["className"],isPremium:!n.isPro,scope:["block"]},{name:"colored",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Colored Layout",n.i18n)),attributes:{className:"is-style-colored"},pickerTitle:(0,l.__)("Colored",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35 37V27H13v10h22zM13 9a2 2 0 00-2 2v26a2 2 0 002 2h22a2 2 0 002-2V11a2 2 0 00-2-2H13zm6 22h10v2H19v-2zm13-10H16v2h16v-2zm-16-6h16v2H16v-2z"}))},isActive:["className"],isPremium:!n.isPro,scope:["block"]},{name:"sectioned",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",n.i18n),(0,l.__)("Sectioned Layout",n.i18n)),attributes:{className:"is-style-sectioned"},pickerTitle:(0,l.__)("Sectioned",n.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,s.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 37V16h22v21H13zm-2-27a2 2 0 012-2h22a2 2 0 012 2v27a2 2 0 01-2 2H13a2 2 0 01-2-2V10zm8 1h10v2H19v-2zm-3 8h16v8H16v-8zm16 12H16v2h16v-2z"}))},isActive:["className"],isPremium:!n.isPro,scope:["block"]}]);var d=o(9384),u=o(7200);const b=new u.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});d.Alignment.addStyles(b),d.BlockDiv.addStyles(b),d.Advanced.addStyles(b),d.Transform.addStyles(b),d.EffectsAnimations.addStyles(b),d.ContainerDiv.addStyles(b),d.MarginBottom.addStyles(b);const m=b;var p=o(1991),k=o.n(p),g=o(8085),h=o(9783),v=o(3749),C=o(78),y=o(3284);const f=c[0].innerBlocks,B=(0,s.memo)((()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(u.InspectorTabs,null),(0,s.createElement)(d.ContentAlign.InspectorControls,null),(0,s.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,s.createElement)(d.BlockDiv.InspectorControls,null),(0,s.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,s.createElement)(d.BlockLink.InspectorControls,null),(0,s.createElement)(d.Advanced.InspectorControls,null),(0,s.createElement)(d.Transform.InspectorControls,null),(0,s.createElement)(d.EffectsAnimations.InspectorControls,null),(0,s.createElement)(d.CustomAttributes.InspectorControls,null),(0,s.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-pricing-box"}),(0,s.createElement)(d.Responsive.InspectorControls,null),(0,s.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,s.createElement)(u.InspectorStyleControls,null,(0,s.createElement)(u.InspectorBottomTip,null))))),S=(0,v.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext)((e=>{var t;const{className:o}=e,{hasInnerBlocks:a,innerBlocks:l}=(0,y.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),i=(0,d.getAlignmentClasses)(e.attributes),r=k()([o,"stk-block-pricing-box"]),c=k()(["stk-block-content","stk-inner-blocks",i,`stk-${e.attributes.uniqueId}-container`,`stk-${e.attributes.uniqueId}-inner-blocks`,"stk-block-pricing-box__content"],(0,d.getContentAlignmentClasses)(e.attributes)),b=null===(t=(0,g.last)(l))||void 0===t?void 0:t.name,p=a?["stackable/text","core/paragraph"].includes(b)?()=>(0,s.createElement)(s.Fragment,null):C.InnerBlocks.DefaultBlockAppender:C.InnerBlocks.ButtonBlockAppender,h=(0,u.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:n.version});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(B,null),h&&(0,s.createElement)("style",{key:"block-css"},h),(0,s.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-pricing-box"}),(0,s.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:r,enableVariationPicker:!0},(0,s.createElement)(d.ContainerDiv,{className:c},(0,s.createElement)(u.ColumnInnerBlocks,{template:f,templateLock:!1,renderAppender:p}))),e.isHovered&&a&&(0,s.createElement)(d.MarginBottom,null))})),_=e=>{const{attributes:t}=e,o=(0,d.getAlignmentClasses)(e.attributes),a=(0,d.getResponsiveClasses)(e.attributes),n=k()([e.className,"stk-block-pricing-box",a]),l=k()(["stk-block-pricing-box__content"],(0,d.getContentAlignmentClasses)(t)),r=k()((0,i.applyFilters)("stackable.pricing-box.save.innerClassNames",["stk-block-content","stk-inner-blocks",o,`stk-${t.uniqueId}-inner-blocks`],e));return(0,s.createElement)(d.BlockDiv.Content,{className:n,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,s.createElement)("style",null,t.generatedCss),(0,s.createElement)(d.CustomCSS.Content,{attributes:t}),(0,s.createElement)(d.ContainerDiv.Content,{className:l,attributes:t},(0,s.createElement)("div",{className:r},(0,s.createElement)(C.InnerBlocks.Content,null)),(0,s.createElement)(d.BlockLink.Content,{attributes:t})))},A=(0,v.compose)((0,h.withVersion)(n.version))(_);var w=o(7545);const E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.version;const t=new w.AttributeObject;return d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.MarginBottom.addAttributes(t),d.ContainerDiv.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.BlockLink.addAttributes(t),d.ContentAlign.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{hasContainer:!0,contentAlign:"center"},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},T=E(n.version),x=JSON.parse('{"apiVersion":3,"name":"stackable/pricing-box","title":"Pricing Box","description":"Display the different pricing tiers of your business.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Currency","Price","Pricing Table"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/pricing-table-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/price","stackable/text","stackable/icon-list"],"stk-substitution-blocks":["stackable/heading","stackable/subtitle","stackable/button-group","stackable/button"]}'),I={attributes:{uniqueId:"093422b",hasBackground:!1,hasBorders:!1,hasContainer:!0,contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],displayCondition:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",className:"is-style-basic"},innerBlocks:[{name:"stackable/heading",attributes:{uniqueId:"5012c51",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,l.__)("Title",n.i18n),textTag:"h3",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/price",attributes:{uniqueId:"9de41dd",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/text",attributes:{uniqueId:"8268936",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},htmlTag:"span",hasP:!1,show:!0,showText:!0,text:(0,l.__)("$",n.i18n),innerTextTag:"span",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"e63a742",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},htmlTag:"span",hasP:!1,show:!0,showText:!0,text:(0,l.__)("99",n.i18n),innerTextTag:"span",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"stk-block-price__price"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"cb8d508",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},htmlTag:"span",hasP:!1,show:!0,showText:!0,text:(0,l.__)(".00",n.i18n),innerTextTag:"span",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},{name:"stackable/subtitle",attributes:{uniqueId:"f466288",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,l.__)("Subtitle for This Block",n.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/icon-list",attributes:{uniqueId:"438b4fe",hasBackground:!1,hasBorders:!1,customAttributes:[],effectAnimationOut:{},effectAnimationIn:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<li>${(0,l.__)("Package inclusion one",n.i18n)}</li><li>${(0,l.__)("Package inclusion two",n.i18n)}</li><li>${(0,l.__)("Package inclusion three",n.i18n)}</li>`,ordered:!1,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 190 190"><polygon points="173.8,28.4 60.4,141.8 15.7,97.2 5.1,107.8 60.4,163 184.4,39 173.8,28.4"/></svg>',icons:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",contentAlign:"center"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"7fdb95b",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/button",attributes:{uniqueId:"fe3d631",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,showBackgroundShape:!1,hasP:!1,show:!0,showText:!0,text:(0,l.__)("Button",n.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var z=o(4247),M=o.n(z);(0,i.addFilter)("stackable.pricing-box.save.innerClassNames","stackable/3.8.0",((e,t)=>(M()(t.version,"3.8.0")>=0||e.push({[`stk-${t.attributes.uniqueId}-inner-blocks`]:!1,"stk--block-horizontal-flex":!1,[`stk--block-orientation-${t.attributes.innerBlockOrientation}`]:t.attributes.innerBlockOrientation}),e)));const H=[{attributes:E("3.12.11"),save:(0,h.withVersion)("3.12.11")(_),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a}},{attributes:E("3.11.9"),save:(0,h.withVersion)("3.11.9")(_),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a}},{attributes:E("3.7.9"),save:(0,h.withVersion)("3.7.9")(_),isEligible:e=>e.version<2||void 0===e.version,migrate:(e,t)=>{let o={...e,version:2};e.containerVerticalAlign&&(o={...o,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const a=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&a&&(o={...o,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),o={...o,innerBlockColumnGap:0}),o=d.deprecateContainerBackgroundColorOpacity.migrate(o),o=d.deprecateBlockBackgroundColorOpacity.migrate(o),o=d.deprecateBlockShadowColor.migrate(o),o=d.deprecateContainerShadowColor.migrate(o),[o,t]}}],N={...x,icon:a.PricingBoxIcon,attributes:T,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:I,variations:c,deprecated:H,edit:S,save:A}},7712:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/pricing-box",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t]]]},n=a},7214:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>w});var a=o(7462),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});l.Alignment.addStyles(r),l.BlockDiv.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r),l.ProgressBar.addStyles(r),l.Typography.addStyles(r,{selector:".stk-progress-bar__inner-text",hoverSelector:".stk-progress-bar__inner-text:hover"});const s=r;var c=o(7545),d=o(910);const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new c.AttributeObject;return l.BlockDiv.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.MarginBottom.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.Style.addAttributes(t),l.ProgressBar.addAttributes(t),l.Typography.addAttributes(t,".stk-progress-bar__inner-text",{hasTextTag:!1,hasColor:!1,defaultText:"Design"}),t.getMerged(e)},b=u(d.version);var m=o(9783),p=o(4184),k=o.n(p),g=o(3749),h=o(8003);const v=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.ProgressBar.InspectorControls,null),(0,n.createElement)(l.Typography.InspectorControls,(0,a.Z)({},e,{initialOpen:!1,hasTextTag:!1,hasTextContent:!1,hasTextShadow:!0,hasToggle:!0,label:(0,h.__)("Label",d.i18n)})),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-progress-bar"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),C=(0,g.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{className:t,attributes:o}=e,a=(0,l.getAlignmentClasses)(o),r=(0,l.getTypographyClasses)(o),c=k()([t,"stk-block-progress-bar"]),u=k()(["stk-block-progress-bar__container",a]),b=k()(["stk-progress-bar__inner-text",r]),m=k()("stk-progress-bar__bar",{"stk--has-background-overlay":"gradient"===o.progressColorType&&o.progressColor2}),p=o.progressValue||"",g=parseFloat((0,i.useDynamicContent)(p).replace(/,/g,"")),h=isNaN(g)?50:g,C=`${o.progressValuePrefix}${h}${o.progressValueSuffix}`.trim(),y=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:d.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(v,{blockState:e.blockState}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c},y&&(0,n.createElement)("style",{key:"block-css"},y),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-progress-bar"}),(0,n.createElement)("div",{className:u},(0,n.createElement)("div",{className:"stk-progress-bar stk-animate"},(0,n.createElement)("div",{className:m},o.showText&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(l.Typography,{tagName:"span",className:k()([b,"stk-progress-bar__text"]),value:o.text}),(0,n.createElement)(l.Typography,{tagName:"span",className:k()([b,"stk-progress-bar__progress-value-text"]),value:C,editable:!1}))))),(0,n.createElement)("style",null,`.editor-styles-wrapper .stk-${e.attributes.uniqueId} .stk-progress-bar { --progress-value:${C}% !important; }`)),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))}));var y=o(3726),f=o.n(y);const B=e=>{var t;const{className:o,attributes:a}=e,i=(0,l.getResponsiveClasses)(a),r=(0,l.getAlignmentClasses)(a),s=(0,l.getTypographyClasses)(a),c=k()([o,"stk-block-progress-bar",i]),d=k()(["stk-block-progress-bar__container",r]),u=k()(["stk-progress-bar__inner-text",s]),b=k()(["stk-progress-bar",{"stk--with-animation":a.progressAnimate}]),m=k()("stk-progress-bar__bar",{"stk--has-background-overlay":"gradient"===a.progressColorType&&a.progressColor2});let p=a.progressValue;""===a.progressValue?p=50:null!==(t=a.progressValue)&&void 0!==t&&t.match(/^[\d.]+$/)&&(p=parseFloat(p));const g=`${a.progressValuePrefix}${p}${a.progressValueSuffix}`.trim(),h=a.showText?a.progressAriaValueText||a.text:void 0;return(0,n.createElement)(l.BlockDiv.Content,{className:c,attributes:a,version:e.version},a.generatedCss&&(0,n.createElement)("style",null,a.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:a}),(0,n.createElement)("div",{className:d},(0,n.createElement)("div",{className:b,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":p,"aria-valuetext":h?f()(h):void 0},(0,n.createElement)("div",{className:m},a.showText&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(l.Typography.Content,{tagName:"span",className:k()([u,"stk-progress-bar__text"]),value:a.text}),(0,n.createElement)(l.Typography.Content,{tagName:"span",className:k()([u,"stk-progress-bar__progress-value-text"]),value:g}))))))},S=(0,g.compose)((0,m.withVersion)(d.version))(B),_=JSON.parse('{"apiVersion":3,"name":"stackable/progress-bar","title":"Progress Bar","description":"Visualize a progress value or percentage in a bar.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["percentage status"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/progress-bar-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),A=[{attributes:u("3.12.11"),save:(0,m.withVersion)("3.12.11")(B),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e),a=l.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateTypographyGradientColor.migrate("%s")(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:u("3.11.9"),save:(0,m.withVersion)("3.11.9")(B),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e),a=l.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateTypographyGradientColor.migrate("%s")(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:u("3.7.9"),save:(0,m.withVersion)("3.7.9")(B),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateTypographyGradientColor.migrate("%s")(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateTypographyShadowColor.migrate("%s")(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}],w={..._,icon:o(9467).ProgressBarIcon,attributes:b,example:{attributes:{uniqueId:"123bd21"},innerBlocks:[]},edit:C,save:S,deprecated:A,supports:{anchor:!0,align:["center","wide","full"],spacing:!0}}},801:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/progress-bar",transform:e=>["core/paragraph",{content:(null==e?void 0:e.progressValue)||"50",fontSize:"x-large"}]},n=a},3761:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>w});var a=o(7462),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});l.Alignment.addStyles(r),l.BlockDiv.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r),l.ProgressBar.addStyles(r,{isCircle:!0}),l.Typography.addStyles(r,{selector:".stk-progress-circle__inner-text",hoverSelector:".stk-progress-circle__inner-text:hover"});const s=r;var c=o(7545),d=o(910);const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new c.AttributeObject;return l.BlockDiv.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.MarginBottom.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.Style.addAttributes(t),l.ProgressBar.addAttributes(t,!0),l.Typography.addAttributes(t),t.getMerged(e)},b=u(d.version);var m=o(9783),p=o(4184),k=o.n(p),g=o(3749),h=o(8003);const v=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.Alignment.InspectorControls,null),(0,n.createElement)(l.ProgressBar.InspectorControls,{isCircle:!0}),(0,n.createElement)(l.Typography.InspectorControls,(0,a.Z)({},e,{initialOpen:!1,hasTextTag:!1,hasTextContent:!1,hasTextShadow:!0,hasToggle:!0,label:(0,h.__)("Label",d.i18n)})),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-progress-circle"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),C=(0,g.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{className:t,attributes:o}=e,a=(0,l.getAlignmentClasses)(o),r=(0,l.getTypographyClasses)(o),c=k()([t,"stk-block-progress-circle"]),u=k()(["stk-block-progress-circle__container",a]),b=k()(["stk-progress-circle__inner-text",r]),m=o.progressValue||"",p=parseFloat((0,i.useDynamicContent)(m).replace(/,/g,"")),g=isNaN(p)?50:p,h=`${o.progressValuePrefix}${g}${o.progressValueSuffix}`.trim(),C=((o.progressColor1||"")+(o.progressColor2||"")+(o.progressColorGradientDirection||"")).replace(/[^0-9A-Z]+/gi,""),y=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:d.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(v,{blockState:e.blockState}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c},y&&(0,n.createElement)("style",{key:"block-css"},y),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-progress-circle"}),(0,n.createElement)("div",{className:u},(0,n.createElement)("div",{className:"stk-progress-circle stk-animate"},(0,n.createElement)("svg",null,"gradient"===o.progressColorType&&(0,n.createElement)("defs",null,(0,n.createElement)("linearGradient",{id:`gradient-${C}`,gradientTransform:o.progressColorGradientDirection?`rotate(${o.progressColorGradientDirection})`:void 0},(0,n.createElement)("stop",{offset:"0%",stopColor:o.progressColor1}),(0,n.createElement)("stop",{offset:"100%",stopColor:o.progressColor2}))),(0,n.createElement)("circle",{className:"stk-progress-circle__background"}),(0,n.createElement)("circle",{className:"stk-progress-circle__bar"})),o.showText&&(0,n.createElement)("div",{className:"stk-number"},(0,n.createElement)(l.Typography,{tagName:"span",className:b,value:h,editable:!1})))),(0,n.createElement)("style",null,`.editor-styles-wrapper .stk-${e.attributes.uniqueId} .stk-progress-circle { --progress-value:${h} }`)),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))}));var y=o(3726),f=o.n(y);const B=e=>{var t;const{className:o,attributes:a}=e,i=(0,l.getResponsiveClasses)(a),r=(0,l.getAlignmentClasses)(a),s=(0,l.getTypographyClasses)(a),c=k()([o,"stk-block-progress-circle",i]),d=k()([o,"stk-block-progress-circle__container",r]),u=k()(["stk-progress-circle__inner-text",s]),b=k()(["stk-progress-circle",{"stk--with-animation":a.progressAnimate}]);let m=a.progressValue;""===a.progressValue?m=50:null!==(t=a.progressValue)&&void 0!==t&&t.match(/^[\d.]+$/)&&(m=parseFloat(m));const p=`${a.progressValuePrefix}${m}${a.progressValueSuffix}`.trim();return(0,n.createElement)(l.BlockDiv.Content,{className:c,attributes:a,version:e.version},a.generatedCss&&(0,n.createElement)("style",null,a.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:a}),(0,n.createElement)("div",{className:d},(0,n.createElement)("div",{className:b,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":m,"aria-valuetext":a.progressAriaValueText?f()(a.progressAriaValueText):void 0},(0,n.createElement)("svg",null,"gradient"===a.progressColorType&&(0,n.createElement)("defs",null,(0,n.createElement)("linearGradient",{id:`gradient-${a.uniqueId}`,gradientTransform:a.progressColorGradientDirection?`rotate(${a.progressColorGradientDirection})`:void 0},(0,n.createElement)("stop",{offset:"0%",stopColor:a.progressColor1}),(0,n.createElement)("stop",{offset:"100%",stopColor:a.progressColor2}))),(0,n.createElement)("circle",{className:"stk-progress-circle__background"}),(0,n.createElement)("circle",{className:"stk-progress-circle__bar"})),a.showText&&(0,n.createElement)("div",{className:"stk-number"},(0,n.createElement)(l.Typography.Content,{tagName:"span",className:u,value:p})))))},S=(0,g.compose)((0,m.withVersion)(d.version))(B),_=JSON.parse('{"apiVersion":3,"name":"stackable/progress-circle","title":"Progress Circle","description":"Visualize a progress value or percentage in a circle.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["percentage status"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/progress-circle-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),A=[{attributes:u("3.12.11"),save:(0,m.withVersion)("3.12.11")(B),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e),a=l.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateTypographyGradientColor.migrate("%s")(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:u("3.11.9"),save:(0,m.withVersion)("3.11.9")(B),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e),a=l.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateTypographyGradientColor.migrate("%s")(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:u("3.7.9"),save:(0,m.withVersion)("3.7.9")(B),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateTypographyGradientColor.migrate("%s")(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t=l.deprecateTypographyShadowColor.migrate("%s")(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}],w={..._,icon:o(9467).ProgressCircleIcon,attributes:b,example:{attributes:{uniqueId:"123bd21"},innerBlocks:[]},edit:C,save:S,deprecated:A,supports:{anchor:!0,align:["center","wide","full"],spacing:!0}}},6040:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/progress-circle",transform:e=>["core/paragraph",{content:(null==e?void 0:e.progressValue)||"50",fontSize:"x-large"}]},n=a},7660:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>_});var a=o(2610),n=o(4184),l=o.n(n),i=o(9783),r=o(910),s=o(9384),c=o(7200),d=o(3882);const u=e=>{const{className:t,attributes:o}=e,{separatorDesign:n,separatorInverted:i}=o,r=(0,s.getResponsiveClasses)(e.attributes),u=l()([t,"stk-block-separator",r,"stk--no-padding"]),b=l()(["stk-block-separator__inner"]);return(0,a.createElement)(s.BlockDiv.Content,{className:u,attributes:o,version:e.version},o.generatedCss&&(0,a.createElement)("style",null,o.generatedCss),(0,a.createElement)(s.CustomCSS.Content,{attributes:o}),(0,a.createElement)("div",{className:b},(0,a.createElement)(c.Separator2.Content,{design:n,inverted:i}),(0,d.applyFilters)("stackable.block.separator.save.output.layers",null,e)))},b=(0,i.withVersion)(r.version)(u),m=new c.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.BlockDiv.addStyles(m),s.Advanced.addStyles(m),s.EffectsAnimations.addStyles(m),s.Transform.addStyles(m),(0,s.addSeparatorStyles)(m,{selector:"",enableFlipVertically:!0,isInitiallyFlippedVertically:!1,wrapperSelector:".stk-block-separator__inner",location:""}),(0,d.doAction)("stackable.block-component.separator.layer-styles.addStyles",m,{selector:"",enableFlipVertically:!0,isInitiallyFlippedVertically:!1,wrapperSelector:".stk-block-separator__inner",location:""});const p=m;var k=o(3749),g=o(8003);const h=(0,a.memo)((e=>{const t=(0,a.useMemo)((()=>(0,d.applyFilters)("stackable.block.separator.edit.after",null)),[]);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.InspectorTabs,{hasLayoutPanel:!1}),(0,a.createElement)(c.InspectorStyleControls,null,(0,a.createElement)(c.PanelAdvancedSettings,{title:(0,g.__)("General",r.i18n),id:"general",initialOpen:!0},(0,a.createElement)(c.AdvancedRangeControl,{label:(0,g.__)("Height",r.i18n),min:30,sliderMax:400,placeholder:"",attribute:"separatorHeight",responsive:"all"}),(0,a.createElement)(c.AdvancedToggleControl,{label:(0,g.__)("Flip Horizontally",r.i18n),attribute:"separatorFlipHorizontally"}),(0,a.createElement)(c.AdvancedToggleControl,{label:(0,g.__)("Flip Vertically",r.i18n),attribute:"separatorFlipVertically"})),(0,a.createElement)(c.PanelAdvancedSettings,{title:(0,g.__)("Separator",r.i18n),id:"separator"},(0,a.createElement)(s.Separator.InspectorControls.SeparatorControls,{hasFlipVertically:!0})),t&&(0,a.createElement)(t,e)),(0,a.createElement)(s.BlockDiv.InspectorControls,null),(0,a.createElement)(s.Advanced.InspectorControls,null),(0,a.createElement)(s.Transform.InspectorControls,null),(0,a.createElement)(s.EffectsAnimations.InspectorControls,null),(0,a.createElement)(s.CustomAttributes.InspectorControls,null),(0,a.createElement)(s.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-separator"}),(0,a.createElement)(s.Responsive.InspectorControls,null),(0,a.createElement)(s.ConditionalDisplay.InspectorControls,null))})),v=(0,k.compose)(i.withBlockWrapperIsHovered,i.withQueryLoopContext,i.withBlockAttributeContext)((e=>{const{className:t,attributes:o,setAttributes:n}=e,{separatorDesign:i,separatorInverted:u}=o,b={separatorLayer2Show:o.separatorLayer2Show,separatorLayer3Show:o.separatorLayer3Show},m=l()([t,"stk-block-separator","stk--no-padding"]),k=l()(["stk-block-separator__inner"]),g=(0,c.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:r.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(h,{attributes:b,setAttributes:n}),g&&(0,a.createElement)("style",{key:"block-css"},g),(0,a.createElement)(s.CustomCSS,{mainBlockClass:"stk-block-separator"}),(0,a.createElement)(s.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:m},(0,a.createElement)("div",{className:k},(0,a.createElement)(c.Separator2,{design:i,inverted:u}),(0,d.applyFilters)("stackable.block.separator.edit.output.layers",null,e))),e.isHovered&&(0,a.createElement)(s.MarginBottom,null))}));var C=o(7545);const y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.version;const t=new C.AttributeObject;return s.BlockDiv.addAttributes(t),s.Style.addAttributes(t),s.Advanced.addAttributes(t),s.EffectsAnimations.addAttributes(t),s.CustomAttributes.addAttributes(t),s.CustomCSS.addAttributes(t),s.Responsive.addAttributes(t),s.ConditionalDisplay.addAttributes(t),s.BlockLink.addAttributes(t),s.Transform.addAttributes(t),t.add({attributes:{align:{type:"string",default:"full"},...(0,s.createSeparatorAttributes)(),...(0,s.createSeparatorLayerAttributes)("%s",2),...(0,s.createSeparatorLayerAttributes)("%s",3)},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{separatorShow:!0},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},f=y(r.version),B=JSON.parse('{"apiVersion":3,"name":"stackable/separator","title":"Separator","description":"A fancy separator to be placed between content.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Svg Divider"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),S=[{attributes:y("3.12.11"),save:(0,i.withVersion)("3.12.11")(u),isEligible:e=>{const t=s.deprecateBlockShadowColor.isEligible(e),o=s.deprecateContainerShadowColor.isEligible(e),a=s.deprecateShadowColor.isEligible("separator%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=s.deprecateContainerBackgroundColorOpacity.migrate(t),t=s.deprecateBlockBackgroundColorOpacity.migrate(t),t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),t=s.deprecateShadowColor.migrate("separator%s")(t),t}},{attributes:y("3.11.9"),save:(0,i.withVersion)("3.11.9")(u),isEligible:e=>{const t=s.deprecateContainerBackgroundColorOpacity.isEligible(e),o=s.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=s.deprecateContainerBackgroundColorOpacity.migrate(t),t=s.deprecateBlockBackgroundColorOpacity.migrate(t),t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),t=s.deprecateShadowColor.migrate("separator%s")(t),t}},{attributes:y("3.7.9"),save:(0,i.withVersion)("3.7.9")(u),migrate:e=>{let t=s.deprecateContainerBackgroundColorOpacity.migrate(e);return t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),t=s.deprecateShadowColor.migrate("separator%s")(t),s.deprecateBlockBackgroundColorOpacity.migrate(t)}}],_={...B,icon:o(9467).SeparatorIcon,supports:{align:["full"],anchor:!0,spacing:!0},example:{attributes:{uniqueId:"067ed3b",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,align:"full",separatorShow:!0,separatorColor:"#6f6d9f",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},attributes:f,deprecated:S,edit:v,save:b}},9943:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/separator",transform:()=>["core/separator"]},n=a},918:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>T});var a=o(2610),n=o(9384),l=o(7200);const i=new l.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.addBlockStyles("height",[{selector:"",renderIn:"save",styleRule:"height",attrName:"height",key:"height",format:"%spx",responsive:"all"}]),n.BlockDiv.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i);const r=i;var s=o(4184),c=o.n(s),d=o(910),u=o(8333),b=o(7545),m=o(9783),p=o(7537),k=o(8003),g=o(3749);const h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return[Math.floor(e/t)*t,Math.ceil(e/t)*t]},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e&&void 0!==e},C=["style","advanced"],y=(0,a.memo)((e=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l.InspectorTabs,{tabs:C,hasLayoutPanel:!1}),(0,a.createElement)(l.InspectorStyleControls,null,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,k.__)("General",d.i18n),id:"general",initialOpen:!0},(0,a.createElement)(l.AdvancedRangeControl,{label:(0,k.__)("Height",d.i18n),responsive:"all",attribute:"height",sliderMin:"0",sliderMax:"500",placeholder:e.defaultMinHeight}))),(0,a.createElement)(n.BlockDiv.InspectorControls,{hasSizeSpacing:!1}),(0,a.createElement)(n.Advanced.InspectorControls,null),(0,a.createElement)(n.Transform.InspectorControls,null),(0,a.createElement)(n.EffectsAnimations.InspectorControls,null),(0,a.createElement)(n.CustomAttributes.InspectorControls,null),(0,a.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-spacer"}),(0,a.createElement)(n.Responsive.InspectorControls,null),(0,a.createElement)(n.ConditionalDisplay.InspectorControls,null)))),f=(0,g.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{var t,o,i,s;const{className:m,attributes:g,setAttributes:C,isHovered:f,isSelected:B}=e,S=(0,u.useDeviceType)(),_=c()([m,"stk-block-spacer","stk--no-padding"]),A=(0,b.getAttributeName)("height",S),w=g[A],E=(0,a.useMemo)((()=>"Tablet"===S?v(g[(0,b.getAttributeName)("height")])?g[(0,b.getAttributeName)("height")]:50:"Mobile"===S?v(g[(0,b.getAttributeName)("height","tablet")])?g[(0,b.getAttributeName)("height","tablet")]:v(g[(0,b.getAttributeName)("height")])?g[(0,b.getAttributeName)("height")]:50:50),[S]),[T,x]=(0,a.useState)(h(parseInt(void 0===w?E:g[A]))),I=(0,a.useRef)(),z=(0,l.useBlockCssGenerator)({attributes:e.attributes,blockStyles:r,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:d.version});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(y,{defaultMinHeight:E}),z&&(0,a.createElement)("style",{key:"block-css"},z),(0,a.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-spacer"}),(0,a.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:_},(0,a.createElement)(p.ResizableBox,{ref:I,showHandle:f||B,size:{height:""===w?E:w},minHeight:"0",enable:{bottom:!0},onResize:(e,t,o,a)=>{let n=w;""!==n&&void 0!==n||(n=E),x(h(parseInt(n)+a.height))},onResizeStop:(e,t,o,a)=>{let n=w;""!==n&&void 0!==n||(n=E),C({[A]:parseInt(n)+a.height})},snap:{y:T},snapGap:10},f&&(0,a.createElement)(l.ResizerTooltip,{label:(0,k.__)("Spacer",d.i18n),enableWidth:!1,height:null!==(t=I.current)&&void 0!==t&&null!==(o=t.state)&&void 0!==o&&o.isResizing?null===(i=I.current)||void 0===i||null===(s=i.state)||void 0===s?void 0:s.height:""===w||void 0===w?"":w,heightUnits:["px"],onChangeHeight:e=>{let{value:t}=e;C({[A]:t})},defaultHeight:"",heightPlaceholder:E}))))})),B=e=>{const{attributes:t,...o}=e,l=(0,n.getResponsiveClasses)(e.attributes),i=c()([o.className,"stk-block-spacer",l,"stk--no-padding"]);return(0,a.createElement)(n.BlockDiv.Content,{className:i,attributes:e.attributes,version:e.version},t.generatedCss&&(0,a.createElement)("style",null,t.generatedCss),(0,a.createElement)(n.CustomCSS.Content,{attributes:e.attributes}))},S=(0,g.compose)((0,m.withVersion)(d.version))(B),_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new b.AttributeObject;return n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.EffectsAnimations.addAttributes(t),n.CustomAttributes.addAttributes(t),n.CustomCSS.addAttributes(t),n.Responsive.addAttributes(t),n.ConditionalDisplay.addAttributes(t),n.Advanced.addAttributes(t),n.Transform.addAttributes(t),t.add({attributes:{height:{stkResponsive:!0,type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},A=_(d.version),w=JSON.parse('{"apiVersion":3,"name":"stackable/spacer","title":"Spacer","description":"Sometimes you just need some space.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}'),E=[{attributes:_("3.12.11"),save:(0,m.withVersion)("3.12.11")(B),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t}},{attributes:_("3.11.9"),save:(0,m.withVersion)("3.11.9")(B),isEligible:e=>{const t=n.deprecateContainerBackgroundColorOpacity.isEligible(e),o=n.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t}},{attributes:_("3.7.9"),save:(0,m.withVersion)("3.7.9")(B),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}],T={...w,icon:o(9467).SpacerIcon,attributes:A,supports:{anchor:!0,align:["center","wide","full"],stkSaveBlockStyle:!1,spacing:!0},example:{attributes:{uniqueId:"632d1d3",hasBackground:!0,hasBorders:!1,blockBackgroundColor:"#D1DFE4",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},height:200,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},deprecated:E,edit:f,save:S}},4067:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/spacer",transform:e=>{var t;return["core/spacer",{height:`${null!==(t=null==e?void 0:e.height)&&void 0!==t?t:50}px`}]}},n=a},4073:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>z});var a=o(9467),n=o(378);const l={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{content:t}=e;return(0,n.createBlock)("stackable/subtitle",{text:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{content:t}=e;return(0,n.createBlock)("stackable/subtitle",{text:t})}))}],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{text:t}=e;return(0,n.createBlock)("core/paragraph",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{text:t}=e;return(0,n.createBlock)("core/heading",{content:t})}))}]},i=l;var r=o(7462),s=o(2610),c=o(9384),d=o(7200);const u=new d.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});c.Alignment.addStyles(u),c.BlockDiv.addStyles(u),c.Advanced.addStyles(u),c.Transform.addStyles(u),c.Typography.addStyles(u,{selector:".stk-block-subtitle__text",hoverSelector:".stk-block-subtitle__text:hover"}),c.EffectsAnimations.addStyles(u);const b=u;var m=o(910),p=o(4184),k=o.n(p),g=o(9783),h=o(7545),v=o(3749),C=o(3882),y=o(8003);(0,C.addFilter)("editor.Autocomplete.completers","stackable/subtitle",((e,t)=>"stackable/subtitle"===t?[...e,(0,h.createBlockCompleter)()]:e));const f=(0,s.memo)((e=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)(d.InspectorTabs,null),(0,s.createElement)(c.Typography.InspectorControls,(0,r.Z)({},e,{hasTextTag:!1,isMultiline:!1,initialOpen:!0,hasTextShadow:!0})),(0,s.createElement)(c.Alignment.InspectorControls,{labelContentAlign:(0,y.sprintf)((0,y.__)("%s Alignment",m.i18n),(0,y.__)("Text",m.i18n))}),(0,s.createElement)(c.BlockDiv.InspectorControls,null),(0,s.createElement)(c.Advanced.InspectorControls,null),(0,s.createElement)(c.Transform.InspectorControls,null),(0,s.createElement)(c.EffectsAnimations.InspectorControls,null),(0,s.createElement)(c.CustomAttributes.InspectorControls,null),(0,s.createElement)(c.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-subtitle"}),(0,s.createElement)(c.Responsive.InspectorControls,null),(0,s.createElement)(c.ConditionalDisplay.InspectorControls,null)))),B=(0,v.compose)(g.withBlockWrapperIsHovered,g.withQueryLoopContext,g.withBlockAttributeContext)((e=>{const{className:t,onReplace:o,onRemove:a,mergeBlocks:n}=e,l=(0,c.getTypographyClasses)(e.attributes),i=(0,c.getAlignmentClasses)(e.attributes),r=k()([t,"stk-block-subtitle"]),u=k()(["stk-block-subtitle__text","stk-subtitle",l,i]),p=(0,d.useBlockCssGenerator)({attributes:e.attributes,blockStyles:b,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:m.version});return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(f,{blockState:e.blockState}),p&&(0,s.createElement)("style",{key:"block-css"},p),(0,s.createElement)(c.CustomCSS,{mainBlockClass:"stk-block-subtitle"}),(0,s.createElement)(c.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:r},(0,s.createElement)(c.Typography,{tagName:"p",className:u,placeholder:(0,y.__)("Type / to choose a block",m.i18n),onMerge:n,onRemove:a,onReplace:o})),e.isHovered&&(0,s.createElement)(c.MarginBottom,null))})),S=e=>{const{className:t,attributes:o}=e,a=(0,c.getResponsiveClasses)(e.attributes),n=(0,c.getTypographyClasses)(e.attributes),l=(0,c.getAlignmentClasses)(e.attributes),i=k()([t,"stk-block-subtitle",a]),r=k()(["stk-block-subtitle__text","stk-subtitle",n,l]);return(0,s.createElement)(c.BlockDiv.Content,{className:i,attributes:o,version:e.version},o.generatedCss&&(0,s.createElement)("style",null,o.generatedCss),(0,s.createElement)(c.CustomCSS.Content,{attributes:o}),(0,s.createElement)(c.Typography.Content,{attributes:o,className:r,tagName:"p"}))},_=(0,v.compose)((0,g.withVersion)(m.version))(S),A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.version;const t=new h.AttributeObject;return c.BlockDiv.addAttributes(t),c.Style.addAttributes(t),c.EffectsAnimations.addAttributes(t),c.CustomAttributes.addAttributes(t),c.CustomCSS.addAttributes(t),c.Responsive.addAttributes(t),c.ConditionalDisplay.addAttributes(t),c.Advanced.addAttributes(t),c.Transform.addAttributes(t),c.Alignment.addAttributes(t),c.MarginBottom.addAttributes(t),c.Typography.addAttributes(t,".stk-block-subtitle__text",{hasTextTag:!1}),t.getMerged(e)},w=A(m.version),E=JSON.parse('{"apiVersion":3,"name":"stackable/subtitle","title":"Subtitle","description":"Subtitle text that you can add custom styling to from the global settings.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/subtitle-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),T={attributes:{uniqueId:"f5d4aed",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<meta charset="utf-8">${(0,y.__)("Subtitle for this block.",m.i18n)}`,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},x=[{attributes:A("3.12.11"),save:(0,g.withVersion)("3.12.11")(S),isEligible:e=>{const t=c.deprecateBlockShadowColor.isEligible(e),o=c.deprecateContainerShadowColor.isEligible(e),a=c.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=c.deprecateContainerBackgroundColorOpacity.migrate(t),t=c.deprecateBlockBackgroundColorOpacity.migrate(t),t=c.deprecateTypographyGradientColor.migrate("%s")(t),t=c.deprecateBlockShadowColor.migrate(t),t=c.deprecateContainerShadowColor.migrate(t),t=c.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:A("3.11.9"),save:(0,g.withVersion)("3.11.9")(S),isEligible:e=>{const t=c.deprecateContainerBackgroundColorOpacity.isEligible(e),o=c.deprecateBlockBackgroundColorOpacity.isEligible(e),a=c.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=c.deprecateContainerBackgroundColorOpacity.migrate(t),t=c.deprecateBlockBackgroundColorOpacity.migrate(t),t=c.deprecateTypographyGradientColor.migrate("%s")(t),t=c.deprecateBlockShadowColor.migrate(t),t=c.deprecateContainerShadowColor.migrate(t),t=c.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:A("3.7.9"),save:(0,g.withVersion)("3.7.9")(S),migrate:e=>{let t=c.deprecateContainerBackgroundColorOpacity.migrate(e);return t=c.deprecateTypographyGradientColor.migrate("%s")(t),t=c.deprecateBlockShadowColor.migrate(t),t=c.deprecateContainerShadowColor.migrate(t),t=c.deprecateTypographyShadowColor.migrate("%s")(t),c.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var I=o(6029);const z={...E,icon:a.TextIcon,attributes:w,supports:{anchor:!0,spacing:!0,splitting:!0},example:T,deprecated:x,edit:B,save:_,transforms:i,merge:(e,t)=>({text:(e.text||"")+((t.hasOwnProperty("content")?t.content:t.text)||"")}),substitute:I.default}},6029:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/subtitle",transform:e=>["core/paragraph",{fontSize:"small",align:null==e?void 0:e.contentAlign,content:null==e?void 0:e.text}]},n=a},5867:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>x});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});l.Alignment.addStyles(r,{editorSelectorCallback:e=>`.stk--block-align-${e("uniqueId")} > .block-editor-inner-blocks > .block-editor-block-list__layout`}),l.BlockDiv.addStyles(r),l.MarginBottom.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r),l.Separator.addStyles(r);const s=r;var c=o(910),d=o(4184),u=o.n(d),b=o(9783),m=o(3749),p=(o(8003),o(9107)),k=o(3284);const g=["stackable/column"],h=[["stackable/column",{customAttributes:[["role","tabpanel"]]}],["stackable/column",{customAttributes:[["role","tabpanel"]]}],["stackable/column",{customAttributes:[["role","tabpanel"]]}]],v=(0,n.memo)((()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(l.Alignment.InspectorControls,{hasColumnJustify:!1,hasRowAlignment:!1}),(0,n.createElement)(l.BlockDiv.InspectorControls,{sizeControlLayoutProps:{hasContentVerticalAlign:!1}}),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-tab-content"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null)))),C=(0,m.compose)(b.withBlockWrapper,b.withQueryLoopContext,b.withBlockAttributeContext)((e=>{const{className:t,clientId:o,context:a}=e,[r,,d]=(0,p.VT)(),b=(0,l.getRowClasses)(e.attributes),m=(0,l.getSeparatorClasses)(e.attributes),C=(0,l.getAlignmentClasses)(e.attributes),[y,f]=i.ColumnInnerBlocks.useContext(),{innerBlocks:B,hasInnerBlocks:S}=(0,k.useSelect)((e=>{const t=e("core/block-editor").getBlock(o).innerBlocks;return{innerBlocks:t,hasInnerBlocks:t.length>0}}),[o]),_=u()([t,"stk-block-tab-content",b,m,f]),A=u()(["stk-inner-blocks",C,"stk-block-content"],(0,l.getContentAlignmentClasses)(e.attributes)),w=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(v,null),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:_},w&&(0,n.createElement)("style",{key:"block-css"},w),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-tab-content"}),(0,n.createElement)(l.Separator,null,(0,n.createElement)("div",{className:A,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},(0,n.createElement)(i.ColumnInnerBlocks,{providerValue:y,orientation:"horizontal",template:e.attributes.templateLock?void 0:h,allowedBlocks:g,renderAppender:!1,templateLock:!1}))),(0,n.createElement)("style",null,null==B?void 0:B.map(((e,t)=>{let{clientId:o}=e;return"immediate"!==a["stackable/tabPanelEffect"]?t!==r-1?`.stk-block-tabs [data-block="${o}"] {\n\t\t\t\t\t\t\t\t\t${a["stackable/equalTabHeight"]?"visibility: hidden":"display:none"};\n\t\t\t\t\t\t\t\t\topacity: 0;\n\t\t\t\t\t\t\t\t\tz-index: 1 !important;\n\t\t\t\t\t\t\t\t}`:`.stk-block-tabs [data-block="${o}"] {\n\t\t\t\t\t\t\t\topacity: 1;\n\t\t\t\t\t\t\t}`:t!==r-1?`.stk-block-tabs [data-block="${o}"] {\n\t\t\t\t\t\t\t\t\t${a["stackable/equalTabHeight"]?"visibility: hidden":"display:none"};\n\t\t\t\t\t\t\t\t\tz-index: 1 !important;\n\t\t\t\t\t\t\t\t}`:""})))))}));var y=o(78),f=o(3882);const B=e=>{const{attributes:t}=e,o=(0,l.getRowClasses)(e.attributes),a=(0,l.getSeparatorClasses)(e.attributes),i=(0,l.getAlignmentClasses)(e.attributes),r=(0,l.getResponsiveClasses)(e.attributes),s=u()([e.className,"stk-block-tab-content",r,a]),c=u()((0,f.applyFilters)("stackable.tab-content.save.contentClassNames",[[o,"stk-inner-blocks",i,"stk-block-content"],(0,l.getContentAlignmentClasses)(e.attributes)],e));return(0,n.createElement)(l.BlockDiv.Content,{className:s,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,n.createElement)(l.Separator.Content,{attributes:t},(0,n.createElement)("div",{className:c},(0,n.createElement)(y.InnerBlocks.Content,null))))},S=(0,m.compose)((0,b.withVersion)(c.version))(B);var _=o(7545);const A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new _.AttributeObject;return l.BlockDiv.addAttributes(t),l.Columns.addAttributes(t),l.Style.addAttributes(t),l.MarginBottom.addAttributes(t),l.Row.addAttributes(t),l.Alignment.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.Separator.addAttributes(t),l.ContentAlign.addAttributes(t),t.add({attributes:{templateLock:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},w=A(c.version),E=JSON.parse('{"apiVersion":3,"name":"stackable/tab-content","title":"Tab Content","description":"A wrapper for tab panels.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/tabPanelEffect","stackable/equalTabHeight"],"keywords":[],"parent":["stackable/tabs"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}'),T=[{attributes:A("3.12.11"),save:(0,b.withVersion)("3.12.11")(B),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:A("3.11.9"),save:(0,b.withVersion)("3.11.9")(B),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}}],x={...E,icon:a.TabsContentIcon,attributes:w,supports:{anchor:!0,stkColumnResize:!1,stkBlockLinking:!0,reusable:!1,stkSaveBlockStyle:!1},deprecated:T,edit:C,save:S}},177:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>L});var a=o(9467),n=o(7462),l=o(2610),i=o(9384),r=o(7200);const s=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.addBlockStyles("tabAlignment",[{selector:".stk-block-tab-labels__wrapper",styleRule:"justifyContent",attrName:"tabAlignment",key:"tabAlignment",responsive:"all"}]),s.addBlockStyles("fullWidth",[{selector:".stk-block-content.stk-block-tabs--horizontal .%s",styleRule:"--tabs-flex",attrName:"fullWidth",key:"fullWidth",valuePreCallback:e=>e?"1 1 auto":void 0}]),s.addBlockStyles("columnGap",[{selector:"",styleRule:"--tabs-column-gap",attrName:"columnGap",key:"columnGap",responsive:"all",format:"%spx"}]),s.addBlockStyles("rowGap",[{selector:"",styleRule:"--tabs-row-gap",attrName:"rowGap",key:"rowGap",responsive:"all",format:"%spx"}]),s.addBlockStyles("iconPosition",[{selector:".stk-block-tabs__tab",styleRule:"flex-direction",attrName:"iconPosition",key:"iconPosition",valueCallback:e=>"right"===e?"row-reverse":"top"===e?"column":"bottom"===e?"column-reverse":void 0}]),s.addBlockStyles("contentAlign",[{selector:".stk-block-tabs__tab",styleRuleCallback:e=>""===e("iconPosition")||"right"===e("iconPosition")?"justifyContent":"alignItems",attrName:"contentAlign",key:"iconAlignment-iconPosition",enabledCallback:e=>void 0!==e("fullWidth")||"top"===e("iconPosition")||"bottom"===e("iconPosition"),valueCallback:(e,t)=>{let o=e;return o=""===e||"left"===e?"flex-start":"center"===e?"center":"flex-end","right"===t("iconPosition")&&("flex-start"===o?o="flex-end":"flex-end"===o&&(o="flex-start")),o},responsive:"all",dependencies:["fullWidth","iconPosition"]}]),s.addBlockStyles("iconGap",[{selector:".stk-block-tabs__tab",styleRule:"gap",attrName:"iconGap",key:"iconGap",format:"%spx"}]),s.addBlockStyles("tabTextColor1",[{selector:".stk-block-tabs__tab",hoverSelector:".stk-block-tabs__tab:hover",styleRule:"color",attrName:"tabTextColor1",key:"tabTextColor",hover:"all"}]),s.addBlockStyles("activeTabTextColor",[{selector:".stk-block-tabs__tab.stk-block-tabs__tab--active .stk-block-tab-labels__text",hoverSelector:".stk-block-tabs__tab.stk-block-tabs__tab--active:hover .stk-block-tab-labels__text",styleRule:"color",attrName:"activeTabTextColor",key:"activeTabTextColor",hover:"all"}]),s.addBlockStyles("fixedIconPosition",[{enabledCallback:e=>""===e("iconPosition")||"right"===e("iconPosition"),selector:".stk-block-tab-labels__wrapper .stk-block-tab-labels__text",styleRule:"width",attrName:"fixedIconPosition",valueCallback:e=>e?"100%":void 0,key:"fixedIconPosition",responsive:"all",dependencies:["iconPosition"]}]),i.Alignment.addStyles(s),i.BlockDiv.addStyles(s),i.Advanced.addStyles(s),i.Transform.addStyles(s),i.Typography.addStyles(s,{selector:".stk-block-tab-labels__text",hoverSelector:".stk-block-tabs__tab:hover .stk-block-tab-labels__text",attrNameTemplate:"tab%s"}),i.Icon.addStyles(s,{selector:".stk-block-tabs__tab",hoverSelector:".stk-block-tabs__tab:hover",hasIconGap:!1}),i.EffectsAnimations.addStyles(s),i.Button.addStyles(s,{selector:".stk-block-tabs__tab",hoverSelector:".stk-block-tabs__tab:not(.stk-block-tabs__tab--active):hover",backgroundSelector:".stk-block-tabs__tab",borderSelector:".stk-block-tabs__tab",borderHoverSelector:".stk-block-tabs__tab:not(.stk-block-tabs__tab--active):hover",attrNameTemplate:"tab%s"}),i.Button.addStyles(s,{selector:".stk-block-tabs__tab.stk-block-tabs__tab--active",hoverSelector:".stk-block-tabs__tab.stk-block-tabs__tab--active:hover",backgroundSelector:".stk-block-tabs__tab.stk-block-tabs__tab--active",borderSelector:".stk-block-tabs__tab.stk-block-tabs__tab--active",borderHoverSelector:".stk-block-tabs__tab.stk-block-tabs__tab--active:hover",borderEnabledCallback:null,attrNameTemplate:"activeTab%s"});const c=s;var d=o(9107),u=o(7545),b=o(910);const m='<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><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"></path></svg>',p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.version;const t=new u.AttributeObject;return i.BlockDiv.addAttributes(t),i.Style.addAttributes(t),i.EffectsAnimations.addAttributes(t),i.CustomAttributes.addAttributes(t),i.CustomCSS.addAttributes(t),i.Responsive.addAttributes(t),i.ConditionalDisplay.addAttributes(t),i.Advanced.addAttributes(t),i.Transform.addAttributes(t),i.Alignment.addAttributes(t),i.MarginBottom.addAttributes(t),i.Typography.addAttributes(t,".stk-block-tab-labels__text",{hasTextTag:!1,attrNameTemplate:"tab%s"}),i.Icon.addAttributes(t),i.Button.addAttributes(t,{attrNameTemplate:"tab%s"}),i.Button.addAttributes(t,{attrNameTemplate:"activeTab%s"}),t.add({attributes:{tabLabels:{type:"array",default:[{label:"",icon:""},{label:"",icon:""},{label:"",icon:""}]},tabAlignment:{type:"string",default:"",stkResponsive:!0},fullWidth:{type:"boolean",default:!1},scrollableOnMobile:{type:"boolean",default:!0},columnGap:{type:"number",default:"",stkResponsive:!0},rowGap:{type:"number",default:"",stkResponsive:!0},tabTextColor1:{type:"string",default:"",stkHover:!0},tabIconColor1:{type:"string",default:"",stkHover:!0},activeTabTextColor:{type:"string",default:"",stkHover:!0},activeTabIconColor1:{type:"string",default:"",stkHover:!0},showIcon:{type:"boolean",default:!1},iconPosition:{type:"string",default:""},activeBackgroundColor:{type:"string",default:"",stkHover:!0},fixedIconPosition:{type:"boolean",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{icon:m},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},k=p(b.version);o(7294);var g=o(8003);const h={blockShadow:"",tabBorderType:"",tabBorderColor:"",tabBorderWidth:{top:"",right:"",bottom:"",left:""},activeTabBorderColor:"",tabTextColor:"",activeTabTextColor:"",tabTextColorHover:"",hasBackground:"",blockBorderRadius:"",tabBorderRadius:"",activeTabBackgroundColor:"",tabBackgroundColorHover:"",blockMargin:{top:"",right:"",bottom:"",left:""},tabPadding:{top:"",right:"",bottom:"",left:""},blockPadding:{top:"",right:"",bottom:"",left:""},tabBackgroundColor:"",blockBorderWidth:{top:"",right:"",bottom:"",left:""},activeTabBorderWidth:{top:"",right:"",bottom:"",left:""},tabIconColor1:"",activeTabIconColor1:"",tabIconColor1Hover:"",activeTabIconColor1Hover:"",tabBorderRadius2:{top:"",right:"",bottom:"",left:""},blockBorderRadius2:{top:"",right:"",bottom:"",left:""}},v=[{name:"default",label:(0,g.__)("Default",b.i18n),isDefault:!0,icon:function(e){return(0,l.createElement)("svg",(0,n.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("path",{d:"M43 28H5v1h38z",fill:"#d9d9d9"}),(0,l.createElement)("path",{d:"M20 23h-7v2h7z"}),(0,l.createElement)("path",{d:"M35 23h-7v2h7z",fill:"#ccc"}),(0,l.createElement)("path",{d:"M23 28H10v1h13z"}))},onSelect:(e,t)=>({...h,..."vertical"!==t.context["stackable/tabOrientation"]?{blockShadow:"inset 0px -1px 0px 0px rgba(0,0,0, 0.1)",tabBorderType:"solid",tabBorderColor:"transparent",tabBorderWidth:{top:0,right:0,bottom:2,left:0},activeTabBorderColor:"#000000",tabTextColor:"#999999",activeTabTextColor:"#000000",tabTextColorHover:"#000000",tabIconColor1:"#909090",activeTabIconColor1:"#000000",tabIconColor1Hover:"#909090",activeTabIconColor1Hover:"#000000"}:{hasBackground:"",blockShadow:"inset -1px 0px 0px 0px rgba(0,0,0, 0.1)",tabBorderType:"solid",tabBorderColor:"transparent",tabBorderWidth:{top:0,right:2,bottom:0,left:0},activeTabBorderColor:"#000000",tabTextColor:"#999999",activeTabTextColor:"#000000",tabTextColorHover:"#000000",tabIconColor1:"#909090",activeTabIconColor1:"#000000",tabIconColor1Hover:"#909090",activeTabIconColor1Hover:"#000000"}})},{name:"classic",label:(0,g.__)("Classic",b.i18n),disabled:!0,icon:function(e){return(0,l.createElement)("svg",(0,n.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("path",{clipRule:"evenodd",d:"M10 19h13v9h2v-9h13v9h5v1H22v-9H11v9H5v-1h5zm16 9h11v-8H26z",fillRule:"evenodd"}),(0,l.createElement)("path",{d:"M20 23h-7v2h7z"}),(0,l.createElement)("path",{d:"M35 23h-7v2h7z",fill:"#ccc"}))},onSelect:(e,t)=>({...h,..."vertical"!==t.context["stackable/tabOrientation"]?{blockShadow:"inset 0px -1px 0px 0px rgba(0,0,0, 1)",tabBackgroundColor:"#eeeeee",tabBorderType:"solid",tabBorderColor:"#000000",tabBorderWidth:{top:1,right:1,bottom:1,left:1},activeTabBackgroundColor:"#ffffff",activeTabBorderColor:"#000000",tabTextColor:"#000000",activeTabTextColor:"#000000",tabIconColor1:"#000000",activeTabBorderWidth:{top:1,right:1,bottom:0,left:1}}:{hasBackground:"",blockShadow:"inset -1px 0px 0px 0px rgba(0,0,0, 1)",tabBackgroundColor:"#eeeeee",tabBorderType:"solid",tabBorderColor:"#000000",tabBorderWidth:{top:1,right:1,bottom:1,left:1},activeTabBackgroundColor:"#ffffff",activeTabBorderColor:"#000000",tabTextColor:"#000000",activeTabTextColor:"#000000",tabIconColor1:"#000000",activeTabBorderWidth:{top:1,right:0,bottom:1,left:1}}})},{name:"buttons",label:(0,g.__)("Button",b.i18n),disabled:!0,icon:function(e){return(0,l.createElement)("svg",(0,n.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("path",{clipRule:"evenodd",d:"M9 20a1 1 0 00-1 1v6a1 1 0 001 1h15a1 1 0 001-1v-6a1 1 0 00-1-1zm4 3h7v2h-7z",fillRule:"evenodd"}),(0,l.createElement)("path",{d:"M35 23h-7v2h7z",fill:"#888"}))},onSelect:()=>({...h,tabBorderColor:"transparent",tabBorderWidth:{top:0,right:0,bottom:2,left:0},tabBorderRadius:4,activeTabBackgroundColor:"#000000",activeTabBorderColor:"#000000",activeTabTextColor:"#ffffff",tabBackgroundColorHover:"#eeeeee",tabIconColor1:"#000000",activeTabIconColor1:"#ffffff"})},{name:"centered-pills",label:(0,g.__)("Centered Pills",b.i18n),disabled:!0,icon:function(e){return(0,l.createElement)("svg",(0,n.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("g",{clipRule:"evenodd",fillRule:"evenodd"},(0,l.createElement)("path",{d:"M12 19a5 5 0 000 10h23a5 5 0 000-10zm16 4h7v2h-7z",fill:"#d9d9d9"}),(0,l.createElement)("path",{d:"M12 20a4 4 0 000 8h9a4 4 0 000-8zm1 3h7v2h-7z"})))},onSelect:e=>{const t={hasBackground:!0,blockBorderRadius:50,tabBorderRadius:50,activeTabBackgroundColor:"#000000",tabTextColor:"#777777",activeTabTextColor:"#ffffff",tabBackgroundColorHover:"#dddddd",tabTextColorHover:"#000000",blockMargin:{top:"",right:"auto",bottom:"",left:"auto"},tabPadding:{top:8,right:24,bottom:8,left:24},blockPadding:{top:8,right:8,bottom:8,left:8},tabIconColor1:"#777777",activeTabIconColor1:"#ffffff",tabIconColor1Hover:"#000000"};return e.fullWidth&&(t.blockMargin={top:"",right:"",bottom:"",left:""}),{...h,...t}}}];var C=o(4184),y=o.n(C),f=o(9783),B=o(8333),S=o(8085),_=o(3284),A=o(3749),w=o(78),E=o(7537),T=o(378);const x=["centered-buttons"],I=[{value:"",title:(0,g.__)("Left",b.i18n),icon:(0,l.createElement)((function(e){return(0,l.createElement)("svg",(0,n.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("circle",{cx:3,cy:9,r:3}),(0,l.createElement)("path",{d:"M8 8h12v2H8z"}))}),null)},{value:"right",title:(0,g.__)("Right",b.i18n),icon:(0,l.createElement)((function(e){return(0,l.createElement)("svg",(0,n.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("circle",{cx:17,cy:9,r:3}),(0,l.createElement)("path",{d:"M0 8h12v2H0z"}))}),null)},{value:"top",title:(0,g.__)("Top",b.i18n),icon:(0,l.createElement)((function(e){return(0,l.createElement)("svg",(0,n.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("circle",{cx:10,cy:7,r:3}),(0,l.createElement)("path",{d:"M0 12h20v2H0z"}))}),null)},{value:"bottom",title:(0,g.__)("Bottom",b.i18n),icon:(0,l.createElement)((function(e){return(0,l.createElement)("svg",(0,n.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,l.createElement)("circle",{cx:10,cy:13,r:3}),(0,l.createElement)("path",{d:"M0 6h20v2H0z"}))}),null)}],z=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(w.BlockControls,null,(0,l.createElement)(E.ToolbarGroup,null,(0,l.createElement)(E.ToolbarButton,{label:(0,g.__)("Move left",b.i18n),icon:"arrow-left-alt2",disabled:1===e.activeTab,onClick:e.moveActiveTabLeft}),(0,l.createElement)(E.ToolbarButton,{label:(0,g.__)("Move right",b.i18n),icon:"arrow-right-alt2",disabled:e.activeTab===e.attributes.tabLabels.length,onClick:e.moveActiveTabRight}))),(0,l.createElement)(w.BlockControls,null,(0,l.createElement)(E.ToolbarGroup,null,(0,l.createElement)(E.ToolbarButton,{label:(0,g.__)("Add tab",b.i18n),icon:"plus-alt2",onClick:()=>e.addNewTab(e.activeTab)}),(0,l.createElement)(E.ToolbarButton,{label:(0,g.__)("Duplicate tab",b.i18n),icon:"admin-page",onClick:()=>e.duplicateTab(e.activeTab)}),(0,l.createElement)(E.ToolbarButton,{label:(0,g.__)("Delete tab",b.i18n),icon:"trash",disabled:1===e.attributes.tabLabels.length,onClick:()=>{confirm((0,g.__)("Are you sure you want to delete this tab?",b.i18n))&&e.deleteActiveTab()}}))),(0,l.createElement)(r.InspectorLayoutControls,null,"vertical"!==e.context["stackable/tabOrientation"]&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.__)("Full Width",b.i18n),attribute:"fullWidth",defaultValue:!1,onChange:t=>{const o={fullWidth:t};var a,n;if("centered-pills"===(0,B.getBlockStyle)(e.blockStyles,e.attributes.className).name)if(e.attributes.blockMargin={top:(null===(a=e.attributes.blockMargin)||void 0===a?void 0:a.top)||"",bottom:(null===(n=e.attributes.blockMargin)||void 0===n?void 0:n.bottom)||""},t){var l,i;const t=(null===(l=e.attributes.blockMargin)||void 0===l?void 0:l.right)||"",o=(null===(i=e.attributes.blockMargin)||void 0===i?void 0:i.left)||"";e.attributes.blockMargin.right="auto"===t?"":t,e.attributes.blockMargin.left="auto"===o?"":o}else{var r,s;const t=(null===(r=e.attributes.blockMargin)||void 0===r?void 0:r.right)||"auto",o=(null===(s=e.attributes.blockMargin)||void 0===s?void 0:s.left)||"auto";e.attributes.blockMargin.right=""===t?"auto":t,e.attributes.blockMargin.left=""===o?"auto":o}e.setAttributes(o)}})),(""===e.attributes.iconPosition||"right"===e.attributes.iconPosition)&&e.attributes.showIcon&&("vertical"!==e.context["stackable/tabOrientation"]&&e.attributes.fullWidth||"vertical"===e.context["stackable/tabOrientation"])&&(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.__)("Fixed Icon Position",b.i18n),attribute:"fixedIconPosition",defaultValue:!1}),e.attributes.showIcon&&(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.__)("Icon Position",b.i18n),controls:I,attribute:"iconPosition"}),"vertical"!==e.context["stackable/tabOrientation"]&&(0,l.createElement)(l.Fragment,null,!e.attributes.fullWidth&&(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.__)("Tab Alignment",b.i18n),attribute:"tabAlignment",controls:"horizontal",responsive:"all"})),(e.attributes.fullWidth||"vertical"===e.context["stackable/tabOrientation"]||"top"===e.attributes.iconPosition||"bottom"===e.attributes.iconPosition)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AlignButtonsControl,{label:(0,g.__)("Text Alignment",b.i18n),attribute:"contentAlign",responsive:"all"})),"vertical"!==e.context["stackable/tabOrientation"]&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Column Gap",b.i18n),attribute:"columnGap",min:0,sliderMax:50,placeholder:"12",responsive:"all"})),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Row Gap",b.i18n),attribute:"rowGap",min:0,sliderMax:50,placeholder:"8",responsive:"all"}),e.attributes.showIcon&&(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Icon Gap",b.i18n),attribute:"iconGap",min:0,sliderMax:50,placeholder:"8"}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.__)("Scrollable Tabs on Mobile",b.i18n),attribute:"scrollableOnMobile",defaultValue:!0})),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Tab",b.i18n),initialOpen:!0,id:"tab"},(0,l.createElement)(r.BlockStyles,{styles:e.blockStyles,context:e.context}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(i.Button.InspectorControls.Colors.Controls,{hasTextColor:!1,hasIconColor:!1,attrNameTemplate:"tab%s"}),(0,l.createElement)(r.ColorPaletteControl,{label:(0,g.__)("Text Color",b.i18n),attribute:"tabTextColor1",hover:"all"}),e.attributes.showIcon&&(0,l.createElement)(r.ColorPaletteControl,{label:(0,g.__)("Icon Color",b.i18n),attribute:"tabIconColor1",hover:"all"}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(i.Button.InspectorControls.Size.Controls,{attrNameTemplate:"tab%s"}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(i.Button.InspectorControls.Borders.Controls,{attrNameTemplate:"tab%s"})),(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Tab Active State",b.i18n),id:"tab-active-state"},(0,l.createElement)(i.Button.InspectorControls.Colors.Controls,{hasTextColor:!1,hasIconColor:!1,attrNameTemplate:"activeTab%s"}),(0,l.createElement)(r.ColorPaletteControl,{label:(0,g.__)("Text Color",b.i18n),attribute:"activeTabTextColor",hover:"all"}),e.attributes.showIcon&&(0,l.createElement)(r.ColorPaletteControl,{label:(0,g.__)("Icon Color",b.i18n),attribute:"activeTabIconColor1",hover:"all"}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(i.Button.InspectorControls.Borders.Controls,{attrNameTemplate:"activeTab%s",hasBorderType:!1,borderTypeValue:e.attributes.tabBorderType,hasBorderRadius:!1})),(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Typography",b.i18n),initialOpen:!1,id:"typography"},(0,l.createElement)(i.Typography.InspectorControls.Controls,(0,n.Z)({attrNameTemplate:"tab%s"},e,{hasTextContent:!1,hasTextTag:!1,isMultiline:!0,initialOpen:!0,hasTextShadow:!0,hasGradient:!1,hasInset:!1}))),(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Icon",b.i18n),initialOpen:!1,hasToggle:!0,checked:e.attributes.showIcon,onChange:t=>e.setAttributes({showIcon:t}),id:"icon"},(0,l.createElement)(i.Icon.InspectorControls,{attrNameTemplate:"tab%s",wrapInPanels:!1,hasGradient:!1,hasShape:!1,hasBackgroundShape:!1,hasIconGap:!0,hasIconPosition:!1,defaultValue:m,iconControlHelp:(0,g.__)("Change icons individually by clicking on each tab's icon.",b.i18n),iconGapPlaceholder:"8",onChangeIcon:t=>{const o=(0,S.cloneDeep)(e.attributes.tabLabels).map((e=>({...e,icon:""})));e.setAttributes({icon:t,tabLabels:o})}},(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.__)("Icon Position",b.i18n),controls:I,attribute:"iconPosition"})))),(0,l.createElement)(i.BlockDiv.InspectorControls,null),(0,l.createElement)(r.InspectorAdvancedControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Tab Anchors",b.i18n),id:"tabAnchors"},(0,l.createElement)(E.BaseControl,{help:(0,g.__)("Assign unique anchor names to each tab so you'll be able to link directly and open each one.",b.i18n)}),e.tabLabels.map(((t,o)=>(0,l.createElement)(r.AdvancedTextControl,{label:(0,g.sprintf)((0,g.__)("%s Anchor",b.i18n),(0,g.__)(t.label,b.i18n)),value:e.tabLabels[o].anchor,placeholder:(0,g.__)("Tab Anchor",b.i18n),key:`tab-anchors-${o}`,onChange:t=>{const a=(0,S.cloneDeep)(e.tabLabels);a[o].anchor=t,e.setTabLabels(a),t||e.setAttributes({tabLabels:a})},onBlur:()=>{const t=e.tabLabels;t[o].anchor&&(t[o].anchor=(0,S.kebabCase)(t[o].anchor),e.setAttributes({tabLabels:t}))}}))))),(0,l.createElement)(i.Advanced.InspectorControls,null),(0,l.createElement)(i.Transform.InspectorControls,null),(0,l.createElement)(i.EffectsAnimations.InspectorControls,null),(0,l.createElement)(i.CustomAttributes.InspectorControls,null),(0,l.createElement)(i.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-tab-labels"}),(0,l.createElement)(i.Responsive.InspectorControls,null),(0,l.createElement)(i.ConditionalDisplay.InspectorControls,null)))),M=(0,A.compose)(f.withBlockWrapper,f.withQueryLoopContext,f.withBlockAttributeContext)((e=>{const{className:t,clientId:o,isSelected:a,setAttributes:n,context:s}=e,[u,m,,p]=(0,d.VT)(),k=(0,i.getTypographyClasses)(e.attributes),h=(0,i.getAlignmentClasses)(e.attributes),{parentBlock:C}=(0,_.useSelect)((e=>{const t=e("core/block-editor").getBlockRootClientId(o);return{parentBlock:e("core/block-editor").getBlock(t)}}),[o]),f=(()=>{const e=(0,l.useRef)({});return(0,l.useCallback)((t=>{var o,a;return null!==(a=(o=e.current)[t])&&void 0!==a?a:o[t]=(0,l.createRef)()}),[e])})(),B=t=>{const o=(0,S.cloneDeep)(e.attributes.tabLabels);o.splice(t,0,{label:"",icon:""}),n({tabLabels:o}),p(!1),setTimeout((()=>{const e="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1],o=(0,T.getBlockFromExample)("stackable/column",{attributes:{customAttributes:[["role","tabpanel"]]}});(0,_.dispatch)("core/block-editor").insertBlock(o,t,e.clientId,!1),p(!0)}),1),setTimeout((()=>{const e=document.createRange();e.selectNodeContents(f(t).current),e.collapse(!1);const o=window.getSelection();o.removeAllRanges(),o.addRange(e)}),1),m(t+1)},A=()=>{const t=u-1,o=(0,S.cloneDeep)(e.attributes.tabLabels);o.splice(t,1),n({tabLabels:o}),p(!1),setTimeout((()=>{const e="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1];(0,_.dispatch)("core/block-editor").removeBlocks([e.innerBlocks[t].clientId],!1),p(!0)}),1);const a=t===o.length?t-1:t;setTimeout((()=>{const e=document.createRange();e.selectNodeContents(f(a).current),e.collapse(!1);const t=window.getSelection();t.removeAllRanges(),t.addRange(e)}),200),m(a+1)},w=v.map((e=>{let t=!1;return"vertical"===s["stackable/tabOrientation"]&&x.includes(e.name)&&(t=!0),{...e,disabled:t}})),[E,I]=(0,l.useState)(e.attributes.tabLabels);(0,l.useEffect)((()=>{I(e.attributes.tabLabels)}),[e.attributes.tabLabels]);const M=y()([t,"stk-block-tab-labels",{"stk-block-tab-labels--wrap-mobile":!e.attributes.scrollableOnMobile}]),H=y()(["stk-block-tab-labels__text",k,h]),N=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:b.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(z,{activeTab:u,moveActiveTabLeft:()=>{const t=u-1,o=(0,S.cloneDeep)(e.attributes.tabLabels),a=o[t];o[t]=o[t-1],o[t-1]=a,n({tabLabels:o});const l="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1];(0,_.dispatch)("core/block-editor").moveBlocksUp([l.innerBlocks[t].clientId],l.clientId),m(u-1)},moveActiveTabRight:()=>{const t=u-1,o=(0,S.cloneDeep)(e.attributes.tabLabels),a=o[t];o[t]=o[t+1],o[t+1]=a,n({tabLabels:o});const l="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1];(0,_.dispatch)("core/block-editor").moveBlocksDown([l.innerBlocks[t].clientId],l.clientId),m(u+1)},addNewTab:B,deleteActiveTab:A,duplicateTab:t=>{const o=(0,S.cloneDeep)(e.attributes.tabLabels);o.splice(t,0,{label:o[t-1].label,icon:o[t-1].icon}),n({tabLabels:o}),p(!1),setTimeout((()=>{const e="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1];(0,_.dispatch)("core/block-editor").duplicateBlocks([e.innerBlocks[t-1].clientId],!1),p(!0)}),1),setTimeout((()=>{const e=document.createRange();e.selectNodeContents(f(t).current),e.collapse(!1);const o=window.getSelection();o.removeAllRanges(),o.addRange(e)}),1),m(t+1)},tabLabels:E,setTabLabels:I,context:s,blockStyles:w,setAttributes:n,blockState:e.blockState,attributes:{tabLabels:e.attributes.tabLabels,className:e.attributes.className,blockMargin:e.attributes.blockMargin,iconPosition:e.attributes.iconPosition,showIcon:e.attributes.showIcon,fullWidth:e.attributes.fullWidth}}),N&&(0,l.createElement)("style",{key:"block-css"},N),(0,l.createElement)(i.CustomCSS,{mainBlockClass:"stk-block-tab-labels"}),(0,l.createElement)(i.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:M},(0,l.createElement)("div",{className:"stk-block-tab-labels__wrapper"},e.attributes.tabLabels.map(((t,o)=>(0,l.createElement)("button",{className:y()("stk-block-tabs__tab",{"stk-block-tabs__tab--active":u===o+1}),"aria-selected":u===o+1?"true":"false",key:o,onClick:()=>(e=>{m(e),a||(0,_.dispatch)("core/block-editor").clearSelectedBlock()})(o+1)},e.attributes.showIcon&&(0,l.createElement)(i.Icon,{onChange:t=>((t,o)=>{const a=(0,S.cloneDeep)(e.attributes.tabLabels);a[o].icon=t,n({tabLabels:a})})(t,o),value:e.attributes.tabLabels[o].icon}),(0,l.createElement)("div",{className:H},(0,l.createElement)(r.RichText,{key:o,ref:f(o),tagName:"span",value:t.label,onChange:t=>{((t,o)=>{const a=(0,S.cloneDeep)(e.attributes.tabLabels);a[o].label=t,n({tabLabels:a})})(t,o)},__unstableOnSplitAtEnd:()=>{B(o+1)},onRemove:()=>{e.attributes.tabLabels.length>1&&confirm((0,g.__)("Are you sure you want to delete this tab?",b.i18n))&&A()},withoutInteractiveFormatting:!0,allowedFormats:[],placeholder:(0,g.__)("Tab Label",b.i18n),attrNameTemplate:"tab%s"}))))))))})),H=e=>{const{className:t,attributes:o}=e,a=(0,i.getResponsiveClasses)(e.attributes),n=(0,i.getTypographyClasses)(e.attributes),s=(0,i.getAlignmentClasses)(e.attributes),c=y()([t,"stk-block-tab-labels",a,{"stk-block-tab-labels--wrap-mobile":!e.attributes.scrollableOnMobile}]),d=y()(["stk-block-tab-labels__text",n,s]);return(0,l.createElement)(i.BlockDiv.Content,{className:c,attributes:o,version:e.version},o.generatedCss&&(0,l.createElement)("style",null,o.generatedCss),(0,l.createElement)(i.CustomCSS.Content,{attributes:o}),(0,l.createElement)("div",{className:"stk-block-tab-labels__wrapper",role:"tablist"},e.attributes.tabLabels.map(((t,a)=>{var n;return(0,l.createElement)("button",{className:"stk-block-tabs__tab",role:"tab",key:a,id:null!==(n=e.attributes.tabLabels[a].anchor)&&void 0!==n?n:void 0},e.attributes.showIcon&&(0,l.createElement)(i.Icon.Content,{attributes:o,value:e.attributes.tabLabels[a].icon}),(0,l.createElement)("div",{className:d},(0,l.createElement)(r.RichText.Content,{tagName:"span",value:t.label})))}))))},N=(0,A.compose)((0,f.withVersion)(b.version))(H),D=JSON.parse('{"apiVersion":3,"name":"stackable/tab-labels","title":"Tab Labels","description":"Create interactive navigation within tabs.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/initialTabOpen","stackable/tabOrientation"],"keywords":[],"parent":["stackable/tabs"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}'),O=[{attributes:p("3.12.11"),save:(0,f.withVersion)("3.12.11")(H),isEligible:e=>{const t=i.deprecateBlockShadowColor.isEligible(e),o=i.deprecateContainerShadowColor.isEligible(e),a=i.deprecateShadowColor.isEligible("tab%s")(e),n=i.deprecateShadowColor.isEligible("activeTab%s")(e),l=i.deprecateTypographyShadowColor.isEligible("tab%s")(e);return t||o||l||a||n},migrate:e=>{let t={...e};return t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t=i.deprecateTypographyGradientColor.migrate("tab%s")(t),t=i.deprecateButtonGradientColor.migrate("tab%s")(t),t=i.deprecateButtonGradientColor.migrate("activeTab%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateTypographyShadowColor.migrate("%s")(t),t=i.deprecateShadowColor.migrate("tab%s")(t),t=i.deprecateShadowColor.migrate("activeTab%s")(t),t}},{attributes:p("3.11.9"),save:(0,f.withVersion)("3.11.9")(H),isEligible:e=>{const t=i.deprecateContainerBackgroundColorOpacity.isEligible(e),o=i.deprecateBlockBackgroundColorOpacity.isEligible(e),a=i.deprecateTypographyGradientColor.isEligible("tab%s")(e),n=i.deprecateButtonGradientColor.isEligible("tab%s")(e),l=i.deprecateButtonGradientColor.isEligible("activeTab%s")(e);return t||o||a||n||l},migrate:e=>{let t={...e};return t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t=i.deprecateTypographyGradientColor.migrate("tab%s")(t),t=i.deprecateButtonGradientColor.migrate("tab%s")(t),t=i.deprecateButtonGradientColor.migrate("activeTab%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateTypographyShadowColor.migrate("%s")(t),t=i.deprecateShadowColor.migrate("tab%s")(t),t=i.deprecateShadowColor.migrate("activeTab%s")(t),t}}],L={...D,icon:a.TabsLabelIcon,attributes:k,supports:{anchor:!0,reusable:!1,stkSaveBlockStyle:!1},deprecated:O,edit:M,save:N}},9881:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>q});var a=o(9467),n=o(8085),l=o(910),i=o(7462),r=o(2610),s=o(9384),c=o(7200);const d=new c.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});d.addBlockStyles("iconGap",[{selector:"li",styleRule:"paddingInlineStart",attrName:"iconGap",key:"iconGap",responsive:"all",format:"%spx"}]),d.addBlockStyles("listType",[{selector:"ul",styleRule:"listStyleType",attrName:"listType",key:"listType",valueCallback:e=>"none"===e?"none":void 0},{selector:"ol",styleRule:"listStyleType",attrName:"listType",key:"listType-ol",valueCallback:e=>(0,n.isEmpty)(e)||"none"===e||"unordered"===e?void 0:e}]),d.addBlockStyles("columns",[{selector:".stk-table-of-contents__table",styleRule:"columnCount",attrName:"columns",key:"columns",responsive:"all"}]),d.addBlockStyles("columnGap",[{selector:".stk-table-of-contents__table",styleRule:"columnGap",attrName:"columnGap",key:"columnGap",responsive:"all",format:"%spx"}]),d.addBlockStyles("rowGap",[{renderIn:"save",selector:"li",styleRule:"marginBottom",attrName:"rowGap",key:"rowGapSave",responsive:"all",format:"%spx"},{renderIn:"edit",selector:".stk-block-table-of-contents__list-item-inner",styleRule:"marginBottom",attrName:"rowGap",key:"rowGapEdit",responsive:"all",format:"%spx"},{selector:".stk-table-of-contents__table ul",styleRule:"marginTop",attrName:"rowGap",key:"rowGap-top",responsive:"all",format:"%spx"}]),d.addBlockStyles("indentation",[{selector:["ul","ol"],styleRule:"paddingLeft",attrName:"indentation",key:"indentation",responsive:"all",format:"%spx"}]),d.addBlockStyles("color",[{selector:"li a",hover:"all",styleRule:"color",attrName:"color",key:"color"}]),d.addBlockStyles("listAlignment",[{selector:["li"],styleRule:"marginInline",attrName:"listAlignment",key:"listAlignment",responsive:"all",valueCallback:e=>"center"===e?"auto":"right"===e?"auto 0":"left"===e?"0 auto":""}]),d.addBlockStyles("isSmoothScroll",[{selector:"html",styleRule:"scroll-behavior",attrName:"isSmoothScroll",key:"isSmoothScroll",valueCallback:e=>e?"smooth":void 0}]),d.addBlockStyle("scrollTopOffset",[{selector:"html",styleRule:"scroll-padding-top",attrName:"scrollTopOffset",key:"scrollTopOffset",responsive:"all",format:"%spx"}]),d.addBlockStyles("fontSize",[{renderIn:"edit",selector:".%s.%s li",styleRule:"fontSize",attrName:"fontSize",key:"fontSize",responsive:"all",format:"%spx"}]),s.Alignment.addStyles(d),s.Typography.addStyles(d,{selector:["li","ul li a","ol li a"],hoverSelector:[".%s:hover li",".%s:hover ul li a",".%s:hover ol li a"]}),s.Typography.addStyles(d,{selector:".stk-table-of-contents__title",hoverSelector:".stk-table-of-contents__title:hover",attrNameTemplate:"title%s"}),s.MarginBottom.addStyles(d),s.BlockDiv.addStyles(d),s.Advanced.addStyles(d),s.Transform.addStyles(d),s.EffectsAnimations.addStyles(d);const u=d;var b=o(4184),m=o.n(b),p=o(8003),k=o(7537);const g=e=>{const{nestedHeadingList:t,listTag:o="ul",isSelected:a,toggleItemVisibility:s,isEdit:d=!0,updateContent:u}=e;if(t){const b=o,h=t.map((t=>{const{anchor:b,content:h,customContent:v,isExcluded:C,clientId:y}=t.heading,{index:f}=t,B=a?(0,r.createElement)(k.Button,{className:"stk-block-table-of-contents__list-item__exclude-button",icon:C?"hidden":"visibility",onClick:()=>s(f),isSmall:!0,label:C?(0,p.__)("Include heading",l.i18n):(0,p.__)("Exclude heading",l.i18n),showTooltip:!0,tooltipPosition:"right middle"}):null,S=m()({"stk-block-table-of-contents__list-item__hidden":C&&!a,"stk-block-table-of-contents__list-item__excluded":C});return(0,r.createElement)("li",{key:y,className:S},d?(0,r.createElement)("div",{className:"stk-block-table-of-contents__list-item-inner"},(0,r.createElement)("span",{className:"stk-block-table-of-contents__link-wrapper"},(0,r.createElement)(c.RichText,{tagName:"a",onChange:e=>u(f,e),placeholder:(0,p.__)("Heading",l.i18n),value:void 0!==v?v:h,withoutInteractiveFormatting:!0,allowedFormats:[]}),B)):(0,r.createElement)(c.RichText.Content,{tagName:"a",href:`#${b}`,value:v||h}),t.children?(0,r.createElement)(g,(0,i.Z)({},(0,n.omit)(e,["className"]),{nestedHeadingList:t.children,listTag:o,toggleItemVisibility:s,updateContent:u,isSelected:a})):null)}));return(0,n.isEmpty)(h)?null:(0,r.createElement)(b,{className:e.className},h)}};g.Content=e=>{const{nestedHeadingList:t,listTag:o="ul"}=e;if(t){const a=o,l=t.map((t=>{const{anchor:a,content:l,customContent:s,isExcluded:c,clientId:d}=t.heading;return c?null:(0,r.createElement)("li",{key:d},(0,r.createElement)("a",{href:`#${a}`},(0,n.isEmpty)(s)?l:s),t.children?(0,r.createElement)(g.Content,(0,i.Z)({},(0,n.omit)(e,["className"]),{nestedHeadingList:t.children,listTag:o,isEdit:!1})):null)}));return(0,n.isEmpty)(l)?null:(0,r.createElement)(a,{className:e.className},l)}};const h=g;var v=o(3726),C=o.n(v),y=o(3284),f=o(3882);const B=(e,t)=>{const o=e();return o?S(o,t):t.headings},S=e=>{const t=(0,f.applyFilters)("stackable.block.table-of-contents.allowed-headings",["core/heading","stackable/heading","ugb/heading"]).map((e=>`.wp-block[data-type="${e}"]`)).join(", ");return[...e.querySelectorAll(t)].reduce(((e,t)=>{const o=t.closest('[data-type="core/template-part"]');if(o&&("HEADER"===o.tagName||"FOOTER"===o.tagName))return e;const a=t.getAttribute("data-block"),n=(0,y.select)("core/block-editor").getBlock(a);return n&&e.push((e=>{var t;let o={};if("stackable/heading"===e.name)o={content:e.attributes.text,level:parseInt(e.attributes.textTag.substr(1),10),anchor:e.attributes.anchor,clientId:e.clientId};else if("ugb/heading"===e.name){const t=e.attributes.titleTag||"h2";o={content:e.attributes.title,level:parseInt(t.substr(1),10),anchor:e.attributes.anchor,clientId:e.clientId}}else o=(0,f.applyFilters)("stackable.block.table-of-contents.convert-block",null,e)||{content:e.attributes.content,level:e.attributes.level,anchor:e.attributes.anchor,clientId:e.clientId};o.tag=o.level;const a="string"==typeof o.content?o.content:null===(t=o.content)||void 0===t?void 0:t.text;return o.content=C()(a||""),o})(n)),e}),[])},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{index:0};const o=[];for(;e.length;){const a=e.shift(),n=[];for(;e.length&&!(e[0].level<=a.level);)n.push({...e.shift()});o.push({heading:{...a},index:t.index++,children:_(n,t)})}return o};var A=o(9783),w=o(3749);const E=[{label:(0,p.__)("Unordered",l.i18n),value:"unordered"},{label:(0,p.__)("None",l.i18n),value:"none"},{label:(0,p.__)("Number",l.i18n),value:"decimal"},{label:(0,p.__)("Padded Number",l.i18n),value:"decimal-leading-zero"},{label:(0,p.__)("Lowercase Roman",l.i18n),value:"lower-roman"},{label:(0,p.__)("Uppercase Roman",l.i18n),value:"upper-roman"},{label:(0,p.__)("Lowercase Letters",l.i18n),value:"lower-alpha"},{label:(0,p.__)("Uppercase Letters",l.i18n),value:"upper-alpha"}],T=()=>(0,r.createElement)(k.Card,null,(0,r.createElement)(k.CardBody,null,(0,p.__)("Start adding Heading blocks to create a table of contents. Supported heading blocks will be linked here.",l.i18n))),x=()=>["H1","H2","H3","H4","H5","H6"].map((e=>(0,r.createElement)(c.AdvancedToggleControl,{key:e,label:(0,p.sprintf)((0,p._x)("Include %s","%s is a heading level, e.g. H1",l.i18n),e),attribute:`include${e}`,defaultValue:"H1"!==e}))),I=e=>{let{autoGenerateAnchors:t}=e;return(0,r.createElement)(k.Card,{className:"stk-table-of-contents__empty-anchor"},(0,r.createElement)(k.CardBody,{isShady:!0},(0,p.__)("You have one or more headings without an anchor id. Anchor ids are required for the Table of Contents block to work.",l.i18n),(0,r.createElement)("br",null),(0,r.createElement)("br",null),(0,r.createElement)(k.Button,{isPrimary:!0,onClick:t},(0,p.__)("Auto-generate missing anchor ids",l.i18n))))},z=(0,r.memo)((e=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.InspectorTabs,{hasLayoutPanel:!1}),(0,r.createElement)(c.InspectorStyleControls,null,(0,r.createElement)(c.PanelAdvancedSettings,{title:(0,p.__)("General",l.i18n),initialOpen:!0,id:"general"},(0,r.createElement)(x,null),(0,r.createElement)(c.AdvancedSelectControl,{label:(0,p.__)("List Type",l.i18n),attribute:"listType",options:E}),(0,r.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Columns",l.i18n),attribute:"columns",min:"1",sliderMax:"3",step:"1",placeholder:"1",responsive:"all"}),(0,r.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Column Gap",l.i18n),attribute:"columnGap",min:"0",placeholder:"32",sliderMax:"50",responsive:"all"}),(0,r.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Row Gap",l.i18n),attribute:"rowGap",min:"0",sliderMax:"50",responsive:"all"}),(0,r.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Icon Gap",l.i18n),attribute:"iconGap",min:"0",sliderMax:"20",responsive:"all"}),(0,r.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Indentation",l.i18n),attribute:"indentation",min:"0",sliderMax:"50",responsive:"all",placeholder:""}))),(0,r.createElement)(c.InspectorStyleControls,null,(0,r.createElement)(c.PanelAdvancedSettings,{title:(0,p.__)("Scrolling",l.i18n),initialOpen:!1,id:"scrolling"},(0,r.createElement)(c.AdvancedToggleControl,{label:(0,p.__)("Use smooth scroll",l.i18n),attribute:"isSmoothScroll"}),(0,r.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Scroll Top Offset ",l.i18n),attribute:"scrollTopOffset",min:0,max:200,step:1,responsive:"all",placeholder:"0"}))),(0,r.createElement)(s.Typography.InspectorControls,(0,i.Z)({},e,{isMultiline:!0,initialOpen:!1,hasTextTag:!1,hasTextContent:!1})),(0,r.createElement)(s.Typography.InspectorControls,(0,i.Z)({},e,{label:(0,p.__)("Title",l.i18n),attrNameTemplate:"title%s",initialOpen:!1,hasToggle:!0,hasTextTag:!1})),(0,r.createElement)(s.BlockDiv.InspectorControls,null),(0,r.createElement)(s.Advanced.InspectorControls,null),(0,r.createElement)(s.Transform.InspectorControls,null),(0,r.createElement)(s.EffectsAnimations.InspectorControls,null),(0,r.createElement)(s.CustomAttributes.InspectorControls,null),(0,r.createElement)(s.CustomCSS.InspectorControls,{mainBlockClass:"stk-table-of-contents"}),(0,r.createElement)(s.Responsive.InspectorControls,null),(0,r.createElement)(s.ConditionalDisplay.InspectorControls,null)))),M=(0,w.compose)(A.withBlockWrapperIsHovered,A.withQueryLoopContext,A.withBlockAttributeContext)((e=>{const{attributes:t,setAttributes:o,className:a,isSelected:i}=e,{getEditorDom:d}=(0,y.useSelect)("stackable/editor-dom"),[b,k]=(0,r.useState)(t.headings),{getEditedPostContent:g}=(0,y.useSelect)("core/editor"),{getBlock:v}=(0,y.useSelect)("core/block-editor"),[C,S]=(0,r.useState)(0),A=()=>{const e=(0,n.cloneDeep)(b),o=[1,2,3,4,5,6].filter((e=>t[`includeH${e}`]));return e.filter((e=>o.includes(e.tag)))};(0,r.useEffect)((()=>{let e=g();const o=wp.data.subscribe((0,n.debounce)((()=>{const o=g();if(!i&&!(0,n.isEqual)(e,o)){const e=[1,2,3,4,5,6].filter((e=>t[`includeH${e}`])),o=B(d,t).filter((t=>e.includes(t.tag))).map(((e,t)=>(b[t]&&""===b[t].customContent&&void 0!==b[t].customContent&&delete b[t].customContent,{...b[t],...e})));k(o)}e=o}),300));return()=>o()}),[i]),(0,r.useEffect)((()=>{if(!i){const e=A();let t=!1;e.forEach(((o,a)=>{e[a]&&""===o.customContent&&void 0!==e[a].customContent&&(delete e[a].customContent,t=!0)})),t&&k(e)}}),[i]),(0,r.useEffect)((()=>{if(d&&!b.length){const e=B(d,t).map((e=>({...e,isExcluded:!1})));k(e)}}),[d,b.length]),(0,r.useEffect)((()=>{if(d&&C){const e=B(d,t).map((e=>({...e})));k(e)}}),[d,C]),(0,r.useEffect)((0,n.debounce)((()=>{(0,n.isEqual)(t.headings,b)||((0,y.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),o({headings:b}))}),301),[b]);const{listType:w}=t,E=(0,n.isEmpty)(w)||"unordered"===w||"none"===w?"ul":"ol",x=(0,s.getTypographyClasses)(t),M=(0,s.getAlignmentClasses)(t),H=(0,s.getTypographyClasses)(t,"title%s"),N=m()([a,"stk-block-table-of-contents",M]),D=m()(["stk-table-of-contents__table",x]),O=m()("stk-table-of-contents__title",H),L=[1,2,3,4,5,6].filter((e=>t[`includeH${e}`])),R=b.filter((e=>L.includes(e.tag))),U=_(R),P=b.some((e=>e.content&&!e.anchor)),V=(0,r.useCallback)((()=>{const e=(0,f.applyFilters)("stackable.table-of-contents.block-anchor-content",{"core/heading":"content","stackable/heading":"text","ugb/heading":"title"}),t=b.map((t=>{const o=v(t.clientId);if(o)return o;const a=d(),n=Object.keys(e).map((e=>`[data-type="${e}"]`)).join(",");let l=null;if(t.anchor){let e=a.querySelector(`[id="${t.anchor}"]`);var i;e&&(e=e.closest(n),l=null===(i=e)||void 0===i?void 0:i.getAttribute("data-block"))}return!l&&t.content&&Array.from(a.querySelectorAll(n)||[]).some((e=>t.content===e.textContent&&(l=e.getAttribute("data-block"),!0))),l?v(l):null}));t.forEach((o=>{if(o){const a=o.attributes[e[o.name]],{anchor:l}=o.attributes;if(!l&&a){const e=((e,t)=>{const o=(e=>(0,n.kebabCase)((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)))(e);if(""===o)return null;if(!t.some((e=>e.attributes.anchor===o)))return o;let a=1,l=`${o}-${a}`;for(;t.some((e=>e.attributes.anchor===l));)l=`${o}-${a++}`;return l})(a,t);(0,y.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,y.dispatch)("core/block-editor").updateBlockAttributes(o.clientId,{anchor:null!==e?e:(0,n.uniqueId)("stk-")})}}})),S(C+1)}),[b]),F=(0,c.useBlockCssGenerator)({attributes:e.attributes,blockStyles:u,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:l.version});return e.attributes.example?(0,r.createElement)(c.RichText,{tagName:"ul",multiline:"li",value:e.attributes.example}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(z,{blockState:e.blockState}),F&&(0,r.createElement)("style",{key:"block-css"},F),(0,r.createElement)(s.CustomCSS,{mainBlockClass:"stk-table-of-contents"}),(0,r.createElement)(s.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:N},t.titleShow&&(0,r.createElement)(s.Typography,{className:O,attrNameTemplate:"title%s",placeholder:(0,p.__)("Title for This Block",l.i18n)}),!!b.length&&P&&(0,r.createElement)(I,{autoGenerateAnchors:V}),(0,r.createElement)(h,{className:D,nestedHeadingList:U,isSelected:i,listTag:E,toggleItemVisibility:e=>{const t=A();t[e].isExcluded=!t[e].isExcluded,k(t),o({headings:t})},updateContent:(e,t)=>{const a=A();a[e].content===t?delete a[e].customContent:a[e].customContent=t,k(a),o({headings:a})}}),0===b.length&&(0,r.createElement)(T,null)),e.isHovered&&(0,r.createElement)(s.MarginBottom,null))})),H=e=>{const{attributes:t,className:o}=e,a=(0,s.getResponsiveClasses)(t),l=(0,s.getTypographyClasses)(t),i=(0,s.getAlignmentClasses)(t),{headings:c}=t,d=(0,s.getTypographyClasses)(t,"title%s"),{listType:u}=t,b=(0,n.isEmpty)(u)||"unordered"===u||"none"===u?"ul":"ol",p=m()((0,f.applyFilters)("stackable.table-of-contents.save.blockClasses",[o,"stk-block-table-of-contents",i,a],l,e)),k=(0,f.applyFilters)("stackable.table-of-contents.save.tableOfContentsClasses",m()(["stk-table-of-contents__table",l]),e),g=m()(["stk-table-of-contents__title",d]),v=[1,2,3,4,5,6].filter((e=>t[`includeH${e}`])),C=c.filter((e=>v.includes(e.tag))),y=_(C);return(0,r.createElement)(s.BlockDiv.Content,{className:p,attributes:t,version:e.version},t.generatedCss&&(0,r.createElement)("style",null,t.generatedCss),(0,r.createElement)(s.CustomCSS.Content,{attributes:t}),t.titleShow&&(0,r.createElement)(s.Typography.Content,{className:g,attrNameTemplate:"title%s",attributes:t}),(0,r.createElement)(h.Content,{className:k,nestedHeadingList:y,listTag:b,h1:t.includeH1,h2:t.includeH2,h3:t.includeH3,h4:t.includeH4,h5:t.includeH5,h6:t.includeH6}))},N=(0,w.compose)((0,A.withVersion)(l.version))(H),D=JSON.parse('{"apiVersion":3,"name":"stackable/table-of-contents","title":"Table of Contents","description":"Automatically generated table of contents based on Heading blocks.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["ToC","Index","Outline"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/table-of-contents-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}');var O=o(7545);const L={example:{type:"html"},isSmoothScroll:{type:"boolean",default:""},columns:{stkResponsive:!0,type:"number",default:""},columnGap:{stkResponsive:!0,type:"number",default:""},ordered:{type:"boolean",default:""},indentation:{type:"number",default:""},listType:{type:"string",default:""},iconGap:{stkResponsive:!0,type:"number",default:""},rowGap:{stkResponsive:!0,type:"number",default:""},headings:{type:"array",default:[]},includeH1:{type:"boolean",default:!1},includeH2:{type:"boolean",default:!0},includeH3:{type:"boolean",default:!0},includeH4:{type:"boolean",default:!0},includeH5:{type:"boolean",default:!0},includeH6:{type:"boolean",default:!0}},R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.version;const t=new O.AttributeObject;return s.Alignment.addAttributes(t),s.Advanced.addAttributes(t),s.Transform.addAttributes(t),s.BlockDiv.addAttributes(t),s.Style.addAttributes(t),s.CustomAttributes.addAttributes(t),s.CustomCSS.addAttributes(t),s.EffectsAnimations.addAttributes(t),s.Responsive.addAttributes(t),s.ConditionalDisplay.addAttributes(t),s.Typography.addAttributes(t,"ul,ol",{hasTextTag:!1,multiline:"li",multilineWrapperTags:["ol","ul"]}),s.MarginBottom.addAttributes(t),t.add({attributes:L,versionAdded:"3.2.0",versionDeprecated:""}),t.addDefaultValues({attributes:{htmlTag:"nav"},versionAdded:"3.2.0",versionDeprecated:""}),s.Typography.addAttributes(t,".stk-table-of-contents__title",{hasTextTag:!1,hasTextContent:!0,attrNameTemplate:"title%s",defaultText:(0,p.__)("Table of Contents",l.i18n)}),t.add({attributes:{titleShow:{type:"boolean",default:!0}},versionAdded:"3.6.3",versionDeprecated:""}),t.getMerged(e)},U=R(l.version),P={attributes:{example:`<li><a href="#0">${(0,p._x)("Introduction","Table of Contents example text",l.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Chapter 1: Abstract","Table of Contents example text",l.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Chapter 2: History","Table of Contents example text",l.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Chapter 3: Main Content","Table of Contents example text",l.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Chapter 4: Additional Thoughts","Table of Contents example text",l.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Conclusion","Table of Contents example text",l.i18n)}<a/></li>`},innerBlocks:[]};var V=o(4247),F=o.n(V);(0,f.addFilter)("stackable.table-of-contents.save.blockClasses","stackable/classesNotRendered",((e,t,o)=>0===F()(o.version,"3.6.2")?(e.push(t),e):e)),(0,f.addFilter)("stackable.table-of-contents.save.tableOfContentsClasses","stackable/classesNotRendered",((e,t)=>0===F()(t.version,"3.6.2")?"stk-table-of-contents__table":e));const G=[{attributes:R("3.12.11"),save:(0,A.withVersion)("3.12.11")(H),isEligible:e=>{const t=s.deprecateBlockShadowColor.isEligible(e),o=s.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=s.deprecateContainerBackgroundColorOpacity.migrate(t),t=s.deprecateBlockBackgroundColorOpacity.migrate(t),t=s.deprecateTypographyGradientColor.migrate("%s")(t),t=s.deprecateTypographyGradientColor.migrate("title%s")(t),t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),t}},{attributes:R("3.11.9"),save:(0,A.withVersion)("3.11.9")(H),isEligible:e=>{const t=s.deprecateContainerBackgroundColorOpacity.isEligible(e),o=s.deprecateBlockBackgroundColorOpacity.isEligible(e),a=s.deprecateTypographyGradientColor.isEligible("%s")(e),n=s.deprecateTypographyGradientColor.isEligible("title%s")(e);return t||o||a||n},migrate:e=>{let t={...e};return t=s.deprecateContainerBackgroundColorOpacity.migrate(t),t=s.deprecateBlockBackgroundColorOpacity.migrate(t),t=s.deprecateTypographyGradientColor.migrate("%s")(t),t=s.deprecateTypographyGradientColor.migrate("title%s")(t),t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),t}},{attributes:R("3.7.9"),save:(0,A.withVersion)("3.7.9")(H),migrate:e=>{let t=s.deprecateContainerBackgroundColorOpacity.migrate(e);return t=s.deprecateTypographyGradientColor.migrate("%s")(t),t=s.deprecateTypographyGradientColor.migrate("title%s")(t),t=s.deprecateBlockShadowColor.migrate(t),t=s.deprecateContainerShadowColor.migrate(t),s.deprecateBlockBackgroundColorOpacity.migrate(t)}},{attributes:R("3.6.2"),migrate:e=>({...e,titleShow:!1}),save:(0,A.withVersion)("3.6.2")(H)}],q={...D,icon:a.TableOfContentsIcon,attributes:U,supports:{anchor:!0,spacing:!0,stkSaveBlockStyle:[["stackable/table-of-contents",{}],["core/heading",{content:(0,p._x)("Introduction","Table of Contents example text",l.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Chapter 1: Abstract","Table of Contents example text",l.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Chapter 2: History","Table of Contents example text",l.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Chapter 3: Main Content","Table of Contents example text",l.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Chapter 4: Additional Thoughts","Table of Contents example text",l.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Conclusion","Table of Contents example text",l.i18n),anchor:"heading",level:2}]]},example:P,deprecated:G,edit:M,save:N};(0,f.addFilter)("stackable.table-of-contents.design.filtered-block-attributes","stackable/table-of-contents",(e=>(0,n.omit)(e,["headings"])))},6575:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/table-of-contents",transform:e=>["stackable/columns",{...e},[["stackable/column",{},[["stackable/text",{text:"Table of Contents"}],["core/list",{},[["core/list-item",{content:"First line of content"}],["core/list-item",{content:"Second line of content"}],["core/list-item",{content:"Third line of content"}]]]]]]]},n=a},8775:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>I});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.addBlockStyles("tabPanelOffset",[{selector:"",styleRule:"--tabs-gap",attrName:"tabPanelOffset",key:"tabPanelOffset",format:"%spx",responsive:"all"}]),r.addBlockStyles("equalTabHeight",[{selector:".%s .stk-block-tab-content .stk-block-content .stk-block-column[hidden]",renderIn:"save",styleRule:"display",attrName:"equalTabHeight",key:"equalTabHeight",valueCallback:e=>e?void 0:"none",responsive:"all"}]),l.BlockDiv.addStyles(r),l.MarginBottom.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r),l.Separator.addStyles(r);const s=r;var c=o(9107),d=o(910),u=o(4184),b=o.n(u),m=o(78),p=o(9783),k=o(3749),g=o(3284),h=o(8003);const v=[["stackable/tab-labels",{tabLabels:[{label:(0,h.sprintf)((0,h.__)("Tab %d",d.i18n),1),icon:""},{label:(0,h.sprintf)((0,h.__)("Tab %d",d.i18n),2),icon:""},{label:(0,h.sprintf)((0,h.__)("Tab %d",d.i18n),3),icon:""}],blockShadow:"inset 0px -1px 0px 0px rgba(0,0,0, 0.1)",tabBorderType:"solid",tabBorderColor:"transparent",tabBorderWidth:{top:0,right:0,bottom:2,left:0},activeTabBorderColor:"#000000",tabTextColor1:"#999999",activeTabTextColor:"#000000",tabTextColorHover:"#000000",tabIconColor1:"#909090",activeTabIconColor1:"#000000",tabIconColor1Hover:"#909090",activeTabIconColor1Hover:"#000000",tabBackgroundColor:"transparent"}],["stackable/tab-content",{}]],C=(0,n.memo)((e=>{var t,o,a;return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(l.ColumnsControl,{label:(0,h.__)("Tabs",d.i18n),rootClientId:null===(t=e.tabContentBlock)||void 0===t?void 0:t.clientId,onChangeCallback:(t,o)=>{e.setTemplateLock(!1),setTimeout((()=>{t(o),e.setTemplateLock(!0)}),1),e.hasMultiSelectedBlocks?e.multiInnerBlocks.forEach((t=>{if(null!=t&&t.length){const a="stackable/tab-labels"===t[0].name?t[0]:t[1];e.updateColumns(o,a.clientId)}})):e.updateColumns(o,e.tabLabelsBlock.clientId)},newColumnAttributes:{customAttributes:[["role","tabpanel"]]}}),(0,n.createElement)(i.AdvancedSelectControl,{label:(0,h.__)("Initial Tab Open",d.i18n),attribute:"initialTabOpen",options:null===(o=e.tabContentBlock)||void 0===o||null===(a=o.innerBlocks)||void 0===a?void 0:a.map(((e,t)=>({value:0===t?"":t+1,label:t+1})))}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,h.__)("Equal tab height",d.i18n),attribute:"equalTabHeight",defaultValue:!1}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,h.__)("Tab Orientation",d.i18n),controls:[{value:"",title:(0,h.__)("Horizontal",d.i18n)},{value:"vertical",title:(0,h.__)("Vertical",d.i18n)}],attribute:"tabOrientation"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,h.__)("Tab Panel Offset",d.i18n),min:0,sliderMax:100,placeholder:"16",attribute:"tabPanelOffset",responsive:"all"}),(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,h.__)("Tab Panel Effect",d.i18n),controls:[{value:"",title:(0,h.__)("Fade",d.i18n)},{value:"immediate",title:(0,h.__)("Immediate",d.i18n)}],attribute:"tabPanelEffect"})),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(i.ControlSeparator,null)),(0,n.createElement)(l.ContentAlign.InspectorControls,null),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-tabs"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null))})),y=(0,k.compose)(p.withBlockWrapperIsHovered,p.withQueryLoopContext,p.withBlockAttributeContext,(0,c.vB)("initialTabOpen"))((e=>{const{className:t,clientId:o}=e,a=(0,l.getSeparatorClasses)(e.attributes),r=(0,l.getAlignmentClasses)(e.attributes),{hasMultiSelectedBlocks:c,multiInnerBlocks:u,innerBlocks:p,hasInnerBlocks:k}=(0,g.useSelect)((e=>{const t=e("core/block-editor").getMultiSelectedBlocks(),a=t.map((e=>e.innerBlocks)),n=e("core/block-editor").getBlock(o).innerBlocks;return{hasMultiSelectedBlocks:t.length>1,multiInnerBlocks:a,innerBlocks:n,hasInnerBlocks:n.length>0}}),[o]);let h=null,y=null;null!=p&&p.length&&(y="stackable/tab-labels"===p[0].name?p[0]:p[1],h="stackable/tab-content"===p[0].name?p[0]:p[1]);const f=b()([t,"stk-block-tabs",a]),B=b()(["stk-inner-blocks",r,"stk-block-content",{"stk-block-tabs--vertical":"vertical"===e.attributes.tabOrientation,"stk-block-tabs--horizontal":"vertical"!==e.attributes.tabOrientation,"stk-block-tabs--fade":"immediate"!==e.attributes.tabPanelEffect,"stk-block-tabs--immediate":"immediate"===e.attributes.tabPanelEffect}],(0,l.getContentAlignmentClasses)(e.attributes)),S=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:d.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(C,{tabContentBlock:h,hasMultiSelectedBlocks:c,multiInnerBlocks:u,tabLabelsBlock:y,updateColumns:(e,t)=>{const o=t,a=(0,g.select)("core/block-editor").getBlockAttributes(t).tabLabels;if(e>a.length){const t=[...a];for(;t.length<e;)t.push({label:"",icon:""});(0,g.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,g.dispatch)("core/block-editor").updateBlockAttributes(o,{tabLabels:t})}else if(e<a.length){const t=[...a].slice(0,e);(0,g.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,g.dispatch)("core/block-editor").updateBlockAttributes(o,{tabLabels:t})}},setTemplateLock:e.setTemplateLock}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:f},S&&(0,n.createElement)("style",{key:"block-css"},S),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-tabs"}),(0,n.createElement)(l.Separator,null,(0,n.createElement)("div",{className:B,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},(0,n.createElement)(m.InnerBlocks,{template:v,templateLock:"insert",orientation:""!==e.attributes.tabOrientation?"horizontal":"vertical"})))),e.isHovered&&k&&(0,n.createElement)(l.MarginBottom,null))}));var f=o(3882);const B=e=>{const{attributes:t}=e,o=(0,l.getRowClasses)(e.attributes),a=(0,l.getSeparatorClasses)(e.attributes),i=(0,l.getAlignmentClasses)(e.attributes),r=(0,l.getResponsiveClasses)(e.attributes),s=b()([e.className,"stk-block-tabs",r,a]),c=b()((0,f.applyFilters)("stackable.tabs.save.contentClassNames",[[o,"stk-inner-blocks",i,"stk-block-content",{"stk-block-tabs--vertical":"vertical"===e.attributes.tabOrientation,"stk-block-tabs--horizontal":"vertical"!==e.attributes.tabOrientation,"stk-block-tabs--fade":"immediate"!==e.attributes.tabPanelEffect,"stk-block-tabs--immediate":"immediate"===e.attributes.tabPanelEffect}],(0,l.getContentAlignmentClasses)(e.attributes)],e));return(0,n.createElement)(l.BlockDiv.Content,{className:s,attributes:t,version:e.version,"data-initial-tab":e.attributes.initialTabOpen||"1"},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,n.createElement)(l.Separator.Content,{attributes:t},(0,n.createElement)("div",{className:c},(0,n.createElement)(m.InnerBlocks.Content,null))))},S=(0,k.compose)((0,p.withVersion)(d.version))(B);var _=o(7545);const A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new _.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.MarginBottom.addAttributes(t),l.Row.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),l.Separator.addAttributes(t),l.ContentAlign.addAttributes(t),t.add({attributes:{initialTabOpen:{type:"string",default:""},tabOrientation:{type:"string",default:""},tabPanelOffset:{type:"number",default:"",stkResponsive:!0},tabPanelEffect:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.add({attributes:{equalTabHeight:{type:"boolean",default:!1}},versionAdded:"3.12.4",versionDeprecated:""}),t.getMerged(e)},w=A(d.version),E=JSON.parse('{"apiVersion":3,"name":"stackable/tabs","title":"Tabs","description":"Organize and display content in multiple tabs.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["toggle"],"providesContext":{"stackable/initialTabOpen":"initialTabOpen","stackable/tabOrientation":"tabOrientation","stackable/tabPanelEffect":"tabPanelEffect","stackable/equalTabHeight":"equalTabHeight"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/tabs-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),T={attributes:{uniqueId:"1234567"},innerBlocks:[{name:"stackable/tab-labels",attributes:{uniqueId:"1234568",tabLabels:[{label:(0,h.sprintf)((0,h.__)("Tab %d",d.i18n),1)},{label:(0,h.sprintf)((0,h.__)("Tab %d",d.i18n),2)},{label:(0,h.sprintf)((0,h.__)("Tab %d",d.i18n),3)}]},innerBlocks:[]},{name:"stackable/tab-content",attributes:{uniqueId:"1234569"},innerBlocks:[{name:"stackable/column",attributes:{uniqueId:"1234569"},innerBlocks:[{name:"stackable/text",attributes:{uniqueId:"1234569",text:(0,h.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",d.i18n)},innerBlocks:[]}]}]}]},x=[{attributes:A("3.12.11"),save:(0,p.withVersion)("3.12.11")(B),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return l.deprecateContainerBackgroundColorOpacity.isEligible(e)&&(t=l.deprecateContainerBackgroundColorOpacity.migrate(t)),l.deprecateBlockBackgroundColorOpacity.isEligible(e)&&(t=l.deprecateBlockBackgroundColorOpacity.migrate(t)),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),{...t,equalTabHeight:!0}}},{attributes:A("3.12.3"),migrate:e=>{let t={...e};return l.deprecateContainerBackgroundColorOpacity.isEligible(e)&&(t=l.deprecateContainerBackgroundColorOpacity.migrate(t)),l.deprecateBlockBackgroundColorOpacity.isEligible(e)&&(t=l.deprecateBlockBackgroundColorOpacity.migrate(t)),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),{...t,equalTabHeight:!0}},save:(0,p.withVersion)("3.12.3")(B)},{attributes:A("3.11.9"),save:(0,p.withVersion)("3.11.9")(B),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}}],I={...E,icon:a.TabsIcon,attributes:w,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkDefaultTab:"layout",stkColumnResize:!1,spacing:!0},example:T,deprecated:x,edit:y,save:S}},2270:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/tabs",transform:(e,t)=>{var o;const a=null===(o=t[0][1])||void 0===o?void 0:o.tabLabels,n=t[1][2],l=[];return a.forEach(((e,t)=>{l.push(["stackable/heading",{text:null==e?void 0:e.label}]),n[t]&&l.push(n[t])})),["stackable/columns",{...e},[["stackable/column",{},l]]]}},n=a},9107:(e,t,o)=>{"use strict";o.d(t,{VT:()=>r,vB:()=>s});var a=o(7462),n=o(2610),l=o(3749);const i=(0,n.createContext)(null),r=()=>(0,n.useContext)(i),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,l.createHigherOrderComponent)((t=>o=>{const l=e?parseInt(o.attributes[e],10):null,[r,s]=(0,n.useState)(l||1),[c,d]=(0,n.useState)(!0);return(0,n.createElement)(i.Provider,{value:[r,s,c,d]},(0,n.createElement)(t,(0,a.Z)({},o,{templateLock:c,setTemplateLock:d})))}),"withActiveTab")}},4159:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>L});var a=o(910),n=o(8003),l=o(3882),i=o(7462),r=o(2610);o(7294);const s=[["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="facebook-square" class="svg-inline--fa fa-facebook-square fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#3b5998"}],["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#00acee"}],["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#c13584"}],["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#c4302b"}],["stackable/icon-button",{icon:'<svg data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',buttonBackgroundColor:"#0e76a8"}]],c=(0,l.applyFilters)("stackable.team-member.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Default",a.i18n)),attributes:{className:"is-style-default",hasContainer:!0,contentAlign:"center"},isDefault:!0,pickerTitle:(0,n.__)("Default",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 9h22v30H13V9zm-2 0a2 2 0 012-2h22a2 2 0 012 2v30a2 2 0 01-2 2H13a2 2 0 01-2-2V9zm13 14a5 5 0 100-10 5 5 0 000 10zm7 4v2H17v-2h14zm0 8v-2H17v2h14z"}))},isActive:["className"],innerBlocks:[["stackable/image",{imageHeight:150,imageWidth:150,imageWidthUnit:"px",imageShape:"circle"}],["stackable/heading",{text:(0,n.__)("Name",a.i18n),textTag:"h3"}],["stackable/subtitle",{text:(0,n.__)("Position",a.i18n)}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",a.i18n)}],["stackable/button-group",{},s]],scope:["block"]},{name:"plain",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Plain",a.i18n)),attributes:{className:"is-style-plain",hasContainer:!1,contentAlign:"left"},pickerTitle:(0,n.__)("Plain",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 18a5 5 0 11-10 0 5 5 0 0110 0zm-10 9h18v2H15v-2zm18 6H15v2h18v-2z"}))},isActive:["className"],innerBlocks:[["stackable/image",{}],["stackable/heading",{text:(0,n.__)("Name",a.i18n),textTag:"h3"}],["stackable/subtitle",{text:(0,n.__)("Position",a.i18n)}],["stackable/button-group",{},s]],scope:["block"]},{name:"horizontal",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Horizontal",a.i18n)),attributes:{className:"is-style-horizontal"},pickerTitle:(0,n.__)("Horizontal",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 15h34v18H7V15zm-2 0a2 2 0 012-2h34a2 2 0 012 2v18a2 2 0 01-2 2H7a2 2 0 01-2-2V15zm27 14a5 5 0 100-10 5 5 0 000 10zm-21-9h11v2H11v-2zm11 6H11v2h11v-2z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]},{name:"horizontal-2",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Horizontal 2",a.i18n)),attributes:{className:"is-style-horizontal-2"},pickerTitle:(0,n.__)("Horizontal 2",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 16h35v16H7V16zm-2 0a2 2 0 012-2h35a2 2 0 012 2v16a2 2 0 01-2 2H7a2 2 0 01-2-2V16zm10 12a4 4 0 100-8 4 4 0 000 8zm7-8h11v2H22v-2zm16 0h-2v2h2v-2zm-2 6h2v2h-2v-2zm-3 0H22v2h11v-2z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]},{name:"cover",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Cover",a.i18n)),attributes:{className:"is-style-cover"},pickerTitle:(0,n.__)("Cover",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35 38V16h-5a6 6 0 01-12 0h-5v22h22zM13 8a2 2 0 00-2 2v28a2 2 0 002 2h22a2 2 0 002-2V10a2 2 0 00-2-2H13zm11 12a4 4 0 100-8 4 4 0 000 8zm-7 6h14v2H17v-2zm14 8v-2H17v2h14z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]}]),d=JSON.parse('{"apiVersion":3,"name":"stackable/team-member","title":"Team Member","description":"Display members of your team or your office. Use multiple Team Member blocks if you have a large team.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/team-member-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/image","stackable/heading","stackable/subtitle","stackable/text","stackable/button-group","stackable/button"]}');var u=o(9384),b=o(7200);const m=new b.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});u.Alignment.addStyles(m),u.BlockDiv.addStyles(m),u.Advanced.addStyles(m),u.Transform.addStyles(m),u.EffectsAnimations.addStyles(m),u.ContainerDiv.addStyles(m,{sizeSelector:".stk-block-team-member__content",sizeHorizontalAlignRule:"margin"}),u.MarginBottom.addStyles(m);const p=m;var k=o(8085),g=o(4184),h=o.n(g),v=o(9783),C=o(3749),y=o(78),f=o(3284);const B=c[0].innerBlocks,S=(0,r.memo)((()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(b.InspectorTabs,null),(0,r.createElement)(u.ContentAlign.InspectorControls,null),(0,r.createElement)(u.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,r.createElement)(u.BlockDiv.InspectorControls,null),(0,r.createElement)(u.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,r.createElement)(u.BlockLink.InspectorControls,null),(0,r.createElement)(u.Advanced.InspectorControls,null),(0,r.createElement)(u.Transform.InspectorControls,null),(0,r.createElement)(u.EffectsAnimations.InspectorControls,null),(0,r.createElement)(u.CustomAttributes.InspectorControls,null),(0,r.createElement)(u.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-team-member"}),(0,r.createElement)(u.Responsive.InspectorControls,null),(0,r.createElement)(u.ConditionalDisplay.InspectorControls,null),(0,r.createElement)(b.InspectorStyleControls,null,(0,r.createElement)(b.InspectorBottomTip,null))))),_=(0,C.compose)(v.withBlockWrapperIsHovered,v.withQueryLoopContext,v.withBlockAttributeContext)((e=>{var t;const{className:o,attributes:n}=e,{hasInnerBlocks:l,innerBlocks:i}=(0,f.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),s=(0,u.getAlignmentClasses)(e.attributes),c=h()([o,"stk-block-team-member"]),d=h()(["stk-block-content","stk-inner-blocks",s,"stk-block-team-member__content",`stk-${n.uniqueId}-inner-blocks`],(0,u.getContentAlignmentClasses)(e.attributes)),m=null===(t=(0,k.last)(i))||void 0===t?void 0:t.name,g=l?["stackable/text","core/paragraph"].includes(m)?()=>(0,r.createElement)(r.Fragment,null):y.InnerBlocks.DefaultBlockAppender:y.InnerBlocks.ButtonBlockAppender,v=(0,b.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:a.version});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(S,null),(0,r.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c,enableVariationPicker:!0},v&&(0,r.createElement)("style",{key:"block-css"},v),(0,r.createElement)(u.CustomCSS,{mainBlockClass:"stk-block-team-member"}),(0,r.createElement)(u.ContainerDiv,{className:d},(0,r.createElement)(y.InnerBlocks,{template:B,templateLock:!1,renderAppender:g}))),e.isHovered&&l&&(0,r.createElement)(u.MarginBottom,null))}));var A=o(1991),w=o.n(A);const E=e=>{const{attributes:t,className:o}=e,a=(0,u.getAlignmentClasses)(t),n=(0,u.getResponsiveClasses)(t),i=w()([o,"stk-block-team-member",n]),s=w()(["stk-block-team-member__content"],(0,u.getContentAlignmentClasses)(t)),c=w()((0,l.applyFilters)("stackable.team-member.save.innerClassNames",["stk-block-content","stk-inner-blocks",a,`stk-${t.uniqueId}-inner-blocks`],e));return(0,r.createElement)(u.BlockDiv.Content,{className:i,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,r.createElement)("style",null,t.generatedCss),(0,r.createElement)(u.CustomCSS.Content,{attributes:t}),(0,r.createElement)(u.ContainerDiv.Content,{className:s,attributes:t},(0,r.createElement)("div",{className:c},(0,r.createElement)(y.InnerBlocks.Content,null)),(0,r.createElement)(u.BlockLink.Content,{attributes:t})))},T=(0,C.compose)((0,v.withVersion)(a.version))(E);var x=o(7545);const I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.version;const t=new x.AttributeObject;return u.BlockDiv.addAttributes(t),u.Style.addAttributes(t),u.MarginBottom.addAttributes(t),u.ContainerDiv.addAttributes(t),u.Alignment.addAttributes(t),u.Advanced.addAttributes(t),u.Transform.addAttributes(t),u.EffectsAnimations.addAttributes(t),u.CustomAttributes.addAttributes(t),u.ConditionalDisplay.addAttributes(t),u.CustomCSS.addAttributes(t),u.Responsive.addAttributes(t),u.BlockLink.addAttributes(t),u.ContentAlign.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{hasContainer:!0,contentAlign:"center"},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},z=I(a.version),M={attributes:{uniqueId:"b493364",hasBackground:!1,hasBorders:!1,hasContainer:!0,contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],displayCondition:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",className:"is-style-default"},innerBlocks:[{name:"stackable/image",attributes:{uniqueId:"8caa4cd",hasBackground:!1,hasBorders:!1,imageShow:!0,imageUrl:"https://source.unsplash.com/300x300/?employee",imageSize:"full",imageBorderRadius:90,imageHeight:150,imageWidth:150,imageShapeStretch:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",imageWidthUnitTablet:"%",imageWidthUnitMobile:"%",imageWidthUnit:"px"},innerBlocks:[]},{name:"stackable/heading",attributes:{uniqueId:"829fc66",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Name",a.i18n),textTag:"h3",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/subtitle",attributes:{uniqueId:"23fdb6f",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Position",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/text",attributes:{uniqueId:"b5a76e8",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/button-group",attributes:{uniqueId:"7cac9a8",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/icon-button",attributes:{uniqueId:"575c851",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#3b5998",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="facebook-square" class="svg-inline--fa fa-facebook-square fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"a593b86",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#00acee",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"af6fc5a",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#c13584",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"aa07857",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#c4302b",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]},{name:"stackable/icon-button",attributes:{uniqueId:"3356de5",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},buttonBackgroundColor:"#0e76a8",linkHasLink:!0,linkNewTab:!1,linkHasTitle:!0,icon:'<svg data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><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"></path></svg>',showBackgroundShape:!1,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[]}]}]};var H=o(4247),N=o.n(H);(0,l.addFilter)("stackable.team-member.save.innerClassNames","stackable/3.8.0",((e,t)=>(N()(t.version,"3.8.0")>=0||e.push({[`stk-${t.attributes.uniqueId}-inner-blocks`]:!1,"stk--block-horizontal-flex":!1,[`stk--block-orientation-${t.attributes.innerBlockOrientation}`]:t.attributes.innerBlockOrientation}),e)));const D=[{attributes:I("3.12.11"),save:(0,v.withVersion)("3.12.11")(E),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=u.deprecateContainerBackgroundColorOpacity.migrate(a),a=u.deprecateBlockBackgroundColorOpacity.migrate(a),a=u.deprecateBlockShadowColor.migrate(a),a=u.deprecateContainerShadowColor.migrate(a),a}},{attributes:I("3.11.9"),save:(0,v.withVersion)("3.11.9")(E),isEligible:e=>{const t=u.deprecateContainerBackgroundColorOpacity.isEligible(e),o=u.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=u.deprecateContainerBackgroundColorOpacity.migrate(a),a=u.deprecateBlockBackgroundColorOpacity.migrate(a),a=u.deprecateBlockShadowColor.migrate(a),a=u.deprecateContainerShadowColor.migrate(a),a}},{attributes:I("3.7.9"),save:(0,v.withVersion)("3.7.9")(E),isEligible:e=>e.version<2||void 0===e.version,migrate:(e,t)=>{let o={...e,version:2};e.containerVerticalAlign&&(o={...o,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const a=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&a&&(o={...o,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),o={...o,innerBlockColumnGap:0}),o=u.deprecateContainerBackgroundColorOpacity.migrate(o),o=u.deprecateBlockBackgroundColorOpacity.migrate(o),o=u.deprecateBlockShadowColor.migrate(o),o=u.deprecateContainerShadowColor.migrate(o),[o,t]}}];var O=o(2210);const L={...d,icon:o(9467).TeamMemberIcon,attributes:z,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:M,variations:c,deprecated:D,edit:_,save:T,substitute:O.default}},2210:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/team-member",transform:(e,t)=>["stackable/columns",{},[["stackable/column",{},t]]]},n=a},1421:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(910),n=o(8003),l=o(3882),i=o(7462),r=o(2610);o(7294);const s=(0,l.applyFilters)("stackable.testimonial.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Default",a.i18n)),attributes:{className:"is-style-default",hasContainer:!0,contentAlign:"center"},isDefault:!0,pickerTitle:(0,n.__)("Default",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 9H9v30h30V9zM9 7a2 2 0 00-2 2v30a2 2 0 002 2h30a2 2 0 002-2V9a2 2 0 00-2-2H9zm4 11h22v2H13v-2zm22-5H13v2h22v-2zm-8 14a3 3 0 11-6 0 3 3 0 016 0zm8 8v-2H13v2h22z"}))},isActive:["className"],innerBlocks:[["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",a.i18n)}],["stackable/image",{imageHeight:75,imageWidth:75,imageWidthUnit:"px",imageShape:"circle"}],["stackable/heading",{text:(0,n.__)("Name",a.i18n),textTag:"h3"}],["stackable/subtitle",{text:(0,n.__)("Position",a.i18n)}]],scope:["block"]},{name:"compact",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Compact",a.i18n)),attributes:{className:"is-style-compact",hasContainer:!1,contentAlign:""},pickerTitle:(0,n.__)("Compact",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 9H9v30h30V9zM9 7a2 2 0 00-2 2v30a2 2 0 002 2h30a2 2 0 002-2V9a2 2 0 00-2-2H9zm4 11h22v2H13v-2zm22-5H13v2h22v-2zm-8 14a3 3 0 11-6 0 3 3 0 016 0zm8 8v-2H13v2h22z"}))},isActive:["className"],innerBlocks:[["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.","Content placeholder",a.i18n)}],["stackable/columns",{columnJustify:"flex-start"},[["stackable/column",{},[["stackable/image",{imageHeight:75,imageWidth:75,imageWidthUnit:"px",imageShape:"circle"}]]],["stackable/column",{contentAlign:"left"},[["stackable/heading",{text:(0,n.__)("Name",a.i18n),textTag:"h3",blockMargin:{bottom:0}}],["stackable/subtitle",{text:(0,n.__)("Position",a.i18n)}]]]]]],scope:["block"]},{name:"horizontal",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Horizontal",a.i18n)),attributes:{className:"is-style-horizontal"},pickerTitle:(0,n.__)("Horizontal",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 22a4 4 0 100-8 4 4 0 000 8zm10-6h22v16H19V16zm-2 0a2 2 0 012-2h22a2 2 0 012 2v16a2 2 0 01-2 2H19a2 2 0 01-2-2V16zm6 4h14v2H23v-2zm14 6H23v2h14v-2z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]},{name:"bubble",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Bubble",a.i18n)),attributes:{className:"is-style-bubble"},pickerTitle:(0,n.__)("Bubble",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 8a2 2 0 00-2 2v15a2 2 0 002 2h30a2 2 0 002-2V10a2 2 0 00-2-2H9zm26 12H13v2h22v-2zm-22-6h22v2H13v-2zm-2 25a4 4 0 100-8 4 4 0 000 8zm8-8h22v2H19v-2zm22 6H19v2h22v-2z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]},{name:"vertical",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Vertical",a.i18n)),attributes:{className:"is-style-vertical"},pickerTitle:(0,n.__)("Vertical",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12H9v10h23.268L34 25l1.732-3H39V12zM9 10a2 2 0 00-2 2v24a2 2 0 002 2h30a2 2 0 002-2V12a2 2 0 00-2-2H9zm4 6h22v2H13v-2zm22 14H13v2h22v-2z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]},{name:"inverted-vertical",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",a.i18n),(0,n.__)("Inverted Vertical",a.i18n)),attributes:{className:"is-style-inverted-vertical"},pickerTitle:(0,n.__)("Inverted Vertical",a.i18n),pickerIcon:function(e){return(0,r.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,r.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39 36V23h-4.268L33 20l-1.732 3H9v13h30zM9 10a2 2 0 00-2 2v24a2 2 0 002 2h30a2 2 0 002-2V12a2 2 0 00-2-2H9zm4 19h22v2H13v-2zm22-15H13v2h22v-2z"}))},isActive:["className"],isPremium:!a.isPro,scope:["block"]}]),c=JSON.parse('{"apiVersion":3,"name":"stackable/testimonial","title":"Testimonial","description":"Showcase what your users say about your product or service.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/testimonial-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/image-box"],"stk-substitution-blocks":["stackable/image","stackable/heading","stackable/subtitle","stackable/text"]}');var d=o(9384),u=o(7200);const b=new u.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});d.Alignment.addStyles(b),d.BlockDiv.addStyles(b),d.Advanced.addStyles(b),d.Transform.addStyles(b),d.EffectsAnimations.addStyles(b),d.ContainerDiv.addStyles(b,{sizeSelector:".stk-block-testimonial__content",sizeHorizontalAlignRule:"margin"}),d.MarginBottom.addStyles(b);const m=b;var p=o(8085),k=o(4184),g=o.n(k),h=o(9783),v=o(3749),C=o(78),y=o(3284);const f=s[0].innerBlocks,B=(0,r.memo)((()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.InspectorTabs,null),(0,r.createElement)(d.ContentAlign.InspectorControls,null),(0,r.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,r.createElement)(d.BlockDiv.InspectorControls,null),(0,r.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,r.createElement)(d.BlockLink.InspectorControls,null),(0,r.createElement)(d.Advanced.InspectorControls,null),(0,r.createElement)(d.Transform.InspectorControls,null),(0,r.createElement)(d.EffectsAnimations.InspectorControls,null),(0,r.createElement)(d.CustomAttributes.InspectorControls,null),(0,r.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-testimonial"}),(0,r.createElement)(d.Responsive.InspectorControls,null),(0,r.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,r.createElement)(u.InspectorStyleControls,null,(0,r.createElement)(u.InspectorBottomTip,null))))),S=(0,v.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext)((e=>{var t;const{className:o,attributes:n}=e,{hasInnerBlocks:l,innerBlocks:i}=(0,y.useSelect)((t=>{const{getBlock:o}=t("core/block-editor"),a=o(e.clientId).innerBlocks;return{hasInnerBlocks:a.length>0,innerBlocks:a}}),[e.clientId]),s=(0,d.getAlignmentClasses)(e.attributes),c=g()([o,"stk-block-testimonial"]),b=g()(["stk-block-content","stk-inner-blocks",s,"stk-block-testimonial__content",`stk-${n.uniqueId}-inner-blocks`],(0,d.getContentAlignmentClasses)(e.attributes)),k=null===(t=(0,p.last)(i))||void 0===t?void 0:t.name,h=l?["stackable/text","core/paragraph"].includes(k)?()=>(0,r.createElement)(r.Fragment,null):C.InnerBlocks.DefaultBlockAppender:C.InnerBlocks.ButtonBlockAppender,v=(0,u.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:a.version});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(B,null),(0,r.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c,enableVariationPicker:!0},v&&(0,r.createElement)("style",{key:"block-css"},v),(0,r.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-testimonial"}),(0,r.createElement)(d.ContainerDiv,{className:b},(0,r.createElement)(C.InnerBlocks,{template:f,templateLock:!1,renderAppender:h}))),e.isHovered&&l&&(0,r.createElement)(d.MarginBottom,null))}));var _=o(1991),A=o.n(_);const w=e=>{const{attributes:t,className:o}=e,a=(0,d.getAlignmentClasses)(t),n=(0,d.getResponsiveClasses)(t),i=A()([o,"stk-block-testimonial",n]),s=A()(["stk-block-testimonial__content"],(0,d.getContentAlignmentClasses)(t)),c=A()((0,l.applyFilters)("stackable.testimonial.save.innerClassNames",["stk-block-content","stk-inner-blocks",a,`stk-${t.uniqueId}-inner-blocks`],e));return(0,r.createElement)(d.BlockDiv.Content,{className:i,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,r.createElement)("style",null,t.generatedCss),(0,r.createElement)(d.CustomCSS.Content,{attributes:t}),(0,r.createElement)(d.ContainerDiv.Content,{className:s,attributes:t},(0,r.createElement)("div",{className:c},(0,r.createElement)(C.InnerBlocks.Content,null)),(0,r.createElement)(d.BlockLink.Content,{attributes:t})))},E=(0,v.compose)((0,h.withVersion)(a.version))(w);var T=o(7545);const x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.version;const t=new T.AttributeObject;return d.BlockDiv.addAttributes(t),d.Style.addAttributes(t),d.MarginBottom.addAttributes(t),d.ContainerDiv.addAttributes(t),d.Alignment.addAttributes(t),d.Advanced.addAttributes(t),d.Transform.addAttributes(t),d.EffectsAnimations.addAttributes(t),d.CustomAttributes.addAttributes(t),d.ConditionalDisplay.addAttributes(t),d.CustomCSS.addAttributes(t),d.Responsive.addAttributes(t),d.BlockLink.addAttributes(t),d.ContentAlign.addAttributes(t),t.add({attributes:{version:{type:"number",source:"attribute",attribute:"data-v",default:void 0}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{hasContainer:!0,contentAlign:"center"},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},I=x(a.version),z={attributes:{uniqueId:"827f26e",hasBackground:!1,hasBorders:!1,hasContainer:!0,contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],displayCondition:{},hideDesktop:!1,hideTablet:!1,hideMobile:!1,blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",containerBackgroundCustomSizeUnit:"%",containerBackgroundCustomSizeUnitTablet:"%",containerBackgroundCustomSizeUnitMobile:"%",className:"is-style-default"},innerBlocks:[{name:"stackable/text",attributes:{uniqueId:"a452770",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Description for this block. Use this space for describing your block. Any text will do. Description for this block. You can use this space for describing your block.",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/image",attributes:{uniqueId:"9f4c781",hasBackground:!1,hasBorders:!1,imageShow:!0,imageUrl:"https://source.unsplash.com/300x300/?selfie",imageSize:"full",imageBorderRadius:90,imageHeight:75,imageWidth:75,imageShapeStretch:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",imageWidthUnitTablet:"%",imageWidthUnitMobile:"%",imageWidthUnit:"px"},innerBlocks:[]},{name:"stackable/heading",attributes:{uniqueId:"3688a95",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Name",a.i18n),textTag:"h3",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},{name:"stackable/subtitle",attributes:{uniqueId:"8dba7d3",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:(0,n.__)("Position",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]};var M=o(4247),H=o.n(M);(0,l.addFilter)("stackable.testimonial.save.innerClassNames","stackable/3.8.0",((e,t)=>(H()(t.version,"3.8.0")>=0||e.push({[`stk-${t.attributes.uniqueId}-inner-blocks`]:!1,"stk--block-horizontal-flex":!1,[`stk--block-orientation-${t.attributes.innerBlockOrientation}`]:t.attributes.innerBlockOrientation}),e)));const N=[{attributes:x("3.12.11"),save:(0,h.withVersion)("3.12.11")(w),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a}},{attributes:x("3.11.9"),save:(0,h.withVersion)("3.11.9")(w),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e),a=e.version<2||void 0===e.version;return t||o||a},migrate:(e,t)=>{const o=e.version<2||void 0===e.version;let a={...e};return o&&(a={...a,version:2},!!e.containerVerticalAlign&&(a={...a,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),a={...a,innerBlockColumnGap:0})),a=d.deprecateContainerBackgroundColorOpacity.migrate(a),a=d.deprecateBlockBackgroundColorOpacity.migrate(a),a=d.deprecateBlockShadowColor.migrate(a),a=d.deprecateContainerShadowColor.migrate(a),a}},{attributes:x("3.7.9"),save:(0,h.withVersion)("3.7.9")(w),isEligible:e=>e.version<2||void 0===e.version,migrate:(e,t)=>{let o={...e,version:2};e.containerVerticalAlign&&(o={...o,containerVerticalAlign:"",innerBlockAlign:e.containerVerticalAlign});const a=!!e.containerBorderType||void 0!==e.containerBorderRadius&&""!==e.containerBorderRadius||!!e.containerShadow;return!e.hasContainer&&a&&(o={...o,hasContainer:!0,containerPadding:{top:0,right:0,bottom:0,left:0},containerBackgroundColor:"transparent"}),"horizontal"===e.innerBlockOrientation&&(t.forEach(((e,t)=>{t&&(e.attributes.blockMargin||(e.attributes.blockMargin={top:"",right:"",bottom:"",left:""}),""===e.attributes.blockMargin.left&&(e.attributes.blockMargin.left=24))})),o={...o,innerBlockColumnGap:0}),o=d.deprecateContainerBackgroundColorOpacity.migrate(o),o=d.deprecateBlockBackgroundColorOpacity.migrate(o),o=d.deprecateBlockShadowColor.migrate(o),o=d.deprecateContainerShadowColor.migrate(o),[o,t]}}],D={...c,icon:o(9467).TestimonialIcon,attributes:I,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:z,variations:s,deprecated:N,edit:S,save:E}},7043:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/testimonial",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{hasContainer:!0},t]]]},n=a},2231:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),n=o(378),l=o(5295),i=o(910);const r={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&i.settings.stackable_enable_text_default_block,transform:e=>(0,n.createBlock)("stackable/text",{text:e.textContent.trim()}),priority:11},{type:"block",isMultiBlock:!0,blocks:["stackable/subtitle"],transform:e=>e.map((e=>{let{...t}=e;return(0,n.createBlock)("stackable/text",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{content:t}=e;return(0,n.createBlock)("stackable/text",{text:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{content:t}=e;return(0,n.createBlock)("stackable/text",{text:t})}))}],to:[{type:"block",isMultiBlock:!0,blocks:["stackable/subtitle"],transform:e=>e.map((e=>{let{...t}=e;return(0,n.createBlock)("stackable/subtitle",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{text:t}=e;return(0,n.createBlock)("core/paragraph",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{text:t}=e;return(0,n.createBlock)("core/heading",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["stackable/icon-label"],transform:e=>e.map((e=>{let{...t}=e;return(0,n.createBlocksFromInnerBlocksTemplate)([["stackable/icon-label",{},l.h.map((e=>("stackable/heading"===e[0]&&(e[1]=t),e)))]])[0]}))}]},s=r;var c=o(7462),d=o(2610),u=o(9384),b=o(7200);const m=new b.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});m.addBlockStyles("columns",[{selector:"",styleRule:"columnCount",attrName:"columns",key:"columns",responsive:"all"}]),m.addBlockStyles("columnGap",[{selector:"",styleRule:"columnGap",attrName:"columnGap",key:"columnGap",responsive:"all",format:"%spx"}]),u.Alignment.addStyles(m),u.BlockDiv.addStyles(m),u.Advanced.addStyles(m),u.Transform.addStyles(m),u.Typography.addStyles(m,{selector:".stk-block-text__text",hoverSelector:".stk-block-text__text:hover"}),u.EffectsAnimations.addStyles(m);const p=m;var k=o(3284),g=o(78),h=o(4184),v=o.n(h),C=o(9783),y=o(7545),f=o(8003),B=o(3882),S=o(3749);(0,B.addFilter)("editor.Autocomplete.completers","stackable/text",((e,t)=>"stackable/text"===t?[...e,(0,y.createBlockCompleter)()]:e));const _=(0,d.memo)((e=>(0,d.createElement)(d.Fragment,null,(0,d.createElement)(b.InspectorTabs,null),(0,d.createElement)(u.Typography.InspectorControls,(0,c.Z)({},e,{hasTextTag:!1,isMultiline:!0,initialOpen:!0,hasTextShadow:!0})),(0,d.createElement)(u.Alignment.InspectorControls,{labelContentAlign:(0,f.sprintf)((0,f.__)("%s Alignment",i.i18n),(0,f.__)("Text",i.i18n)),hasContentJustify:!0}),e.enableColumns&&(0,d.createElement)(b.InspectorLayoutControls,null,(0,d.createElement)(b.AdvancedRangeControl,{label:(0,f.__)("Columns",i.i18n),allowReset:!0,attribute:"columns",min:"1",sliderMax:"3",step:"1",placeholder:"1",responsive:"all"}),(0,d.createElement)(b.AdvancedRangeControl,{label:(0,f.__)("Column Gap",i.i18n),allowReset:!0,attribute:"columnGap",min:"0",sliderMax:"50",responsive:"all"})),(0,d.createElement)(u.BlockDiv.InspectorControls,null),(0,d.createElement)(u.Advanced.InspectorControls,null),(0,d.createElement)(u.Transform.InspectorControls,null),(0,d.createElement)(u.EffectsAnimations.InspectorControls,null),(0,d.createElement)(u.CustomAttributes.InspectorControls,null),(0,d.createElement)(u.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-text"}),(0,d.createElement)(u.Responsive.InspectorControls,null),(0,d.createElement)(u.ConditionalDisplay.InspectorControls,null)))),A=(0,S.compose)(C.withBlockWrapperIsHovered,C.withQueryLoopContext,C.withBlockAttributeContext)((e=>{const{className:t,onReplace:o,onRemove:a,mergeBlocks:l,clientId:r}=e,s=(0,u.getTypographyClasses)(e.attributes),c=(0,u.getAlignmentClasses)(e.attributes),{parentBlock:m,isFirstBlock:h,isLastBlock:C}=(0,k.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:o,getBlock:a}=e("core/block-editor"),n=o(r),l=t(n);return{parentBlock:a(n),isFirstBlock:0===l.indexOf(r),isLastBlock:l.indexOf(r)===l.length-1}}),[r]),y=(0,B.applyFilters)("stackable.text.edit.enable-column",!0,m),S=v()([t,"stk-block-text"]),A=v()(["stk-block-text__text",s,c]),w=(0,B.applyFilters)("stackable.text.edit.placeholder",(0,f.__)("Type / to choose a block",i.i18n),{parentBlock:m,isFirstBlock:h,isLastBlock:C}),E=(0,b.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:i.version}),T=(e=>{const{replaceBlocks:t}=(0,k.useDispatch)(g.store);return(0,d.useCallback)((o=>{var a,l;o.preventDefault();const i=(null===(a=o.clipboardData)||void 0===a?void 0:a.getData("text/html"))||"",r=(null===(l=o.clipboardData)||void 0===l?void 0:l.getData("text/plain"))||"",s=(0,n.pasteHandler)({HTML:i,plainText:r,mode:"BLOCKS"});s&&(o.preventDefault(),t(e,s))}),[e])})(r);return(0,d.createElement)(d.Fragment,null,(0,d.createElement)(_,{enableColumns:y,blockState:e.blockState}),E&&(0,d.createElement)("style",{key:"block-css"},E),(0,d.createElement)(u.CustomCSS,{mainBlockClass:"stk-block-text"}),(0,d.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:S},(0,d.createElement)(u.Typography,{tagName:e.attributes.innerTextTag||"p",className:A,placeholder:w,onMerge:l,onRemove:a,onReplace:o,onPaste:i.settings.stackable_enable_text_default_block&&""===e.attributes.text?T:void 0})),e.isHovered&&(0,d.createElement)(u.MarginBottom,null))})),w=e=>{const{className:t,attributes:o}=e,a=(0,u.getResponsiveClasses)(e.attributes),n=(0,u.getTypographyClasses)(e.attributes),l=(0,u.getAlignmentClasses)(e.attributes),i=v()([t,"stk-block-text",a]),r=v()(["stk-block-text__text",n,l]);return(0,d.createElement)(u.BlockDiv.Content,{className:i,attributes:o,version:e.version},o.generatedCss&&(0,d.createElement)("style",null,o.generatedCss),(0,d.createElement)(u.CustomCSS.Content,{attributes:o}),(0,d.createElement)(u.Typography.Content,{attributes:o,className:r,tagName:o.innerTextTag||"p"}))},E=(0,S.compose)((0,C.withVersion)(i.version))(w),T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.version;const t=new y.AttributeObject;return u.BlockDiv.addAttributes(t),u.Style.addAttributes(t),u.EffectsAnimations.addAttributes(t),u.CustomAttributes.addAttributes(t),u.CustomCSS.addAttributes(t),u.Responsive.addAttributes(t),u.ConditionalDisplay.addAttributes(t),u.Advanced.addAttributes(t),u.Transform.addAttributes(t),u.Alignment.addAttributes(t),u.MarginBottom.addAttributes(t),u.Typography.addAttributes(t,".stk-block-text__text",{hasTextTag:!1}),t.add({attributes:{innerTextTag:{type:"string",default:""},columns:{stkResponsive:!0,type:"number",default:""},columnGap:{stkResponsive:!0,type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},x=T(i.version),I=JSON.parse('{"apiVersion":3,"name":"stackable/text","title":"Text","description":"Start with the building block of all page layouts.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Paragraph"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-text-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),z={attributes:{uniqueId:"65c216a",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},hasP:!1,show:!0,showText:!0,text:`<meta charset="utf-8">${(0,f.__)("Text for this block. Use this space for describing your block. Any text will do. Text for this block. You can use this space for describing your block.",i.i18n)}`,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},M=[{attributes:T("3.12.11"),save:(0,C.withVersion)("3.12.11")(w),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e),a=u.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateTypographyGradientColor.migrate("%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t=u.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:T("3.11.4"),save:(0,C.withVersion)()(w),isEligible:e=>{const t=u.deprecateContainerBackgroundColorOpacity.isEligible(e),o=u.deprecateBlockBackgroundColorOpacity.isEligible(e),a=u.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=u.deprecateContainerBackgroundColorOpacity.migrate(t),t=u.deprecateBlockBackgroundColorOpacity.migrate(t),t=u.deprecateTypographyGradientColor.migrate("%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t=u.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:T("3.7.9"),save:(0,C.withVersion)("3.7.9")(w),migrate:e=>{let t=u.deprecateContainerBackgroundColorOpacity.migrate(e);return t=u.deprecateTypographyGradientColor.migrate("%s")(t),t=u.deprecateBlockShadowColor.migrate(t),t=u.deprecateContainerShadowColor.migrate(t),t=u.deprecateTypographyShadowColor.migrate("%s")(t),u.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var H=o(2740);const N={...I,icon:a.TextIcon,attributes:x,supports:{anchor:!0,spacing:!0,splitting:!0},example:z,edit:A,save:E,deprecated:M,transforms:s,merge:(e,t)=>({text:(e.text||"")+((t.hasOwnProperty("content")?t.content:t.text)||"")}),substitute:H.default}},2740:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/text",transform:e=>["core/paragraph",{content:null==e?void 0:e.text,align:null==e?void 0:e.contentAlign}]},n=a},9882:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),n=o(7462),l=o(2610),i=o(9384),r=o(7200);const s=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.addBlockStyles("timelineAnchor",[{selector:["","~ .stk-block-timeline"],styleRule:"--line-accent-bg-location",attrName:"timelineAnchor",key:"timelineAnchor",format:"%s%"}]),s.addBlockStyles("timelineGap",[{selector:"",styleRule:"--gap",attrName:"timelineGap",key:"timelineGap",responsive:"all",format:"%spx"}]),s.addBlockStyles("timelineDotBorderRadius",[{selector:"",styleRule:"--line-dot-border-radius",attrName:"timelineDotBorderRadius",key:"timelineDotBorderRadius",format:"%spx"}]),s.addBlockStyles("timelineDotSize",[{selector:"",styleRule:"--line-dot-size",attrName:"timelineDotSize",key:"timelineDotSize",format:"%spx"}]),s.addBlockStyles("timelineThickness",[{selector:"",styleRule:"--line-bg-width",attrName:"timelineThickness",key:"timelineThickness",format:"%spx"}]),s.addBlockStyles("timelineOffset",[{selector:"",styleRule:"--content-line",attrName:"timelineOffset",key:"timelineOffset",format:"%spx"}]),s.addBlockStyles("timelineAccentColor",[{selector:"",styleRule:"--line-accent-bg-color",attrName:"timelineAccentColor",key:"timelineAccentColor"}]),s.addBlockStyles("timelineAccentColor2",[{selector:"",styleRule:"--line-accent-bg-color-2",attrName:"timelineAccentColor2",key:"timelineAccentColor2",enabledCallback:e=>"gradient"===e("timelineAccentColorType"),dependencies:["timelineAccentColorType"]}]),s.addBlockStyles("timelineBackgroundColor",[{selector:"",styleRule:"--line-bg-color",attrName:"timelineBackgroundColor",key:"timelineBackgroundColor"}]),s.addBlockStyles("blockPadding",[{renderIn:"save",selector:".stk-inner-blocks:after",styleRule:"top",attrName:"blockPadding",key:"timeline-blockPadding-top",responsive:"all",valuePreCallback:(e,t,o)=>{const a=t("blockPadding",o,"normal",!0),n=a&&""!==(null==a?void 0:a.top)?null==a?void 0:a.top:"mobile"===o?0:16;return"mobile"===o?`${n+16}px`:(null==a?void 0:a.top)===(null==a?void 0:a.bottom)?"":`calc(${n}px + (100% - ${n}px - ${a&&""!==(null==a?void 0:a.bottom)?null==a?void 0:a.bottom:16}px)/2)`},unitCallback:()=>"",dependencies:["blockPadding"]},{renderIn:"save",selector:".stk-inner-blocks:after",styleRule:"bottom",attrName:"blockPadding",key:"timeline-blockPadding-bottom",enabledCallback:e=>!0===e("timelineIsLast"),responsive:"all",valuePreCallback:(e,t,o)=>{const a=t("blockPadding",o,"normal",!0),n=a&&""!==(null==a?void 0:a.top)?null==a?void 0:a.top:"mobile"===o?0:16,l=a&&""!==(null==a?void 0:a.bottom)?null==a?void 0:a.bottom:"mobile"===o?0:16;return"mobile"===o?`calc(${l}px + (100% - ${n+l}px) - 16px)`:n===l?"":`calc(${l}px + (100% - ${n}px - ${l}px)/2)`},unitCallback:()=>"",dependencies:["timelineIsLast","blockPadding"]},{renderIn:"save",selector:".stk-block-timeline__middle",styleRule:"marginTop",attrName:"blockPadding",key:"timeline-blockPadding-marginTop",responsive:"all",valuePreCallback:(e,t,o)=>{const a=t("blockPadding",o,"normal",!0);return"mobile"===o&&a?`${null==a?void 0:a.top}px`:""},unitCallback:()=>"",dependencies:["blockPadding"]}]),i.BlockDiv.addStyles(s),i.MarginBottom.addStyles(s),i.Advanced.addStyles(s),i.Transform.addStyles(s),i.Typography.addStyles(s,{selector:".stk-block-timeline__date",hoverSelector:".stk-block-timeline__date:hover"}),i.EffectsAnimations.addStyles(s);const c=s;var d=o(910),u=o(4184),b=o.n(u),m=o(8333),p=o(9783),k=o(8085),g=o(7545),h=o(7397),v=o(3749),C=o(8003),y=o(78),f=o(3882),B=o(3284);const S=["stackable/column"],_=[["stackable/column",{columnSpacing:{top:0,right:0,bottom:0,left:0}},[(0,g.substituteCoreIfDisabled)("stackable/text",{text:(0,C._x)("Description for this block. Use this space for describing your block. Any text will do.","Content placeholder",d.i18n)},[],h.c)]]],A=[{value:"",title:(0,C.__)("Single",d.i18n)},{value:"gradient",title:(0,C.__)("Gradient",d.i18n)}],w=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,C.__)("Content Position",d.i18n),attribute:"timelinePosition",controls:[{value:"",title:(0,C.__)("Left",d.i18n)},{value:"right",title:(0,C.__)("Right",d.i18n)}]}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,C.sprintf)((0,C.__)("%s Gap",d.i18n),(0,C.__)("Timeline",d.i18n)),attribute:"timelineGap",sliderMax:100,min:0,responsive:"all",placeholder:"16"})),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,C.__)("Timeline",d.i18n),initialOpen:!0,id:"timeline"},(0,l.createElement)(r.AdvancedRangeControl,{label:(0,C.__)("Accent Anchor Position",d.i18n),attribute:"timelineAnchor",sliderMax:100,min:0,placeholder:"50",responsive:"all",help:(0,C.__)("Succeeding timeline blocks will also use this value.",d.i18n)}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,C.sprintf)((0,C.__)("%s Size",d.i18n),(0,C.__)("Dot",d.i18n)),attribute:"timelineDotSize",sliderMax:100,sliderMin:e.timelineThickness||3,min:1,placeholder:"11"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,C.sprintf)((0,C.__)("%s Border Radius",d.i18n),(0,C.__)("Dot",d.i18n)),attribute:"timelineDotBorderRadius",sliderMax:(e.timelineDotSize||11)/2,min:0,placeholder:""}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,C.__)("Line Thickness",d.i18n),attribute:"timelineThickness",sliderMax:20,min:1,placeholder:"3"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,C.__)("Horizontal Offset",d.i18n),attribute:"timelineOffset",sliderMax:100,min:0,placeholder:"40"}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(r.AdvancedToolbarControl,{controls:A,attribute:"timelineAccentColorType",isSmall:!0}),(0,l.createElement)(r.ColorPaletteControl,{label:"gradient"===e.timelineAccentColorType?(0,C.sprintf)((0,C._x)("%s #%d","option title",d.i18n),(0,C.__)("Timeline Accent Color",d.i18n),1):(0,C.__)("Timeline Accent Color",d.i18n),attribute:"timelineAccentColor"}),"gradient"===e.timelineAccentColorType&&(0,l.createElement)(r.ColorPaletteControl,{label:(0,C.sprintf)((0,C._x)("%s #%d","option title",d.i18n),(0,C.__)("Timeline Accent Color",d.i18n),2),attribute:"timelineAccentColor2"}),(0,l.createElement)(r.ColorPaletteControl,{label:(0,C.__)("Timeline Background Color",d.i18n),attribute:"timelineBackgroundColor"}))),(0,l.createElement)(i.Typography.InspectorControls,(0,n.Z)({},e,{hasTextTag:!1,isMultiline:!0,initialOpen:!1,hasTextShadow:!0})),(0,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(r.ControlSeparator,null)),(0,l.createElement)(i.ContentAlign.InspectorControls,null),(0,l.createElement)(i.BlockDiv.InspectorControls,{hasContentVerticalAlign:!1,hasMinHeight:!1}),(0,l.createElement)(i.Advanced.InspectorControls,null),(0,l.createElement)(i.CustomAttributes.InspectorControls,null),(0,l.createElement)(i.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-timeline"}),(0,l.createElement)(i.Responsive.InspectorControls,null),(0,l.createElement)(i.ConditionalDisplay.InspectorControls,null)))),E=(0,v.compose)(p.withBlockWrapperIsHovered,p.withQueryLoopContext,p.withBlockAttributeContext)((e=>{const{className:t,clientId:o,setAttributes:a}=e,n=(0,i.getRowClasses)(e.attributes),s=(0,i.getSeparatorClasses)(e.attributes),u=(0,i.getAlignmentClasses)(e.attributes),p=(0,i.getTypographyClasses)(e.attributes),{hasInnerBlocks:g,nextBlock:h,previousBlock:v,adjacentBlocks:f,blockIndex:A}=(0,B.useSelect)((e=>{var t,a;const{getBlockRootClientId:n,getBlocks:l,getBlockIndex:i}=e("core/block-editor"),r=l(n(o)),s=i(o);return{hasInnerBlocks:(null===(t=r[s])||void 0===t||null===(a=t.innerBlocks)||void 0===a?void 0:a.length)>0,nextBlock:s<r.length-1?r[s+1]:void 0,previousBlock:s>0?r[s-1]:void 0,adjacentBlocks:r,blockIndex:s}}),[o]),E=(0,m.useDeviceType)(),T=(0,l.useRef)(),x=(0,l.useRef)(),I=(0,l.useRef)(),z=(0,l.useRef)(null),[M,H]=(0,l.useState)({dot:0,branch:0}),[N,D]=(0,l.useState)({verticalLine:0,middle:0}),[O,L]=(0,l.useState)(0),[R,U]=(0,l.useState)(0),[P,V]=(0,l.useState)({isFirst:!1,isLast:!1}),[F,G]=(0,l.useState)(0),[q,W]=(0,l.useState)({verticalLine:0,middle:0});(0,l.useEffect)((()=>{let e=0;for(let t=A+1;t<(null==f?void 0:f.length)&&"stackable/timeline"===f[t].name;t++)e++;G(e)}),[f]);const $=b()([p,"stk-block-timeline__date"]),j=b()([t,"stk-block-timeline",n,s,{"stk-block-timeline--left":"right"!==e.attributes.timelinePosition,"stk-block-timeline--right":"right"===e.attributes.timelinePosition,"stk-block-timeline--last":e.attributes.timelineIsLast}]),Z=b()(["stk-inner-blocks",u,"stk-block-content"],(0,i.getContentAlignmentClasses)(e.attributes)),J=()=>{var t,o,a,n;let l,i,r;const s="Mobile"===E?0:16,c=e.attributes.blockPadding&&""!==e.attributes.blockPadding.top?e.attributes.blockPadding.top:s,d=e.attributes.blockPadding&&""!==e.attributes.blockPadding.bottom?e.attributes.blockPadding.bottom:s,u=e.attributes.hasBackground&&""===(null===(t=e.attributes.blockPadding)||void 0===t?void 0:t.top)&&""===(null===(o=e.attributes.blockPadding)||void 0===o?void 0:o.bottom)?8:0,b=e.attributes.blockPaddingTablet&&""!==e.attributes.blockPaddingTablet.top?e.attributes.blockPaddingTablet.top:c,m=e.attributes.blockPaddingTablet&&""!==e.attributes.blockPaddingTablet.bottom?e.attributes.blockPaddingTablet.bottom:d,p=e.attributes.hasBackground&&""===(null===(a=e.attributes.blockPaddingTablet)||void 0===a?void 0:a.top)&&""===(null===(n=e.attributes.blockPaddingTablet)||void 0===n?void 0:n.bottom)?8:u;if("Tablet"===E)r=b,i=m,l=p;else if("Mobile"===E){var k,g;r=e.attributes.blockPaddingMobile&&""!==e.attributes.blockPaddingMobile.top?e.attributes.blockPaddingMobile.top:b,i=e.attributes.blockPaddingMobile&&""!==e.attributes.blockPaddingMobile.bottom?e.attributes.blockPaddingMobile.bottom:m,l=e.attributes.hasBackground&&""===(null===(k=e.attributes.blockPaddingMobile)||void 0===k?void 0:k.top)&&""===(null===(g=e.attributes.blockPaddingMobile)||void 0===g?void 0:g.bottom)?8:p}else r=c,i=d,l=u;return{topPadding:r,bottomPadding:i,backgroundPadding:l}},K=()=>{var e,t;const{topPadding:o,bottomPadding:a,backgroundPadding:n}=J(),{height:l,top:i}=I.current.getBoundingClientRect(),r=T.current.getBoundingClientRect().top,s=`calc( -${i}px + ${o}px + ${n}px )`,c=l+o+a+2*n,d=`( ( ${(null===(e=document)||void 0===e||null===(t=e.body)||void 0===t?void 0:t.clientHeight)||1e4}px * var(--stk-timeline-anchor, 0.5) ) + ${-i+o+n}px ) / ${c} * 100 * ${c/100}`;let u={verticalLine:`calc(${d})`,middle:`calc(${d})`},b={verticalLine:s,middle:s};const m=r-i+o+n,p=x.current.getBoundingClientRect().top-i+o+n;v&&"stackable/timeline"===v.name||(u={verticalLine:`calc(${d} - ${m}px)`,middle:`calc(${d})`},b={verticalLine:`-${r}px`,middle:s}),H({dot:m,branch:p}),D(u),W(b)},Y=()=>{const{topPadding:t,bottomPadding:o}=J();let a="100%",n="";if(P.isFirst&&P.isLast)a="0";else if("Mobile"===E&&P.isFirst){const o=e.attributes.timelineDotSize||11;a=`calc(100% - ${t}px - 16px - ${o/2}px)`,n=`${t+16+o/2}px`}else"Mobile"===E&&P.isLast?a=`${t+16}px`:"Mobile"===E?a="100%":P.isFirst?a=`calc(50% + ${o/2}px - ${t/2}px)`:P.isLast&&(a=`calc(50% + ${t/2}px - ${o/2}px)`);L(a),U(n)};(0,l.useEffect)((()=>{clearTimeout(z.current),z.current=setTimeout((()=>{Y()}),300)}),[E,P,e.attributes.timelineDotSize,e.attributes.blockPadding,e.attributes.blockPaddingTablet,e.attributes.blockPaddingMobile]),(0,l.useEffect)((()=>{var e,t;const o=document.querySelector("[name=editor-canvas]");let a=document.querySelector(".interface-interface-skeleton__content");o&&(a=o.contentDocument||o.contentWindow.document),null===(e=a)||void 0===e||e.addEventListener("scroll",K);const n=new Event("scroll",{bubbles:!0});return null===(t=a)||void 0===t||t.dispatchEvent(n),()=>{var e;null===(e=a)||void 0===e||e.removeEventListener("scroll",K)}}),[E,h,v,e.attributes.timelineAnchor,e.attributes.timelineDotSize,e.attributes.blockPadding,e.attributes.blockPaddingTablet,e.attributes.blockPaddingMobile,e.attributes.hasBackground]),(0,l.useEffect)((()=>{let t=!1;h&&"stackable/timeline"===h.name&&e.attributes.timelineIsLast?((0,B.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),a({timelineIsLast:!1}),t=!0):h&&"stackable/timeline"===h.name||e.attributes.timelineIsLast||((0,B.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),a({timelineIsLast:!0}),t=!0),t&&(clearTimeout(z.current),z.current=setTimeout((()=>{Y()}),300))}),[h]),(0,l.useEffect)((()=>{V({isFirst:!v||"stackable/timeline"!==v.name,isLast:!h||"stackable/timeline"!==h.name})}),[h,v]);const Q=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:d.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(w,{blockState:e.blockState,timelineThickness:e.attributes.timelineThickness,timelineDotSize:e.attributes.timelineDotSize,timelineAccentColorType:e.attributes.timelineAccentColorType}),(0,l.createElement)(i.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:j},Q&&(0,l.createElement)("style",{key:"block-css"},Q),(0,l.createElement)(i.CustomCSS,{mainBlockClass:"stk-block-timeline"}),(0,l.createElement)("div",{ref:I,className:Z,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},(0,l.createElement)(i.Typography,{tagName:"div",className:$,placeholder:(0,C._x)("Text for This Block","Text placeholder",d.i18n)}),(0,l.createElement)("div",{className:"stk-block-timeline__middle"},(0,l.createElement)("div",{className:"stk-block-timeline__middle__dot",ref:T},(0,l.createElement)("div",{className:"stk-block-timeline__middle__fill",style:{height:`max(${N.middle}, 0px)`,top:`-${M.dot}px`,maxHeight:`calc(100% + ${M.dot}px)`}})),(0,l.createElement)("div",{className:"stk-block-timeline__middle__branch",ref:x},(0,l.createElement)("div",{className:"stk-block-timeline__middle__branch__fill",style:{height:`max(${N.middle}, 0px)`,top:`-${M.branch}px`,maxHeight:`calc(100% + ${M.branch}px)`}}))),(0,l.createElement)("div",{className:"stk-block-timeline__content"},(0,l.createElement)(y.InnerBlocks,{template:_,allowedBlocks:S,renderAppender:!1,templateLock:"false"})),(0,l.createElement)("div",{className:"stk-block-timeline__vertical-line",style:{maxHeight:O,top:R}},(0,l.createElement)("div",{className:"stk-block-timeline__vertical-line__fill",style:{height:`max(${N.verticalLine}, 0px)`}})),P.isFirst&&(0,l.createElement)("style",null,(0,k.range)(F+1).map((t=>{const a=(0,k.range)(t).map((()=>'+ [data-type="stackable/timeline"]')).join(" ");return`[data-block="${o}"] ${a} {\n\t\t\t\t\t\t\t\t\t--stk-timeline-anchor: ${""===e.attributes.timelineAnchor?.5:e.attributes.timelineAnchor/100};\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t[data-block="${o}"] ${a} .stk-block-timeline {\n\t\t\t\t\t\t\t\t\t--line-accent-bg-location: ${""===e.attributes.timelineAnchor?"50%":`${e.attributes.timelineAnchor}%`};\n\t\t\t\t\t\t\t\t}`}))),(0,l.createElement)("style",null,`[data-block="${o}"] {\n\t\t\t\t\t\t\t\t\t--stk-timeline-vertical-line-bg-position: ${q.verticalLine};\n\t\t\t\t\t\t\t\t\t--stk-timeline-middle-bg-position: ${q.middle};\n\t\t\t\t\t\t\t\t}`))),e.isHovered&&g&&(0,l.createElement)(i.MarginBottom,null))}));(0,f.addFilter)("stackable.resizable-bottom-margin.default","stackable/timeline",((e,t)=>"stackable/timeline"===t?0:e));const T=e=>{const{attributes:t}=e,o=(0,i.getRowClasses)(e.attributes),a=(0,i.getSeparatorClasses)(e.attributes),n=(0,i.getAlignmentClasses)(e.attributes),r=(0,i.getTypographyClasses)(e.attributes),s=(0,i.getResponsiveClasses)(e.attributes),c=b()([r,"stk-block-timeline__date"]),d=b()([e.className,"stk-block-timeline",s,a,{"stk-block-timeline--left":"right"!==e.attributes.timelinePosition,"stk-block-timeline--right":"right"===e.attributes.timelinePosition,"stk-is-last":e.attributes.timelineIsLast}]),u=b()((0,f.applyFilters)("stackable.new-block.save.contentClassNames",[[o,"stk-inner-blocks",n,"stk-block-content"],(0,i.getContentAlignmentClasses)(e.attributes)],e));return(0,l.createElement)(i.BlockDiv.Content,{className:d,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(i.CustomCSS.Content,{attributes:t}),(0,l.createElement)("div",{className:u},(0,l.createElement)(i.Typography.Content,{tagName:"div",className:c,attributes:t}),(0,l.createElement)("div",{className:"stk-block-timeline__middle"}),(0,l.createElement)("div",{className:"stk-block-timeline__content"},(0,l.createElement)(y.InnerBlocks.Content,null))))},x=(0,v.compose)((0,p.withVersion)(d.version))(T),I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new g.AttributeObject;return i.BlockDiv.addAttributes(t),i.Style.addAttributes(t),i.MarginBottom.addAttributes(t),i.Row.addAttributes(t),i.Advanced.addAttributes(t),i.Transform.addAttributes(t),i.EffectsAnimations.addAttributes(t),i.CustomAttributes.addAttributes(t),i.CustomCSS.addAttributes(t),i.Responsive.addAttributes(t),i.ConditionalDisplay.addAttributes(t),i.ContentAlign.addAttributes(t),i.Typography.addAttributes(t,".stk-block-timeline__date"),t.add({attributes:{timelineAnchor:{type:"number",default:"",stkResponsive:!0},timelinePosition:{type:"string",default:""},timelineGap:{type:"number",default:"",stkResponsive:"all"},timelineDotSize:{type:"number",default:""},timelineDotBorderRadius:{type:"number",default:""},timelineThickness:{type:"number",default:""},timelineOffset:{type:"number",default:""},timelineAccentColorType:{type:"string",default:""},timelineAccentColor:{type:"string",default:""},timelineAccentColor2:{type:"string",default:""},timelineBackgroundColor:{type:"string",default:""},timelineIsLast:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{text:(new Date).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},z=I(d.version),M=JSON.parse('{"apiVersion":3,"name":"stackable/timeline","title":"Timeline","description":"Show events in chronological order","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["history","milestone"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/timeline-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}'),H=[{attributes:I("3.12.11"),save:(0,p.withVersion)("3.12.11")(T),isEligible:e=>{const t=i.deprecateBlockShadowColor.isEligible(e),o=i.deprecateContainerShadowColor.isEligible(e),a=i.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:I("3.11.9"),save:(0,p.withVersion)("3.11.9")(T),isEligible:e=>{const t=i.deprecateContainerBackgroundColorOpacity.isEligible(e),o=i.deprecateBlockBackgroundColorOpacity.isEligible(e),a=i.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=i.deprecateContainerBackgroundColorOpacity.migrate(t),t=i.deprecateBlockBackgroundColorOpacity.migrate(t),t=i.deprecateTypographyGradientColor.migrate("%s")(t),t=i.deprecateBlockShadowColor.migrate(t),t=i.deprecateContainerShadowColor.migrate(t),t=i.deprecateTypographyShadowColor.migrate("%s")(t),t}}],N={...M,icon:a.TimelineIcon,attributes:z,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkDefaultTab:"layout",stkColumnResize:!1},example:{attributes:{uniqueId:"1234567"},innerBlocks:[{name:"stackable/column",attributes:{uniqueId:"1234568"},innerBlocks:[]},{name:"stackable/column",attributes:{uniqueId:"1234569"},innerBlocks:[]},{name:"stackable/column",attributes:{uniqueId:"1234570"},innerBlocks:[]}]},deprecated:H,edit:E,save:x}},635:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/timeline",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t],["stackable/column",{},[["stackable/text",{text:(new Date).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"})}]]]]]},n=a},5996:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>E});var a=o(9467),n=o(2610),l=o(9384),i=o(7200);const r=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.addBlockStyles("iconGap",[{selector:".stk-block-icon",attrName:"iconGap",key:"iconGap",styleRule:"flexBasis",format:"%spx"}]),l.Alignment.addStyles(r),l.BlockDiv.addStyles(r),l.Column.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r);const s=r;var c=o(910),d=o(4184),u=o.n(d),b=o(7545),m=o(9783),p=o(3749),k=o(78),g=o(8003),h=o(3882);const v=[["stackable/icon",{contentAlign:"center",icon:'<svg data-prefix="fas" data-icon="play" class="svg-inline--fa fa-play fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><path fill="currentColor" d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"></path></svg>',linkHasLink:!1}],["stackable/image",{enableHandles:!1}]],C=(0,n.memo)((e=>{return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,{hasLayoutPanel:!1}),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,g.__)("General",c.i18n),id:"general",initialOpen:!0},(0,n.createElement)(i.ImageControl2,{isDynamic:!1,label:(0,g.__)("Popup Option #1: Upload Video",c.i18n),help:(0,g.__)("Use .mp4 format for videos",c.i18n),onRemove:()=>e.setAttributes({videoLink:"",videoId:""}),onChange:t=>{e.setAttributes({videoLink:t.url,videoId:t.url})},imageId:(0,b.urlIsVideo)(e.videoLink)?e.videoId:"",imageURL:(0,b.urlIsVideo)(e.videoLink)?e.videoLink:"",allowedTypes:["video"]}),(0,n.createElement)(i.AdvancedTextControl,{label:(0,g.__)("Popup Option #2: Video URL",c.i18n),help:(0,g.__)("Paste a Youtube / Vimeo URL",c.i18n),isDynamic:!0,isFormatType:!1,placeholder:"https://",value:(0,b.urlIsVideo)(e.videoLink)?"":e.videoLink,onChange:t=>e.setAttributes({videoLink:t,videoId:(0,b.getVideoProviderFromURL)(t).id})}),!!(t=e.videoLink)&&/(?:^.*\.(mp4|avi|wmv|mov|flv|mkv|webm|vob|ogv|m4v|3gp|3g2|mpeg|mpg|m2v|m4v|svi|3gpp|3gpp2|mxf|roq|nsv|flv|f4v|f4p|f4a|f4b)$)/im.test(t)&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AdvancedToggleControl,{label:(0,g.__)("Allow fullscreen",c.i18n),attribute:"videoFullscreen",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,g.__)("Allow download video",c.i18n),attribute:"videoDownload",defaultValue:!0}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,g.__)("Loop video",c.i18n),attribute:"videoLoop",defaultValue:!1})))),(0,n.createElement)(l.BlockDiv.InspectorControls,null),(0,n.createElement)(l.Advanced.InspectorControls,null),(0,n.createElement)(l.Transform.InspectorControls,null),(0,n.createElement)(l.EffectsAnimations.InspectorControls,null),(0,n.createElement)(l.CustomAttributes.InspectorControls,null),(0,n.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-video-popup"}),(0,n.createElement)(l.Responsive.InspectorControls,null),(0,n.createElement)(l.ConditionalDisplay.InspectorControls,null),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.InspectorBottomTip,null)));var t})),y=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext)((e=>{const{className:t,attributes:o,setAttributes:a}=e,r=(0,l.getRowClasses)(o),d=(0,l.getAlignmentClasses)(o),b=u()([t,"stk-block-video-popup",r]),m=u()(["stk-inner-blocks",d,"stk-block-content","stk-hover-parent"]),p=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(C,{setAttributes:a,videoLink:o.videoLink,videoId:o.videoId}),p&&(0,n.createElement)("style",{key:"block-css"},p),(0,n.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-video-popup"}),(0,n.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b},(0,n.createElement)("div",{className:m},(0,n.createElement)(k.InnerBlocks,{template:v,templateLock:"all"}))),e.isHovered&&(0,n.createElement)(l.MarginBottom,null))}));(0,h.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/video-popup",((e,t)=>"stackable/video-popup"!==(null==t?void 0:t.name)&&e)),(0,h.addFilter)("stackable.edit.image.enable-link","stackable/video-popup",((e,t)=>"stackable/video-popup"!==(null==t?void 0:t.name)&&e));const f=e=>{const{attributes:t,className:o}=e,a=(0,l.getRowClasses)(t),i=(0,l.getAlignmentClasses)(t),r=(0,l.getResponsiveClasses)(t),s=u()([o,"stk-block-video-popup",r]),d=u()(["stk-block-video-popup__overlay",a,"stk-inner-blocks",i,"stk-block-content","stk-hover-parent"]);return(0,n.createElement)(l.BlockDiv.Content,{className:s,attributes:t,"data-video":t.videoLink,version:e.version,"data-nofullscreen":t.videoFullscreen?null:"","data-nodownload":t.videoDownload?null:"","data-loop":t.videoLoop?"":null},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(l.CustomCSS.Content,{attributes:t}),(0,h.applyFilters)("stackable.video-popup.save.div.content",(0,n.createElement)("div",{className:d,"aria-label":t.ariaLabel||(0,g.__)("Play Video",c.i18n),tabIndex:"0",role:"button"},(0,n.createElement)(k.InnerBlocks.Content,null)),e,d))},B=(0,p.compose)((0,m.withVersion)(c.version))(f),S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new b.AttributeObject;return l.BlockDiv.addAttributes(t),l.Style.addAttributes(t),l.MarginBottom.addAttributes(t),l.Row.addAttributes(t),l.Advanced.addAttributes(t),l.Transform.addAttributes(t),l.Alignment.addAttributes(t),l.EffectsAnimations.addAttributes(t),l.CustomAttributes.addAttributes(t),l.CustomCSS.addAttributes(t),l.Responsive.addAttributes(t),l.ConditionalDisplay.addAttributes(t),t.add({attributes:{videoLink:{type:"string",default:""},videoId:{type:"string",source:"attribute",selector:"[data-video]",attribute:"data-video",default:""},ariaLabel:{type:"string",source:"attribute",selector:"button",attribute:"aria-label",default:""},videoFullscreen:{type:"boolean",default:!0},videoDownload:{type:"boolean",default:!0},videoLoop:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},_=S(c.version),A=JSON.parse('{"apiVersion":3,"name":"stackable/video-popup","title":"Video Popup","description":"Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["YouTube","Vimeo","Embed Mp4"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/video-popup-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon","stackable/image"]}');(0,h.addFilter)("stackable.video-popup.save.div.content","stackable/3.12.14",((e,t,o)=>(0,b.semverCompare)(t.version,"<","3.12.14")?(0,n.createElement)("button",{className:o,"aria-label":t.attributes.ariaLabel||(0,g.__)("Play Video",c.i18n)},(0,n.createElement)(k.InnerBlocks.Content,null)):e));const w=[{attributes:S("3.12.14"),save:(0,m.withVersion)("3.12.14")(f)},{attributes:S("3.12.11"),save:(0,m.withVersion)("3.12.11")(f),isEligible:e=>{const t=l.deprecateBlockShadowColor.isEligible(e),o=l.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:S("3.11.9"),save:(0,m.withVersion)("3.11.9")(f),isEligible:e=>{const t=l.deprecateContainerBackgroundColorOpacity.isEligible(e),o=l.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=l.deprecateContainerBackgroundColorOpacity.migrate(t),t=l.deprecateBlockBackgroundColorOpacity.migrate(t),t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),t}},{attributes:S("3.7.9"),save:(0,m.withVersion)("3.7.9")(f),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}],E={...A,icon:a.VideoPopupIcon,attributes:_,supports:{anchor:!0,align:!0,stkAlign:!0,spacing:!0},example:{attributes:{uniqueId:"436a2b2",hasBackground:!1,hasBorders:!1,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%"},innerBlocks:[{name:"stackable/icon",attributes:{uniqueId:"4e1adcf",hasBackground:!1,hasBorders:!1,contentAlign:"center",effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},icon:'<svg data-prefix="fas" data-icon="play" class="svg-inline--fa fa-play fa-w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true"><path fill="currentColor" d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"></path></svg>',showBackgroundShape:!1,linkHasLink:!1,linkNewTab:!1,linkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",iconColor1:"#FFFFFF"},innerBlocks:[]},{name:"stackable/image",attributes:{uniqueId:"d4394aa",hasBackground:!1,hasBorders:!1,imageShow:!0,imageUrl:"https://source.unsplash.com/800x500/?sea,coast,water",imageSize:"full",imageShapeStretch:!0,effectAnimationOut:{},effectAnimationIn:{},customAttributes:[],hideDesktop:!1,hideTablet:!1,hideMobile:!1,displayCondition:{},blockLinkHasLink:!0,blockLinkNewTab:!1,blockLinkHasTitle:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",imageWidthUnit:"%",imageWidthUnitTablet:"%",imageWidthUnitMobile:"%"},innerBlocks:[]}]},deprecated:w,edit:y,save:B}},9895:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>n});const a={from:"stackable/video-popup",transform:e=>["core/video",{src:null==e?void 0:e.oldAttributes}]},n=a},7397:(e,t,o)=>{"use strict";o.d(t,{c:()=>mt});var a=o(2610),n=o(7200),l=o(7545),i=o(910),r=o(7537),s=o(2413),c=o(78),d=o(8003);function u(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}var b=o(3284);const m=(e,t,o,a)=>{const n=(0,s.removeFormat)(e,"ugb/highlight");return""===t?o?(0,s.applyFormat)(n,{type:"stk/highlight",attributes:{style:`color: ${o};`}}):(0,s.removeFormat)(n,"stk/highlight"):"highlight"===t?(0,s.applyFormat)(n,{type:"stk/highlight",attributes:{style:(o?`color: ${o};`:"")+(a?`background-color: ${a}`:"")}}):(0,s.applyFormat)(n,{type:"stk/highlight",attributes:{style:(o?`color: ${o};`:"")+(a?`background: linear-gradient(to bottom, transparent 50%, ${a} 50%)`:"")}})},p=e=>{let t="",o="",a="";if(!e)return{textColor:t,highlightColor:o,colorType:a};if(e.match(/linear-gradient\(/)){a="low";const t=e.match(/linear-gradient\(\s*to bottom\s*,\s*transparent \d+%\s*,\s*(.*?)\s\d+%\)/);t&&(o=t[1])}else if(e.match(/background-color:/)){a="highlight";const t=e.match(/background-color:\s*([^;]*)?/);t&&(o=t[1])}const n=e.match(/(^|[^-])color:\s*([^;]*)?/);return n&&(t=n[2]),{textColor:t,highlightColor:o,colorType:a}};i.settings.stackable_enable_text_highlight&&(0,s.registerFormatType)("stk/highlight",{title:(0,d.__)("Highlight Text",i.i18n),tagName:"span",className:"stk-highlight",edit:e=>{const{clientId:t}=(0,c.useBlockEditContext)(),[o,s]=(0,a.useState)(null),[u,k]=(0,a.useState)(!1),{getBlock:g}=(0,b.useSelect)("core/block-editor"),h=g(t),{activeAttributes:v,isActive:C,onChange:y,value:f}=e;let B=C,S=null==v?void 0:v.style;f&&(f.activeFormats||[]).some((e=>"ugb/highlight"===(null==e?void 0:e.type)&&(S=null==e?void 0:e.attributes.style,B=!0,!0)));const{textColor:_="",highlightColor:A=""}=B?p(S):{},w=(""!==o?A:_)||_;return"stackable/button"===h.name?null:(0,a.createElement)(c.BlockControls,null,(0,a.createElement)(r.ToolbarGroup,{className:"stackable-components-toolbar"},(0,a.createElement)(r.ToolbarButton,{label:(0,d.__)("Color & Highlight",i.i18n),className:"components-toolbar__control stk-toolbar-button stk-components-toolbar__highlight",icon:"editor-textcolor","aria-haspopup":"true",tooltip:(0,d.__)("Color & Highlight",i.i18n),onClick:()=>{if(!u){const{colorType:e=""}=B?p(S):{};s(e)}k(!u)},isActive:B},(0,a.createElement)("span",{className:"components-stackable-highlight-color__indicator",style:{backgroundColor:w}})),u&&(0,a.createElement)(n.Popover,{offset:13,position:"bottom center",className:"stk-copy-paste-styles__menu",isAlternate:!0,onFocusOutside:()=>k(!1),onEscape:()=>k(!1)},(0,a.createElement)("div",{className:"stk-color-palette-control__popover-content"},(0,a.createElement)("div",{className:"components-stackable-highlight__inner"},(0,a.createElement)(n.AdvancedToolbarControl,{controls:[{value:"",title:(0,d.__)("Normal",i.i18n)},{value:"highlight",title:(0,d.__)("Highlight",i.i18n)},{value:"low",title:(0,d.__)("Low",i.i18n)}],value:o,onChange:e=>{const t=A||(""!==e?_||"#f34957":A),o="highlight"===e?(0,l.whiteIfDarkBlackIfLight)("",t):"low"===e?"":A||_||"";y(m(f,e,o,t),{withoutHistory:!0}),s(e)},isSmall:!0}),(0,a.createElement)("div",{className:"stk-highlight-format__color-picker"},(0,a.createElement)(n.ColorPaletteControl,{isExpanded:!0,label:(0,d.__)("Text Color",i.i18n),value:_,onChange:e=>{y(m(f,o,e,A),{withoutHistory:!0})}})),""!==o&&(0,a.createElement)("div",{className:"stk-highlight-format__color-picker"},(0,a.createElement)(n.ColorPaletteControl,{isExpanded:!0,label:(0,d.__)("Highlight Color",i.i18n),value:A,onChange:e=>{y(m(f,o,_,e),{withoutHistory:!0})}})))))))},attributes:{style:"style"}}),(0,s.registerFormatType)("ugb/highlight",{title:(0,d.__)("Highlight Text",i.i18n)+" (v2)",tagName:"span",className:"ugb-highlight",attributes:{style:"style"}}),u((()=>{var e,t;(0,b.select)("core/edit-post")&&(null!==(e=(0,b.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("disableEditorsKitColorsFormats")||(0,b.dispatch)("core/edit-post").toggleFeature("disableEditorsKitColorsFormats"),null!==(t=(0,b.select)("core/edit-post"))&&void 0!==t&&t.isFeatureActive("disableEditorsKitHighlightFormats")||(0,b.dispatch)("core/edit-post").toggleFeature("disableEditorsKitHighlightFormats"))}));const k={colorSchemes:[],hideColorSchemeColors:"",baseColorScheme:"",backgroundModeColorScheme:"",containerModeColorScheme:""};(0,b.register)((0,b.createReduxStore)("stackable/global-color-schemes",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_COLOR_SCHEMES":return{...e,colorSchemes:t.colorSchemes};case"UPDATE_SETTINGS":return{...e,...t.settings};default:return e}},actions:{updateColorSchemes:e=>({type:"UPDATE_COLOR_SCHEMES",colorSchemes:e}),updateSettings:e=>({type:"UPDATE_SETTINGS",settings:e})},selectors:{getSettings:e=>({...e,baseColorScheme:e.baseColorScheme||"scheme-default-1",backgroundModeColorScheme:e.backgroundModeColorScheme||"scheme-default-2",containerModeColorScheme:e.containerModeColorScheme||"scheme-default-1"})}})),u((()=>{(0,l.fetchSettings)().then((e=>{const{stackable_global_color_schemes:t,stackable_global_hide_color_scheme_colors:o,stackable_global_base_color_scheme:a,stackable_global_background_mode_color_scheme:n,stackable_global_container_mode_color_scheme:l}=e,r={colorSchemes:Array.isArray(t)&&t.length>0?t:[{name:(0,d.__)("Default Scheme",i.i18n),key:"scheme-default-1",colorScheme:{backgroundColor:{desktop:""},headingColor:{desktop:""},textColor:{desktop:""},linkColor:{desktop:""},accentColor:{desktop:""},buttonBackgroundColor:{desktop:""},buttonTextColor:{desktop:""},buttonOutlineColor:{desktop:""}},hideInPicker:!1},{name:(0,d.__)("Background Scheme",i.i18n),key:"scheme-default-2",colorScheme:{backgroundColor:{desktop:""},headingColor:{desktop:""},textColor:{desktop:""},linkColor:{desktop:""},accentColor:{desktop:""},buttonBackgroundColor:{desktop:""},buttonTextColor:{desktop:""},buttonOutlineColor:{desktop:""}},hideInPicker:!1}],hideColorSchemeColors:o,baseColorScheme:a,backgroundModeColorScheme:n,containerModeColorScheme:l};(0,b.dispatch)("stackable/global-color-schemes").updateSettings(r)}))}));var g=o(7462);const h={responsive:!0,hover:!0,unit:!1},v={responsive:!0,hover:!0,unit:!0},C={responsive:!0,hover:!1,unit:!1},y={responsive:!0,hover:!1,unit:!0},f={responsive:!1,hover:!0,unit:!1},B={normal:"",hover:"Hover","parent-hover":"ParentHover"},S=(e,t,o)=>{var a,n;let l=null===(a=e[t])||void 0===a?void 0:a[o];var i,r;return l||"mobile"!==o||(l=null===(i=e[t])||void 0===i?void 0:i.tablet),l||"mobile"!==o&&"tablet"!==o||(l=null===(r=e[t])||void 0===r?void 0:r.desktop),null!==(n=l)&&void 0!==n?n:""},_=(e,t)=>{let o=e.classList.toString();const a=new MutationObserver((n=>{for(const l of n)if("class"===l.attributeName){const n=e.classList.toString();if(n!==o){t(a),o=n;break}}}));return a.observe(e,{attributes:!0}),a};var A=o(8085),w=o(8333);const E=(e,t)=>{const{blockLayouts:o,selectedBlockUniqueId:n,SelectedParentHoverBlock:l}=(0,b.useSelect)((t=>{var o,a;return{blockLayouts:t(e).getBlockLayouts()||[],selectedBlockUniqueId:null===(o=t("core/block-editor").getSelectedBlock())||void 0===o||null===(a=o.attributes)||void 0===a?void 0:a.uniqueId,SelectedParentHoverBlock:t("stackable/hover-state").getSelectedParentHoverBlock()}}),[]),[i]=(0,w.useBlockHoverState)({forceUpdateHoverState:!0}),r=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()),[]),[s,c]=(0,a.useState)(""),{defaults:d}=(0,w.useBlockLayoutDefaults)();return(0,a.useEffect)((()=>{o&&"object"==typeof o&&function(e,t,o,a,n,l){let i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1024,r=arguments.length>7&&void 0!==arguments[7]?arguments[7]:768;if(0===Object.keys(e).length)return void o("");let s="";const c={desktop:[],tablet:[],mobile:[]},d=(t,o)=>{var a;return null!==(a=e[t][`${o}Unit`])&&void 0!==a?a:"px"},u=(e,o,i,r,s)=>{let c="--stk-"+e;"parent-hover"===i&&"parent-hover"===a&&n&&l?c+="-hover":"normal"!==i&&(c+=`-${i}`);let d="";if("string"==typeof r)d=`${c}: ${r};`;else if("object"==typeof r){let a=S(t,e,o);"object"!=typeof a&&(a={top:a,right:a,bottom:a,left:a}),d=`${c}: ${void 0!==r.top?r.top:a.top}${s} ${void 0!==r.right?r.right:a.right}${s} ${void 0!==r.bottom?r.bottom:a.bottom}${s} ${void 0!==r.left?r.left:a.left}${s};`}else d=`${c}: ${r}${s};`;return"parent-hover"===a&&"parent-hover"===i&&n&&l&&(d=`.stk--is-hovered.stk-${n}{ ${d} }`),d};Object.keys(e).forEach((t=>{const o=Object.keys(e[t]).filter((e=>-1===e.indexOf("Unit"))).reduce(((o,a)=>({...o,[a]:e[t][a]})),{});Object.entries(o).forEach((e=>{let[o,a]=e;const n=d(t,o),l=o.includes("desktop")?"desktop":o.includes("tablet")?"tablet":"mobile",i=o.includes("ParentHover")?"parent-hover":o.includes("Hover")?"hover":"normal";c[l].push(u(t,l,i,a,n)),"button-icon-size"!==t&&"icon-size"!==t||c[l].push(u(`custom-${t}`,l,i,a,n))}))})),c.desktop.length>0&&(s+=`:root { ${(0,A.compact)(c.desktop).join("")}}`),c.tablet.length>0&&(s+=`@media screen and (max-width: ${i-1}px){ :root { ${(0,A.compact)(c.tablet).join("")}}}`),c.mobile.length>0&&(s+=`@media screen and (max-width: ${r-1}px){:root { ${(0,A.compact)(c.mobile).join("")}}}`),o(s)}(o,d,c,i,n,l)}),[o,i,l]),(0,a.useEffect)((()=>{if(r){const e=`stk-has-design-system-${t}`;""!==s&&!1===r.classList.contains(e)&&r.classList.add(e),""===s&&r.classList.remove(e);const o=_(r,(()=>{""!==s&&!1===(null==r?void 0:r.classList.contains(e))&&(null==r||r.classList.add(e)),""===s&&(null==r||r.classList.remove(e))}));return()=>o.disconnect()}}),[r,s]),s};var T=o(9384);const x=wp.api,I=(e,t,o,a)=>{const{blockLayouts:l}=(0,b.useSelect)((t=>({blockLayouts:{...t(e).getBlockLayouts()}})),[]),[i]=(0,w.useBlockHoverState)({forceUpdateHoverState:!0}),r=(0,w.useDeviceType)(),s=(0,n.getShadows)(),c=o=>{clearTimeout(a),a=setTimeout((()=>{new x.models.Settings({[t]:o}).save()}),300),(0,b.dispatch)(e).updateBlockLayouts(o)};return[l,function(e){var t;let{responsive:o=!1,hover:a=!1,unit:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=o?r.toLowerCase():"desktop",c=a?B[i]:"",d=n?"Unit":"",u=`${s}${c}${d}`;return null===(t=l[e])||void 0===t?void 0:t[u]},function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=t?T.IMAGE_SHADOWS:s;return e?-1===o.indexOf(e)?"custom":o.indexOf(e):""},function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=t?T.IMAGE_SHADOWS:s;return""!==e?o[e]:e},c,function(e,t){let{responsive:a=!1,hover:n=!1,unit:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const d={...l};let u="desktop";if(a&&(u=r.toLowerCase()),n&&(u+=B[i]),s&&(u+="Unit"),"normal"===i||s||localStorage.getItem("stk-disable-global-block-layouts-hover-notice")||o(!0),e in d||(d[e]={}),""===t||"object"==typeof t&&Object.values(t).every((e=>""===e))||s&&"px"===t)delete d[e][u],0===Object.keys(d[e]).length&&delete d[e];else if("object"==typeof t){const o={};""!==t.top&&(o.top=t.top),""!==t.right&&(o.right=t.right),""!==t.bottom&&(o.bottom=t.bottom),""!==t.left&&(o.left=t.left),d[e][u]=o}else d[e][u]=t;c(d)},(e,t)=>{if(e in l){var o,a,n;const i={normal:t,hover:`${t}Hover`,"parent-hover":`${t}ParentHover`};return void 0!==(null===(o=l[e])||void 0===o?void 0:o[i.normal])||void 0!==(null===(a=l[e])||void 0===a?void 0:a[i.hover])||void 0!==(null===(n=l[e])||void 0===n?void 0:n[i["parent-hover"]])}return!1},function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o={hover:!1,"parent-hover":!1};if(e in l){var a,n;const i={hover:`${t?r.toLowerCase():"desktop"}Hover`,"parent-hover":`${t?r.toLowerCase():"desktop"}ParentHover`};o.hover=void 0!==(null===(a=l[e])||void 0===a?void 0:a[i.hover]),o["parent-hover"]=void 0!==(null===(n=l[e])||void 0===n?void 0:n[i["parent-hover"]])}return o}]};var z=o(3882);const M=e=>Object.values(e).some((e=>Object.values(e).some((e=>""!==e)))),H=e=>"--stk-"+(0,A.kebabCase)(e),N=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=null==e?void 0:e[t];return!a&&"desktopHover"===t&&o&&(a=null==e?void 0:e.desktopParentHover),a||"desktop"===t||(a=null==e?void 0:e.desktop),a},D=e=>(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-")),O=function(e){var t,o,a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const i=["desktop","desktopHover","desktopParentHover"],r=["backgroundColor","headingColor","textColor","linkColor","accentColor","buttonBackgroundColor","buttonTextColor","buttonOutlineColor"],s={desktop:[],desktopHover:[],desktopParentHover:[]};return i.forEach((t=>{const o="desktopHover"===t?"-hover":"";r.forEach((a=>{var i,r;const c="backgroundColor"===a?`--stk-${"background"===l?"block":"container"}-background-color`:H(a);if("backgroundColor"===a&&!l)return;var d;null!==(i=e[a])&&void 0!==i&&i[t]&&s[t].push(`${c}${o}: ${null===(d=e[a])||void 0===d?void 0:d[t]};`);const u=N(e[a],t);"desktopParentHover"===t&&"normal"!==n&&"backgroundColor"!==a&&u&&s.desktopHover.push(`${c}-parent-hover: ${u};`),"buttonBackgroundColor"===a&&D(null===(r=e[a])||void 0===r?void 0:r[t])&&s[t].push(`:where(.is-style-plain){ --stk-button-plain-text-color${o}: var(--stk-button-outline-color${o}); }`)}))})),D(null===(t=e.buttonBackgroundColor)||void 0===t?void 0:t.desktop)&&null!==(o=e.buttonBackgroundColor)&&void 0!==o&&o.desktopParentHover&&!D(null===(a=e.buttonBackgroundColor)||void 0===a?void 0:a.desktopParentHover)&&s.desktopParentHover.push(":where(.is-style-plain){ --stk-button-plain-text-color: unset;--stk-button-plain-text-color-hover:unset; }"),L(s,e,l)},L=(e,t,o)=>{var a;const n=null===(a=document.querySelector("body").className.match(/stk--is-\w+-theme/gm))||void 0===a?void 0:a[0];return(0,z.applyFilters)("stackable.global-settings.global-color-schemes.add-theme-compatibility",e,t,o,n)},R=JSON.parse('[{"backgroundColor":"#ffffff","headingColor":"#024950","textColor":"#003135","linkColor":"#964734","accentColor":"#0fa4af","buttonBackgroundColor":"#0fa4af","buttonTextColor":"#afdde5","buttonOutlineColor":"#0fa4af"},{"backgroundColor":"#ffffff","headingColor":"#c50900","textColor":"#141414","linkColor":"#273db4","accentColor":"#f95ca4","buttonBackgroundColor":"#ed7845","buttonTextColor":"#ffffff","buttonOutlineColor":"#ed7845"},{"backgroundColor":"#f3f5f7","headingColor":"#e7717d","textColor":"#7e685a","linkColor":"#afd275","accentColor":"#afd275","buttonBackgroundColor":"#7e685a","buttonTextColor":"#c2b9b0","buttonOutlineColor":"#7e685a"},{"backgroundColor":"#ede8f5","headingColor":"#7091e6","textColor":"#3d52a0","linkColor":"#3d52a0","accentColor":"#8697c4","buttonBackgroundColor":"#3d52a0","buttonTextColor":"#adbbda","buttonOutlineColor":"#3d52a0"},{"backgroundColor":"#e2e8fa","headingColor":"#0a21c0","textColor":"#050a44","linkColor":"#2c2e3a","accentColor":"#7988f7","buttonBackgroundColor":"#050a44","buttonTextColor":"#b3b4bd","buttonOutlineColor":"#050a44"},{"backgroundColor":"#ebe9e1","headingColor":"#e43d12","textColor":"#e43d12","linkColor":"#efb11d","accentColor":"#ffa2b6","buttonBackgroundColor":"#d6536d","buttonTextColor":"#ebe9e1","buttonOutlineColor":"#d6536d"},{"backgroundColor":"#d3d9d4","headingColor":"#2e3944","textColor":"#748d92","linkColor":"#124e66","accentColor":"#2e3944","buttonBackgroundColor":"#124e66","buttonTextColor":"#d3d9d4","buttonOutlineColor":"#124e66"},{"backgroundColor":"#244855","headingColor":"#e64833","textColor":"#fbe9d0","linkColor":"#90aead","accentColor":"#90aead","buttonBackgroundColor":"#fbe9d0","buttonTextColor":"#874f41","buttonOutlineColor":"#fbe9d0"},{"backgroundColor":"#ac8968","headingColor":"#3e362e","textColor":"#3e362e","linkColor":"#865d36","accentColor":"#865d36","buttonBackgroundColor":"#3e362e","buttonTextColor":"#93785b","buttonOutlineColor":"#3e362e"},{"backgroundColor":"#0b0c10","headingColor":"#66fcf1","textColor":"#c5c6c7","linkColor":"#45a29e","accentColor":"#45a29e","buttonBackgroundColor":"#45a29e","buttonTextColor":"#ffffff","buttonOutlineColor":"#45a29e"}]');let U=null;const P=[...R],V=[{label:(0,d.__)("Background Color",i.i18n),property:"backgroundColor",disabledTooltip:{gradient:(0,d.sprintf)((0,d.__)("The %s cannot be changed in any hover state when using a gradient.",i.i18n),(0,d.__)("Background Color",i.i18n)),"parent-hover":(0,d.sprintf)((0,d.__)("Changing the %s is not allowed for %s state.",i.i18n),(0,d.__)("Background Color",i.i18n),(0,d.__)("parent-hover",i.i18n))}},{label:(0,d.__)("Heading Color",i.i18n),property:"headingColor",disabledTooltip:{hover:(0,d.sprintf)((0,d.__)("Changing the %s is not allowed for %s state.",i.i18n),(0,d.__)("Heading Color",i.i18n),(0,d.__)("hover",i.i18n))}},{label:(0,d.__)("Text Color",i.i18n),property:"textColor",disabledTooltip:{hover:(0,d.sprintf)((0,d.__)("Changing the %s is not allowed for %s state.",i.i18n),(0,d.__)("Text Color",i.i18n),(0,d.__)("hover",i.i18n))}},{label:(0,d.__)("Link Color",i.i18n),property:"linkColor"},{label:(0,d.__)("Accent Color",i.i18n),property:"accentColor",disabledTooltip:{hover:(0,d.sprintf)((0,d.__)("Changing the %s is not allowed for %s state.",i.i18n),(0,d.__)("Accent Color",i.i18n),(0,d.__)("hover",i.i18n))}},{label:(0,d.__)("Button Color",i.i18n),property:"buttonBackgroundColor"},{label:(0,d.__)("Button Text Color",i.i18n),property:"buttonTextColor"},{label:(0,d.__)("Button Outline Color",i.i18n),property:"buttonOutlineColor"}],F=e=>{const t=(0,a.useRef)(),{itemInEdit:o,setItemInEdit:r,setDisplayHoverNotice:s}=e,{colorSchemes:c}=(0,b.useSelect)((e=>{const{colorSchemes:t}=e("stackable/global-color-schemes").getSettings();return{colorSchemes:(0,A.cloneDeep)(t)}})),u=(0,z.applyFilters)("stackable.global-settings.global-color-schemes.presets",P),[m,p]=(0,a.useState)({showTrash:!1,showReset:!1}),[k]=(0,w.useBlockHoverState)({forceUpdateHoverState:!0}),h=`desktop${B[k]}`,v=e=>!(0,A.isEqual)(e.colorScheme,n.DEFAULT_COLOR_SCHEME_COLORS);(0,a.useEffect)((()=>{if(!o)return void p({showTrash:!1,showReset:!1});const e={showTrash:!o.key.startsWith("scheme-default"),showReset:v(o)};p(e)}),[o]);const C=(0,z.applyFilters)("stackable.global-settings.global-color-schemes.custom-color-schemes",[]),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,z.doAction)("stackable.global-settings.global-color-schemes.custom-color-schemes.add-color-scheme",t,r,U)},f=e=>{if(clearTimeout(U),!(0,z.applyFilters)("stackable.global-settings.global-color-schemes.update-color-schemes",!1,e,U)){const t=(0,A.cloneDeep)(c),o=c.findIndex((t=>t.key===e.key));t[o]=e,U=setTimeout((()=>{new x.models.Settings({stackable_global_color_schemes:t,stackable_global_color_scheme_generated_css:""}).save()}),300),(0,b.dispatch)("stackable/global-color-schemes").updateColorSchemes(t)}},S=e=>!(!o||!e)&&(e.startsWith("linear-")||e.startsWith("radial-")),_=e=>{if(!window.confirm((0,d.__)("Are you sure you want to reset this color scheme to their default values?",i.i18n)))return;const t=(0,A.cloneDeep)(e);t.colorScheme=(0,A.cloneDeep)(n.DEFAULT_COLOR_SCHEME_COLORS),o&&r(t),f(t)},E=e=>{(0,z.applyFilters)("stackable.global-settings.global-color-schemes.delete-color-scheme",!1,e,r,U)||_(e)},T=e=>null!=e&&e[h]?e[h]:null==e?void 0:e.desktop,I=e=>{let{item:t,withWrapper:o=!1}=e;const l={...n.DEFAULT_COLOR_SCHEME_COLORS,..."scheme-default-2"===t.key?{backgroundColor:{desktop:"var(--stk-block-background-color)"}}:{}},i=T(t.colorScheme.backgroundColor)||l.backgroundColor.desktop,r={backgroundColor:i,headingColor:T(t.colorScheme.headingColor)||l.headingColor.desktop,textColor:T(t.colorScheme.textColor)||l.textColor.desktop,linkColor:T(t.colorScheme.linkColor)||l.linkColor.desktop,accentColor:T(t.colorScheme.accentColor)||l.accentColor.desktop,buttonBackgroundColor:T(t.colorScheme.buttonBackgroundColor)||l.buttonBackgroundColor.desktop,buttonOutlineColor:T(t.colorScheme.buttonOutlineColor)||l.buttonOutlineColor.desktop},s=!o&&!M(t.colorScheme),c=(0,a.createElement)(n.ColorSchemePreview,{colors:r,withWrapper:o,isDisabled:s});return o?(0,a.createElement)("div",{className:"stk-global-color-scheme__preview-wrapper",style:{background:i}}," ",c," "):c},H=e=>{var t;return"backgroundColor"===e?!(!S(null==o||null===(t=o.colorScheme[e])||void 0===t?void 0:t.desktop)||"normal"===k)||"parent-hover"===k:!!["headingColor","textColor","accentColor"].includes(e)&&"hover"===k},N=e=>"backgroundColor"===e||"buttonBackgroundColor"===e,D=e=>{var t;const a=H(e.property),n=S(null==o||null===(t=o.colorScheme[e.property])||void 0===t?void 0:t.desktop);return a&&e.disabledTooltip?{disabled:a,showTooltip:!0,__experimentalIsFocusable:!0,label:n&&e.disabledTooltip.gradient?e.disabledTooltip.gradient:e.disabledTooltip[k]}:{}},O="scheme-default-1"===(null==o?void 0:o.key)||!i.isPro&&"scheme-default-2"===(null==o?void 0:o.key);return o?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(n.InspectorSubHeader,{title:i.isPro||"scheme-default-1"!==o.key?i.isPro||"scheme-default-2"!==o.key?(0,d.sprintf)((0,d.__)("Editing %s",i.i18n),(0,d.__)("Color Scheme",i.i18n)):(0,d.sprintf)((0,d.__)("Editing %s",i.i18n),(0,d.__)("Background Scheme",i.i18n)):(0,d.sprintf)((0,d.__)("Editing %s",i.i18n),(0,d.__)("Default Scheme",i.i18n)),onBack:()=>r(null),showTrash:m.showTrash,showReset:m.showReset,showDuplicate:i.isPro,onTrash:()=>E(o),onReset:()=>_(o),onDuplicate:()=>{return e=o,void(window.confirm((0,d.__)("Do you want to duplicate this color scheme?",i.i18n))&&y(null,e));var e}}),(0,a.createElement)("div",{className:"stk-global-color-scheme__edit-panel-preview"},i.isPro||"scheme-default-1"!==o.key?i.isPro||"scheme-default-2"!==o.key?(0,a.createElement)("p",null," ",(0,d.__)("Editing this scheme will also change all blocks that currently use this color scheme.",i.i18n)," "):(0,a.createElement)("p",null," ",(0,d.__)("Change the color scheme applied when the background option is enabled for a block.",i.i18n)," "):(0,a.createElement)("p",null," ",(0,d.__)("Change the color scheme used for all blocks, and when the container option is enabled for a block.",i.i18n)," "),(0,a.createElement)(I,{item:o,withWrapper:!0}),(0,a.createElement)(n.AdvancedTextControl,{label:(0,d.__)("Color Scheme Name",i.i18n),hasPanelModifiedIndicator:!1,value:null==o?void 0:o.name,allowReset:!1,readOnly:O,onChange:e=>{if(!o)return;const t=(0,A.cloneDeep)(o);t.name=e,r(t),f(t)}})),(0,a.createElement)(n.ColorSchemePresetPicker,{label:(0,d.__)("Color Scheme Presets",i.i18n),presets:u,onPresetClick:e=>{if(!o)return;const t=(0,A.cloneDeep)(o);"normal"===k&&(t.colorScheme=(0,A.cloneDeep)(n.DEFAULT_COLOR_SCHEME_COLORS)),Object.entries(e).forEach((e=>{let[o,a]=e;H(o)||(t.colorScheme[o][h]=a)})),r(t),f(t)}}),i.showProNotice&&(0,a.createElement)(n.ProControlButton,{type:"color-schemes"}),(0,a.createElement)(n.ControlSeparator,null),(0,a.createElement)(n.AdvancedToggleControl,{label:(0,d.__)("Show Scheme Colors in Color Pickers",i.i18n),checked:!(null!=o&&o.hideInPicker),defaultValue:!0,onChange:e=>(e=>{if(!o)return;const t=(0,A.cloneDeep)(o);t.hideInPicker=!e,r(t),f(t)})(e)}),V.map(((e,t)=>{return(0,a.createElement)(n.ColorPaletteControl,{key:t,label:e.label,value:null==o?void 0:o.colorScheme[e.property][h],colorLabel:(0,l.extractColor)(null==o?void 0:o.colorScheme[e.property][h]),hover:(c=e.property,("backgroundColor"!==c||!S(null==o||null===(u=o.colorScheme[c])||void 0===u?void 0:u.desktop))&&["normal","hover","parent-hover"]),forceUpdateHoverState:!0,onChange:t=>((e,t)=>{if(!o)return;"normal"!==k&&(localStorage.getItem("stk-disable-global-block-color-schemes-hover-notice")||s(!0));const a=(0,A.cloneDeep)(o);a.colorScheme[e][h]=t,"backgroundColor"===e&&S(t)&&(a.colorScheme[e].desktopHover="",a.colorScheme[e].desktopParentHover=""),r(a),f(a)})(e.property,t),help:i.isPro||"scheme-default-1"!==o.key||"backgroundColor"!==e.property?i.isPro&&"backgroundColor"===e.property?(0,d.__)("Note: Background color is not used for Base Color Scheme.",i.i18n):"":(0,d.__)("Note: This background color is used when the container option of the block is enabled.",i.i18n),hasGradientPicker:N(e.property),enableGradient:"normal"===k||"buttonBackgroundColor"===e.property,additionalToggleProps:D(e),allowReset:!H(e.property)});var c,u}))):(0,a.createElement)(n.SortablePicker,(0,g.Z)({ref:t},e,{className:"stk-global-color-scheme-picker",items:C,nonSortableItems:c,editableName:!1,onDeleteItem:E,handleAddItem:y,onSortEnd:e=>{(0,z.doAction)("stackable.global-settings.global-color-schemes.custom-color-schemes.sort-color-schemes",e,U)},ItemPreview:I,ItemPicker:null,buttonClassName:"stk-global-color-scheme__color-scheme-item",enableAddItem:i.isPro,onItemClick:e=>r(e),showResetCallback:e=>v(e)}))};F.defaultProps={className:"",label:"",onReset:()=>{}};const G=F,q=()=>{const{allColorSchemes:e,baseColorScheme:t,backgroundModeColorScheme:o,containerModeColorScheme:n}=(0,w.useBlockColorSchemes)(),[l,i]=(0,a.useState)(""),[r]=(0,w.useBlockHoverState)({forceUpdateHoverState:!0}),s=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()),[]);return(0,a.useEffect)((()=>{e&&Array.isArray(e)&&((e,t,o,a,n,l)=>{let i,r="";const s={background:[],container:[]},c=(e=>{const t={};return e.forEach((e=>{t[e.key]=e.colorScheme})),t})(t);if(o in c&&M(c[o])&&(i=O(c[o],l),(i.desktop.length||i.desktopHover.length)&&(r+=`:root{ ${[...i.desktop,...i.desktopHover].join("")} }\n`)),a in c&&M(c[a])){i=O(c[a],l,"background");let e="";(i.desktop.length||i.desktopHover.length)&&(e+=`.stk-block-background{ ${[...i.desktop,...i.desktopHover].join("")} }\n`),i.desktopParentHover.length&&(e+=`:where(.stk-hover-parent:hover) .stk-block-background{ ${i.desktopParentHover.join("")} }\n`),r+=e}if(n in c&&M(c[n])){i=O(c[n],l,"container");let e="";(i.desktop.length||i.desktopHover.length)&&(e+=`.stk-container:where(:not(.stk--no-background)){ ${[...i.desktop,...i.desktopHover].join("")} }\n`),i.desktopParentHover.length&&(e+=`.stk-container:where(:not(.stk--no-background):hover), :where(.stk-hover-parent:hover) .stk-container:where(:not(.stk--no-background)){ ${i.desktopParentHover.join("")} }\n`),r+=e}Object.entries(c).forEach((e=>{let[t,o]=e;M(o)&&(i=O(o,l,"background"),(i.desktop.length||i.desktopHover.length)&&s.background.push(`.stk--background-scheme--${t}{ ${[...i.desktop,...i.desktopHover].join("")} }`),i.desktopParentHover.length&&s.background.push(`:where(.stk-hover-parent:hover) .stk--background-scheme--${t}{ ${i.desktopParentHover.join("")} }`),i=O(o,l,"container"),(i.desktop.length||i.desktopHover.length)&&s.container.push(`.stk--container-scheme--${t}{ ${[...i.desktop,...i.desktopHover].join("")} }`),i.desktopParentHover.length&&s.container.push(`.stk--container-scheme--${t}:where(:hover), :where(.stk-hover-parent:hover) .stk--container-scheme--${t}{ ${i.desktopParentHover.join("")} }`))})),r+=`${s.background.join("\n")}`,r+=`${s.container.join("\n")}`,e(r)})(i,e,t,o,n,r)}),[e,t,o,n,r]),(0,a.useEffect)((()=>{if(s){""!==l&&!1===s.classList.contains("stk-has-color-schemes")&&s.classList.add("stk-has-color-schemes"),""===l&&s.classList.remove("stk-has-color-schemes");const e=_(s,(()=>{""!==l&&!1===(null==s?void 0:s.classList.contains("stk-has-color-schemes"))&&(null==s||s.classList.add("stk-has-color-schemes")),""===l&&(null==s||s.classList.remove("stk-has-color-schemes"))}));return()=>e.disconnect()}}),[s,l]),l};(0,z.addFilter)("stackable.global-settings.inspector","stackable/global-color-schemes",(e=>{const[t,o]=(0,a.useState)(null),[l,r]=(0,a.useState)(!1),[s,c]=(0,a.useState)(!1);return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,d.__)("Global Color Schemes",i.i18n),onToggle:e=>r(e)},l&&s&&(0,a.createElement)("span",{className:"stk-global-block-layouts-help-tooltip"},(0,a.createElement)(n.HelpTooltip,{title:(0,d.__)("Hover States",i.i18n),description:(0,d.__)("When editing color schemes in the hover states, select a block to view the applied colors.",i.i18n),closeOnEscape:!1,showTooltipCheckbox:!1,onClose:()=>{c(!1),localStorage.setItem("stk-disable-global-block-color-schemes-hover-notice",!0)}})),!t&&(0,a.createElement)("p",{className:"components-base-control__help"},(0,d.__)("Color schemes are applied to all blocks and sections of your entire website.",i.i18n)," ",(0,a.createElement)("a",{href:"https://docs.wpstackable.com/article/649-how-to-use-color-schemes?utm_source=wp-global-settings&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},(0,d.__)("Learn more about Global Color Schemes",i.i18n))),(0,a.createElement)(G,{label:(0,d.__)("Color Schemes",i.i18n),itemInEdit:t,setItemInEdit:o,setDisplayHoverNotice:c}),i.isPro&&(0,z.applyFilters)("stackable.global-settings.global-color-schemes.inspector",a.Fragment,t),!t&&i.showProNotice&&(0,a.createElement)(n.ProControlButton,{type:"color-schemes"})))}),2),(0,z.addFilter)("stackable.global-settings.inspector.global-colors.toggle-controls","stackable/global-color-schemes",(e=>{const{hideColorSchemeColors:t}=(0,b.useSelect)((e=>e("stackable/global-color-schemes").getSettings()));return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(r.ToggleControl,{label:(0,d.__)("Show Global Color Schemes",i.i18n),checked:!t,onChange:e=>(e=>{(0,b.dispatch)("stackable/global-color-schemes").updateSettings({hideColorSchemeColors:e}),new x.models.Settings({stackable_global_hide_color_scheme_colors:e}).save()})(!e)}))}));const W={isInitializing:!0,stackableColors:[],stackableGradients:[],hideThemeColors:!1,hideDefaultColors:!1,hideSiteEditorColors:!1},$={updateSettings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"UPDATE_SETTINGS",payload:(0,A.omit)(e,"type")}}};(0,b.register)((0,b.createReduxStore)("stackable/global-colors",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_SETTINGS"===t.type?{...e,...t.payload}:e},actions:$,selectors:{getSettings:e=>e}})),u((()=>{(0,l.fetchSettings)().then((e=>{const{stackable_global_hide_theme_colors:t,stackable_global_hide_default_colors:o,stackable_global_hide_site_editor_colors:a,stackable_global_colors:n,stackable_global_gradients:l}=e,i=(0,A.head)(n)||[];(0,b.dispatch)("stackable/global-colors").updateSettings({hideThemeColors:t,hideDefaultColors:o,hideSiteEditorColors:a,stackableColors:i,stackableGradients:l||[],isInitializing:!1})}))}));var j=o(8874);const Z=function(e){var t,o,a=[],n=1;if("string"==typeof e)if(j[e])a=j[e].slice(),o="rgb";else if("transparent"===e)n=0,o="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var l=(s=e.slice(1)).length;n=1,l<=4?(a=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===l&&(n=parseInt(s[3]+s[3],16)/255)):(a=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===l&&(n=parseInt(s[6]+s[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),o="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var i=t[1],r="rgb"===i,s=i.replace(/a$/,"");o=s,l="cmyk"===s?4:"gray"===s?1:3,a=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===l?parseFloat(e)/100:"rgb"===s?255*parseFloat(e)/100:parseFloat(e);if("h"===s[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==J[e])return J[e]}return parseFloat(e)})),i===s&&a.push(1),n=r||void 0===a[l]?1:a[l],a=a.slice(0,l)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(a=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),o=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(a=[e[0],e[1],e[2]],o="rgb",n=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(o="rgb",a=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(o="hsl",a=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(n/=100)):(o="rgb",a=[e>>>16,(65280&e)>>>8,255&e]);return{space:o,values:a,alpha:n}};var J={red:0,orange:60,yellow:120,green:180,blue:240,purple:300},K=o(2409),Y=o(5985);function Q(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var o=Z(e);if(!o.space)return[];const a="h"===o.space[0]?Y.min:K.min,n="h"===o.space[0]?Y.max:K.max;return(t=Array(3))[0]=Math.min(Math.max(o.values[0],a[0]),n[0]),t[1]=Math.min(Math.max(o.values[1],a[1]),n[1]),t[2]=Math.min(Math.max(o.values[2],a[2]),n[2]),"h"===o.space[0]&&(t=Y.rgb(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t}const X=e=>{const t=Q(e.match(/^#/)?e:`#${e}`);return t.splice(3,1),t.join(", ")};let ee=null;const te=e=>{const t=(0,a.useRef)(),{colors:o}=(0,b.useSelect)((e=>{const t=e("stackable/global-colors").getSettings();return{colors:(0,A.cloneDeep)(t.stackableColors)}})),l=e=>{clearTimeout(ee),ee=setTimeout((()=>{new x.models.Settings({stackable_global_colors:[e]}).save()}),300),(0,b.dispatch)("stackable/global-colors").updateSettings({stackableColors:e})};return(0,a.createElement)(n.SortablePicker,(0,g.Z)({ref:t,items:o,itemType:"color",onChangeItem:e=>{const t=(0,A.cloneDeep)(o);t[o.findIndex((t=>t.slug===e.slug))]={...e},l(t)},onDeleteItem:e=>{if(!window.confirm((0,d.__)("Any blocks that use this color will become unlinked with this global color. Delete this color?",i.i18n)))return;const t=o.findIndex((t=>t.slug===e.slug)),a=(0,A.cloneDeep)(o);a.splice(t,1),(e=>{const t=o=>{o.forEach((o=>{((e,t)=>{const{clientId:o,name:a}=e,{updateBlockAttributes:n}=(0,b.dispatch)("core/block-editor");if(a.startsWith("ugb/")||a.startsWith("stackable/")){const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Array.isArray(t))return e;const{includeSlugNames:a=!1,includeColorVar:n=!0}=o;let l=JSON.stringify(e);return n&&t.forEach((e=>{e.slug.match(/^stk-global-color/)&&(l=l.replace(new RegExp(`var\\(--${e.slug}, ${e.color.replace(")","\\)").replace("(","\\(")}\\)`,"g"),(t=>e?e.color||"#000000":t)))})),a&&t.filter((e=>e.slug&&e.slug.match(/^stk-global-color/))).map((e=>e.slug)).forEach((e=>{const o=(0,A.find)(t,(t=>t.slug===e));l=l.replace(new RegExp(`"${e}"`,"g"),o&&`"${o.color}"`||'"#000000"')})),JSON.parse(l)}(e.attributes,t);(0,A.isEqual)(a,e.attributes)||n(o,a)}else if(a.startsWith("core/")&&(a.includes("heading")||a.includes("paragraph"))){const a={style:{color:{},...e.attributes.style}},{backgroundColor:l,textColor:i}=e.attributes;if(l&&l.includes("stk-global-color-")){const e=l.match(/stk-global-color-(\S*)/);if(e&&Array.isArray(e)&&e.length>=2){const o=e[1];a.backgroundColor=void 0;const n=(0,A.find)(t,(e=>e.slug===`stk-global-color-${o}`));a.style.color.background=n&&n.color||"#000000"}}if(i&&i.includes("stk-global-color-")){const e=i.match(/stk-global-color-(\S*)/);if(e&&Array.isArray(e)&&e.length>=2){const o=e[1];a.textColor=void 0;const n=(0,A.find)(t,(e=>e.slug===`stk-global-color-${o}`));a.style.color.text=n&&n.color||"#000000"}}n(o,a)}})(o,e),o.innerBlocks&&o.innerBlocks.length&&t(o.innerBlocks)}))};t((0,b.select)("core/block-editor").getBlocks())})([o[t]]),l(a)},handleAddItem:()=>{const e=o&&Array.isArray(o)?o.length+1:1,a=Math.floor(Math.random()*(new Date).getTime())%1e5,n=`#${((1<<24)*Math.random()|0).toString(16)}`,r=[...(0,b.select)("stackable/global-colors").getSettings().stackableColors,{name:(0,d.sprintf)((0,d.__)("Custom Color %s",i.i18n),e),slug:`stk-global-color-${a}`,color:n,rgb:X(n)}];l(r),setTimeout((()=>{var e,o;null===(e=t.current)||void 0===e||null===(o=e.querySelector(".stk-global-settings-color-picker__color-indicator-wrapper:last-child .block-editor-panel-color-gradient-settings__dropdown"))||void 0===o||o.click()}),1)},onSortEnd:e=>{let{oldIndex:t,newIndex:a,setIsSorting:n}=e;const i=(0,A.cloneDeep)(o);i.splice(a,0,i.splice(t,1)[0]),l(i),n(!1)},ItemPreview:e=>{let{item:t}=e;return(0,a.createElement)(r.ColorIndicator,{className:"stk-color-indicator block-editor-panel-color-gradient-settings__color-indicator",colorValue:t.color})},ItemPicker:e=>{let{item:t,onChange:o}=e;return(0,a.createElement)("div",{className:"stk-color-palette-control__popover-content"},(0,a.createElement)(r.ColorPicker,{onChange:e=>o({...t,color:e}),color:t.color,enableAlpha:!0}))}},e))};te.defaultProps={className:"",label:"",onReset:()=>{}};const oe=te;(0,z.addFilter)("stackable.editor-render-global-styles.css","stackable/native-global-color-support",((e,t)=>{const o=t.map((e=>`.has-${e.slug||""}-color { color: ${e.color||""} !important; }.has-${e.slug||""}-background-color { background-color: ${e.color||""} !important; }`));return e+(0,A.compact)(o).join("")}));const ae=()=>{const{colors:e,isEditingTemplate:t}=(0,b.useSelect)((e=>{var t,o;return{colors:e("stackable/global-colors").getSettings().stackableColors||[],isEditingTemplate:(null===(t=e("core/edit-post"))||void 0===t||null===(o=t.isEditingTemplate)||void 0===o?void 0:o.call(t))||!1}})),[o,n]=(0,a.useState)("");return(0,a.useEffect)((()=>{e&&Array.isArray(e)&&((e,t,o)=>{let a="";const n=e.map((e=>`--${e.slug||""}: ${e.color||""};`));a+=`:root { ${(0,A.compact)(n).join("")}}`;const l=e.map((e=>{var o;const a=t&&(null===(o=document.querySelector('iframe[name="editor-canvas"]'))||void 0===o?void 0:o.contentWindow)||window,n=t?a.document:window.document,l=Q(a.getComputedStyle(n.documentElement).getPropertyValue(`--${e.slug}`).trim());return Array.isArray(l)&&0!==l.length?(l.splice(3,1),`--${e.slug||""}-rgba: ${l.join(", ")};`):null}));a+=`:root { ${(0,A.compact)(l).join(" ")}}`,o((0,z.applyFilters)("stackable.editor-render-global-styles.css",a,e,t))})(e,t,n)}),[JSON.stringify(e)]),o};(0,z.addFilter)("stackable.util.hex-to-rgba","stackable/global-colors",((e,t,o)=>{if(!t.includes("--stk-global-color"))return e;const a=t.match(/--stk-global-color-(\S*?(?=,))/);if(a){const e=/( )(.*)/g,n=t.match(e)[0].trim().slice(0,-1);if(n&&"#"===n[0]){const e=Q(n);if(e)return e.splice(3,1),`rgba(var(--stk-global-color-${a[1]}-rgba, ${e.join(", ")}), ${null!==o?o:1})`}}return e})),(0,z.addFilter)("stackable.util.is-dark-color","stackable/global-colors",(e=>{if(e.match(/--stk-global-color/)&&e.match(/--stk-global-color-(\S*?(?=,))/)){const t=/( )(.*)/g,o=e.match(t)[0].trim().slice(0,-1);if(o&&"#"===o[0])return o}return e})),(0,z.addFilter)("stackable.global-settings.inspector","stackable/global-colors",(e=>{const{hideThemeColors:t,hideDefaultColors:o,hideSiteEditorColors:l}=(0,b.useSelect)((e=>e("stackable/global-colors").getSettings())),s=(0,z.applyFilters)("stackable.global-settings.inspector.global-colors.toggle-controls",a.Fragment);return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,d.__)("Global Color Palette",i.i18n)},(0,a.createElement)("p",{className:"components-base-control__help"},(0,d.__)("Change your color palette for all your blocks across your site.",i.i18n)," ",(0,a.createElement)("a",{href:"https://docs.wpstackable.com/article/362-how-to-use-global-colors?utm_source=wp-global-settings&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},(0,d.__)("Learn more about Global Colors",i.i18n))),(0,a.createElement)(oe,{label:(0,d.__)("Global Colors",i.i18n)}),s,(0,a.createElement)(r.ToggleControl,{label:(0,d.__)("Show Theme Colors",i.i18n),checked:!t,onChange:e=>(e=>{(0,b.dispatch)("stackable/global-colors").updateSettings({hideThemeColors:e}),new x.models.Settings({stackable_global_hide_theme_colors:e}).save()})(!e)}),(0,a.createElement)(r.ToggleControl,{label:(0,d.__)("Show Default Colors",i.i18n),checked:!o,onChange:e=>(e=>{(0,b.dispatch)("stackable/global-colors").updateSettings({hideDefaultColors:e}),new x.models.Settings({stackable_global_hide_default_colors:e}).save()})(!e)}),(0,a.createElement)(r.ToggleControl,{label:(0,d.__)("Show Site Editor Custom Colors",i.i18n),checked:!l,onChange:e=>(e=>{(0,b.dispatch)("stackable/global-colors").updateSettings({hideSiteEditorColors:e}),new x.models.Settings({stackable_global_hide_site_editor_colors:e}).save()})(!e)})))}),4),(0,z.addFilter)("stackable.color-palette-control.change","stackable/global-colors",((e,t)=>t&&t.slug.includes("stk-global-color")?`var(--${t.slug}, ${t.color})`:e));var ne=o(4863),le=o.n(ne);const ie=()=>{const[e,t]=(0,a.useState)([]),[o,n]=(0,a.useState)(""),[i,r]=(0,a.useState)(""),[s,c]=(0,a.useState)(null),{device:d}=(0,b.useSelect)((e=>{var t,o,a,n,l,i;return{device:(null===(t=e("core/editor"))||void 0===t||null===(o=t.getDeviceType)||void 0===o?void 0:o.call(t))||(null===(a=e("core/edit-site"))||void 0===a||null===(n=a.__experimentalGetPreviewDeviceType)||void 0===n?void 0:n.call(a))||(null===(l=e("core/edit-post"))||void 0===l||null===(i=l.__experimentalGetPreviewDeviceType)||void 0===i?void 0:i.call(l))||"Desktop"}}),[]),u=(0,b.useSelect)((e=>{var t,o;return(null===(t=e("core/edit-site"))||void 0===t?void 0:t.getEditorMode())||(null===(o=e("core/edit-post"))||void 0===o?void 0:o.getEditorMode())}));return(0,a.useEffect)((()=>((0,l.fetchSettings)().then((e=>{t((0,A.head)(e.stackable_global_typography)||{}),n(e.stackable_global_typography_apply_to||"blocks-stackable-native")})),(0,z.addAction)("stackable.global-settings.typography.update-trigger","stackable/typography-styles",((e,o)=>{t(e),n(o)})),()=>{(0,z.removeAction)("stackable.global-settings.typography.update-trigger","stackable/typography-styles")})),[]),(0,a.useEffect)((()=>((0,z.addAction)("stackable.global-settings.typography-update-global-styles","stackable/typography-styles",(e=>{const t=Object.keys(e).map((t=>{const a=re(t,o);return le().all(a.map((o=>{const a=e[t];a.fontFamily&&(0,l.loadGoogleFont)(a.fontFamily);let n=o.includes("stackable/");n=(0,z.applyFilters)("stackable.global-settings.typography.selector-is-stackable",n,o);const i={[o]:(0,l.createTypographyStyles)("%s","desktop",a,{important:n}),tablet:{[o]:(0,l.createTypographyStyles)("%s","tablet",a,{important:n})},mobile:{[o]:(0,l.createTypographyStyles)("%s","mobile",a,{important:n})}};return!d||"Tablet"!==d&&"Mobile"!==d||(i[o]={...i[o],...(0,l.createTypographyStyles)("%s",d.toLowerCase(),a,{important:n})}),(0,z.applyFilters)("stackable.global-settings.typography.editor-styles",i,t,o,a,n)})))}));r((0,T.generateStyles)(le().all(t)).join(""))})),clearTimeout(s),c(setTimeout((()=>(0,z.doAction)("stackable.global-settings.typography-update-global-styles",e)),200)),()=>(0,z.removeAction)("stackable.global-settings.typography-update-global-styles","stackable/typography-styles"))),[JSON.stringify(e),o,d,u]),i},re=(e,t)=>["h1","h2","h3","h4","h5","h6"].includes(e)||e.startsWith(".")?se(e,t):ce(t),se=(e,t)=>{const o=[],a=e.startsWith(".");return o.push(`[data-type^="stackable/"] ${e}`),(a||"blocks-stackable"!==t)&&(o.push(`.editor-styles-wrapper [data-type^="core/"] ${e}`),o.push(`.editor-styles-wrapper ${e}[data-type^="core/"]`)),(a||"blocks-all"===t)&&(o.push(`.editor-styles-wrapper [data-type] ${e}`),o.push(`.editor-styles-wrapper ${e}[data-type]`)),(0,z.applyFilters)("stackable.global-settings.typography-selectors",o,e)},ce=e=>(0,z.applyFilters)("stackable.global-settings.typography-selectors",[...se("p",e),...se("li",e),'.editor-styles-wrapper p.block-editor-block-list__block[data-type^="core/"]','.editor-styles-wrapper .block-editor-block-list__block[data-type^="core/"] p','.editor-styles-wrapper .block-editor-block-list__block[data-type^="core/"] li','.editor-styles-wrapper .block-editor-block-list__block[data-type^="core/"] td',".block-editor-default-block-appender.has-visible-prompt"],"");(0,z.addFilter)("stackable.global-settings.typography-selectors","stackable/native-posts-block",(e=>e.map((e=>e.replace('[data-type^="core/"] li','[data-type^="core/"]:not([data-type="core/post-template"], [data-type="core/query"]) li')))));var de=o(4184),ue=o.n(de);const be=e=>{const{value:t,help:o}=e,l=(t,o)=>{const a={...e.value,[t]:o};e.onChange(a)},r=(0,a.createElement)(ke,{selector:e.selector,styles:t,help:o},e.label),s=ue()(["ugb-global-settings-typography-control"],{"ugb-global-settings-typography-control--with-description":pe(t)});return(0,a.createElement)(n.TypographyControl,{fontSizeProps:{units:["px","em","rem"]},lineHeightUnits:["px","em","rem"],className:s,label:r,popoverLabel:null,onChangeStyle:!1,showSecondFontSize:!1,allowReset:!0,fontFamily:t.fontFamily,defaultFontFamily:null==e?void 0:e.defaultFontFamily,fontSize:t.fontSize,htmlTag:e.selector,tabletFontSize:t.tabletFontSize,mobileFontSize:t.mobileFontSize,fontSizeUnit:t.fontSizeUnit,tabletFontSizeUnit:t.tabletFontSizeUnit,mobileFontSizeUnit:t.mobileFontSizeUnit,fontWeight:t.fontWeight,textTransform:t.textTransform,lineHeight:t.lineHeight,tabletLineHeight:t.tabletLineHeight,mobileLineHeight:t.mobileLineHeight,lineHeightUnit:t.lineHeightUnit,tabletLineHeightUnit:t.tabletLineHeightUnit,mobileLineHeightUnit:t.mobileLineHeightUnit,letterSpacing:t.letterSpacing,tabletLetterSpacing:t.tabletLetterSpacing,mobileLetterSpacing:t.mobileLetterSpacing,onChangeFontFamily:e=>l("fontFamily",e),onChangeFontSize:e=>l("fontSize",e),onChangeTabletFontSize:e=>l("tabletFontSize",e),onChangeMobileFontSize:e=>l("mobileFontSize",e),onChangeFontSizeUnit:e=>l("fontSizeUnit",e),onChangeTabletFontSizeUnit:e=>l("tabletFontSizeUnit",e),onChangeMobileFontSizeUnit:e=>l("mobileFontSizeUnit",e),onChangeFontWeight:e=>l("fontWeight",e),onChangeTextTransform:e=>l("textTransform",e),onChangeLineHeight:e=>l("lineHeight",e),onChangeTabletLineHeight:e=>l("tabletLineHeight",e),onChangeMobileLineHeight:e=>l("mobileLineHeight",e),onChangeLineHeightUnit:e=>l("lineHeightUnit",e),onChangeTabletLineHeightUnit:e=>l("tabletLineHeightUnit",e),onChangeMobileLineHeightUnit:e=>l("mobileLineHeightUnit",e),onChangeLetterSpacing:e=>l("letterSpacing",e),onChangeTabletLetterSpacing:e=>l("tabletLetterSpacing",e),onChangeMobileLetterSpacing:e=>l("mobileLetterSpacing",e),onReset:()=>e.onReset(e.selector),resetPopoverTitle:(0,d.sprintf)((0,d.__)("Reset %s Global Typography Style",i.i18n),"p"===e.selector?(0,d.__)("Body Text",i.i18n):e.selector.toUpperCase()),resetPopoverDescription:(0,d.__)("Resetting this typography style will revert all typography to its original style. Proceed?",i.i18n),isAllowReset:null==e?void 0:e.isAllowReset})};be.defaultProps={selector:"h1",label:(0,d.sprintf)((0,d.__)("Heading %d",i.i18n),1),onChange:()=>{},onReset:()=>{},value:{},letterSpacing:""};const me=be,pe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop";const o=[];return e.fontFamily&&o.push((0,l.getFontFamilyLabel)(e.fontFamily)),e.fontSize&&o.push(`${e.fontSize}${e.fontSizeUnit||"px"}`),"tablet"===t&&e.tabletFontSize?(e.fontSize&&o.pop(),o.push(`${e.tabletFontSize}${e.tabletFontSizeUnit||"px"}`)):"mobile"===t&&(e.tabletFontSize||e.mobileFontSize)&&(e.fontSize&&o.pop(),e.mobileFontSize?o.push(`${e.mobileFontSize}${e.mobileFontSizeUnit||"px"}`):o.push(`${e.tabletFontSize}${e.tabletFontSizeUnit||"px"}`)),e.fontWeight&&o.push(e.fontWeight),e.textTransform&&o.push((0,A.upperFirst)(e.textTransform)),o.join(", ")},ke=e=>{var t,o;const i=null===(t=e.selector)||void 0===t?void 0:t.startsWith("."),s=i?"p":e.selector,c=ue()(["ugb-global-typography-preview__label"],{[null===(o=e.selector)||void 0===o?void 0:o.substring(1)]:i}),{device:d}=(0,b.useSelect)((e=>{var t,o,a,n,l,i,r,s,c;return{device:(null===(t=e("core/editor"))||void 0===t||null===(o=t.getDeviceType)||void 0===o||null===(a=o.call(t))||void 0===a?void 0:a.toLowerCase())||(null===(n=e("core/edit-site"))||void 0===n||null===(l=n.__experimentalGetPreviewDeviceType)||void 0===l||null===(i=l.call(n))||void 0===i?void 0:i.toLowerCase())||(null===(r=e("core/edit-post"))||void 0===r||null===(s=r.__experimentalGetPreviewDeviceType)||void 0===s||null===(c=s.call(r))||void 0===c?void 0:c.toLowerCase())||"desktop"}}),[]),u=pe(e.styles,d),m=(0,A.omit)(e.styles,["lineHeight","tabletLineHeight","mobileLineHeight"]),p={[`.ugb-global-typography-preview__label[data-selector="${e.selector}"]`]:(0,l.createTypographyStyles)("%s","desktop",m,{important:!0}),[`.ugb-global-typography-preview__label[data-selector="${e.selector}"]:not([data-device="desktop"])`]:(0,l.createTypographyStyles)("%s","tablet",m,{important:!0}),[`.ugb-global-typography-preview__label[data-selector="${e.selector}"][data-device="mobile"]`]:(0,l.createTypographyStyles)("%s","mobile",m,{important:!0})};return e.styles.fontFamily&&(0,l.loadGoogleFont)(e.styles.fontFamily),(0,a.createElement)("div",{className:"ugb-global-typography-preview"},(0,a.createElement)("div",{className:"editor-styles-wrapper"},(0,a.createElement)("div",{className:"block-editor-block-list__layout"},(0,a.createElement)("div",{className:"wp-block block-editor-block-list__block"},(0,a.createElement)("style",null,(0,T.generateStyles)(p).join("")),(0,a.createElement)(s,{className:c,"data-selector":e.selector,"data-device":d},e.children))),e.help&&(0,a.createElement)(n.Tooltip,{position:"bottom",text:e.help},(0,a.createElement)(r.Dashicon,{icon:"editor-help"}))),u&&(0,a.createElement)("p",{className:"ugb-global-typography-preview__description"},u))},ge=JSON.parse('[{"name":"theme-heading-default/theme-body-default","typography":{"h1":{"fontFamily":""},"h2":{"fontFamily":""},"h3":{"fontFamily":""},"h4":{"fontFamily":""},"h5":{"fontFamily":""},"h6":{"fontFamily":""},"p":{"fontFamily":""},".stk-subtitle":{"fontFamily":""},".stk-button__inner-text":{"fontFamily":""}}},{"name":"dm-serif-display/dm-sans","typography":{"h1":{"fontFamily":"DM Serif Display"},"h2":{"fontFamily":"DM Serif Display"},"h3":{"fontFamily":"DM Serif Display"},"h4":{"fontFamily":"DM Serif Display"},"h5":{"fontFamily":"DM Serif Display"},"h6":{"fontFamily":"DM Serif Display"},"p":{"fontFamily":"DM Sans"},".stk-subtitle":{"fontFamily":"DM Sans"},".stk-button__inner-text":{"fontFamily":"DM Sans"}}},{"name":"ultra/pt-serif","typography":{"h1":{"fontFamily":"Ultra"},"h2":{"fontFamily":"Ultra"},"h3":{"fontFamily":"Ultra"},"h4":{"fontFamily":"Ultra"},"h5":{"fontFamily":"Ultra"},"h6":{"fontFamily":"Ultra"},"p":{"fontFamily":"PT Serif"},".stk-subtitle":{"fontFamily":"PT Serif"},".stk-button__inner-text":{"fontFamily":"PT Serif"}}},{"name":"ibm-plex-sans-condensed/ibm-plex-sans","typography":{"h1":{"fontFamily":"IBM Plex Sans Condensed"},"h2":{"fontFamily":"IBM Plex Sans Condensed"},"h3":{"fontFamily":"IBM Plex Sans Condensed"},"h4":{"fontFamily":"IBM Plex Sans Condensed"},"h5":{"fontFamily":"IBM Plex Sans Condensed"},"h6":{"fontFamily":"IBM Plex Sans Condensed"},"p":{"fontFamily":"IBM Plex Sans"},".stk-subtitle":{"fontFamily":"IBM Plex Sans"},".stk-button__inner-text":{"fontFamily":"IBM Plex Sans"}}},{"name":"work-sans/merriweather","typography":{"h1":{"fontFamily":"Work Sans"},"h2":{"fontFamily":"Work Sans"},"h3":{"fontFamily":"Work Sans"},"h4":{"fontFamily":"Work Sans"},"h5":{"fontFamily":"Work Sans"},"h6":{"fontFamily":"Work Sans"},"p":{"fontFamily":"Merriweather"},".stk-subtitle":{"fontFamily":"Merriweather"},".stk-button__inner-text":{"fontFamily":"Merriweather"}}},{"name":"oswald/source-sans-pro","typography":{"h1":{"fontFamily":"Oswald"},"h2":{"fontFamily":"Oswald"},"h3":{"fontFamily":"Oswald"},"h4":{"fontFamily":"Oswald"},"h5":{"fontFamily":"Oswald"},"h6":{"fontFamily":"Oswald"},"p":{"fontFamily":"Source Sans Pro"},".stk-subtitle":{"fontFamily":"Source Sans Pro"},".stk-button__inner-text":{"fontFamily":"Source Sans Pro"}}},{"name":"barlow-condensed/montserrat","typography":{"h1":{"fontFamily":"Barlow Condensed"},"h2":{"fontFamily":"Barlow Condensed"},"h3":{"fontFamily":"Barlow Condensed"},"h4":{"fontFamily":"Barlow Condensed"},"h5":{"fontFamily":"Barlow Condensed"},"h6":{"fontFamily":"Barlow Condensed"},"p":{"fontFamily":"Montserrat"},".stk-subtitle":{"fontFamily":"Montserrat"},".stk-button__inner-text":{"fontFamily":"Montserrat"}}},{"name":"alegreya/alegreya","typography":{"h1":{"fontFamily":"Alegreya"},"h2":{"fontFamily":"Alegreya"},"h3":{"fontFamily":"Alegreya"},"h4":{"fontFamily":"Alegreya"},"h5":{"fontFamily":"Alegreya"},"h6":{"fontFamily":"Alegreya"},"p":{"fontFamily":"Alegreya"},".stk-subtitle":{"fontFamily":"Alegreya"},".stk-button__inner-text":{"fontFamily":"Alegreya"}}},{"name":"karla/merriweather","typography":{"h1":{"fontFamily":"Karla"},"h2":{"fontFamily":"Karla"},"h3":{"fontFamily":"Karla"},"h4":{"fontFamily":"Karla"},"h5":{"fontFamily":"Karla"},"h6":{"fontFamily":"Karla"},"p":{"fontFamily":"Merriweather"},".stk-subtitle":{"fontFamily":"Merriweather"},".stk-button__inner-text":{"fontFamily":"Merriweather"}}},{"name":"roboto-condensed/roboto","typography":{"h1":{"fontFamily":"Roboto Condensed"},"h2":{"fontFamily":"Roboto Condensed"},"h3":{"fontFamily":"Roboto Condensed"},"h4":{"fontFamily":"Roboto Condensed"},"h5":{"fontFamily":"Roboto Condensed"},"h6":{"fontFamily":"Roboto Condensed"},"p":{"fontFamily":"Roboto"},".stk-subtitle":{"fontFamily":"Roboto"},".stk-button__inner-text":{"fontFamily":"Roboto"}}},{"name":"nunito-sans/nunito-sans","typography":{"h1":{"fontFamily":"Nunito Sans"},"h2":{"fontFamily":"Nunito Sans"},"h3":{"fontFamily":"Nunito Sans"},"h4":{"fontFamily":"Nunito Sans"},"h5":{"fontFamily":"Nunito Sans"},"h6":{"fontFamily":"Nunito Sans"},"p":{"fontFamily":"Nunito Sans"},".stk-subtitle":{"fontFamily":"Nunito Sans"},".stk-button__inner-text":{"fontFamily":"Nunito Sans"}}}]'),he=[{label:(0,d.sprintf)((0,d.__)("Heading %d",i.i18n),1),selector:"h1"},{label:(0,d.sprintf)((0,d.__)("Heading %d",i.i18n),2),selector:"h2"},{label:(0,d.sprintf)((0,d.__)("Heading %d",i.i18n),3),selector:"h3"},{label:(0,d.sprintf)((0,d.__)("Heading %d",i.i18n),4),selector:"h4"},{label:(0,d.sprintf)((0,d.__)("Heading %d",i.i18n),5),selector:"h5"},{label:(0,d.sprintf)((0,d.__)("Heading %d",i.i18n),6),selector:"h6"},{label:(0,d.__)("Body Text",i.i18n),selector:"p"},{label:(0,d.__)("Subtitle",i.i18n),selector:".stk-subtitle",help:(0,a.createElement)(a.Fragment,null,(0,d.sprintf)((0,d.__)("To apply this typography style, just add `%s` in your block's Additional CSS classes. Also make sure that `%s` tag is set to avoid conflict with other typography styles",i.i18n),"stk-subtitle","p"))},{label:(0,d.__)("Button",i.i18n),selector:".stk-button__inner-text"}];let ve=null,Ce=null,ye=null;(0,z.addFilter)("stackable.global-settings.inspector","stackable/global-typography",(e=>{const t=(0,z.applyFilters)("stackable.global-settings.typography.font-pairs.premium-font-pairs",ge),[o,r]=(0,a.useState)(!1),[s,c]=(0,a.useState)([]),[u,b]=(0,a.useState)(""),[m,p]=(0,a.useState)([]),[k,g]=(0,a.useState)(""),[h,v]=(0,a.useState)(!1),C=(0,a.useRef)(null);(0,a.useEffect)((()=>{(0,l.fetchSettings)().then((e=>{c((0,A.head)(e.stackable_global_typography)||{}),b(e.stackable_global_typography_apply_to||"blocks-stackable-native"),p(e.stackable_custom_font_pairs||[]),g(e.stackable_selected_font_pair||"")}))}),[]),(0,a.useEffect)((()=>{(0,z.doAction)("stackable.global-settings.typography.update-trigger",s,u)}),[JSON.stringify(s),u]),(0,a.useEffect)((()=>{const e=null==C?void 0:C.current;if(e&&o){const t=e.querySelector(".ugb-global-settings-font-pair__selected");if(t){const o=e.getBoundingClientRect(),a=t.getBoundingClientRect().top-o.top-e.clientHeight/2+t.clientHeight/2;e.scrollTop+=a}}}),[o]);const y=()=>[...t,...m].find((e=>e.name===k)),f=e=>{c(e),clearTimeout(ve),ve=setTimeout((()=>{new x.models.Settings({stackable_global_typography:[e]}).save()}),500)},B=e=>{g(e),clearTimeout(Ce),Ce=setTimeout((()=>{new x.models.Settings({stackable_selected_font_pair:e}).save()}),500)},S=e=>{p(e),clearTimeout(ye),ye=setTimeout((()=>{new x.models.Settings({stackable_custom_font_pairs:[...e]}).save()}),500)},_=e=>{const t={...s};Object.entries(e).forEach((e=>{let[o,a]=e;o&&"object"==typeof a&&(Object.keys(a).forEach((e=>{""===a[e]&&delete a[e]})),t[o]=a)})),Object.values(e).some((e=>e&&!e.fontSize))&&(0,z.doAction)("stackable.global-settings.typography-update-global-styles",t),f(t)},w=e=>{const t=y();var o,a;if(!h&&t)return null!==(o=null===(a=t.typography[e])||void 0===a?void 0:a.fontFamily)&&void 0!==o?o:""},E=e=>{const t=y(),o=s[e];if(!h&&t){const a=t.typography[e];return!(0,A.isEqual)(a,o)&&!Array.isArray(o)}return!(!o||!(o.fontFamily||o.fontSize||o.tabletFontSize||o.mobileFontSize||o.fontWeight||o.textTransform||o.lineHeight||o.tabletLineHeight||o.mobileLineHeight||o.letterSpacing||o.tabletLetterSpacing||o.mobileLetterSpacing))},T=()=>!!m.find((e=>e.name===k))||(!he.some((e=>{let{selector:t}=e;return E(t)}))||window.confirm((0,d.__)("Picking a new font pair will overwrite the existing typography settings. Are you sure?",i.i18n))),I=(0,z.applyFilters)("stackable.global-settings.typography.font-pairs.customPicker",a.Fragment),M=(0,z.applyFilters)("stackable.global-settings.typography.font-pairs.editingFontPairPanel",a.Fragment);return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,d.__)("Global Typography",i.i18n),className:"ugb-global-typography__panel",onToggle:()=>{r((e=>!e))}},(0,a.createElement)("style",null," ",(()=>{const e=document.querySelector('iframe[name="editor-canvas"]');let t="";if(e){const o=e.contentDocument||e.contentWindow.document;try{Array.from(o.styleSheets).filter((e=>null===e.href)).forEach((e=>{Array.from(e.cssRules).forEach((e=>{var o;null!==(o=e.selectorText)&&void 0!==o&&o.includes(".editor-styles-wrapper")&&(t+=e.cssText)}))}))}catch(e){console.error("An error occurred while retrieving stylesheets",e)}}return t})()," "),!h&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("p",{className:"components-base-control__help"},(0,d.__)("Change the typography of your headings for all your blocks in your site.",i.i18n)," ",(0,a.createElement)("a",{href:"https://docs.wpstackable.com/article/363-how-to-use-global-typography?utm_source=wp-global-settings&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},(0,d.__)("Learn more about Global Typography",i.i18n))),(0,a.createElement)(n.AdvancedSelectControl,{label:(0,d.__)("Apply Typography Styles to",i.i18n),options:[{value:"blocks-stackable-native",label:(0,d.__)("Stackable and native blocks only",i.i18n)},{value:"blocks-stackable",label:(0,d.__)("Stackable blocks only",i.i18n)},{value:"blocks-all",label:(0,d.__)("Stackable and all other blocks",i.i18n)}],value:u,onChange:e=>{b(e),new x.models.Settings({stackable_global_typography_apply_to:e}).save()},default:"blocks-stackable-native"}),(0,a.createElement)(n.ControlSeparator,null),(0,a.createElement)("div",{className:"ugb-global-settings-font-pair__heading"},(0,a.createElement)("h3",null,(0,d.__)("Preset Font Pairs")),i.isPro&&(0,z.applyFilters)("stackable.global-settings.typography.font-pairs.addFontPair",[...t,...m],k,(e=>{v(!0),B(e.name),S([e,...m])}))),(0,a.createElement)("div",{className:"ugb-global-settings-font-pair__container",ref:C},(0,a.createElement)(n.FontPairPicker,{key:t[0].name,fontPair:t[0],isSelected:k===t[0].name,onClick:()=>{T()&&(B(t[0].name),_(t[0].typography))}}),(0,a.createElement)(I,{customFontPairs:m,selected:k,onClick:(e,t)=>{T()&&(B(e),_(t))},onEdit:(e,t)=>{v(!0),B(e),_(t)}}),t.slice(1).map((e=>(0,a.createElement)(n.FontPairPicker,{key:e.name,fontPair:e,isSelected:k===e.name,onClick:()=>{T()&&(B(e.name),_(e.typography))}})))),i.showProNotice&&(0,a.createElement)(n.ProControlButton,{type:"font-pairs"}),(0,a.createElement)(n.ControlSeparator,null),(0,a.createElement)("h3",null,(0,d.__)("Typography Settings")),he.map(((e,t)=>{let{label:o,selector:n,help:l}=e;return(0,a.createElement)(me,{help:l,key:t,label:o,selector:n,value:s[n]||{},defaultFontFamily:w(n),isAllowReset:E(n),onChange:e=>_({[n]:e}),onReset:()=>(e=>{let t={};const o=y();!h&&o&&(t={...s,[e]:o.typography[e]}),(0,z.doAction)("stackable.global-settings.typography-update-global-styles",t),f(t)})(n)})}))),i.isPro&&h&&(0,a.createElement)(M,{TypographyPicker:me,TYPOGRAPHY_TAGS:he,typographySettings:s,customFontPairs:m,selectedFontPairName:k,changeStyles:_,updateTypography:f,updateCustomFontPairs:S,setIsEditingFontPair:v,onDelete:e=>{v(!1),B(""),S(e)},getIsAllowReset:E})))}),4);const fe={blockLayouts:[]};(0,b.register)((0,b.createReduxStore)("stackable/global-spacing-and-borders",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_BLOCK_LAYOUTS"===t.type?{...e,blockLayouts:t.blockLayouts}:e},actions:{updateBlockLayouts:e=>({type:"UPDATE_BLOCK_LAYOUTS",blockLayouts:e})},selectors:{getBlockLayouts:e=>e.blockLayouts}})),u((()=>{(0,l.fetchSettings)().then((e=>{const{stackable_global_spacing_and_borders:t}=e,o=t||[];(0,b.dispatch)("stackable/global-spacing-and-borders").updateBlockLayouts(o)}))})),(0,z.addFilter)("stackable.global-settings.inspector","stackable/global-spacing-and-borders",(e=>{var t,o,l,r,s,c,u,b,m,p,k,g,B,S,_,w,E,x,z,M,H,N,D,O,L,R,U,P;const[V,F]=(0,a.useState)(!1),[G,q]=(0,a.useState)(!1),[W,$,j,Z,J,K,Y,Q]=I("stackable/global-spacing-and-borders","stackable_global_spacing_and_borders",q,null);return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,d.__)("Global Spacing & Borders",i.i18n),onToggle:e=>F(e)},V&&G&&(0,a.createElement)("span",{className:"stk-global-block-layouts-help-tooltip"},(0,a.createElement)(n.HelpTooltip,{title:(0,d.__)("Hover States",i.i18n),description:(0,d.__)("When editing block layouts in the hover states, select a block to view the applied styles.",i.i18n),closeOnEscape:!1,showTooltipCheckbox:!1,onClose:()=>{q(!1),localStorage.setItem("stk-disable-global-block-layouts-hover-notice",!0)}})),(0,a.createElement)("p",{className:"components-base-control__help"},(0,d.__)("Globally style spacings and borders across all our blocks.",i.i18n)," ",(0,a.createElement)("a",{href:"https://docs.wpstackable.com/article/648-how-to-use-global-spacing-borders?utm_source=wp-global-settings&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},(0,d.__)("Learn more about Global Styles",i.i18n))),(0,a.createElement)(n.Button,{className:"stk-reset-all-block-layout-settings",variant:"secondary",isSmall:!0,disabled:(0,A.isEmpty)(W),onClick:()=>{window.confirm((0,d.sprintf)((0,d.__)("Are you sure you want to reset all %s styles to their default values?",i.i18n),(0,d.__)("Global Spacing & Borders",i.i18n)))&&J({})},text:(0,d.__)("Reset All",i.i18n)}),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Margins",i.i18n),description:(0,d.__)("These styles are applied to all our Blocks.",i.i18n)},(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Block Margin Bottom",i.i18n),responsive:"all",sliderMin:[0,0],sliderMax:[200,100],placeholder:"24",units:["px","%"],unit:$("block-margin-bottom",y)||"px",onChangeUnit:e=>K("block-margin-bottom",e,y),value:$("block-margin-bottom",C),onChange:e=>K("block-margin-bottom",e,C),hasTabletValue:Y("block-margin-bottom","tablet"),hasMobileValue:Y("block-margin-bottom","mobile"),helpTooltip:{video:"advanced-block-margin",description:(0,d.__)("Sets the block margin bottom, i.e. the space outside the block between the block border and the next block.",i.i18n)}})),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Columns",i.i18n),description:(0,d.__)("These styles are applied to Inner Column blocks.",i.i18n)},(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)(" Inner Column Spacing",i.i18n),responsive:"all",min:[0,0],sliderMax:[200,30],placeholder:"12",units:["px","em","vw"],unit:$("column-margin",y)||"px",onChangeUnit:e=>K("column-margin",e,y),value:$("column-margin",C),onChange:e=>K("column-margin",e,C),hasTabletValue:Y("column-margin","tablet"),hasMobileValue:Y("column-margin","mobile"),helpTooltip:{description:(0,d.__)("Sets column paddings, the space inside the block between the block elements and the column container border",i.i18n)}}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Column Gap",i.i18n),responsive:"all",min:0,sliderMax:100,placeholder:"0",value:$("columns-column-gap",C),onChange:e=>K("columns-column-gap",e,C),hasTabletValue:Y("columns-column-gap","tablet"),hasMobileValue:Y("columns-column-gap","mobile"),helpTooltip:{video:"column-gap",description:(0,d.__)("Sets the distance between two or more columns",i.i18n)}}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Row Gap",i.i18n),responsive:"all",min:0,sliderMax:100,placeholder:"0",value:$("columns-row-gap",C),onChange:e=>K("columns-row-gap",e,C),hasTabletValue:Y("columns-row-gap","tablet"),hasMobileValue:Y("columns-row-gap","mobile"),helpTooltip:{description:(0,d.__)("Sets the distance between two or more columns",i.i18n)}})),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Background",i.i18n),description:(0,d.__)('These styles are applied to blocks that have the "Background" option enabled in the Style Tab.',i.i18n)},(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Padding",i.i18n),placeholder:"24",responsive:"all",forceUpdateHoverState:!0,min:[0,0,0],sliderMax:[200,30,100],units:["px","em","%"],unit:$("block-background-padding",v)||"px",onChangeUnit:e=>K("block-background-padding",e,v),top:null===(t=$("block-background-padding",h))||void 0===t?void 0:t.top,right:null===(o=$("block-background-padding",h))||void 0===o?void 0:o.right,bottom:null===(l=$("block-background-padding",h))||void 0===l?void 0:l.bottom,left:null===(r=$("block-background-padding",h))||void 0===r?void 0:r.left,onChange:e=>K("block-background-padding",e,h),hasHoverStateValue:Q("block-background-padding",!0),hasTabletValue:Y("block-background-padding","tablet"),hasMobileValue:Y("block-background-padding","mobile"),helpTooltip:{video:"inner-block-padding",description:(0,d.__)("Sets the block paddings, i.e the space between the inner columns and the block border",i.i18n)}}),(0,a.createElement)(n.AdvancedToolbarControl,{label:(0,d.__)("Borders",i.i18n),controls:T.BORDER_CONTROLS,className:"ugb-border-controls__border-type-toolbar",isSmall:!0,value:$("block-background-border-style"),onChange:e=>K("block-background-border-style",e)}),(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Border Width",i.i18n),responsive:"all",hover:"all",min:0,max:99,step:1,placeholder:"1",sliderMax:5,defaultLocked:!0,forceUpdateHoverState:!0,top:null===(s=$("block-background-border-width",h))||void 0===s?void 0:s.top,right:null===(c=$("block-background-border-width",h))||void 0===c?void 0:c.right,bottom:null===(u=$("block-background-border-width",h))||void 0===u?void 0:u.bottom,left:null===(b=$("block-background-border-width",h))||void 0===b?void 0:b.left,onChange:e=>K("block-background-border-width",e,h),hasHoverStateValue:Q("block-background-border-width",!0),hasTabletValue:Y("block-background-border-width","tablet"),hasMobileValue:Y("block-background-border-width","mobile")}),(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Border Radius",i.i18n),min:0,isCorner:!0,sliderMax:50,responsive:"all",placeholder:"0",onChange:e=>K("block-background-border-radius",e,C),top:null===(m=$("block-background-border-radius",C))||void 0===m?void 0:m.top,right:null===(p=$("block-background-border-radius",C))||void 0===p?void 0:p.right,bottom:null===(k=$("block-background-border-radius",C))||void 0===k?void 0:k.bottom,left:null===(g=$("block-background-border-radius",C))||void 0===g?void 0:g.left,hasTabletValue:Y("block-background-border-radius","tablet"),hasMobileValue:Y("block-background-border-radius","mobile"),helpTooltip:{video:"general-border-radius",description:(0,d.__)("Adjusts the radius of block corners to make them more rounded",i.i18n)}}),(0,a.createElement)(n.ShadowControl,{label:(0,d.__)("Shadow / Outline",i.i18n),hover:"all",forceUpdateHoverState:!0,value:j($("block-background-box-shadow",f)||""),onChange:e=>K("block-background-box-shadow",Z(e),f),shadowFilterValue:$("block-background-box-shadow",f)||"",shadowFilterOnChange:e=>K("block-background-box-shadow",e,f),hasHoverStateValue:Q("block-background-box-shadow")})),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Containers",i.i18n),description:(0,d.__)('These styles are applied to blocks that have the "Container" option enabled in the Layout Tab.',i.i18n)},(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Padding",i.i18n),responsive:"all",forceUpdateHoverState:!0,min:[0,0,0],sliderMax:[200,30,100],units:["px","em","%"],unit:$("container-padding",v)||"px",onChangeUnit:e=>K("container-padding",e,v),top:null===(B=$("container-padding",h))||void 0===B?void 0:B.top,right:null===(S=$("container-padding",h))||void 0===S?void 0:S.right,bottom:null===(_=$("container-padding",h))||void 0===_?void 0:_.bottom,left:null===(w=$("container-padding",h))||void 0===w?void 0:w.left,onChange:e=>K("container-padding",e,h),hasHoverStateValue:Q("container-padding",!0),hasTabletValue:Y("container-padding","tablet"),hasMobileValue:Y("container-padding","mobile"),placeholder:"32",helpTooltip:{video:"inner-block-padding",description:(0,d.__)("Sets the block paddings, i.e the space between the inner columns and the block border",i.i18n)}}),(0,a.createElement)(n.AdvancedToolbarControl,{label:(0,d.__)("Borders",i.i18n),controls:T.BORDER_CONTROLS,className:"ugb-border-controls__border-type-toolbar",isSmall:!0,value:$("container-border-style"),onChange:e=>K("container-border-style",e)}),(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Border Width",i.i18n),responsive:"all",hover:"all",forceUpdateHoverState:!0,min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,placeholder:"1",top:null===(E=$("container-border-width",h))||void 0===E?void 0:E.top,right:null===(x=$("container-border-width",h))||void 0===x?void 0:x.right,bottom:null===(z=$("container-border-width",h))||void 0===z?void 0:z.bottom,left:null===(M=$("container-border-width",h))||void 0===M?void 0:M.left,onChange:e=>K("container-border-width",e,h),hasHoverStateValue:Q("container-border-width",!0),hasTabletValue:Y("container-border-width","tablet"),hasMobileValue:Y("container-border-width","mobile")}),(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Border Radius",i.i18n),min:0,isCorner:!0,sliderMax:50,responsive:"all",placeholder:"0",onChange:e=>K("container-border-radius",e,C),top:null===(H=$("container-border-radius",C))||void 0===H?void 0:H.top,right:null===(N=$("container-border-radius",C))||void 0===N?void 0:N.right,bottom:null===(D=$("container-border-radius",C))||void 0===D?void 0:D.bottom,left:null===(O=$("container-border-radius",C))||void 0===O?void 0:O.left,hasTabletValue:Y("container-border-radius","tablet"),hasMobileValue:Y("container-border-radius","mobile"),helpTooltip:{video:"general-border-radius",description:(0,d.__)("Adjusts the radius of block corners to make them more rounded",i.i18n)}}),(0,a.createElement)(n.ShadowControl,{label:(0,d.__)("Shadow / Outline",i.i18n),hover:"all",forceUpdateHoverState:!0,value:j($("container-box-shadow",f)||""),onChange:e=>K("container-box-shadow",Z(e),f),shadowFilterValue:$("container-box-shadow",f)||"",shadowFilterOnChange:e=>K("container-box-shadow",e,f),hasHoverStateValue:Q("container-box-shadow")})),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Image",i.i18n),description:(0,d.__)("These styles are applied to all images in Stackable Blocks.",i.i18n)},(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Border Radius",i.i18n),min:0,isCorner:!0,sliderMax:50,responsive:"all",placeholder:"0",onChange:e=>K("image-border-radius",e,C),top:null===(L=$("image-border-radius",C))||void 0===L?void 0:L.top,right:null===(R=$("image-border-radius",C))||void 0===R?void 0:R.right,bottom:null===(U=$("image-border-radius",C))||void 0===U?void 0:U.bottom,left:null===(P=$("image-border-radius",C))||void 0===P?void 0:P.left,hasTabletValue:Y("image-border-radius","tablet"),hasMobileValue:Y("image-border-radius","mobile"),helpTooltip:{video:"image-border-radius",description:(0,d.__)("Adjusts the radius of image corners to make them more rounded",i.i18n)}}),(0,a.createElement)(n.ShadowControl,{label:(0,d.__)("Shadow / Outline",i.i18n),options:T.IMAGE_SHADOWS,hover:"all",isFilter:!0,forceUpdateHoverState:!0,value:j($("image-drop-shadow",f)||"",!0),onChange:e=>K("image-drop-shadow",Z(e,!0),f),shadowFilterValue:$("image-drop-shadow",f),shadowFilterOnChange:e=>K("image-drop-shadow",e,f),hasHoverStateValue:Q("image-drop-shadow"),helpTooltip:{video:"image-shadow",title:(0,d.__)("Image Shadow",i.i18n),description:(0,d.__)("Adjusts the intensity of the image shadow",i.i18n)}}))))}),8);const Be=()=>E("stackable/global-spacing-and-borders","spacing-and-borders");(0,z.addFilter)("stackable.resizable-bottom-margin.default","stackable/block-layouts",(e=>{const t=(0,w.useDeviceType)(),{getPlaceholder:o}=(0,w.useBlockLayoutDefaults)();return o("block-margin-bottom",{device:t.toLowerCase()})||e}));const Se={blockLayouts:[]};(0,b.register)((0,b.createReduxStore)("stackable/global-buttons-and-icons",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Se,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_BLOCK_LAYOUTS"===t.type?{...e,blockLayouts:t.blockLayouts}:e},actions:{updateBlockLayouts:e=>({type:"UPDATE_BLOCK_LAYOUTS",blockLayouts:e})},selectors:{getBlockLayouts:e=>e.blockLayouts}})),u((()=>{(0,l.fetchSettings)().then((e=>{const{stackable_global_buttons_and_icons:t}=e,o=t||[];(0,b.dispatch)("stackable/global-buttons-and-icons").updateBlockLayouts(o)}))})),(0,z.addFilter)("stackable.global-settings.inspector","stackable/global-buttons-and-icons",(e=>{var t,o,l,r,s,c,u,b,m,p,k,g,v,B,S,_,w,E,x,z;const[M,H]=(0,a.useState)(!1),[N,D]=(0,a.useState)(!1),[O,L,R,U,P,V,F,G]=I("stackable/global-buttons-and-icons","stackable_global_buttons_and_icons",D,null);return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,d.__)("Global Buttons & Icons",i.i18n),onToggle:e=>H(e)},M&&N&&(0,a.createElement)("span",{className:"stk-global-block-layouts-help-tooltip"},(0,a.createElement)(n.HelpTooltip,{title:(0,d.__)("Hover States",i.i18n),description:(0,d.__)("When editing block layouts in the hover states, select a block to view the applied styles.",i.i18n),closeOnEscape:!1,showTooltipCheckbox:!1,onClose:()=>{D(!1),localStorage.setItem("stk-disable-global-block-layouts-hover-notice",!0)}})),(0,a.createElement)("p",{className:"components-base-control__help"},(0,d.__)("Globally style buttons and icons across all our blocks.",i.i18n)," ",(0,a.createElement)("a",{href:"https://docs.wpstackable.com/article/648-how-to-use-global-spacing-borders?utm_source=wp-global-settings&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},(0,d.__)("Learn more about Global Styles",i.i18n))),(0,a.createElement)(n.Button,{className:"stk-reset-all-block-layout-settings",variant:"secondary",isSmall:!0,disabled:(0,A.isEmpty)(O),onClick:()=>{window.confirm((0,d.sprintf)((0,d.__)("Are you sure you want to reset all %s styles to their default values?",i.i18n),(0,d.__)("Global Buttons & Icons",i.i18n)))&&P({})},text:(0,d.__)("Reset All",i.i18n)}),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Buttons",i.i18n),description:(0,d.__)("These styles are applied to Button Blocks.",i.i18n)},(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Min. Button Height",i.i18n),responsive:"all",min:0,max:100,placeholder:"",value:L("button-min-height",C),onChange:e=>V("button-min-height",e,C),hasTabletValue:F("button-min-height","tablet"),hasMobileValue:F("button-min-height","mobile")}),(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Button Padding",i.i18n),units:["px","%"],responsive:"all",sliderMin:[0,0],sliderMax:[40,100],vhMode:!0,unit:L("button-padding",y)||"px",onChangeUnit:e=>V("button-padding",e,y),top:null===(t=L("button-padding",C))||void 0===t?void 0:t.top,right:null===(o=L("button-padding",C))||void 0===o?void 0:o.right,bottom:null===(l=L("button-padding",C))||void 0===l?void 0:l.bottom,left:null===(r=L("button-padding",C))||void 0===r?void 0:r.left,onChange:e=>V("button-padding",e,C),placeholderTop:"12",placeholderBottom:"12",placeholderLeft:"16",placeholderRight:"16",hasTabletValue:F("button-padding","tablet"),hasMobileValue:F("button-padding","mobile"),helpTooltip:{title:(0,d.__)("Button padding",i.i18n),description:(0,d.__)("Adjusts the space between the button text and button borders",i.i18n)}}),(0,a.createElement)(n.AdvancedToolbarControl,{label:(0,d.__)("Borders",i.i18n),controls:T.BORDER_CONTROLS,className:"ugb-border-controls__border-type-toolbar",isSmall:!0,value:L("button-border-style"),onChange:e=>V("button-border-style",e)}),(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Border Width",i.i18n),placeholder:"1",responsive:"all",hover:"all",min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,forceUpdateHoverState:!0,top:null===(s=L("button-border-width",h))||void 0===s?void 0:s.top,right:null===(c=L("button-border-width",h))||void 0===c?void 0:c.right,bottom:null===(u=L("button-border-width",h))||void 0===u?void 0:u.bottom,left:null===(b=L("button-border-width",h))||void 0===b?void 0:b.left,onChange:e=>V("button-border-width",e,h),hasHoverStateValue:G("button-border-width",!0),hasTabletValue:F("button-border-width","tablet"),hasMobileValue:F("button-border-width","mobile")}),(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Button Ghost Border Width",i.i18n),placeholder:"2",responsive:"all",hover:"all",min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,forceUpdateHoverState:!0,top:null===(m=L("button-ghost-border-width",h))||void 0===m?void 0:m.top,right:null===(p=L("button-ghost-border-width",h))||void 0===p?void 0:p.right,bottom:null===(k=L("button-ghost-border-width",h))||void 0===k?void 0:k.bottom,left:null===(g=L("button-ghost-border-width",h))||void 0===g?void 0:g.left,onChange:e=>V("button-ghost-border-width",e,h),hasHoverStateValue:G("button-ghost-border-width",!0),hasTabletValue:F("button-ghost-border-width","tablet"),hasMobileValue:F("button-ghost-border-width","mobile")}),(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)("Border Radius",i.i18n),min:0,isCorner:!0,sliderMax:50,responsive:"all",placeholder:"0",onChange:e=>V("button-border-radius",e,C),top:null===(v=L("button-border-radius",C))||void 0===v?void 0:v.top,right:null===(B=L("button-border-radius",C))||void 0===B?void 0:B.right,bottom:null===(S=L("button-border-radius",C))||void 0===S?void 0:S.bottom,left:null===(_=L("button-border-radius",C))||void 0===_?void 0:_.left,hasTabletValue:F("button-border-radius","tablet"),hasMobileValue:F("button-border-radius","mobile"),helpTooltip:{video:"general-border-radius",description:(0,d.__)("Adjusts the radius of block corners to make them more rounded",i.i18n)}}),(0,a.createElement)(n.ShadowControl,{label:(0,d.__)("Shadow / Outline",i.i18n),hover:"all",forceUpdateHoverState:!0,value:R(L("button-box-shadow",f)||""),onChange:e=>V("button-box-shadow",U(e),f),shadowFilterValue:L("button-box-shadow",f)||"",shadowFilterOnChange:e=>V("button-box-shadow",e,f),hasHoverStateValue:G("button-box-shadow")}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Icon Size",i.i18n),placeholder:"24",min:0,step:1,sliderMax:100,responsive:"all",value:L("button-icon-size",C),onChange:e=>V("button-icon-size",e,C),hasTabletValue:F("button-icon-size","tablet"),hasMobileValue:F("button-icon-size","mobile")}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Icon Gap",i.i18n),placeholder:"8",responsive:"all",min:0,sliderMax:50,value:L("button-icon-gap",C),onChange:e=>V("button-icon-gap",e,C),hasTabletValue:F("button-icon-gap","tablet"),hasMobileValue:F("button-icon-gap","mobile")}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Column Gap",i.i18n),placeholder:"12",responsive:"all",min:"0",sliderMax:"50",value:L("button-column-gap",C),onChange:e=>V("button-column-gap",e,C),hasTabletValue:F("button-column-gap","tablet"),hasMobileValue:F("button-column-gap","mobile")}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Row Gap",i.i18n),placeholder:"12",responsive:"all",min:"0",sliderMax:"50",value:L("button-row-gap",C),onChange:e=>V("button-row-gap",e,C),hasTabletValue:F("button-row-gap","tablet"),hasMobileValue:F("button-row-gap","mobile")})),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Icon Buttons",i.i18n),description:(0,d.__)("Additional settings that apply to Icon Button Blocks.",i.i18n)},(0,a.createElement)(n.FourRangeControl,{label:(0,d.__)(" Button Padding",i.i18n),placeholderTop:"12",placeholderBottom:"12",placeholderLeft:"12",placeholderRight:"12",units:["px","%"],responsive:"all",vhMode:!0,sliderMin:[0,0],sliderMax:[40,100],unit:L("icon-button-padding",y)||"px",onChangeUnit:e=>V("icon-button-padding",e,y),top:null===(w=L("icon-button-padding",C))||void 0===w?void 0:w.top,right:null===(E=L("icon-button-padding",C))||void 0===E?void 0:E.right,bottom:null===(x=L("icon-button-padding",C))||void 0===x?void 0:x.bottom,left:null===(z=L("icon-button-padding",C))||void 0===z?void 0:z.left,onChange:e=>V("icon-button-padding",e,C),hasTabletValue:F("icon-button-padding","tablet"),hasMobileValue:F("icon-button-padding","mobile"),helpTooltip:{title:(0,d.__)("Button padding",i.i18n),description:(0,d.__)("Adjusts the space between the button text and button borders",i.i18n)}})),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Icon List",i.i18n),description:(0,d.__)("These styles are applied to Icon List Blocks.",i.i18n)},(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Icon Size",i.i18n),min:0,max:50,step:1,placeholder:"16",responsive:"all",value:L("icon-list-icon-size",C),onChange:e=>V("icon-list-icon-size",e,C),hasTabletValue:F("icon-list-icon-size","tablet"),hasMobileValue:F("icon-list-icon-size","mobile")}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Row Gap",i.i18n),min:"0",sliderMax:"50",responsive:"all",placeholder:"0",value:L("icon-list-row-gap",C),onChange:e=>V("icon-list-row-gap",e,C),hasTabletValue:F("icon-list-row-gap","tablet"),hasMobileValue:F("icon-list-row-gap","mobile")}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Icon Gap",i.i18n),min:"0",sliderMax:"20",placeholder:"8",responsive:"all",value:L("icon-list-icon-gap",C),onChange:e=>V("icon-list-icon-gap",e,C),hasTabletValue:F("icon-list-icon-gap","tablet"),hasMobileValue:F("icon-list-icon-gap","mobile")}),(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Indentation",i.i18n),min:"0",sliderMax:"50",placeholder:"0",responsive:"all",value:L("icon-list-indentation",C),onChange:e=>V("icon-list-indentation",e,C),hasTabletValue:F("icon-list-indentation","tablet"),hasMobileValue:F("icon-list-indentation","mobile")})),(0,a.createElement)(n.SectionSettings,{title:(0,d.__)("Icons",i.i18n),description:(0,d.__)("These styles are applied to Icon Blocks.",i.i18n)},(0,a.createElement)(n.AdvancedRangeControl,{label:(0,d.__)("Icon Size",i.i18n),responsive:"all",min:0,sliderMax:100,step:1,placeholder:"36",value:L("icon-size",C),onChange:e=>V("icon-size",e,C),hasTabletValue:F("icon-size","tablet"),hasMobileValue:F("icon-size","mobile")}))))}),10);const _e=()=>E("stackable/global-buttons-and-icons","buttons-and-icons");(0,z.addFilter)("stackable.global-settings.inspector","stackable/default-blocks",(e=>{const[t,o]=(0,a.useState)(0),[l,r]=(0,a.useState)(!1),s=(0,a.useMemo)((()=>{const{getBlockSupport:e}=(0,b.select)("core/blocks");return(0,b.select)("core/blocks").getBlockTypes().filter((e=>{let{name:t}=e;return t.startsWith("stackable/")})).filter((t=>{let{name:o}=t;return!1!==e(o,"stkSaveBlockStyle")})).sort(((e,t)=>e.title.localeCompare(t.title)))}),[]),{getBlockStyle:c}=(0,b.useSelect)("stackable/block-styles");return(0,b.useSelect)((e=>l?e("stackable/block-styles").getAllBlockStyles():[]),[l]),(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,d.__)("Block Defaults",i.i18n),onToggle:e=>r(e)},(0,a.createElement)("p",{className:"components-base-control__help"},(0,d.__)("Manage how Stackable blocks look when they're inserted.",i.i18n)," ",(0,a.createElement)("a",{href:"https://docs.wpstackable.com/article/480-how-to-use-block-defaults?utm_source=wp-global-settings&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},(0,d.__)("Learn more about Block Defaults",i.i18n))),s.map(((e,l)=>{const r=new URLSearchParams;r.set("stk_edit_block",e.name),r.set("stk_edit_block_style","default"),r.set("stk_edit_block_title",e.title);const s=c(e.name,"default"),u=ue()("ugb-button-icon-control","stk-block-default-control",{"stk-block-default-control--is-active":s});return(0,a.createElement)(n.BaseControl,{key:l,label:e.title,className:u,allowReset:!0,showReset:s,onReset:()=>{(0,b.dispatch)("stackable/block-styles").deleteBlockDefaultStyle(e.name,(0,d.sprintf)((0,d.__)("Default %s Block Deleted!",i.i18n),e.title)).then((()=>{o(t+1)}))}},(0,a.createElement)("div",{className:"ugb-button-icon-control__wrapper"},(0,a.createElement)(n.Button,{className:"ugb-button-icon-control__edit",label:(0,d.__)("Edit",i.i18n),href:`${i.adminUrl}?${r.toString()}`,target:"_style-editor",isSecondary:!0,icon:"edit"})))}))))}),80);const Ae=wp.plugins;var we,Ee,Te,xe,Ie;(0,Ae.registerPlugin)("stackable-global-settings-loader",{render:()=>{const e=(0,w.useDeviceType)(),t=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()));return(0,a.useEffect)((()=>{const e=null==t?void 0:t.closest("body");e&&(e.appendChild(ze),e.appendChild(Me),e.appendChild(He),e.appendChild(Ne),e.appendChild(De))}),[e,t]),null}});const ze=null===(we=document)||void 0===we?void 0:we.createElement("style"),Me=null===(Ee=document)||void 0===Ee?void 0:Ee.createElement("style"),He=null===(Te=document)||void 0===Te?void 0:Te.createElement("style"),Ne=null===(xe=document)||void 0===xe?void 0:xe.createElement("style"),De=null===(Ie=document)||void 0===Ie?void 0:Ie.createElement("style");null==ze||ze.setAttribute("id","stk-global-typography-styles"),null==Me||Me.setAttribute("id","stk-global-color-styles"),null==He||He.setAttribute("id","stk-global-spacing-and-borders-styles"),null==Ne||Ne.setAttribute("id","stk-global-buttons-and-icons-styles"),null==De||De.setAttribute("id","stk-global-color-schemes-styles"),u((()=>{var e,t,o,n,i,r,s,c,d,u;null===(e=document)||void 0===e||null===(t=e.body)||void 0===t||t.appendChild(ze),null===(o=document)||void 0===o||null===(n=o.body)||void 0===n||n.appendChild(Me),null===(i=document)||void 0===i||null===(r=i.body)||void 0===r||r.appendChild(He),null===(s=document)||void 0===s||null===(c=s.body)||void 0===c||c.appendChild(Ne),null===(d=document)||void 0===d||null===(u=d.body)||void 0===u||u.appendChild(De),(0,l.createRoot)(ze).render((0,a.createElement)(ie,null)),(0,l.createRoot)(Me).render((0,a.createElement)(ae,null)),(0,l.createRoot)(He).render((0,a.createElement)(Be,null)),(0,l.createRoot)(Ne).render((0,a.createElement)(_e,null)),(0,l.createRoot)(De).render((0,a.createElement)(q,null))})),(i.showProNotice||i.isPro)&&(0,z.addFilter)("stackable.global-settings.inspector","stackable/icon-library",(e=>(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,d.__)("Icon Library",i.i18n),id:"icon-library-settings",isPremiumPanel:!i.isPro},!i.isPro&&(0,a.createElement)(n.ProControl,{type:"icon-library"}),i.isPro&&(0,z.applyFilters)("stackable.global-settings.inspector.icon-library.control",null)))),12);var Oe=o(9467);(0,z.addAction)("stackable.global-settings.toggle-sidebar","toggle",(()=>{const e="stackable-global-settings/sidebar";(0,b.select)("core/edit-post").getActiveGeneralSidebarName()===e?(0,b.dispatch)("core/edit-post").closeGeneralSidebar(e):(0,b.dispatch)("core/edit-post").openGeneralSidebar(e)}));var Le;!i.isContentOnlyMode&&i.settings.stackable_enable_global_settings&&(0,Ae.registerPlugin)("stackable-global-settings",{render:()=>{var e,t;const o=window.wp.editor.PluginSidebar||(null===(e=window.wp.editSite)||void 0===e?void 0:e.PluginSidebar)||(null===(t=window.wp.editPost)||void 0===t?void 0:t.PluginSidebar);return(0,a.createElement)(a.Fragment,null,o&&(0,a.createElement)(o,{name:"sidebar",title:(0,d.__)("Stackable Settings",i.i18n),className:"ugb-global-settings__inspector",icon:(0,a.createElement)(Oe.SVGStackableIcon,null)},(0,a.createElement)(r.PanelBody,null,(0,a.createElement)("p",null,(0,d.__)("Set global styles and settings for your Stackable blocks to create a consistent design across your site. All the settings below will apply globally.",i.i18n))),(0,z.applyFilters)("stackable.global-settings.inspector",null)))}});const Re=c.useSettings||(()=>[(0,c.useSetting)("layout.contentSize"),(0,c.useSetting)("layout.wideSize")]),Ue=()=>{const[e,t]=Re("layout.contentSize","layout.wideSize"),o=(0,w.useDeviceType)(),n=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()));return(0,a.useEffect)((()=>{const e=null==n?void 0:n.closest("body");e&&e.appendChild(Pe)}),[o,n]),e||t?(0,a.createElement)(a.Fragment,null,e&&`:root { --stk-block-width-default-detected: ${e}}`,t&&`:root { --stk-block-width-wide-detected: ${t}}`):null},Pe=null===(Le=document)||void 0===Le?void 0:Le.createElement("style");Pe&&Pe.setAttribute("id","stk-theme-block-size"),u((()=>{var e,t;null===(e=document)||void 0===e||null===(t=e.body)||void 0===t||t.appendChild(Pe),(0,l.createRoot)(Pe).render((0,a.createElement)(Ue,null))}));var Ve=o(378);const Fe=()=>{const{getEditorDom:e}=(0,b.useSelect)("stackable/editor-dom"),t=(0,a.useCallback)((()=>{const t=(0,Ve.createBlock)("stackable/design-library");(0,b.dispatch)("core/block-editor").insertBlocks(t).then((()=>{var o;const a=null===(o=e())||void 0===o?void 0:o.querySelector(`[data-block="${t.clientId}"] button`);a&&a.click()}))}),[e]);return i.settings.stackable_enable_design_library&&(0,a.createElement)(r.ToolbarButton,{onClick:t,className:"ugb-insert-library-button",icon:(0,a.createElement)(Oe.SVGStackableIcon,null)},(0,d.__)("Design Library",i.i18n))};u((()=>{if(i.isContentOnlyMode)return;const e=document.createElement("div");e.classList.add("ugb-insert-library-button__wrapper"),(0,l.createRoot)(e).render((0,a.createElement)(Fe,null)),(0,b.subscribe)((()=>{setTimeout((()=>{const t=document.querySelector(".edit-post-header-toolbar");t&&(t.querySelector(".ugb-insert-library-button__wrapper")||t.appendChild(e))}),1)}))}));var Ge=o(3749);const qe=e=>{const{disabled:t,clientId:o}=e;return(0,a.createElement)(c.BlockControls,null,(0,a.createElement)(r.ToolbarGroup,{className:"stk-layout-picker"},(0,a.createElement)(r.ToolbarButton,{className:"components-toolbar__control stk-toolbar-button",icon:"layout",label:(0,d.__)("Reset layout",i.i18n),disabled:t,onClick:()=>{(0,b.dispatch)("core/block-editor").updateBlockAttributes(o,{uniqueId:void 0})}})))};if(qe.defaultProps={disabled:!1},!i.isContentOnlyMode){const e=(0,Ge.createHigherOrderComponent)((e=>t=>{if(!t.name.startsWith("stackable/"))return(0,a.createElement)(e,t);const{getBlockVariations:o,getBlockSupport:n}=(0,b.select)("core/blocks"),l=!1!==n(t.name,"stkLayoutReset"),r=o(t.name).length>0,s=!t.attributes.uniqueId;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),i.settings.stackable_enable_reset_layout&&r&&l&&(0,a.createElement)(qe,{disabled:s,clientId:t.clientId}))}),"withLayoutPicker");(0,z.addFilter)("editor.BlockEdit","stackable/layout-picekr",e)}const We=wp.apiFetch;var $e=o.n(We);const je={blockStyles:[]},Ze={updateBlockStylesStore:e=>({type:"UPDATE_BLOCK_STYLES",blockStyles:e}),updateBlockDefaultStyle:(e,t,o,a,n)=>({type:"UPDATE_BLOCK_STYLE",slug:"default",name:"Default",blockName:e,blockData:JSON.stringify({attributes:t,innerBlocks:o}),blockSave:a,successMessage:n}),updateBlockStyle:(e,t,o,a,n,l,i)=>({type:"UPDATE_BLOCK_STYLE",slug:l,name:n,blockName:e,blockData:JSON.stringify({attributes:t,innerBlocks:o}),blockSave:a,successMessage:i}),deleteBlockDefaultStyle:(e,t)=>({type:"DELETE_BLOCK_STYLE",slug:"default",blockName:e,successMessage:t})};(0,b.registerStore)("stackable/block-styles",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:je,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_BLOCK_STYLES":return{...e,...t.blockStyles};case"DELETE_BLOCK_STYLE":{const o=[...e.blockStyles||[]];o.find((e=>{let{block:o}=e;return o===t.blockName}))||o.push({block:t.blockName,styles:[]});const a=o.map((e=>{let{block:t}=e;return t})).indexOf(t.blockName);return o[a].styles.some(((e,n)=>e.slug===t.slug&&(o[a].styles.splice(n,1),!0))),$e()({path:"/stackable/v2/delete_block_style/",method:"POST",data:{block:t.blockName,slug:t.slug}}).then((e=>{e&&t.successMessage&&(0,b.dispatch)("core/notices").createNotice("success",t.successMessage,{type:"snackbar",isDismissible:!0,id:"stk-block-style-deleted"})})).catch((e=>{window.alert((0,d.__)("Couldn't update block styles, got this error:",i.i18n)+`\n\n${e.message}\n\n`+(0,d.__)("Please refresh the page and try again.",i.i18n))})),{...e,blockStyles:o}}case"UPDATE_BLOCK_STYLE":{const o=[...e.blockStyles||[]];o.find((e=>{let{block:o}=e;return o===t.blockName}))||o.push({block:t.blockName,styles:[]});const a=o.map((e=>{let{block:t}=e;return t})).indexOf(t.blockName);return o[a].styles.some(((e,n)=>e.slug===t.slug&&(o[a].styles[n].data=t.blockData,!0)))||o[a].styles.push({name:"default",data:t.blockData,slug:t.slug}),$e()({path:"/stackable/v2/update_block_style/",method:"POST",data:{block:t.blockName,name:t.name,data:t.blockData,slug:t.slug,save:t.blockSave}}).then((e=>{e&&t.successMessage&&(0,b.dispatch)("core/notices").createNotice("success",t.successMessage,{type:"snackbar",isDismissible:!0,id:"stk-block-style-saved"})})).catch((e=>{window.alert((0,d.__)("Couldn't update block styles, got this error:",i.i18n)+`\n\n${e.message}\n\n`+(0,d.__)("Please refresh the page and try again.",i.i18n))})),{...e,blockStyles:o}}default:return e}},actions:Ze,selectors:{getBlockStyles:(e,t)=>(e.blockStyles||[]).find((e=>e.block===t)),getAllBlockStyles:e=>e.blockStyles,getDefaultBlockStyle:(e,t)=>{var o;return null===(o=(e.blockStyles||[]).find((e=>e.block===t)))||void 0===o?void 0:o.styles.find((e=>"default"===e.slug))},getBlockStyle:(e,t,o)=>{var a;return null===(a=(e.blockStyles||[]).find((e=>e.block===t)))||void 0===a?void 0:a.styles.find((e=>e.slug===o))}}}),u((()=>{var e;const t=()=>{(0,l.fetchSettings)().then((e=>{const{stackable_block_styles:t}=e;(0,b.dispatch)("stackable/block-styles").updateBlockStylesStore({blockStyles:t})}))};t(),null===(e=window)||void 0===e||e.addEventListener("visibilitychange",(()=>{document.hidden||t()}))})),(0,z.addFilter)("stackable.variation-picker.variation-selected","stackable/saved-block",((e,t)=>{if(!e)return e;if(!i.isPro&&"default"!==e.name)return e;const{getBlockStyle:o}=(0,b.select)("stackable/block-styles"),a=o(t,e.name);if(a){const t=JSON.parse(a.data);return{...e,attributes:t.attributes||{},innerBlocks:t.innerBlocks||[]}}return e}));const Je=e=>({getBlockTitle:t=>{var o;const{getBlockName:a}=e("core/block-editor"),{getBlockType:n}=e("core/blocks");return(null===(o=n(a(t)))||void 0===o?void 0:o.title)||""},getBlockSave:t=>{const{getBlock:o}=e("core/block-editor");return t?(0,Ve.serialize)(o(t)):""},getBlockAttributes:t=>{if(!t)return{};const{getBlockName:o}=e("core/block-editor"),a=(0,A.cloneDeep)(e("core/block-editor").getBlockAttributes(t)),n=o(t).replace(/^\w+\//g,"");return a.uniqueId=void 0,(0,z.applyFilters)(`stackable.${n}.design.filtered-block-attributes`,a)},getBlockInnerBlocks:t=>{if(!t)return[];const{getBlock:o}=e("core/block-editor"),a=e=>[e.name,(0,A.cloneDeep)(e.attributes),e.innerBlocks.map(a)];return(o(t).innerBlocks||[]).map(a)}});let Ke=!1;const Ye=(e,t)=>{const o=t.find((t=>t.name===e));if(o)return o;let a=null;return t.some((t=>(a=Ye(e,t.innerBlocks),!!a))),a};(0,b.subscribe)((()=>{var e;const t=null===(e=(0,b.select)("core/editor"))||void 0===e?void 0:e.getCurrentPostType();var o,a;t&&"stackable_temp_post"===t&&((null===(o=(0,b.select)("core/editor"))||void 0===o?void 0:o.isSavingPost())&&!1===Ke&&(Ke=!0,null===(a=(()=>{const{stk_block_name:e,stk_block_title:t,stk_style_slug:o}=(0,b.select)("core/editor").getEditedPostAttribute("meta"),a=(0,b.select)("core/block-editor").getBlocks(),n=Ye(e,a);if(!n)return void setTimeout((()=>{(0,b.dispatch)("core/notices").createNotice("success",(0,d.sprintf)((0,d.__)("Error saving block, please make sure you only have a %s block",i.i18n),t),{type:"snackbar",isDismissible:!0,id:"stk-block-style-saved"})}),100);const l=n.clientId,{getBlockSave:r,getBlockAttributes:s,getBlockInnerBlocks:c}=Je(b.select),u=s(l),m=c(l),p=r(l),{updateBlockStyle:k}=(0,b.dispatch)("stackable/block-styles"),g=(0,b.select)("core/editor").getPostEdits().title||(0,b.select)("core/editor").getCurrentPost().title;return k(e,u,m,p,"default"===o?(0,d.__)("Default",i.i18n):g,o).then((()=>{setTimeout((()=>{const e="default"===o?(0,d.sprintf)((0,d.__)("Default %s Block saved",i.i18n),t):(0,d.sprintf)((0,d.__)("%s Block style saved",i.i18n),t);(0,b.dispatch)("core/notices").createNotice("success",e,{type:"snackbar",isDismissible:!0,id:"stk-block-style-save-done"})}),100)}))})())||void 0===a||a.finally((()=>{setTimeout((()=>{Ke=!1}),1e3)}))))}));let Qe=!1;(0,b.subscribe)((()=>{var e;const t=null===(e=(0,b.select)("core/editor"))||void 0===e?void 0:e.getCurrentPostType();if(t&&"stackable_temp_post"===t){if(Qe)return;Qe=!0,setTimeout((()=>{(0,b.dispatch)("core/editor").updateEditorSettings({autosaveInterval:99999}),(0,b.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block");const{stk_block_name:e}=(0,b.select)("core/editor").getEditedPostAttribute("meta");if(!(0,b.select)("core/editor").getEditedPostContent()&&e){const{insertBlock:t}=(0,b.dispatch)("core/block-editor"),{getBlockSupport:o,getBlockType:a}=(0,b.select)("core/blocks");a(e).parent&&delete a(e).parent;const n=o(e,"stkSaveBlockStyle");let l;n?(l=n,Array.isArray(n)||(l=[n]),l=(0,Ve.createBlocksFromInnerBlocksTemplate)(l)):l=[(0,Ve.getBlockFromExample)(e,{})],l.forEach(((e,o)=>{t(e,o,"",!1)}))}setTimeout((()=>{const{getBlocks:t}=(0,b.select)("core/block-editor"),{selectBlock:o}=(0,b.dispatch)("core/block-editor"),a=Ye(e,t());a&&o(a.clientId)}))}))}}));const Xe=(0,b.withSelect)((e=>({clientId:e("core/block-editor").getSelectedBlockClientId()})))((e=>{var t;let{clientId:o}=e;const{getBlockName:n}=(0,b.useSelect)("core/block-editor"),{getBlockSupport:l}=(0,b.useSelect)("core/blocks"),{getBlockTitle:s,getBlockSave:u,getBlockAttributes:m,getBlockInnerBlocks:p}=(0,b.useSelect)(Je),{blockName:k,hasDefaultBlockStyle:g}=(0,b.useSelect)((e=>{const{getBlockName:t}=e("core/block-editor"),a=t(o);return{blockName:a,hasDefaultBlockStyle:()=>!!a&&!!e("stackable/block-styles").getDefaultBlockStyle(a)}}));if(!o||null===(t=n(o))||void 0===t||!t.startsWith("stackable/"))return null;if(!1===l(n(o),"stkSaveBlockStyle"))return null;const h=s(o);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(c.BlockSettingsMenuControls,null,(e=>{let{onClose:t}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(r.MenuItem,{icon:"sticky",onClick:()=>{const e=m(o),a=p(o),n=u(o);(0,b.dispatch)("stackable/block-styles").updateBlockDefaultStyle(k,e,a,n,(0,d.sprintf)((0,d.__)("Default %s Block Saved!",i.i18n),h)),t()}},(0,d.sprintf)((0,d.__)("Save as Default %s Block",i.i18n),h)),g()&&(0,a.createElement)(r.MenuItem,{icon:"editor-removeformatting",onClick:()=>{(0,b.dispatch)("stackable/block-styles").deleteBlockDefaultStyle(k,(0,d.sprintf)((0,d.__)("Default %s Block Deleted!",i.i18n),h)),t()}},(0,d.sprintf)((0,d.__)("Reset Default %s Block",i.i18n),h)))})))}));i.settings.stackable_enable_save_as_default_block&&(0,Ae.registerPlugin)("stackable-save-block-menu",{render:Xe});const et=(0,Ge.createHigherOrderComponent)((e=>t=>((0,w.useSavedDefaultBlockStyle)(t),(0,a.createElement)(e,t))),"withSaveBlockStyle");(0,z.addFilter)("editor.BlockEdit","stackable/save-block-style",et),(0,Ae.registerPlugin)("stackable-editor-device-preview-class",{render:()=>{const e=(0,w.useDeviceType)(),[t]=(0,w.useBlockHoverState)({forceUpdateHoverState:!0}),o=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()),[]);return(0,a.useEffect)((()=>{const a=/stk--is-\w+-theme/gm;if(o){if(o&&!1===o.classList.contains(`stk-preview-device-${e.toLowerCase()}`)&&(o.classList.remove("stk-preview-device-desktop","stk-preview-device-tablet","stk-preview-device-mobile"),o.classList.add(`stk-preview-device-${e.toLowerCase()}`)),o&&!1===o.classList.contains(`stk-preview-state--${t}`)&&(o.classList.remove("stk-preview-state--normal","stk-preview-state--hover","stk-preview-state--parent-hover","stk-preview-state--collapsed"),o.classList.add(`stk-preview-state--${t}`)),document.querySelector("body").className.match(a)&&!o.className.match(a)){const e=document.querySelector("body").className.match(a)[0];o.classList.add(e)}const n=tt(o,(()=>{if(!1===(null==o?void 0:o.classList.contains(`stk-preview-device-${e.toLowerCase()}`))&&(o.classList.remove("stk-preview-device-desktop","stk-preview-device-tablet","stk-preview-device-mobile"),o.classList.add(`stk-preview-device-${e.toLowerCase()}`)),!1===(null==o?void 0:o.classList.contains(`stk-preview-state--${t}`))&&(o.classList.remove("stk-preview-state--normal","stk-preview-state--hover","stk-preview-state--parent-hover","stk-preview-state--collapsed"),o.classList.add(`stk-preview-state--${t}`)),document.querySelector("body").className.match(a)&&!o.className.match(a)){const e=document.querySelector("body").className.match(a)[0];o.classList.add(e)}}));return()=>n.disconnect()}}),[o,e,t]),null}});const tt=(e,t)=>{let o=e.classList.toString();const a=new MutationObserver((n=>{for(const l of n)if("class"===l.attributeName){const n=e.classList.toString();if(n!==o){t(a),o=n;break}}}));return a.observe(e,{attributes:!0}),a};(0,z.addFilter)("stackable.block-linking.blocks","stackable",(e=>({...e,"stackable/button":{filterAttributes:["text","linkUrl","linkRel","linkNewTab","icon"]},"stackable/icon-button":{filterAttributes:["linkUrl","linkRel","linkNewTab","icon"]},"stackable/button-group":{},"stackable/blockquote":{},"stackable/call-to-action":{},"stackable/card":{filterAttributes:["imageUrl","imageId","imageAlt","imageTitle"]},"stackable/card-group":{},"stackable/column":{},"stackable/columns":{},"stackable/expand":{},"stackable/feature":{},"stackable/feature-grid":{},"stackable/hero":{},"stackable/heading":{filterAttributes:["text"]},"stackable/icon":{filterAttributes:["icon","ariaLabel"]},"stackable/icon-box":{},"stackable/icon-label":{},"stackable/icon-list":{filterAttributes:["text"]},"stackable/image":{filterAttributes:["imageUrl","imageId","imageAlt"]},"stackable/notification":{},"stackable/price":{},"stackable/pricing-box":{},"stackable/text":{filterAttributes:["text"]},"stackable/subtitle":{filterAttributes:["text"]}}))),(0,z.addFilter)("stackable.block-linking.blocks","stackable-essentials",(e=>(Object.keys(e).forEach((t=>{t.startsWith("stackable/")&&(e[t].filterAttributes||(e[t].filterAttributes=[]),e[t].filterAttributes.push("uniqueId","templateLock","columnWidth","columnWidthTablet","columnWidthMobile","isFirstBlock","isLastBlock","blockLinkUrl"))})),e)),99),(0,z.addFilter)("stackable.block-linking.blocks","core",(e=>({...e,"core/archives":{},"core/audio":{filterAttributes:["src","caption","id"]},"core/block":{filterAttributes:["ref"]},"core/button":{filterAttributes:["url","title","text","linkTarget","rel","placeholder"]},"core/buttons":{},"core/calendar":{},"core/categories":{},"core/freeform":{filterAttributes:["content"]},"core/code":{filterAttributes:["content"]},"core/column":{},"core/columns":{},"core/cover":{filterAttributes:["url","id"]},"core/file":{filterAttributes:["id","href","fileName","textLinkHref","downloadButtonText"]},"core/gallery":{filterAttributes:["images","ids","caption"]},"core/group":{},"core/heading":{filterAttributes:["content","level","placeholder"]},"core/html":{filterAttributes:["content"]},"core/image":{filterAttributes:["url","capion","title","href","rel","id","linkDestination","linkTarget"]},"core/latest-comments":{},"core/latest-posts":{filterAttributes:["categories"]},"core/legacy-widget":{filterAttributes:["id","idBase","instance"]},"core/list":{filterAttributes:["values"]},"core/media-text":{filterAttributes:["mediaAlt","mediaId","mediaUrl","mediaLink","linkDestination","linkTarget","href","rel"]},"core/missing":{filterAttributes:["content"]},"core/navigation":{},"core/paragraph":{filterAttributes:["content","placeholder"]},"core/post-author":{},"core/post-date":{},"core/post-excerpt":{},"core/preformatted":{filterAttributes:["content"]},"core/pullquote":{filterAttributes:["value","citation"]},"core/quote":{filterAttributes:["value","citation"]},"core/rss":{filterAttributes:["feedURL"]},"core/search":{filterAttributes:["label","placeholder","buttonText"]},"core/separator":{},"core/site-title":{filterAttributes:["level"]},"core/social-links":{},"core/spacer":{},"core/subhead":{filterAttributes:["content"]},"core/table":{filterAttributes:["caption","head","body","foot"]},"core/tag-cloud":{filterAttributes:["taxonomy"]},"core/text-columns":{filterAttributes:["content"]},"core/verse":{filterAttributes:["content"]},"core/video":{filterAttributes:["caption","id","poster","src"]}}))),(0,z.addFilter)("stackable.block-linking.blocks","common",(e=>(Object.keys(e).forEach((t=>{e[t].filterAttributes||(e[t].filterAttributes=[]),e[t].filterAttributes.includes("id")||e[t].filterAttributes.push("id"),e[t].filterAttributes.includes("anchor")||e[t].filterAttributes.push("anchor")})),e)),99);const ot=()=>{const[e,t]=(0,a.useState)(null),{selectedBlock:o,selectedBlockClientId:n}=(0,b.useSelect)((e=>({selectedBlock:e("core/block-editor").getSelectedBlock(),selectedBlockClientId:e("core/block-editor").getSelectedBlockClientId()})),[]),i=at(e),r=(0,w.useIsLinked)(i),s=(0,a.useCallback)((t=>{if(!n||e!==n)return;if(!r)return;const a=(0,b.select)("core/block-editor").getBlock(e).name;if(!lt(a))return;const s=it(t,o.name);if(!Object.keys(s).length)return;const c=(0,l.extractBlockStyleStructure)(e,i);c[c.length-1].attributes=s;const d=nt(i).map((e=>{let{clientId:t}=e;return t})).reduce(((e,t)=>[...e,...(0,l.getBlocksToStyle)(t,c)]),[]);d.length&&(0,b.dispatch)("core/block-editor").updateBlockAttributes(d,s)}),[e,n,i,r]);return(0,w.useDidAttributesChange)(s,r?null==o?void 0:o.name:"",(null==o?void 0:o.attributes)||{},!1),(0,a.useEffect)((()=>{t(n)}),[n]),null},at=e=>{const t=(0,a.useMemo)((()=>wp.data.select("core/blocks").getBlockTypes().reduce(((e,t)=>{var o;return null!==(o=t.supports)&&void 0!==o&&o.stkBlockLinking&&e.push(t.name),e}),[])),[]);return(0,a.useMemo)((()=>{var o;if(!e)return null;let a=null;const{getBlock:n,getBlockParents:l}=(0,b.select)("core/block-editor"),i=(null===(o=n(e))||void 0===o?void 0:o.name)||"";if(t.includes(i)&&(a=e),a||(a=[...l(e)].reverse().find((e=>{var o;const a=null===(o=n(e))||void 0===o?void 0:o.name;return!!t.includes(a)&&e}))||null),a){const e=(0,A.last)(l(a));if(e){var r,s;const t=null===(r=n(e))||void 0===r?void 0:r.name,o=wp.data.select("core/blocks").getBlockType(t);if(!1===(null==o||null===(s=o.supports)||void 0===s?void 0:s.stkBlockLinking))return null}}return a}),[e])},nt=e=>{const{getBlock:t,getBlockParents:o}=(0,b.select)("core/block-editor");return t((0,A.last)(o(e))).innerBlocks.filter((t=>t.clientId!==e&&(0,w.isBlockLinked)(t.clientId)))},lt=e=>{const t=Object.keys((0,z.applyFilters)("stackable.block-linking.blocks",{})).includes(e);return!t&&e.startsWith("stackable/")&&console.error(`Stackable: block type "${e}" was not included the list of blocks allowed for linking. Did you forget to include it? See filter "stackable.block-linking.blocks"`),t},it=(e,t)=>{const o=(0,z.applyFilters)("stackable.block-linking.blocks",{});return o[t]&&o[t].filterAttributes?(0,A.omit)(e,o[t].filterAttributes):e},rt={editorDom:null};(0,b.registerStore)("stackable/editor-dom",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rt,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_EDITOR_DOM"===t.type?{...e,editorDom:t.editorDom}:e},actions:{updateEditorDom:e=>({type:"UPDATE_EDITOR_DOM",editorDom:e})},selectors:{getEditorDom:e=>e.editorDom}});const st={themeFonts:[],themeFontOptions:[],loadingThemeFont:!0};(0,b.register)((0,b.createReduxStore)("stackable/theme-fonts",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_THEME_FONTS"===t.type?{...e,themeFonts:t.themeFonts,themeFontOptions:t.themeFonts.map((e=>({label:e,value:e}))),loadingThemeFont:!1}:e},actions:{updateThemeFonts:e=>({type:"UPDATE_THEME_FONTS",themeFonts:e})},selectors:{getThemeFonts:e=>e}}));const ct=()=>((0,a.useEffect)((()=>{if("stackable/text"===(0,Ve.getDefaultBlockName)())return null;(0,Ve.setDefaultBlockName)("stackable/text")}),[]),null);(0,Ae.registerPlugin)("stackable-convert-to-container-button",{render:n.ConvertToContainerButton}),(0,Ae.registerPlugin)("stackable-block-hover-state",{render:()=>{const{getEditorDom:e,selectedClientId:t,selectedParent:o,selectedParentHoverBlock:n,hoverStateClientId:l}=(0,b.useSelect)((e=>{const t=e("core/block-editor").getSelectedBlockClientId()||e("core/block-editor").getFirstMultiSelectedBlockClientId(),o=e("core/block-editor").getBlockRootClientId(t);return{getEditorDom:e("stackable/editor-dom").getEditorDom,selectedClientId:t,selectedParent:e("core/block-editor").getBlock(o),selectedParentHoverBlock:e("stackable/hover-state").getSelectedParentHoverBlock(),hoverStateClientId:e("stackable/hover-state").getSelectedBlock()}}),[]);return(0,a.useEffect)((()=>{l===t&&n===o||(t?(0,b.dispatch)("stackable/hover-state").updateSelectedBlock(t,e()):(0,b.dispatch)("stackable/hover-state").clearSelectedBlock())}),[e,o,t,l]),null}}),(0,Ae.registerPlugin)("stackable-content-align",{render:()=>{const{hasStkAlign:e,align:t,innerBlockContentAlign:o,clientId:n}=(0,b.useSelect)((e=>{var t,o,a,n;const l=e("core/block-editor").getSelectedBlockClientId(),i=e("core/block-editor").getBlock(l),r=(null==i?void 0:i.name)||"";return{clientId:l,hasStkAlign:r.startsWith("stackable/")&&(null===(t=e("core/blocks").getBlockType(r))||void 0===t||null===(o=t.supports)||void 0===o?void 0:o.stkAlign),align:null==i||null===(a=i.attributes)||void 0===a?void 0:a.align,innerBlockContentAlign:null==i||null===(n=i.attributes)||void 0===n?void 0:n.innerBlockContentAlign}}),[]),l=(0,Ge.usePrevious)(n);return(0,a.useEffect)((()=>{if(e&&t!==o&&l===n){let e;switch(t){case"center":e="";break;case"wide":e="alignwide";break;case"full":e="alignfull";break;case"":case void 0:e=""}void 0!==e&&(0,b.dispatch)("core/block-editor").updateBlockAttributes(n,{innerBlockContentAlign:e})}}),[t]),null}}),(0,Ae.registerPlugin)("stackable-editor-dom",{render:()=>{const e=(0,w.useDeviceType)(),[t,o]=(0,a.useState)(0),[n,l]=(0,a.useState)(null),i=(0,a.useRef)(null),r=(0,a.useRef)(null),s=(0,b.useSelect)((e=>{var t,o;return null===(t=e("core/edit-site"))||void 0===t||null===(o=t.getEditedPostId)||void 0===o?void 0:o.call(t)})),c=(0,b.useSelect)((e=>{var t,o;return(null===(t=e("core/edit-site"))||void 0===t?void 0:t.getEditorMode())||(null===(o=e("core/edit-post"))||void 0===o?void 0:o.getEditorMode())}));return(0,a.useEffect)((()=>{if(document.querySelector('.editor-styles-wrapper, iframe[name="editor-canvas"]')&&o((e=>e+1)),"Desktop"===e)r.current=setInterval((()=>{document.querySelector('.editor-styles-wrapper, iframe[name="editor-canvas"]')&&(clearInterval(r.current),clearTimeout(i.current),o((e=>e+1)),setTimeout((()=>{o((e=>e+1))}),200))}),200);else{const e=document.querySelector('iframe[name="editor-canvas"]');if(e){const t=e.contentDocument.body;t&&t.querySelector(".block-editor-block-list__layout")?(clearInterval(r.current),o((e=>e+1))):(clearTimeout(i.current),i.current=setTimeout((()=>{const t=e.contentDocument.body;t&&t.querySelector(".block-editor-block-list__layout")&&o((e=>e+1))}),200),e.onload=()=>{clearTimeout(i.current);const t=e.contentDocument.body;t&&t.querySelector(".block-editor-block-list__layout")?o((e=>e+1)):setTimeout((()=>{o((e=>e+1))}),200)})}}return()=>{clearInterval(r.current),clearTimeout(i.current)}}),[e,c,s]),(0,a.useMemo)((()=>{const e=document.querySelector('iframe[name="editor-canvas"]');l(e?e.contentDocument.body:document.querySelector(".editor-styles-wrapper"))}),[t,e]),(0,a.useEffect)((()=>{n&&(0,b.dispatch)("stackable/editor-dom").updateEditorDom(n)}),[n]),null}}),(0,Ae.registerPlugin)("stackable-theme-fonts",{render:()=>((0,a.useEffect)((()=>{$e()({path:"/stackable/v3/get_theme_fonts/",method:"GET"}).then((e=>{e&&(0,b.dispatch)("stackable/theme-fonts").updateThemeFonts(e)}))}),[]),null)}),i.devMode&&(0,Ae.registerPlugin)("stackable-block-attributes-get-button",{render:n.GetBlockAttributesButton}),(0,l.fetchSettings)().then((e=>{e.stackable_enable_block_linking&&(0,Ae.registerPlugin)("stackable-block-linking",{render:ot}),e.stackable_enable_text_default_block&&(0,Ae.registerPlugin)("stackable-text-default-block",{render:ct})})),(0,z.addFilter)("stackable.color-palette-control.change","stackable/compatibility/kadence",((e,t)=>"kadence"!==i.currentTheme?e:t&&t.slug.match(/^theme-palette\d+/)?t.slug.replace(/^[\w-]*(\d+)/,`var(--global-palette$1, ${e})`):e)),(0,z.addFilter)("stackable.block.metadata","stackable/wp-6-2",(e=>{var t;return i.wpVersion&&(0,l.semverCompare)(i.wpVersion,"<","6.3")&&null!=e&&null!==(t=e.supports)&&void 0!==t&&t.spacing&&delete e.supports.spacing,e}));const dt=e=>{var t;return null==e||null===(t=e.find((e=>{let{isDefault:t}=e;return t})))||void 0===t?void 0:t.name},ut=(e,t)=>e.map((e=>{let[o,a,n]=e;return n&&n.length>0&&(n=ut(n,t)),t.includes(o)?(0,l.substituteCoreIfDisabled)(o,a,n,mt):n?[o,a,n]:[o,a]}));(0,z.addFilter)("stackable.block.metadata","stackable/disabled-blocks",(e=>{const t=i.settings.stackable_block_states||{};let o=!0;e.name in t&&(o=!t[e.name]===l.BLOCK_STATE.HIDDEN),e["stk-block-dependency"]&&e["stk-block-dependency"]in t&&(o=!t[e["stk-block-dependency"]]===l.BLOCK_STATE.HIDDEN);const a=((e,t)=>{const o=[];for(const a in e)a.startsWith(`${t}|`)&&o.push(a.split("|")[1]);return o})(t,e.name);let n=e.variations||[];if(a.length){const t=!!dt(e.variations);n=n.filter((e=>!a.includes(e.name))),n.length&&t&&!dt(n)&&(n[0].isDefault=!0),n.length||"hidden"===e["stk-type"]&&(o=!1)}const r=e["stk-substitution-blocks"];return r&&(n=n.map((e=>{const t=(0,A.cloneDeep)(e);return t.innerBlocks&&Array.isArray(t.innerBlocks)&&(t.innerBlocks=ut(t.innerBlocks,r)),t}))),e.variations=n,void 0===e.supports&&(e.supports={}),e.supports.inserter=o,e}));var bt=o(9783);(0,l.addStackableBlockCategory)(),(0,z.addFilter)("stackable.registerBlockType.edit","stackable",(e=>(0,bt.withVisualGuideContext)(e)));const mt=(e=>{const t={};return e.keys().forEach((o=>{const{substitute:a}=e(o);a&&(t[a.from]=(0,A.omit)(a,"from"))})),t})(o(2914));var pt;(pt=o(3032)).keys().forEach((e=>{const{settings:t}=pt(e);if(!t)return;const{name:o}=t;t.title=(0,d.__)(t.title,i.i18n),t.description&&(t.description=(0,d.__)(t.description,i.i18n)),t.keywords&&(t.keywords=t.keywords.map((e=>(0,d.__)(e,i.i18n)))),(0,Ve.getBlockType)(o)||t["stk-block-dependency"]in i.settings.stackable_block_states&&i.settings.stackable_block_states[t["stk-block-dependency"]]===l.BLOCK_STATE.DISABLED||i.settings.stackable_block_states[o]===l.BLOCK_STATE.DISABLED||(0,l.registerBlockType)(o,t)}))},1991:(e,t)=>{var o;!function(){"use strict";var a=function(){function e(){}function t(e,t){for(var o=t.length,a=0;a<o;++a)n(e,t[a])}e.prototype=Object.create(null);var o={}.hasOwnProperty,a=/\s+/;function n(e,n){if(n){var l=typeof n;"string"===l?function(e,t){for(var o=t.split(a),n=o.length,l=0;l<n;++l)e[o[l]]=!0}(e,n):Array.isArray(n)?t(e,n):"object"===l?function(e,t){if(t.toString===Object.prototype.toString)for(var a in t)o.call(t,a)&&(e[a]=!!t[a]);else e[t.toString()]=!0}(e,n):"number"===l&&function(e,t){e[t]=!0}(e,n)}}return function(){for(var o=arguments.length,a=Array(o),n=0;n<o;n++)a[n]=arguments[n];var l=new e;t(l,a);var i=[];for(var r in l)l[r]&&i.push(r);return i.join(" ")}}();e.exports?(a.default=a,e.exports=a):void 0===(o=function(){return a}.apply(t,[]))||(e.exports=o)}()},4184:(e,t)=>{var o;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var l=typeof o;if("string"===l||"number"===l)e.push(o);else if(Array.isArray(o)){if(o.length){var i=n.apply(null,o);i&&e.push(i)}}else if("object"===l)if(o.toString===Object.prototype.toString)for(var r in o)a.call(o,r)&&o[r]&&e.push(r);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()},8874:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},5985:(e,t,o)=>{"use strict";var a=o(2409);e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,o,a,n,l,i=e[0]/360,r=e[1]/100,s=e[2]/100;if(0===r)return[l=255*s,l,l];t=2*s-(o=s<.5?s*(1+r):s+r-s*r),n=[0,0,0];for(var c=0;c<3;c++)(a=i+1/3*-(c-1))<0?a++:a>1&&a--,l=6*a<1?t+6*(o-t)*a:2*a<1?o:3*a<2?t+(o-t)*(2/3-a)*6:t,n[c]=255*l;return n}},a.hsl=function(e){var t,o,a=e[0]/255,n=e[1]/255,l=e[2]/255,i=Math.min(a,n,l),r=Math.max(a,n,l),s=r-i;return r===i?t=0:a===r?t=(n-l)/s:n===r?t=2+(l-a)/s:l===r&&(t=4+(a-n)/s),(t=Math.min(60*t,360))<0&&(t+=360),o=(i+r)/2,[t,100*(r===i?0:o<=.5?s/(r+i):s/(2-r-i)),100*o]}},2409:e=>{"use strict";e.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},4247:function(e,t){var o,a;void 0===(a="function"==typeof(o=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,o,a=e.replace(/^v/,"").replace(/\+.*$/,""),n=(o="-",-1===(t=a).indexOf(o)?t.length:t.indexOf(o)),l=a.substring(0,n).split(".");return l.push(a.substring(n+1)),l}function o(e){return isNaN(Number(e))?e:Number(e)}function a(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function n(e,n){[e,n].forEach(a);for(var l=t(e),i=t(n),r=0;r<Math.max(l.length-1,i.length-1);r++){var s=parseInt(l[r]||0,10),c=parseInt(i[r]||0,10);if(s>c)return 1;if(c>s)return-1}var d=l[l.length-1],u=i[i.length-1];if(d&&u){var b=d.split(".").map(o),m=u.split(".").map(o);for(r=0;r<Math.max(b.length,m.length);r++){if(void 0===b[r]||"string"==typeof m[r]&&"number"==typeof b[r])return-1;if(void 0===m[r]||"string"==typeof b[r]&&"number"==typeof m[r])return 1;if(b[r]>m[r])return 1;if(m[r]>b[r])return-1}}else if(d||u)return d?-1:1;return 0}var l=[">",">=","=","<","<="],i={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return n.validate=function(t){return"string"==typeof t&&e.test(t)},n.compare=function(e,t,o){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===l.indexOf(e))throw new TypeError("Invalid operator, expected one of "+l.join("|"))}(o);var a=n(e,t);return i[o].indexOf(a)>-1},n})?o.apply(t,[]):o)||(e.exports=a)},4863:function(e){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var o=Object.prototype.toString.call(e);return"[object RegExp]"===o||"[object Date]"===o||function(e){return e.$$typeof===t}(e)}(e)};var t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?i((o=e,Array.isArray(o)?[]:{}),e,t):e;var o}function a(e,t,a){return e.concat(t).map((function(e){return o(e,a)}))}function n(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t,a){var l={};return a.isMergeableObject(e)&&n(e).forEach((function(t){l[t]=o(e[t],a)})),n(t).forEach((function(n){a.isMergeableObject(t[n])&&e[n]?l[n]=function(e,t){if(!t.customMerge)return i;var o=t.customMerge(e);return"function"==typeof o?o:i}(n,a)(e[n],t[n],a):l[n]=o(t[n],a)})),l}function i(t,n,i){(i=i||{}).arrayMerge=i.arrayMerge||a,i.isMergeableObject=i.isMergeableObject||e;var r=Array.isArray(n);return r===Array.isArray(t)?r?i.arrayMerge(t,n,i):l(t,n,i):o(n,i)}return i.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return i(e,o,t)}),{})},i}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,l){for(var i,r,s=n(e),c=1;c<arguments.length;c++){for(var d in i=Object(arguments[c]))o.call(i,d)&&(s[d]=i[d]);if(t){r=t(i);for(var u=0;u<r.length;u++)a.call(i,r[u])&&(s[r[u]]=i[r[u]])}}return s}},2408:(e,t,o)=>{"use strict";var a=o(7418),n=60112;if("function"==typeof Symbol&&Symbol.for){var l=Symbol.for;l("react.element"),l("react.portal"),l("react.fragment"),l("react.strict_mode"),l("react.profiler"),l("react.provider"),l("react.context"),n=l("react.forward_ref"),l("react.suspense"),l("react.memo"),l("react.lazy")}"function"==typeof Symbol&&Symbol.iterator;function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s={};function c(e,t,o){this.props=e,this.context=t,this.refs=s,this.updater=o||r}function d(){}function u(e,t,o){this.props=e,this.context=t,this.refs=s,this.updater=o||r}c.prototype.isReactComponent={},c.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(i(85));this.updater.enqueueSetState(this,e,t,"setState")},c.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},d.prototype=c.prototype;var b=u.prototype=new d;b.constructor=u,a(b,c.prototype),b.isPureReactComponent=!0;Object.prototype.hasOwnProperty;t.forwardRef=function(e){return{$$typeof:n,render:e}}},7294:(e,t,o)=>{"use strict";e.exports=o(2408)},3726:function(e,t,o){"use strict";var a;!function(n){if("function"!=typeof l){var l=function(e){return e};l.nonNative=!0}const i=l("plaintext"),r=l("html"),s=l("comment"),c=/<(\w*)>/g,d=/<\/?([^\s\/>]+)/;function u(e,t,o){return m(e=e||"",b(t=t||[],o=o||""))}function b(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let o;for(;o=c.exec(e);)t.add(o[1])}else l.nonNative||"function"!=typeof e[l.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function m(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let o=t.allowable_tags,a=t.tag_replacement,n=t.state,l=t.tag_buffer,c=t.depth,d=t.in_quote_char,u="";for(let t=0,b=e.length;t<b;t++){let b=e[t];if(n===i)"<"===b?(n=r,l+=b):u+=b;else if(n===r)switch(b){case"<":if(d)break;c++;break;case">":if(d)break;if(c){c--;break}d="",n=i,l+=">",o.has(p(l))?u+=l:u+=a,l="";break;case'"':case"'":d=b===d?"":d||b,l+=b;break;case"-":"<!-"===l&&(n=s),l+=b;break;case" ":case"\n":if("<"===l){n=i,u+="< ",l="";break}l+=b;break;default:l+=b}else n===s&&(">"===b?("--"==l.slice(-2)&&(n=i),l=""):l+=b)}return t.state=n,t.tag_buffer=l,t.depth=c,t.in_quote_char=d,u}function p(e){let t=d.exec(e);return t?t[1].toLowerCase():null}u.init_streaming_mode=function(e,t){let o=b(e=e||[],t=t||"");return function(e){return m(e||"",o)}},void 0===(a=function(){return u}.call(t,o,t,e))||(e.exports=a)}()},3032:(e,t,o)=>{var a={"./accordion/index.js":686,"./blockquote/index.js":2,"./button-group/deprecated/index.js":2423,"./button-group/index.js":4221,"./button/index.js":1545,"./call-to-action/index.js":5471,"./card/index.js":462,"./carousel/index.js":7664,"./column/index.js":5325,"./columns/index.js":8107,"./count-up/index.js":1875,"./countdown/index.js":5161,"./design-library/index.js":1646,"./divider/index.js":1191,"./expand/index.js":7138,"./feature-grid/index.js":1850,"./feature/index.js":1733,"./heading/index.js":4523,"./hero/index.js":6613,"./horizontal-scroller/index.js":2683,"./icon-box/index.js":9834,"./icon-button/index.js":4391,"./icon-label/index.js":7075,"./icon-list-item/index.js":941,"./icon-list/deprecated/index.js":6013,"./icon-list/index.js":7865,"./icon/index.js":2686,"./image-box/index.js":1471,"./image/index.js":6705,"./map/index.js":8728,"./notification/index.js":8456,"./number-box/index.js":1322,"./posts/index.js":5872,"./price/index.js":504,"./pricing-box/index.js":2245,"./progress-bar/index.js":7214,"./progress-circle/index.js":3761,"./separator/index.js":7660,"./spacer/index.js":918,"./subtitle/index.js":4073,"./tab-content/index.js":5867,"./tab-labels/index.js":177,"./table-of-contents/index.js":9881,"./tabs/index.js":8775,"./team-member/index.js":4159,"./testimonial/index.js":1421,"./text/index.js":2231,"./timeline/index.js":9882,"./video-popup/index.js":5996};function n(e){var t=l(e);return o(t)}function l(e){if(!o.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=l,e.exports=n,n.id=3032},2914:(e,t,o)=>{var a={"./accordion/substitute.js":4296,"./blockquote/substitute.js":6639,"./button-group/substitute.js":571,"./button/substitute.js":9168,"./call-to-action/substitute.js":701,"./card/substitute.js":1088,"./carousel/substitute.js":459,"./count-up/substitute.js":5531,"./countdown/substitute.js":8948,"./divider/substitute.js":9939,"./expand/substitute.js":9302,"./feature-grid/substitute.js":7666,"./feature/substitute.js":7248,"./heading/substitute.js":2433,"./hero/substitute.js":6294,"./horizontal-scroller/substitute.js":5469,"./icon-box/substitute.js":7511,"./icon-label/substitute.js":2946,"./icon-list/substitute.js":6194,"./icon/substitute.js":6012,"./image-box/substitute.js":6901,"./image/substitute.js":9462,"./map/substitute.js":9740,"./notification/substitute.js":6454,"./number-box/substitute.js":4106,"./posts/substitute.js":6742,"./price/substitute.js":2664,"./pricing-box/substitute.js":7712,"./progress-bar/substitute.js":801,"./progress-circle/substitute.js":6040,"./separator/substitute.js":9943,"./spacer/substitute.js":4067,"./subtitle/substitute.js":6029,"./table-of-contents/substitute.js":6575,"./tabs/substitute.js":2270,"./team-member/substitute.js":2210,"./testimonial/substitute.js":7043,"./text/substitute.js":2740,"./timeline/substitute.js":635,"./video-popup/substitute.js":9895};function n(e){var t=l(e);return o(t)}function l(e){if(!o.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=l,e.exports=n,n.id=2914},8085:e=>{"use strict";e.exports=lodash},910:e=>{"use strict";e.exports=stackable},9384:e=>{"use strict";e.exports=stk.blockComponents},7200:e=>{"use strict";e.exports=stk.components},9783:e=>{"use strict";e.exports=stk.higherOrder},8333:e=>{"use strict";e.exports=stk.hooks},9467:e=>{"use strict";e.exports=stk.icons},7545:e=>{"use strict";e.exports=stk.util},78:e=>{"use strict";e.exports=wp.blockEditor},378:e=>{"use strict";e.exports=wp.blocks},7537:e=>{"use strict";e.exports=wp.components},3749:e=>{"use strict";e.exports=wp.compose},3284:e=>{"use strict";e.exports=wp.data},3162:e=>{"use strict";e.exports=wp.date},2610:e=>{"use strict";e.exports=wp.element},3882:e=>{"use strict";e.exports=wp.hooks},8003:e=>{"use strict";e.exports=wp.i18n},2413:e=>{"use strict";e.exports=wp.richText},7462:(e,t,o)=>{"use strict";function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},a.apply(this,arguments)}o.d(t,{Z:()=>a})}},t={};function o(a){var n=t[a];if(void 0!==n)return n.exports;var l=t[a]={exports:{}};return e[a].call(l.exports,l,l.exports,o),l.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var a in t)o.o(t,a)&&!o.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(7397)})();
/home/batcwwjx/www/wp-content/plugins/stackable-ultimate-gutenberg-blocks/dist/editor_blocks.js