uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 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={2527:(e,t,o)=>{"use strict";function a(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}o.d(t,{Z:()=>a})},9498:(e,t,o)=>{"use strict";var a=o(1233),l=Symbol.for("react.element"),n=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),r=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,o){var a,s={},c=null,d=null;for(a in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)n.call(t,a)&&!i.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===s[a]&&(s[a]=t[a]);return{$$typeof:l,type:e,key:c,ref:d,props:s,_owner:r.current}}},4314:(e,t)=>{"use strict";var o=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,k={};function h(e,t,o){this.props=e,this.context=t,this.refs=k,this.updater=o||p}function v(){}function C(e,t,o){this.props=e,this.context=t,this.refs=k,this.updater=o||p}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=h.prototype;var y=C.prototype=new v;y.constructor=C,g(y,h.prototype),y.isPureReactComponent=!0;var f=Array.isArray,B=Object.prototype.hasOwnProperty,S={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,a){var l,n={},r=null,i=null;if(null!=t)for(l in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(r=""+t.key),t)B.call(t,l)&&!w.hasOwnProperty(l)&&(n[l]=t[l]);var s=arguments.length-2;if(1===s)n.children=a;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];n.children=c}if(e&&e.defaultProps)for(l in s=e.defaultProps)void 0===n[l]&&(n[l]=s[l]);return{$$typeof:o,type:e,key:r,ref:i,props:n,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var E=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function x(e,t,l,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return r=r(s=e),e=""===n?"."+T(s,0):n,f(r)?(l="",null!=e&&(l=e.replace(E,"$&/")+"/"),x(r,t,l,"",(function(e){return e}))):null!=r&&(A(r)&&(r=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,l+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(E,"$&/")+"/")+e)),t.push(r)),1;if(s=0,n=""===n?".":n+":",f(e))for(var c=0;c<e.length;c++){var d=n+T(i=e[c],c);s+=x(i,t,l,d,r)}else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=m&&e[m]||e["@@iterator"])?e:null}(e),"function"==typeof d)for(e=d.call(e),c=0;!(i=e.next()).done;)s+=x(i=i.value,t,l,d=n+T(i,c++),r);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,o){if(null==e)return e;var a=[],l=0;return x(e,a,"","",(function(e){return t.call(o,e,l++)})),a}function H(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var z={current:null},M={transition:null},O={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:M,ReactCurrentOwner:S};function N(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,o){I(e,(function(){t.apply(this,arguments)}),o)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=h,t.Fragment=l,t.Profiler=r,t.PureComponent=C,t.StrictMode=n,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.act=N,t.cloneElement=function(e,t,a){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var l=g({},e.props),n=e.key,r=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(r=t.ref,i=S.current),void 0!==t.key&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)B.call(t,c)&&!w.hasOwnProperty(c)&&(l[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)l.children=a;else if(1<c){s=Array(c);for(var d=0;d<c;d++)s[d]=arguments[d+2];l.children=s}return{$$typeof:o,type:e.type,key:n,ref:r,props:l,_owner:i}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:b,_payload:{_status:-1,_result:e},_init:H}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=N,t.useCallback=function(e,t){return z.current.useCallback(e,t)},t.useContext=function(e){return z.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return z.current.useDeferredValue(e)},t.useEffect=function(e,t){return z.current.useEffect(e,t)},t.useId=function(){return z.current.useId()},t.useImperativeHandle=function(e,t,o){return z.current.useImperativeHandle(e,t,o)},t.useInsertionEffect=function(e,t){return z.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return z.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return z.current.useMemo(e,t)},t.useReducer=function(e,t,o){return z.current.useReducer(e,t,o)},t.useRef=function(e){return z.current.useRef(e)},t.useState=function(e){return z.current.useState(e)},t.useSyncExternalStore=function(e,t,o){return z.current.useSyncExternalStore(e,t,o)},t.useTransition=function(){return z.current.useTransition()},t.version="18.3.1"},1233:(e,t,o)=>{"use strict";e.exports=o(4314)},3891:(e,t,o)=>{"use strict";e.exports=o(9498)},686:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});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 s=i;var c=o(4184),d=o.n(c),u=o(910),b=o(8333),m=o(9783),p=o(7462);o(7294);var g=o(8003),k=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,k.applyFilters)("stackable.accordion.variations",[{name:"default",isDefault:!0,description:(0,g.sprintf)((0,g._x)("%s Layout","Block layout name",u.i18n),(0,g.__)("Default",u.i18n)),attributes:{className:"is-style-default"},isActive:["className"],pickerTitle:(0,g.__)("Default",u.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,l.createElement)("path",{d:"M9 26h30v2H9v-2zM9 31h30v2H9v-2zM9 36h30v2H9v-2z"}),(0,l.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,l.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,g._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,g._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,g.sprintf)((0,g._x)("%s Layout","Block layout name",u.i18n),(0,g.__)("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,g.__)("Plain",u.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,g._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,g._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,g.sprintf)((0,g._x)("%s Layout","Block layout name",u.i18n),(0,g.__)("Shadow",u.i18n)),attributes:{className:"is-style-shadow"},isActive:["className"],pickerTitle:(0,g.__)("Shadow",u.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,g.sprintf)((0,g._x)("%s Layout","Block layout name",u.i18n),(0,g.__)("Colored",u.i18n)),attributes:{className:"is-style-colored"},isActive:["className"],pickerTitle:(0,g.__)("Colored",u.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,l.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,g.sprintf)((0,g._x)("%s Layout","Block layout name",u.i18n),(0,g.__)("Plus",u.i18n)),attributes:{className:"is-style-plus"},isActive:["className"],pickerTitle:(0,g.__)("Plus",u.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,p.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,w=(0,l.memo)((()=>(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,g.__)("General",u.i18n),id:"general",initialOpen:!0},(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.__)("Open at the start",u.i18n),attribute:"startOpen"}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.__)("Close adjacent on open",u.i18n),attribute:"onlyOnePanelOpen",helpTooltip:{video:"accordion-adjacent-open",title:(0,g.__)("Close adjacent on open",u.i18n),description:(0,g.__)("Automatically closes adjacent accordion panels when clicked.",u.i18n)}}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.__)("Enable FAQ Schema",u.i18n),attribute:"enableFAQ"}))),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.BlockDiv.InspectorControls,{backgroundMediaAllowVideo:!1}),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-accordion"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.InspectorBottomTip,null))))),_=(0,y.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(s))((e=>{var t,o,a,i;const{clientId:c,className:b}=e,[m,p]=(0,l.useState)(e.attributes.startOpen),{hasInnerBlocks:g}=(0,f.useSelect)((e=>{const{getBlockOrder:t}=e("core/block-editor");return{hasInnerBlocks:t(c).length>0}}),[c]),[k,h]=(0,l.useState)(!1),{getEditorDom:v}=(0,f.useSelect)("stackable/editor-dom"),y=(0,n.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"),_=(null===(a=window)||void 0===a||null===(i=a.location)||void 0===i?void 0:i.href)&&-1!==window.location.href.indexOf("widgets.php"),A=()=>{var e,t;return B?null===(e=document)||void 0===e?void 0:e.querySelector("#customize-controls"):_?null===(t=document)||void 0===t?void 0:t.querySelector(".edit-widgets-main-block-list.block-editor-block-list__layout"):v()};var E;((0,l.useEffect)((()=>{var e;if(!k)return;const t=null===(e=A())||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,k,v]),(0,l.useEffect)((()=>{k&&h(!1)}),[e.className]),k)||(null===(E=A())||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,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:u.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(w,null),x&&(0,l.createElement)("style",{key:"block-css"},x),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-accordion"}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:T,renderHtmlTag:!1,enableVariationPicker:!0},(0,l.createElement)(C.InnerBlocks,{template:S,templateLock:"insert"})),e.isHovered&&g&&(0,l.createElement)(n.MarginBottom,null))}));(0,k.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:n,getBlock:i}=(0,f.useSelect)((e=>{const{getBlock:t,getBlockParents:o}=e("core/block-editor"),l=o(a).map((e=>({clientId:e,name:t(e).name})));return{getBlock:t,parentTree:l}}),[a]),{getActiveBlockVariation:s}=(0,f.useSelect)("core/blocks"),c=(0,B.findLast)(n,(e=>"stackable/accordion"===e.name)),d=i(null==c?void 0:c.clientId),m=(0,B.findLast)(n,(e=>"stackable/column"===e.name));if((0,B.findLast)(n,(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),n="plus"===(null==a?void 0:a.name)?(0,k.applyFilters)("stackable.block-component.plus.icon-close"):void 0;return(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(r.IconControl,{label:(0,g.__)("Open Icon",u.i18n),value:t,defaultValue:n,onChange:e=>o({icon2:e}),help:(0,g.__)("The open icon will appear when the accordion is opened",u.i18n)}))}return e})),(0,k.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,k.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"),l=a(t).map((e=>({clientId:e,name:o(e).name})));return{getBlock:o,parentTree:l}}),[t]),{getActiveBlockVariation:l}=(0,f.useSelect)("core/blocks"),n=(0,B.findLast)(o,(e=>"stackable/accordion"===e.name)),r=a(null==n?void 0:n.clientId),i=(0,B.findLast)(o,(e=>"stackable/column"===e.name));if((0,B.findLast)(o,(e=>"stackable/icon-label"===e.name))&&(null==r?void 0:r.innerBlocks[0].clientId)===(null==i?void 0:i.clientId)&&r){const e=l(r.name,r.attributes);return"plus"===(null==e?void 0:e.name)?(0,k.applyFilters)("stackable.block-component.plus.icon-open"):h}return e}));const A=e=>{const{attributes:t}=e,o=(0,n.getAlignmentClasses)(e.attributes),a=(0,n.getResponsiveClasses)(e.attributes),r=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,l.createElement)(n.BlockDiv.Content,{className:r,attributes:t,open:t.startOpen||void 0,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,l.createElement)(C.InnerBlocks.Content,null))},E=(0,y.compose)((0,m.withVersion)(u.version))(A);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 n.BlockDiv.addAttributes(t),n.Style.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:{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),H=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"]}'),z={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,g.__)("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,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.",u.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]},M=[{attributes:x("3.16.2"),save:(0,m.withVersion)("3.16.2")(A),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockHeight.migrate(t),t}},{attributes:x("3.15.3"),save:(0,m.withVersion)("3.15.3")(A),isEligible:e=>n.deprecateBlockHeight.isEligible(e),migrate:e=>{let t={...e};return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockHeight.migrate(t),t}},{attributes:x("3.12.11"),save:(0,m.withVersion)("3.12.11")(A),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:x("3.11.9"),save:(0,m.withVersion)("3.11.9")(A),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:x("3.7.9"),save:(0,m.withVersion)("3.7.9")(A),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var O=o(4296);const N={...H,icon:a.AccordionIcon,attributes:I,supports:{anchor:!0,stkColumnResize:!1,spacing:!0},example:z,deprecated:M,variations:v,edit:_,save:E,substitute:O.default}},4296:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/accordion",transform:(e,t)=>["core/details",{open:!1,summary:t[0][2][0][2][0][1].text},t[1][2]]},l=a},2:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>V});var a=o(2610),l=o(8003),n=o(3882),r=o(7462);o(7294);const i=function(e){return(0,a.createElement)("svg",(0,r.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,n.applyFilters)("stackable.blockquote.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",s.i18n),(0,l.__)("Default",s.i18n)),isDefault:!0,attributes:{className:"is-style-default",hasContainer:!0,contentAlign:"left"},isActive:["className"],pickerTitle:(0,l.__)("Default",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,r.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)(i,null)),linkHasLink:!1}],["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",s.i18n)}]],scope:["block"]},{name:"simple",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",s.i18n),(0,l.__)("Simple",s.i18n)),attributes:{className:"is-style-simple",contentAlign:"left"},isActive:["className"],pickerTitle:(0,l.__)("Simple",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,r.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)(i,null)),opacity:.2,position:"absolute",positionNum:{top:-50,right:"",bottom:"",left:-50},iconSize:200,linkHasLink:!1}],["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",s.i18n)}]],scope:["block"]},{name:"highlighted",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",s.i18n),(0,l.__)("Highlighted",s.i18n)),attributes:{className:"is-style-highlighted"},isActive:["className"],pickerTitle:(0,l.__)("Highlighted",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,r.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",s.i18n),(0,l.__)("Huge",s.i18n)),attributes:{className:"is-style-huge"},isActive:["className"],pickerTitle:(0,l.__)("Huge",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,r.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",s.i18n),(0,l.__)("Centered Quote",s.i18n)),attributes:{className:"is-style-centered-quote"},isActive:["className"],pickerTitle:(0,l.__)("Centered Quote",s.i18n),pickerIcon:function(e){return(0,a.createElement)("svg",(0,r.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,g=function(e){return(0,a.createElement)("svg",(0,r.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"}))},k=function(e){return(0,a.createElement)("svg",(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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)(i,null),title:(0,l.__)("Round Thin",s.i18n),value:(0,a.renderToString)((0,a.createElement)(i,null))},round:{icon:(0,a.createElement)(k,null),title:(0,l.__)("Round",s.i18n),value:(0,a.renderToString)((0,a.createElement)(k,null))},"round-thick":{icon:(0,a.createElement)(h,null),title:(0,l.__)("Round Thick",s.i18n),value:(0,a.renderToString)((0,a.createElement)(h,null))},"round-fat":{icon:(0,a.createElement)(g,null),title:(0,l.__)("Round Fat",s.i18n),value:(0,a.renderToString)((0,a.createElement)(g,null))},"square-thin":{icon:(0,a.createElement)(B,null),title:(0,l.__)("Square Thin",s.i18n),value:(0,a.renderToString)((0,a.createElement)(B,null))},square:{icon:(0,a.createElement)(y,null),title:(0,l.__)("Square",s.i18n),value:(0,a.renderToString)((0,a.createElement)(y,null))},"square-simple":{icon:(0,a.createElement)(f,null),title:(0,l.__)("Square Simple",s.i18n),value:(0,a.renderToString)((0,a.createElement)(f,null))},"square-modern":{icon:(0,a.createElement)(C,null),title:(0,l.__)("Square Modern",s.i18n),value:(0,a.renderToString)((0,a.createElement)(C,null))},"square-fat":{icon:(0,a.createElement)(v,null),title:(0,l.__)("Square Fat",s.i18n),value:(0,a.renderToString)((0,a.createElement)(v,null))}};var w=o(4184),_=o.n(w),A=o(9783),E=o(78),T=o(3749),x=o(3284);(0,a.renderToString)((0,a.createElement)(i,null));const I=c[0].innerBlocks,H=(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))))),z=(0,T.compose)(A.withBlockWrapperIsHovered,A.withQueryLoopContext,A.withBlockAttributeContext,(0,A.withBlockStyleContext)(p))((e=>{const{className:t}=e,o=(0,u.getAlignmentClasses)(e.attributes),{hasInnerBlocks:l}=(0,x.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor");return{hasInnerBlocks:o(e.clientId).length>0}}),[e.clientId]),n=_()([t,"stk-block-blockquote"]),r=_()(["stk-block-content","stk-inner-blocks",o,"stk-block-blockquote__content"]),i=(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)(H,null),(0,a.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:n,enableVariationPicker:!0},i&&(0,a.createElement)("style",{key:"block-css"},i),(0,a.createElement)(u.CustomCSS,{mainBlockClass:"stk-block-blockquote"}),(0,a.createElement)(u.ContainerDiv,{className:r},(0,a.createElement)(E.InnerBlocks,{template:I,templateLock:"all"}))),e.isHovered&&l&&(0,a.createElement)(u.MarginBottom,null))}));(0,n.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/blockquote",((e,t)=>"stackable/blockquote"!==(null==t?void 0:t.name)&&e)),(0,n.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,l.__)("Quotation Mark Icons",s.i18n),multiline:!0,controls:Object.values(S),attribute:"icon",default:S["round-thin"].value})):e})),(0,n.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,l.__)("Pick another icon",s.i18n):e})),(0,n.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 M=e=>{const{attributes:t,className:o}=e,l=(0,u.getAlignmentClasses)(t),n=(0,u.getResponsiveClasses)(t),r=_()([o,"stk-block-blockquote",n]),i=_()([l,"stk-block-blockquote__content"]),s=_()(["stk-block-content","stk-inner-blocks"]);return(0,a.createElement)(u.BlockDiv.Content,{className:r,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:i,attributes:t},(0,a.createElement)("div",{className:s},(0,a.createElement)(E.InnerBlocks.Content,null))))},O=(0,T.compose)((0,A.withVersion)(s.version))(M);var N=o(7545);const D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.version;const t=new N.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)},R=D(s.version),L={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,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.",s.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},U=[{attributes:D("3.16.2"),save:(0,A.withVersion)("3.16.2")(M),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e);return t||o},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=u.deprecateBlockHeight.migrate(t),t}},{attributes:D("3.15.3"),save:(0,A.withVersion)("3.15.3")(M),isEligible:e=>u.deprecateBlockHeight.isEligible(e),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=u.deprecateBlockHeight.migrate(t),t}},{attributes:D("3.12.11"),save:(0,A.withVersion)("3.12.11")(M),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e);return t||o},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:D("3.11.9"),save:(0,A.withVersion)("3.11.9")(M),isEligible:e=>{const t=u.deprecateContainerBackgroundColorOpacity.isEligible(e),o=u.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},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:D("3.7.9"),save:(0,A.withVersion)("3.7.9")(M),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:D("3.7.9"),save:(0,A.withVersion)("3.7.9")(M)}];var P=o(6639);const V={...d,icon:o(9467).BlockquoteIcon,attributes:R,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:L,deprecated:U,variations:c,edit:z,save:O,substitute:P.default}},6639:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/blockquote",transform:(e,t)=>["core/pullquote",{value:t[1][1].text,align:e.contentAlign}]},l=a},2423:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>i});var a=o(3318),l=o(4267),n=o(9783),r=o(9384);const i=[{attributes:(0,l.Y)("3.16.2"),save:(0,n.withVersion)("3.16.2")(a.v),isEligible:e=>{const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:(0,l.Y)("3.15.3"),save:(0,n.withVersion)("3.15.3")(a.v),isEligible:e=>r.deprecateBlockHeight.isEligible(e),migrate:e=>{let t={...e};return t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:(0,l.Y)("3.12.11"),save:(0,n.withVersion)("3.12.11")(a.v),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:(0,l.Y)("3.11.9"),save:(0,n.withVersion)("3.11.9")(a.v),isEligible:e=>{const t=r.deprecateContainerBackgroundColorOpacity.isEligible(e),o=r.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t}},{attributes:(0,l.Y)("3.7.9"),save:(0,n.withVersion)("3.7.9")(a.v),migrate:e=>{let t=r.deprecateContainerBackgroundColorOpacity.migrate(e);return t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),r.deprecateBlockBackgroundColorOpacity.migrate(t)}},{attributes:(0,l.Y)("3.4.2"),save:(0,n.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:()=>M});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.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"}]),i.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"]}]),i.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"]}]),i.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}]),n.Alignment.addStyles(i),n.BlockDiv.addStyles(i,{verticalAlignSelectorEdit:".stk-button-group > .block-editor-inner-blocks > .block-editor-block-list__layout",verticalAlignSelectorSave:".stk-button-group"}),n.MarginBottom.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i),(0,n.addFlexGapStyles)(i,{editSelector:".block-editor-block-list__layout",saveSelector:".stk-inner-blocks"});const s=i;var c=o(910),d=o(4184),u=o.n(d),b=o(8333),m=o(9783),p=o(3749),g=o(78),k=o(8003),h=o(3284);const v=["stackable/button","stackable/icon-button"],C=[["stackable/button"]],y=r.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,k.__)("Horizontal",c.i18n),value:"horizontal"},{title:(0,k.__)("Vertical",c.i18n),value:"vertical"}],S=[{title:(0,k.__)("Horizontal",c.i18n),value:"horizontal"},{title:(0,k.__)("Vertical",c.i18n),value:"vertical"}],w=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(g.BlockControls,null,(0,l.createElement)(g.AlignmentToolbar,{value:e.contentAlign,onChange:t=>e.setAttributes({contentAlign:t}),alignmentControls:f})),(0,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(r.AlignButtonsControl,{label:(0,k.sprintf)((0,k.__)("%s Alignment",c.i18n),(0,k.__)("Content",c.i18n)),attribute:"contentAlign",responsive:"all",controls:e.contentAlignControls}),(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,k.sprintf)((0,k.__)("%s Alignment",c.i18n),(0,k.__)("Button",c.i18n)),controls:"Desktop"===e.deviceType?B:S,attribute:"buttonAlign",responsive:"all"}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,k.__)("Full Width Buttons",c.i18n),attribute:"buttonFullWidth",defaultValue:!1}),(0,l.createElement)(n.FlexGapControls,{placeholderTemplate:"button"}),(0,l.createElement)(r.AdvancedSelectControl,{label:(0,k.__)("Flex Wrap",c.i18n),attribute:"flexWrap",options:[{label:(0,k.__)("No Wrap",c.i18n),value:""},{label:(0,k.__)("Wrap",c.i18n),value:"wrap"},{label:(0,k.__)("Wrap Reverse",c.i18n),value:"wrap-reverse"}],responsive:"all"})),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-button-group"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),_=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(s))((e=>{const{className:t,attributes:o,setAttributes:a}=e,{collapseOn:i=""}=o,d=(0,b.useDeviceType)(),m=(0,n.getRowClasses)(o),p=(0,n.getAlignmentClasses)(o),{hasInnerBlocks:k}=(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-${i}`]:i}]);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 _=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(w,{contentAlign:o.contentAlign,setAttributes:a,contentAlignControls:S,deviceType:d}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:f},_&&(0,l.createElement)("style",{key:"block-css"},_),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-button-group"}),!k&&(0,l.createElement)(r.GroupPlaceholder,{blockName:"stackable/button"}),(0,l.createElement)("div",{className:B},(0,l.createElement)(g.InnerBlocks,{orientation:"horizontal",allowedBlocks:v,template:C,templateInsertUpdatesSelection:!0,renderAppender:!!k&&void 0}))),e.isHovered&&k&&(0,l.createElement)(n.MarginBottom,null))}));var A=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,k.__)("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,k.__)("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,k.__)("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,k.__)("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,k.__)("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,k.__)("Social Buttons",c.i18n),description:(0,k.__)("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 H=o(2423),z=o(571);const M={...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:H.default,example:x,edit:_,save:A.Z,substitute:z.default}},3318:(e,t,o)=>{"use strict";o.d(t,{v:()=>d,Z:()=>u});var a=o(2610),l=o(9783),n=o(910),r=o(1991),i=o.n(r),s=o(78),c=o(9384);const d=e=>{const{attributes:t}=e,{collapseOn:o=""}=t,l=(0,c.getRowClasses)(e.attributes),n=(0,c.getAlignmentClasses)(e.attributes),r=(0,c.getResponsiveClasses)(e.attributes),d=i()([e.className,"stk-block-button-group",r]),u=i()([l,"stk-inner-blocks",n,"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,l.withVersion)(n.version)(d)},4267:(e,t,o)=>{"use strict";o.d(t,{Y:()=>i,Z:()=>s});const a=e=>{e.add({attributes:{collapseOn:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.4.3"})};var l=o(9384),n=o(7545),r=o(910);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.version;const t=new n.AttributeObject;return l.BlockDiv.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),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,l.addFlexGapAttributes)(t),a(t),t.getMerged(e)},s=i(r.version)},571:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>l,default:()=>n});var a=o(7545);const l={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]},n=l},1545:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(7462),l=o(2610),n=o(4184),r=o.n(n),i=o(910),s=o(7200),c=o(9384),d=o(8333),u=o(9783),b=o(8003),m=o(3749),p=o(78);const g=new s.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});g.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(g),c.Advanced.addStyles(g),c.Transform.addStyles(g),c.Button.addStyles(g,{selector:".stk-button"}),c.Typography.addStyles(g,{selector:".stk-button__inner-text",hoverSelector:".stk-button:hover .stk-button__inner-text"}),c.EffectsAnimations.addStyles(g);const k=g;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",i.i18n),isDefault:!0,icon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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",i.i18n),icon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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",i.i18n),icon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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",i.i18n),icon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,l.memo)((e=>{const{getPlaceholder:t}=(0,d.useBlockLayoutDefaults)();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(p.BlockControls,null,(0,l.createElement)(p.AlignmentToolbar,{value:e.contentAlign,onChange:t=>e.setAttributes({contentAlign:t})})),(0,l.createElement)(s.InspectorTabs,{hasLayoutPanel:!1}),(0,l.createElement)(c.BlockStyle.InspectorControls,{styles:y},(0,l.createElement)(c.Button.InspectorControls.HoverEffects,null)),(0,l.createElement)(c.Button.InspectorControls,{blockState:e.blockState,borderSelector:".stk-button",hasFullWidth:!0,borderRadiusPlaceholder:t("button-border-radius"),iconGapPlaceholderName:"button-icon-gap"}),(0,l.createElement)(c.Typography.InspectorControls,(0,a.Z)({},e,{hasTextTag:!1,initialOpen:!1,hasColor:!1})),(0,l.createElement)(c.BlockDiv.InspectorControls,{initialOpen:"spacing"}),(0,l.createElement)(c.Advanced.InspectorControls,null),(0,l.createElement)(c.Transform.InspectorControls,null),(0,l.createElement)(c.EffectsAnimations.InspectorControls,null),(0,l.createElement)(c.CustomAttributes.InspectorControls,null),(0,l.createElement)(c.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-button"}),(0,l.createElement)(c.Responsive.InspectorControls,null),(0,l.createElement)(c.ConditionalDisplay.InspectorControls,null))})),B=(0,m.compose)(u.withBlockWrapper,u.withQueryLoopContext,u.withBlockAttributeContext,(0,u.withBlockStyleContext)(k))((e=>{const{className:t,onReplace:o,attributes:a,setAttributes:n}=e,u=(0,c.getTypographyClasses)(e.attributes),m=c.CustomAttributes.getCustomAttributes(e.attributes),p=(0,c.getAlignmentClasses)(e.attributes),g=(0,d.useBlockStyle)(y),h=r()([t,"stk-block-button",p,{[`is-style-${g}`]:g}]),v=r()([u,"stk-button__inner-text"]),C=(0,s.useBlockCssGenerator)({attributes:e.attributes,blockStyles:k,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)(f,{contentAlign:a.contentAlign,setAttributes:n,blockState:e.blockState}),C&&(0,l.createElement)("style",{key:"block-css"},C),(0,l.createElement)(c.CustomCSS,{mainBlockClass:"stk-block-button"}),(0,l.createElement)(c.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:h,applyCustomAttributes:!1},(0,l.createElement)(c.Button,{buttonProps:{tagName:e.attributes.linkTag,id:e.attributes.anchorId||void 0,...m}},(0,l.createElement)(c.Typography,{tagName:"span",className:v,placeholder:(0,b.__)("Button text",i.i18n),withoutInteractiveFormatting:!0,onReplace:o}))))})),S=e=>{const{className:t,...o}=e,n=(0,c.getResponsiveClasses)(e.attributes),i=c.CustomAttributes.getCustomAttributes(e.attributes),s=(0,c.getTypographyClasses)(e.attributes),d=(0,c.getAlignmentClasses)(e.attributes),u=r()([t,"stk-block-button",d,n]),b=r()([s,"stk-button__inner-text"]);return(0,l.createElement)(c.BlockDiv.Content,(0,a.Z)({},p.useBlockProps.save({className:u}),{attributes:e.attributes,applyCustomAttributes:!1,version:e.version}),e.attributes.generatedCss&&(0,l.createElement)("style",null,e.attributes.generatedCss),(0,l.createElement)(c.CustomCSS.Content,{attributes:e.attributes}),(0,l.createElement)(c.Button.Content,(0,a.Z)({},o,{attributes:e.attributes,buttonProps:{id:e.attributes.anchorId||void 0,...i}}),(0,l.createElement)(c.Typography.Content,{attributes:e.attributes,tagName:"span",className:b})))},w=(0,m.compose)((0,u.withVersion)(i.version))(S),_={attributes:{uniqueId:"123456",text:(0,b.__)("Call to action",i.i18n)},innerBlocks:[]},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.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=A(i.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)}]},H=I,z=[{attributes:A("3.16.2"),save:(0,u.withVersion)("3.16.2")(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=c.deprecateTypographyFontSize.migrate("%s")(t),t=c.deprecateBlockHeight.migrate(t),t}},{attributes:A("3.15.3"),save:(0,u.withVersion)("3.15.3")(S),isEligible:e=>{const t=c.deprecateTypographyFontSize.isEligible("%s")(e),o=c.deprecateBlockHeight.isEligible(e);return t||o},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=c.deprecateTypographyFontSize.migrate("%s")(t),t=c.deprecateBlockHeight.migrate(t),t}},{attributes:A("3.12.11"),save:(0,u.withVersion)("3.12.11")(S),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:A("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:A("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 M=o(9168);const O={...T,icon:o(9467).ButtonIcon,attributes:E,supports:{anchor:!0,splitting:!0},transforms:H,deprecated:z,example:_,edit:B,save:w,substitute:M.default}},9168:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>l,default:()=>n});var a=o(7545);const l={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]},n=l},5471:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(910),l=o(8003),n=o(3882),r=o(7462),i=o(2610);o(7294);const s=(0,n.applyFilters)("stackable.call-to-action.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Default",a.i18n)),isDefault:!0,attributes:{className:"is-style-default",hasContainer:!0},isActive:["className"],pickerTitle:(0,l.__)("Default",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l._x)("Title for This Block","Heading placeholder",a.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",a.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l.__)("Button",a.i18n)}]]]],scope:["block"]},{name:"horizontal",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Horizontal",a.i18n)),attributes:{className:"is-style-horizontal",hasContainer:!0,innerBlockOrientation:"horizontal",innerBlockContentAlign:"alignwide",innerBlockVerticalAlign:"center",align:"wide"},isActive:["className"],pickerTitle:(0,l.__)("Horizontal",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l._x)("Title for This Block","Heading placeholder",a.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",a.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l.__)("Button",a.i18n)}]]]],scope:["block"]},{name:"horizontal-2",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Horizontal 2",a.i18n)),attributes:{className:"is-style-horizontal-2"},isActive:["className"],pickerTitle:(0,l.__)("Horizontal 2",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Horizontal 3",a.i18n)),attributes:{className:"is-style-horizontal-3"},isActive:["className"],pickerTitle:(0,l.__)("Horizontal 3",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Split Centered",a.i18n)),attributes:{className:"is-style-split-centered"},isActive:["className"],pickerTitle:(0,l.__)("Split Centered",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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),g=o(4184),k=o.n(g),h=o(9783),v=o(78),C=o(3749),y=o(3284);const f=s[0].innerBlocks,B=(0,i.memo)((()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.InspectorTabs,null),(0,i.createElement)(d.ContentAlign.InspectorControls,null),(0,i.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,i.createElement)(d.BlockDiv.InspectorControls,null),(0,i.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,i.createElement)(d.BlockLink.InspectorControls,null),(0,i.createElement)(d.Advanced.InspectorControls,null),(0,i.createElement)(d.Transform.InspectorControls,null),(0,i.createElement)(d.Separator.InspectorControls,null),(0,i.createElement)(d.EffectsAnimations.InspectorControls,null),(0,i.createElement)(d.CustomAttributes.InspectorControls,null),(0,i.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-call-to-action"}),(0,i.createElement)(d.Responsive.InspectorControls,null),(0,i.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,i.createElement)(u.InspectorStyleControls,null,(0,i.createElement)(u.InspectorBottomTip,null))))),S=(0,C.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext,(0,h.withBlockStyleContext)(m))((e=>{var t;const{className:o}=e,{hasInnerBlocks:l,innerBlocks:n}=(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]),r=(0,d.getAlignmentClasses)(e.attributes),s=(0,d.getSeparatorClasses)(e.attributes),c=k()([o,"stk-block-call-to-action",s]),b=k()(["stk-block-content","stk-inner-blocks",r,"stk-block-call-to-action__content",`stk-${e.attributes.uniqueId}-inner-blocks`],(0,d.getContentAlignmentClasses)(e.attributes)),g=null===(t=(0,p.last)(n))||void 0===t?void 0:t.name,h=l?["stackable/text","core/paragraph"].includes(g)?()=>(0,i.createElement)(i.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,i.createElement)(i.Fragment,null,(0,i.createElement)(B,null),(0,i.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c,enableVariationPicker:!0},C&&(0,i.createElement)("style",{key:"block-css"},C),(0,i.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-call-to-action"}),(0,i.createElement)(d.Separator,null,(0,i.createElement)(d.ContainerDiv,{className:b},(0,i.createElement)(v.InnerBlocks,{template:f,templateLock:!1,renderAppender:h})))),e.isHovered&&l&&(0,i.createElement)(d.MarginBottom,null))}));var w=o(1991),_=o.n(w);const A=e=>{const{attributes:t,className:o}=e,a=(0,d.getAlignmentClasses)(t),l=(0,d.getSeparatorClasses)(t),r=(0,d.getResponsiveClasses)(t),s=_()([o,"stk-block-call-to-action",r,l]),c=_()(["stk-block-call-to-action__content"],(0,d.getContentAlignmentClasses)(t)),u=_()((0,n.applyFilters)("stackable.call-to-action.save.innerClassNames",[a,"stk-block-content","stk-inner-blocks",`stk-${t.uniqueId}-inner-blocks`],e));return(0,i.createElement)(d.BlockDiv.Content,{className:s,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,i.createElement)("style",null,t.generatedCss),(0,i.createElement)(d.CustomCSS.Content,{attributes:t}),(0,i.createElement)(d.Separator.Content,{attributes:t},(0,i.createElement)(d.ContainerDiv.Content,{className:c,attributes:t},(0,i.createElement)("div",{className:u},(0,i.createElement)(v.InnerBlocks.Content,null)),(0,i.createElement)(d.BlockLink.Content,{attributes:t}))))},E=(0,C.compose)((0,h.withVersion)(a.version))(A);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),H={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,l.__)("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,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.",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,l.__)("Button",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var z=o(4247),M=o.n(z);(0,n.addFilter)("stackable.call-to-action.save.innerClassNames","stackable/3.8.0",((e,t)=>(M()(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 O=[{attributes:x("3.16.2"),save:(0,h.withVersion)("3.16.2")(A),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),l=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||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=d.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),[a,t]}},{attributes:x("3.15.3"),save:(0,h.withVersion)("3.15.3")(A),isEligible:e=>{const t=d.deprecateBlockHeight.isEligible(e),o=d.deprecateInnerBlockRowGapAndContainerHeight.isEligible("%s")(e);return t||o},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=d.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),[a,t]}},{attributes:x("3.12.11"),save:(0,h.withVersion)("3.12.11")(A),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.innerBlockRowGap)||"string"==typeof(null==e?void 0:e.innerBlockRowGapTablet)||"string"==typeof(null==e?void 0:e.innerBlockRowGapMobile)||"string"==typeof(null==e?void 0:e.containerHeight)||"string"==typeof(null==e?void 0:e.containerHeightTablet)||"string"==typeof(null==e?void 0:e.containerHeightMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),l=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||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")(A),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},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")(A),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 N=o(701);const D={...c,icon:o(9467).CTAIcon,attributes:I,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:H,variations:s,deprecated:O,edit:S,save:E,substitute:N.default}},701:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/call-to-action",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t]]]},l=a},462:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>L});var a=o(9467),l=o(7462),n=o(2610);o(7294);var r=o(910),i=o(8003),s=o(3882);const c=(0,s.applyFilters)("stackable.card.variations",[{name:"default",isDefault:!0,description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",r.i18n),(0,i.__)("Default",r.i18n)),attributes:{className:"is-style-default",hasContainer:!0,imageWidthUnit:"",imageWidthUnitTablet:"",imageWidthUnitMobile:"",imageWidth:"",imageWidthTablet:"",imageWidthMobile:"",imageHeight:"",imageHeightTablet:"",imageHeightMobile:""},isActive:["className"],pickerTitle:(0,i.__)("Default",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.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,i._x)("Subtitle for This Block","Subtitle placeholder",r.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",r.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,i._x)("Button","Button placeholder",r.i18n)}]]]],scope:["block"]},{name:"default-2",isDefault:!0,description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",r.i18n),(0,i.__)("Default 2",r.i18n)),attributes:{className:"is-style-default-2",hasContainer:!0,imageWidthUnit:"",imageWidthUnitTablet:"",imageWidthUnitMobile:"",imageWidth:"",imageWidthTablet:"",imageWidthMobile:"",imageHeight:"",imageHeightTablet:"",imageHeightMobile:""},isActive:["className"],pickerTitle:(0,i.__)("Default 2",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.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,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",r.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,i._x)("Button","Button placeholder",r.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,i.sprintf)((0,i._x)("%s Layout","Block layout name",r.i18n),(0,i.__)("Horizontal",r.i18n)),attributes:{className:"is-style-horizontal"},pickerTitle:(0,i.__)("Horizontal",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.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:!r.isPro,scope:["block"]},{name:"full",description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",r.i18n),(0,i.__)("Full",r.i18n)),attributes:{className:"is-style-full"},pickerTitle:(0,i.__)("Full",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.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:!r.isPro,scope:["block"]},{name:"faded",description:(0,i.sprintf)((0,i._x)("%s Layout","Block layout name",r.i18n),(0,i.__)("Faded",r.i18n)),attributes:{className:"is-style-faded"},pickerTitle:(0,i.__)("Faded",r.i18n),pickerIcon:function(e){return(0,n.createElement)("svg",(0,l.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,n.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:!r.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 l=a("className");return"horizontal"===(0,u.getBlockStyle)(c,l).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 g=o(1991),k=o.n(g),h=o(8085),v=o(9783),C=o(78),y=o(3749),f=o(3284);const B=c[0].innerBlocks,S=["px","vw"],w=["px","vh"],_=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(b.InspectorTabs,null),(0,n.createElement)(d.Image.InspectorControls,{initialOpen:!0,hasWidth:"horizontal"===e.blockStyle,hasHeight:e.hasHeight,widthUnits:S,heightUnits:w,hasBorderRadius:!1,hasShape:!1,hasShadow:!1,hasAspectRatio:!["horizontal","full","faded"].includes(e.blockStyle)}),(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-card__content"}),(0,n.createElement)(d.BlockLink.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-card"}),(0,n.createElement)(d.Responsive.InspectorControls,null),(0,n.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,n.createElement)(b.InspectorStyleControls,null,(0,n.createElement)(b.InspectorBottomTip,null))))),A=(0,y.compose)(v.withBlockWrapperIsHovered,v.withQueryLoopContext,v.withBlockAttributeContext,(0,v.withBlockStyleContext)(p))((e=>{var t;const{hasContainer:o}=e.attributes,{className:a}=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,d.getBlockOrientation)(e.attributes),m=(0,d.getAlignmentClasses)(e.attributes),g=(0,u.useBlockStyle)(c),v=k()([a,"stk-block-card"]),y=k()(["stk-block-content","stk--no-padding"]),A=k()(["stk-inner-blocks",m,"stk-block-card__content",`stk-${e.attributes.uniqueId}-inner-blocks`],{"stk-container-padding":o}),E=null===(t=(0,h.last)(i))||void 0===t?void 0:t.name,T=l?["stackable/text","core/paragraph"].includes(E)?()=>(0,n.createElement)(n.Fragment,null):C.InnerBlocks.DefaultBlockAppender:C.InnerBlocks.ButtonBlockAppender;let x=["default","default-2"].includes(g);const I=(0,u.useDeviceType)();"horizontal"===g&&"Mobile"===I&&(x=!0);const H=e.attributes.imageWidthUnit||"px",z=e.attributes.imageHeightUnit||"px",M=(0,b.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,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)(_,{blockStyle:g,hasHeight:x}),M&&(0,n.createElement)("style",{key:"block-css"},M),(0,n.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-card"}),(0,n.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:v,enableVariationPicker:!0},e.attributes.uniqueId&&(0,n.createElement)(d.ContainerDiv,{className:y},(0,n.createElement)(d.Image,{showTooltips:e.isHovered,className:"stk-block-card__image",enableWidth:"horizontal"===g,enableHeight:x,enableDiagonal:!1,widthUnits:S,heightUnits:w,defaultWidth:250,width:"horizontal"!==g?100:void 0,widthUnit:"horizontal"!==g?"%":H,height:"horizontal"!==g?void 0:100,heightUnit:"horizontal"!==g?z:"%",hasTooltip:!["full","faded"].includes(g)}),(0,n.createElement)("div",{className:A},(0,n.createElement)(C.InnerBlocks,{template:B,orientation:s,renderAppender:T})))),e.isHovered&&l&&(0,n.createElement)(d.MarginBottom,null))})),E=e=>{const{attributes:t}=e,{hasContainer:o}=e.attributes,a=(0,d.getAlignmentClasses)(e.attributes),l=(0,d.getResponsiveClasses)(e.attributes),r=k()([e.className,"stk-block-card",l]),i=k()((0,s.applyFilters)("stackable.card.save.contentClassNames",{"stk--no-padding":!0},e)),c=k()((0,s.applyFilters)("stackable.card.save.wrapperClassNames",{"stk-container-padding":o,"stk-block-card__content":!0},e)),u=k()((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,n.createElement)(d.BlockDiv.Content,{className:r,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}),t.uniqueId&&(0,n.createElement)(d.ContainerDiv.Content,{className:i,attributes:t},(e.attributes.imageUrl||e.attributes.imageExternalUrl)&&(0,n.createElement)(d.Image.Content,{className:"stk-block-card__image",attributes:t}),(0,s.applyFilters)("stackable.card.save.container-div.content",(0,n.createElement)("div",{className:c},(0,n.createElement)("div",{className:u},(0,n.createElement)(C.InnerBlocks.Content,null))),e,u),(0,n.createElement)(d.BlockLink.Content,{attributes:t})))},T=(0,y.compose)((0,v.withVersion)(r.version))(E);var x=o(7545);const I=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.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)},H=I(r.version),z=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"]}'),M={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,i.__)("Title for This Block",r.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,i.__)("Subtitle for This Block",r.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,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.",r.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,i.__)("Button",r.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var O=o(4247),N=o.n(O);(0,s.addFilter)("stackable.card.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))),(0,s.addFilter)("stackable.card.save.container-div.content","stackable/3.0.2",((e,t,o)=>1===N()(t.version,"3.0.2")?e:(0,n.createElement)("div",{className:o},(0,n.createElement)(C.InnerBlocks.Content,null)))),(0,s.addFilter)("stackable.card.save.contentClassNames","stackable/3.0.2",((e,t)=>1===N()(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===N()(t.version,"3.0.2")?e:{})),(0,s.addFilter)("stackable.card.save.innerClassNames","stackable/3.0.2",((e,t)=>{if(1===N()(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 D=[{attributes:I("3.16.3"),save:(0,v.withVersion)("3.16.3")(E),isEligible:e=>d.deprecateImageBorderRadius.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=d.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a=d.deprecateImageBorderRadius.migrate(a),[a,t]}},{attributes:I("3.16.2"),save:(0,v.withVersion)("3.16.2")(E),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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=d.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),[a,t]}},{attributes:I("3.15.3"),save:(0,v.withVersion)("3.15.3")(E),isEligible:e=>{const t=d.deprecateBlockHeight.isEligible(e),o=d.deprecateInnerBlockRowGapAndContainerHeight.isEligible("%s")(e);return t||o},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=d.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),[a,t]}},{attributes:I("3.12.11"),save:(0,v.withVersion)("3.12.11")(E),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.innerBlockRowGap)||"string"==typeof(null==e?void 0:e.innerBlockRowGapTablet)||"string"==typeof(null==e?void 0:e.innerBlockRowGapMobile)||"string"==typeof(null==e?void 0:e.containerHeight)||"string"==typeof(null==e?void 0:e.containerHeightTablet)||"string"==typeof(null==e?void 0:e.containerHeightMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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);return t||o||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),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 R=o(1088);const L={...z,icon:a.CardIcon,attributes:H,supports:{anchor:!0,align:!0,spacing:!0},example:M,deprecated:D,variations:c,edit:A,save:T,substitute:R.default}},1088:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/card",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{align:e.align,hasContainer:!0},[["stackable/image",{imageUrl:e.imageUrl}],...t]]]]},l=a},7664:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.addBlockStyles("slidesToShow",[{styleRule:"--slides-to-show",attrName:"slidesToShow",key:"slidesToShow",responsive:"all"}]),i.addBlockStyles("slideColumnGap",[{styleRule:"--gap",attrName:"slideColumnGap",key:"slideColumnGap",format:"%spx",responsive:"all"}]),i.addBlockStyles("fadeDuration",[{styleRule:"--transition-duration",attrName:"fadeDuration",key:"fadeDuration",format:"%ss"}]),i.addBlockStyles("arrowJustify",[{selector:".stk-block-carousel__buttons",styleRule:"justifyContent",attrName:"arrowJustify",key:"arrowJustify"}]),i.addBlockStyles("arrowAlign",[{selector:".stk-block-carousel__buttons",styleRule:"alignItems",attrName:"arrowAlign",key:"arrowAlign",enabledCallback:e=>"outside"!==e("arrowPosition"),dependencies:["arrowPosition"]}]),i.addBlockStyles("arrowButtonOffset",[{styleRule:"--button-offset",attrName:"arrowButtonOffset",key:"arrowButtonOffset",format:"%spx",responsive:"all"}]),i.addBlockStyles("arrowButtonGap",[{styleRule:"--button-gap",attrName:"arrowButtonGap",key:"arrowButtonGap",format:"%spx",responsive:"all"}]),i.addBlockStyles("arrowButtonColor",[{selector:".stk-block-carousel__button",hoverSelector:".stk-block-carousel__button:hover",styleRule:"background",attrName:"arrowButtonColor",key:"arrowButtonColor",hover:"all"}]),i.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"}]),i.addBlockStyles("arrowWidth",[{styleRule:"--button-width",attrName:"arrowWidth",key:"arrowWidth",hasUnits:"px",responsive:"all"}]),i.addBlockStyles("arrowHeight",[{styleRule:"--button-height",attrName:"arrowHeight",key:"arrowHeight",hasUnits:"px",responsive:"all"}]),i.addBlockStyles("arrowBorderRadius",[{selector:".stk-block-carousel__button",styleRule:"borderRadius",attrName:"arrowBorderRadius",key:"arrowBorderRadius",format:"%spx"}]),i.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"}]),i.addBlockStyles("arrowOpacity",[{selector:".stk-block-carousel__button",hoverSelector:".stk-block-carousel__button:hover",styleRule:"opacity",attrName:"arrowOpacity",key:"arrowOpacity",hover:"all"}]),i.addBlockStyles("dotsJustify",[{selector:".stk-block-carousel__dots",styleRule:"justifyContent",attrName:"dotsJustify",key:"dotsJustify"}]),i.addBlockStyles("dotsOffset",[{selector:".stk-block-carousel__dots",styleRule:"--dot-offset",attrName:"dotsOffset",key:"dotsOffset",format:"%spx",responsive:"all"}]),i.addBlockStyles("dotsGap",[{styleRule:"--dot-gap",attrName:"dotsGap",key:"dotsGap",format:"%spx"}]),i.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"}]),i.addBlockStyles("dotsActiveColor",[{selector:".stk-block-carousel__dot.stk-block-carousel__dot--active:before",styleRule:"backgroundColor",attrName:"dotsActiveColor",key:"dotsActiveColor"}]),i.addBlockStyles("dotsSize",[{styleRule:"--dot-size",attrName:"dotsSize",key:"dotsSize",format:"%spx"}]),i.addBlockStyles("dotsBorderRadius",[{selector:".stk-block-carousel__dot:before",styleRule:"borderRadius",attrName:"dotsBorderRadius",key:"dotsBorderRadius",format:"%spx"}]),i.addBlockStyles("dotsActiveWidth",[{styleRule:"--dot-active-width",attrName:"dotsActiveWidth",key:"dotsActiveWidth",format:"%spx"}]),i.addBlockStyles("dotsActiveHeight",[{styleRule:"--dot-active-height",attrName:"dotsActiveHeight",key:"dotsActiveHeight",format:"%spx"}]),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),n.Separator.addStyles(i);const s=i;var c=o(910),d=o(4184),u=o.n(d),b=o(8333),m=o(9783),p=o(3749),g=o(8003),k=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 n.BlockDiv.addAttributes(t),n.Columns.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.CustomAttributes.addAttributes(t),n.CustomCSS.addAttributes(t),n.Responsive.addAttributes(t),n.ConditionalDisplay.addAttributes(t),n.Separator.addAttributes(t),n.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"],w=[["stackable/column"],["stackable/column"],["stackable/column"]],_=(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)(n.ColumnsControl,{label:(0,g.__)("Slides",c.i18n),sliderMax:10}),(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.__)("Carousel Type",c.i18n),controls:[{value:"",title:(0,g.__)("Slide",c.i18n)},{value:"fade",title:(0,g.__)("Fade",c.i18n)}],attribute:"carouselType"}),"slide"===e.carouselType&&(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.__)("Infinite Scrolling",c.i18n),checked:e.infiniteScroll,onChange:t=>e.setAttributes({infiniteScroll:t}),defaultValue:!1,help:(0,g.__)("Only visible in the frontend.",c.i18n)}),"slide"===e.carouselType&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Slides to Show",c.i18n),sliderMax:4,min:1,attribute:"slidesToShow",placeholder:"1",responsive:"all"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Slide Gap",c.i18n),sliderMax:100,min:0,attribute:"slideColumnGap",placeholder:"30",responsive:"all"})),"fade"===e.carouselType&&(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Fade duration",c.i18n),attribute:"fadeDuration",sliderMax:2,min:0,step:.1,placeholder:"0.3"}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.__)("Autoplay",c.i18n),checked:e.autoplay,onChange:t=>e.setAttributes({autoplay:t}),defaultValue:!0}),e.autoplay&&(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Speed (ms)",c.i18n),attribute:"autoplaySpeed",sliderMax:6e3,sliderMin:1e3,min:0,step:100,placeholder:"4000"}),(0,l.createElement)(r.ControlSeparator,null)),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Arrows",c.i18n),id:"arrows",hasToggle:!0,checked:e.showArrows,onChange:t=>e.setAttributes({showArrows:t})},(0,l.createElement)(r.IconControl,{label:(0,g.__)("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,l.createElement)(r.IconControl,{label:(0,g.__)("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,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.__)("Arrow Position",c.i18n),attribute:"arrowPosition",controls:[{value:"",title:(0,g.__)("Inside",c.i18n)},{value:"outside",title:(0,g.__)("Outside",c.i18n)}],onChange:t=>{e.setAttributes({arrowPosition:t,arrowJustify:"",arrowAlign:""})}}),(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.sprintf)((0,g.__)("%s Justify",c.i18n),(0,g.__)("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,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.sprintf)((0,g.__)("%s Alignment",c.i18n),(0,g.__)("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,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Offset",c.i18n),(0,g.__)("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,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Button Gap",c.i18n),attribute:"arrowButtonGap",min:0,sliderMax:100,responsive:"all",placeholder:"12"}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(r.ColorPaletteControl,{label:(0,g.sprintf)((0,g.__)("%s Color",c.i18n),(0,g.__)("Button",c.i18n)),attribute:"arrowButtonColor",hover:"all"}),(0,l.createElement)(r.ColorPaletteControl,{label:(0,g.sprintf)((0,g.__)("%s Color",c.i18n),(0,g.__)("Icon",c.i18n)),attribute:"arrowIconColor",hover:"all"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Width",c.i18n),(0,g.__)("Button",c.i18n)),attribute:"arrowWidth",units:["px","%"],sliderMax:[200,100],min:[0,0],responsive:"all",placeholder:"40"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Height",c.i18n),(0,g.__)("Button",c.i18n)),attribute:"arrowHeight",units:["px","%"],sliderMax:[200,100],min:[0,0],responsive:"all",placeholder:"40"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Border Radius",c.i18n),attribute:"arrowBorderRadius",sliderMax:Math.max(e.arrowHeight,e.arrowWidth,40),min:0,placeholder:"40"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Size",c.i18n),(0,g.__)("Icon",c.i18n)),attribute:"arrowIconSize",sliderMax:100,min:0,responsive:"all",placeholder:"16"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Opacity",c.i18n),attribute:"arrowOpacity",hover:"all",min:0,max:1,step:.01,placeholder:"0.9"}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.sprintf)((0,g.__)("Show %s on mobile",c.i18n),(0,g.__)("arrows",c.i18n)),checked:e.showArrowsOnMobile,onChange:t=>e.setAttributes({showArrowsOnMobile:t}),defaultValue:!0})),(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Dots",c.i18n),id:"dots",hasToggle:!0,checked:e.showDots,onChange:t=>e.setAttributes({showDots:t})},(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.sprintf)((0,g.__)("%s Justify",c.i18n),(0,g.__)("Dots",c.i18n)),attribute:"dotsJustify",controls:"horizontal",placeholder:"center"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Offset",c.i18n),(0,g.__)("Dots",c.i18n)),attribute:"dotsOffset",sliderMin:-100,sliderMax:100,responsive:"all",placeholder:"12"}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(r.AdvancedToolbarControl,{label:(0,g.__)("Dot Style",c.i18n),attribute:"dotsStyle",controls:[{value:"",title:(0,g.__)("Solid",c.i18n)},{value:"outline",title:(0,g.__)("Outline",c.i18n)}],isSmall:!0}),(0,l.createElement)(r.ColorPaletteControl,{label:(0,g.sprintf)((0,g.__)("%s Color",c.i18n),(0,g.__)("Dot",c.i18n)),attribute:"dotsColor",hover:"all"}),(0,l.createElement)(r.ColorPaletteControl,{label:(0,g.sprintf)((0,g.__)("%s Color",c.i18n),(0,g.__)("Active Dot",c.i18n)),attribute:"dotsActiveColor"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Size",c.i18n),(0,g.__)("Dot",c.i18n)),attribute:"dotsSize",sliderMin:1,sliderMax:40,placeholder:"8"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.__)("Border Radius",c.i18n),attribute:"dotsBorderRadius",sliderMax:e.dotsSize||8,min:0,placeholder:e.dotsSize||"8"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Gap",c.i18n),(0,g.__)("Dots",c.i18n)),attribute:"dotsGap",sliderMin:0,sliderMax:40,placeholder:"16",help:(e.dotsSize||8)+(e.dotsGap||16)<24?(0,g.sprintf)((0,g.__)("To improve accessibility, the clickable area of the dots will not go below %s.",c.i18n),"24px"):void 0}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Width",c.i18n),(0,g.__)("Active Dot",c.i18n)),attribute:"dotsActiveWidth",sliderMin:1,sliderMax:40,placeholder:"30"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,g.sprintf)((0,g.__)("%s Height",c.i18n),(0,g.__)("Active Dot",c.i18n)),attribute:"dotsActiveHeight",sliderMin:1,sliderMax:40,placeholder:e.dotsSize||"8"}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,g.sprintf)((0,g.__)("Show %s on mobile",c.i18n),(0,g.__)("dots",c.i18n)),checked:e.showDotsOnMobile,onChange:t=>e.setAttributes({showDotsOnMobile:t}),defaultValue:!0}))),(0,l.createElement)(n.ContentAlign.InspectorControls,null),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.BlockDiv.InspectorControls,{sizeControlSpacingProps:{enableMargin:!1}}),(0,l.createElement)(n.Separator.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(r.InspectorAdvancedControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Accessibility",c.i18n),id:"accessibility"},(0,l.createElement)(r.AdvancedTextControl,{label:(0,g.sprintf)((0,g.__)("%s label",c.i18n),(0,g.__)("Previous slide",c.i18n)),attribute:"ariaLabelPrev",placeholder:"Previous slide"}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,g.sprintf)((0,g.__)("%s label",c.i18n),(0,g.__)("Next slide",c.i18n)),attribute:"ariaLabelNext",placeholder:"Next slide"}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,g.sprintf)((0,g.__)("%s label",c.i18n),(0,g.__)("Slide",c.i18n)),attribute:"ariaLabelSlide",placeholder:"Slide %%d",help:(0,g.__)("Use %%d to show the slide number.",c.i18n)}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,g.sprintf)((0,g.__)("%s label",c.i18n),(0,g.__)("Slide N of N",c.i18n)),attribute:"ariaLabelSlideOf",placeholder:"Slide %%d of %%d",help:(0,g.__)("Use two %%d to show the slide number and the total slides. e.g. Slide 1 of 3.",c.i18n)}))),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-carousel"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),A=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(s))((e=>{var t,o;const{className:a,attributes:i,setAttributes:d}=e,m=(0,n.getRowClasses)(e.attributes),p=(0,n.getSeparatorClasses)(e.attributes),g=(0,n.getAlignmentClasses)(e.attributes),{hasInnerBlocks:v,numInnerBlocks:f}=(0,k.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor"),a=o(e.clientId).length;return{hasInnerBlocks:a>0,numInnerBlocks:a}}),[e.clientId]),[B,A]=r.ColumnInnerBlocks.useContext(),E=""===i.carouselType?"slide":i.carouselType,T=u()([a,"stk-block-carousel",m,p,A,{"stk--is-slide":"slide"===E,"stk--is-fade":"fade"===E,"stk--infinite-scroll":"slide"===E&&i.infiniteScroll,"stk--hide-mobile-arrows":!1===i.showArrowsOnMobile,"stk--hide-mobile-dots":!1===i.showDotsOnMobile,"stk--arrows-outside":"outside"===i.arrowPosition,"stk--dots-outline":"outline"===i.dotsStyle,[`stk--arrows-justify-${i.arrowJustify||"space-between"}`]:i.arrowJustify||"space-between",[`stk--arrows-align-${i.arrowAlign||"center"}`]:i.arrowAlign||"center"}]),x=u()(["stk-inner-blocks",g,"stk-block-content","stk-block-carousel__slider-wrapper"],(0,n.getContentAlignmentClasses)(e.attributes)),I=(0,b.useDeviceType)(),[H,z]=(0,l.useState)(1),[M,O]=(0,l.useState)(1),[N,D]=(0,l.useState)(0),[R,L]=(0,l.useState)({next:y,prev:C}),U=(0,l.useRef)(),P=(0,l.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=i.slidesToShow||1;"slide"===E&&("Tablet"!==I&&"Mobile"!==I||!i.slidesToShowTablet||(G=i.slidesToShowTablet),"Mobile"===I&&i.slidesToShowMobile&&(G=i.slidesToShowMobile),V||(F-=G-1)),(0,l.useEffect)((()=>{L(V?{next:C,prev:y}:{next:y,prev:C})}),[V]),(0,l.useEffect)((()=>{D(V&&"slide"===E?G-1:0)}),[G,E]);const W=e=>{if(z(e),O(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,l.useEffect)((()=>{U.current.scrollLeft=0,z(1),O(1)}),[E]),(0,l.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 l=a+1,n=Math.abs(o.offsetLeft-t);return n<=e.offsetDiff?{slide:l,offsetDiff:n}:e}),{slide:1,offsetDiff:1e3});P.current||(z(o),O(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!==H&&(P.current||(z(t),O(t)))}}}),1e3);return()=>clearInterval(e)}),[E,H]),(0,l.useEffect)((()=>{H>F&&z(F)}),[F,H]);const q=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_,{carouselType:E,setAttributes:d,infiniteScroll:i.infiniteScroll,autoplay:i.autoplay,showArrows:i.showArrows,arrowIconPrev:i.arrowIconPrev,arrowIconNext:i.arrowIconNext,arrowPosition:i.arrowPosition,arrowJustify:i.arrowJustify,arrowHeight:i.arrowHeight,arrowWidth:i.arrowWidth,showArrowsOnMobile:i.showArrowsOnMobile,showDots:i.showDots,dotsSize:i.dotsSize,dotsGap:i.dotsGap,showDotsOnMobile:i.showDotsOnMobile,defaultIcon:R}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:T},q&&(0,l.createElement)("style",{key:"block-css"},q),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-carousel"}),!v&&(0,l.createElement)(r.GroupPlaceholder,null),(0,l.createElement)(n.Separator,null,(0,l.createElement)("div",{className:"stk-block-carousel__content-wrapper"},(0,l.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,l.createElement)("style",null,(0,h.range)(F).map((e=>`.stk-${i.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-${i.uniqueId}-column > .stk-block-carousel__slider > .block-editor-inner-blocks > .block-editor-block-list__layout > [data-type="stackable/column"]:nth-child(${H}) {\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,l.createElement)("div",{className:"stk-block-carousel__slider",ref:U,role:"list"},(0,l.createElement)(r.ColumnInnerBlocks,{providerValue:B,orientation:"horizontal",template:e.attributes.templateLock?void 0:w,allowedBlocks:S,renderAppender:!1,templateLock:e.attributes.templateLock||!1})),i.showArrows&&(0,l.createElement)("div",{className:"stk-block-carousel__buttons"},(0,l.createElement)("button",{className:"stk-block-carousel__button stk-block-carousel__button__prev",onClick:e=>{e.preventDefault();let t=H-1;t<=N&&(t=F),W(t)}},(0,l.createElement)(r.SvgIcon,{value:i.arrowIconPrev||R.prev})),(0,l.createElement)("button",{className:"stk-block-carousel__button stk-block-carousel__button__next",onClick:e=>{null==e||e.preventDefault();let t=H+1;t>F&&(t=N+1),W(t)}},(0,l.createElement)(r.SvgIcon,{value:i.arrowIconNext||R.next})))),i.showDots&&(0,l.createElement)("div",{className:"stk-block-carousel__dots",role:"list","data-label":"Slide %d"},(0,h.range)(F).map((e=>{if(V&&e<N)return null;const t=u()("stk-block-carousel__dot",{"stk-block-carousel__dot--active":e+1===M});return(0,l.createElement)("div",{key:e,role:"listitem"},(0,l.createElement)("button",{className:t,onClick:t=>{t.preventDefault(),W(e+1)}}))})))))),e.isHovered&&v&&(0,l.createElement)(n.MarginBottom,null))}));var E=o(7462),T=o(78),x=o(3882);const I=e=>{const{attributes:t}=e,o=(0,n.getRowClasses)(e.attributes),a=(0,n.getSeparatorClasses)(e.attributes),i=(0,n.getAlignmentClasses)(e.attributes),s=(0,n.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,x.applyFilters)("stackable.carousel.save.contentClassNames",[[o,"stk-inner-blocks",i,"stk-block-content","stk-block-carousel__slider-wrapper"],(0,n.getContentAlignmentClasses)(e.attributes)],e));return(0,l.createElement)(n.BlockDiv.Content,{className:c,attributes:t,version:e.version,"data-slides-to-show":t.slidesToShow},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,l.createElement)(n.Separator.Content,{attributes:t},(0,l.createElement)("div",{className:"stk-block-carousel__content-wrapper"},(0,l.createElement)("div",{className:d},(0,l.createElement)("div",(0,E.Z)({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",tabIndex:0},(0,x.applyFilters)("stackable.carousel.save.slider-props",{},e)),(0,l.createElement)(T.InnerBlocks.Content,null)),t.showArrows&&(0,l.createElement)("div",{className:"stk-block-carousel__buttons"},(0,l.createElement)("button",{className:"stk-block-carousel__button stk-block-carousel__button__prev","aria-label":t.ariaLabelPrev||"Previous slide"},(0,l.createElement)(r.SvgIcon.Content,{value:t.arrowIconPrev||C})),(0,l.createElement)("button",{className:"stk-block-carousel__button stk-block-carousel__button__next","aria-label":t.ariaLabelNext||"Next slide"},(0,l.createElement)(r.SvgIcon.Content,{value:t.arrowIconNext||y})))),t.showDots&&(0,l.createElement)("div",{className:"stk-block-carousel__dots",role:"list","data-label":t.ariaLabelSlide||"Slide %%d"}))))},H=(0,p.compose)((0,m.withVersion)(c.version))(I),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"}');(0,x.addFilter)("stackable.carousel.save.slider-props","stackable/3.19.0",((e,t)=>(0,v.semverCompare)(t.version,"<","3.19.0")?{...e,tabIndex:void 0}:e));const M=[{attributes:{...f("3.18.1"),anchor:{attribute:"id",selector:"*",source:"attribute",type:"string"}},save:e=>(e.version="3.18.1",I(e))},{attributes:f("3.16.2"),save:(0,m.withVersion)("3.16.2")(I),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateShadowColor.isEligible("topSeparator%s")(e),l=n.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||l},migrate:e=>{let t={...e};return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockHeight.migrate(t),t=n.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:f("3.15.3"),save:(0,m.withVersion)("3.15.3")(I),isEligible:e=>{const t=n.deprecateBlockHeight.isEligible(e),o=n.deprecateColumnAndRowGap.isEligible("%s")(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockHeight.migrate(t),t=n.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:f("3.12.11"),save:(0,m.withVersion)("3.12.11")(I),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.columnSpacing)||"string"==typeof(null==e?void 0:e.columnSpacingTablet)||"string"==typeof(null==e?void 0:e.columnSpacingMobile)||"string"==typeof(null==e?void 0:e.columnGap)||"string"==typeof(null==e?void 0:e.columnGapTablet)||"string"==typeof(null==e?void 0:e.columnGapMobile)||"string"==typeof(null==e?void 0:e.rowGap)||"string"==typeof(null==e?void 0:e.rowGapTablet)||"string"==typeof(null==e?void 0:e.rowGapMobile))return!1;const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateShadowColor.isEligible("topSeparator%s")(e),l=n.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||l},migrate:e=>{let t={...e};return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t}},{attributes:f("3.11.9"),save:(0,m.withVersion)("3.11.9")(I),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=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}}];var O=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:A,save:H,substitute:O.default}},459:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/carousel",transform:(e,t)=>["stackable/columns",{...e},t]},l=a},5325:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>H});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i={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 r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.addBlockStyles("columnSpacing",[{selector:".%s-container",styleRule:"marginTop",attrName:"columnSpacing",key:"columnSpacing-top",responsive:"all",hasUnits:"px",valuePreCallback:i.marginTop.valuePreCallback},{selector:".%s-container",styleRule:"marginRight",attrName:"columnSpacing",key:"columnSpacing-right",responsive:"all",hasUnits:"px",valuePreCallback:i.marginRight.valuePreCallback},{selector:".%s-container",styleRule:"marginBottom",attrName:"columnSpacing",key:"columnSpacing-bottom",responsive:"all",hasUnits:"px",valuePreCallback:i.marginBottom.valuePreCallback},{selector:".%s-container",styleRule:"marginLeft",attrName:"columnSpacing",key:"columnSpacing-left",responsive:"all",hasUnits:"px",valuePreCallback:i.marginLeft.valuePreCallback},{renderIn:"edit",selector:".%s-container",styleRule:"--column-spacing-top",attrName:"columnSpacing",key:"columnSpacing-top-edit-for-highlight",responsive:"all",hasUnits:"px",valuePreCallback:i.marginTop.valuePreCallback},{renderIn:"edit",selector:".%s-container",styleRule:"--column-spacing-right",attrName:"columnSpacing",key:"columnSpacing-right-edit-for-highlight",responsive:"all",hasUnits:"px",valuePreCallback:i.marginRight.valuePreCallback},{renderIn:"edit",selector:".%s-container",styleRule:"--column-spacing-bottom",attrName:"columnSpacing",key:"columnSpacing-bottom-edit-for-highlight",responsive:"all",hasUnits:"px",valuePreCallback:i.marginBottom.valuePreCallback},{renderIn:"edit",selector:".%s-container",styleRule:"--column-spacing-left",attrName:"columnSpacing",key:"columnSpacing-left-edit-for-highlight",responsive:"all",hasUnits:"px",valuePreCallback:i.marginLeft.valuePreCallback}]),n.Alignment.addStyles(s,{columnAlignSelectorEditCallback:(e,t,o)=>`[data-block="${o}"]`}),n.BlockDiv.addStyles(s),n.Column.addStyles(s),n.ContainerDiv.addStyles(s,{sizeSelector:".%s-container",sizeHorizontalAlignRule:"margin",sizeVerticalAlignRule:"justifyContent",sizeVerticalAlignSelector:".%s-inner-blocks"}),n.Advanced.addStyles(s),n.Transform.addStyles(s),n.EffectsAnimations.addStyles(s);const c=s;var d=o(4184),u=o.n(d),b=o(910),m=o(8333),p=o(9783),g=o(3749),k=o(78),h=o(8003),v=o(3882),C=o(3284);const y=(0,l.memo)((e=>(0,l.createElement)(k.InnerBlocks.ButtonBlockAppender,e))),f=(0,l.memo)((e=>{var t;const{getPlaceholder:o}=(0,m.useBlockLayoutDefaults)(),a=(null===(t=(0,m.usePresetControls)("spacingSizes"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(r.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":o("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"},marks:a})),(0,l.createElement)(n.Alignment.InspectorControls,{hasContainerSize:!0,hasColumnAlignment:!0}),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.BlockLink.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-column"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null),(0,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(r.AdvancedToggleControl,{label:(0,h.__)("Align Last Block to Bottom",b.i18n),checked:e.alignLastBlockToBottom,onChange:t=>e.setAttributes({alignLastBlockToBottom:t})})),(0,l.createElement)(n.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}))})),B=(0,g.compose)(p.withBlockWrapperIsHovered,p.withQueryLoopContext,p.withBlockAttributeContext,(0,p.withBlockStyleContext)(c))((e=>{const{clientId:t,className:o,isHovered:a}=e,{hasInnerBlocks:i,isOnlyBlock:s,useZeroColumnSpacing:d,parentBlock:m}=(0,C.useSelect)((e=>{const{getBlockOrder:o,getBlockRootClientId:a,getBlock:l}=e("core/block-editor"),n=a(t),r=l(n);return{hasInnerBlocks:o(t).length>0,rootClientId:n,isOnlyBlock:1===o(n).length,parentBlock:r,useZeroColumnSpacing:!["stackable/timeline"].includes(r.name)}}),[t]),p=(0,n.getBlockOrientation)(e.attributes),[g,h]=(0,n.getColumnClasses)(e.attributes),B=(0,n.getAlignmentClasses)(e.attributes),S=(0,v.applyFilters)("stackable.block.column.allowed-inner-blocks",void 0,e),w=u()([o,"stk-block-column",g]),_=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}]),A=(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)(f,{isOnlyBlock:s,useZeroColumnSpacing:d,alignLastBlockToBottom:e.attributes.alignLastBlockToBottom,setAttributes:e.setAttributes}),A&&(0,l.createElement)("style",{key:"block-css"},A),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-column"}),(0,l.createElement)(n.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,l.createElement)(n.Linking,{show:a}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:w,"data-v":e.attributes.version||4},(0,l.createElement)(n.ContainerDiv,{className:_},(0,l.createElement)(k.InnerBlocks,{allowedBlocks:S,templateLock:e.attributes.templateLock||!1,orientation:p,renderAppender:i?void 0:y})))))}));var S=o(1991),w=o.n(S);const _=e=>{const{attributes:t}=e,[o,a]=(0,n.getColumnClasses)(e.attributes),r=(0,n.getAlignmentClasses)(e.attributes),i=(0,n.getResponsiveClasses)(e.attributes),s=w()((0,v.applyFilters)("stackable.column.save.blockClassNames",[e.className,"stk-block-column",o,i],e)),c=w()([a,"stk-block-column__content"]),d=(0,v.applyFilters)("stackable.column.save.innerClassNames",w()([r,"stk-block-content","stk-inner-blocks",`stk-${t.uniqueId}-inner-blocks`,{"stk--align-last-block-to-bottom":e.attributes.alignLastBlockToBottom}]),e);return(0,l.createElement)(n.BlockDiv.Content,{className:s,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,l.createElement)(n.ContainerDiv.Content,{className:c,attributes:t},(0,l.createElement)("div",{className:d},(0,l.createElement)(k.InnerBlocks.Content,null)),(0,l.createElement)(n.BlockLink.Content,{attributes:t})))},A=(0,g.compose)((0,p.withVersion)(b.version))(_);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 n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.ContainerDiv.addAttributes(t),n.Column.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.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")?w()(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")?w()(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.16.2"),save:(0,p.withVersion)("3.16.2")(_),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:(e,t)=>{const o=e.version<4||void 0===e.version;let a={...e};return o&&(a={...a,version:4,className:w()(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=n.deprecateContainerBackgroundColorOpacity.migrate(a),a=n.deprecateBlockBackgroundColorOpacity.migrate(a),a=n.deprecateBlockShadowColor.migrate(a),a=n.deprecateContainerShadowColor.migrate(a),a=n.deprecateBlockHeight.migrate(a),a=n.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),[a,t]}},{attributes:T("3.15.3"),save:(0,p.withVersion)("3.15.3")(_),isEligible:e=>{const t=n.deprecateBlockHeight.isEligible(e),o=n.deprecateInnerBlockRowGapAndContainerHeight.isEligible("%s")(e);return t||o},migrate:(e,t)=>{const o=e.version<4||void 0===e.version;let a={...e};return o&&(a={...a,version:4,className:w()(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=n.deprecateContainerBackgroundColorOpacity.migrate(a),a=n.deprecateBlockBackgroundColorOpacity.migrate(a),a=n.deprecateBlockShadowColor.migrate(a),a=n.deprecateContainerShadowColor.migrate(a),a=n.deprecateBlockHeight.migrate(a),a=n.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),[a,t]}},{attributes:T("3.12.11"),save:(0,p.withVersion)("3.12.11")(_),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.innerBlockRowGap)||"string"==typeof(null==e?void 0:e.innerBlockRowGapTablet)||"string"==typeof(null==e?void 0:e.innerBlockRowGapMobile)||"string"==typeof(null==e?void 0:e.containerHeight)||"string"==typeof(null==e?void 0:e.containerHeightTablet)||"string"==typeof(null==e?void 0:e.containerHeightMobile))return!1;const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:(e,t)=>{const o=e.version<4||void 0===e.version;let a={...e};return o&&(a={...a,version:4,className:w()(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=n.deprecateContainerBackgroundColorOpacity.migrate(a),a=n.deprecateBlockBackgroundColorOpacity.migrate(a),a=n.deprecateBlockShadowColor.migrate(a),a=n.deprecateContainerShadowColor.migrate(a),[a,t]}},{attributes:T("3.11.9"),save:(0,p.withVersion)("3.11.9")(_),isEligible:e=>{const t=n.deprecateContainerBackgroundColorOpacity.isEligible(e),o=n.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},migrate:(e,t)=>{const o=e.version<4||void 0===e.version;let a={...e};return o&&(a={...a,version:4,className:w()(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=n.deprecateContainerBackgroundColorOpacity.migrate(a),a=n.deprecateBlockBackgroundColorOpacity.migrate(a),a=n.deprecateBlockShadowColor.migrate(a),a=n.deprecateContainerShadowColor.migrate(a),[a,t]}},{attributes:T("3.7.9"),save:(0,p.withVersion)("3.7.9")(_),migrate:(e,t)=>{let o={...e,version:4,className:w()(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=n.deprecateContainerBackgroundColorOpacity.migrate(o),o=n.deprecateBlockBackgroundColorOpacity.migrate(o),o=n.deprecateBlockShadowColor.migrate(o),o=n.deprecateContainerShadowColor.migrate(o),[o,t]}},{attributes:T("3.6.6"),save:(0,p.withVersion)("3.6.6")(_)},{attributes:T("3.4.2"),save:(0,p.withVersion)("3.4.2")(_)}],H={...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:A}},8107:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>L});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});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.ContainerDiv.addStyles(i,{sizeSelector:".%s-column",sizeVerticalAlignRule:"justifyContent",sizeVerticalAlignSelector:".%s-column"}),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i),n.Separator.addStyles(i),n.Columns.addStyles(i);const s=i;var c,d=o(910),u=o(4184),b=o.n(u),m=o(9783),p=o(7545),g=o(3749),k=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,l.memo)((()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.Columns.InspectorControls,null),(0,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(r.ControlSeparator,null)),(0,l.createElement)(n.ContentAlign.InspectorControls,null),(0,l.createElement)(n.Alignment.InspectorControls,{hasContainerSize:!0,containerSizePriority:1,hasContainerHeight:!1,hasColumnJustify:!0,hasRowAlignment:!0}),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Separator.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-columns"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),B=(0,g.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(s))((e=>{const{clientId:t,className:o}=e,a=(0,n.getRowClasses)(e.attributes),i=(0,n.getSeparatorClasses)(e.attributes),c=(0,n.getAlignmentClasses)(e.attributes),[u,m]=r.ColumnInnerBlocks.useContext(),{hasInnerBlocks:g}=(0,v.useSelect)((e=>{const{getBlockOrder:o}=e("core/block-editor");return{hasInnerBlocks:o(t).length>0}}),[t]),k=b()((0,h.applyFilters)("stackable.columns.edit.blockClassNames",[o,"stk-block-columns",a,i,m],e)),y=(0,p.useQueryLoopInstanceId)(e.attributes.uniqueId),B=b()(["stk-inner-blocks",c,"stk-block-content"],(0,n.getContentAlignmentClasses)(e.attributes,"column",y)),S=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,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)(f,null),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:k,enableVariationPicker:!0},S&&(0,l.createElement)("style",{key:"block-css"},S),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-columns"}),!g&&(0,l.createElement)(r.GroupPlaceholder,null),(0,l.createElement)(n.Separator,null,(0,l.createElement)("div",{className:B,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},(0,l.createElement)(r.ColumnInnerBlocks,{providerValue:u,orientation:"horizontal",allowedBlocks:C,renderAppender:!1,templateLock:e.attributes.templateLock||!1})))),e.isHovered&&g&&(0,l.createElement)(n.MarginBottom,null))}));var S=o(1991),w=o.n(S),_=o(78);const A=e=>{const{attributes:t}=e,o=(0,n.getRowClasses)(e.attributes),a=(0,n.getSeparatorClasses)(e.attributes),r=(0,n.getAlignmentClasses)(e.attributes),i=(0,n.getResponsiveClasses)(e.attributes),s=w()([e.className,"stk-block-columns",i,a]),c=w()((0,h.applyFilters)("stackable.columns.save.contentClassNames",[[o,"stk-inner-blocks",r,"stk-block-content"],(0,n.getContentAlignmentClasses)(e.attributes)],e));return(0,l.createElement)(n.BlockDiv.Content,{className:s,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,l.createElement)(n.Separator.Content,{attributes:t},(0,l.createElement)("div",{className:c},(0,l.createElement)(_.InnerBlocks.Content,null))))},E=(0,m.withVersion)(d.version)(A),T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new p.AttributeObject;return n.BlockDiv.addAttributes(t),n.Columns.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.Separator.addAttributes(t),n.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 H=o(8085),z=o(378);const M={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],l=[],n={uniqueId:(0,p.createUniqueClass)(a.clientId)};for(const[e,t]of Object.entries(a.attributes))switch(e){case"align":e&&(n.align=t,n.innerBlockContentAlign="align"+t);break;case"style":{const e=(0,H.get)(t,"color.background");e&&(n.hasBackground=!0,n.blockBackgroundColor=e);break}case"backgroundColor":t&&(n.hasBackground=!0)}for(const e of a.innerBlocks){const a={uniqueId:(0,p.createUniqueClass)(e.clientId)},n=(0,H.get)(e.attributes,"style.spacing.padding");var t,o;n&&(a.containerPadding={},a.containerPadding.top=parseInt(n.top),a.containerPadding.right=parseInt(n.right),a.containerPadding.bottom=parseInt(n.bottom),a.containerPadding.left=parseInt(n.left),a.containerPaddingUnit=(null===(t=n.top)||void 0===t||null===(o=t.match(/([a-z]*)$/g))||void 0===o?void 0:o[0])||""),l.push((0,z.createBlock)("stackable/column",a,e.innerBlocks))}return(0,z.createBlock)("stackable/columns",n,l)}const a=e.map((e=>(0,z.createBlock)(e.name,e.attributes,e.innerBlocks))),l=(0,z.createBlock)("stackable/column",{},a),n=(0,z.createBlock)("stackable/columns",{},[l]);return n.attributes.uniqueId=(0,p.createUniqueClass)(n.clientId),n},isMatch:e=>{const{length:t}=e;return t&&t<=10}}]};var O=o(7462);o(7294);const N=[{name:"one-column-full",title:(0,k.__)("100",d.i18n),description:(0,k.__)("One column",d.i18n),icon:function(e){return(0,l.createElement)("svg",(0,O.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,k.__)("50 / 50",d.i18n),description:(0,k.__)("Two columns; equal split",d.i18n),icon:function(e){return(0,l.createElement)("svg",(0,O.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,k.__)("30 / 70",d.i18n),description:(0,k.__)("Two columns; one-third, two-thirds split",d.i18n),icon:function(e){return(0,l.createElement)("svg",(0,O.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,k.__)("70 / 30",d.i18n),description:(0,k.__)("Two columns; two-thirds, one-third split",d.i18n),icon:function(e){return(0,l.createElement)("svg",(0,O.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,k.__)("33 / 33 / 33",d.i18n),description:(0,k.__)("Three columns; equal split",d.i18n),icon:function(e){return(0,l.createElement)("svg",(0,O.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,k.__)("25 / 50 / 25",d.i18n),description:(0,k.__)("Three columns; wide center column",d.i18n),icon:function(e){return(0,l.createElement)("svg",(0,O.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,k.__)("25 / 25 / 25 / 25",d.i18n),description:(0,k.__)("Four columns; equal split",d.i18n),icon:function(e){return(0,l.createElement)("svg",(0,O.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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"]}],D={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,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.",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,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.",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 R=[{attributes:T("3.16.2"),save:(0,m.withVersion)("3.16.2")(A),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateShadowColor.isEligible("topSeparator%s")(e),l=n.deprecateShadowColor.isEligible("bottomSeparator%s")(e),r=!!e.columnFit;return t||o||a||l||r},migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t=n.deprecateBlockHeight.migrate(t),t=n.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:T("3.15.3"),save:(0,m.withVersion)("3.15.3")(A),isEligible:e=>{const t=!!e.columnFit,o=n.deprecateBlockHeight.isEligible(e),a=n.deprecateColumnAndRowGap.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t=n.deprecateBlockHeight.migrate(t),t=n.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:T("3.12.11"),save:(0,m.withVersion)("3.12.11")(A),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.columnSpacing)||"string"==typeof(null==e?void 0:e.columnSpacingTablet)||"string"==typeof(null==e?void 0:e.columnSpacingMobile)||"string"==typeof(null==e?void 0:e.columnGap)||"string"==typeof(null==e?void 0:e.columnGapTablet)||"string"==typeof(null==e?void 0:e.columnGapMobile)||"string"==typeof(null==e?void 0:e.rowGap)||"string"==typeof(null==e?void 0:e.rowGapTablet)||"string"==typeof(null==e?void 0:e.rowGapMobile))return!1;const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateShadowColor.isEligible("topSeparator%s")(e),l=n.deprecateShadowColor.isEligible("bottomSeparator%s")(e),r=!!e.columnFit;return t||o||a||l||r},migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.11.9"),save:(0,m.withVersion)("3.11.9")(A),isEligible:e=>{const t=n.deprecateContainerBackgroundColorOpacity.isEligible(e),o=n.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=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.7.9"),save:(0,m.withVersion)("3.7.9")(A),isEligible:e=>!!e.columnFit,migrate:e=>{let t={...e,columnFit:"",columnFitAlign:"",columnJustify:e.columnFit?e.columnFitAlign||"flex-start":""};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("topSeparator%s")(t),t=n.deprecateShadowColor.migrate("bottomSeparator%s")(t),t}},{attributes:T("3.6.1"),save:(0,m.withVersion)("3.6.1")(A)}],L={...I,icon:a.ColumnsIcon,attributes:x,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkLayoutReset:!1,stkSaveBlockStyle:!1,stkDefaultTab:"layout",spacing:!0},example:D,deprecated:R,transforms:M,variations:N,edit:B,save:E}},1875:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>E});var a=o(9467),l=o(7462),n=o(2610),r=o(9384),i=o(7200);const s=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.Alignment.addStyles(s),r.BlockDiv.addStyles(s),r.Advanced.addStyles(s),r.Transform.addStyles(s),r.Typography.addStyles(s,{selector:".stk-block-count-up__text",hoverSelector:".stk-block-count-up__text:hover"}),r.EffectsAnimations.addStyles(s);const c=s;var d=o(910),u=o(4184),b=o.n(u),m=o(9783),p=o(3749),g=o(8003);const k=(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,g.__)("Counter",d.i18n),id:"count-up",initialOpen:!0},(0,n.createElement)(i.AdvancedRangeControl,{label:(0,g.__)("Duration (ms)",d.i18n),attribute:"duration",min:100,sliderMax:5e3,step:100,placeholder:"1000"}))),(0,n.createElement)(r.Typography.InspectorControls,(0,l.Z)({},e,{hasTextTag:!1,hasTextShadow:!0,initialOpen:!1})),(0,n.createElement)(r.Alignment.InspectorControls,null),(0,n.createElement)(r.BlockDiv.InspectorControls,null),(0,n.createElement)(r.Advanced.InspectorControls,null),(0,n.createElement)(r.Transform.InspectorControls,null),(0,n.createElement)(r.EffectsAnimations.InspectorControls,null),(0,n.createElement)(r.CustomAttributes.InspectorControls,null),(0,n.createElement)(r.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-count-up"}),(0,n.createElement)(r.Responsive.InspectorControls,null),(0,n.createElement)(r.ConditionalDisplay.InspectorControls,null)))),h=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(c))((e=>{const{className:t}=e,o=(0,r.getTypographyClasses)(e.attributes),a=(0,r.getAlignmentClasses)(e.attributes),l=b()([t,"stk-block-count-up"]),s=b()(["stk-block-count-up__text",o,a]),u=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,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)(k,{blockState:e.blockState}),u&&(0,n.createElement)("style",{key:"block-css"},u),(0,n.createElement)(r.CustomCSS,{mainBlockClass:"stk-block-count-up"}),(0,n.createElement)(r.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:l},(0,n.createElement)(r.Typography,{tagName:"div",placeholder:(0,g.__)("1,234.56",d.i18n),className:s})),e.isHovered&&(0,n.createElement)(r.MarginBottom,null))})),v=e=>{const{className:t,attributes:o}=e,a=(0,r.getResponsiveClasses)(e.attributes),l=(0,r.getTypographyClasses)(e.attributes),i=(0,r.getAlignmentClasses)(e.attributes),s=b()([t,"stk-block-count-up",a]),c=b()(["stk-block-count-up__text",l,i]),d=""===o.duration?null:o.duration;return(0,n.createElement)(r.BlockDiv.Content,{className:s,attributes:o,version:e.version},o.generatedCss&&(0,n.createElement)("style",null,o.generatedCss),(0,n.createElement)(r.CustomCSS.Content,{attributes:o}),(0,n.createElement)(r.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 r.Alignment.addAttributes(t),r.BlockDiv.addAttributes(t),r.Style.addAttributes(t),r.EffectsAnimations.addAttributes(t),r.CustomAttributes.addAttributes(t),r.CustomCSS.addAttributes(t),r.MarginBottom.addAttributes(t),r.Responsive.addAttributes(t),r.ConditionalDisplay.addAttributes(t),r.Advanced.addAttributes(t),r.Transform.addAttributes(t),r.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"}'),w={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,g.__)("1,234,567",d.i18n),textTag:"p",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",contentAlign:"center"},innerBlocks:[]},_=[{attributes:f("3.16.2"),save:(0,m.withVersion)("3.16.2")(v),isEligible:e=>{const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e),a=r.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t=r.deprecateTypographyFontSize.migrate("%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:f("3.15.3"),save:(0,m.withVersion)("3.15.3")(v),isEligible:e=>{const t=r.deprecateTypographyFontSize.isEligible("%s")(e),o=r.deprecateBlockHeight.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t=r.deprecateTypographyFontSize.migrate("%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:f("3.12.11"),save:(0,m.withVersion)("3.12.11")(v),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e),a=r.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:f("3.11.9"),save:(0,m.withVersion)("3.11.9")(v),isEligible:e=>{const t=r.deprecateContainerBackgroundColorOpacity.isEligible(e),o=r.deprecateBlockBackgroundColorOpacity.isEligible(e),a=r.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:f("3.7.9"),save:(0,m.withVersion)("3.7.9")(v),migrate:e=>{let t=r.deprecateContainerBackgroundColorOpacity.migrate(e);return t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),r.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var A=o(5531);const E={...S,icon:a.CountUpIcon,attributes:B,supports:{anchor:!0,align:!0,spacing:!0},example:w,deprecated:_,edit:h,save:C,substitute:A.default}},5531:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});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"}}}}]},l=a},5161:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>P,timezones:()=>v});var a=o(9467),l=o(2610),n=o(8333),r=o(7200),i=o(910),s=o(8003);const c=[{value:":",title:(0,s.__)("Colon",i.i18n)},{value:"|",title:(0,s.__)("Line",i.i18n)}],d=e=>{const{attributes:t}=e;return(0,l.createElement)("div",{className:"stk-block-countdown__divider-wrapper"},":"===t.dividerType&&(0,l.createElement)("div",{className:"stk-block-countdown__divider-colon"},":"),"|"===t.dividerType&&(0,l.createElement)("div",{className:"stk-block-countdown__divider-line"}))};d.Content=e=>{const{attributes:t}=e;return(0,l.createElement)("div",{className:"stk-block-countdown__divider-wrapper"},":"===t.dividerType&&(0,l.createElement)("div",{className:"stk-block-countdown__divider-colon"},":"),"|"===t.dividerType&&(0,l.createElement)("div",{className:"stk-block-countdown__divider-line"}))},d.InspectorControls=()=>{const e=(0,n.useBlockAttributesContext)((e=>e.hasDivider)),t=(0,n.useBlockAttributesContext)((e=>e.dividerType)),o=(0,n.useBlockSetAttributesContext)();return(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,s.__)("Separator",i.i18n),id:"divider",hasToggle:!0,checked:e,onChange:e=>o({hasDivider:e})},(0,l.createElement)(r.AdvancedToolbarControl,{controls:c,attribute:"dividerType",fullwidth:!0,default:":",isSmall:!1}),":"===t&&(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Size",i.i18n),min:1,sliderMin:1,sliderMax:100,attribute:"dividerSizeColon",placeholder:"45"}),":"===t&&(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Top Offset",i.i18n),min:-50,sliderMin:-50,sliderMax:50,attribute:"dividerTopOffset",placeholder:"-12"}),"|"===t&&(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Size",i.i18n),min:1,max:100,sliderMin:1,sliderMax:100,attribute:"dividerSizeLine",placeholder:"50"}),(0,l.createElement)(r.ColorPaletteControl,{label:(0,s.__)("Color",i.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 r.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,g=86400,k=(e,t)=>t&&e<10?"0"+e:e,h=e=>{const[t,o]=(0,l.useState)("");return(0,l.useEffect)((()=>{e.datetime||o(0);const t=isNaN(e.datetime)?Date.parse(e.datetime):e.datetime,a=((e,t,o,a)=>{let l=0;return isNaN(e)||(l+=e*g),isNaN(t)||(l+=t*p),isNaN(o)||(l+=60*o),isNaN(a)||(l+=1*a),l+Math.floor(Date.now()/1e3)})(e.daysLeft,e.hoursLeft,e.minutesLeft,e.secondsLeft),l=setInterval((()=>{const l=""!==e.timezone?{timeZone:e.timezone}:"";let n="dueDate"===e.countdownType?Math.floor(t/1e3-Math.floor(Date.parse((new Date).toLocaleString("en-US",l))/1e3)):a-Math.floor(Date.now()/1e3);switch(n<=0&&(n=0),e.type){case"days":o(k(Math.floor(n/g),e.isDoubleDigit));break;case"hours":o(k(Math.floor(n%g/p),e.isDoubleDigit));break;case"minutes":o(k(Math.floor(n%p/60),e.isDoubleDigit));break;default:o(k(Math.floor(n%60/1),e.isDoubleDigit))}}),1e3);return()=>{clearInterval(l)}}),[e.datetime,e.countdownType,e.daysLeft,e.hoursLeft,e.minutesLeft,e.secondsLeft,e.isDoubleDigit,e.timezone]),(0,l.createElement)("div",{className:e.className},t)};h.Content=e=>(0,l.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),w=o(78),_=o(3882);const A=[{value:"dueDate",title:(0,s.__)("Due Date",i.i18n)},{value:"recurring",title:(0,s.__)("Recurring",i.i18n)}],E=[{label:(0,s.__)("None",i.i18n),value:""},{label:(0,s.__)("Hide Block",i.i18n),value:"hide"},{label:(0,s.__)("Display Message Upon Expiration",i.i18n),value:"showMessage"}],T=e=>{if(e.contentAlignment)return"stk-block-countdown--aligned"},x=(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,s.__)("General",i.i18n),id:"countdown",initialOpen:!0},(0,l.createElement)(r.AdvancedToolbarControl,{controls:A,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,l.createElement)("h3",{className:"components-base-control__label"},"dueDate"===e.countdownType?(0,s.__)("End Date",i.i18n):(0,s.__)("Start Date",i.i18n)),(0,l.createElement)(S.DateTimePicker,{currentDate:e.date,is12Hour:!0,onChange:t=>{e.setAttributes({date:t.slice(0,t.length-3)})},__nextRemoveResetButton:!0}),(0,l.createElement)(r.AdvancedSelectControl,{label:(0,s.__)("Timezone",i.i18n),options:v,attribute:"timezone",allowReset:!1}),"dueDate"===e.countdownType&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AdvancedSelectControl,{label:(0,s.__)("Action on Expiration",i.i18n),options:E,defaultValue:"",attribute:"actionOnExpiration"}),"showMessage"===e.actionOnExpiration),"recurring"===e.countdownType&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)("h3",{className:"components-base-control__label"},(0,s.__)("Countdown Duration",i.i18n)),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Days",i.i18n),min:0,max:364,attribute:"daysLeft"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Hours",i.i18n),min:0,max:23,attribute:"hoursLeft"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Minutes",i.i18n),min:0,max:59,attribute:"minutesLeft"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Seconds",i.i18n),min:0,max:59,attribute:"secondsLeft"}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Restart Countdown After no. of Hours",i.i18n),min:0,maxSlider:10,attribute:"restartInterval"})),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,s.__)("Enable Double Digit",i.i18n),attribute:"isDoubleDigitHidden",defaultValue:!1}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Box Gap",i.i18n),min:0,sliderMax:50,attribute:"boxGap",placeholder:"16"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,s.__)("Label Top Margin",i.i18n),min:0,sliderMax:50,attribute:"labelMarginTop",placeholder:"8"}))),(0,l.createElement)(u.Typography.InspectorControls,{label:(0,s.__)("Digits",i.i18n),attrNameTemplate:"digit%s",hasTextTag:!1,hasTextContent:!1,initialOpen:!1}),(0,l.createElement)(u.Typography.InspectorControls,{label:(0,s.__)("Labels",i.i18n),attrNameTemplate:"label%s",hasTextTag:!1,hasTextContent:!1,initialOpen:!1}),(0,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(r.AlignButtonsControl,{label:(0,s.__)("Content Alignment",i.i18n),responsive:"all",attribute:"contentAlignment"})),(0,l.createElement)(d.InspectorControls,null),(0,l.createElement)(u.BlockDiv.InspectorControls,null),(0,l.createElement)(u.Advanced.InspectorControls,null),(0,l.createElement)(u.Transform.InspectorControls,null),(0,l.createElement)(u.ContainerDiv.InspectorControls,{hasContentVerticalAlign:!0,sizeSelector:".stk-block-countdown__content"}),"showMessage"===e.actionOnExpiration&&(0,l.createElement)(u.Typography.InspectorControls,{label:(0,s.__)("Expired Message",i.i18n),attrNameTemplate:"message%s",hasTextTag:!0,hasTextContent:!0,initialOpen:!1}),(0,l.createElement)(u.EffectsAnimations.InspectorControls,null),(0,l.createElement)(u.CustomAttributes.InspectorControls,null),(0,l.createElement)(u.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-countdown"}),(0,l.createElement)(u.Responsive.InspectorControls,null),(0,l.createElement)(u.ConditionalDisplay.InspectorControls,null)))),I=(0,B.compose)(f.withBlockWrapperIsHovered,f.withQueryLoopContext,f.withBlockAttributeContext,(0,f.withBlockStyleContext)(m))((e=>{const{className:t,setAttributes:o,attributes:a}=e,n=(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)]),g=y()(["stk-block-countdown__content-container"]),k=y()(["stk-block-countdown__digit","stk-block-countdown__digit-day",n]),v=y()(["stk-block-countdown__digit","stk-block-countdown__digit-hour",n]),C=y()(["stk-block-countdown__digit","stk-block-countdown__digit-minute",n]),f=y()(["stk-block-countdown__digit","stk-block-countdown__digit-second",n]),B=y()(["stk-block-countdown__label-day","stk-block-countdown__label",c]),S=y()(["stk-block-countdown__label-hour","stk-block-countdown__label",c]),w=y()(["stk-block-countdown__label-minute","stk-block-countdown__label",c]),_=y()(["stk-block-countdown__label-second","stk-block-countdown__label",c]),A=y()(["stk-block-countdown__message",b]),E=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:m,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)(x,{setAttributes:o,countdownType:a.countdownType,date:a.date,actionOnExpiration:a.actionOnExpiration}),E&&(0,l.createElement)("style",{key:"block-css"},E),(0,l.createElement)(u.CustomCSS,{mainBlockClass:"stk-block-countdown"}),(0,l.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:p},(0,l.createElement)("div",{className:"stk-block-countdown__container"},a.dayShow&&(0,l.createElement)(u.ContainerDiv,{className:g},(0,l.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,l.createElement)(h,{className:k,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,l.createElement)(u.Typography,{identifier:"day",tagName:"p",className:B,attrNameTemplate:"day%s",placeholder:(0,s.__)("Days",i.i18n),allowedFormats:[]}))),a.hasDivider&&a.dayShow&&(0,l.createElement)(d,{attributes:a}),a.hourShow&&(0,l.createElement)(u.ContainerDiv,{className:g},(0,l.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,l.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,l.createElement)(u.Typography,{identifier:"hour",tagName:"p",className:S,attrNameTemplate:"hour%s",placeholder:(0,s.__)("Hours",i.i18n),allowedFormats:[]}))),a.hasDivider&&a.hourShow&&(0,l.createElement)(d,{attributes:a}),a.minuteShow&&(0,l.createElement)(u.ContainerDiv,{className:g},(0,l.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,l.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,l.createElement)(u.Typography,{identifier:"minute",tagName:"p",className:w,attrNameTemplate:"minute%s",placeholder:(0,s.__)("Minutes",i.i18n),allowedFormats:[]}))),a.hasDivider&&a.minuteShow&&a.secondShow&&(0,l.createElement)(d,{attributes:a}),a.secondShow&&(0,l.createElement)(u.ContainerDiv,{className:g},(0,l.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,l.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,l.createElement)(u.Typography,{identifier:"second",tagName:"p",className:_,attrNameTemplate:"second%s",placeholder:(0,s.__)("Seconds",i.i18n),allowedFormats:[]})))),"showMessage"===a.actionOnExpiration&&(0,l.createElement)(u.Typography,{identifier:"message",className:A,attrNameTemplate:"message%s"})),e.isHovered&&(0,l.createElement)(u.MarginBottom,null))}));(0,_.addFilter)("stackable.block-component.typography.before","stackable/posts",((e,t)=>{const{name:o}=(0,w.useBlockEditContext)();return"stackable/countdown"!==o||"label%s"!==t.attrNameTemplate?e:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AdvancedToggleControl,{label:(0,s.__)("Days",i.i18n),attribute:"dayShow",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,s.__)("Hours",i.i18n),attribute:"hourShow",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,s.__)("Minutes",i.i18n),attribute:"minuteShow",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,s.__)("Seconds",i.i18n),attribute:"secondShow",defaultValue:!0}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,s.__)("Days Label",i.i18n),attribute:"dayText",placeholder:"Days",default:(0,s.__)("Days",i.i18n)}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,s.__)("Hours Label",i.i18n),attribute:"hourText",placeholder:"Hours",default:(0,s.__)("Hours",i.i18n)}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,s.__)("Minutes Label",i.i18n),attribute:"minuteText",placeholder:"Minutes",default:(0,s.__)("Minutes",i.i18n)}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,s.__)("Seconds Label",i.i18n),attribute:"secondText",placeholder:"Seconds",default:(0,s.__)("Seconds",i.i18n)}))}));const H=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 n=(0,u.getResponsiveClasses)(e.attributes),r=(0,u.getTypographyClasses)(o,"digit%s"),i=(0,u.getTypographyClasses)(o,"label%s"),s=(0,u.getTypographyClasses)(o,"message%s"),c=y()([t,"stk-block-countdown",n,T(o)]),b=y()(["stk-block-countdown__content-container"]),m=y()(["stk-block-countdown__digit","stk-block-countdown__digit-day",r]),p=y()(["stk-block-countdown__digit","stk-block-countdown__digit-hour",r]),g=y()(["stk-block-countdown__digit","stk-block-countdown__digit-minute",r]),k=y()(["stk-block-countdown__digit","stk-block-countdown__digit-second",r]),v=y()(["stk-block-countdown__label-day","stk-block-countdown__label",i]),C=y()(["stk-block-countdown__label-hour","stk-block-countdown__label",i]),f=y()(["stk-block-countdown__label-minute","stk-block-countdown__label",i]),B=y()(["stk-block-countdown__label-second","stk-block-countdown__label",i]),S=y()(["stk-block-countdown__message",s]);return(0,l.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,l.createElement)(u.CustomCSS.Content,{attributes:o}),(0,l.createElement)("div",{className:"stk-block-countdown__container"},o.generatedCss&&(0,l.createElement)("style",null,o.generatedCss),o.dayShow&&(0,l.createElement)(u.ContainerDiv.Content,{className:b,attributes:o},(0,l.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,l.createElement)(h.Content,{className:m}),(0,l.createElement)(u.Typography.Content,{className:v,attrNameTemplate:"day%s",attributes:o}))),o.hasDivider&&o.dayShow&&(0,l.createElement)(d.Content,{attributes:o}),o.hourShow&&(0,l.createElement)(u.ContainerDiv.Content,{className:b,attributes:o},(0,l.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,l.createElement)(h.Content,{className:p}),(0,l.createElement)(u.Typography.Content,{className:C,attrNameTemplate:"hour%s",attributes:o}))),o.hasDivider&&o.hourShow&&(0,l.createElement)(d.Content,{attributes:o}),o.minuteShow&&(0,l.createElement)(u.ContainerDiv.Content,{className:b,attributes:o},(0,l.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,l.createElement)(h.Content,{className:g}),(0,l.createElement)(u.Typography.Content,{className:f,attrNameTemplate:"minute%s",attributes:o}))),o.hasDivider&&o.minuteShow&&o.secondShow&&(0,l.createElement)(d.Content,{attributes:o}),o.secondShow&&(0,l.createElement)(u.ContainerDiv.Content,{className:b,attributes:o},(0,l.createElement)("div",{className:"stk-block-countdown__container-wrapper"},(0,l.createElement)(h.Content,{className:k}),(0,l.createElement)(u.Typography.Content,{className:B,attrNameTemplate:"second%s",attributes:o})))),"showMessage"===o.actionOnExpiration&&(0,l.createElement)(u.Typography.Content,{className:S,attrNameTemplate:"message%s",attributes:o}))},z=(0,B.compose)((0,f.withVersion)(i.version))(H);var M=o(7545);const O={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",i.i18n)},hourText:{type:"string",selector:".stk-block-countdown__label-hour",source:"text",default:(0,s.__)("Hours",i.i18n)},minuteText:{type:"string",selector:".stk-block-countdown__label-minute",source:"text",default:(0,s.__)("Minutes",i.i18n)},secondText:{type:"string",selector:".stk-block-countdown__label-second",source:"text",default:(0,s.__)("Seconds",i.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:""}},N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.version;const t=new M.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},...O},versionAdded:"3.0.0",versionDeprecated:""}),t.addDefaultValues({attributes:{version:2},versionAdded:"3.8.0",versionDeprecated:""}),t.getMerged(e)},D=N(i.version),R=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"}'),L=[{attributes:N("3.16.2"),save:(0,f.withVersion)("3.16.2")(H),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e);return t||o},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=u.deprecateTypographyFontSize.migrate("digit%s")(t),t=u.deprecateTypographyFontSize.migrate("label%s")(t),t=u.deprecateTypographyFontSize.migrate("message%s")(t),t=u.deprecateBlockHeight.migrate(t),t}},{attributes:N("3.15.3"),save:(0,f.withVersion)("3.15.3")(H),isEligible:e=>{const t=u.deprecateTypographyFontSize.isEligible("digit%s")(e),o=u.deprecateTypographyFontSize.isEligible("label%s")(e),a=u.deprecateTypographyFontSize.isEligible("message%s")(e),l=u.deprecateBlockHeight.isEligible(e);return t||o||a||l},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=u.deprecateTypographyFontSize.migrate("digit%s")(t),t=u.deprecateTypographyFontSize.migrate("label%s")(t),t=u.deprecateTypographyFontSize.migrate("message%s")(t),t=u.deprecateBlockHeight.migrate(t),t}},{attributes:N("3.12.11"),save:(0,f.withVersion)("3.12.11")(H),isEligible:e=>{if("string"==typeof(null==e?void 0:e.digitfontSize)||"string"==typeof(null==e?void 0:e.digitfontSizeTablet)||"string"==typeof(null==e?void 0:e.digitfontSizeMobile)||"string"==typeof(null==e?void 0:e.labelFontSize)||"string"==typeof(null==e?void 0:e.labelFontSizeTablet)||"string"==typeof(null==e?void 0:e.labelFontSizeMobile)||"string"==typeof(null==e?void 0:e.messagefontSize)||"string"==typeof(null==e?void 0:e.messagefontSizeTablet)||"string"==typeof(null==e?void 0:e.messagefontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e);return t||o},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:N("3.11.9"),save:(0,f.withVersion)("3.11.9")(H),isEligible:e=>{const t=u.deprecateContainerBackgroundColorOpacity.isEligible(e),o=u.deprecateBlockBackgroundColorOpacity.isEligible(e),a=u.deprecateTypographyGradientColor.isEligible("digit%s")(e),l=u.deprecateTypographyGradientColor.isEligible("label%s")(e),n=u.deprecateTypographyGradientColor.isEligible("message%s")(e);return t||o||a||l||n},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:N("3.7.9"),save:(0,f.withVersion)("3.7.9")(H),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:N("3.7.9"),save:(0,f.withVersion)("3.7.9")(H),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={...R,icon:a.CountdownIcon,edit:I,save:z,example:{attributes:{uniqueId:"32ce10a"},innerBlocks:[]},deprecated:L,attributes:D,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:()=>l});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"}}}}]]]]]},l=a},1646:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>f});var a=o(9467),l=o(2610);const n="dist/images/block-design-library-preview.f1220a2.jpg";var r=o(910),i=o(7200),s=o(7545),c=o(8333),d=o(9600),u=o(8003),b=o(3284),m=o(378),p=o(3882),g=o(7537),k=o(78),h=o(6179),v=o.n(h);const C=e=>{const t=e.innerBlocks.map((e=>C(e)));return[e.name,e.attributes,t]},y=async e=>{if("string"!=typeof e)return e;let t,o;try{t=new URL(e),o=new URL(r.cdnUrl)}catch(t){return e}if(t.origin!==o.origin||!t.pathname.startsWith(o.pathname))return e;if(t.pathname.match(/\/([^/]+\.(jpe?g|gif|png|mp4|webp))$/i))try{const o=await v()({path:"/stackable/v3/design_library_image",method:"POST",data:{image_url:t.href}});return o.success?o.new_url:(console.error("Stackable Design Library:",o.message),e)}catch(t){return console.error("Stackable Design Library:",t.message),e}return e},f={...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,inserter:!1},example:{attributes:{previewMode:!0}},edit:e=>{var t;const{clientId:o,attributes:h}=e,[v,f]=(0,l.useState)(!1),[B,S]=(0,l.useState)(0),[w,_]=(0,l.useState)(!1),A=(0,l.useRef)([]),E=(0,l.useRef)([]),T=(0,l.useRef)(null),x=(0,l.useRef)([]),I=(0,l.useRef)(-1),H=(0,k.useBlockProps)({className:"ugb-design-library-block"}),z=(null===(t=(0,c.usePresetControls)("spacingSizes"))||void 0===t?void 0:t.getPresetMarks())||null,M=z&&Array.isArray(z)?z[z.length-2].value:120,O=async(e,t,o,a,l,n)=>{const i=r.settings.stackable_block_states||{},c=e=>e.map((e=>{let t=!0,o=10;for(;t&&o>0;){const a=e[1].originalName||e[0];t=(e=(0,s.substituteCoreIfDisabled)(a,e[1],e[2],d.c))[0]in i&&i[e[0]]===s.BLOCK_STATE.DISABLED,o--}return e[2]&&e[2].length>0&&(e[2]=c(e[2])),Array.isArray(e[2])||(e[2]=[]),{name:e[0],attributes:e[1],innerBlocks:e[2],isValid:!0}}));if(!Array.isArray(i)&&l){let e=C({name:t,attributes:o,innerBlocks:a});e=c([e])[0],t=e.name,o=e.attributes,a=e.innerBlocks}const u=async e=>{for(const l of e){var t,o;const e=l.name;!((0,m.getBlockType)(e)&&(0,m.getBlockVariations)(e).length>0)&&null!==(t=l.attributes)&&void 0!==t&&t.uniqueId&&delete l.attributes.uniqueId;const n=null===(o=l.attributes)||void 0===o?void 0:o.customAttributes;if(!r.devMode||"1"!==localStorage.getItem("stk__design_library__dev_mode")){const e=null==n?void 0:n.findIndex((e=>"stk-design-library__bg-target"===e[0]));var a;n&&-1!==e&&(null===(a=l.attributes)||void 0===a||a.customAttributes.splice(e,1))}for(const e in l.attributes)if("string"==typeof l.attributes[e]){const t=String(l.attributes[e]);l.attributes[e]=await y(t)}l.innerBlocks=await u(l.innerBlocks)}return e},p=await u([{name:t,attributes:o,innerBlocks:a}]);if(t=p[0].name,o=p[0].attributes,a=p[0].innerBlocks,(!r.devMode||"1"!==localStorage.getItem("stk__design_library__dev_mode"))&&"Header"!==e){!n&&o.hasBackground?o.blockMargin={top:"",right:"",bottom:"0",left:""}:n||(o.blockMargin={top:M,right:"",bottom:M,left:""});const e=(0,b.select)("stackable/global-spacing-and-borders").getBlockLayouts();o.hasBackground&&"object"==typeof e&&!e["block-background-padding"]&&(o.blockPadding={top:M,right:M,bottom:M,left:M})}return(0,m.createBlock)(t,o,(0,m.createBlocksFromInnerBlocksTemplate)(a))},N=async e=>{var t;_(!0);const{getBlockRootClientId:a}=(0,b.select)("core/block-editor"),l=a(o);if(null===(t=A.current)||void 0===t||!t.length)return console.error("Design library selection failed: No designs found"),void _(!1);const n=A.current,r=[];for(const t of n){const{designData:o,category:a}=t;for(const t of o){const{name:o,attributes:n,innerBlocks:i}=t;if(o&&n){const t=await O(a,o,(0,p.applyFilters)("stackable.design-library.attributes",n),i||[],e,l);r.push(t)}else console.error("Design library selection failed: No block data found")}}r.length?(-1!==I.current?(0,b.dispatch)("core/block-editor").insertBlocks(r,I.current):(0,b.dispatch)("core/block-editor").replaceBlocks(o,r),(0,b.dispatch)("core/block-editor").selectBlock(r[0].clientId),x.current.length&&((0,b.dispatch)("core/block-editor").removeBlocks(x.current),x.current=[]),T.current&&T.current(),_(!1)):_(!1)},D=(0,l.useCallback)((()=>f(!1)),[]),R=(0,l.useCallback)((async(e,t,a)=>{const l=[];let n=new Set;if(e.forEach((e=>{const{designData:t,blocksForSubstitution:o,category:a}=e;o.size&&(n=n.union(o)),l.push({designData:t,category:a})})),A.current=l,E.current=n,T.current=t,"pages"===a){const e=(0,b.select)("core/block-editor").getBlockOrder();if(e.filter((e=>e!==o)).length)return x.current=e,void S(1)}n.size?S(2):await N(!1)}),[]);if(h.previewMode){const e=n.match(/https?:/i)?n:r.srcUrl?`${r.srcUrl}/${n}`:n;return(0,l.createElement)("div",{className:"ugb-design-library-block"},(0,l.createElement)("img",{src:e,alt:"design-library"}))}return(0,l.createElement)("div",H,(0,l.createElement)(g.Placeholder,{icon:(0,l.createElement)(a.SVGStackableIcon,null),label:(0,u.__)("Stackable Design Library",r.i18n),instructions:(0,u.__)("Open the Design Library and select a pre-designed block or layout.",r.i18n)},(0,l.createElement)(i.Button,{isSecondary:!0,className:"ugb-design-library-block__button",onClick:()=>{f(!0)}},(0,u.__)("Open Design Library",r.i18n))),v&&(0,l.createElement)(i.ModalDesignLibrary,{onClose:D,onSelect:R}),0!==B&&(0,l.createElement)(g.Modal,{className:"ugb-design-library__confirm-dialog",title:(0,u.__)("Stackable Design Library",r.i18n),onRequestClose:()=>{S(0),_(!1)}},(0,l.createElement)(g.__experimentalVStack,{spacing:8},1===B&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",null,(0,l.createElement)("p",null,(0,u.__)("Adding this page design will replace all existing blocks in the editor. Are you sure you want to continue?",r.i18n))),(0,l.createElement)(g.Flex,{direction:"column",align:"stretch"},w?(0,l.createElement)(g.Spinner,{style:{margin:"0 auto"}}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{if(I.current=0,E.current.size)return S(0),void setTimeout((()=>S(2)),500);N(!1)}},(0,u.__)("Replace existing content with page design",r.i18n)),(0,l.createElement)(i.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{if(I.current=x.current.length,x.current=[o],E.current.size)return S(0),void setTimeout((()=>S(2)),500);N(!1)}},(0,u.__)("Append page design only",r.i18n)),(0,l.createElement)(i.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{x.current=[],S(0)}},(0,u.__)("Cancel",r.i18n))))),2===B&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",null,(0,l.createElement)("p",null,(0,u.__)("The designs you have selected contain the following disabled blocks:",r.i18n)),(0,l.createElement)("ul",null,E.current&&[...E.current].map(((e,t)=>(0,l.createElement)("li",{key:t},e)))),(0,l.createElement)("p",null," ",(0,u.__)("These blocks can be enabled in the Stackable settings page. Do you want to keep the disabled blocks or substitute them with other Stackable or core blocks?",r.i18n))),(0,l.createElement)(g.Flex,{direction:"column",align:"stretch"},w?(0,l.createElement)(g.Spinner,{style:{margin:"0 auto"}}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.Button,{__next40pxDefaultSize:!0,style:{textAlign:"center"},variant:"primary",onClick:()=>(async()=>{await N(!0)})()},(0,u.__)("Add patterns and substitute blocks",r.i18n)),(0,l.createElement)(i.Button,{__next40pxDefaultSize:!0,style:{textAlign:"center",marginBottom:"16px"},variant:"secondary",onClick:()=>(async()=>{await N(!1)})()},(0,u.__)("Add patterns only (no substitutes)",r.i18n)),(0,l.createElement)(i.Button,{__next40pxDefaultSize:!0,style:{textAlign:"center",marginBottom:"16px"},variant:"tertiary",onClick:()=>(()=>{const e=E.current,t=window.open("/wp-admin/options-general.php?page=stackable","_blank");t&&(t.onload=()=>{setTimeout((()=>{try{const o=t.document.getElementById("stk-tab__blocks");o&&(o.click(),t.postMessage({type:"STK_ENABLE_BLOCKS",blocks:e,source:"STK_DESIGN_LIBRARY"},window.location.origin))}catch(e){}}),5)},t.focus())})()},(0,u.__)("Enable blocks in settings",r.i18n))))))))},save:()=>null}},1191:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>T});var a=o(9467),l=o(2610),n=o(9384),r=o(8333),i=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,l.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.createElement)("path",{d:"M8 23h32v2H8v-2z",fillRule:"evenodd",clipRule:"evenodd"}))}},{name:"bar",label:(0,u.__)("Bar",s.i18n),icon:function(e){return(0,l.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,l.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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,l.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),(0,l.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 i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});m.addBlockStyles("color",[{selectorCallback:e=>{var t;const o=null===(t=(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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"]}]),n.Alignment.addStyles(m),n.BlockDiv.addStyles(m),n.Advanced.addStyles(m),n.Transform.addStyles(m),n.EffectsAnimations.addStyles(m);const p=m;var g=o(4184),k=o.n(g),h=o(9783),v=o(3749);const C=(0,l.memo)((()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(i.InspectorTabs,null),(0,l.createElement)(n.BlockStyle.InspectorControls,{styles:b},(0,l.createElement)(i.ColorPaletteControl,{label:(0,u.__)("Color",s.i18n),attribute:"color"}),(0,l.createElement)(i.AdvancedRangeControl,{label:(0,u.__)("Width",s.i18n)+" (%)",responsive:"all",attribute:"width",min:1,max:100,placeholder:""}),(0,l.createElement)(i.AdvancedRangeControl,{label:(0,u.__)("Height / Size",s.i18n),responsive:"all",attribute:"height",min:1,sliderMax:100,placeholder:""})),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-divider"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),y=(0,v.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext,(0,h.withBlockStyleContext)(p))((e=>{const{className:t}=e,o=(0,n.getAlignmentClasses)(e.attributes),a=(0,r.useBlockStyle)(b),c=k()([t,"stk-block-divider",o]),d=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:s.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(C,null),d&&(0,l.createElement)("style",{key:"block-css"},d),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-divider"}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c},["dots","asterisks"].includes(a)?(0,l.createElement)("div",{className:"stk-block-divider__dots","aria-hidden":"true"},(0,l.createElement)("div",{className:"stk-block-divider__dot"}),(0,l.createElement)("div",{className:"stk-block-divider__dot"}),(0,l.createElement)("div",{className:"stk-block-divider__dot"})):(0,l.createElement)("hr",{className:"stk-block-divider__hr"})),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))})),f=e=>{const{className:t,attributes:o}=e,a=(0,n.getResponsiveClasses)(e.attributes),i=(0,n.getAlignmentClasses)(e.attributes),{name:s}=(0,r.getBlockStyle)(b,t||o.className)||{},c=k()([t,"stk-block-divider",a,i]);return(0,l.createElement)(n.BlockDiv.Content,{className:c,attributes:o,version:e.version},o.generatedCss&&(0,l.createElement)("style",null,o.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:o}),["dots","asterisks"].includes(s)?(0,l.createElement)("div",{className:"stk-block-divider__dots","aria-hidden":"true"},(0,l.createElement)("div",{className:"stk-block-divider__dot"}),(0,l.createElement)("div",{className:"stk-block-divider__dot"}),(0,l.createElement)("div",{className:"stk-block-divider__dot"})):(0,l.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 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),n.Alignment.addAttributes(t),n.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)},w=S(s.version),_=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"}'),A=[{attributes:S("3.16.2"),save:(0,h.withVersion)("3.16.2")(f),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:S("3.15.3"),save:(0,h.withVersion)("3.15.3")(f),isEligible:e=>n.deprecateBlockHeight.isEligible(e),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:S("3.12.11"),save:(0,h.withVersion)("3.12.11")(f),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:S("3.11.9"),save:(0,h.withVersion)("3.11.9")(f),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:S("3.7.9"),save:(0,h.withVersion)("3.7.9")(f),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var E=o(9939);const T={..._,icon:a.DividerIcon,attributes:w,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:A,edit:y,save:B,substitute:E.default}},9939:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/divider",transform:()=>["core/separator"]},l=a},7138:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>x});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});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 s=i;var c=o(4184),d=o.n(c),u=o(910),b=o(9783),m=o(3749),p=o(78),g=o(8003),k=o(3882);const h=[["stackable/text",{text:(0,g.__)("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,g.__)("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,g.__)("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,g.__)("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,l.memo)((()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-expand"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null),(0,l.createElement)(r.InspectorBlockControls,null,(0,l.createElement)(r.InspectorBottomTip,null))))),C=(0,m.compose)(b.withBlockWrapperIsHovered,b.withQueryLoopContext,b.withBlockAttributeContext,(0,b.withBlockStyleContext)(s))((e=>{const{className:t}=e,o=(0,n.getAlignmentClasses)(e.attributes),a=d()([t,"stk-block-expand"]),i=d()(["stk-inner-blocks",o,"stk-block-content"]),c=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:u.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v,null),c&&(0,l.createElement)("style",{key:"block-css"},c),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-expand"}),(0,l.createElement)("style",null,`.stk-block.stk-block-expand .stk-block-expand__short-text::before { content: "${(0,g.__)("Less text",u.i18n)}" !important; }`),(0,l.createElement)("style",null,`.stk-block.stk-block-expand .stk-block-expand__more-text::before { content: "${(0,g.__)("More text",u.i18n)}" !important; }`),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:a},(0,l.createElement)("div",{className:i},(0,l.createElement)(p.InnerBlocks,{template:h,templateLock:"all",orientation:"horizontal"}))),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))}));(0,k.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/expand",((e,t)=>"stackable/expand"!==(null==t?void 0:t.name)&&e)),(0,k.addFilter)("stackable.edit.button.enable-link","stackable/expand",((e,t)=>"stackable/expand"!==(null==t?void 0:t.name)&&e)),(0,k.addFilter)("stackable.edit.link.enable-link-popup","stackable/expand",((e,t)=>"stackable/expand"!==(null==t?void 0:t.name)&&e)),(0,k.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,n.getAlignmentClasses)(e.attributes),a=(0,n.getResponsiveClasses)(e.attributes),r=d()([e.className,"stk-block-expand",a]),i=d()(["stk-inner-blocks",o,"stk-block-content"]);return(0,l.createElement)(n.BlockDiv.Content,{className:r,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,l.createElement)("div",{className:i},(0,l.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 n.BlockDiv.addAttributes(t),n.Style.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.addDefaultValues({attributes:{customAttributes:[["aria-expanded","false"]]},versionAdded:"3.0.0",versionDeprecated:"3.9.1"}),t.getMerged(e)},w=S(u.version),_=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"]}'),A={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,g.__)("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,g.__)("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,g.__)("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,g.__)("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.16.2"),save:(0,b.withVersion)("3.16.2")(y),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:S("3.15.3"),save:(0,b.withVersion)("3.15.3")(y),isEligible:e=>n.deprecateBlockHeight.isEligible(e),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:S("3.12.11"),save:(0,b.withVersion)("3.12.11")(y),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:S("3.11.9"),save:(0,b.withVersion)("3.11.9")(y),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:S("3.7.9"),save:(0,b.withVersion)("3.7.9")(y),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var T=o(9302);const x={..._,icon:a.ExpandIcon,attributes:w,supports:{anchor:!0,stkDefaultTab:"layout",spacing:!0},example:A,deprecated:E,edit:C,save:f,substitute:T.default}},9302:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/expand",transform:(e,t)=>["stackable/text",{text:t[2][1].text}]},l=a},1850:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),l=o(910),n=o(8003),r=o(3882),i=o(7462),s=o(2610);o(7294);const c=(0,r.applyFilters)("stackable.feature-grid.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Default",l.i18n)),attributes:{className:"is-style-default",innerBlockContentAlign:"alignwide",align:"wide"},isActive:["className"],pickerTitle:(0,n.__)("Default",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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,n._x)("Title for This Block","Heading placeholder",l.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",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.i18n),buttonBackgroundColor:"transparent",className:"is-style-plain"}]]]]],["stackable/column",{hasContainer:!0},[["stackable/image"],["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",l.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",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.i18n),buttonBackgroundColor:"transparent",className:"is-style-plain"}]]]]],["stackable/column",{hasContainer:!0},[["stackable/image"],["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",l.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",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.i18n),buttonBackgroundColor:"transparent",className:"is-style-plain"}]]]]]],scope:["block"]},{name:"float",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Float",l.i18n)),attributes:{innerBlockContentAlign:"alignwide",className:"is-style-float",align:"full"},isActive:["className"],pickerTitle:(0,n.__)("Float",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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,n.__)("Title",l.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",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.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,n.__)("Title",l.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",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.i18n),buttonBackgroundColor:"transparent",buttonBorderType:"solid",buttonBackgroundColorHover:"transparent",buttonBackgroundColorParentHover:"transparent",className:"is-style-ghost"}]]]]]],scope:["block"]},{name:"horizontal",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Horizontal",l.i18n)),attributes:{className:"is-style-horizontal"},isActive:["className"],pickerTitle:(0,n.__)("Horizontal",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"large-mid",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Large Mid",l.i18n)),attributes:{className:"is-style-large-mid"},isActive:["className"],pickerTitle:(0,n.__)("Large Mid",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"offset",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Offset",l.i18n)),attributes:{className:"is-style-offset"},isActive:["className"],pickerTitle:(0,n.__)("Offset",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"zigzag",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Zizag",l.i18n)),attributes:{className:"is-style-zigzag"},isActive:["className"],pickerTitle:(0,n.__)("Zigzag",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.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),g=o.n(p),k=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)(k.withBlockWrapperIsHovered,k.withQueryLoopContext,k.withBlockAttributeContext,(0,k.withBlockStyleContext)(m))((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),n=(0,d.getSeparatorClasses)(e.attributes),r=(0,d.getAlignmentClasses)(e.attributes),[i,c]=u.ColumnInnerBlocks.useContext(),b=g()([t,"stk-block-feature-grid","stk-block-columns",a,n,c],{"stk--column-wrap-desktop":e.attributes.columnWrapDesktop}),p=g()(["stk-inner-blocks",r,"stk-block-content"],(0,d.getContentAlignmentClasses)(e.attributes)),k=(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,s.createElement)(s.Fragment,null,(0,s.createElement)(f,null),k&&(0,s.createElement)("style",{key:"block-css"},k),(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:i,template:y,allowedBlocks:C,orientation:"horizontal",renderAppender:!1})))),e.isHovered&&o&&(0,s.createElement)(d.MarginBottom,null))}));var S=o(78);const w=e=>{const{attributes:t}=e,o=(0,d.getRowClasses)(e.attributes),a=(0,d.getSeparatorClasses)(e.attributes),l=(0,d.getAlignmentClasses)(e.attributes),n=(0,d.getResponsiveClasses)(e.attributes),i=g()((0,r.applyFilters)("stackable.feature-grid.save.blockClassNames",[[e.className,"stk-block-feature-grid","stk-block-columns",n,a,{"stk--column-wrap-desktop":t.columnWrapDesktop}]],e)),c=g()([o,"stk-inner-blocks",l,"stk-block-content"],(0,d.getContentAlignmentClasses)(t));return(0,s.createElement)(d.BlockDiv.Content,{className:i,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))))},_=(0,h.compose)((0,k.withVersion)(l.version))(w);var A=o(7545);const E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.version;const t=new A.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(l.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,n.__)("Title for This Block",l.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,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.",l.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,n.__)("Button",l.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,n.__)("Title for This Block",l.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,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.",l.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,n.__)("Button",l.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",className:"is-style-plain"},innerBlocks:[]}]}]}]};var H=o(4247),z=o.n(H);(0,r.addFilter)("stackable.feature-grid.save.blockClassNames","stackable/3.13.3",((e,t)=>{if(1===z()(t.version,"3.13.3"))return e;const o=(0,d.getSeparatorClasses)(t.attributes),a=(0,d.getResponsiveClasses)(t.attributes),l=[t.className,"stk-block-feature-grid",a,o];return t.attributes.columnWrapDesktop&&l.push("stk--column-wrap-desktop"),l})),(0,r.addFilter)("stackable.feature-grid.save.blockClassNames","stackable/3.1.0",((e,t)=>{if(1===z()(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 M=[{attributes:E("3.16.2"),save:(0,k.withVersion)("3.16.2")(w),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),l=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e),n=!!e.columnFit;return t||o||a||l||n},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=d.deprecateBlockHeight.migrate(t),t=d.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:E("3.15.3"),save:(0,k.withVersion)("3.15.3")(w),isEligible:e=>{const t=!!e.columnFit,o=d.deprecateBlockHeight.isEligible(e),a=d.deprecateColumnAndRowGap.isEligible("%s")(e);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=d.deprecateBlockHeight.migrate(t),t=d.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:E("3.12.11"),save:(0,k.withVersion)("3.12.11")(w),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.columnSpacing)||"string"==typeof(null==e?void 0:e.columnSpacingTablet)||"string"==typeof(null==e?void 0:e.columnSpacingMobile)||"string"==typeof(null==e?void 0:e.columnGap)||"string"==typeof(null==e?void 0:e.columnGapTablet)||"string"==typeof(null==e?void 0:e.columnGapMobile)||"string"==typeof(null==e?void 0:e.rowGap)||"string"==typeof(null==e?void 0:e.rowGapTablet)||"string"==typeof(null==e?void 0:e.rowGapMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),l=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e),n=!!e.columnFit;return t||o||a||l||n},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,k.withVersion)("3.11.9")(w),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,k.withVersion)("3.7.3")(w),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,k.withVersion)("3.1.0")(w)}];var O=o(7666);const N={...x,icon:a.FeatureGridIcon,attributes:T,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:I,deprecated:M,variations:c,edit:B,save:_,substitute:O.default}},7666:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/feature-grid",transform:(e,t)=>["stackable/columns",{...e,contentAlign:"center"},t]},l=a},1733:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(9467),l=o(910),n=o(8003),r=o(3882),i=o(7462),s=o(2610);o(7294);const c=(0,r.applyFilters)("stackable.feature.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Default",l.i18n)),attributes:{className:"is-style-default"},isActive:["className"],pickerTitle:(0,n.__)("Default",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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,n._x)("Title for This Block","Heading placeholder",l.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",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.i18n)}]]]]],["stackable/column",{templateLock:"insert",columnAlign:"center"},[["stackable/image",{}]]]],scope:["block"]},{name:"horizontal",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Horizontal",l.i18n)),attributes:{className:"is-style-horizontal",align:"full",innerBlockContentAlign:"alignwide"},isActive:["className"],pickerTitle:(0,n.__)("Horizontal",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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,n._x)("Title for This Block","Heading placeholder",l.i18n),textTag:"h2"}],["stackable/columns",{},[["stackable/column",{align:"full"},[["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",l.i18n),textTag:"h3"}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block.","Content placeholder",l.i18n)}]]],["stackable/column",{},[["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",l.i18n),textTag:"h3"}],["stackable/text",{text:(0,n._x)("Description for this block. Use this space for describing your block.","Content placeholder",l.i18n)}]]]]],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.i18n)}]]]]],["stackable/column",{templateLock:"insert",columnAlign:"center"},[["stackable/image",{}]]]],scope:["block"]},{name:"overlap-shape-1",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Shape 1",l.i18n)),attributes:{className:"is-style-overlap-shape-1"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Shape 1",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-shape-2",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Shape 2",l.i18n)),attributes:{className:"is-style-overlap-shape-2"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Shape 2",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-shape-3",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Shape 3",l.i18n)),attributes:{className:"is-style-overlap-shape-3"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Shape 3",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-shape-4",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Shape 4",l.i18n)),attributes:{className:"is-style-overlap-shape-4"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Shape 4",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-shape-5",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Shape 5",l.i18n)),attributes:{className:"is-style-overlap-shape-5"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Shape 5",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-background-1",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Background 1",l.i18n)),attributes:{className:"is-style-overlap-background-1"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Background 1",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-background-2",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Background 2",l.i18n)),attributes:{className:"is-style-overlap-background-2"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Background 2",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-background-3",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Background 3",l.i18n)),attributes:{className:"is-style-overlap-background-3"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Background 3",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-background-4",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Background 4",l.i18n)),attributes:{className:"is-style-overlap-background-4"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Background 4",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"overlap-background-5",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Overlap Background 5",l.i18n)),attributes:{className:"is-style-overlap-background-5"},isActive:["className"],pickerTitle:(0,n.__)("Overlap Background 5",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.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),g=o.n(p),k=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)(k.withBlockWrapperIsHovered,k.withQueryLoopContext,k.withBlockAttributeContext,(0,k.withBlockStyleContext)(m))((e=>{const{className: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),[r,i]=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=g()([t,"stk-block-feature",o,a,i]),p=g()(["stk-inner-blocks",n,"stk-block-content"],(0,d.getContentAlignmentClasses)(e.attributes)),k=(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,s.createElement)(s.Fragment,null,(0,s.createElement)(y,null),k&&(0,s.createElement)("style",{key:"block-css"},k),(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:r,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),w=o(78);const _=e=>{const{attributes: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),n=(0,d.getResponsiveClasses)(e.attributes),i=(0,d.getContentAlignmentClasses)(t),c=S()([e.className,"stk-block-feature",n,a]),u=S()((0,r.applyFilters)("stackable.feature.save.contentClassNames",{[i]:i},e)),b=S()((0,r.applyFilters)("stackable.feature.save.innerClassNames",{"stk-inner-blocks":!0,[l]:l,"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)(w.InnerBlocks.Content,null)))))},A=(0,h.compose)((0,k.withVersion)(l.version))(_);var E=o(7545);const T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.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(l.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"]}'),H={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,n.__)("Title for This Block",l.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,n.__)("Description for this block. 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:"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,n.__)("Button",l.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 z=o(4247),M=o.n(z);(0,r.addFilter)("stackable.feature.save.contentClassNames","stackable/3.0.2",((e,t)=>{if(1===M()(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,r.addFilter)("stackable.feature.save.innerClassNames","stackable/3.0.2",((e,t)=>{if(1===M()(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,r.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 O=[{attributes:T("3.16.2"),save:(0,k.withVersion)("3.16.2")(_),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),l=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||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=d.deprecateBlockHeight.migrate(t),t=d.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:T("3.15.3"),save:(0,k.withVersion)("3.15.3")(_),isEligible:e=>{const t=d.deprecateBlockHeight.isEligible(e),o=d.deprecateColumnAndRowGap.isEligible("%s")(e);return t||o},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=d.deprecateBlockHeight.migrate(t),t=d.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:T("3.12.11"),save:(0,k.withVersion)("3.12.11")(_),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.columnSpacing)||"string"==typeof(null==e?void 0:e.columnSpacingTablet)||"string"==typeof(null==e?void 0:e.columnSpacingMobile)||"string"==typeof(null==e?void 0:e.columnGap)||"string"==typeof(null==e?void 0:e.columnGapTablet)||"string"==typeof(null==e?void 0:e.columnGapMobile)||"string"==typeof(null==e?void 0:e.rowGap)||"string"==typeof(null==e?void 0:e.rowGapTablet)||"string"==typeof(null==e?void 0:e.rowGapMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),l=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||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,k.withVersion)("3.11.9")(_),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},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,k.withVersion)("3.7.9")(_),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,k.withVersion)("3.0.2")(_)}];var N=o(7248);const D={...I,icon:a.FeatureIcon,attributes:x,supports:{anchor:!0,align:["center","wide","full"],stkBlockLinking:!1,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:H,deprecated:O,variations:c,edit:f,save:A,substitute:N.default}},7248:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/feature",transform:(e,t)=>["stackable/columns",{...e},t]},l=a},4523:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(9467),l=o(378),n=o(5295);const r={from:[{type:"block",isMultiBlock:!0,blocks:["stackable/text"],transform:e=>e.map((e=>{let{...t}=e;return(0,l.createBlock)("stackable/heading",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["stackable/subtitle"],transform:e=>e.map((e=>{let{...t}=e;return(0,l.createBlock)("stackable/heading",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{content:t}=e;return(0,l.createBlock)("stackable/heading",{text:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{content:t}=e;return(0,l.createBlock)("stackable/heading",{text:t})}))}],to:[{type:"block",isMultiBlock:!0,blocks:["stackable/text"],transform:e=>e.map((e=>{let{...t}=e;return(0,l.createBlock)("stackable/text",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["stackable/subtitle"],transform:e=>e.map((e=>{let{...t}=e;return(0,l.createBlock)("stackable/subtitle",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{text:t}=e;return(0,l.createBlock)("core/paragraph",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{text:t}=e;return(0,l.createBlock)("core/heading",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["stackable/icon-label"],transform:e=>e.map((e=>{let{...t}=e;return(0,l.createBlocksFromInnerBlocksTemplate)([["stackable/icon-label",{},n.h.map((e=>("stackable/heading"===e[0]&&(e[1]=t),e)))]])[0]}))}]},i=r;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),g=o(4184),k=o.n(g),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 w=(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)))),_=(0,y.compose)(C.withBlockWrapperIsHovered,C.withQueryLoopContext,C.withBlockAttributeContext,(0,C.withBlockStyleContext)(m))((e=>{const{className:t,onReplace:o,setAttributes:a,onRemove:l,mergeBlocks:n,attributes:r}=e,{parentBlock:i}=(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),g=k()([t,"stk-block-heading","stk-block-heading--v2"]),v=k()(["stk-block-heading__text",s,b],{"stk-block-heading--use-theme-margins":r.useThemeTextMargins});(0,d.useUniqueId)(r,!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 _=(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)(w,{showTopLine:e.attributes.showTopLine,showBottomLine:e.attributes.showBottomLine,setAttributes:a,parentBlock:i,blockState:e.blockState}),_&&(0,c.createElement)("style",{key:"block-css"},_),(0,c.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-heading"}),(0,c.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:g},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:n,onRemove:l,onReplace:o}),e.attributes.showBottomLine&&(0,c.createElement)("div",{className:"stk-block-heading__bottom-line"})),e.isHovered&&(0,c.createElement)(d.MarginBottom,null))})),A=e=>{const{className:t,attributes:o}=e,a=(0,d.getResponsiveClasses)(e.attributes),l=(0,d.getTypographyClasses)(e.attributes),n=(0,d.getAlignmentClasses)(e.attributes),r=k()((0,S.applyFilters)("stackable.heading.save.blockClassNames",[t,"stk-block-heading",a,"stk-block-heading--v2"],e)),i=k()(["stk-block-heading__text",l,n],{"stk-block-heading--use-theme-margins":o.useThemeTextMargins});return(0,c.createElement)(d.BlockDiv.Content,{className:r,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:i,defaultTag:"h2"}),e.attributes.showBottomLine&&(0,c.createElement)("div",{className:"stk-block-heading__bottom-line"}))},E=(0,y.compose)((0,C.withVersion)(p.version))(A),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"}'),H={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 z=o(4247),M=o.n(z);(0,S.addFilter)("stackable.heading.save.blockClassNames","stackable/3.6.1",((e,t)=>{if(1===M()(t.version,"3.6.1"))return e;const o=(0,d.getResponsiveClasses)(t.attributes);return[t.className,"stk-block-heading",o]}));const O=[{attributes:T("3.16.2"),save:(0,C.withVersion)("3.16.2")(A),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=d.deprecateTypographyFontSize.migrate("%s")(t),t=d.deprecateBlockHeight.migrate(t),t}},{attributes:T("3.15.3"),save:(0,C.withVersion)("3.15.3")(A),isEligible:e=>{const t=d.deprecateTypographyFontSize.isEligible("%s")(e),o=d.deprecateBlockHeight.isEligible(e);return t||o},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=d.deprecateTypographyFontSize.migrate("%s")(t),t=d.deprecateBlockHeight.migrate(t),t}},{attributes:T("3.12.11"),save:(0,C.withVersion)("3.12.11")(A),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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")(A),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")(A),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")(A),migrate:e=>{const{textRemoveTextMargins:t,...o}=e;return{...o,useThemeTextMargins:!e.textRemoveTextMargins}}}];var N=o(2433);const D={...I,icon:a.HeadingIcon,attributes:x,supports:{anchor:!0,align:["center","wide","full"],spacing:!0,splitting:!0},deprecated:O,edit:_,save:E,example:H,transforms:i,merge:(e,t)=>({text:(e.text||"")+((t.hasOwnProperty("content")?t.content:t.text)||"")}),substitute:N.default}},2433:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/heading",transform:e=>["core/heading",{content:e.text,level:e.textTag?Number(e.textTag.replace("h","")):2,textAlign:e.contentAlign}]},l=a},6613:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(7462),l=o(2610);o(7294);var n=o(910),r=o(8003),i=o(3882);const s=(0,i.applyFilters)("stackable.hero.variations",[{name:"default",description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",n.i18n),(0,r.__)("Default",n.i18n)),isDefault:!0,attributes:{className:"is-style-default",innerBlockAlign:"center",hasContainer:!0},isActive:["className"],pickerTitle:(0,r.__)("Default",n.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,l.createElement)("path",{d:"M13 17h21v2H13v-2zM19 27h10v3H19v-3zM11 22h26v2H11v-2z"}))},innerBlocks:[["stackable/heading",{text:(0,r._x)("Title for This Block","Heading placeholder",n.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",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,r._x)("Button","Button placeholder",n.i18n)}]]]],scope:["block"]},{name:"horizontal",description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",n.i18n),(0,r.__)("Horizontal",n.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,r.__)("Horizontal",n.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,l.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,r._x)("Title for This Block","Heading placeholder",n.i18n),textTag:"h1"}],["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",n.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,r._x)("Button","Button placeholder",n.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,r.sprintf)((0,r._x)("%s Layout","Block layout name",n.i18n),(0,r.__)("Half Overlay",n.i18n)),attributes:{className:"is-style-half-overlay"},isActive:["className"],pickerTitle:(0,r.__)("Half Overlay",n.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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:!n.isPro,scope:["block"]},{name:"center-overlay",description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",n.i18n),(0,r.__)("Center Overlay",n.i18n)),attributes:{className:"is-style-center-overlay"},isActive:["className"],pickerTitle:(0,r.__)("Center Overlay",n.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 15h26v17H11V15zm7 4h12v3H18v-3zm14 6H16v3h16v-3z"}))},isPremium:!n.isPro,scope:["block"]},{name:"side-overlay",description:(0,r.sprintf)((0,r._x)("%s Layout","Block layout name",n.i18n),(0,r.__)("Side Overlay",n.i18n)),attributes:{className:"is-style-side-overlay"},isActive:["className"],pickerTitle:(0,r.__)("Side Overlay",n.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 15h22v17H9V15zm4 4h11v3H13v-3zm14 6H13v3h14v-3z"}))},isPremium:!n.isPro,scope:["block"]},{name:"half",description:(0,r.__)("Half Layout",n.i18n),attributes:{className:"is-style-half"},isActive:["className"],pickerTitle:(0,r.__)("Half",n.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,l.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:!n.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),g=o(4184),k=o.n(g),h=o(9783),v=o(3749),C=o(78),y=o(3284);const f=s[0].innerBlocks,B=(0,l.memo)((()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(u.InspectorTabs,null),(0,l.createElement)(d.ContentAlign.InspectorControls,null),(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-content"}),(0,l.createElement)(d.Separator.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-hero"}),(0,l.createElement)(d.Responsive.InspectorControls,null),(0,l.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,l.createElement)(u.InspectorStyleControls,null,(0,l.createElement)(u.InspectorBottomTip,null))))),S=(0,v.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext,(0,h.withBlockStyleContext)(m))((e=>{var t;const{className:o,attributes:a}=e,{hasInnerBlocks:r,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=(0,d.getSeparatorClasses)(e.attributes),b=k()([o,"stk-block-hero",c,"stk-content-align"]),g=k()(["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)(i))||void 0===t?void 0:t.name,v=r?["stackable/text","core/paragraph"].includes(h)?()=>(0,l.createElement)(l.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:n.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(B,null),(0,l.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b,enableVariationPicker:!0},S&&(0,l.createElement)("style",{key:"block-css"},S),(0,l.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-hero"}),(0,l.createElement)(d.Separator,null,(0,l.createElement)(d.ContainerDiv,{className:g},(0,l.createElement)(C.InnerBlocks,{template:f,templateLock:!1,renderAppender:v})))),e.isHovered&&r&&(0,l.createElement)(d.MarginBottom,null))}));var w=o(1991),_=o.n(w);const A=e=>{const{attributes:t,className:o}=e,a=(0,d.getAlignmentClasses)(t),n=(0,d.getSeparatorClasses)(t),r=(0,d.getResponsiveClasses)(t),s=_()([o,"stk-block-hero",r,n]),c=_()(["stk-block-hero__content"],(0,d.getContentAlignmentClasses)(t)),u=_()((0,i.applyFilters)("stackable.hero.save.innerClassNames",["stk-block-content","stk-inner-blocks",a,`stk-${t.uniqueId}-inner-blocks`],e));return(0,l.createElement)(d.BlockDiv.Content,{className:s,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.Separator.Content,{attributes:t},(0,l.createElement)(d.ContainerDiv.Content,{className:c,attributes:t},(0,l.createElement)("div",{className:u},(0,l.createElement)(C.InnerBlocks.Content,null)))))},E=(0,v.compose)((0,h.withVersion)(n.version))(A);var T=o(7545);const x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.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(n.version),H={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,r.__)("Header Title",n.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,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.",n.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,r.__)("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.hero.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 O=[{attributes:x("3.16.2"),save:(0,h.withVersion)("3.16.2")(A),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),l=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||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=d.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:x("3.15.3"),save:(0,h.withVersion)("3.15.3")(A),isEligible:e=>{const t=d.deprecateBlockHeight.isEligible(e),o=d.deprecateInnerBlockRowGapAndContainerHeight.isEligible("%s")(e);return t||o},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=d.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:x("3.12.11"),save:(0,h.withVersion)("3.12.11")(A),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.innerBlockRowGap)||"string"==typeof(null==e?void 0:e.innerBlockRowGapTablet)||"string"==typeof(null==e?void 0:e.innerBlockRowGapMobile)||"string"==typeof(null==e?void 0:e.containerHeight)||"string"==typeof(null==e?void 0:e.containerHeightTablet)||"string"==typeof(null==e?void 0:e.containerHeightMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e),a=d.deprecateShadowColor.isEligible("topSeparator%s")(e),l=d.deprecateShadowColor.isEligible("bottomSeparator%s")(e);return t||o||a||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")(A),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},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")(A),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 N=o(6294);const D={...c,icon:o(9467).HeroIcon,attributes:I,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:H,variations:s,deprecated:O,edit:S,save:E,substitute:N.default}},6294:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/hero",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t]]]},l=a},2683:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>M});var a=o(2610),l=o(9384),n=o(7200);const r=new n.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.addBlockStyles("columnSpacing",[{selector:".%s-horizontal-scroller",styleRule:"--stk-columns-spacing",attrName:"columnSpacing",key:"columnSpacing",hasUnits:"px",responsive:"all"}]),r.addBlockStyles("horizontalScrollerColumnGap",[{selector:".%s-horizontal-scroller",styleRule:"--stk-column-gap",attrName:"horizontalScrollerColumnGap",key:"horizontalScrollerColumnGap-save",format:"%spx",responsive:"all"}]),r.addBlockStyles("horizontalScrollerColumnWidth",[{selector:".%s-horizontal-scroller",styleRule:"--stk-column-width",attrName:"horizontalScrollerColumnWidth",key:"horizontalScrollerColumnWidth-save",hasUnits:"px",responsive:"all"}]),r.addBlockStyles("horizontalScrollerHeight",[{selector:".%s-horizontal-scroller",styleRule:"--stk-column-height",attrName:"horizontalScrollerHeight",key:"horizontalScrollerHeight-save",format:"%spx"}]),r.addBlockStyles("horizontalScrollerLeftOffset",[{selector:".%s-horizontal-scroller",styleRule:"--stk-left-offset",attrName:"horizontalScrollerLeftOffset",key:"horizontalScrollerLeftOffset-save",hasUnits:"px",responsive:"all"}]),r.addBlockStyles("horizontalScrollerSnap",[{selector:".%s-horizontal-scroller",styleRule:"--stk-snapping",attrName:"horizontalScrollerSnap",key:"horizontalScrollerSnap-save"}]),r.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"]}]),r.addBlockStyles("scrollbarTrackColor",[{selector:".%s-horizontal-scroller",styleRule:"--stk-scrollbar-track-color",attrName:"scrollbarTrackColor",key:"scrollbarTrackColor",enabledCallback:e=>e("showScrollbar"),dependencies:["showScrollbar"]}]),r.addBlockStyles("scrollbarThumbColor",[{selector:".%s-horizontal-scroller",styleRule:"--stk-scrollbar-thumb-color",attrName:"scrollbarThumbColor",key:"scrollbarThumbColor",enabledCallback:e=>e("showScrollbar"),dependencies:["showScrollbar"]}]),r.addBlockStyles("scrollbarThumbRadius",[{selector:".%s-horizontal-scroller",styleRule:"--stk-scrollbar-thumb-radius",attrName:"scrollbarThumbRadius",key:"scrollbarThumbRadius",hasUnits:"px",enabledCallback:e=>e("showScrollbar"),dependencies:["showScrollbar"]}]),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);const i=r;var s=o(910),c=o(4184),d=o.n(c),u=o(9783),b=o(7545),m=o(3749),p=o(8003),g=o(3284);const k=["stackable/column"],h=[["stackable/column"],["stackable/column"],["stackable/column"]],v=(0,a.memo)((e=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(n.InspectorTabs,null),(0,a.createElement)(n.InspectorLayoutControls,null,(0,a.createElement)(l.ColumnsControl,{sliderMax:10}),(0,a.createElement)(n.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)(n.ControlSeparator,null),(0,a.createElement)(n.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)(n.AdvancedRangeControl,{label:(0,p.__)("Height",s.i18n),attribute:"horizontalScrollerHeight",min:"0",sliderMin:0,sliderMax:500,step:"1",placeholder:"auto"}),(0,a.createElement)(n.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)(n.AdvancedRangeControl,{label:(0,p.__)("Gap",s.i18n),attribute:"horizontalScrollerColumnGap",responsive:"all",min:0,sliderMax:100,placeholder:"0"}),(0,a.createElement)(n.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)(n.ControlSeparator,null)),(0,a.createElement)(l.Alignment.InspectorControls,{hasRowAlignment:!0}),(0,a.createElement)(n.InspectorStyleControls,null,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,p.__)("Scrollbar",s.i18n),initialOpen:!1,hasToggle:!0,checked:e.showScrollbar,onChange:t=>e.setAttributes({showScrollbar:t})},(0,a.createElement)(n.AdvancedRangeControl,{label:(0,p.__)("Height",s.i18n),attribute:"scrollbarHeight",min:"0",sliderMin:0,sliderMax:25,step:"1",placeholder:"10"}),(0,a.createElement)(n.ColorPaletteControl,{label:(0,p.__)("Track Color",s.i18n),attribute:"scrollbarTrackColor"}),(0,a.createElement)(n.ColorPaletteControl,{label:(0,p.__)("Thumb Color",s.i18n),attribute:"scrollbarThumbColor"}),(0,a.createElement)(n.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)(l.BlockDiv.InspectorControls,null),(0,a.createElement)(l.Advanced.InspectorControls,null),(0,a.createElement)(l.Transform.InspectorControls,null),(0,a.createElement)(l.EffectsAnimations.InspectorControls,null),(0,a.createElement)(l.CustomAttributes.InspectorControls,null),(0,a.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-horizontal-scroller"}),(0,a.createElement)(l.Responsive.InspectorControls,null),(0,a.createElement)(l.ConditionalDisplay.InspectorControls,null)))),C=(0,m.compose)(u.withBlockWrapperIsHovered,u.withQueryLoopContext,u.withBlockAttributeContext,(0,u.withBlockStyleContext)(i))((e=>{const{className:t,setAttributes:o}=e,{showScrollbar:r,scrollbarHeight:c}=e.attributes,u=(0,l.getAlignmentClasses)(e.attributes),{hasInnerBlocks:m}=(0,g.useSelect)((t=>{const{getBlockOrder:o}=t("core/block-editor");return{hasInnerBlocks:o(e.clientId).length>0}}),[e.clientId]),[p,C]=n.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,l.getContentAlignmentClasses)(e.attributes,"horizontal-scroller",f),{"stk--with-scrollbar":r}),S=(0,n.useBlockCssGenerator)({attributes:e.attributes,blockStyles:i,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:r,scrollbarHeight:c}),(0,a.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:y},S&&(0,a.createElement)("style",{key:"block-css"},S),(0,a.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-horizontal-scroller"}),!m&&(0,a.createElement)(n.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)(n.ColumnInnerBlocks,{providerValue:p,orientation:"horizontal",renderAppender:!1,template:e.attributes.templateLock?void 0:h,allowedBlocks:k,templateLock:e.attributes.templateLock||!1}))),e.isHovered&&m&&(0,a.createElement)(l.MarginBottom,null))}));var y=o(7462),f=o(78),B=o(3882);const S=e=>{const{attributes:t}=e,o=(0,l.getRowClasses)(e.attributes),n=(0,l.getAlignmentClasses)(e.attributes),r=(0,l.getResponsiveClasses)(e.attributes),i=d()([e.className,"stk-block-horizontal-scroller",r]),s=d()((0,B.applyFilters)("stackable.horizontal-scroller.save.contentClassNames",[[o,"stk-inner-blocks",n,"stk-block-content"],(0,l.getContentAlignmentClasses)(e.attributes,"horizontal-scroller")],e),{"stk--with-scrollbar":t.showScrollbar});return(0,a.createElement)(l.BlockDiv.Content,{className:i,attributes:t,version:e.version},t.generatedCss&&(0,a.createElement)("style",null,t.generatedCss),(0,a.createElement)(l.CustomCSS.Content,{attributes:t}),(0,a.createElement)("div",(0,y.Z)({className:s,tabIndex:0},(0,B.applyFilters)("stackable.horizontal-scroller.save.scroller-props",{},e)),(0,a.createElement)(f.InnerBlocks.Content,null)))},w=(0,u.withVersion)(s.version)(S),_=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:""}),l.BlockDiv.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.ContentAlign.addAttributes(t),t.getMerged(e)},A=_(s.version),E={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:[]}]}]},T=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 x=o(4247),I=o.n(x);(0,B.addFilter)("stackable.horizontal-scroller.save.scroller-props","stackable/3.19.0",((e,t)=>(0,b.semverCompare)(t.version,"<","3.19.0")?{...e,tabIndex:void 0}:e)),(0,B.addFilter)("stackable.horizontal-scroller.save.contentClassNames","stackable/3_8_0",((e,t)=>I()(t.version,"3.8.0")>=0?e:[...e,{"stk--fit-content":!0}]));const H=[{attributes:{..._("3.18.1"),anchor:{attribute:"id",selector:"*",source:"attribute",type:"string"}},save:e=>(e.version="3.18.1",S(e))},{attributes:_("3.16.2"),save:(0,u.withVersion)("3.16.2")(S),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=l.deprecateBlockHeight.migrate(t),t}},{attributes:_("3.15.3"),save:(0,u.withVersion)("3.15.3")(S),isEligible:e=>l.deprecateBlockHeight.isEligible(e),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.deprecateBlockHeight.migrate(t),t}},{attributes:_("3.12.11"),save:(0,u.withVersion)("3.12.11")(S),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:_("3.11.9"),save:(0,u.withVersion)("3.11.9")(S),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:_("3.7.9"),save:(0,u.withVersion)("3.7.9")(S),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var z=o(5469);const M={...T,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:E,deprecated:H,edit:C,save:w,substitute:z.default}},5469:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/horizontal-scroller",transform:(e,t)=>["stackable/columns",{...e},t]},l=a},1840:(e,t,o)=>{"use strict";o.d(t,{h:()=>C,Z:()=>f});var a=o(2610),l=o(9384),n=o(7200);const r=new n.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.ContainerDiv.addStyles(r,{sizeSelector:".stk-block-icon-box__content",sizeHorizontalAlignRule:"margin",sizeVerticalAlignRule:"justifyContent"}),l.MarginBottom.addStyles(r);const i=r;var s=o(910),c=o(8085),d=o(4184),u=o.n(d),b=o(9783),m=o(7545),p=o(9600),g=o(3749),k=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)(n.InspectorTabs,{hasLayoutPanel:!1}),(0,a.createElement)(l.BlockDiv.InspectorControls,null),(0,a.createElement)(l.BlockLink.InspectorControls,null),(0,a.createElement)(l.Advanced.InspectorControls,null),(0,a.createElement)(l.Transform.InspectorControls,null),(0,a.createElement)(l.EffectsAnimations.InspectorControls,null),(0,a.createElement)(l.CustomAttributes.InspectorControls,null),(0,a.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-box"}),(0,a.createElement)(l.Responsive.InspectorControls,null),(0,a.createElement)(l.ConditionalDisplay.InspectorControls,null),(0,a.createElement)(l.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content",hasContentVerticalAlign:!0}),(0,a.createElement)(n.InspectorStyleControls,null,(0,a.createElement)(n.InspectorBottomTip,null))))),f=(0,g.compose)(b.withBlockWrapperIsHovered,b.withQueryLoopContext,b.withBlockAttributeContext,(0,b.withBlockStyleContext)(i))((e=>{var t;const{className:o}=e,{hasInnerBlocks:r,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,l.getAlignmentClasses)(e.attributes),m=u()([o,"stk-block-icon-box"]),p=u()(["stk-block-content","stk-inner-blocks",b,"stk-block-icon-box__content"]),g=null===(t=(0,c.last)(d))||void 0===t?void 0:t.name,h=r?["stackable/text","core/paragraph"].includes(g)?()=>(0,a.createElement)(a.Fragment,null):k.InnerBlocks.DefaultBlockAppender:k.InnerBlocks.ButtonBlockAppender,f=(0,n.useBlockCssGenerator)({attributes:e.attributes,blockStyles:i,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)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:m},f&&(0,a.createElement)("style",{key:"block-css"},f),(0,a.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-icon-box"}),(0,a.createElement)(l.ContainerDiv,{className:p},(0,a.createElement)(k.InnerBlocks,{template:C,templateLock:!1,renderAppender:h}))),e.isHovered&&(0,a.createElement)(l.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 l=o(1840),n=o(2610),r=o(910),i=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),l=(0,d.getResponsiveClasses)(t),r=c()([o,"stk-block-icon-box",l]),i=c()(["stk-block-content","stk-inner-blocks",a,"stk-block-icon-box__content"]);return(0,n.createElement)(d.BlockDiv.Content,{className:r,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.ContainerDiv.Content,{className:i,attributes:t},(0,n.createElement)(u.InnerBlocks.Content,null),(0,n.createElement)(d.BlockLink.Content,{attributes:t})))},m=(0,o(3749).compose)((0,i.withVersion)(r.version))(b);var p=o(7545);const g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.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)},k=g(r.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",r.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.",r.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},C=[{attributes:g("3.16.2"),save:(0,i.withVersion)("3.16.2")(b),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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=d.deprecateBlockHeight.migrate(t),t}},{attributes:g("3.15.3"),save:(0,i.withVersion)("3.15.3")(b),isEligible:e=>d.deprecateBlockHeight.isEligible(e),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=d.deprecateBlockHeight.migrate(t),t}},{attributes:g("3.12.11"),save:(0,i.withVersion)("3.12.11")(b),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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:g("3.11.9"),save:(0,i.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,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:g("3.7.9"),save:(0,i.withVersion)("3.7.9")(b),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:g("3.7.9"),save:(0,i.withVersion)("3.7.9")(b)}],y={...a,icon:o(9467).IconBoxIcon,attributes:k,supports:{anchor:!0,html:!1,align:!0,spacing:!0},example:v,deprecated:C,edit:l.Z,save:m}},7511:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/icon-box",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t]]]},l=a},4391:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>z});var a=o(2610),l=o(4184),n=o.n(l),r=o(910),i=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]:r.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)},g=p(r.version),k=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});s.BlockDiv.addStyles(k),s.Advanced.addStyles(k),s.Transform.addStyles(k),s.Button.addStyles(k,{selector:".stk-button",hoverSelector:".stk-button:hover",textSelector:".stk-button__inner-text",textHoverSelector:".stk-button:hover .stk-button__inner-text"}),s.EffectsAnimations.addStyles(k);const h=k;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",r.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",r.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",r.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",r.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)(i.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)))),w=(0,d.compose)(c.withBlockWrapper,c.withQueryLoopContext,c.withBlockAttributeContext,(0,c.withBlockStyleContext)(h))((e=>{const{className:t}=e,o=s.CustomAttributes.getCustomAttributes(e.attributes),l=n()([t,"stk-block-icon-button"]),c=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:h,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)(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:l,applyCustomAttributes:!1},(0,a.createElement)(s.Button,{linkTrigger:".stk--inner-svg",buttonProps:{id:e.attributes.anchorId||void 0,...o}})))})),_=e=>{const{className:t,...o}=e,l=(0,s.getResponsiveClasses)(e.attributes),r=s.CustomAttributes.getCustomAttributes(e.attributes),i=n()([t,"stk-block-icon-button",l]);return(0,a.createElement)(s.BlockDiv.Content,{className:i,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,...r}})))},A=(0,d.compose)((0,c.withVersion)(r.version))(_),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,H=[{attributes:p("3.16.2"),save:(0,c.withVersion)("3.16.2")(_),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=s.deprecateBlockHeight.migrate(t),t}},{attributes:p("3.15.3"),save:(0,c.withVersion)("3.15.3")(_),isEligible:e=>s.deprecateBlockHeight.isEligible(e),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=s.deprecateBlockHeight.migrate(t),t}},{attributes:p("3.12.11"),save:(0,c.withVersion)("3.12.11")(_),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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")(_),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")(_),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)}}],z={...E,icon:o(9467).IconButtonIcon,attributes:g,supports:{anchor:!0},transforms:I,deprecated:H,edit:w,save:A}},5295:(e,t,o)=>{"use strict";o.d(t,{h:()=>k,Z:()=>v});var a=o(2610),l=o(9384),n=o(7200);const r=new n.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.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"}]),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 i=r;var s=o(910),c=o(4184),d=o.n(c),u=o(9783),b=o(3749),m=o(78),p=o(8003),g=o(3882);const k=[["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)(n.InspectorTabs,{hasLayoutPanel:!1}),(0,a.createElement)(n.InspectorStyleControls,null,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,p.__)("General",s.i18n),id:"general",initialOpen:!0},(0,a.createElement)(n.AdvancedRangeControl,{label:(0,p.__)("Icon Gap",s.i18n),attribute:"iconGap2",responsive:"all",min:0,sliderMax:300,placeholder:"28"}))),(0,a.createElement)(l.BlockDiv.InspectorControls,null),(0,a.createElement)(l.Advanced.InspectorControls,null),(0,a.createElement)(l.Transform.InspectorControls,null),(0,a.createElement)(l.EffectsAnimations.InspectorControls,null),(0,a.createElement)(l.CustomAttributes.InspectorControls,null),(0,a.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-label"}),(0,a.createElement)(l.Responsive.InspectorControls,null),(0,a.createElement)(l.ConditionalDisplay.InspectorControls,null),(0,a.createElement)(n.InspectorStyleControls,null,(0,a.createElement)(n.InspectorBottomTip,null))))),v=(0,b.compose)(u.withBlockWrapperIsHovered,u.withQueryLoopContext,u.withBlockAttributeContext,(0,u.withBlockStyleContext)(i))((e=>{const{className:t,attributes:o,clientId:r}=e,c=(0,l.getRowClasses)(o),u=(0,l.getAlignmentClasses)(o),b=d()([t,"stk-block-icon-label",c]),p=d()(["stk-inner-blocks",u,"stk-block-content"]),g=(0,n.useBlockCssGenerator)({attributes:e.attributes,blockStyles:i,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),g&&(0,a.createElement)("style",{key:"block-css"},g),(0,a.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-icon-label"}),(0,a.createElement)(l.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:k,templateLock:"insert",templateInsertUpdatesSelection:!0}))),e.isHovered&&(0,a.createElement)(l.MarginBottom,{previewSelector:`[data-block="${r}"] > .stk-block`}))}));(0,g.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/icon-label",((e,t)=>"stackable/icon-label"!==(null==t?void 0:t.name)&&e)),(0,g.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),l=o(5295),n=o(2610),r=o(4184),i=o.n(r),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),l=(0,d.getAlignmentClasses)(t),r=(0,d.getResponsiveClasses)(t),s=i()([o,"stk-block-icon-label",r]),c=i()([a,"stk-inner-blocks",l,"stk-block-content"]);return(0,n.createElement)(d.BlockDiv.Content,{className:s,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(d.CustomCSS.Content,{attributes:t}),(0,n.createElement)("div",{className:c},(0,n.createElement)(u.InnerBlocks.Content,null)))},m=(0,o(3749).compose)((0,s.withVersion)(c.version))(b);var p=o(7545);const g=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)},k=g(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:g("3.16.2"),save:(0,s.withVersion)("3.16.2")(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=d.deprecateBlockHeight.migrate(t),t}},{attributes:g("3.15.3"),save:(0,s.withVersion)("3.15.3")(b),isEligible:e=>d.deprecateBlockHeight.isEligible(e),migrate:e=>{let t={...e};return t=d.deprecateBlockHeight.migrate(t),t}},{attributes:g("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,l=!!(a.iconSize||a.iconSizeTablet||a.iconSizeMobile),n=!!(e.iconGap||0===e.iconGap||e.iconGapTablet||e.iconGapMobile),r=!!(e.iconGap2||0===e.iconGap2||e.iconGap2Tablet||e.iconGap2Mobile);return n||l&&!r},migrate:(e,t)=>{const o={...e},{iconGap:a,iconGapTablet:l,iconGapMobile:n}=e,r=t[0].attributes,{iconSize:i,iconSizeTablet:s,iconSizeMobile:c}=r,d=i||36,u=s||d,b=c||u,m=a||64,p=l||m,g=n||p,k=m-d>=0?m-d:0,h=p-u>=0?p-u:0,v=g-b>=0?g-b:0;return o.iconGap2=28===k?"":k,o.iconGap2Tablet=28===h?"":h,o.iconGap2Mobile=28===v?"":v,o.iconGap="",o.iconGapTablet="",o.iconGapMobile="",o}},{attributes:g("3.12.11"),save:(0,s.withVersion)("3.12.11")(b),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:g("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:g("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:k,supports:{anchor:!0,align:["center","wide","full"],stkBlockLinking:!1,spacing:!0},example:v,deprecated:C,edit:l.Z,save:m,substitute:y.default}},2946:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/icon-label",to:"stackable/text",transform:(e,t)=>["stackable/text",{text:t[1][1].text}]},l=a},941:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>M});var a=o(9467),l=o(7462),n=o(2610),r=o(9384),i=o(7200);const s=new i.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.Alignment.addStyles(s),r.Advanced.addStyles(s),r.Transform.addStyles(s),r.Typography.addStyles(s,{selector:".stk-block-icon-list-item__text",hoverSelector:".stk-block-icon-list-item__text:hover"}),r.EffectsAnimations.addStyles(s);const c=s;var d=o(5319),u=o(3749),b=o(3284),m=o(378),p=o(78);const g=wp.keycodes;function k(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=k(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,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,{tabs:B,hasLayoutPanel:!1}),(0,n.createElement)(r.Typography.InspectorControls,(0,l.Z)({},e,{hasTextTag:!1,initialOpen:!0,hasTextShadow:!0})),(0,n.createElement)(r.Advanced.InspectorControls,null),(0,n.createElement)(r.Transform.InspectorControls,null),(0,n.createElement)(r.EffectsAnimations.InspectorControls,null),(0,n.createElement)(r.CustomAttributes.InspectorControls,null),(0,n.createElement)(r.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-list-item"}),(0,n.createElement)(r.Responsive.InspectorControls,null),(0,n.createElement)(r.ConditionalDisplay.InspectorControls,null)))),w=(0,u.compose)(f.withBlockWrapperIsHovered,f.withQueryLoopContext,f.withBlockAttributeContext,(0,f.withBlockStyleContext)(c))((e=>{const{attributes:t,clientId:o,onReplace:a,mergeBlocks:l,context:s,className:k,setAttributes:C}=e,{icon:f,text:B}=t,w=(0,r.getTypographyClasses)(e.attributes),_=(0,r.getAlignmentClasses)(e.attributes),{parentBlock:A}=(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,n.useRef)(),I=(0,n.useRef)();(0,n.useEffect)((()=>{clearTimeout(x.current),E!==e.attributes.ordered&&(x.current=setTimeout((()=>{(0,b.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),C({ordered:E})}),300))}),[E]),(0,n.useEffect)((()=>{clearTimeout(I.current),T!==e.attributes.parentUniqueId&&(I.current=setTimeout((()=>{(0,b.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),C({parentUniqueId:T})}),300))}),[T]);const H=y()([k,"stk-block-icon-list-item"]),z=y()(["stk-block-icon-list-item__text",w,_]),M=((e,t)=>{const{removeBlocks:o,selectionChange:a,insertBlocks:l}=(0,b.useDispatch)(p.store),{getBlock:r,getBlockRootClientId:i,getBlockIndex:s}=(0,b.useSelect)(p.store),c=(0,n.useRef)(e);return c.current=e,(0,u.useRefEffect)((e=>{function n(e){var n;if(e.defaultPrevented||e.keyCode!==g.ENTER)return;if(c.current.length)return;e.preventDefault();const d=r(i(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)()),k=[...(null===(n=d.innerBlocks[u].innerBlocks[0])||void 0===n?void 0:n.innerBlocks)||[],...d.innerBlocks.slice(u+1)],h=k.length?[(0,m.cloneBlock)({...d,innerBlocks:k})]:[],v=s(d.clientId),C=i(d.clientId);l([p,...h],v+1,C),a(p.clientId)}return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}}),[t])})(B,o),O=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:v.version});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(S,{blockState:e.blockState}),(0,n.createElement)(r.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:H,blockTag:"li",renderHtmlTag:!1,tabIndex:-1},O&&(0,n.createElement)("style",{key:"block-css"},O),(0,n.createElement)(r.CustomCSS,{mainBlockClass:"stk-block-icon-list-item"}),(0,n.createElement)("div",{className:"stk-block-icon-list-item__content"},!E&&f&&(0,n.createElement)(r.Icon,{value:f,openEvenIfUnselected:!0,hasLinearGradient:!1}),!E&&!f&&(0,n.createElement)(r.Icon,{value:(0,d.xP)(`#stk-icon-list__icon-svg-def-${T}`),openEvenIfUnselected:!0,hasLinearGradient:!1}),E&&(0,n.createElement)("span",{className:"stk-block-icon-list-item__marker"}),(0,n.createElement)(r.Typography,{ref:M,tagName:"span",className:z,onMerge:e=>{l(e),e||t.text||1!==A.innerBlocks.length||(0,b.dispatch)("core/block-editor").removeBlocks([o,A.clientId])},onReplace:a?function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),l=1;l<t;l++)o[l-1]=arguments[l];a(h(e),...o)}:void 0,enableDebounce:!1}))))})),_=(0,u.createHigherOrderComponent)((e=>t=>{if("stackable/icon-list-item"!==t.name)return(0,n.createElement)(e,t);const o={...t.wrapperProps,tabIndex:-1};return(0,n.createElement)(e,(0,l.Z)({},t,{wrapperProps:o}))}),"withNegativeTabIndex");wp.hooks.addFilter("editor.BlockEdit","stackable/with-icon-list-negative-tab-index",_);const A=e=>{const{className:t,attributes:o}=e,a=(0,r.getResponsiveClasses)(o),l=(0,r.getTypographyClasses)(e.attributes),i=(0,r.getAlignmentClasses)(e.attributes),s=y()([t,"stk-block-icon-list-item",a]),c=y()(["stk-block-icon-list-item__text",l,i]);return(0,n.createElement)(r.BlockDiv.Content,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:s,blockTag:"li",renderHtmlTag:!1},o.generatedCss&&(0,n.createElement)("style",null,o.generatedCss),(0,n.createElement)(r.CustomCSS.Content,{attributes:o}),(0,n.createElement)("div",{className:"stk-block-icon-list-item__content"},!o.ordered&&o.icon&&(0,n.createElement)(r.Icon.Content,{value:o.icon,attributes:o,hasLinearGradient:!1}),!o.ordered&&!o.icon&&(0,n.createElement)(r.Icon.Content,{attributes:o,useSvgDef:!0,value:(0,d.xP)(`#stk-icon-list__icon-svg-def-${o.parentUniqueId}`),hasLinearGradient:!1}),o.ordered&&(0,n.createElement)("span",{className:"stk-block-icon-list-item__marker","aria-hidden":"true"}),(0,n.createElement)(r.Typography.Content,{attributes:o,tagName:"span",className:c})))},E=(0,u.compose)((0,f.withVersion)(v.version))(A);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 r.BlockDiv.addAttributes(t),r.Style.addAttributes(t),r.EffectsAnimations.addAttributes(t),r.CustomAttributes.addAttributes(t),r.CustomCSS.addAttributes(t),r.Responsive.addAttributes(t),r.ConditionalDisplay.addAttributes(t),r.Advanced.addAttributes(t),r.Transform.addAttributes(t),r.Alignment.addAttributes(t),r.MarginBottom.addAttributes(t),r.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),H=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"}'),z=[{attributes:x("3.16.2"),save:(0,f.withVersion)("3.16.2")(A),isEligible:e=>{const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyFontSize.migrate("%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:x("3.15.3"),save:(0,f.withVersion)("3.15.3")(A),isEligible:e=>{const t=r.deprecateTypographyFontSize.isEligible("%s")(e),o=r.deprecateBlockHeight.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyFontSize.migrate("%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:x("3.12.11"),save:(0,f.withVersion)("3.12.11")(A),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t}}],M={...H,icon:a.IconListItemIcon,attributes:I,supports:{anchor:!0,__experimentalSelector:"li",reusable:!1,stkSaveBlockStyle:!1,splitting:!0},example:{attributes:{uniqueId:"1234567"},innerBlocks:[]},edit:w,save:E,deprecated:z,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),l=o(4184),n=o.n(l),r=o(9384),i=o(9783),s=o(910);const c=e=>{const{attributes:t,className:o}=e,l=(0,r.getResponsiveClasses)(t),i=(0,r.getTypographyClasses)(t),s=(0,r.getAlignmentClasses)(t),c=t.ordered?"ol":"ul",d=n()([o,"stk-block-icon-list",s,l,i]);return(0,a.createElement)(r.BlockDiv.Content,{className:d,attributes:t,version:e.version},t.generatedCss&&(0,a.createElement)("style",null,t.generatedCss),(0,a.createElement)(r.CustomCSS.Content,{attributes:t}),(0,a.createElement)(r.Typography.Content,{tagName:c,attributes:t,multiline:"li"}))};(0,o(3749).compose)((0,i.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 r.Alignment.addAttributes(t),r.Advanced.addAttributes(t),r.Transform.addAttributes(t),r.BlockDiv.addAttributes(t),r.Style.addAttributes(t),r.CustomAttributes.addAttributes(t),r.CustomCSS.addAttributes(t),r.EffectsAnimations.addAttributes(t),r.Responsive.addAttributes(t),r.ConditionalDisplay.addAttributes(t),r.Typography.addAttributes(t,"ul,ol",{hasTextTag:!1,multiline:"li",multilineWrapperTags:["ol","ul"]}),r.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])),g=(e,t)=>{if(!e)return;const o=`ul li:nth-child(${t+1})`;return o in e?e[o]:void 0},k=()=>{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=>k()*parseFloat(e),v=e=>{return t=k()*parseFloat(e)/2.067,Math.round(4*t)/4;var t},C=[{attributes:b("3.16.2"),save:(0,i.withVersion)("3.16.2")(c),isEligible:e=>{const t=r.deprecateBlockShadowColor.isEligible(e),o=r.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:l,iconSize:n,ordered:i,iconGap:s}=e,c=n||1,u=s||0;return o={...o,listFullWidth:!1,iconVerticalAlignment:"baseline",iconGap:u+4,iconSize:i?h(c):v(c)},t=a?p(a).map(((e,t)=>{const o=(0,m.createBlock)("stackable/icon-list-item",{text:e,icon:g(l,t)});return o.attributes.uniqueId=(0,d.createUniqueClass)(o.clientId),o})):[(0,m.createBlock)("stackable/icon-list-item")],o=r.deprecateContainerBackgroundColorOpacity.migrate(o),o=r.deprecateBlockBackgroundColorOpacity.migrate(o),o=r.deprecateTypographyGradientColor.migrate("%s")(o),o=r.deprecateBlockShadowColor.migrate(o),o=r.deprecateContainerShadowColor.migrate(o),o=r.deprecateTypographyFontSize.migrate("%s")(o),o=r.deprecateBlockHeight.migrate(o),[o,t]}},{attributes:b("3.15.3"),save:(0,i.withVersion)("3.15.3")(c),isEligible:e=>{const t=r.deprecateTypographyFontSize.isEligible("%s")(e),o=r.deprecateBlockHeight.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:l,iconSize:n,ordered:i,iconGap:s}=e,c=n||1,u=s||0;return o={...o,listFullWidth:!1,iconVerticalAlignment:"baseline",iconGap:u+4,iconSize:i?h(c):v(c)},t=a?p(a).map(((e,t)=>{const o=(0,m.createBlock)("stackable/icon-list-item",{text:e,icon:g(l,t)});return o.attributes.uniqueId=(0,d.createUniqueClass)(o.clientId),o})):[(0,m.createBlock)("stackable/icon-list-item")],o=r.deprecateContainerBackgroundColorOpacity.migrate(o),o=r.deprecateBlockBackgroundColorOpacity.migrate(o),o=r.deprecateTypographyGradientColor.migrate("%s")(o),o=r.deprecateBlockShadowColor.migrate(o),o=r.deprecateContainerShadowColor.migrate(o),o=r.deprecateTypographyFontSize.migrate("%s")(o),o=r.deprecateBlockHeight.migrate(o),[o,t]}},{attributes:b("3.12.11"),save:(0,i.withVersion)("3.12.11")(c),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=r.deprecateBlockShadowColor.isEligible(e),o=r.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:l,iconSize:n,ordered:i,iconGap:s}=e,c=n||1,u=s||0;return o={...o,listFullWidth:!1,iconVerticalAlignment:"baseline",iconGap:u+4,iconSize:i?h(c):v(c)},t=a?p(a).map(((e,t)=>{const o=(0,m.createBlock)("stackable/icon-list-item",{text:e,icon:g(l,t)});return o.attributes.uniqueId=(0,d.createUniqueClass)(o.clientId),o})):[(0,m.createBlock)("stackable/icon-list-item")],o=r.deprecateContainerBackgroundColorOpacity.migrate(o),o=r.deprecateBlockBackgroundColorOpacity.migrate(o),o=r.deprecateTypographyGradientColor.migrate("%s")(o),o=r.deprecateBlockShadowColor.migrate(o),o=r.deprecateContainerShadowColor.migrate(o),[o,t]}},{attributes:b("3.12.8"),save:(0,i.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:l,iconSize:n,ordered:i,iconGap:s}=e,c=n||1,d=s||0;return o={...o,listFullWidth:!1,iconVerticalAlignment:"baseline",iconGap:d+4,iconSize:i?h(c):v(c)},t=a?p(a).map(((e,t)=>(0,m.createBlock)("stackable/icon-list-item",{text:e,icon:g(l,t)}))):[(0,m.createBlock)("stackable/icon-list-item")],o=r.deprecateContainerBackgroundColorOpacity.migrate(o),o=r.deprecateBlockBackgroundColorOpacity.migrate(o),o=r.deprecateTypographyGradientColor.migrate("%s")(o),o=r.deprecateBlockShadowColor.migrate(o),o=r.deprecateContainerShadowColor.migrate(o),[o,t]}},{attributes:b("3.11.9"),save:(0,i.withVersion)("3.11.9")(c),isEligible:e=>{const t=r.deprecateContainerBackgroundColorOpacity.isEligible(e),o=r.deprecateBlockBackgroundColorOpacity.isEligible(e),a=r.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t}},{attributes:b("3.7.9"),save:(0,i.withVersion)("3.7.9")(c),migrate:e=>{let t=r.deprecateContainerBackgroundColorOpacity.migrate(e);return t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),r.deprecateBlockBackgroundColorOpacity.migrate(t)}}]},7865:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>V});var a=o(9467),l=o(7462),n=o(2610),r=o(9384),i=o(7200);const s=new i.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"}]),r.Alignment.addStyles(s),r.Typography.addStyles(s,{selector:["ul li","ol li","ul li span","ol li span"],hoverSelector:[".%s:hover ul li",".%s:hover ol li"]}),r.MarginBottom.addStyles(s),r.BlockDiv.addStyles(s),r.Advanced.addStyles(s),r.Transform.addStyles(s),r.EffectsAnimations.addStyles(s);const c=s;var d=o(4184),u=o.n(d),b=o(910),m=o(9783),p=o(8003),g=o(5319),k=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"}],w=[{label:(0,p.__)("List",b.i18n),value:""},{label:(0,p.__)("Grid",b.i18n),value:"grid"}],_=[{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"}],A=[{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,n.memo)((e=>{const{getPlaceholder:t}=(0,y.useBlockLayoutDefaults)();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,p.__)("General",b.i18n),initialOpen:!0,id:"general"},(0,n.createElement)(i.AlignButtonsControl,{label:(0,p.sprintf)((0,p.__)("%s Alignment",b.i18n),(0,p.__)("List Item",b.i18n)),attribute:"listAlignment",responsive:"all"}),(0,n.createElement)(i.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,n.createElement)(i.AlignButtonsControl,{label:(0,p.sprintf)((0,p.__)("%s Alignment",b.i18n),(0,p.__)("List",b.i18n)),attribute:"contentAlign",responsive:"all",justified:!1}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,p.__)("Columns",b.i18n),attribute:"columns",min:"1",sliderMax:"4",step:"1",placeholder:"1",responsive:"all"}),e.columns>1&&(0,n.createElement)(i.AdvancedSelectControl,{label:(0,p.__)("List Display Style",b.i18n),options:w,attribute:"listDisplayStyle"}),e.columns>1&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,p.__)("Column Gap",b.i18n),attribute:"columnGap",min:"0",sliderMax:"50",responsive:"all",placeholder:"16"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,p.__)("Row Gap",b.i18n),attribute:"rowGap",min:"0",sliderMax:"50",responsive:"all",placeholder:t("icon-list-row-gap")}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,p.__)("Icon Gap",b.i18n),attribute:"iconGap",min:"0",sliderMax:"20",responsive:"all",placeholder:t("icon-list-icon-gap")}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,p.__)("Indentation",b.i18n),attribute:"indentation",min:"0",sliderMax:"50",responsive:"all",placeholder:t("icon-list-indentation")}))),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,p.__)("Icons & Numbers",b.i18n),initialOpen:!1,id:"icon-and-markers"},(0,n.createElement)(i.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,n.createElement)(i.IconControl,{label:(0,p.__)("Icon",b.i18n),value:e.icon,onChange:t=>{e.setAttributes({icon:t}),e.resetCustomIcons()},defaultValue:g.t5}),e.ordered&&(0,n.createElement)(i.AdvancedSelectControl,{label:(0,p.__)("List Type",b.i18n),attribute:"listType",options:_}),e.ordered&&(0,n.createElement)(i.AdvancedToggleControl,{label:(0,p.__)("With Period",b.i18n),attribute:"hasPeriod",defaultValue:!0}),(0,n.createElement)(i.ColorPaletteControl,{label:(0,p.__)("Color",b.i18n),attribute:"markerColor",hover:"all"}),(0,n.createElement)(i.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,n.createElement)(i.AdvancedRangeControl,{label:(0,p.__)("Icon Opacity",b.i18n),attribute:"iconOpacity",min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",hover:"all"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,p.__)("Icon Rotation",b.i18n),attribute:"iconRotation",min:0,max:360,allowReset:!0,placeholder:"0"}),(0,n.createElement)(i.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,n.createElement)(i.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,n.createElement)(i.PanelAdvancedSettings,{title:(0,p.__)("Icon List Item Borders",b.i18n),initialOpen:!1,id:"icon-list-item-borders"},(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,p.__)("Borders",b.i18n),controls:A,className:"ugb-border-controls__border-type-toolbar",attribute:"listItemBorderStyle",fullwidth:!0,isSmall:!0}),e.listItemBorderStyle&&(0,n.createElement)(i.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,n.createElement)(i.ColorPaletteControl,{label:(0,p.__)("Border Color",b.i18n),attribute:"listItemBorderColor",value:e.listItemBorderColor?e.listItemBorderColor:"#00000066",default:"#00000066"}))),(0,n.createElement)(r.Typography.InspectorControls,(0,l.Z)({},e,{isMultiline:!0,initialOpen:!1,hasTextTag:!1,hasTextContent:!1})),(0,n.createElement)(r.Alignment.InspectorControls,{enableContentAlign:!1}),(0,n.createElement)(r.BlockDiv.InspectorControls,null),(0,n.createElement)(r.Advanced.InspectorControls,null),(0,n.createElement)(r.Transform.InspectorControls,null),(0,n.createElement)(r.EffectsAnimations.InspectorControls,null),(0,n.createElement)(r.CustomAttributes.InspectorControls,null),(0,n.createElement)(r.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon-list"}),(0,n.createElement)(r.Responsive.InspectorControls,null),(0,n.createElement)(r.ConditionalDisplay.InspectorControls,null))})),x=(0,k.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(c))((e=>{const{attributes:t,setAttributes:o,className:a}=e,{ordered:l,icon:s,listItemBorderStyle:d,listItemBorderColor:m,listDisplayStyle:p,listFullWidth:k}=t,C=!k&&"grid"!==p,y=l?"ol":"ul",S=C?"div":y,w=(0,r.getTypographyClasses)(t),_=(0,r.getAlignmentClasses)(t),{innerBlocks:A}=(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",_,w]),x=u()([l?"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}),H=(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)(T,{blockState:e.blockState,setAttributes:o,columns:t.columns,ordered:l,icon:s,listFullWidth:k,listItemBorderStyle:d,listItemBorderColor:m,resetCustomIcons:()=>{A.forEach((e=>{(0,v.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{icon:""})}))}}),H&&(0,n.createElement)("style",{key:"block-css"},H),(0,n.createElement)(r.CustomCSS,{mainBlockClass:"stk-block-icon-list"}),(0,n.createElement)(r.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:E},!l&&(0,n.createElement)(g._h,{icon:s,uniqueId:t.uniqueId}),(0,n.createElement)(S,{className:x},C&&(0,n.createElement)(y,{className:"stk-block-icon-list__group"},I.children),!C&&I.children)),e.isHovered&&(0,n.createElement)(r.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,k.compose)((0,m.withVersion)(b.version))((e=>{const{attributes:t,className:o}=e,a=(0,r.getResponsiveClasses)(t),l=(0,r.getTypographyClasses)(t),i=(0,r.getAlignmentClasses)(t),s=!t.listFullWidth&&"grid"!==t.listDisplayStyle,c=t.ordered?"ol":"ul",d=s?"div":c,b=u()([o,"stk-block-icon-list",i,a,l]),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,n.createElement)(r.BlockDiv.Content,{className:b,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(r.CustomCSS.Content,{attributes:t}),!t.ordered&&(0,n.createElement)(g._h,{icon:t.icon,uniqueId:t.uniqueId}),(0,n.createElement)(d,{className:m},s&&(0,n.createElement)(c,{className:"stk-block-icon-list__group"},(0,n.createElement)(h.InnerBlocks.Content,null)),!s&&(0,n.createElement)(h.InnerBlocks.Content,null)))})),H=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 z=o(7545);const M={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:g.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:""}},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.version;const t=new z.AttributeObject;return r.Alignment.addAttributes(t),r.Advanced.addAttributes(t),r.Transform.addAttributes(t),r.BlockDiv.addAttributes(t),r.Style.addAttributes(t),r.CustomAttributes.addAttributes(t),r.CustomCSS.addAttributes(t),r.EffectsAnimations.addAttributes(t),r.Responsive.addAttributes(t),r.ConditionalDisplay.addAttributes(t),r.Typography.addAttributes(t,"ul,ol",{hasTextTag:!1}),r.MarginBottom.addAttributes(t),t.add({attributes:M,versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)}(b.version),N={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 D=o(6013),R=o(378),L=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,R.createBlock)("stackable/icon-list-item",{text:t})}));else if(1===e.length){const o=(0,L.create)({html:e[0].content});t=(0,L.split)(o,"\n").map((e=>(0,R.createBlock)("stackable/icon-list-item",{text:(0,L.toHTMLString)({value:e})})))}return(0,R.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,R.createBlock)("stackable/icon-list-item",{text:t.content})}));return(0,R.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,R.createBlock)(e,{content:t})))}))),...["stackable/text","stackable/heading"].map((e=>({type:"block",blocks:[e],transform:(t,o)=>U(o).map((t=>(0,R.createBlock)(e,{text:t})))}))),{type:"block",blocks:["core/list"],transform:(e,t)=>{const o=t.map((e=>{let{attributes:t}=e;return(0,R.createBlock)("core/list-item",{content:t.text})}));return(0,R.createBlock)("core/list",{anchor:e.anchor},o)}}]},V={...H,icon:a.IconListIcon,attributes:O,supports:{anchor:!0,spacing:!0,__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:!0},example:N,deprecated:D.default,edit:x,save:I,transforms:P}},6194:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/icon-list",transform:(e,t)=>["core/list",{},t.reduce(((e,t)=>{const o=t[1];return e.push(["core/list-item",{content:o.text}]),e}),[])]},l=a},5319:(e,t,o)=>{"use strict";o.d(t,{t5:()=>i,_h:()=>s,xP:()=>c});var a=o(2610),l=o(8003),n=(o(378),o(7294)),r=o(910);const i='<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,l=`<defs><g id="stk-icon-list__icon-svg-def-${o}">${t}</g></defs>`;return(0,a.createElement)("svg",{dangerouslySetInnerHTML:{__html:l},style:{display:"none"}})},c=e=>`<svg><use xlink:href="${e}"></use></svg>`;(0,n.forwardRef)(((e,t)=>{const{component:o,...l}=e;return(0,a.createElement)(o,l," ",e.children," ")})),(0,l.__)("Number",r.i18n),(0,l.__)("Padded Number",r.i18n),(0,l.__)("Lowercase Roman",r.i18n),(0,l.__)("Uppercase Roman",r.i18n),(0,l.__)("Lowercase Letters",r.i18n),(0,l.__)("Uppercase Letters",r.i18n)},2686:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.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.Icon.addStyles(i,{selector:".stk--svg-wrapper",hoverSelector:".stk--svg-wrapper:hover"});const s=i;var c=o(4184),d=o.n(c),u=o(8085),b=o(910),m=o(9783),p=o(3749),g=o(8003),k=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 n.BlockDiv.addAttributes(t),n.Style.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.Icon.addAttributes(t),n.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,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.Icon.InspectorControls,{initialOpen:!0,hasMultiColor:!0,defaultValue:e.derivedIcon}),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Link.InspectorControls,{hasToggle:!0,isAdvancedTab:!0}),(0,l.createElement)(r.InspectorAdvancedControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,g.__)("Accessibility",b.i18n),id:"accessibility"},(0,l.createElement)(r.AdvancedTextControl,{isDynamic:!1,label:(0,g.__)("Icon Label",b.i18n),attribute:"ariaLabel"}))),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-icon"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),B=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(s))((e=>{const{className:t,attributes:o}=e,a=(0,n.getAlignmentClasses)(o),i=d()([t,"stk-block-icon",a]),c=(0,k.applyFilters)("stackable.block-component.icon.default",v),u=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,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)(f,{derivedIcon:c}),u&&(0,l.createElement)("style",{key:"block-css"},u),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-icon"}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:i},(0,l.createElement)(n.Link,{linkTrigger:".stk--inner-svg"},(0,l.createElement)(n.Icon,{defaultValue:v}))),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))}));(0,k.addFilter)("stackable.icon.design.filtered-block-attributes","stackable/table-of-contents",(e=>(0,u.omit)(e,["icon","icon2"])));var S=o(7462),w=o(78);const _=e=>{const{attributes:t,className:o}=e,a=(0,n.getAlignmentClasses)(e.attributes),r=(0,n.getResponsiveClasses)(e.attributes),i=d()([o,"stk-block-icon",a,r]);return(0,l.createElement)(n.BlockDiv.Content,(0,S.Z)({},w.useBlockProps.save({className:i}),{attributes:t,version:e.version}),t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),t.linkUrl?(0,l.createElement)(n.Link.Content,{attributes:t},(0,l.createElement)(n.Icon.Content,{attributes:t})):(0,l.createElement)(n.Icon.Content,{attributes:t}))},A=(0,p.compose)((0,m.withVersion)(b.version))(_),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 H={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]}))}]},z=H,M=[{attributes:C("3.16.2"),save:(0,m.withVersion)("3.16.2")(_),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:C("3.15.3"),save:(0,m.withVersion)("3.15.3")(_),isEligible:e=>n.deprecateBlockHeight.isEligible(e),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:C("3.12.11"),save:(0,m.withVersion)("3.12.11")(_),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:C("3.11.9"),save:(0,m.withVersion)("3.11.9")(_),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:C("3.7.9"),save:(0,m.withVersion)("3.7.9")(_),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var O=o(6012);const N={...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:z,deprecated:M,edit:B,save:A,substitute:O.default}},6012:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/icon",transform:()=>["core/paragraph",{content:""}]},l=a},4357:(e,t,o)=>{"use strict";o.d(t,{h:()=>v,Z:()=>y});var a=o(2610),l=o(9384),n=o(7200);const r=new n.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);const i=r;var s=o(1032),c=o(4184),d=o.n(c),u=o(8085),b=o(910),m=o(9783),p=o(3749),g=o(78),k=(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)(n.InspectorTabs,null),(0,a.createElement)(l.Alignment.InspectorControls,null),(0,a.createElement)(l.BlockDiv.InspectorControls,null),(0,a.createElement)(l.BlockLink.InspectorControls,null),(0,a.createElement)(l.Advanced.InspectorControls,null),(0,a.createElement)(l.Transform.InspectorControls,null),(0,a.createElement)(l.EffectsAnimations.InspectorControls,null),(0,a.createElement)(l.CustomAttributes.InspectorControls,null),(0,a.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-image-box"}),(0,a.createElement)(l.Responsive.InspectorControls,null),(0,a.createElement)(l.ConditionalDisplay.InspectorControls,null),(0,a.createElement)(n.InspectorBlockControls,null,(0,a.createElement)(n.InspectorBottomTip,null))))),y=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(i))((e=>{var t;const{hasInnerBlocks:o,innerBlocks:r}=(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,l.getBlockOrientation)(e.attributes),m=(0,l.getAlignmentClasses)(e.attributes),p=(0,l.getRowClasses)(e.attributes),k=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)(r))||void 0===t?void 0:t.name,B=o?["stackable/text","core/paragraph"].includes(f)?()=>(0,a.createElement)(a.Fragment,null):g.InnerBlocks.DefaultBlockAppender:g.InnerBlocks.ButtonBlockAppender,S=(0,n.useBlockCssGenerator)({attributes:e.attributes,blockStyles:i,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)(l.CustomCSS,{mainBlockClass:"stk-block-image-box"}),(0,a.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:k,enableVariationPicker:!0},(0,a.createElement)("div",{className:y},(0,a.createElement)(g.InnerBlocks,{templateLock:"insert",template:v,orientation:c,renderAppender:B}))),e.isHovered&&o&&(0,a.createElement)(l.MarginBottom,null))}));(0,k.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/image-box",((e,t)=>"stackable/image-box"!==(null==t?void 0:t.name)&&e)),(0,k.addFilter)("stackable.edit.image.enable-link","stackable/image-box",((e,t)=>"stackable/image-box"!==(null==t?void 0:t.name)&&e)),(0,k.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),l=o(4357),n=o(2610),r=o(4184),i=o.n(r),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),l=(0,d.getRowClasses)(e.attributes),r=i()([e.className,"stk-block-image-box",a,"stk-hover-parent"]),s=i()(["stk-block-content","stk-inner-blocks",o,l,"stk-block-image-box__content"]);return(0,n.createElement)(d.BlockDiv.Content,{className:r,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(d.CustomCSS.Content,{attributes:t}),(0,n.createElement)("div",{className:s},(0,n.createElement)(u.InnerBlocks.Content,null)),(0,n.createElement)(d.BlockLink.Content,{attributes:t,isHidden:!1}))},m=(0,o(3749).compose)((0,s.withVersion)(c.version))(b);var p=o(7545);const g=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)},k=g(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:g("3.16.2"),save:(0,s.withVersion)("3.16.2")(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=d.deprecateBlockHeight.migrate(t),t}},{attributes:g("3.15.3"),save:(0,s.withVersion)("3.15.3")(b),isEligible:e=>d.deprecateBlockHeight.isEligible(e),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=d.deprecateBlockHeight.migrate(t),t}},{attributes:g("3.12.11"),save:(0,s.withVersion)("3.12.11")(b),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:g("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:g("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:k,example:C,deprecated:y,variations:h.Z,edit:l.Z,save:m}},6901:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});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])))]}},l=a},1032:(e,t,o)=>{"use strict";o.d(t,{Z:()=>s});var a=o(7462),l=o(2610);o(7294);var n=o(8003),r=o(3882),i=o(910);const s=(0,r.applyFilters)("stackable.image-box.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",i.i18n),(0,n.__)("Default",i.i18n)),pickerTitle:(0,n.__)("Default",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,n._x)("Subtitle for This Block","Subtitle placeholder",i.i18n),blockMargin:{bottom:8},opacity:0,textColorClass:"has-white-color",textColor1:"#FFFFFF",opacityParentHover:1}],["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",i.i18n),textTag:"h4",textColorClass:"has-white-color",textColor1:"#FFFFFF"}],["stackable/text",{text:(0,n._x)("Text for This Block","Text placeholder",i.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,n.sprintf)((0,n._x)("%s Layout","Block layout name",i.i18n),(0,n.__)("Plain",i.i18n)),pickerTitle:(0,n.__)("Plain",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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,n._x)("Subtitle for This Block","Subtitle placeholder",i.i18n),blockMargin:{bottom:8},transform:"translateY(32px)",transformParentHover:"translateY(0px)",textColorClass:"has-white-color",textColor1:"#FFFFFF"}],["stackable/heading",{text:(0,n._x)("Title for This Block","Heading placeholder",i.i18n),textTag:"h4",transform:"translateY(32px)",transformParentHover:"translateY(0px)",textColorClass:"has-white-color",textColor1:"#FFFFFF"}],["stackable/text",{text:(0,n._x)("Text for This Block","Text placeholder",i.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,n.sprintf)((0,n._x)("%s Layout","Block layout name",i.i18n),(0,n.__)("Box",i.i18n)),attributes:{className:"is-style-box"},pickerTitle:(0,n.__)("Box",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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:!i.isPro,scope:["block"]},{name:"captioned",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",i.i18n),(0,n.__)("Captioned",i.i18n)),attributes:{className:"is-style-captioned"},pickerTitle:(0,n.__)("Captioned",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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:!i.isPro,scope:["block"]},{name:"fade",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",i.i18n),(0,n.__)("Fade",i.i18n)),attributes:{className:"is-style-fade"},pickerTitle:(0,n.__)("Fade",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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:!i.isPro,scope:["block"]},{name:"line",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",i.i18n),(0,n.__)("Line",i.i18n)),attributes:{className:"is-style-line"},pickerTitle:(0,n.__)("Line",i.i18n),pickerIcon:function(e){return(0,l.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,l.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:!i.isPro,scope:["block"]}])},6705:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.addBlockStyles("figcaptionAlignment",[{selector:".%s .stk-img-figcaption",styleRule:"textAlign",attrName:"figcaptionAlignment"}]),n.Alignment.addStyles(i),n.BlockDiv.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.Typography.addStyles(i,{selector:".stk-img-figcaption",hoverSelector:".stk-img-figcaption:hover",attrNameTemplate:"figcaption%s"}),n.EffectsAnimations.addStyles(i),n.Image.addStyles(i);const s=i;var c=o(4184),d=o.n(c),u=o(910),b=o(9783),m=o(8003),p=o(3749),g=o(78),k=o(3882),h=o(3284);const v=["px","vh","%"],C=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.Image.InspectorControls,{initialOpen:!0,heightUnits:v,hasLightbox:!0,hasManuallyChangedDimensions:e.hasManuallyChangedDimensions}),e.enableLink&&(0,l.createElement)(n.Link.InspectorControls,{hasTitle:!0,isAdvancedTab:!0}),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-image"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null),(0,l.createElement)(n.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,(0,b.withBlockStyleContext)(s))((e=>{const{clientId:t,className:o}=e,a=d()((0,n.getTypographyClasses)(e.attributes,"figcaption%s"),"stk-img-figcaption"),i=(0,n.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,k.applyFilters)("stackable.edit.image.enable-link",!0,c),p=d()([o,"stk-block-image",i]),[g,y]=(0,l.useState)(!!e.attributes.imageWidth);(0,l.useEffect)((()=>{y(!!e.attributes.imageWidth)}),[e.attributes.imageWidth]);const f=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:u.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(C,{enableLink:b,hasManuallyChangedDimensions:g}),f&&(0,l.createElement)("style",{key:"block-css"},f),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-image"}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:p},(0,l.createElement)(n.Image,{showTooltips:!0,heightUnits:v,defaultWidth:"100",defaultHeight:"auto",hasManuallyChangedDimensions:g}),e.attributes.figcaptionShow&&(0,l.createElement)(n.Typography,{className:a,attrNameTemplate:"figcaption%s",placeholder:(0,m.__)("Image Caption",u.i18n)})),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))}));(0,k.addFilter)("stackable.block-component.typography.before","stackable/image",((e,t)=>{const{name:o}=(0,g.useBlockEditContext)();return"stackable/image"!==o||"figcaption%s"!==t.attrNameTemplate?e:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AlignButtonsControl,{label:(0,m.__)("Caption Alignment",u.i18n),attribute:"figcaptionAlignment"}))}));var f=o(7462);const B=e=>{const{attributes:t}=e,o=(0,n.getResponsiveClasses)(e.attributes),a=(0,n.getAlignmentClasses)(e.attributes),r=(0,n.getTypographyClasses)(t,"figcaption%s"),i=d()([e.className,"stk-block-image",o,a]);return(0,l.createElement)(n.BlockDiv.Content,{className:i,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(e.attributes.imageUrl||e.attributes.imageExternalUrl)&&(0,l.createElement)(n.Image.Content,{hasWrapper:!0,version:e.version,figcaptionClassnames:r,attributes:t,customWrapper:e.attributes.linkUrl&&(e=>(0,l.createElement)(n.Link.Content,(0,f.Z)({attributes:t},e)))}),(0,l.createElement)(n.BlockLink.Content,{attributes:t}))},S=(0,p.compose)((0,b.withVersion)(u.version))(B);var w=o(7545);const _=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.version;const t=new w.AttributeObject;return n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.Image.addAttributes(t),n.Link.addAttributes(t,{selector:"a.stk-link"}),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.BlockLink.addAttributes(t),n.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)},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,w.createUniqueClass)(o.clientId),o}))}]},H=I;(0,k.addFilter)("stackable.image.save.wrapper","stackable/image-link-wrapper",((e,t,o,a,n)=>{if(!t.version)return e;if(!t.hasWrapper)return e;if((0,w.semverCompare)(t.version,"<","3.12.7")){const e=t.customWrapper||"figure";return(0,l.createElement)(e,null,(0,l.createElement)("div",{className:o},a.props.children),t.figcaptionShow&&t.src&&(0,l.createElement)(g.RichText.Content,{tagName:"figcaption",className:n,value:t.figcaption}),t.children)}return e})),(0,k.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,w.semverCompare)(t.version,"<","3.12.4")){const e=t.customWrapper||"figure";return(0,l.createElement)(e,{className:o},a.props.children)}return e}));const z=[{attributes:_("3.16.3"),save:(0,b.withVersion)("3.16.3")(B),isEligible:e=>n.deprecateImageBorderRadius.isEligible(e),migrate:e=>{let t={...e};return t=n.deprecationImageOverlayOpacity.migrate(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("image%s")(t),t=n.deprecateTypographyFontSize.migrate("figcaption%s")(t),t=n.deprecateBlockHeight.migrate(t),t=n.deprecateImageBorderRadius.migrate(t),t}},{attributes:_("3.16.2"),save:(0,b.withVersion)("3.16.2")(B),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateShadowColor.isEligible("image%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecationImageOverlayOpacity.migrate(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("image%s")(t),t=n.deprecateTypographyFontSize.migrate("figcaption%s")(t),t=n.deprecateBlockHeight.migrate(t),t}},{attributes:_("3.15.3"),save:(0,b.withVersion)("3.15.3")(B),isEligible:e=>{const t=n.deprecateTypographyFontSize.isEligible("figcaption%s")(e),o=n.deprecateBlockHeight.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecationImageOverlayOpacity.migrate(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("image%s")(t),t=n.deprecateTypographyFontSize.migrate("figcaption%s")(t),t=n.deprecateBlockHeight.migrate(t),t}},{attributes:_("3.12.11"),save:(0,b.withVersion)("3.12.11")(B),isEligible:e=>{if("string"==typeof(null==e?void 0:e.figcaptionFontSize)||"string"==typeof(null==e?void 0:e.figcaptionFontSizeTablet)||"string"==typeof(null==e?void 0:e.figcaptionFontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateShadowColor.isEligible("image%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecationImageOverlayOpacity.migrate(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("image%s")(t),t}},{attributes:_("3.12.6"),save:(0,b.withVersion)("3.12.6")(B)},{attributes:_("3.12.3"),save:(0,b.withVersion)("3.12.3")(B)},{attributes:_("3.11.9"),save:(0,b.withVersion)("3.11.9")(B),isEligible:e=>{const t=n.deprecateContainerBackgroundColorOpacity.isEligible(e),o=n.deprecateBlockBackgroundColorOpacity.isEligible(e),a=n.deprecationImageOverlayOpacity.isEligible(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecationImageOverlayOpacity.migrate(t),t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("image%s")(t),t}},{attributes:_("3.7.9"),save:(0,b.withVersion)("3.7.9")(B),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecationImageOverlayOpacity.migrate(e),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateShadowColor.migrate("image%s")(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var M=o(9462);const O={...E,icon:a.ImageIcon,attributes:A,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:H,deprecated:z,edit:y,save:S,substitute:M.default}},9462:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});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}]},l=a},8728:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>G});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.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"}]),n.BlockDiv.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i);const s=i;var c=o(910),d=o(8003);const u=e=>`${c.srcUrl}/${e}`,b=[{value:"default",label:(0,d.__)("Default",c.i18n),image:(0,l.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,l.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,l.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,l.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,l.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,l.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,l.useState)(0);(0,l.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,l.useRef)(),n=(0,l.useRef)();return(0,l.useEffect)((()=>{if(a.current&&window.google&&window.google.maps){const t=n.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,l.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)},__next40pxDefaultSize:!0})};p.defaultProps={onChange:null,value:""};const g=p;var k=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 l;if(a)try{t=JSON.parse(a)}catch(e){t=[]}else t=(null===(l=b.find((e=>e.value===o)))||void 0===l?void 0:l.json)||[];return t},B=e=>{const{icon:t,iconColor1:o,iconSize:a,iconRotation:l,iconOpacity:n,iconAnchorPositionX:r,iconAnchorPositionY:i}=e,s=(0,k.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: ${n||0===n?parseFloat(n,10):1}`),s.setAttribute("transform",`rotate(${l||0===l?parseInt(l,10):0})`);const d=(new XMLSerializer).serializeToString(s),u={url:`data:image/svg+xml;base64,${window.btoa(d)}`},b=(r||0===r?parseInt(r,10):0)+c/2,m=(i||0===i?parseInt(i,10):0)+c;return u.anchor={x:b,y:m},u};let S=null;var w=o(8333),_=o(9783),A=o(4184),E=o.n(A),T=o(8085),x=o(3749),I=o(3284);const H=["style","advanced"],z=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,{tabs:H,hasLayoutPanel:!1}),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,d.__)("General",c.i18n),className:E()({"stk--uses-api-key":e.apiKey}),initialOpen:!0,id:"general"},e.userCanManageApiKey&&!e.apiKey&&(0,l.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,l.createElement)(m.ExternalLink,{type:"link",href:c.settingsUrl+"#editor-settings",rel:"next"},(0,d.__)("Add API key here.",c.i18n))),e.apiKey?(0,l.createElement)(g,{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,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AdvancedTextControl,{label:(0,d.__)("Location",c.i18n),attribute:"address",placeholder:(0,d.__)("Enter an address or location",c.i18n)})),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,d.__)("Height",c.i18n),attribute:"height",min:0,sliderMin:200,sliderMax:500,step:1,allowReset:!0,placeholder:h,responsive:"all"}),(0,l.createElement)(r.AdvancedRangeControl,{label:(0,d.__)("Zoom",c.i18n),attribute:"zoom",min:1,max:24,step:1,allowReset:!0,placeholder:v}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,d.__)("Enable Dragging",c.i18n),className:"stk--needs-api-key",attribute:"isDraggable",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,d.__)("Full Screen Button",c.i18n),className:"stk--needs-api-key",attribute:"showFullScreenButton",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,d.__)("Map Type Buttons",c.i18n),className:"stk--needs-api-key",attribute:"showMapTypeButtons",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,d.__)("Street View Button",c.i18n),className:"stk--needs-api-key",attribute:"showStreetViewButton",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,d.__)("Zoom Buttons",c.i18n),className:"stk--needs-api-key",attribute:"showZoomButtons",defaultValue:!0})),(0,l.createElement)(r.PanelAdvancedSettings,{title:(0,d.__)("Map Style",c.i18n),className:E()({"stk--uses-api-key":e.apiKey}),initialOpen:!1,id:"map-style"},(0,l.createElement)(r.StyleControl,{className:"stk--needs-api-key",options:b,value:e.mapStyle,onSelect:t=>{e.setAttributes({mapStyle:t.value,customMapStyle:""})}}),(0,l.createElement)(r.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,l.createElement)(l.Fragment,null,(0,l.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,l.createElement)(r.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,l.createElement)("div",{className:"stk--needs-api-key"},(0,l.createElement)(n.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,l.createElement)(r.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,l.createElement)(r.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,l.createElement)(n.BlockDiv.InspectorControls,{hasSizeSpacing:!1}),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-map"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),M=(0,x.compose)(_.withBlockWrapperIsHovered,_.withQueryLoopContext,_.withBlockAttributeContext,(0,_.withBlockStyleContext)(s))((e=>{var t,o,a,i,u,b;const{attributes:p,className:g,isHovered:_,isSelected:A,setAttributes:x}=e,{address:H,icon:M,iconAnchorPositionX:O,iconAnchorPositionY:N,iconColor1:D,iconOpacity:R,iconRotation:L,iconSize:U,location:P,mapStyle:V,customMapStyle:F,isDraggable:G,showFullScreenButton:W,showMapTypeButtons:q,showMarker:$,showStreetViewButton:j,showZoomButtons:Z,zoom:J,htmlTag:Y}=p,{stackable_google_maps_api_key:K}=c.settings,Q=(0,l.useMemo)((()=>(0,k.currentUserHasCapability)("manage_options")),[]),[,X]=(0,l.useState)(""),[ee,te]=(0,l.useState)(!1);(0,l.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))})(K,be)}),[]),(0,l.useEffect)((()=>{(0,I.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),x({usesApiKey:!!K}),K||H&&P&&P.lat&&P.lng&&x({address:P.lat+","+P.lng})}),[K]);const oe=(0,w.useDeviceType)(),ae=(0,n.getAlignmentClasses)(e.attributes),le=E()([g,"stk-block-map",ae]),ne=(0,k.getAttributeName)("height",oe),re=p[ne],ie=(0,l.useRef)(),se=(0,l.useRef)(),ce=(0,l.useRef)(),de=(0,l.useRef)(),ue=(0,l.useRef)(),be=()=>{const e=ce.current,t={center:P||y,zoom:J||v,fullscreenControl:W,styles:f(p),zoomControl:Z,mapTypeControl:q,streetViewControl:j,draggable:G},o=ie.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=ie.current;e.setMap($?t:null);const o=B(p);e.setOptions({icon:o}),e.setPosition(P||y)};(0,l.useEffect)((()=>{ee&&me()}),[P,U,O,N,D,R,L,$,M]),(0,l.useEffect)((()=>{ie.current&&ie.current.setOptions({center:P||y,zoom:J||v,fullscreenControl:W,styles:f(p),zoomControl:Z,mapTypeControl:q,streetViewControl:j,draggable:G})}),[P,J,G,W,Z,q,j,V,F]),(0,l.useEffect)((()=>{ee&&be()}),[Y]);const[pe,ge]=(0,l.useState)(!0),ke=(0,l.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&&ge(!1)}))}),400),[ue.current,x,pe]),he=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(z,{apiKey:K,userCanManageApiKey:Q,setAttributes:x,geocodeAddress:ke,address:H,mapStyle:V,showMarker:$,icon:M}),he&&(0,l.createElement)("style",{key:"block-css"},he),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-map"}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:le},(0,l.createElement)(m.ResizableBox,{ref:de,showHandle:_||A,size:{height:parseInt(re,10)||h},minHeight:50,enable:{bottom:!0},onResize:(e,t,o,a)=>{X(a.height)},onResizeStop:(e,t,o,a)=>{let l=re;""!==l&&void 0!==l||(l=h),x({[ne]:parseInt(l)+a.height})}},_&&(0,l.createElement)(r.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===(i=a.state)||void 0===i?void 0:i.height:re||h,heightUnits:["px"],onChangeHeight:e=>{let{value:t}=e;x({[ne]:t})},defaultHeight:h,heightPlaceholder:h}),(null===(u=de.current)||void 0===u||null===(b=u.state)||void 0===b?void 0:b.isResizing)&&(0,l.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; }`),K?(0,l.createElement)("div",{className:"stk-block-map__canvas",ref:ce}):(0,l.createElement)("iframe",{title:(0,d.__)("Embedded content from Google Map Platform.",c.i18n),src:`https://maps.google.com/maps?q=${H||C}&t=&z=${J||v}&ie=UTF8&output=embed`,frameBorder:"0"}))),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))}));var O=o(3882);const N=e=>{const{attributes:t}=e,{address:o,location:a,isDraggable:r,showFullScreenButton:i,showMapTypeButtons:s,showMarker:u,showStreetViewButton:b,showZoomButtons:m,usesApiKey:p,zoom:g}=t,k=(0,n.getResponsiveClasses)(e.attributes),h=(0,n.getAlignmentClasses)(e.attributes),S=E()([e.className,"stk-block-map",k,h],{"stk--uses-api-key":p}),w=f(t),_={center:a||y,zoom:g||v,styles:w.length?w:void 0,gestureHandling:r?void 0:"none",fullscreenControl:i,mapTypeControl:s,streetViewControl:b,zoomControl:m},A=!!u&&{position:a||y,title:o||void 0};return(0,l.createElement)(n.BlockDiv.Content,{className:S,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),p?(0,l.createElement)("div",{"data-map-options":JSON.stringify(_),"data-marker-options":JSON.stringify(A),"data-icon-options":JSON.stringify((0,O.applyFilters)("stackable.map.icon-options",B(t),t,e)),className:"stk-block-map__canvas"}):(0,l.createElement)(l.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=${g||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>`))},D=(0,x.compose)((0,_.withVersion)(c.version))(N),R={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:""}},L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new k.AttributeObject;return n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.Link.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.BlockLink.addAttributes(t),n.Icon.addAttributes(t),t.add({attributes:R,versionAdded:"3.2.0",versionDeprecated:""}),t.getMerged(e)},U=L(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,O.addFilter)("stackable.map.icon-options","stackable/3.13.0",((e,t,o)=>(0,k.semverCompare)(o.version,"<","3.13.0")?(e=>{const t={...e};if(!e.icon)return null;const o=(0,k.createElementFromHTMLString)(e.icon);return o&&o.firstElementChild?(o.firstElementChild.setAttribute("fill","currentColor"),t.icon=o.outerHTML,B(t)):null})(t):e));const F=[{attributes:L("3.16.2"),save:(0,_.withVersion)("3.16.2")(N),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:L("3.15.3"),save:(0,_.withVersion)("3.15.3")(N),isEligible:e=>n.deprecateBlockHeight.isEligible(e),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:L("3.12.11"),save:(0,_.withVersion)("3.12.11")(N),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:L("3.11.9"),save:(0,_.withVersion)("3.11.9")(N),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:L("3.7.9"),save:(0,_.withVersion)("3.7.9")(N),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}],G={...P,icon:a.MapIcon,attributes:U,supports:{align:["full","wide","center"],anchor:!0,spacing:!0},example:V,deprecated:F,edit:M,save:D}},9740:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/map",transform:()=>["stackable/image"]},l=a},8456:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>D});var a=o(910),l=o(8003),n=o(3882),r=o(7462),i=o(2610);o(7294);const s=(0,n.applyFilters)("stackable.notification.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Default",a.i18n)),attributes:{className:"is-style-default",hasContainer:!0},isDefault:!0,pickerTitle:(0,l.__)("Default",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l._x)("Title for This Block","Heading placeholder",a.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",a.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,l._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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("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,l.__)("Plain",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l._x)("Title for This Block","Heading placeholder",a.i18n),textTag:"h3",textColor1:"var(--stk-container-background-color, #40ba7b)"}],["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",a.i18n),textColor1:"var(--stk-container-background-color, #40ba7b)"}],["stackable/button-group",{},[["stackable/button",{text:(0,l._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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Side",a.i18n)),attributes:{className:"is-style-side"},pickerTitle:(0,l.__)("Side",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Bordered",a.i18n)),attributes:{className:"is-style-bordered"},pickerTitle:(0,l.__)("Bordered",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Outlined",a.i18n)),attributes:{className:"is-style-outlined"},pickerTitle:(0,l.__)("Outlined",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Large Icon",a.i18n)),attributes:{className:"is-style-large-icon"},pickerTitle:(0,l.__)("Large Icon",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,i.createElement)("svg",(0,r.Z)({viewBox:"0 0 28.3 28.3",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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 g=o(8085),k=o(4184),h=o.n(k),v=o(9783),C=o(3749),y=o(78),f=o(3284);const B=s[0].innerBlocks,S=(0,i.memo)((e=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.InspectorTabs,null),(0,i.createElement)(d.ContentAlign.InspectorControls,null),(0,i.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,i.createElement)(u.InspectorStyleControls,null,(0,i.createElement)(u.PanelAdvancedSettings,{title:(0,l.__)("General",a.i18n),id:"general",initialOpen:!0},(0,i.createElement)(u.AdvancedSelectControl,{label:(0,l.__)("Notification Type",a.i18n),attribute:"notificationType",options:[{label:(0,l.__)("Success",a.i18n),value:""},{label:(0,l.__)("Error",a.i18n),value:"error"},{label:(0,l.__)("Warning",a.i18n),value:"warning"},{label:(0,l.__)("Information",a.i18n),value:"info"}]})),(0,i.createElement)(u.PanelAdvancedSettings,{title:(0,l.__)("Dismissible",a.i18n),id:"dismissible",hasToggle:!0,checked:e.isDismissible,onChange:t=>e.setAttributes({isDismissible:t})},(0,i.createElement)(u.AdvancedRangeControl,{label:(0,l.__)("Icon Size",a.i18n),attribute:"dismissibleSize",min:"0",sliderMax:"50",step:"1",placeholder:"16"}),(0,i.createElement)(u.ColorPaletteControl,{label:(0,l.__)("Icon Color",a.i18n),attribute:"dismissibleColor"}))),(0,i.createElement)(d.BlockDiv.InspectorControls,null),(0,i.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,i.createElement)(d.BlockLink.InspectorControls,null),(0,i.createElement)(d.Advanced.InspectorControls,null),(0,i.createElement)(d.Transform.InspectorControls,null),(0,i.createElement)(d.EffectsAnimations.InspectorControls,null),(0,i.createElement)(d.CustomAttributes.InspectorControls,null),(0,i.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-notification"}),(0,i.createElement)(d.Responsive.InspectorControls,null),(0,i.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,i.createElement)(u.InspectorStyleControls,null,(0,i.createElement)(u.InspectorBottomTip,null))))),w=(0,C.compose)(v.withBlockWrapperIsHovered,v.withQueryLoopContext,v.withBlockAttributeContext,(0,v.withBlockStyleContext)(m))((e=>{var t;const{className:o,attributes:l,setAttributes:n}=e,{hasInnerBlocks:r,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":l.isDismissible,[`stk--is-${e.attributes.notificationType}`]:e.attributes.notificationType}),k=h()(["stk-block-content","stk-inner-blocks",c,"stk-block-notification__content",`stk-${l.uniqueId}-inner-blocks`],(0,d.getContentAlignmentClasses)(l)),v=null===(t=(0,g.last)(s))||void 0===t?void 0:t.name,C=r?["stackable/text","core/paragraph"].includes(v)?()=>(0,i.createElement)(i.Fragment,null):y.InnerBlocks.DefaultBlockAppender:y.InnerBlocks.ButtonBlockAppender,w=(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,i.createElement)(i.Fragment,null,(0,i.createElement)(S,{setAttributes:n,isDismissible:l.isDismissible}),(0,i.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b,enableVariationPicker:!0},w&&(0,i.createElement)("style",{key:"block-css"},w),(0,i.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-notification"}),(0,i.createElement)(d.ContainerDiv,{className:k},(0,i.createElement)(y.InnerBlocks,{template:B,templateLock:!1,renderAppender:C}),l.isDismissible&&(0,i.createElement)("span",{className:"stk-block-notification__close-button",role:"button",tabIndex:"0"},(0,i.createElement)(p,{width:l.dismissibleSize||16,height:l.dismissibleSize||16})))),e.isHovered&&r&&(0,i.createElement)(d.MarginBottom,null))}));(0,n.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 _=o(1991),A=o.n(_);const E=e=>{const{attributes:t,className:o}=e,s=(0,d.getAlignmentClasses)(t),c=(0,d.getResponsiveClasses)(t),u=A()([o,"stk-block-notification",c],{"stk--is-dismissible":t.isDismissible,[`stk--is-${e.attributes.notificationType}`]:e.attributes.notificationType}),b=A()(["stk-block-notification__content"],(0,d.getContentAlignmentClasses)(t)),m=A()((0,n.applyFilters)("stackable.notification.save.innerClassNames",["stk-block-content","stk-inner-blocks",s,`stk-${t.uniqueId}-inner-blocks`],e));return(0,i.createElement)(d.BlockDiv.Content,{className:u,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,i.createElement)("style",null,t.generatedCss),(0,i.createElement)(d.CustomCSS.Content,{attributes:t}),(0,i.createElement)(d.ContainerDiv.Content,{className:b,attributes:t},(0,i.createElement)("div",{className:m},(0,i.createElement)(y.InnerBlocks.Content,null)),(0,i.createElement)(d.BlockLink.Content,{attributes:t}),t.isDismissible&&(0,i.createElement)("button",(0,r.Z)({className:"stk-block-notification__close-button","aria-label":(0,l.__)("Close",a.i18n)},(0,n.applyFilters)("stackable.notification.save.close-button-props",{},e)),(0,i.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)},H=I(a.version),z={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,l.__)("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,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.",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,l.__)("Button",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var M=o(4247),O=o.n(M);(0,n.addFilter)("stackable.notification.save.close-button-props","stackable/3.19.0",((e,t)=>(0,x.semverCompare)(t.version,"<","3.19.0")?{...e,"aria-label":void 0}:e)),(0,n.addFilter)("stackable.notification.save.innerClassNames","stackable/3.8.0",((e,t)=>(O()(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:{...I("3.18.1"),anchor:{attribute:"id",selector:"*",source:"attribute",type:"string"}},save:e=>(e.version="3.18.1",E(e))},{attributes:I("3.16.2"),save:(0,v.withVersion)("3.16.2")(E),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:I("3.15.3"),save:(0,v.withVersion)("3.15.3")(E),isEligible:e=>{const t=d.deprecateBlockHeight.isEligible(e),o=d.deprecateInnerBlockRowGapAndContainerHeight.isEligible("%s")(e);return t||o},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.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:I("3.12.11"),save:(0,v.withVersion)("3.12.11")(E),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.innerBlockRowGap)||"string"==typeof(null==e?void 0:e.innerBlockRowGapTablet)||"string"==typeof(null==e?void 0:e.innerBlockRowGapMobile)||"string"==typeof(null==e?void 0:e.containerHeight)||"string"==typeof(null==e?void 0:e.containerHeightTablet)||"string"==typeof(null==e?void 0:e.containerHeightMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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);return t||o},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),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).NotificationIcon,attributes:H,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,spacing:!0},example:z,variations:s,deprecated:N,edit:w,save:T}},6454:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/notification",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{hasContainer:!0,containerBackgroundColor:e.containerBackgroundColor},t]]]},l=a},1322:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>E});var a=o(9467),l=o(7462),n=o(2610),r=o(9384),i=o(7200);const s=new i.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,r.addBackgroundStyles)(s,{attrNameTemplate:"shape%s",selector:".stk-block-number-box__container",renderCondition:"hasShape"}),(0,r.addBorderStyles)(s,{attrNameTemplate:"shape%s",selector:".stk-block-number-box__container",renderCondition:"hasShape"}),r.Alignment.addStyles(s),r.BlockDiv.addStyles(s),r.Advanced.addStyles(s),r.Transform.addStyles(s),r.Typography.addStyles(s,{selector:".stk-block-number-box__text",hoverSelector:".stk-block-number-box__text:hover"}),r.EffectsAnimations.addStyles(s);const c=s;var d=o(910),u=o(4184),b=o.n(u),m=o(9783),p=o(3749),g=o(8003);const k=(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,g.__)("Shape",d.i18n),id:"shape",initialOpen:!0,hasToggle:!0,checked:e.hasShape,onChange:t=>e.setAttributes({hasShape:t})},(0,n.createElement)(i.AdvancedRangeControl,{label:(0,g.__)("Size",d.i18n),attribute:"shapeSize",responsive:"all",min:"0",sliderMax:"200",placeholder:"96"}),(0,n.createElement)(r.BackgroundControls,{attrNameTemplate:"shape%s",hasGradient:!1,hasBackgroundImage:!1,hasBackgroundGradientBlendMode:!1}),(0,n.createElement)(r.BorderControls,{attrNameTemplate:"shape%s",borderSliderMax:"100"}))),(0,n.createElement)(r.Typography.InspectorControls,(0,l.Z)({},e,{initialOpen:!1,hasTextTag:!1,sizePlaceholder:"56"})),(0,n.createElement)(r.Alignment.InspectorControls,null),(0,n.createElement)(r.BlockDiv.InspectorControls,null),(0,n.createElement)(r.Advanced.InspectorControls,null),(0,n.createElement)(r.Transform.InspectorControls,null),(0,n.createElement)(r.EffectsAnimations.InspectorControls,null),(0,n.createElement)(r.CustomAttributes.InspectorControls,null),(0,n.createElement)(r.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-number-box"}),(0,n.createElement)(r.Responsive.InspectorControls,null),(0,n.createElement)(r.ConditionalDisplay.InspectorControls,null)))),h=(0,p.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(c))((e=>{const{className:t,attributes:o,setAttributes:a}=e,l=(0,r.getTypographyClasses)(e.attributes),s=(0,r.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",l]),g=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,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)(k,{setAttributes:a,blockState:e.blockState,hasShape:o.hasShape}),g&&(0,n.createElement)("style",{key:"block-css"},g),(0,n.createElement)(r.CustomCSS,{mainBlockClass:"stk-block-number-box"}),(0,n.createElement)(r.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:u},(0,n.createElement)("div",{className:m},(0,n.createElement)(r.Typography,{tagName:"span",placeholder:"1",className:p}))),e.isHovered&&(0,n.createElement)(r.MarginBottom,null))})),v=e=>{const{className:t,attributes:o}=e,a=(0,r.getResponsiveClasses)(e.attributes),l=(0,r.getTypographyClasses)(e.attributes),i=(0,r.getAlignmentClasses)(e.attributes),s=b()([t,"stk-block-number-box",a],{"stk--has-shape":o.hasShape}),c=b()(["stk-block-number-box__container",i]),d=b()(["stk-block-number-box__text",l]);return(0,n.createElement)(r.BlockDiv.Content,{className:s,attributes:o,version:e.version},o.generatedCss&&(0,n.createElement)("style",null,o.generatedCss),(0,n.createElement)(r.CustomCSS.Content,{attributes:o}),(0,n.createElement)("div",{className:c},(0,n.createElement)(r.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 r.Alignment.addAttributes(t),r.BlockDiv.addAttributes(t),r.Style.addAttributes(t),r.EffectsAnimations.addAttributes(t),r.CustomAttributes.addAttributes(t),r.CustomCSS.addAttributes(t),r.MarginBottom.addAttributes(t),r.Responsive.addAttributes(t),r.ConditionalDisplay.addAttributes(t),r.Advanced.addAttributes(t),r.Transform.addAttributes(t),r.Typography.addAttributes(t,".stk-block-number-box__text"),(0,r.addBackgroundAttributes)(t,"shape%s"),(0,r.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"}'),w={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,g.__)("01",d.i18n),textTag:"p",hasShape:!0,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em",shapeBackgroundCustomSizeUnit:"%",shapeBackgroundCustomSizeUnitTablet:"%",shapeBackgroundCustomSizeUnitMobile:"%",contentAlign:"center"},innerBlocks:[]},_=[{attributes:f("3.16.2"),save:(0,m.withVersion)("3.16.2")(v),isEligible:e=>{const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e),a=r.deprecateShadowColor.isEligible("shape%s")(e);return t||o||a},migrate:e=>{let t=r.deprecateBlockBackgroundColorOpacity.migrate(e);return t=r.deprecationBackgrounColorOpacity.migrate("shape%s")(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateShadowColor.migrate("shape%s")(t),t=r.deprecateTypographyFontSize.migrate("%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:f("3.15.3"),save:(0,m.withVersion)("3.15.3")(v),isEligible:e=>{const t=r.deprecateTypographyFontSize.isEligible("%s")(e),o=r.deprecateBlockHeight.isEligible(e);return t||o},migrate:e=>{let t=r.deprecateBlockBackgroundColorOpacity.migrate(e);return t=r.deprecationBackgrounColorOpacity.migrate("shape%s")(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateShadowColor.migrate("shape%s")(t),t=r.deprecateTypographyFontSize.migrate("%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:f("3.13.11"),save:e=>{const{className:t,attributes:o}=e,a=(0,r.getResponsiveClasses)(e.attributes),l=(0,r.getTypographyClasses)(e.attributes),i=(0,r.getAlignmentClasses)(e.attributes),s=b()([t,"stk-block-number-box",a,i],{"stk--has-shape":o.hasShape}),c=b()(["stk-block-number-box__text",l]);return(0,n.createElement)(r.BlockDiv.Content,{className:s,attributes:o,version:e.version},o.generatedCss&&(0,n.createElement)("style",null,o.generatedCss),(0,n.createElement)(r.CustomCSS.Content,{attributes:o}),(0,n.createElement)(r.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=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e),a=r.deprecateShadowColor.isEligible("shape%s")(e);return t||o||a},migrate:e=>{let t=r.deprecateBlockBackgroundColorOpacity.migrate(e);return t=r.deprecationBackgrounColorOpacity.migrate("shape%s")(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateShadowColor.migrate("shape%s")(t),t}},{attributes:f("3.11.9"),save:(0,m.withVersion)("3.11.9")(v),isEligible:e=>r.deprecateBlockBackgroundColorOpacity.isEligible(e)||r.deprecationBackgrounColorOpacity.isEligible("shape%s")(e)||r.deprecateTypographyGradientColor.isEligible("%s")(e),migrate:e=>{let t=r.deprecateBlockBackgroundColorOpacity.migrate(e);return t=r.deprecationBackgrounColorOpacity.migrate("shape%s")(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateShadowColor.migrate("shape%s")(t),t}},{attributes:f("3.7.9"),save:(0,m.withVersion)("3.7.9")(v),migrate:e=>{let t=r.deprecateBlockBackgroundColorOpacity.migrate(e);return t=r.deprecationBackgrounColorOpacity.migrate("shape%s")(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateShadowColor.migrate("shape%s")(t),t}}];var A=o(4106);const E={...S,icon:a.NumberBoxIcon,attributes:B,supports:{anchor:!0,align:!0,spacing:!0},example:w,deprecated:_,edit:h,save:C,substitute:A.default}},4106:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});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"}}}}]},l=a},5872:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>K});var a=o(2610),l=o(8085),n=o(3882);const r=(e,t,o,n)=>{if("list"!==t)return e;const{contentOrder:r=[]}=o,i=r.map((e=>"featured-image"===e?null:n[e]));return(0,a.createElement)(a.Fragment,null,n["featured-image"],(0,a.createElement)("article",{className:"stk-container-padding"},(0,l.compact)(i).map(((e,t)=>(0,a.createElement)(a.Fragment,{key:t},e)))))};(0,n.addFilter)("stackable.posts.edit.item.output","list",r),(0,n.addFilter)("stackable.posts.save.item.output","list",r);var i=o(910),s=o(8003),c=o(7462);o(7294);const d=(0,n.applyFilters)("stackable.posts.variations",[{name:"default",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",i.i18n),(0,s.__)("Default",i.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",i.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",i.i18n),(0,s.__)("List",i.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",i.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",i.i18n),(0,s.__)("Image Card",i.i18n)),attributes:{className:"is-style-image-card"},pickerTitle:(0,s.__)("Image Card",i.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:!i.isPro,scope:["block"]},{name:"horizontal",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",i.i18n),(0,s.__)("Horizontal",i.i18n)),attributes:{className:"is-style-horizontal"},pickerTitle:(0,s.__)("Horizontal",i.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:!i.isPro,scope:["block"]},{name:"horizontal-2",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",i.i18n),(0,s.__)("Horizontal 2",i.i18n)),attributes:{className:"is-style-horizontal-2"},pickerTitle:(0,s.__)("Horizontal 2",i.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:!i.isPro,scope:["block"]},{name:"portfolio",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",i.i18n),(0,s.__)("Portfolio",i.i18n)),attributes:{className:"is-style-portfolio"},pickerTitle:(0,s.__)("Portfolio",i.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:!i.isPro,scope:["block"]},{name:"portfolio-2",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",i.i18n),(0,s.__)("Portfolio 2",i.i18n)),attributes:{className:"is-style-portfolio-2"},pickerTitle:(0,s.__)("Portfolio 2",i.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:!i.isPro,scope:["block"]},{name:"vertical-card",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",i.i18n),(0,s.__)("Vertical Card",i.i18n)),attributes:{className:"is-style-vertical-card"},pickerTitle:(0,s.__)("Vertical Card",i.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:!i.isPro,scope:["block"]},{name:"vertical-card-2",description:(0,s.sprintf)((0,s._x)("%s Layout","Block layout name",i.i18n),(0,s.__)("Vertical Card 2",i.i18n)),attributes:{className:"is-style-vertical-card-2"},pickerTitle:(0,s.__)("Vertical Card 2",i.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:!i.isPro,scope:["block"]}]);var u=o(9384),b=o(8333),m=o(7200);const p=new m.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""}),g=" .%s-container",k=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:g,borderSelector:g,sizeSelector:g}),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,t,o,a)=>{const l=e("className"),n=(0,b.getBlockStyle)(d,l),r=e("imageHasLink"),i=a.selector;return["list"].includes(null==n?void 0:n.name)&&r?Array.isArray(i)?[...i," .%s-container .stk-block-posts__image-link"]:[i," .%s-container .stk-block-posts__image-link"]:i},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:k(".stk-block-posts__title"),saveHoverSelectorCallback:k(".stk-block-posts__title a"),attrNameTemplate:"title%s",dependencies:h}),u.Typography.addStyles(p,{selectorCallback:e=>".stk-block-posts__category, .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:k(".stk-block-posts__excerpt p"),attrNameTemplate:"excerpt%s",dependencies:h}),u.Typography.addStyles(p,{selector:".stk-block-posts__meta",hoverSelectorCallback:k(".stk-block-posts__meta"),attrNameTemplate:"meta%s",dependencies:h}),u.Typography.addStyles(p,{selector:".stk-block-posts__readmore",hoverSelectorCallback:k(".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(7545),w=o(3162);const _=wp.htmlEntities,A=[{label:(0,s.__)("Featured Image",i.i18n),value:"featured-image"},{label:(0,s.__)("Title",i.i18n),value:"title"},{label:(0,s.__)("Meta",i.i18n),value:"meta"},{label:(0,s.__)("Category",i.i18n),value:"category"},{label:(0,s.__)("Excerpt",i.i18n),value:"excerpt"},{label:(0,s.__)("Read More Button",i.i18n),value:"readmore"}],E=(e,t)=>{let{isHovered:o}=t;const{className:r="",categoryHighlighted:c=!1,imageSize:m,metaSeparator:p,excerptLength:g,authorShow:k=!0,dateShow:h=!0,commentsShow:v=!0,imageShow:C=!0,categoryShow:f=!0,titleShow:A=!0,metaShow:E=!0,excerptShow:T=!0,readmoreShow:x=!0,contentOrder:I=[]}=e,H=(0,b.getBlockStyle)(d,r),z=B()(["stk-block-posts__item"]),M=B()("stk-block-posts__title",(0,u.getTypographyClasses)(e,"title%s")),O=B()("stk-block-posts__category","stk-subtitle",(0,u.getTypographyClasses)(e,"category%s")),N=B()("stk-block-posts__excerpt",(0,u.getTypographyClasses)(e,"excerpt%s")),D=B()("stk-block-posts__meta","stk-subtitle",(0,u.getTypographyClasses)(e,"meta%s")),R=B()("stk-block-posts__readmore",(0,u.getTypographyClasses)(e,"readmore%s"));return(t,r)=>{var d;const{featured_image_urls:b,post_title:B,category_list:L,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],W=!["portfolio","portfolio-2","horizontal","horizontal-2"].includes(null==H?void 0:H.name),q=["list","horizontal","horizontal-2"].includes(null==H?void 0:H.name),$=!!G&&(0,a.createElement)(u.Image,{showTooltips:o,src:G,alt:(0,s.__)("featured",i.i18n),hasRemove:!1,enableClickToEdit:!1,defaultWidth:100,defaultHeight:"auto",enableWidth:q,widthResizePosition:"horizontal"===(null==H?void 0:H.name)?"left":"right",enableDiagonal:"list"===(null==H?void 0:H.name),enableHeight:W,hasTooltip:W,heightResizePosition:"vertical-card-2"===(null==H?void 0:H.name)?"top":"bottom",className:"stk-block-posts__image-link"}),j=(0,a.createElement)(u.Typography,{defaultTag:"h3",attrNameTemplate:"title%s",className:M,value:(0,_.decodeEntities)(B.trim())||(0,s.__)("(Untitled)",i.i18n),editable:!1}),Z=L&&(0,a.createElement)("div",{className:O},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()(L),editable:!1})):(0,a.createElement)(u.Typography,{tagName:"a",attrNameTemplate:"category%s",value:y()(L),editable:!1})),J=(0,a.createElement)("span",{className:"stk-block-posts__meta-sep"},S.META_SEPARATORS[p||"dot"]),Y=(null==U?void 0:U.name)&&(0,a.createElement)("span",null,U.name),K=P&&(0,a.createElement)("time",{dateTime:(0,w.format)("c",P)},(0,w.dateI18n)("F d, Y",P)),Q=(0,a.createElement)("span",null,V);let X=F.split(" ");X=X.length>(g||55)?X.slice(0,g||55).join(" ")+"...":t.post_excerpt_stackable;const ee=X&&(0,a.createElement)("div",{className:N,dangerouslySetInnerHTML:{__html:X}}),te=(0,a.createElement)(u.Typography,{identifier:"read-more-"+r,tagName:"a",attrNameTemplate:"readmore%s",className:R,defaultValue:(0,s.__)("Continue Reading",i.i18n)}),oe=(k||h||v)&&(0,a.createElement)("div",{className:D},k&&Y,k&&Y&&(h&&K||v&&Q)&&J,h&&K,(k&&Y||h&&K)&&v&&Q&&J,v&&Q),ae={"featured-image":C&&$,title:A&&j,category:f&&Z,meta:E&&oe,excerpt:T&&ee,readmore:x&&te},le=I.map((e=>ae[e]));let ne=(0,a.createElement)("article",null,(0,l.compact)(le).map(((e,t)=>(0,a.createElement)(a.Fragment,{key:t},e))));return ne=(0,n.applyFilters)("stackable.posts.edit.item.output",ne,null==H?void 0:H.name,e,{...ae}),(0,a.createElement)("div",{className:z,key:r},(0,a.createElement)(u.ContainerDiv,null,ne))}};E.save=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.version;const{imageHasLink:o=!0,className:r="",authorShow:s=!0,dateShow:m=!0,commentsShow:p=!0,imageShow:g=!0,categoryShow:k=!0,titleShow:h=!0,metaShow:v=!0,excerptShow:C=!0,readmoreShow:y=!0,contentOrder:f=[]}=e,S=(0,b.getBlockStyle)(d,r),w=B()(["stk-block-posts__item"]),_=B()("stk-block-posts__title",(0,u.getTypographyClasses)(e,"title%s")),A=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,n.applyFilters)("stackable.posts.feature-image",I,t),o&&(I=(0,a.createElement)("a",{href:"!#postLink!#",className:"stk-block-posts__image-link"},I));const H=(0,a.createElement)(u.Typography.Content,(0,c.Z)({defaultTag:"h3",attrNameTemplate:"title%s",className:_,value:"<a href='!#postLink!#'>!#title!#</a>",attributes:e},(0,n.applyFilters)("stackable.posts.title.typography-content",{},t))),z=(0,a.createElement)(u.Typography.Content,(0,c.Z)({tagName:"div",attrNameTemplate:"category%s",className:A,value:"!#category!#",attributes:e},(0,n.applyFilters)("stackable.posts.title.category-content",{},t))),M=(0,a.createElement)("span",{className:"stk-block-posts__meta-sep"},"!#metaSeparator!#"),O=(0,a.createElement)("span",null,"!#authorName!#"),N=(0,a.createElement)("time",{dateTime:"!#dateTime!#"},"!#date!#"),D=(0,a.createElement)("span",null,"!#commentsNum!#"),R=(0,a.createElement)("div",{className:E,dangerouslySetInnerHTML:{__html:"!#excerpt!#"}}),L=(0,a.createElement)(u.Typography.Content,(0,c.Z)({tagName:"a",href:"!#postLink!#",attrNameTemplate:"readmore%s",className:x,value:"!#readmoreText!#",attributes:e},(0,n.applyFilters)("stackable.posts.title.readmore-content",{},t)));let U=(s||m||p)&&(0,a.createElement)("div",{className:T},s&&O,s&&O&&(m&&N||p&&D)&&M,m&&N,(s&&O||m&&N)&&p&&D&&M,p&&D);U=(0,n.applyFilters)("stackable.posts.meta",U,{authorShow:s,dateShow:m,commentsShow:p,author:O,date:N,comments:D,separator:M,metaClassNames:T},t);const P={"featured-image":g&&I,title:h&&H,category:k&&z,meta:v&&U,excerpt:C&&R,readmore:y&&L},V=f.map((e=>P[e]));let F=(0,a.createElement)("article",null,(0,l.compact)(V).map(((e,t)=>(0,a.createElement)(a.Fragment,{key:t},e))));return F=(0,n.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:w},(0,a.createElement)(u.ContainerDiv.Content,{attributes:e},F)),"<!–- /stk-end:post/template –->")};var T=o(9783),x=o(7537),I=o(78),H=o(3284),z=o(3749);const M=["stackable/load-more","stackable/pagination"],O=["title","featured-image","meta","category","excerpt","readmore"],N=e=>{var t;const{clientId:o,attributes:n,name:r,className:c,setAttributes:p}=e,{stkQueryId:g,imageSize:k,type:h="post",orderBy:C="date",order:y="desc",taxonomyType:f="category",taxonomy:S="",taxonomyFilterType:w="__in",contentOrder:_=O,uniqueId:T}=n,R=(0,u.getAlignmentClasses)(n),L=(0,b.useBlockStyle)(d),{getActiveBlockVariation:U}=(0,H.useSelect)("core/blocks"),{posts:P,isRequesting:V,hasPosts:F}=(0,b.usePostsQuery)(n),G=(0,z.useInstanceId)(N),W=B()("stk-inner-blocks",(0,u.getContentAlignmentClasses)(n)),q=B()([c,"stk-block-posts",R],{"stk--has-container":n.hasContainer}),$=B()(["stk-block-posts__items"]),j=B()(["stk-inner-blocks"]),Z=_.map((e=>{var t;return null===(t=A.find((t=>t.value===e)))||void 0===t?void 0:t.label})),J=(0,a.useMemo)((()=>{var e,t,o;return null===(e=(0,l.first)(P))||void 0===e||null===(t=e.featured_image_urls)||void 0===t||null===(o=t[k||"full"])||void 0===o?void 0:o[0]}),[null==P?void 0:P.length]),Y=(0,a.useMemo)((()=>E(n,{isHovered:e.isHovered})),[n,e.isHovered]);(0,a.useEffect)((()=>{g!==G&&p({stkQueryId:G})}),[g,G]);const K=U(r,n),Q=(null==K||null===(t=K.attributes)||void 0===t?void 0:t.contentOrder)||O,X=(0,m.useBlockCssGenerator)({attributes:e.attributes,blockStyles:v,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)(D,{setAttributes:p,blockState:e.blockState,contentOrderOptions:Z,contentOrder:_,DefaultContentOrder:Q,orderBy:C,order:y,type:h,taxonomyType:f,taxonomy:S,taxonomyFilterType:w,blockStyle:L,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)(x.Placeholder,{icon:"admin-post",label:(0,s.__)("Posts",i.i18n)},!Array.isArray(P)||V?(0,a.createElement)(x.Spinner,null):(0,s.__)("No posts found.",i.i18n)):(0,a.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:q,enableVariationPicker:!0},(0,a.createElement)("div",{className:W,key:`posts-wrapper-${o}`},(0,a.createElement)("div",{className:$,key:`posts-content-${o}`},(P||[]).map(Y)),(0,a.createElement)("div",{className:j,key:`posts-inner-${o}`},(0,a.createElement)(I.InnerBlocks,{allowedBlocks:M})))),e.isHovered&&!V&&F&&T&&(0,a.createElement)(u.MarginBottom,null))},D=(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",i.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",i.i18n),axis:"y",values:e.contentOrderOptions,num:e.contentOrderOptions.length,allowReset:!(0,l.isEqual)(e.contentOrder,e.defaultContentOrder),onChange:t=>{t?e.setAttributes({contentOrder:t.map((e=>{var t;return null===(t=A.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",i.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",i.i18n),id:"query",initialOpen:!0},(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Number of items",i.i18n),min:1,max:100,allowReset:!0,attribute:"numberOfItems",placeholder:"6",default:6}),(0,a.createElement)(m.AdvancedSelectControl,{label:(0,s.__)("Order by",i.i18n),options:[{label:(0,s.__)("Newest to Oldest",i.i18n),value:"date,desc"},{label:(0,s.__)("Oldest to Newest",i.i18n),value:"date,asc"},{label:(0,s.__)("A → Z",i.i18n),value:"title,asc"},{label:(0,s.__)("Z → A",i.i18n),value:"title,desc"},{label:(0,s.__)("Last Modified to Oldest",i.i18n),value:"modified,desc"},{label:(0,s.__)("Oldest Modified to Last",i.i18n),value:"modified,asc"},{label:(0,s.__)("Menu Order",i.i18n),value:"menu_order,asc"},{label:(0,s.__)("Random",i.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"}),i.showProNotice&&(0,a.createElement)(m.ProControlButton,{type:"posts"}),(0,n.applyFilters)("stackable.posts.edit.inspector.style.query",null)),(0,a.createElement)(m.PanelAdvancedSettings,{title:(0,s.__)("Spacing",i.i18n),id:"spacing"},(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Featured Image",i.i18n),attribute:"imageSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Title",i.i18n),attribute:"titleSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Category",i.i18n),attribute:"categorySpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Excerpt",i.i18n),attribute:"excerptSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Meta",i.i18n),attribute:"metaSpacing",responsive:"all",min:0,sliderMax:100,placeholder:""}),(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Read More Link",i.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",i.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",i.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",i.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",i.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",i.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",i.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,z.compose)(T.withBlockWrapperIsHovered,T.withQueryLoopContext,T.withBlockAttributeContext,(0,T.withBlockStyleContext)(v))(N);(0,n.addFilter)("stackable.block-component.typography.color.after","stackable/posts",((e,t)=>{const{name:o}=(0,I.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",i.i18n),attribute:(0,S.getAttrName)(t.attrNameTemplate,"hoverStateInContainer")}))})),(0,n.addFilter)("stackable.block-component.typography.color.after","stackable/posts",((e,t)=>{const{name:o}=(0,I.useBlockEditContext)(),l=(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",i.i18n),attribute:"categoryHighlighted"}),l&&(0,a.createElement)(m.ColorPaletteControl,{label:(0,s.__)("Highlight Color",i.i18n),hover:"all",attribute:"categoryHighlightColor"}),e)})),(0,n.addFilter)("stackable.block-component.typography.before","stackable/posts",((e,t)=>{const{name:o}=(0,I.useBlockEditContext)();return"stackable/posts"!==o||"excerpt%s"!==t.attrNameTemplate?e:(0,a.createElement)(m.AdvancedRangeControl,{label:(0,s.__)("Excerpt Length",i.i18n),attribute:"excerptLength",placeholder:"55",min:1,sliderMax:100})})),(0,n.addFilter)("stackable.block-component.typography.before","stackable/posts",((e,t)=>{const{name:o}=(0,I.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",i.i18n),attribute:"authorShow"}),(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Show Date",i.i18n),attribute:"dateShow"}),(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Show Comments",i.i18n),attribute:"commentsShow"}),(0,a.createElement)(m.AdvancedSelectControl,{label:(0,s.__)("Separator",i.i18n),options:[{label:(0,s.__)("Default (Dot)",i.i18n),value:""},{label:(0,s.__)("Space",i.i18n),value:"space"},{label:(0,s.__)("Comma",i.i18n),value:"comma"},{label:(0,s.__)("Dash",i.i18n),value:"dash"},{label:(0,s.__)("Pipe",i.i18n),value:"pipe"}],attribute:"metaSeparator",helpTooltip:{video:"posts-meta-separator",description:(0,s.__)("Sets the separators between meta items (dot, space, comma, dash, pipe)",i.i18n)}}))})),(0,n.addFilter)("stackable.block-component.image.before","stackable/posts",(e=>{const{name:t}=(0,I.useBlockEditContext)(),o=(0,b.useBlockAttributesContext)((e=>e.imageSize)),l=(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",i.i18n),attribute:"imageHasLink"}),(0,a.createElement)(m.ImageSizeControl,{label:(0,s.__)("Image Size",i.i18n),value:o,onChange:e=>l({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.",i.i18n)}}),(0,a.createElement)(m.AdvancedToggleControl,{label:(0,s.__)("Apply hover effect when container is hovered",i.i18n),attribute:"imageHoverStateInContainer"}))}));const L=e=>{const{version:t,className:o,attributes:l}=e,n=(0,u.getResponsiveClasses)(e.attributes),r=(0,u.getAlignmentClasses)(e.attributes),i=B()("stk-inner-blocks",(0,u.getContentAlignmentClasses)(l)),s=B()([o,"stk-block-posts",n,r],{"stk--has-container":l.hasContainer}),c=B()(["stk-block-posts__items"]),d=B()(["stk-inner-blocks"]);return(0,a.createElement)(u.BlockDiv.Content,{className:s,attributes:l,version:e.version,"data-v":e.attributes.version},l.generatedCss&&(0,a.createElement)("style",null,l.generatedCss),(0,a.createElement)(u.CustomCSS.Content,{attributes:l}),(0,a.createElement)("div",{className:i},(0,a.createElement)("div",{className:c},E.save({...l,className:o||l.className},t)),(0,a.createElement)("div",{className:d},(0,a.createElement)(I.InnerBlocks.Content,null))))},U=(0,z.compose)((0,T.withVersion)(i.version))(L),P={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}},V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.version;const t=new S.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},...P},versionAdded:"3.0.0",versionDeprecated:""}),(0,u.addFlexGapAttributes)(t),t.addDefaultValues({attributes:{readmoreText:(0,s.__)("Continue Reading",i.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)},F=V(i.version),G=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),q=o(4247),$=o.n(q);const j=(e,t)=>-1===$()(t,"3.0.3")?{...e,attributes:void 0}:e;(0,n.addFilter)("stackable.posts.title.typography-content","stackable/3_0_2",j),(0,n.addFilter)("stackable.posts.title.category-content","stackable/3_0_2",j),(0,n.addFilter)("stackable.posts.title.readmore-content","stackable/3_0_2",j),(0,n.addFilter)("stackable.posts.feature-image","stackable/3_6_3",((e,t)=>-1===$()("3.6.3",t)?e:(0,a.createElement)(u.Image.Content,null))),(0,n.addFilter)("stackable.posts.meta","stackable/3.19.0",((e,t,o)=>{const{authorShow:l,dateShow:n,commentsShow:r,author:i,date:s,comments:c,separator:d,metaClassNames:u}=t;return(0,S.semverCompare)(o,"<","3.19.0")?(l||n||r)&&(0,a.createElement)("aside",{className:u},l&&i,l&&i&&(n&&s||r&&c)&&d,n&&s,(l&&i||n&&s)&&r&&c&&d,r&&c):e}));const Z=[{attributes:{...V("3.18.1"),anchor:{attribute:"id",selector:"*",source:"attribute",type:"string"}},save:e=>(e.version="3.18.1",L(e))},{attributes:V("3.16.3"),save:(0,T.withVersion)("3.16.3")(L),isEligible:e=>u.deprecateImageBorderRadius.isEligible(e),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=u.deprecateTypographyFontSize.migrate("title%s")(t),t=u.deprecateTypographyFontSize.migrate("category%s")(t),t=u.deprecateTypographyFontSize.migrate("excerpt%s")(t),t=u.deprecateTypographyFontSize.migrate("meta%s")(t),t=u.deprecateTypographyFontSize.migrate("readmore%s")(t),t=u.deprecateBlockHeight.migrate(t),t=u.deprecateImageBorderRadius.migrate(t),t}},{attributes:V("3.16.2"),save:(0,T.withVersion)("3.16.2")(L),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e),a=u.deprecateShadowColor.isEligible("image%s")(e);return t||o||a},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=u.deprecateTypographyFontSize.migrate("title%s")(t),t=u.deprecateTypographyFontSize.migrate("category%s")(t),t=u.deprecateTypographyFontSize.migrate("excerpt%s")(t),t=u.deprecateTypographyFontSize.migrate("meta%s")(t),t=u.deprecateTypographyFontSize.migrate("readmore%s")(t),t=u.deprecateBlockHeight.migrate(t),t}},{attributes:V("3.15.3"),save:(0,T.withVersion)("3.15.3")(L),isEligible:e=>{const t=u.deprecateTypographyFontSize.isEligible("title%s")(e),o=u.deprecateTypographyFontSize.isEligible("category%s")(e),a=u.deprecateTypographyFontSize.isEligible("excerpt%s")(e),l=u.deprecateTypographyFontSize.isEligible("meta%s")(e),n=u.deprecateTypographyFontSize.isEligible("readmore%s")(e),r=u.deprecateBlockHeight.isEligible(e);return t||o||a||l||n||r},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=u.deprecateTypographyFontSize.migrate("title%s")(t),t=u.deprecateTypographyFontSize.migrate("category%s")(t),t=u.deprecateTypographyFontSize.migrate("excerpt%s")(t),t=u.deprecateTypographyFontSize.migrate("meta%s")(t),t=u.deprecateTypographyFontSize.migrate("readmore%s")(t),t=u.deprecateBlockHeight.migrate(t),t}},{attributes:V("3.12.11"),save:(0,T.withVersion)("3.12.11")(L),isEligible:e=>{if("string"==typeof(null==e?void 0:e.titleFontSize)||"string"==typeof(null==e?void 0:e.titleFontSizeTablet)||"string"==typeof(null==e?void 0:e.titleFontSizeMobile)||"string"==typeof(null==e?void 0:e.categoryFontSize)||"string"==typeof(null==e?void 0:e.categoryFontSizeTablet)||"string"==typeof(null==e?void 0:e.categoryFontSizeMobile)||"string"==typeof(null==e?void 0:e.excerptFontSize)||"string"==typeof(null==e?void 0:e.excerptFontSizeTablet)||"string"==typeof(null==e?void 0:e.excerptFontSizeMobile)||"string"==typeof(null==e?void 0:e.metaFontSize)||"string"==typeof(null==e?void 0:e.metaFontSizeTablet)||"string"==typeof(null==e?void 0:e.metaFontSizeMobile)||"string"==typeof(null==e?void 0:e.readmoreFontSize)||"string"==typeof(null==e?void 0:e.readmoreFontSizeTablet)||"string"==typeof(null==e?void 0:e.readmoreFontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e),a=u.deprecateShadowColor.isEligible("image%s")(e);return t||o||a},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:V("3.11.9"),save:(0,T.withVersion)("3.11.9")(L),isEligible:e=>{const t=u.deprecateContainerBackgroundColorOpacity.isEligible(e),o=u.deprecateBlockBackgroundColorOpacity.isEligible(e),a=u.deprecationImageOverlayOpacity.isEligible(e),l=u.deprecateTypographyGradientColor.isEligible("title%s")(e),n=u.deprecateTypographyGradientColor.isEligible("category%s")(e),r=u.deprecateTypographyGradientColor.isEligible("excerpt%s")(e),i=u.deprecateTypographyGradientColor.isEligible("meta%s")(e),s=u.deprecateTypographyGradientColor.isEligible("readmore%s")(e);return t||o||a||l||n||r||i||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:V("3.7.9"),save:(0,T.withVersion)("3.7.9")(L),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:V("3.7.9"),save:(0,T.withVersion)("3.7.9")(L)},{attributes:V("3.6.3"),save:(0,T.withVersion)("3.6.3")(L)},{attributes:V("3.0.2"),save:(0,T.withVersion)("3.0.2")(L)}],J=(0,z.createHigherOrderComponent)((e=>t=>{if("stackable/posts"===t.name){const{name:e,attributes:o}=t,a=(0,H.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,n.addFilter)("editor.BlockEdit","stackable/posts-block-featured-image-fix",J);var Y=o(6742);const K={...G,icon:W.BlogPostsIcon,supports:{align:["center","wide","full"],anchor:!0,stkAlign:!0,spacing:!0},attributes:F,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:Z,variations:d,edit:R,save:U,substitute:Y.default}},6742:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});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"}]]]]]},l=a},504:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>x});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});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 s=i;var c=o(910),d=o(4184),u=o.n(d),b=o(9783),m=o(3749),p=o(78),g=o(8003),k=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,l.memo)((()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-price"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),C=(0,m.compose)(b.withBlockWrapperIsHovered,b.withQueryLoopContext,b.withBlockAttributeContext,(0,b.withBlockStyleContext)(s))((e=>{const{className:t,attributes:o}=e,a=(0,n.getRowClasses)(o),i=(0,n.getAlignmentClasses)(o),d=u()([t,"stk-block-price",a,i]),b=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v,null),b&&(0,l.createElement)("style",{key:"block-css"},b),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-price"}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:d},(0,l.createElement)(p.InnerBlocks,{template:h,templateLock:"all"})),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))}));(0,k.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/price",((e,t)=>"stackable/price"!==(null==t?void 0:t.name)&&e)),(0,k.addFilter)("stackable.text.edit.enable-column","stackable/price",((e,t)=>"stackable/price"!==(null==t?void 0:t.name)&&e)),(0,k.addFilter)("stackable.text.edit.placeholder","stackable/price",((e,t)=>{let{parentBlock:o,isFirstBlock:a,isLastBlock:l}=t;return"stackable/price"!==(null==o?void 0:o.name)?e:a?"$":l?".00":"100"}));const y=e=>{const{attributes:t,className:o}=e,a=(0,n.getAlignmentClasses)(t),r=(0,n.getResponsiveClasses)(t),i=u()([o,"stk-block-price",r,a]);return(0,l.createElement)(n.BlockDiv.Content,{className:i,attributes:t,"data-video":t.videoLink,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,l.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 n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.MarginBottom.addAttributes(t),n.Row.addAttributes(t),n.Advanced.addAttributes(t),n.Transform.addAttributes(t),n.Alignment.addAttributes(t),n.EffectsAnimations.addAttributes(t),n.CustomAttributes.addAttributes(t),n.CustomCSS.addAttributes(t),n.Responsive.addAttributes(t),n.ConditionalDisplay.addAttributes(t),t.getMerged(e)},w=S(c.version),_=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"]}'),A={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,g.__)("$",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,g.__)("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,g.__)(".00",c.i18n),innerTextTag:"span",blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]},E=[{attributes:S("3.16.2"),save:(0,b.withVersion)("3.16.2")(y),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:S("3.15.3"),save:(0,b.withVersion)("3.15.3")(y),isEligible:e=>n.deprecateBlockHeight.isEligible(e),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:S("3.12.11"),save:(0,b.withVersion)("3.12.11")(y),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:S("3.11.9"),save:(0,b.withVersion)("3.11.9")(y),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:S("3.7.9"),save:(0,b.withVersion)("3.7.9")(y),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}];var T=o(2664);const x={..._,icon:a.PricingBoxIcon,attributes:w,supports:{anchor:!0,spacing:!0},example:A,deprecated:E,edit:C,save:f,substitute:T.default}},2664:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});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}]}},l=a},2245:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(9467),l=o(910),n=o(8003),r=o(3882),i=o(7462),s=o(2610);o(7294);const c=(0,r.applyFilters)("stackable.pricing-box.variations",[{name:"default",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Default",l.i18n)),attributes:{className:"is-style-basic"},isDefault:!0,pickerTitle:(0,n.__)("Default",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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,n._x)("Title for This Block","Heading placeholder",l.i18n),textTag:"h3"}],["stackable/price",{}],["stackable/subtitle",{text:(0,n._x)("Subtitle for This Block","Subtitle placeholder",l.i18n)}],["stackable/icon-list",{text:(0,n.sprintf)("<li>%s</li><li>%s</li><li>%s</li>",...[(0,n.__)("one",l.i18n),(0,n.__)("two",l.i18n),(0,n.__)("three",l.i18n)].map((e=>(0,n.sprintf)((0,n.__)("Package inclusion %s",l.i18n),e))))}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.i18n)}]]]],scope:["block"]},{name:"compact",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Compact",l.i18n)),attributes:{className:"is-style-compact"},pickerTitle:(0,n.__)("Compact",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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,n._x)("Title for This Block","Heading placeholder",l.i18n),textTag:"h3"}],["stackable/price",{}],["stackable/subtitle",{text:(0,n._x)("Subtitle for This Block","Subtitle placeholder",l.i18n)}],["stackable/button-group",{},[["stackable/button",{text:(0,n._x)("Button","Button placeholder",l.i18n)}]]]]]]],["stackable/icon-list",{text:(0,n.sprintf)("<li>%s</li><li>%s</li><li>%s</li>",...[(0,n.__)("one",l.i18n),(0,n.__)("two",l.i18n),(0,n.__)("three",l.i18n)].map((e=>(0,n.sprintf)((0,n.__)("Package inclusion %s",l.i18n),e))))}]],scope:["block"]},{name:"banner",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Banner Layout",l.i18n)),attributes:{className:"is-style-banner"},pickerTitle:(0,n.__)("Banner",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"colored",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Colored Layout",l.i18n)),attributes:{className:"is-style-colored"},pickerTitle:(0,n.__)("Colored",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.isPro,scope:["block"]},{name:"sectioned",description:(0,n.sprintf)((0,n._x)("%s Layout","Block layout name",l.i18n),(0,n.__)("Sectioned Layout",l.i18n)),attributes:{className:"is-style-sectioned"},pickerTitle:(0,n.__)("Sectioned",l.i18n),pickerIcon:function(e){return(0,s.createElement)("svg",(0,i.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:!l.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),g=o.n(p),k=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,(0,h.withBlockStyleContext)(m))((e=>{var t;const{className:o}=e,{hasInnerBlocks:a,innerBlocks:n}=(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]),r=(0,d.getAlignmentClasses)(e.attributes),i=g()([o,"stk-block-pricing-box"]),c=g()(["stk-block-content","stk-inner-blocks",r,`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,k.last)(n))||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:l.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:i,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))})),w=e=>{const{attributes:t}=e,o=(0,d.getAlignmentClasses)(e.attributes),a=(0,d.getResponsiveClasses)(e.attributes),l=g()([e.className,"stk-block-pricing-box",a]),n=g()(["stk-block-pricing-box__content"],(0,d.getContentAlignmentClasses)(t)),i=g()((0,r.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:l,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:n,attributes:t},(0,s.createElement)("div",{className:i},(0,s.createElement)(C.InnerBlocks.Content,null)),(0,s.createElement)(d.BlockLink.Content,{attributes:t})))},_=(0,v.compose)((0,h.withVersion)(l.version))(w);var A=o(7545);const E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.version;const t=new A.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(l.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,n.__)("Title",l.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,n.__)("$",l.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,n.__)("99",l.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,n.__)(".00",l.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,n.__)("Subtitle for This Block",l.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,n.__)("Package inclusion one",l.i18n)}</li><li>${(0,n.__)("Package inclusion two",l.i18n)}</li><li>${(0,n.__)("Package inclusion three",l.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,n.__)("Button",l.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]}]};var H=o(4247),z=o.n(H);(0,r.addFilter)("stackable.pricing-box.save.innerClassNames","stackable/3.8.0",((e,t)=>(z()(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 M=[{attributes:E("3.16.2"),save:(0,h.withVersion)("3.16.2")(w),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:E("3.15.3"),save:(0,h.withVersion)("3.15.3")(w),isEligible:e=>{const t=d.deprecateBlockHeight.isEligible(e),o=d.deprecateInnerBlockRowGapAndContainerHeight.isEligible("%s")(e);return t||o},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.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:E("3.12.11"),save:(0,h.withVersion)("3.12.11")(w),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.innerBlockRowGap)||"string"==typeof(null==e?void 0:e.innerBlockRowGapTablet)||"string"==typeof(null==e?void 0:e.innerBlockRowGapMobile)||"string"==typeof(null==e?void 0:e.containerHeight)||"string"==typeof(null==e?void 0:e.containerHeightTablet)||"string"==typeof(null==e?void 0:e.containerHeightMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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")(w),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},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")(w),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={...x,icon:a.PricingBoxIcon,attributes:T,supports:{anchor:!0,align:["center","wide","full"],stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:I,variations:c,deprecated:M,edit:S,save:_}},7712:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/pricing-box",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{},t]]]},l=a},7214:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>E});var a=o(7462),l=o(2610),n=o(9384),r=o(7200);const i=new r.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.ProgressBar.addStyles(i),n.Typography.addStyles(i,{selector:".stk-progress-bar__inner-text",hoverSelector:".stk-progress-bar__inner-text:hover"});const s=i;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 n.BlockDiv.addAttributes(t),n.Alignment.addAttributes(t),n.Advanced.addAttributes(t),n.MarginBottom.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.Style.addAttributes(t),n.ProgressBar.addAttributes(t),n.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),g=o.n(p),k=o(3749),h=o(8003);const v=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.ProgressBar.InspectorControls,null),(0,l.createElement)(n.Typography.InspectorControls,(0,a.Z)({},e,{initialOpen:!1,hasTextTag:!1,hasTextContent:!1,hasTextShadow:!0,hasToggle:!0,label:(0,h.__)("Label",d.i18n)})),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-progress-bar"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),C=(0,k.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(s))((e=>{const{className:t,attributes:o}=e,a=(0,n.getAlignmentClasses)(o),i=(0,n.getTypographyClasses)(o),c=g()([t,"stk-block-progress-bar"]),u=g()(["stk-block-progress-bar__container",a]),b=g()(["stk-progress-bar__inner-text",i]),m=g()("stk-progress-bar__bar",{"stk--has-background-overlay":"gradient"===o.progressColorType&&o.progressColor2}),p=o.progressValue||"",k=parseFloat((0,r.useDynamicContent)(p).replace(/,/g,"")),h=isNaN(k)?50:k,C=`${o.progressValuePrefix}${h}${o.progressValueSuffix}`.trim(),y=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,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)(v,{blockState:e.blockState}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c},y&&(0,l.createElement)("style",{key:"block-css"},y),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-progress-bar"}),(0,l.createElement)("div",{className:u},(0,l.createElement)("div",{className:"stk-progress-bar stk-animate"},(0,l.createElement)("div",{className:m},o.showText&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(n.Typography,{tagName:"span",className:g()([b,"stk-progress-bar__text"]),value:o.text}),(0,l.createElement)(n.Typography,{tagName:"span",className:g()([b,"stk-progress-bar__progress-value-text"]),value:C,editable:!1}))))),(0,l.createElement)("style",null,`.editor-styles-wrapper .stk-${e.attributes.uniqueId} .stk-progress-bar { --progress-value:${h}% !important; }`)),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))}));var y=o(3726),f=o.n(y),B=o(3882);const S=e=>{var t;const{className:o,attributes:r}=e,i=(0,n.getResponsiveClasses)(r),s=(0,n.getAlignmentClasses)(r),c=(0,n.getTypographyClasses)(r),d=g()([o,"stk-block-progress-bar",i]),u=g()(["stk-block-progress-bar__container",s]),b=g()(["stk-progress-bar__inner-text",c]),m=g()(["stk-progress-bar",{"stk--with-animation":r.progressAnimate}]),p=g()("stk-progress-bar__bar",{"stk--has-background-overlay":"gradient"===r.progressColorType&&r.progressColor2});let k=r.progressValue;""===r.progressValue?k=50:null!==(t=r.progressValue)&&void 0!==t&&t.match(/^[\d.]+$/)&&(k=parseFloat(k));const h=`${r.progressValuePrefix}${k}${r.progressValueSuffix}`.trim(),v=r.showText?r.progressAriaValueText||r.text:void 0;return(0,l.createElement)(n.BlockDiv.Content,{className:d,attributes:r,version:e.version},r.generatedCss&&(0,l.createElement)("style",null,r.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:r}),(0,l.createElement)("div",{className:u},(0,l.createElement)("div",(0,a.Z)({className:m,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":k,"aria-valuetext":v?f()(v):void 0,"aria-label":v?f()(v):void 0},(0,B.applyFilters)("stackable.progress-bar.div-props",{},e)),(0,l.createElement)("div",{className:p},r.showText&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(n.Typography.Content,{tagName:"span",className:g()([b,"stk-progress-bar__text"]),value:r.text}),(0,l.createElement)(n.Typography.Content,{tagName:"span",className:g()([b,"stk-progress-bar__progress-value-text"]),value:h}))))))},w=(0,k.compose)((0,m.withVersion)(d.version))(S),_=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"}');(0,B.addFilter)("stackable.progress-bar.div-props","stackable/3.19.0",((e,t)=>(0,c.semverCompare)(t.version,"<","3.19.0")?{...e,"aria-label":void 0}:e));const A=[{attributes:{...u("3.18.1"),anchor:{attribute:"id",selector:"*",source:"attribute",type:"string"}},save:e=>(e.version="3.18.1",S(e))},{attributes:u("3.16.2"),save:(0,m.withVersion)("3.16.2")(S),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),t=n.deprecateTypographyFontSize.migrate("%s")(t),t=n.deprecateBlockHeight.migrate(t),t}},{attributes:u("3.15.3"),save:(0,m.withVersion)("3.15.3")(S),isEligible:e=>{const t=n.deprecateTypographyFontSize.isEligible("%s")(e),o=n.deprecateBlockHeight.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),t=n.deprecateTypographyFontSize.migrate("%s")(t),t=n.deprecateBlockHeight.migrate(t),t}},{attributes:u("3.12.11"),save:(0,m.withVersion)("3.12.11")(S),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:u("3.11.9"),save:(0,m.withVersion)("3.11.9")(S),isEligible:e=>{const t=n.deprecateContainerBackgroundColorOpacity.isEligible(e),o=n.deprecateBlockBackgroundColorOpacity.isEligible(e),a=n.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:u("3.7.9"),save:(0,m.withVersion)("3.7.9")(S),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}],E={..._,icon:o(9467).ProgressBarIcon,attributes:b,example:{attributes:{uniqueId:"123bd21"},innerBlocks:[]},edit:C,save:w,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:()=>l});const a={from:"stackable/progress-bar",transform:e=>["core/paragraph",{content:(null==e?void 0:e.progressValue)||"50",fontSize:"x-large"}]},l=a},3761:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>E});var a=o(7462),l=o(2610),n=o(9384),r=o(7200);const i=new r.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.ProgressBar.addStyles(i,{isCircle:!0}),n.Typography.addStyles(i,{selector:".stk-progress-circle__inner-text",hoverSelector:".stk-progress-circle__inner-text:hover"});const s=i;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 n.BlockDiv.addAttributes(t),n.Alignment.addAttributes(t),n.Advanced.addAttributes(t),n.MarginBottom.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.Style.addAttributes(t),n.ProgressBar.addAttributes(t,!0),n.Typography.addAttributes(t),t.getMerged(e)},b=u(d.version);var m=o(9783),p=o(4184),g=o.n(p),k=o(3749),h=o(8003);const v=(0,l.memo)((e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.Alignment.InspectorControls,null),(0,l.createElement)(n.ProgressBar.InspectorControls,{isCircle:!0}),(0,l.createElement)(n.Typography.InspectorControls,(0,a.Z)({},e,{initialOpen:!1,hasTextTag:!1,hasTextContent:!1,hasTextShadow:!0,hasToggle:!0,label:(0,h.__)("Label",d.i18n)})),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-progress-circle"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),C=(0,k.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(s))((e=>{const{className:t,attributes:o}=e,a=(0,n.getAlignmentClasses)(o),i=(0,n.getTypographyClasses)(o),c=g()([t,"stk-block-progress-circle"]),u=g()(["stk-block-progress-circle__container",a]),b=g()(["stk-progress-circle__inner-text",i]),m=o.progressValue||"",p=parseFloat((0,r.useDynamicContent)(m).replace(/,/g,"")),k=isNaN(p)?50:p,h=`${o.progressValuePrefix}${k}${o.progressValueSuffix}`.trim(),C=((o.progressColor1||"")+(o.progressColor2||"")+(o.progressColorGradientDirection||"")).replace(/[^0-9A-Z]+/gi,""),y=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,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)(v,{blockState:e.blockState}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c},y&&(0,l.createElement)("style",{key:"block-css"},y),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-progress-circle"}),(0,l.createElement)("div",{className:u},(0,l.createElement)("div",{className:"stk-progress-circle stk-animate"},(0,l.createElement)("svg",null,"gradient"===o.progressColorType&&(0,l.createElement)("defs",null,(0,l.createElement)("linearGradient",{id:`gradient-${C}`,gradientTransform:o.progressColorGradientDirection?`rotate(${o.progressColorGradientDirection})`:void 0},(0,l.createElement)("stop",{offset:"0%",stopColor:o.progressColor1}),(0,l.createElement)("stop",{offset:"100%",stopColor:o.progressColor2}))),(0,l.createElement)("circle",{className:"stk-progress-circle__background"}),(0,l.createElement)("circle",{className:"stk-progress-circle__bar"})),o.showText&&(0,l.createElement)("div",{className:"stk-number"},(0,l.createElement)(n.Typography,{tagName:"span",className:b,value:h,editable:!1})))),(0,l.createElement)("style",null,`.editor-styles-wrapper .stk-${e.attributes.uniqueId} .stk-progress-circle { --progress-value:${k} }`)),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))}));var y=o(3726),f=o.n(y),B=o(3882);const S=e=>{var t;const{className:o,attributes:r}=e,i=(0,n.getResponsiveClasses)(r),s=(0,n.getAlignmentClasses)(r),c=(0,n.getTypographyClasses)(r),d=g()([o,"stk-block-progress-circle",i]),u=g()([o,"stk-block-progress-circle__container",s]),b=g()(["stk-progress-circle__inner-text",c]),m=g()(["stk-progress-circle",{"stk--with-animation":r.progressAnimate}]);let p=r.progressValue;""===r.progressValue?p=50:null!==(t=r.progressValue)&&void 0!==t&&t.match(/^[\d.]+$/)&&(p=parseFloat(p));const k=`${r.progressValuePrefix}${p}${r.progressValueSuffix}`.trim();return(0,l.createElement)(n.BlockDiv.Content,{className:d,attributes:r,version:e.version},r.generatedCss&&(0,l.createElement)("style",null,r.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:r}),(0,l.createElement)("div",{className:u},(0,l.createElement)("div",(0,a.Z)({className:m,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":p,"aria-valuetext":r.progressAriaValueText?f()(r.progressAriaValueText):void 0,"aria-label":r.progressAriaValueText?f()(r.progressAriaValueText):void 0},(0,B.applyFilters)("stackable.progress-circle.div-props",{},e)),(0,l.createElement)("svg",null,"gradient"===r.progressColorType&&(0,l.createElement)("defs",null,(0,l.createElement)("linearGradient",{id:`gradient-${r.uniqueId}`,gradientTransform:r.progressColorGradientDirection?`rotate(${r.progressColorGradientDirection})`:void 0},(0,l.createElement)("stop",{offset:"0%",stopColor:r.progressColor1}),(0,l.createElement)("stop",{offset:"100%",stopColor:r.progressColor2}))),(0,l.createElement)("circle",{className:"stk-progress-circle__background"}),(0,l.createElement)("circle",{className:"stk-progress-circle__bar"})),r.showText&&(0,l.createElement)("div",{className:"stk-number"},(0,l.createElement)(n.Typography.Content,{tagName:"span",className:b,value:k})))))},w=(0,k.compose)((0,m.withVersion)(d.version))(S),_=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"}');(0,B.addFilter)("stackable.progress-circle.div-props","stackable/3.19.0",((e,t)=>(0,c.semverCompare)(t.version,"<","3.19.0")?{...e,"aria-label":void 0}:e));const A=[{attributes:{...u("3.18.1"),anchor:{attribute:"id",selector:"*",source:"attribute",type:"string"}},save:e=>(e.version="3.18.1",S(e))},{attributes:u("3.16.2"),save:(0,m.withVersion)("3.16.2")(S),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),t=n.deprecateTypographyFontSize.migrate("%s")(t),t=n.deprecateBlockHeight.migrate(t),t}},{attributes:u("3.15.3"),save:(0,m.withVersion)("3.15.3")(S),isEligible:e=>{const t=n.deprecateTypographyFontSize.isEligible("%s")(e),o=n.deprecateBlockHeight.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),t=n.deprecateTypographyFontSize.migrate("%s")(t),t=n.deprecateBlockHeight.migrate(t),t}},{attributes:u("3.12.11"),save:(0,m.withVersion)("3.12.11")(S),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e),a=n.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:u("3.11.9"),save:(0,m.withVersion)("3.11.9")(S),isEligible:e=>{const t=n.deprecateContainerBackgroundColorOpacity.isEligible(e),o=n.deprecateBlockBackgroundColorOpacity.isEligible(e),a=n.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=n.deprecateContainerBackgroundColorOpacity.migrate(t),t=n.deprecateBlockBackgroundColorOpacity.migrate(t),t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:u("3.7.9"),save:(0,m.withVersion)("3.7.9")(S),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateTypographyGradientColor.migrate("%s")(t),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateTypographyShadowColor.migrate("%s")(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}],E={..._,icon:o(9467).ProgressCircleIcon,attributes:b,example:{attributes:{uniqueId:"123bd21"},innerBlocks:[]},edit:C,save:w,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:()=>l});const a={from:"stackable/progress-circle",transform:e=>["core/paragraph",{content:(null==e?void 0:e.progressValue)||"50",fontSize:"x-large"}]},l=a},7660:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>w});var a=o(2610),l=o(4184),n=o.n(l),r=o(9783),i=o(910),s=o(9384),c=o(7200),d=o(3882);const u=e=>{const{className:t,attributes:o}=e,{separatorDesign:l,separatorInverted:r}=o,i=(0,s.getResponsiveClasses)(e.attributes),u=n()([t,"stk-block-separator",i,"stk--no-padding"]),b=n()(["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:l,inverted:r}),(0,d.applyFilters)("stackable.block.separator.save.output.layers",null,e)))},b=(0,r.withVersion)(i.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 g=o(3749),k=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,k.__)("General",i.i18n),id:"general",initialOpen:!0},(0,a.createElement)(c.AdvancedRangeControl,{label:(0,k.__)("Height",i.i18n),min:30,sliderMax:400,placeholder:"",attribute:"separatorHeight",responsive:"all"}),(0,a.createElement)(c.AdvancedToggleControl,{label:(0,k.__)("Flip Horizontally",i.i18n),attribute:"separatorFlipHorizontally"}),(0,a.createElement)(c.AdvancedToggleControl,{label:(0,k.__)("Flip Vertically",i.i18n),attribute:"separatorFlipVertically"})),(0,a.createElement)(c.PanelAdvancedSettings,{title:(0,k.__)("Separator",i.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,g.compose)(r.withBlockWrapperIsHovered,r.withQueryLoopContext,r.withBlockAttributeContext,(0,r.withBlockStyleContext)(p))((e=>{const{className:t,attributes:o,setAttributes:l}=e,{separatorDesign:r,separatorInverted:u}=o,b={separatorLayer2Show:o.separatorLayer2Show,separatorLayer3Show:o.separatorLayer3Show},m=n()([t,"stk-block-separator","stk--no-padding"]),g=n()(["stk-block-separator__inner"]),k=(0,c.useBlockCssGenerator)({attributes:e.attributes,blockStyles:p,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)(h,{attributes:b,setAttributes:l}),k&&(0,a.createElement)("style",{key:"block-css"},k),(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:g},(0,a.createElement)(c.Separator2,{design:r,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]:i.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(i.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.16.2"),save:(0,r.withVersion)("3.16.2")(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=s.deprecateBlockHeight.migrate(t),t}},{attributes:y("3.15.3"),save:(0,r.withVersion)("3.15.3")(u),isEligible:e=>s.deprecateBlockHeight.isEligible(e),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=s.deprecateBlockHeight.migrate(t),t}},{attributes:y("3.12.11"),save:(0,r.withVersion)("3.12.11")(u),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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,r.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,r.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)}}],w={...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:()=>l});const a={from:"stackable/separator",transform:()=>["core/separator"]},l=a},918:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>T});var a=o(2610),l=o(9384),n=o(7200);const r=new n.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});r.addBlockStyles("height",[{selector:"",renderIn:"save",styleRule:"height",attrName:"height",key:"height",format:"%spx",responsive:"all"}]),l.BlockDiv.addStyles(r),l.Advanced.addStyles(r),l.Transform.addStyles(r),l.EffectsAnimations.addStyles(r);const i=r;var s=o(4184),c=o.n(s),d=o(910),u=o(8333),b=o(7545),m=o(9783),p=o(7537),g=o(8003),k=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)(n.InspectorTabs,{tabs:C,hasLayoutPanel:!1}),(0,a.createElement)(n.InspectorStyleControls,null,(0,a.createElement)(n.PanelAdvancedSettings,{title:(0,g.__)("General",d.i18n),id:"general",initialOpen:!0},(0,a.createElement)(n.AdvancedRangeControl,{label:(0,g.__)("Height",d.i18n),responsive:"all",attribute:"height",sliderMin:"0",sliderMax:"500",placeholder:e.defaultMinHeight}))),(0,a.createElement)(l.BlockDiv.InspectorControls,{hasSizeSpacing:!1}),(0,a.createElement)(l.Advanced.InspectorControls,null),(0,a.createElement)(l.Transform.InspectorControls,null),(0,a.createElement)(l.EffectsAnimations.InspectorControls,null),(0,a.createElement)(l.CustomAttributes.InspectorControls,null),(0,a.createElement)(l.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-spacer"}),(0,a.createElement)(l.Responsive.InspectorControls,null),(0,a.createElement)(l.ConditionalDisplay.InspectorControls,null)))),f=(0,k.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(i))((e=>{var t,o,r,s;const{className:m,attributes:k,setAttributes:C,isHovered:f,isSelected:B}=e,S=(0,u.useDeviceType)(),w=c()([m,"stk-block-spacer","stk--no-padding"]),_=(0,b.getAttributeName)("height",S),A=k[_],E=(0,a.useMemo)((()=>"Tablet"===S?v(k[(0,b.getAttributeName)("height")])?k[(0,b.getAttributeName)("height")]:50:"Mobile"===S?v(k[(0,b.getAttributeName)("height","tablet")])?k[(0,b.getAttributeName)("height","tablet")]:v(k[(0,b.getAttributeName)("height")])?k[(0,b.getAttributeName)("height")]:50:50),[S]),[T,x]=(0,a.useState)(h(parseInt(void 0===A?E:k[_]))),I=(0,a.useRef)(),H=(0,n.useBlockCssGenerator)({attributes:e.attributes,blockStyles:i,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}),H&&(0,a.createElement)("style",{key:"block-css"},H),(0,a.createElement)(l.CustomCSS,{mainBlockClass:"stk-block-spacer"}),(0,a.createElement)(l.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:w},(0,a.createElement)(p.ResizableBox,{ref:I,showHandle:f||B,size:{height:""===A?E:A},minHeight:"0",enable:{bottom:!0},onResize:(e,t,o,a)=>{let l=A;""!==l&&void 0!==l||(l=E),x(h(parseInt(l)+a.height))},onResizeStop:(e,t,o,a)=>{let l=A;""!==l&&void 0!==l||(l=E),C({[_]:parseInt(l)+a.height})},snap:{y:T},snapGap:10},f&&(0,a.createElement)(n.ResizerTooltip,{label:(0,g.__)("Spacer",d.i18n),enableWidth:!1,height:null!==(t=I.current)&&void 0!==t&&null!==(o=t.state)&&void 0!==o&&o.isResizing?null===(r=I.current)||void 0===r||null===(s=r.state)||void 0===s?void 0:s.height:""===A||void 0===A?"":A,heightUnits:["px"],onChangeHeight:e=>{let{value:t}=e;C({[_]:t})},defaultHeight:"",heightPlaceholder:E}))))})),B=e=>{const{attributes:t,...o}=e,n=(0,l.getResponsiveClasses)(e.attributes),r=c()([o.className,"stk-block-spacer",n,"stk--no-padding"]);return(0,a.createElement)(l.BlockDiv.Content,{className:r,attributes:e.attributes,version:e.version},t.generatedCss&&(0,a.createElement)("style",null,t.generatedCss),(0,a.createElement)(l.CustomCSS.Content,{attributes:e.attributes}))},S=(0,k.compose)((0,m.withVersion)(d.version))(B),w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new b.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),t.add({attributes:{height:{stkResponsive:!0,type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},_=w(d.version),A=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:w("3.16.2"),save:(0,m.withVersion)("3.16.2")(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=l.deprecateBlockHeight.migrate(t),t}},{attributes:w("3.15.3"),save:(0,m.withVersion)("3.15.3")(B),isEligible:e=>l.deprecateBlockHeight.isEligible(e),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.deprecateBlockHeight.migrate(t),t}},{attributes:w("3.12.11"),save:(0,m.withVersion)("3.12.11")(B),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:w("3.11.9"),save:(0,m.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}},{attributes:w("3.7.9"),save:(0,m.withVersion)("3.7.9")(B),migrate:e=>{let t=l.deprecateContainerBackgroundColorOpacity.migrate(e);return t=l.deprecateBlockShadowColor.migrate(t),t=l.deprecateContainerShadowColor.migrate(t),l.deprecateBlockBackgroundColorOpacity.migrate(t)}}],T={...A,icon:o(9467).SpacerIcon,attributes:_,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:()=>l});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`}]}},l=a},4073:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>H});var a=o(9467),l=o(378);const n={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{content:t}=e;return(0,l.createBlock)("stackable/subtitle",{text:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{content:t}=e;return(0,l.createBlock)("stackable/subtitle",{text:t})}))}],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{text:t}=e;return(0,l.createBlock)("core/paragraph",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{text:t}=e;return(0,l.createBlock)("core/heading",{content:t})}))}]},r=n;var i=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),g=o.n(p),k=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,i.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)(k.withBlockWrapperIsHovered,k.withQueryLoopContext,k.withBlockAttributeContext,(0,k.withBlockStyleContext)(b))((e=>{const{className:t,onReplace:o,onRemove:a,mergeBlocks:l}=e,n=(0,c.getTypographyClasses)(e.attributes),r=(0,c.getAlignmentClasses)(e.attributes),i=g()([t,"stk-block-subtitle"]),u=g()(["stk-block-subtitle__text","stk-subtitle",n,r]),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:i},(0,s.createElement)(c.Typography,{tagName:"p",className:u,placeholder:(0,y.__)("Type / to choose a block",m.i18n),onMerge:l,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),l=(0,c.getTypographyClasses)(e.attributes),n=(0,c.getAlignmentClasses)(e.attributes),r=g()([t,"stk-block-subtitle",a]),i=g()(["stk-block-subtitle__text","stk-subtitle",l,n]);return(0,s.createElement)(c.BlockDiv.Content,{className:r,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:i,tagName:"p"}))},w=(0,v.compose)((0,k.withVersion)(m.version))(S),_=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)},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:_("3.16.2"),save:(0,k.withVersion)("3.16.2")(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=c.deprecateTypographyFontSize.migrate("%s")(t),t=c.deprecateBlockHeight.migrate(t),t}},{attributes:_("3.15.3"),save:(0,k.withVersion)("3.15.3")(S),isEligible:e=>{const t=c.deprecateTypographyFontSize.isEligible("%s")(e),o=c.deprecateBlockHeight.isEligible(e);return t||o},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=c.deprecateTypographyFontSize.migrate("%s")(t),t=c.deprecateBlockHeight.migrate(t),t}},{attributes:_("3.12.11"),save:(0,k.withVersion)("3.12.11")(S),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:_("3.11.9"),save:(0,k.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:_("3.7.9"),save:(0,k.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 H={...E,icon:a.TextIcon,attributes:A,supports:{anchor:!0,spacing:!0,splitting:!0},example:T,deprecated:x,edit:B,save:w,transforms:r,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:()=>l});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}]},l=a},5867:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>x});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});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),n.Separator.addStyles(i);const s=i;var c=o(910),d=o(4184),u=o.n(d),b=o(9783),m=o(3749),p=(o(8003),o(9107)),g=o(3284);const k=["stackable/column"],h=[["stackable/column",{customAttributes:[["role","tabpanel"]]}],["stackable/column",{customAttributes:[["role","tabpanel"]]}],["stackable/column",{customAttributes:[["role","tabpanel"]]}]],v=(0,l.memo)((()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(n.Alignment.InspectorControls,{hasColumnJustify:!1,hasRowAlignment:!1}),(0,l.createElement)(n.BlockDiv.InspectorControls,{sizeControlLayoutProps:{hasContentVerticalAlign:!1}}),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-tab-content"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null)))),C=(0,m.compose)(b.withBlockWrapper,b.withQueryLoopContext,b.withBlockAttributeContext,(0,b.withBlockStyleContext)(s))((e=>{const{className:t,clientId:o,context:a}=e,[i,,d]=(0,p.VT)(),b=(0,n.getRowClasses)(e.attributes),m=(0,n.getSeparatorClasses)(e.attributes),C=(0,n.getAlignmentClasses)(e.attributes),[y,f]=r.ColumnInnerBlocks.useContext(),{innerBlocks:B,hasInnerBlocks:S}=(0,g.useSelect)((e=>{const t=e("core/block-editor").getBlock(o).innerBlocks;return{innerBlocks:t,hasInnerBlocks:t.length>0}}),[o]),w=u()([t,"stk-block-tab-content",b,m,f]),_=u()(["stk-inner-blocks",C,"stk-block-content"],(0,n.getContentAlignmentClasses)(e.attributes)),A=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v,null),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:w},A&&(0,l.createElement)("style",{key:"block-css"},A),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-tab-content"}),(0,l.createElement)(n.Separator,null,(0,l.createElement)("div",{className:_,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},(0,l.createElement)(r.ColumnInnerBlocks,{providerValue:y,orientation:"horizontal",template:e.attributes.templateLock?void 0:h,allowedBlocks:k,renderAppender:!1,templateLock:!1}))),(0,l.createElement)("style",null,null==B?void 0:B.map(((e,t)=>{let{clientId:o}=e;return"immediate"!==a["stackable/tabPanelEffect"]?t!==i-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!==i-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,n.getRowClasses)(e.attributes),a=(0,n.getSeparatorClasses)(e.attributes),r=(0,n.getAlignmentClasses)(e.attributes),i=(0,n.getResponsiveClasses)(e.attributes),s=u()([e.className,"stk-block-tab-content",i,a]),c=u()((0,f.applyFilters)("stackable.tab-content.save.contentClassNames",[[o,"stk-inner-blocks",r,"stk-block-content"],(0,n.getContentAlignmentClasses)(e.attributes)],e));return(0,l.createElement)(n.BlockDiv.Content,{className:s,attributes:t,version:e.version},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,l.createElement)(n.Separator.Content,{attributes:t},(0,l.createElement)("div",{className:c},(0,l.createElement)(y.InnerBlocks.Content,null))))},S=(0,m.compose)((0,b.withVersion)(c.version))(B);var w=o(7545);const _=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new w.AttributeObject;return n.BlockDiv.addAttributes(t),n.Columns.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.Separator.addAttributes(t),n.ContentAlign.addAttributes(t),t.add({attributes:{templateLock:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},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:_("3.16.2"),save:(0,b.withVersion)("3.16.2")(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=n.deprecateBlockHeight.migrate(t),t=n.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:_("3.15.3"),save:(0,b.withVersion)("3.15.3")(B),isEligible:e=>{const t=n.deprecateBlockHeight.isEligible(e),o=n.deprecateColumnAndRowGap.isEligible("%s")(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=n.deprecateBlockHeight.migrate(t),t=n.deprecateColumnAndRowGap.migrate("%s")(t),t}},{attributes:_("3.12.11"),save:(0,b.withVersion)("3.12.11")(B),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.columnSpacing)||"string"==typeof(null==e?void 0:e.columnSpacingTablet)||"string"==typeof(null==e?void 0:e.columnSpacingMobile)||"string"==typeof(null==e?void 0:e.columnGap)||"string"==typeof(null==e?void 0:e.columnGapTablet)||"string"==typeof(null==e?void 0:e.columnGapMobile)||"string"==typeof(null==e?void 0:e.rowGap)||"string"==typeof(null==e?void 0:e.rowGapTablet)||"string"==typeof(null==e?void 0:e.rowGapMobile))return!1;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,b.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}}],x={...E,icon:a.TabsContentIcon,attributes:A,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:()=>R});var a=o(9467),l=o(7462),n=o(2610),r=o(9384),i=o(7200);const s=new i.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"]}]),r.Alignment.addStyles(s),r.BlockDiv.addStyles(s),r.Advanced.addStyles(s),r.Transform.addStyles(s),r.Typography.addStyles(s,{selector:".stk-block-tab-labels__text",hoverSelector:".stk-block-tabs__tab:hover .stk-block-tab-labels__text",attrNameTemplate:"tab%s"}),r.Icon.addStyles(s,{selector:".stk-block-tabs__tab",hoverSelector:".stk-block-tabs__tab:hover",hasIconGap:!1}),r.EffectsAnimations.addStyles(s),r.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"}),r.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 r.BlockDiv.addAttributes(t),r.Style.addAttributes(t),r.EffectsAnimations.addAttributes(t),r.CustomAttributes.addAttributes(t),r.CustomCSS.addAttributes(t),r.Responsive.addAttributes(t),r.ConditionalDisplay.addAttributes(t),r.Advanced.addAttributes(t),r.Transform.addAttributes(t),r.Alignment.addAttributes(t),r.MarginBottom.addAttributes(t),r.Typography.addAttributes(t,".stk-block-tab-labels__text",{hasTextTag:!1,attrNameTemplate:"tab%s"}),r.Icon.addAttributes(t),r.Button.addAttributes(t,{attrNameTemplate:"tab%s"}),r.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)},g=p(b.version);o(7294);var k=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,k.__)("Default",b.i18n),isDefault:!0,icon:function(e){return(0,n.createElement)("svg",(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{d:"M43 28H5v1h38z",fill:"#d9d9d9"}),(0,n.createElement)("path",{d:"M20 23h-7v2h7z"}),(0,n.createElement)("path",{d:"M35 23h-7v2h7z",fill:"#ccc"}),(0,n.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,k.__)("Classic",b.i18n),disabled:!0,icon:function(e){return(0,n.createElement)("svg",(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("path",{clipRule:"evenodd",d:"M10 19h13v9h2v-9h13v9h5v1H22v-9H11v9H5v-1h5zm16 9h11v-8H26z",fillRule:"evenodd"}),(0,n.createElement)("path",{d:"M20 23h-7v2h7z"}),(0,n.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,k.__)("Button",b.i18n),disabled:!0,icon:function(e){return(0,n.createElement)("svg",(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.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,n.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,k.__)("Centered Pills",b.i18n),disabled:!0,icon:function(e){return(0,n.createElement)("svg",(0,l.Z)({viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("g",{clipRule:"evenodd",fillRule:"evenodd"},(0,n.createElement)("path",{d:"M12 19a5 5 0 000 10h23a5 5 0 000-10zm16 4h7v2h-7z",fill:"#d9d9d9"}),(0,n.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),w=o(3284),_=o(3749),A=o(78),E=o(7537),T=o(378);const x=["centered-buttons"],I=[{value:"",title:(0,k.__)("Left",b.i18n),icon:(0,n.createElement)((function(e){return(0,n.createElement)("svg",(0,l.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("circle",{cx:3,cy:9,r:3}),(0,n.createElement)("path",{d:"M8 8h12v2H8z"}))}),null)},{value:"right",title:(0,k.__)("Right",b.i18n),icon:(0,n.createElement)((function(e){return(0,n.createElement)("svg",(0,l.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("circle",{cx:17,cy:9,r:3}),(0,n.createElement)("path",{d:"M0 8h12v2H0z"}))}),null)},{value:"top",title:(0,k.__)("Top",b.i18n),icon:(0,n.createElement)((function(e){return(0,n.createElement)("svg",(0,l.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("circle",{cx:10,cy:7,r:3}),(0,n.createElement)("path",{d:"M0 12h20v2H0z"}))}),null)},{value:"bottom",title:(0,k.__)("Bottom",b.i18n),icon:(0,n.createElement)((function(e){return(0,n.createElement)("svg",(0,l.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.createElement)("circle",{cx:10,cy:13,r:3}),(0,n.createElement)("path",{d:"M0 6h20v2H0z"}))}),null)}],H=(0,n.memo)((e=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.InspectorTabs,null),(0,n.createElement)(A.BlockControls,null,(0,n.createElement)(E.ToolbarGroup,null,(0,n.createElement)(E.ToolbarButton,{label:(0,k.__)("Move left",b.i18n),icon:"arrow-left-alt2",disabled:1===e.activeTab,onClick:e.moveActiveTabLeft}),(0,n.createElement)(E.ToolbarButton,{label:(0,k.__)("Move right",b.i18n),icon:"arrow-right-alt2",disabled:e.activeTab===e.attributes.tabLabels.length,onClick:e.moveActiveTabRight}))),(0,n.createElement)(A.BlockControls,null,(0,n.createElement)(E.ToolbarGroup,null,(0,n.createElement)(E.ToolbarButton,{label:(0,k.__)("Add tab",b.i18n),icon:"plus-alt2",onClick:()=>e.addNewTab(e.activeTab)}),(0,n.createElement)(E.ToolbarButton,{label:(0,k.__)("Duplicate tab",b.i18n),icon:"admin-page",onClick:()=>e.duplicateTab(e.activeTab)}),(0,n.createElement)(E.ToolbarButton,{label:(0,k.__)("Delete tab",b.i18n),icon:"trash",disabled:1===e.attributes.tabLabels.length,onClick:()=>{confirm((0,k.__)("Are you sure you want to delete this tab?",b.i18n))&&e.deleteActiveTab()}}))),(0,n.createElement)(i.InspectorLayoutControls,null,"vertical"!==e.context["stackable/tabOrientation"]&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.__)("Full Width",b.i18n),attribute:"fullWidth",defaultValue:!1,onChange:t=>{const o={fullWidth:t};var a,l;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===(l=e.attributes.blockMargin)||void 0===l?void 0:l.bottom)||""},t){var n,r;const t=(null===(n=e.attributes.blockMargin)||void 0===n?void 0:n.right)||"",o=(null===(r=e.attributes.blockMargin)||void 0===r?void 0:r.left)||"";e.attributes.blockMargin.right="auto"===t?"":t,e.attributes.blockMargin.left="auto"===o?"":o}else{var i,s;const t=(null===(i=e.attributes.blockMargin)||void 0===i?void 0:i.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,n.createElement)(i.AdvancedToggleControl,{label:(0,k.__)("Fixed Icon Position",b.i18n),attribute:"fixedIconPosition",defaultValue:!1}),e.attributes.showIcon&&(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.__)("Icon Position",b.i18n),controls:I,attribute:"iconPosition"}),"vertical"!==e.context["stackable/tabOrientation"]&&(0,n.createElement)(n.Fragment,null,!e.attributes.fullWidth&&(0,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.__)("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,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AlignButtonsControl,{label:(0,k.__)("Text Alignment",b.i18n),attribute:"contentAlign",responsive:"all"})),"vertical"!==e.context["stackable/tabOrientation"]&&(0,n.createElement)(n.Fragment,null,(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Column Gap",b.i18n),attribute:"columnGap",min:0,sliderMax:50,placeholder:"12",responsive:"all"})),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Row Gap",b.i18n),attribute:"rowGap",min:0,sliderMax:50,placeholder:"8",responsive:"all"}),e.attributes.showIcon&&(0,n.createElement)(i.AdvancedRangeControl,{label:(0,k.__)("Icon Gap",b.i18n),attribute:"iconGap",min:0,sliderMax:50,placeholder:"8"}),(0,n.createElement)(i.AdvancedToggleControl,{label:(0,k.__)("Scrollable Tabs on Mobile",b.i18n),attribute:"scrollableOnMobile",defaultValue:!0})),(0,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Tab",b.i18n),initialOpen:!0,id:"tab"},(0,n.createElement)(i.BlockStyles,{styles:e.blockStyles,context:e.context}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(r.Button.InspectorControls.Colors.Controls,{hasTextColor:!1,hasIconColor:!1,attrNameTemplate:"tab%s"}),(0,n.createElement)(i.ColorPaletteControl,{label:(0,k.__)("Text Color",b.i18n),attribute:"tabTextColor1",hover:"all"}),e.attributes.showIcon&&(0,n.createElement)(i.ColorPaletteControl,{label:(0,k.__)("Icon Color",b.i18n),attribute:"tabIconColor1",hover:"all"}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(r.Button.InspectorControls.Size.Controls,{attrNameTemplate:"tab%s"}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(r.Button.InspectorControls.Borders.Controls,{attrNameTemplate:"tab%s"})),(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Tab Active State",b.i18n),id:"tab-active-state"},(0,n.createElement)(r.Button.InspectorControls.Colors.Controls,{hasTextColor:!1,hasIconColor:!1,attrNameTemplate:"activeTab%s"}),(0,n.createElement)(i.ColorPaletteControl,{label:(0,k.__)("Text Color",b.i18n),attribute:"activeTabTextColor",hover:"all"}),e.attributes.showIcon&&(0,n.createElement)(i.ColorPaletteControl,{label:(0,k.__)("Icon Color",b.i18n),attribute:"activeTabIconColor1",hover:"all"}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(r.Button.InspectorControls.Borders.Controls,{attrNameTemplate:"activeTab%s",hasBorderType:!1,borderTypeValue:e.attributes.tabBorderType,hasBorderRadius:!1})),(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Typography",b.i18n),initialOpen:!1,id:"typography"},(0,n.createElement)(r.Typography.InspectorControls.Controls,(0,l.Z)({attrNameTemplate:"tab%s"},e,{hasTextContent:!1,hasTextTag:!1,isMultiline:!0,initialOpen:!0,hasTextShadow:!0,hasGradient:!1,hasInset:!1}))),(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Icon",b.i18n),initialOpen:!1,hasToggle:!0,checked:e.attributes.showIcon,onChange:t=>e.setAttributes({showIcon:t}),id:"icon"},(0,n.createElement)(r.Icon.InspectorControls,{attrNameTemplate:"tab%s",wrapInPanels:!1,hasGradient:!1,hasShape:!1,hasBackgroundShape:!1,hasIconGap:!0,hasIconPosition:!1,defaultValue:m,iconControlHelp:(0,k.__)("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,n.createElement)(i.AdvancedToolbarControl,{label:(0,k.__)("Icon Position",b.i18n),controls:I,attribute:"iconPosition"})))),(0,n.createElement)(r.BlockDiv.InspectorControls,null),(0,n.createElement)(i.InspectorAdvancedControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,k.__)("Tab Anchors",b.i18n),id:"tabAnchors"},(0,n.createElement)(E.BaseControl,{help:(0,k.__)("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,n.createElement)(i.AdvancedTextControl,{label:(0,k.sprintf)((0,k.__)("%s Anchor",b.i18n),(0,k.__)(t.label,b.i18n)),value:e.tabLabels[o].anchor,placeholder:(0,k.__)("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,n.createElement)(r.Advanced.InspectorControls,null),(0,n.createElement)(r.Transform.InspectorControls,null),(0,n.createElement)(r.EffectsAnimations.InspectorControls,null),(0,n.createElement)(r.CustomAttributes.InspectorControls,null),(0,n.createElement)(r.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-tab-labels"}),(0,n.createElement)(r.Responsive.InspectorControls,null),(0,n.createElement)(r.ConditionalDisplay.InspectorControls,null)))),z=(0,_.compose)(f.withBlockWrapper,f.withQueryLoopContext,f.withBlockAttributeContext,(0,f.withBlockStyleContext)(c))((e=>{const{className:t,clientId:o,isSelected:a,setAttributes:l,context:s}=e,[u,m,,p]=(0,d.VT)(),g=(0,r.getTypographyClasses)(e.attributes),h=(0,r.getAlignmentClasses)(e.attributes),{parentBlock:C}=(0,w.useSelect)((e=>{const t=e("core/block-editor").getBlockRootClientId(o);return{parentBlock:e("core/block-editor").getBlock(t)}}),[o]),f=(()=>{const e=(0,n.useRef)({});return(0,n.useCallback)((t=>{var o,a;return null!==(a=(o=e.current)[t])&&void 0!==a?a:o[t]=(0,n.createRef)()}),[e])})(),B=t=>{const o=(0,S.cloneDeep)(e.attributes.tabLabels);o.splice(t,0,{label:"",icon:""}),l({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,w.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)},_=()=>{const t=u-1,o=(0,S.cloneDeep)(e.attributes.tabLabels);o.splice(t,1),l({tabLabels:o}),p(!1),setTimeout((()=>{const e="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1];(0,w.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)},A=v.map((e=>{let t=!1;return"vertical"===s["stackable/tabOrientation"]&&x.includes(e.name)&&(t=!0),{...e,disabled:t}})),[E,I]=(0,n.useState)(e.attributes.tabLabels);(0,n.useEffect)((()=>{I(e.attributes.tabLabels)}),[e.attributes.tabLabels]);const z=y()([t,"stk-block-tab-labels",{"stk-block-tab-labels--wrap-mobile":!e.attributes.scrollableOnMobile}]),M=y()(["stk-block-tab-labels__text",g,h]),O=(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)(H,{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,l({tabLabels:o});const n="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1];(0,w.dispatch)("core/block-editor").moveBlocksUp([n.innerBlocks[t].clientId],n.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,l({tabLabels:o});const n="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1];(0,w.dispatch)("core/block-editor").moveBlocksDown([n.innerBlocks[t].clientId],n.clientId),m(u+1)},addNewTab:B,deleteActiveTab:_,duplicateTab:t=>{const o=(0,S.cloneDeep)(e.attributes.tabLabels);o.splice(t,0,{label:o[t-1].label,icon:o[t-1].icon}),l({tabLabels:o}),p(!1),setTimeout((()=>{const e="stackable/tab-content"===C.innerBlocks[0].name?C.innerBlocks[0]:C.innerBlocks[1];(0,w.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:A,setAttributes:l,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}}),O&&(0,n.createElement)("style",{key:"block-css"},O),(0,n.createElement)(r.CustomCSS,{mainBlockClass:"stk-block-tab-labels"}),(0,n.createElement)(r.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:z},(0,n.createElement)("div",{className:"stk-block-tab-labels__wrapper"},e.attributes.tabLabels.map(((t,o)=>(0,n.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,w.dispatch)("core/block-editor").clearSelectedBlock()})(o+1)},e.attributes.showIcon&&(0,n.createElement)(r.Icon,{onChange:t=>((t,o)=>{const a=(0,S.cloneDeep)(e.attributes.tabLabels);a[o].icon=t,l({tabLabels:a})})(t,o),value:e.attributes.tabLabels[o].icon}),(0,n.createElement)("div",{className:M},(0,n.createElement)(i.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,l({tabLabels:a})})(t,o)},__unstableOnSplitAtEnd:()=>{B(o+1)},onRemove:()=>{e.attributes.tabLabels.length>1&&confirm((0,k.__)("Are you sure you want to delete this tab?",b.i18n))&&_()},withoutInteractiveFormatting:!0,allowedFormats:[],placeholder:(0,k.__)("Tab Label",b.i18n),attrNameTemplate:"tab%s"}))))))))})),M=e=>{const{className:t,attributes:o}=e,a=(0,r.getResponsiveClasses)(e.attributes),l=(0,r.getTypographyClasses)(e.attributes),s=(0,r.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",l,s]);return(0,n.createElement)(r.BlockDiv.Content,{className:c,attributes:o,version:e.version},o.generatedCss&&(0,n.createElement)("style",null,o.generatedCss),(0,n.createElement)(r.CustomCSS.Content,{attributes:o}),(0,n.createElement)("div",{className:"stk-block-tab-labels__wrapper",role:"tablist"},e.attributes.tabLabels.map(((t,a)=>{var l;return(0,n.createElement)("button",{className:"stk-block-tabs__tab",role:"tab",key:a,id:null!==(l=e.attributes.tabLabels[a].anchor)&&void 0!==l?l:void 0},e.attributes.showIcon&&(0,n.createElement)(r.Icon.Content,{attributes:o,value:e.attributes.tabLabels[a].icon}),(0,n.createElement)("div",{className:d},(0,n.createElement)(i.RichText.Content,{tagName:"span",value:t.label})))}))))},O=(0,_.compose)((0,f.withVersion)(b.version))(M),N=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"}'),D=[{attributes:p("3.16.2"),save:(0,f.withVersion)("3.16.2")(M),isEligible:e=>{const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e),a=r.deprecateShadowColor.isEligible("tab%s")(e),l=r.deprecateShadowColor.isEligible("activeTab%s")(e),n=r.deprecateTypographyShadowColor.isEligible("tab%s")(e);return t||o||n||a||l},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("tab%s")(t),t=r.deprecateButtonGradientColor.migrate("tab%s")(t),t=r.deprecateButtonGradientColor.migrate("activeTab%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t=r.deprecateShadowColor.migrate("tab%s")(t),t=r.deprecateShadowColor.migrate("activeTab%s")(t),t=r.deprecateTypographyFontSize.migrate("tab%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:p("3.15.3"),save:(0,f.withVersion)("3.15.3")(M),isEligible:e=>{const t=r.deprecateTypographyFontSize.isEligible("tab%s")(e),o=r.deprecateBlockHeight.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("tab%s")(t),t=r.deprecateButtonGradientColor.migrate("tab%s")(t),t=r.deprecateButtonGradientColor.migrate("activeTab%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t=r.deprecateShadowColor.migrate("tab%s")(t),t=r.deprecateShadowColor.migrate("activeTab%s")(t),t=r.deprecateTypographyFontSize.migrate("tab%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:p("3.12.11"),save:(0,f.withVersion)("3.12.11")(M),isEligible:e=>{if("string"==typeof(null==e?void 0:e.tabFontSize)||"string"==typeof(null==e?void 0:e.tabFontSizeTablet)||"string"==typeof(null==e?void 0:e.tabFontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e),a=r.deprecateShadowColor.isEligible("tab%s")(e),l=r.deprecateShadowColor.isEligible("activeTab%s")(e),n=r.deprecateTypographyShadowColor.isEligible("tab%s")(e);return t||o||n||a||l},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("tab%s")(t),t=r.deprecateButtonGradientColor.migrate("tab%s")(t),t=r.deprecateButtonGradientColor.migrate("activeTab%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t=r.deprecateShadowColor.migrate("tab%s")(t),t=r.deprecateShadowColor.migrate("activeTab%s")(t),t}},{attributes:p("3.11.9"),save:(0,f.withVersion)("3.11.9")(M),isEligible:e=>{const t=r.deprecateContainerBackgroundColorOpacity.isEligible(e),o=r.deprecateBlockBackgroundColorOpacity.isEligible(e),a=r.deprecateTypographyGradientColor.isEligible("tab%s")(e),l=r.deprecateButtonGradientColor.isEligible("tab%s")(e),n=r.deprecateButtonGradientColor.isEligible("activeTab%s")(e);return t||o||a||l||n},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("tab%s")(t),t=r.deprecateButtonGradientColor.migrate("tab%s")(t),t=r.deprecateButtonGradientColor.migrate("activeTab%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t=r.deprecateShadowColor.migrate("tab%s")(t),t=r.deprecateShadowColor.migrate("activeTab%s")(t),t}}],R={...N,icon:a.TabsLabelIcon,attributes:g,supports:{anchor:!0,reusable:!1,stkSaveBlockStyle:!1},deprecated:D,edit:z,save:O}},9881:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>W});var a=o(9467),l=o(8085),n=o(910),r=o(7462),i=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,l.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),g=o(7537);const k=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,i.createElement)(g.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",n.i18n):(0,p.__)("Exclude heading",n.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,i.createElement)("li",{key:y,className:S},d?(0,i.createElement)("div",{className:"stk-block-table-of-contents__list-item-inner"},(0,i.createElement)("span",{className:"stk-block-table-of-contents__link-wrapper"},(0,i.createElement)(c.RichText,{tagName:"a",onChange:e=>u(f,e),placeholder:(0,p.__)("Heading",n.i18n),value:void 0!==v?v:h,withoutInteractiveFormatting:!0,allowedFormats:[]}),B)):(0,i.createElement)(c.RichText.Content,{tagName:"a",href:`#${b}`,value:v||h}),t.children?(0,i.createElement)(k,(0,r.Z)({},(0,l.omit)(e,["className"]),{nestedHeadingList:t.children,listTag:o,toggleItemVisibility:s,updateContent:u,isSelected:a})):null)}));return(0,l.isEmpty)(h)?null:(0,i.createElement)(b,{className:e.className},h)}};k.Content=e=>{const{nestedHeadingList:t,listTag:o="ul"}=e;if(t){const a=o,n=t.map((t=>{const{anchor:a,content:n,customContent:s,isExcluded:c,clientId:d}=t.heading;return c?null:(0,i.createElement)("li",{key:d},(0,i.createElement)("a",{href:`#${a}`},(0,l.isEmpty)(s)?n:s),t.children?(0,i.createElement)(k.Content,(0,r.Z)({},(0,l.omit)(e,["className"]),{nestedHeadingList:t.children,listTag:o,isEdit:!1})):null)}));return(0,l.isEmpty)(n)?null:(0,i.createElement)(a,{className:e.className},n)}};const h=k;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"),l=(0,y.select)("core/block-editor").getBlock(a);return l&&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})(l)),e}),[])},w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{index:0};const o=[];for(;e.length;){const a=e.shift(),l=[];for(;e.length&&!(e[0].level<=a.level);)l.push({...e.shift()});o.push({heading:{...a},index:t.index++,children:w(l,t)})}return o};var _=o(9783),A=o(3749);const E=[{label:(0,p.__)("Unordered",n.i18n),value:"unordered"},{label:(0,p.__)("None",n.i18n),value:"none"},{label:(0,p.__)("Number",n.i18n),value:"decimal"},{label:(0,p.__)("Padded Number",n.i18n),value:"decimal-leading-zero"},{label:(0,p.__)("Lowercase Roman",n.i18n),value:"lower-roman"},{label:(0,p.__)("Uppercase Roman",n.i18n),value:"upper-roman"},{label:(0,p.__)("Lowercase Letters",n.i18n),value:"lower-alpha"},{label:(0,p.__)("Uppercase Letters",n.i18n),value:"upper-alpha"}],T=()=>(0,i.createElement)(g.Card,null,(0,i.createElement)(g.CardBody,null,(0,p.__)("Start adding Heading blocks to create a table of contents. Supported heading blocks will be linked here.",n.i18n))),x=()=>["H1","H2","H3","H4","H5","H6"].map((e=>(0,i.createElement)(c.AdvancedToggleControl,{key:e,label:(0,p.sprintf)((0,p._x)("Include %s","%s is a heading level, e.g. H1",n.i18n),e),attribute:`include${e}`,defaultValue:"H1"!==e}))),I=e=>{let{autoGenerateAnchors:t}=e;return(0,i.createElement)(g.Card,{className:"stk-table-of-contents__empty-anchor"},(0,i.createElement)(g.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.",n.i18n),(0,i.createElement)("br",null),(0,i.createElement)("br",null),(0,i.createElement)(g.Button,{isPrimary:!0,onClick:t},(0,p.__)("Auto-generate missing anchor ids",n.i18n))))},H=(0,i.memo)((e=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(c.InspectorTabs,{hasLayoutPanel:!1}),(0,i.createElement)(c.InspectorStyleControls,null,(0,i.createElement)(c.PanelAdvancedSettings,{title:(0,p.__)("General",n.i18n),initialOpen:!0,id:"general"},(0,i.createElement)(x,null),(0,i.createElement)(c.AdvancedSelectControl,{label:(0,p.__)("List Type",n.i18n),attribute:"listType",options:E}),(0,i.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Columns",n.i18n),attribute:"columns",min:"1",sliderMax:"3",step:"1",placeholder:"1",responsive:"all"}),(0,i.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Column Gap",n.i18n),attribute:"columnGap",min:"0",placeholder:"32",sliderMax:"50",responsive:"all"}),(0,i.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Row Gap",n.i18n),attribute:"rowGap",min:"0",sliderMax:"50",responsive:"all"}),(0,i.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Icon Gap",n.i18n),attribute:"iconGap",min:"0",sliderMax:"20",responsive:"all"}),(0,i.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Indentation",n.i18n),attribute:"indentation",min:"0",sliderMax:"50",responsive:"all",placeholder:""}))),(0,i.createElement)(c.InspectorStyleControls,null,(0,i.createElement)(c.PanelAdvancedSettings,{title:(0,p.__)("Scrolling",n.i18n),initialOpen:!1,id:"scrolling"},(0,i.createElement)(c.AdvancedToggleControl,{label:(0,p.__)("Use smooth scroll",n.i18n),attribute:"isSmoothScroll"}),(0,i.createElement)(c.AdvancedRangeControl,{label:(0,p.__)("Scroll Top Offset ",n.i18n),attribute:"scrollTopOffset",min:0,max:200,step:1,responsive:"all",placeholder:"0"}))),(0,i.createElement)(s.Typography.InspectorControls,(0,r.Z)({},e,{isMultiline:!0,initialOpen:!1,hasTextTag:!1,hasTextContent:!1})),(0,i.createElement)(s.Typography.InspectorControls,(0,r.Z)({},e,{label:(0,p.__)("Title",n.i18n),attrNameTemplate:"title%s",initialOpen:!1,hasToggle:!0,hasTextTag:!1})),(0,i.createElement)(s.BlockDiv.InspectorControls,null),(0,i.createElement)(s.Advanced.InspectorControls,null),(0,i.createElement)(s.Transform.InspectorControls,null),(0,i.createElement)(s.EffectsAnimations.InspectorControls,null),(0,i.createElement)(s.CustomAttributes.InspectorControls,null),(0,i.createElement)(s.CustomCSS.InspectorControls,{mainBlockClass:"stk-table-of-contents"}),(0,i.createElement)(s.Responsive.InspectorControls,null),(0,i.createElement)(s.ConditionalDisplay.InspectorControls,null)))),z=(0,A.compose)(_.withBlockWrapperIsHovered,_.withQueryLoopContext,_.withBlockAttributeContext,(0,_.withBlockStyleContext)(u))((e=>{const{attributes:t,setAttributes:o,className:a,isSelected:r}=e,{getEditorDom:d}=(0,y.useSelect)("stackable/editor-dom"),[b,g]=(0,i.useState)(t.headings),{getEditedPostContent:k}=(0,y.useSelect)("core/editor"),{getBlock:v}=(0,y.useSelect)("core/block-editor"),[C,S]=(0,i.useState)(0),_=()=>{const e=(0,l.cloneDeep)(b),o=[1,2,3,4,5,6].filter((e=>t[`includeH${e}`]));return e.filter((e=>o.includes(e.tag)))};(0,i.useEffect)((()=>{let e=k();const o=wp.data.subscribe((0,l.debounce)((()=>{const o=k();if(!r&&!(0,l.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})));g(o)}e=o}),300));return()=>o()}),[r]),(0,i.useEffect)((()=>{if(!r){const e=_();let t=!1;e.forEach(((o,a)=>{e[a]&&""===o.customContent&&void 0!==e[a].customContent&&(delete e[a].customContent,t=!0)})),t&&g(e)}}),[r]),(0,i.useEffect)((()=>{if(d&&!b.length){const e=B(d,t).map((e=>({...e,isExcluded:!1})));g(e)}}),[d,b.length]),(0,i.useEffect)((()=>{if(d&&C){const e=B(d,t).map((e=>({...e})));g(e)}}),[d,C]),(0,i.useEffect)((0,l.debounce)((()=>{(0,l.isEqual)(t.headings,b)||((0,y.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),o({headings:b}))}),301),[b]);const{listType:A}=t,E=(0,l.isEmpty)(A)||"unordered"===A||"none"===A?"ul":"ol",x=(0,s.getTypographyClasses)(t),z=(0,s.getAlignmentClasses)(t),M=(0,s.getTypographyClasses)(t,"title%s"),O=m()([a,"stk-block-table-of-contents",z]),N=m()(["stk-table-of-contents__table",x]),D=m()("stk-table-of-contents__title",M),R=[1,2,3,4,5,6].filter((e=>t[`includeH${e}`])),L=b.filter((e=>R.includes(e.tag))),U=w(L),P=b.some((e=>e.content&&!e.anchor)),V=(0,i.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(),l=Object.keys(e).map((e=>`[data-type="${e}"]`)).join(",");let n=null;if(t.anchor){let e=a.querySelector(`[id="${t.anchor}"]`);var r;e&&(e=e.closest(l),n=null===(r=e)||void 0===r?void 0:r.getAttribute("data-block"))}return!n&&t.content&&Array.from(a.querySelectorAll(l)||[]).some((e=>t.content===e.textContent&&(n=e.getAttribute("data-block"),!0))),n?v(n):null}));t.forEach((o=>{if(o){const a=o.attributes[e[o.name]],{anchor:n}=o.attributes;if(!n&&a){const e=((e,t)=>{const o=(e=>(0,l.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,n=`${o}-${a}`;for(;t.some((e=>e.attributes.anchor===n));)n=`${o}-${a++}`;return n})(a,t);(0,y.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,y.dispatch)("core/block-editor").updateBlockAttributes(o.clientId,{anchor:null!==e?e:(0,l.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:n.version});return e.attributes.example?(0,i.createElement)(c.RichText,{tagName:"ul",multiline:"li",value:e.attributes.example}):(0,i.createElement)(i.Fragment,null,(0,i.createElement)(H,{blockState:e.blockState}),F&&(0,i.createElement)("style",{key:"block-css"},F),(0,i.createElement)(s.CustomCSS,{mainBlockClass:"stk-table-of-contents"}),(0,i.createElement)(s.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:O},t.titleShow&&(0,i.createElement)(s.Typography,{className:D,attrNameTemplate:"title%s",placeholder:(0,p.__)("Title for This Block",n.i18n)}),!!b.length&&P&&(0,i.createElement)(I,{autoGenerateAnchors:V}),(0,i.createElement)(h,{className:N,nestedHeadingList:U,isSelected:r,listTag:E,toggleItemVisibility:e=>{const t=_();t[e].isExcluded=!t[e].isExcluded,g(t),o({headings:t})},updateContent:(e,t)=>{const a=_();a[e].content===t?delete a[e].customContent:a[e].customContent=t,g(a),o({headings:a})}}),0===b.length&&(0,i.createElement)(T,null)),e.isHovered&&(0,i.createElement)(s.MarginBottom,null))})),M=e=>{const{attributes:t,className:o}=e,a=(0,s.getResponsiveClasses)(t),n=(0,s.getTypographyClasses)(t),r=(0,s.getAlignmentClasses)(t),{headings:c}=t,d=(0,s.getTypographyClasses)(t,"title%s"),{listType:u}=t,b=(0,l.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",r,a],n,e)),g=(0,f.applyFilters)("stackable.table-of-contents.save.tableOfContentsClasses",m()(["stk-table-of-contents__table",n]),e),k=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=w(C);return(0,i.createElement)(s.BlockDiv.Content,{className:p,attributes:t,version:e.version},t.generatedCss&&(0,i.createElement)("style",null,t.generatedCss),(0,i.createElement)(s.CustomCSS.Content,{attributes:t}),t.titleShow&&(0,i.createElement)(s.Typography.Content,{className:k,attrNameTemplate:"title%s",attributes:t}),(0,i.createElement)(h.Content,{className:g,nestedHeadingList:y,listTag:b,h1:t.includeH1,h2:t.includeH2,h3:t.includeH3,h4:t.includeH4,h5:t.includeH5,h6:t.includeH6}))},O=(0,A.compose)((0,_.withVersion)(n.version))(M),N=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 D=o(7545);const R={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}},L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.version;const t=new D.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:R,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",n.i18n)}),t.add({attributes:{titleShow:{type:"boolean",default:!0}},versionAdded:"3.6.3",versionDeprecated:""}),t.getMerged(e)},U=L(n.version),P={attributes:{example:`<li><a href="#0">${(0,p._x)("Introduction","Table of Contents example text",n.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Chapter 1: Abstract","Table of Contents example text",n.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Chapter 2: History","Table of Contents example text",n.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Chapter 3: Main Content","Table of Contents example text",n.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Chapter 4: Additional Thoughts","Table of Contents example text",n.i18n)}<a/></li><li><a href="#0">${(0,p._x)("Conclusion","Table of Contents example text",n.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:L("3.16.2"),save:(0,_.withVersion)("3.16.2")(M),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=s.deprecateTypographyFontSize.migrate("title%s")(t),t=s.deprecateBlockHeight.migrate(t),t}},{attributes:L("3.15.3"),save:(0,_.withVersion)("3.15.3")(M),isEligible:e=>{const t=s.deprecateTypographyFontSize.isEligible("title%s")(e),o=s.deprecateBlockHeight.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=s.deprecateTypographyFontSize.migrate("%s")(t),t=s.deprecateTypographyFontSize.migrate("title%s")(t),t=s.deprecateBlockHeight.migrate(t),t}},{attributes:L("3.12.11"),save:(0,_.withVersion)("3.12.11")(M),isEligible:e=>{if("string"==typeof(null==e?void 0:e.titleFontSize)||"string"==typeof(null==e?void 0:e.titleFontSizeTablet)||"string"==typeof(null==e?void 0:e.titleFontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:L("3.11.9"),save:(0,_.withVersion)("3.11.9")(M),isEligible:e=>{const t=s.deprecateContainerBackgroundColorOpacity.isEligible(e),o=s.deprecateBlockBackgroundColorOpacity.isEligible(e),a=s.deprecateTypographyGradientColor.isEligible("%s")(e),l=s.deprecateTypographyGradientColor.isEligible("title%s")(e);return t||o||a||l},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:L("3.7.9"),save:(0,_.withVersion)("3.7.9")(M),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:L("3.6.2"),migrate:e=>({...e,titleShow:!1}),save:(0,_.withVersion)("3.6.2")(M)}],W={...N,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",n.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Chapter 1: Abstract","Table of Contents example text",n.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Chapter 2: History","Table of Contents example text",n.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Chapter 3: Main Content","Table of Contents example text",n.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Chapter 4: Additional Thoughts","Table of Contents example text",n.i18n),anchor:"heading",level:2}],["core/heading",{content:(0,p._x)("Conclusion","Table of Contents example text",n.i18n),anchor:"heading",level:2}]]},example:P,deprecated:G,edit:z,save:O};(0,f.addFilter)("stackable.table-of-contents.design.filtered-block-attributes","stackable/table-of-contents",(e=>(0,l.omit)(e,["headings"])))},6575:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});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"}]]]]]]]},l=a},8775:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>I});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.addBlockStyles("tabPanelOffset",[{selector:"",styleRule:"--tabs-gap",attrName:"tabPanelOffset",key:"tabPanelOffset",format:"%spx",responsive:"all"}]),i.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"}]),n.BlockDiv.addStyles(i),n.MarginBottom.addStyles(i),n.Advanced.addStyles(i),n.Transform.addStyles(i),n.EffectsAnimations.addStyles(i),n.Separator.addStyles(i);const s=i;var c=o(9107),d=o(910),u=o(4184),b=o.n(u),m=o(78),p=o(9783),g=o(3749),k=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,l.memo)((e=>{var t,o,a;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.InspectorTabs,null),(0,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(n.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,l.createElement)(r.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,l.createElement)(r.AdvancedToggleControl,{label:(0,h.__)("Equal tab height",d.i18n),attribute:"equalTabHeight",defaultValue:!1}),(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)(r.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,l.createElement)(r.AdvancedRangeControl,{label:(0,h.__)("Tab Panel Offset",d.i18n),min:0,sliderMax:100,placeholder:"16",attribute:"tabPanelOffset",responsive:"all"}),(0,l.createElement)(r.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,l.createElement)(r.InspectorLayoutControls,null,(0,l.createElement)(r.ControlSeparator,null)),(0,l.createElement)(n.ContentAlign.InspectorControls,null),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-tabs"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null))})),y=(0,g.compose)(p.withBlockWrapperIsHovered,p.withQueryLoopContext,p.withBlockAttributeContext,(0,c.vB)("initialTabOpen"),(0,p.withBlockStyleContext)(s))((e=>{const{className:t,clientId:o}=e,a=(0,n.getSeparatorClasses)(e.attributes),i=(0,n.getAlignmentClasses)(e.attributes),{hasMultiSelectedBlocks:c,multiInnerBlocks:u,innerBlocks:p,hasInnerBlocks:g}=(0,k.useSelect)((e=>{const t=e("core/block-editor").getMultiSelectedBlocks(),a=t.map((e=>e.innerBlocks)),l=e("core/block-editor").getBlock(o).innerBlocks;return{hasMultiSelectedBlocks:t.length>1,multiInnerBlocks:a,innerBlocks:l,hasInnerBlocks:l.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",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,n.getContentAlignmentClasses)(e.attributes)),S=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,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)(C,{tabContentBlock:h,hasMultiSelectedBlocks:c,multiInnerBlocks:u,tabLabelsBlock:y,updateColumns:(e,t)=>{const o=t,a=(0,k.select)("core/block-editor").getBlockAttributes(t).tabLabels;if(e>a.length){const t=[...a];for(;t.length<e;)t.push({label:"",icon:""});(0,k.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,k.dispatch)("core/block-editor").updateBlockAttributes(o,{tabLabels:t})}else if(e<a.length){const t=[...a].slice(0,e);(0,k.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,k.dispatch)("core/block-editor").updateBlockAttributes(o,{tabLabels:t})}},setTemplateLock:e.setTemplateLock}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:f},S&&(0,l.createElement)("style",{key:"block-css"},S),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-tabs"}),(0,l.createElement)(n.Separator,null,(0,l.createElement)("div",{className:B,"data-align":e.attributes.contentAlign?"alignwide"===e.attributes.contentAlign?"wide":"alignfull"===e.attributes.contentAlign?"full":void 0:void 0},(0,l.createElement)(m.InnerBlocks,{template:v,templateLock:"insert",orientation:""!==e.attributes.tabOrientation?"horizontal":"vertical"})))),e.isHovered&&g&&(0,l.createElement)(n.MarginBottom,null))}));var f=o(3882);const B=e=>{const{attributes:t}=e,o=(0,n.getRowClasses)(e.attributes),a=(0,n.getSeparatorClasses)(e.attributes),r=(0,n.getAlignmentClasses)(e.attributes),i=(0,n.getResponsiveClasses)(e.attributes),s=b()([e.className,"stk-block-tabs",i,a]),c=b()((0,f.applyFilters)("stackable.tabs.save.contentClassNames",[[o,"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,n.getContentAlignmentClasses)(e.attributes)],e));return(0,l.createElement)(n.BlockDiv.Content,{className:s,attributes:t,version:e.version,"data-initial-tab":e.attributes.initialTabOpen||"1"},t.generatedCss&&(0,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,l.createElement)(n.Separator.Content,{attributes:t},(0,l.createElement)("div",{className:c},(0,l.createElement)(m.InnerBlocks.Content,null))))},S=(0,g.compose)((0,p.withVersion)(d.version))(B);var w=o(7545);const _=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.version;const t=new w.AttributeObject;return n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.MarginBottom.addAttributes(t),n.Row.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.Separator.addAttributes(t),n.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)},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:_("3.16.2"),save:(0,p.withVersion)("3.16.2")(B),isEligible:e=>{const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return n.deprecateContainerBackgroundColorOpacity.isEligible(e)&&(t=n.deprecateContainerBackgroundColorOpacity.migrate(t)),n.deprecateBlockBackgroundColorOpacity.isEligible(e)&&(t=n.deprecateBlockBackgroundColorOpacity.migrate(t)),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateBlockHeight.migrate(t),{...t,equalTabHeight:!0}}},{attributes:_("3.15.3"),save:(0,p.withVersion)("3.15.3")(B),isEligible:e=>n.deprecateBlockHeight.isEligible(e),migrate:e=>{let t={...e};return n.deprecateContainerBackgroundColorOpacity.isEligible(e)&&(t=n.deprecateContainerBackgroundColorOpacity.migrate(t)),n.deprecateBlockBackgroundColorOpacity.isEligible(e)&&(t=n.deprecateBlockBackgroundColorOpacity.migrate(t)),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),t=n.deprecateBlockHeight.migrate(t),{...t,equalTabHeight:!0}}},{attributes:_("3.12.11"),save:(0,p.withVersion)("3.12.11")(B),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=n.deprecateBlockShadowColor.isEligible(e),o=n.deprecateContainerShadowColor.isEligible(e);return t||o},migrate:e=>{let t={...e};return n.deprecateContainerBackgroundColorOpacity.isEligible(e)&&(t=n.deprecateContainerBackgroundColorOpacity.migrate(t)),n.deprecateBlockBackgroundColorOpacity.isEligible(e)&&(t=n.deprecateBlockBackgroundColorOpacity.migrate(t)),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),{...t,equalTabHeight:!0}}},{attributes:_("3.12.3"),migrate:e=>{let t={...e};return n.deprecateContainerBackgroundColorOpacity.isEligible(e)&&(t=n.deprecateContainerBackgroundColorOpacity.migrate(t)),n.deprecateBlockBackgroundColorOpacity.isEligible(e)&&(t=n.deprecateBlockBackgroundColorOpacity.migrate(t)),t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),{...t,equalTabHeight:!0}},save:(0,p.withVersion)("3.12.3")(B)},{attributes:_("3.11.9"),save:(0,p.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}}],I={...E,icon:a.TabsIcon,attributes:A,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:()=>l});const a={from:"stackable/tabs",transform:(e,t)=>{var o;const a=null===(o=t[0][1])||void 0===o?void 0:o.tabLabels,l=t[1][2],n=[];return a.forEach(((e,t)=>{n.push(["stackable/heading",{text:null==e?void 0:e.label}]),l[t]&&n.push(l[t])})),["stackable/columns",{...e},[["stackable/column",{},n]]]}},l=a},9107:(e,t,o)=>{"use strict";o.d(t,{VT:()=>i,vB:()=>s});var a=o(7462),l=o(2610),n=o(3749);const r=(0,l.createContext)(null),i=()=>(0,l.useContext)(r),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,n.createHigherOrderComponent)((t=>o=>{const n=e?parseInt(o.attributes[e],10):null,[i,s]=(0,l.useState)(n||1),[c,d]=(0,l.useState)(!0);return(0,l.createElement)(r.Provider,{value:[i,s,c,d]},(0,l.createElement)(t,(0,a.Z)({},o,{templateLock:c,setTemplateLock:d})))}),"withActiveTab")}},4159:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>R});var a=o(910),l=o(8003),n=o(3882),r=o(7462),i=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,n.applyFilters)("stackable.team-member.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Default",a.i18n)),attributes:{className:"is-style-default",hasContainer:!0,contentAlign:"center"},isDefault:!0,pickerTitle:(0,l.__)("Default",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.__)("Name",a.i18n),textTag:"h3"}],["stackable/subtitle",{text:(0,l.__)("Position",a.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",a.i18n)}],["stackable/button-group",{},s]],scope:["block"]},{name:"plain",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Plain",a.i18n)),attributes:{className:"is-style-plain",hasContainer:!1,contentAlign:"left"},pickerTitle:(0,l.__)("Plain",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.__)("Name",a.i18n),textTag:"h3"}],["stackable/subtitle",{text:(0,l.__)("Position",a.i18n)}],["stackable/button-group",{},s]],scope:["block"]},{name:"horizontal",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Horizontal",a.i18n)),attributes:{className:"is-style-horizontal"},pickerTitle:(0,l.__)("Horizontal",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Horizontal 2",a.i18n)),attributes:{className:"is-style-horizontal-2"},pickerTitle:(0,l.__)("Horizontal 2",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Cover",a.i18n)),attributes:{className:"is-style-cover"},pickerTitle:(0,l.__)("Cover",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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 g=o(8085),k=o(4184),h=o.n(k),v=o(9783),C=o(3749),y=o(78),f=o(3284);const B=c[0].innerBlocks,S=(0,i.memo)((()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(b.InspectorTabs,null),(0,i.createElement)(u.ContentAlign.InspectorControls,null),(0,i.createElement)(u.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,i.createElement)(u.BlockDiv.InspectorControls,null),(0,i.createElement)(u.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,i.createElement)(u.BlockLink.InspectorControls,null),(0,i.createElement)(u.Advanced.InspectorControls,null),(0,i.createElement)(u.Transform.InspectorControls,null),(0,i.createElement)(u.EffectsAnimations.InspectorControls,null),(0,i.createElement)(u.CustomAttributes.InspectorControls,null),(0,i.createElement)(u.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-team-member"}),(0,i.createElement)(u.Responsive.InspectorControls,null),(0,i.createElement)(u.ConditionalDisplay.InspectorControls,null),(0,i.createElement)(b.InspectorStyleControls,null,(0,i.createElement)(b.InspectorBottomTip,null))))),w=(0,C.compose)(v.withBlockWrapperIsHovered,v.withQueryLoopContext,v.withBlockAttributeContext,(0,v.withBlockStyleContext)(p))((e=>{var t;const{className:o,attributes:l}=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,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-${l.uniqueId}-inner-blocks`],(0,u.getContentAlignmentClasses)(e.attributes)),m=null===(t=(0,g.last)(r))||void 0===t?void 0:t.name,k=n?["stackable/text","core/paragraph"].includes(m)?()=>(0,i.createElement)(i.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,i.createElement)(i.Fragment,null,(0,i.createElement)(S,null),(0,i.createElement)(u.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c,enableVariationPicker:!0},v&&(0,i.createElement)("style",{key:"block-css"},v),(0,i.createElement)(u.CustomCSS,{mainBlockClass:"stk-block-team-member"}),(0,i.createElement)(u.ContainerDiv,{className:d},(0,i.createElement)(y.InnerBlocks,{template:B,templateLock:!1,renderAppender:k}))),e.isHovered&&n&&(0,i.createElement)(u.MarginBottom,null))}));var _=o(1991),A=o.n(_);const E=e=>{const{attributes:t,className:o}=e,a=(0,u.getAlignmentClasses)(t),l=(0,u.getResponsiveClasses)(t),r=A()([o,"stk-block-team-member",l]),s=A()(["stk-block-team-member__content"],(0,u.getContentAlignmentClasses)(t)),c=A()((0,n.applyFilters)("stackable.team-member.save.innerClassNames",["stk-block-content","stk-inner-blocks",a,`stk-${t.uniqueId}-inner-blocks`],e));return(0,i.createElement)(u.BlockDiv.Content,{className:r,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,i.createElement)("style",null,t.generatedCss),(0,i.createElement)(u.CustomCSS.Content,{attributes:t}),(0,i.createElement)(u.ContainerDiv.Content,{className:s,attributes:t},(0,i.createElement)("div",{className:c},(0,i.createElement)(y.InnerBlocks.Content,null)),(0,i.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)},H=I(a.version),z={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,l.__)("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,l.__)("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,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.",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 M=o(4247),O=o.n(M);(0,n.addFilter)("stackable.team-member.save.innerClassNames","stackable/3.8.0",((e,t)=>(O()(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:I("3.16.2"),save:(0,v.withVersion)("3.16.2")(E),isEligible:e=>{const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e);return t||o},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=u.deprecateBlockHeight.migrate(a),a=u.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:I("3.15.3"),save:(0,v.withVersion)("3.15.3")(E),isEligible:e=>{const t=u.deprecateBlockHeight.isEligible(e),o=u.deprecateInnerBlockRowGapAndContainerHeight.isEligible("%s")(e);return t||o},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=u.deprecateBlockHeight.migrate(a),a=u.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:I("3.12.11"),save:(0,v.withVersion)("3.12.11")(E),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.innerBlockRowGap)||"string"==typeof(null==e?void 0:e.innerBlockRowGapTablet)||"string"==typeof(null==e?void 0:e.innerBlockRowGapMobile)||"string"==typeof(null==e?void 0:e.containerHeight)||"string"==typeof(null==e?void 0:e.containerHeightTablet)||"string"==typeof(null==e?void 0:e.containerHeightMobile))return!1;const t=u.deprecateBlockShadowColor.isEligible(e),o=u.deprecateContainerShadowColor.isEligible(e);return t||o},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);return t||o},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),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 D=o(2210);const R={...d,icon:o(9467).TeamMemberIcon,attributes:H,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:z,variations:c,deprecated:N,edit:w,save:T,substitute:D.default}},2210:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/team-member",transform:(e,t)=>["stackable/columns",{},[["stackable/column",{},t]]]},l=a},1421:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>N});var a=o(910),l=o(8003),n=o(3882),r=o(7462),i=o(2610);o(7294);const s=(0,n.applyFilters)("stackable.testimonial.variations",[{name:"default",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Default",a.i18n)),attributes:{className:"is-style-default",hasContainer:!0,contentAlign:"center"},isDefault:!0,pickerTitle:(0,l.__)("Default",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,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",a.i18n)}],["stackable/image",{imageHeight:75,imageWidth:75,imageWidthUnit:"px",imageShape:"circle"}],["stackable/heading",{text:(0,l.__)("Name",a.i18n),textTag:"h3"}],["stackable/subtitle",{text:(0,l.__)("Position",a.i18n)}]],scope:["block"]},{name:"compact",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Compact",a.i18n)),attributes:{className:"is-style-compact",hasContainer:!1,contentAlign:""},pickerTitle:(0,l.__)("Compact",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,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",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,l.__)("Name",a.i18n),textTag:"h3",blockMargin:{bottom:0}}],["stackable/subtitle",{text:(0,l.__)("Position",a.i18n)}]]]]]],scope:["block"]},{name:"horizontal",description:(0,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Horizontal",a.i18n)),attributes:{className:"is-style-horizontal"},pickerTitle:(0,l.__)("Horizontal",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Bubble",a.i18n)),attributes:{className:"is-style-bubble"},pickerTitle:(0,l.__)("Bubble",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Vertical",a.i18n)),attributes:{className:"is-style-vertical"},pickerTitle:(0,l.__)("Vertical",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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,l.sprintf)((0,l._x)("%s Layout","Block layout name",a.i18n),(0,l.__)("Inverted Vertical",a.i18n)),attributes:{className:"is-style-inverted-vertical"},pickerTitle:(0,l.__)("Inverted Vertical",a.i18n),pickerIcon:function(e){return(0,i.createElement)("svg",(0,r.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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),g=o(4184),k=o.n(g),h=o(9783),v=o(3749),C=o(78),y=o(3284);const f=s[0].innerBlocks,B=(0,i.memo)((()=>(0,i.createElement)(i.Fragment,null,(0,i.createElement)(u.InspectorTabs,null),(0,i.createElement)(d.ContentAlign.InspectorControls,null),(0,i.createElement)(d.Alignment.InspectorControls,{hasContainerSize:!0,hasBlockAlignment:!0}),(0,i.createElement)(d.BlockDiv.InspectorControls,null),(0,i.createElement)(d.ContainerDiv.InspectorControls,{sizeSelector:".stk-block-content"}),(0,i.createElement)(d.BlockLink.InspectorControls,null),(0,i.createElement)(d.Advanced.InspectorControls,null),(0,i.createElement)(d.Transform.InspectorControls,null),(0,i.createElement)(d.EffectsAnimations.InspectorControls,null),(0,i.createElement)(d.CustomAttributes.InspectorControls,null),(0,i.createElement)(d.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-testimonial"}),(0,i.createElement)(d.Responsive.InspectorControls,null),(0,i.createElement)(d.ConditionalDisplay.InspectorControls,null),(0,i.createElement)(u.InspectorStyleControls,null,(0,i.createElement)(u.InspectorBottomTip,null))))),S=(0,v.compose)(h.withBlockWrapperIsHovered,h.withQueryLoopContext,h.withBlockAttributeContext,(0,h.withBlockStyleContext)(m))((e=>{var t;const{className:o,attributes:l}=e,{hasInnerBlocks:n,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=k()([o,"stk-block-testimonial"]),b=k()(["stk-block-content","stk-inner-blocks",s,"stk-block-testimonial__content",`stk-${l.uniqueId}-inner-blocks`],(0,d.getContentAlignmentClasses)(e.attributes)),g=null===(t=(0,p.last)(r))||void 0===t?void 0:t.name,h=n?["stackable/text","core/paragraph"].includes(g)?()=>(0,i.createElement)(i.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,i.createElement)(i.Fragment,null,(0,i.createElement)(B,null),(0,i.createElement)(d.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:c,enableVariationPicker:!0},v&&(0,i.createElement)("style",{key:"block-css"},v),(0,i.createElement)(d.CustomCSS,{mainBlockClass:"stk-block-testimonial"}),(0,i.createElement)(d.ContainerDiv,{className:b},(0,i.createElement)(C.InnerBlocks,{template:f,templateLock:!1,renderAppender:h}))),e.isHovered&&n&&(0,i.createElement)(d.MarginBottom,null))}));var w=o(1991),_=o.n(w);const A=e=>{const{attributes:t,className:o}=e,a=(0,d.getAlignmentClasses)(t),l=(0,d.getResponsiveClasses)(t),r=_()([o,"stk-block-testimonial",l]),s=_()(["stk-block-testimonial__content"],(0,d.getContentAlignmentClasses)(t)),c=_()((0,n.applyFilters)("stackable.testimonial.save.innerClassNames",["stk-block-content","stk-inner-blocks",a,`stk-${t.uniqueId}-inner-blocks`],e));return(0,i.createElement)(d.BlockDiv.Content,{className:r,attributes:t,version:e.version,"data-v":e.attributes.version},t.generatedCss&&(0,i.createElement)("style",null,t.generatedCss),(0,i.createElement)(d.CustomCSS.Content,{attributes:t}),(0,i.createElement)(d.ContainerDiv.Content,{className:s,attributes:t},(0,i.createElement)("div",{className:c},(0,i.createElement)(C.InnerBlocks.Content,null)),(0,i.createElement)(d.BlockLink.Content,{attributes:t})))},E=(0,v.compose)((0,h.withVersion)(a.version))(A);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),H={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,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.",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,l.__)("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,l.__)("Position",a.i18n),blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]}]};var z=o(4247),M=o.n(z);(0,n.addFilter)("stackable.testimonial.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 O=[{attributes:x("3.16.2"),save:(0,h.withVersion)("3.16.2")(A),isEligible:e=>{const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:x("3.15.3"),save:(0,h.withVersion)("3.15.3")(A),isEligible:e=>{const t=d.deprecateBlockHeight.isEligible(e),o=d.deprecateInnerBlockRowGapAndContainerHeight.isEligible("%s")(e);return t||o},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.deprecateBlockHeight.migrate(a),a=d.deprecateInnerBlockRowGapAndContainerHeight.migrate("%s")(a),a}},{attributes:x("3.12.11"),save:(0,h.withVersion)("3.12.11")(A),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile)||"string"==typeof(null==e?void 0:e.innerBlockRowGap)||"string"==typeof(null==e?void 0:e.innerBlockRowGapTablet)||"string"==typeof(null==e?void 0:e.innerBlockRowGapMobile)||"string"==typeof(null==e?void 0:e.containerHeight)||"string"==typeof(null==e?void 0:e.containerHeightTablet)||"string"==typeof(null==e?void 0:e.containerHeightMobile))return!1;const t=d.deprecateBlockShadowColor.isEligible(e),o=d.deprecateContainerShadowColor.isEligible(e);return t||o},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")(A),isEligible:e=>{const t=d.deprecateContainerBackgroundColorOpacity.isEligible(e),o=d.deprecateBlockBackgroundColorOpacity.isEligible(e);return t||o},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")(A),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={...c,icon:o(9467).TestimonialIcon,attributes:I,supports:{anchor:!0,html:!1,align:!0,stkAlign:!0,stkDefaultTab:"layout",spacing:!0},example:H,variations:s,deprecated:O,edit:S,save:E}},7043:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/testimonial",transform:(e,t)=>["stackable/columns",{...e},[["stackable/column",{hasContainer:!0},t]]]},l=a},2231:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(9467),l=o(378),n=o(5295),r=o(910);const i={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&r.settings.stackable_enable_text_default_block,transform:e=>(0,l.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,l.createBlock)("stackable/text",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{content:t}=e;return(0,l.createBlock)("stackable/text",{text:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{content:t}=e;return(0,l.createBlock)("stackable/text",{text:t})}))}],to:[{type:"block",isMultiBlock:!0,blocks:["stackable/subtitle"],transform:e=>e.map((e=>{let{...t}=e;return(0,l.createBlock)("stackable/subtitle",{...t})}))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((e=>{let{text:t}=e;return(0,l.createBlock)("core/paragraph",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["core/heading"],transform:e=>e.map((e=>{let{text:t}=e;return(0,l.createBlock)("core/heading",{content:t})}))},{type:"block",isMultiBlock:!0,blocks:["stackable/icon-label"],transform:e=>e.map((e=>{let{...t}=e;return(0,l.createBlocksFromInnerBlocksTemplate)([["stackable/icon-label",{},n.h.map((e=>("stackable/heading"===e[0]&&(e[1]=t),e)))]])[0]}))}]},s=i;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 g=o(3284),k=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 w=(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",r.i18n),(0,f.__)("Text",r.i18n)),hasContentJustify:!0}),e.enableColumns&&(0,d.createElement)(b.InspectorLayoutControls,null,(0,d.createElement)(b.AdvancedRangeControl,{label:(0,f.__)("Columns",r.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",r.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)))),_=(0,S.compose)(C.withBlockWrapperIsHovered,C.withQueryLoopContext,C.withBlockAttributeContext,(0,C.withBlockStyleContext)(p))((e=>{const{className:t,onReplace:o,onRemove:a,mergeBlocks:n,clientId:i}=e,s=(0,u.getTypographyClasses)(e.attributes),c=(0,u.getAlignmentClasses)(e.attributes),{parentBlock:m,isFirstBlock:h,isLastBlock:C}=(0,g.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:o,getBlock:a}=e("core/block-editor"),l=o(i),n=t(l);return{parentBlock:a(l),isFirstBlock:0===n.indexOf(i),isLastBlock:n.indexOf(i)===n.length-1}}),[i]),y=(0,B.applyFilters)("stackable.text.edit.enable-column",!0,m),S=v()([t,"stk-block-text"]),_=v()(["stk-block-text__text",s,c]),A=(0,B.applyFilters)("stackable.text.edit.placeholder",(0,f.__)("Type / to choose a block",r.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:r.version}),T=(e=>{const{replaceBlocks:t}=(0,g.useDispatch)(k.store);return(0,d.useCallback)((o=>{var a,n;o.preventDefault();const r=(null===(a=o.clipboardData)||void 0===a?void 0:a.getData("text/html"))||"",i=(null===(n=o.clipboardData)||void 0===n?void 0:n.getData("text/plain"))||"",s=(0,l.pasteHandler)({HTML:r,plainText:i,mode:"BLOCKS"});s&&(o.preventDefault(),t(e,s))}),[e])})(i);return(0,d.createElement)(d.Fragment,null,(0,d.createElement)(w,{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:_,placeholder:A,onMerge:n,onRemove:a,onReplace:o,onPaste:r.settings.stackable_enable_text_default_block&&""===e.attributes.text?T:void 0})),e.isHovered&&(0,d.createElement)(u.MarginBottom,null))})),A=e=>{const{className:t,attributes:o}=e,a=(0,u.getResponsiveClasses)(e.attributes),l=(0,u.getTypographyClasses)(e.attributes),n=(0,u.getAlignmentClasses)(e.attributes),r=v()([t,"stk-block-text",a]),i=v()(["stk-block-text__text",l,n]);return(0,d.createElement)(u.BlockDiv.Content,{className:r,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:i,tagName:o.innerTextTag||"p"}))},E=(0,S.compose)((0,C.withVersion)(r.version))(A),T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.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(r.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"}'),H={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.",r.i18n)}`,blockBackgroundCustomSizeUnit:"%",blockBackgroundCustomSizeUnitTablet:"%",blockBackgroundCustomSizeUnitMobile:"%",lineHeightUnit:"em",lineHeightUnitTablet:"em",lineHeightUnitMobile:"em"},innerBlocks:[]},z=[{attributes:T("3.16.2"),save:(0,C.withVersion)("3.16.2")(A),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=u.deprecateTypographyFontSize.migrate("%s")(t),t=u.deprecateBlockHeight.migrate(t),t}},{attributes:T("3.15.3"),save:(0,C.withVersion)("3.15.3")(A),isEligible:e=>{const t=u.deprecateTypographyFontSize.isEligible("%s")(e),o=u.deprecateBlockHeight.isEligible(e);return t||o},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=u.deprecateTypographyFontSize.migrate("%s")(t),t=u.deprecateBlockHeight.migrate(t),t}},{attributes:T("3.12.11"),save:(0,C.withVersion)("3.12.11")(A),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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)()(A),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")(A),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 M=o(2740);const O={...I,icon:a.TextIcon,attributes:x,supports:{anchor:!0,spacing:!0,splitting:!0},example:H,edit:_,save:E,deprecated:z,transforms:s,merge:(e,t)=>({text:(e.text||"")+((t.hasOwnProperty("content")?t.content:t.text)||"")}),substitute:M.default}},2740:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/text",transform:e=>["core/paragraph",{content:null==e?void 0:e.text,align:null==e?void 0:e.contentAlign}]},l=a},9882:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>O});var a=o(9467),l=o(7462),n=o(2610),r=o(9384),i=o(7200);const s=new i.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),l=a&&""!==(null==a?void 0:a.top)?null==a?void 0:a.top:"mobile"===o?0:16;return"mobile"===o?`${l+16}px`:(null==a?void 0:a.top)===(null==a?void 0:a.bottom)?"":`calc(${l}px + (100% - ${l}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),l=a&&""!==(null==a?void 0:a.top)?null==a?void 0:a.top:"mobile"===o?0:16,n=a&&""!==(null==a?void 0:a.bottom)?null==a?void 0:a.bottom:"mobile"===o?0:16;return"mobile"===o?`calc(${n}px + (100% - ${l+n}px) - 16px)`:l===n?"":`calc(${n}px + (100% - ${l}px - ${n}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"]}]),r.BlockDiv.addStyles(s),r.MarginBottom.addStyles(s),r.Advanced.addStyles(s),r.Transform.addStyles(s),r.Typography.addStyles(s,{selector:".stk-block-timeline__date",hoverSelector:".stk-block-timeline__date:hover"}),r.EffectsAnimations.addStyles(s);const c=s;var d=o(910),u=o(4184),b=o.n(u),m=o(8333),p=o(9783),g=o(8085),k=o(7545),h=o(9600),v=o(3749),C=o(8003),y=o(78),f=o(3882),B=o(3284);const S=["stackable/column"],w=[["stackable/column",{columnSpacing:{top:0,right:0,bottom:0,left:0}},[(0,k.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)]]],_=[{value:"",title:(0,C.__)("Single",d.i18n)},{value:"gradient",title:(0,C.__)("Gradient",d.i18n)}],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)(i.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,n.createElement)(i.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,n.createElement)(i.InspectorStyleControls,null,(0,n.createElement)(i.PanelAdvancedSettings,{title:(0,C.__)("Timeline",d.i18n),initialOpen:!0,id:"timeline"},(0,n.createElement)(i.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,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(i.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,n.createElement)(i.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,n.createElement)(i.AdvancedRangeControl,{label:(0,C.__)("Line Thickness",d.i18n),attribute:"timelineThickness",sliderMax:20,min:1,placeholder:"3"}),(0,n.createElement)(i.AdvancedRangeControl,{label:(0,C.__)("Horizontal Offset",d.i18n),attribute:"timelineOffset",sliderMax:100,min:0,placeholder:"40"}),(0,n.createElement)(i.ControlSeparator,null),(0,n.createElement)(i.AdvancedToolbarControl,{controls:_,attribute:"timelineAccentColorType",isSmall:!0}),(0,n.createElement)(i.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,n.createElement)(i.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,n.createElement)(i.ColorPaletteControl,{label:(0,C.__)("Timeline Background Color",d.i18n),attribute:"timelineBackgroundColor"}))),(0,n.createElement)(r.Typography.InspectorControls,(0,l.Z)({},e,{hasTextTag:!1,isMultiline:!0,initialOpen:!1,hasTextShadow:!0})),(0,n.createElement)(i.InspectorLayoutControls,null,(0,n.createElement)(i.ControlSeparator,null)),(0,n.createElement)(r.ContentAlign.InspectorControls,null),(0,n.createElement)(r.BlockDiv.InspectorControls,{hasContentVerticalAlign:!1,hasMinHeight:!1}),(0,n.createElement)(r.Advanced.InspectorControls,null),(0,n.createElement)(r.CustomAttributes.InspectorControls,null),(0,n.createElement)(r.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-timeline"}),(0,n.createElement)(r.Responsive.InspectorControls,null),(0,n.createElement)(r.ConditionalDisplay.InspectorControls,null)))),E=(0,v.compose)(p.withBlockWrapperIsHovered,p.withQueryLoopContext,p.withBlockAttributeContext,(0,p.withBlockStyleContext)(c))((e=>{const{className:t,clientId:o,setAttributes:a}=e,l=(0,r.getRowClasses)(e.attributes),s=(0,r.getSeparatorClasses)(e.attributes),u=(0,r.getAlignmentClasses)(e.attributes),p=(0,r.getTypographyClasses)(e.attributes),{hasInnerBlocks:k,nextBlock:h,previousBlock:v,adjacentBlocks:f,blockIndex:_}=(0,B.useSelect)((e=>{var t,a;const{getBlockRootClientId:l,getBlocks:n,getBlockIndex:r}=e("core/block-editor"),i=n(l(o)),s=r(o);return{hasInnerBlocks:(null===(t=i[s])||void 0===t||null===(a=t.innerBlocks)||void 0===a?void 0:a.length)>0,nextBlock:s<i.length-1?i[s+1]:void 0,previousBlock:s>0?i[s-1]:void 0,adjacentBlocks:i,blockIndex:s}}),[o]),E=(0,m.useDeviceType)(),T=(0,n.useRef)(),x=(0,n.useRef)(),I=(0,n.useRef)(),H=(0,n.useRef)(null),[z,M]=(0,n.useState)({dot:0,branch:0}),[O,N]=(0,n.useState)({verticalLine:0,middle:0}),[D,R]=(0,n.useState)(0),[L,U]=(0,n.useState)(0),[P,V]=(0,n.useState)({isFirst:!1,isLast:!1}),[F,G]=(0,n.useState)(0),[W,q]=(0,n.useState)({verticalLine:0,middle:0});(0,n.useEffect)((()=>{let e=0;for(let t=_+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",l,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,r.getContentAlignmentClasses)(e.attributes)),J=()=>{var t,o,a,l;let n,r,i;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===(l=e.attributes.blockPaddingTablet)||void 0===l?void 0:l.bottom)?8:u;if("Tablet"===E)i=b,r=m,n=p;else if("Mobile"===E){var g,k;i=e.attributes.blockPaddingMobile&&""!==e.attributes.blockPaddingMobile.top?e.attributes.blockPaddingMobile.top:b,r=e.attributes.blockPaddingMobile&&""!==e.attributes.blockPaddingMobile.bottom?e.attributes.blockPaddingMobile.bottom:m,n=e.attributes.hasBackground&&""===(null===(g=e.attributes.blockPaddingMobile)||void 0===g?void 0:g.top)&&""===(null===(k=e.attributes.blockPaddingMobile)||void 0===k?void 0:k.bottom)?8:p}else i=c,r=d,n=u;return{topPadding:i,bottomPadding:r,backgroundPadding:n}},Y=()=>{var e,t;const{topPadding:o,bottomPadding:a,backgroundPadding:l}=J(),{height:n,top:r}=I.current.getBoundingClientRect(),i=T.current.getBoundingClientRect().top,s=`calc( -${r}px + ${o}px + ${l}px )`,c=n+o+a+2*l,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) ) + ${-r+o+l}px ) / ${c} * 100 * ${c/100}`;let u={verticalLine:`calc(${d})`,middle:`calc(${d})`},b={verticalLine:s,middle:s};const m=i-r+o+l,p=x.current.getBoundingClientRect().top-r+o+l;v&&"stackable/timeline"===v.name||(u={verticalLine:`calc(${d} - ${m}px)`,middle:`calc(${d})`},b={verticalLine:`-${i}px`,middle:s}),M({dot:m,branch:p}),N(u),q(b)},K=()=>{const{topPadding:t,bottomPadding:o}=J();let a="100%",l="";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)`,l=`${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)`);R(a),U(l)};(0,n.useEffect)((()=>{clearTimeout(H.current),H.current=setTimeout((()=>{K()}),300)}),[E,P,e.attributes.timelineDotSize,e.attributes.blockPadding,e.attributes.blockPaddingTablet,e.attributes.blockPaddingMobile]),(0,n.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",Y);const l=new Event("scroll",{bubbles:!0});return null===(t=a)||void 0===t||t.dispatchEvent(l),()=>{var e;null===(e=a)||void 0===e||e.removeEventListener("scroll",Y)}}),[E,h,v,e.attributes.timelineAnchor,e.attributes.timelineDotSize,e.attributes.blockPadding,e.attributes.blockPaddingTablet,e.attributes.blockPaddingMobile,e.attributes.hasBackground]),(0,n.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(H.current),H.current=setTimeout((()=>{K()}),300))}),[h]),(0,n.useEffect)((()=>{V({isFirst:!v||"stackable/timeline"!==v.name,isLast:!h||"stackable/timeline"!==h.name})}),[h,v]);const Q=(0,i.useBlockCssGenerator)({attributes:e.attributes,blockStyles:c,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)(A,{blockState:e.blockState,timelineThickness:e.attributes.timelineThickness,timelineDotSize:e.attributes.timelineDotSize,timelineAccentColorType:e.attributes.timelineAccentColorType}),(0,n.createElement)(r.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:j},Q&&(0,n.createElement)("style",{key:"block-css"},Q),(0,n.createElement)(r.CustomCSS,{mainBlockClass:"stk-block-timeline"}),(0,n.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,n.createElement)(r.Typography,{tagName:"div",className:$,placeholder:(0,C._x)("Text for This Block","Text placeholder",d.i18n)}),(0,n.createElement)("div",{className:"stk-block-timeline__middle"},(0,n.createElement)("div",{className:"stk-block-timeline__middle__dot",ref:T},(0,n.createElement)("div",{className:"stk-block-timeline__middle__fill",style:{height:`max(${O.middle}, 0px)`,top:`-${z.dot}px`,maxHeight:`calc(100% + ${z.dot}px)`}})),(0,n.createElement)("div",{className:"stk-block-timeline__middle__branch",ref:x},(0,n.createElement)("div",{className:"stk-block-timeline__middle__branch__fill",style:{height:`max(${O.middle}, 0px)`,top:`-${z.branch}px`,maxHeight:`calc(100% + ${z.branch}px)`}}))),(0,n.createElement)("div",{className:"stk-block-timeline__content"},(0,n.createElement)(y.InnerBlocks,{template:w,allowedBlocks:S,renderAppender:!1,templateLock:"false"})),(0,n.createElement)("div",{className:"stk-block-timeline__vertical-line",style:{maxHeight:D,top:L}},(0,n.createElement)("div",{className:"stk-block-timeline__vertical-line__fill",style:{height:`max(${O.verticalLine}, 0px)`}})),P.isFirst&&(0,n.createElement)("style",null,(0,g.range)(F+1).map((t=>{const a=(0,g.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,n.createElement)("style",null,`[data-block="${o}"] {\n\t\t\t\t\t\t\t\t\t--stk-timeline-vertical-line-bg-position: ${W.verticalLine};\n\t\t\t\t\t\t\t\t\t--stk-timeline-middle-bg-position: ${W.middle};\n\t\t\t\t\t\t\t\t}`))),e.isHovered&&k&&(0,n.createElement)(r.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,r.getRowClasses)(e.attributes),a=(0,r.getSeparatorClasses)(e.attributes),l=(0,r.getAlignmentClasses)(e.attributes),i=(0,r.getTypographyClasses)(e.attributes),s=(0,r.getResponsiveClasses)(e.attributes),c=b()([i,"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",l,"stk-block-content"],(0,r.getContentAlignmentClasses)(e.attributes)],e));return(0,n.createElement)(r.BlockDiv.Content,{className:d,attributes:t,version:e.version},t.generatedCss&&(0,n.createElement)("style",null,t.generatedCss),(0,n.createElement)(r.CustomCSS.Content,{attributes:t}),(0,n.createElement)("div",{className:u},(0,n.createElement)(r.Typography.Content,{tagName:"div",className:c,attributes:t}),(0,n.createElement)("div",{className:"stk-block-timeline__middle"}),(0,n.createElement)("div",{className:"stk-block-timeline__content"},(0,n.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 k.AttributeObject;return r.BlockDiv.addAttributes(t),r.Style.addAttributes(t),r.MarginBottom.addAttributes(t),r.Row.addAttributes(t),r.Advanced.addAttributes(t),r.Transform.addAttributes(t),r.EffectsAnimations.addAttributes(t),r.CustomAttributes.addAttributes(t),r.CustomCSS.addAttributes(t),r.Responsive.addAttributes(t),r.ConditionalDisplay.addAttributes(t),r.ContentAlign.addAttributes(t),r.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)},H=I(d.version),z=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"}'),M=[{attributes:I("3.16.2"),save:(0,p.withVersion)("3.16.2")(T),isEligible:e=>{const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e),a=r.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t=r.deprecateTypographyFontSize.migrate("%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:I("3.15.3"),save:(0,p.withVersion)("3.15.3")(T),isEligible:e=>{const t=r.deprecateTypographyFontSize.isEligible("%s")(e),o=r.deprecateBlockHeight.isEligible(e);return t||o},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t=r.deprecateTypographyFontSize.migrate("%s")(t),t=r.deprecateBlockHeight.migrate(t),t}},{attributes:I("3.12.11"),save:(0,p.withVersion)("3.12.11")(T),isEligible:e=>{if("string"==typeof(null==e?void 0:e.fontSize)||"string"==typeof(null==e?void 0:e.fontSizeTablet)||"string"==typeof(null==e?void 0:e.fontSizeMobile)||"string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;const t=r.deprecateBlockShadowColor.isEligible(e),o=r.deprecateContainerShadowColor.isEligible(e),a=r.deprecateTypographyShadowColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t}},{attributes:I("3.11.9"),save:(0,p.withVersion)("3.11.9")(T),isEligible:e=>{const t=r.deprecateContainerBackgroundColorOpacity.isEligible(e),o=r.deprecateBlockBackgroundColorOpacity.isEligible(e),a=r.deprecateTypographyGradientColor.isEligible("%s")(e);return t||o||a},migrate:e=>{let t={...e};return t=r.deprecateContainerBackgroundColorOpacity.migrate(t),t=r.deprecateBlockBackgroundColorOpacity.migrate(t),t=r.deprecateTypographyGradientColor.migrate("%s")(t),t=r.deprecateBlockShadowColor.migrate(t),t=r.deprecateContainerShadowColor.migrate(t),t=r.deprecateTypographyShadowColor.migrate("%s")(t),t}}],O={...z,icon:a.TimelineIcon,attributes:H,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:M,edit:E,save:x}},635:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});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"})}]]]]]},l=a},5996:(e,t,o)=>{"use strict";o.r(t),o.d(t,{settings:()=>I});var a=o(9467),l=o(2610),n=o(9384),r=o(7200);const i=new r.BlockStyleGenerator({versionAdded:"3.0.0",versionDeprecated:""});i.addBlockStyles("iconGap",[{selector:".stk-block-icon",attrName:"iconGap",key:"iconGap",styleRule:"flexBasis",format:"%spx"}]),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 s=i;var c=o(910),d=o(4184),u=o.n(d),b=o(7545),m=o(9783),p=o(5161),g=o(3749),k=o(78),h=o(8003),v=o(3882),C=o(7537),y=o(3162);const f=[["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}]],B=(0,l.memo)((e=>{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,h.__)("General",c.i18n),id:"video-popup",initialOpen:!0},(0,l.createElement)(r.ImageControl2,{isDynamic:!1,label:(0,h.__)("Popup Option #1: Upload Video",c.i18n),help:(0,h.__)("Use .mp4 format for videos",c.i18n),onRemove:()=>e.setAttributes({videoLink:"",videoId:"",videoName:"",videoDescription:"",videoUploadDate:""}),onChange:t=>{e.setAttributes({videoLink:t.url,videoId:t.url,videoName:t.title,videoDescription:t.description,videoUploadDate:t.date.toISOString()})},imageId:(0,b.urlIsVideo)(e.videoLink)?e.videoId:"",imageURL:(0,b.urlIsVideo)(e.videoLink)?e.videoLink:"",allowedTypes:["video"]}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,h.__)("Popup Option #2: Video URL",c.i18n),help:(0,h.__)("Paste a Youtube / Vimeo URL",c.i18n),isDynamic:!0,isFormatType:!1,placeholder:"https://",value:(0,b.urlIsVideo)(e.videoLink)?"":e.videoLink,onChange:t=>{const o=(0,b.getVideoProviderFromURL)(t);e.setAttributes({videoLink:t,videoId:o.id,videoName:"",videoDescription:"",videoUploadDate:""})}}),!!(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,l.createElement)(l.Fragment,null,(0,l.createElement)(r.AdvancedToggleControl,{label:(0,h.__)("Allow fullscreen",c.i18n),attribute:"videoFullscreen",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,h.__)("Allow download video",c.i18n),attribute:"videoDownload",defaultValue:!0}),(0,l.createElement)(r.AdvancedToggleControl,{label:(0,h.__)("Loop video",c.i18n),attribute:"videoLoop",defaultValue:!1})),e.videoLink&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(r.ControlSeparator,null),(0,l.createElement)("p",null,(0,h.__)("Note: The following attributes are used to create the video schema.",c.i18n)),(0,l.createElement)(r.AdvancedTextControl,{label:(0,h.__)("Video name",c.i18n),value:e.videoName,onChange:t=>e.setAttributes({videoName:t})}),(0,l.createElement)(r.AdvancedTextControl,{label:(0,h.__)("Video description",c.i18n),value:e.videoDescription,onChange:t=>e.setAttributes({videoDescription:t}),isMultiline:!0}),(0,l.createElement)(r.AdvancedTextControl,{className:"stk-components-datetime__date-input",label:(0,h.__)("Video upload date",c.i18n),value:e.videoUploadDate?((e,t)=>{if(!t){const{timezone:t}=(0,y.getSettings)(),o=Number(t.offset),a=Math.floor(Math.abs(o)),l=Math.round(Math.abs(o)%1*60);return e+(o>=0?"+":"-")+String(a).padStart(2,"0")+":"+String(l).padStart(2,"0")}const o=new Date(e);return e+new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format(o).slice(-6)})(e.videoUploadDate,e.videoUploadDateTimezone):"",onChange:t=>e.setAttributes({videoUploadDate:t}),inputType:"date",readOnly:!0}),(0,l.createElement)(C.DateTimePicker,{currentDate:e.videoUploadDate,is12Hour:!0,onChange:t=>e.setAttributes({videoUploadDate:t})}),(0,l.createElement)(r.AdvancedSelectControl,{label:(0,h.__)("Timezone",c.i18n),options:p.timezones,attribute:"videoUploadDateTimezone",allowReset:!1})))),(0,l.createElement)(n.BlockDiv.InspectorControls,null),(0,l.createElement)(n.Advanced.InspectorControls,null),(0,l.createElement)(n.Transform.InspectorControls,null),(0,l.createElement)(n.EffectsAnimations.InspectorControls,null),(0,l.createElement)(n.CustomAttributes.InspectorControls,null),(0,l.createElement)(n.CustomCSS.InspectorControls,{mainBlockClass:"stk-block-video-popup"}),(0,l.createElement)(n.Responsive.InspectorControls,null),(0,l.createElement)(n.ConditionalDisplay.InspectorControls,null),(0,l.createElement)(r.InspectorStyleControls,null,(0,l.createElement)(r.InspectorBottomTip,null)));var t})),S=(0,g.compose)(m.withBlockWrapperIsHovered,m.withQueryLoopContext,m.withBlockAttributeContext,(0,m.withBlockStyleContext)(s))((e=>{const{className:t,attributes:o,setAttributes:a}=e,i=(0,n.getRowClasses)(o),d=(0,n.getAlignmentClasses)(o),b=u()([t,"stk-block-video-popup",i]),m=u()(["stk-inner-blocks",d,"stk-block-content","stk-hover-parent"]),p=(0,r.useBlockCssGenerator)({attributes:e.attributes,blockStyles:s,clientId:e.clientId,context:e.context,setAttributes:e.setAttributes,blockState:e.blockState,version:c.version});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(B,{setAttributes:a,videoLink:o.videoLink,videoId:o.videoId,videoName:o.videoName,videoUploadDate:o.videoUploadDate,videoDescription:o.videoDescription,videoUploadDateTimezone:o.videoUploadDateTimezone}),p&&(0,l.createElement)("style",{key:"block-css"},p),(0,l.createElement)(n.CustomCSS,{mainBlockClass:"stk-block-video-popup"}),(0,l.createElement)(n.BlockDiv,{blockHoverClass:e.blockHoverClass,clientId:e.clientId,attributes:e.attributes,className:b},(0,l.createElement)("div",{className:m},(0,l.createElement)(k.InnerBlocks,{template:f,templateLock:"all"}))),e.isHovered&&(0,l.createElement)(n.MarginBottom,null))}));(0,v.addFilter)("stackable.edit.margin-bottom.enable-handlers","stackable/video-popup",((e,t)=>"stackable/video-popup"!==(null==t?void 0:t.name)&&e)),(0,v.addFilter)("stackable.edit.image.enable-link","stackable/video-popup",((e,t)=>"stackable/video-popup"!==(null==t?void 0:t.name)&&e));const w=e=>{const{attributes:t,className:o}=e,a=(0,n.getRowClasses)(t),r=(0,n.getAlignmentClasses)(t),i=(0,n.getResponsiveClasses)(t),s=u()([o,"stk-block-video-popup",i]),d=u()(["stk-block-video-popup__overlay",a,"stk-inner-blocks",r,"stk-block-content","stk-hover-parent"]);return(0,l.createElement)(n.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,l.createElement)("style",null,t.generatedCss),(0,l.createElement)(n.CustomCSS.Content,{attributes:t}),(0,v.applyFilters)("stackable.video-popup.save.div.content",(0,l.createElement)("div",{className:d,"aria-label":t.ariaLabel||(0,h.__)("Play Video",c.i18n),tabIndex:"0",role:"button"},(0,l.createElement)(k.InnerBlocks.Content,null)),e,d))},_=(0,g.compose)((0,m.withVersion)(c.version))(w),A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.version;const t=new b.AttributeObject;return n.BlockDiv.addAttributes(t),n.Style.addAttributes(t),n.MarginBottom.addAttributes(t),n.Row.addAttributes(t),n.Advanced.addAttributes(t),n.Transform.addAttributes(t),n.Alignment.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:{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},videoName:{type:"string",default:""},videoDescription:{type:"string",default:""},videoUploadDate:{type:"string",default:""},videoUploadDateTimezone:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),t.getMerged(e)},E=A(c.version),T=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,v.addFilter)("stackable.video-popup.save.div.content","stackable/3.12.14",((e,t,o)=>(0,b.semverCompare)(t.version,"<","3.12.14")?(0,l.createElement)("button",{className:o,"aria-label":t.attributes.ariaLabel||(0,h.__)("Play Video",c.i18n)},(0,l.createElement)(k.InnerBlocks.Content,null)):e));const x=[{attributes:A("3.16.2"),save:(0,m.withVersion)("3.16.2")(w),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=n.deprecateBlockHeight.migrate(t),t}},{attributes:A("3.15.3"),save:(0,m.withVersion)("3.15.3")(w),isEligible:e=>n.deprecateBlockHeight.isEligible(e),migrate:e=>{let t={...e};return t=n.deprecateBlockHeight.migrate(t),t}},{attributes:A("3.12.14"),save:(0,m.withVersion)("3.12.14")(w)},{attributes:A("3.12.11"),save:(0,m.withVersion)("3.12.11")(w),isEligible:e=>{if("string"==typeof(null==e?void 0:e.blockHeight)||"string"==typeof(null==e?void 0:e.blockHeightTablet)||"string"==typeof(null==e?void 0:e.blockHeightMobile))return!1;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:A("3.11.9"),save:(0,m.withVersion)("3.11.9")(w),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:A("3.7.9"),save:(0,m.withVersion)("3.7.9")(w),migrate:e=>{let t=n.deprecateContainerBackgroundColorOpacity.migrate(e);return t=n.deprecateBlockShadowColor.migrate(t),t=n.deprecateContainerShadowColor.migrate(t),n.deprecateBlockBackgroundColorOpacity.migrate(t)}}],I={...T,icon:a.VideoPopupIcon,attributes:E,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:x,edit:S,save:_}},9895:(e,t,o)=>{"use strict";o.r(t),o.d(t,{substitute:()=>a,default:()=>l});const a={from:"stackable/video-popup",transform:e=>["core/video",{src:null==e?void 0:e.oldAttributes}]},l=a},9600:(e,t,o)=>{"use strict";o.d(t,{c:()=>Dt});var a=o(2610),l=o(7200),n=o(7545),r=o(910),i=o(7537),s=o(2413),c=o(78),d=o(8003),u=o(2527),b=o(3284);const m=(e,t,o,a)=>{const l=(0,s.removeFormat)(e,"ugb/highlight");return""===t?o?(0,s.applyFormat)(l,{type:"stk/highlight",attributes:{style:`color: ${o};`}}):(0,s.removeFormat)(l,"stk/highlight"):"highlight"===t?(0,s.applyFormat)(l,{type:"stk/highlight",attributes:{style:(o?`color: ${o};`:"")+(a?`background-color: ${a}`:"")}}):(0,s.applyFormat)(l,{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 l=e.match(/(^|[^-])color:\s*([^;]*)?/);return l&&(t=l[2]),{textColor:t,highlightColor:o,colorType:a}};r.settings.stackable_enable_text_highlight&&(0,s.registerFormatType)("stk/highlight",{title:(0,d.__)("Highlight Text",r.i18n),tagName:"span",className:"stk-highlight",edit:e=>{const{clientId:t}=(0,c.useBlockEditContext)(),[o,s]=(0,a.useState)(null),[u,g]=(0,a.useState)(!1),{getBlock:k}=(0,b.useSelect)("core/block-editor"),h=k(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:w="",highlightColor:_=""}=B?p(S):{},A=(""!==o?_:w)||w;return"stackable/button"===h.name?null:(0,a.createElement)(c.BlockControls,null,(0,a.createElement)(i.ToolbarGroup,{className:"stackable-components-toolbar"},(0,a.createElement)(i.ToolbarButton,{label:(0,d.__)("Color & Highlight",r.i18n),className:"components-toolbar__control stk-toolbar-button stk-components-toolbar__highlight",icon:"editor-textcolor","aria-haspopup":"true",tooltip:(0,d.__)("Color & Highlight",r.i18n),onClick:()=>{if(!u){const{colorType:e=""}=B?p(S):{};s(e)}g(!u)},isActive:B},(0,a.createElement)("span",{className:"components-stackable-highlight-color__indicator",style:{backgroundColor:A}})),u&&(0,a.createElement)(l.Popover,{offset:13,position:"bottom center",className:"stk-copy-paste-styles__menu",isAlternate:!0,onFocusOutside:()=>g(!1),onEscape:()=>g(!1)},(0,a.createElement)("div",{className:"stk-color-palette-control__popover-content"},(0,a.createElement)("div",{className:"components-stackable-highlight__inner"},(0,a.createElement)(l.AdvancedToolbarControl,{controls:[{value:"",title:(0,d.__)("Normal",r.i18n)},{value:"highlight",title:(0,d.__)("Highlight",r.i18n)},{value:"low",title:(0,d.__)("Low",r.i18n)}],value:o,onChange:e=>{const t=_||(""!==e?w||"#f34957":_),o="highlight"===e?(0,n.whiteIfDarkBlackIfLight)("",t):"low"===e?"":_||w||"";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)(l.ColorPaletteControl,{isExpanded:!0,label:(0,d.__)("Text Color",r.i18n),value:w,onChange:e=>{y(m(f,o,e,_),{withoutHistory:!0})}})),""!==o&&(0,a.createElement)("div",{className:"stk-highlight-format__color-picker"},(0,a.createElement)(l.ColorPaletteControl,{isExpanded:!0,label:(0,d.__)("Highlight Color",r.i18n),value:_,onChange:e=>{y(m(f,o,w,e),{withoutHistory:!0})}})))))))},attributes:{style:"style"}}),(0,s.registerFormatType)("ugb/highlight",{title:(0,d.__)("Highlight Text",r.i18n)+" (v2)",tagName:"span",className:"ugb-highlight",attributes:{style:"style"}}),(0,u.Z)((()=>{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 g={colorSchemes:[],hideColorSchemeColors:"",baseColorScheme:"",backgroundModeColorScheme:"",containerModeColorScheme:"",useV3_16_0_ColorSchemeInheritance:""};(0,b.register)((0,b.createReduxStore)("stackable/global-color-schemes",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,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"})}})),(0,u.Z)((()=>{(0,n.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:l,stackable_global_container_mode_color_scheme:n,stackable_use_v3_16_0_color_scheme_inheritance:i}=e,s=Array.isArray(t)&&t.length>0?[...t]:[],c={name:(0,d.__)("Default Scheme",r.i18n),key:"scheme-default-1",colorScheme:{backgroundColor:{desktop:""},headingColor:{desktop:""},textColor:{desktop:""},linkColor:{desktop:""},accentColor:{desktop:""},buttonBackgroundColor:{desktop:""},buttonTextColor:{desktop:""},buttonOutlineColor:{desktop:""}},hideInPicker:!1},u={name:(0,d.__)("Background Scheme",r.i18n),key:"scheme-default-2",colorScheme:{backgroundColor:{desktop:""},headingColor:{desktop:""},textColor:{desktop:""},linkColor:{desktop:""},accentColor:{desktop:""},buttonBackgroundColor:{desktop:""},buttonTextColor:{desktop:""},buttonOutlineColor:{desktop:""}},hideInPicker:!1},m=s.some((e=>"scheme-default-1"===e.key)),p=s.some((e=>"scheme-default-2"===e.key));m||s.push(c),p||s.push(u);const g={colorSchemes:[...s].sort(((e,t)=>e.key<t.key?-1:e.key>t.key?1:0)),hideColorSchemeColors:o,baseColorScheme:a,backgroundModeColorScheme:l,containerModeColorScheme:n,useV3_16_0_ColorSchemeInheritance:i};(0,b.dispatch)("stackable/global-color-schemes").updateSettings(g)}))}));var k=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,l;let n=null===(a=e[t])||void 0===a?void 0:a[o];var r,i;return n||"mobile"!==o||(n=null===(r=e[t])||void 0===r?void 0:r.tablet),n||"mobile"!==o&&"tablet"!==o||(n=null===(i=e[t])||void 0===i?void 0:i.desktop),null!==(l=n)&&void 0!==l?l:""},w=(e,t)=>{let o=e.classList.toString();const a=new MutationObserver((l=>{for(const n of l)if("class"===n.attributeName){const l=e.classList.toString();if(l!==o){t(a),o=l;break}}}));return a.observe(e,{attributes:!0}),a};var _=o(3882),A=o(8085),E=o(8333);function T(e,t){return"string"==typeof e&&e.trim().startsWith("var")?e:`${e}${t}`}const x=(e,t)=>{const{blockLayouts:o,selectedBlockUniqueId:l,SelectedParentHoverBlock:n}=(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()}}),[]),[r]=(0,E.useBlockHoverState)({forceUpdateHoverState:!0}),i=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()),[]),[s,c]=(0,a.useState)(""),{defaults:d}=(0,E.useBlockLayoutDefaults)();return(0,a.useEffect)((()=>{o&&"object"==typeof o&&function(e,t,o,a,l,n){let r=arguments.length>6&&void 0!==arguments[6]&&arguments[6],i=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1024,s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:768;if(0===Object.keys(e).length)return void o("");let c="";const d={desktop:[],tablet:[],mobile:[]},u=(t,o)=>{var a;return null!==(a=e[t][`${o}Unit`])&&void 0!==a?a:"px"},b=(e,o,r,i,s)=>{let c="--stk-"+e;"parent-hover"===r&&"parent-hover"===a&&l&&n?c+="-hover":"normal"!==r&&(c+=`-${r}`);let d="";if("string"==typeof i&&isNaN(Number(i)))d=`${c}: ${i};`;else if("object"==typeof i){let a=S(t,e,o);"object"!=typeof a&&(a={top:a,right:a,bottom:a,left:a});const l=void 0!==i.top?i.top:a.top,n=void 0!==i.right?i.right:a.right,r=void 0!==i.bottom?i.bottom:a.bottom,u=void 0!==i.left?i.left:a.left;d=`${c}: ${T(l,s)} ${T(n,s)} ${T(r,s)} ${T(u,s)};`}else d=`${c}: ${i}${s};`;return"parent-hover"===a&&"parent-hover"===r&&l&&n&&(d=`.stk--is-hovered.stk-${l}{ ${d} }`),d};if(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 l=u(t,o),n=o.includes("desktop")?"desktop":o.includes("tablet")?"tablet":"mobile",r=o.includes("ParentHover")?"parent-hover":o.includes("Hover")?"hover":"normal";d[n].push(b(t,n,r,a,l)),"button-icon-size"!==t&&"icon-size"!==t||d[n].push(b(`custom-${t}`,n,r,a,l))}))})),d.desktop.length>0&&(c+=`:root { ${(0,A.compact)(d.desktop).join("")}}`),d.tablet.length>0&&(c+=`@media screen and (max-width: ${i-1}px){ :root { ${(0,A.compact)(d.tablet).join("")}}}`),d.mobile.length>0&&(c+=`@media screen and (max-width: ${s-1}px){:root { ${(0,A.compact)(d.mobile).join("")}}}`),r)return c;o(c)}(o,d,c,r,l,n)}),[o,r,n]),(0,a.useEffect)((()=>{if(i){const e=`stk-has-design-system-${t}`;""!==s&&!1===i.classList.contains(e)&&(i.classList.add(e),(0,_.addFilter)("stackable.global-styles.classnames",`stackable/global-settings.${t}`,(t=>(t.push(e),t)))),""===s&&i.classList.remove(e);const o=w(i,(()=>{""!==s&&!1===(null==i?void 0:i.classList.contains(e))&&(null==i||i.classList.add(e),(0,_.addFilter)("stackable.global-styles.classnames",`stackable/global-settings.${t}`,(t=>(t.push(e),t)))),""===s&&(null==i||i.classList.remove(e))}));return()=>o.disconnect()}}),[i,s]),s};var I=o(9384);const H=wp.api,z=(e,t,o,a)=>{const{blockLayouts:n}=(0,b.useSelect)((t=>({blockLayouts:{...t(e).getBlockLayouts()}})),[]),[r]=(0,E.useBlockHoverState)({forceUpdateHoverState:!0}),i=(0,E.useDeviceType)(),s=(0,l.getShadows)(),c=o=>{clearTimeout(a),a=setTimeout((()=>{new H.models.Settings({[t]:o}).save()}),300),(0,b.dispatch)(e).updateBlockLayouts(o)};return[n,function(e){var t;let{responsive:o=!1,hover:a=!1,unit:l=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=o?i.toLowerCase():"desktop",c=a?B[r]:"",d=l?"Unit":"",u=`${s}${c}${d}`;return null===(t=n[e])||void 0===t?void 0:t[u]},function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=t?I.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?I.IMAGE_SHADOWS:s;return""!==e?o[e]:e},c,function(e,t){let{responsive:a=!1,hover:l=!1,unit:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const d={...n};let u="desktop";if(a&&(u=i.toLowerCase()),l&&(u+=B[r]),s&&(u+="Unit"),"normal"===r||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 n){var o,a,l;const r={normal:t,hover:`${t}Hover`,"parent-hover":`${t}ParentHover`};return void 0!==(null===(o=n[e])||void 0===o?void 0:o[r.normal])||void 0!==(null===(a=n[e])||void 0===a?void 0:a[r.hover])||void 0!==(null===(l=n[e])||void 0===l?void 0:l[r["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 n){var a,l;const r={hover:`${t?i.toLowerCase():"desktop"}Hover`,"parent-hover":`${t?i.toLowerCase():"desktop"}ParentHover`};o.hover=void 0!==(null===(a=n[e])||void 0===a?void 0:a[r.hover]),o["parent-hover"]=void 0!==(null===(l=n[e])||void 0===l?void 0:l[r["parent-hover"]])}return o}]},M=e=>{const t={};return e.forEach((e=>{t[e.key]=e.colorScheme})),t},O=e=>Object.values(e).some((e=>Object.values(e).some((e=>""!==e)))),N=e=>"--stk-"+(0,A.kebabCase)(e),D=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},R=e=>(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-")),L=function(e){var t,o,a;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=["desktop","desktopHover","desktopParentHover"],i=["backgroundColor","headingColor","textColor","linkColor","accentColor","buttonBackgroundColor","buttonTextColor","buttonOutlineColor"],s={desktop:[],desktopHover:[],desktopParentHover:[]};return r.forEach((t=>{const o="desktopHover"===t?"-hover":"";i.forEach((a=>{var r,i;const c="backgroundColor"===a?`--stk-${"background"===n?"block":"container"}-background-color`:N(a);if("backgroundColor"===a&&!n)return;var d,u;null!==(r=e[a])&&void 0!==r&&r[t]&&(s[t].push(`${c}${o}: ${null===(d=e[a])||void 0===d?void 0:d[t]};`),"accentColor"===a&&s[t].push(`${N("subtitleColor")}${o}: ${null===(u=e[a])||void 0===u?void 0:u[t]};`));const b=D(e[a],t);"desktopParentHover"===t&&"normal"!==l&&"backgroundColor"!==a&&b&&(s.desktopHover.push(`${c}-parent-hover: ${b};`),"accentColor"===a&&s[t].push(`${N("subtitleColor")}-parent-hover: ${b};`)),"buttonBackgroundColor"===a&&R(null===(i=e[a])||void 0===i?void 0:i[t])&&s[t].push(`:where(.is-style-plain){ --stk-button-plain-text-color${o}: var(--stk-button-outline-color${o}); }`)}))})),R(null===(t=e.buttonBackgroundColor)||void 0===t?void 0:t.desktop)&&null!==(o=e.buttonBackgroundColor)&&void 0!==o&&o.desktopParentHover&&!R(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; }"),V(s,e,n)},U=()=>{let e="";return e+="--stk-background-color: var(--stk-default-container-background-color, #fff);",e+="--stk-heading-color: var(--stk-default-heading-color, initial);",e+="--stk-text-color: var(--stk-container-color, initial);",e+="--stk-link-color: var(--stk-default-link-color, var(--stk-text-color, initial));",e+="--stk-accent-color: #ddd;",e+="--stk-subtitle-color: var(--stk-default-subtitle-color, #39414d);",e+="--stk-default-icon-color: var(--stk-icon-color);",e+="--stk-button-background-color: var(--stk-default-button-background-color, #008de4);",e+="--stk-button-text-color: var(--stk-default-button-text-color, #fff);",e+="--stk-button-outline-color: var(--stk-default-button-background-color, #008de4);","--stk-background-color: var(--stk-default-container-background-color, #fff);--stk-heading-color: var(--stk-default-heading-color, initial);--stk-text-color: var(--stk-container-color, initial);--stk-link-color: var(--stk-default-link-color, var(--stk-text-color, initial));--stk-accent-color: #ddd;--stk-subtitle-color: var(--stk-default-subtitle-color, #39414d);--stk-default-icon-color: var(--stk-icon-color);--stk-button-background-color: var(--stk-default-button-background-color, #008de4);--stk-button-text-color: var(--stk-default-button-text-color, #fff);--stk-button-outline-color: var(--stk-default-button-background-color, #008de4);"},P=()=>{let e="";return e+="--stk-default-icon-color: unset;","--stk-default-icon-color: unset;"},V=(e,t,o)=>{var a;const l=null===(a=document.querySelector("body").className.match(/stk--is-\w+-theme/gm))||void 0===a?void 0:a[0];return(0,_.applyFilters)("stackable.global-settings.global-color-schemes.add-theme-compatibility",e,t,o,l)},F=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 G=null;const W=[...F],q=[{label:(0,d.__)("Background Color",r.i18n),property:"backgroundColor",disabledTooltip:{gradient:(0,d.sprintf)((0,d.__)("The %s cannot be changed in any hover state when using a gradient.",r.i18n),(0,d.__)("Background Color",r.i18n)),"parent-hover":(0,d.sprintf)((0,d.__)("Changing the %s is not allowed for %s state.",r.i18n),(0,d.__)("Background Color",r.i18n),(0,d.__)("parent-hover",r.i18n))}},{label:(0,d.__)("Heading Color",r.i18n),property:"headingColor",disabledTooltip:{hover:(0,d.sprintf)((0,d.__)("Changing the %s is not allowed for %s state.",r.i18n),(0,d.__)("Heading Color",r.i18n),(0,d.__)("hover",r.i18n))}},{label:(0,d.__)("Text Color",r.i18n),property:"textColor",disabledTooltip:{hover:(0,d.sprintf)((0,d.__)("Changing the %s is not allowed for %s state.",r.i18n),(0,d.__)("Text Color",r.i18n),(0,d.__)("hover",r.i18n))}},{label:(0,d.__)("Link Color",r.i18n),property:"linkColor"},{label:(0,d.__)("Accent Color",r.i18n),property:"accentColor",disabledTooltip:{hover:(0,d.sprintf)((0,d.__)("Changing the %s is not allowed for %s state.",r.i18n),(0,d.__)("Accent Color",r.i18n),(0,d.__)("hover",r.i18n))}},{label:(0,d.__)("Button Color",r.i18n),property:"buttonBackgroundColor"},{label:(0,d.__)("Button Text Color",r.i18n),property:"buttonTextColor"},{label:(0,d.__)("Button Outline Color",r.i18n),property:"buttonOutlineColor"}],$=e=>{const t=(0,a.useRef)(),{itemInEdit:o,setItemInEdit:i,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,_.applyFilters)("stackable.global-settings.global-color-schemes.presets",W),[m,p]=(0,a.useState)({showTrash:!1,showReset:!1}),[g]=(0,E.useBlockHoverState)({forceUpdateHoverState:!0}),h=`desktop${B[g]}`,v=!(null==o||!o.key.startsWith("scheme-default"))&&("scheme-default-1"===(null==o?void 0:o.key)?(null==o?void 0:o.name)===(0,d.__)("Default Scheme",r.i18n):(null==o?void 0:o.name)===(0,d.__)("Background Scheme",r.i18n)),C=e=>!(0,A.isEqual)(e.colorScheme,l.DEFAULT_COLOR_SCHEME_COLORS);(0,a.useEffect)((()=>{if(!o)return void p({showTrash:!1,showReset:!1});const e={showTrash:"scheme-default-3"===o.key||!o.key.startsWith("scheme-default"),showReset:C(o)};p(e)}),[o]);const y=(0,_.applyFilters)("stackable.global-settings.global-color-schemes.custom-color-schemes",[]),f=e=>{clearTimeout(G),G=setTimeout((()=>{var t;new H.models.Settings({stackable_global_color_schemes:(t=e,t.some((e=>O(e.colorScheme)))?e:[]),stackable_global_color_scheme_generated_css:""}).save()}),300),(0,b.dispatch)("stackable/global-color-schemes").updateColorSchemes(e)},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t||c.some((e=>"scheme-default-3"===e.key)))(0,_.doAction)("stackable.global-settings.global-color-schemes.custom-color-schemes.add-color-scheme",t,i,G);else{const e={name:(0,d.__)("Alternate Scheme",r.i18n),key:"scheme-default-3",colorScheme:l.ALTERNATE_COLOR_SCHEME_COLORS},t=[...c,e];f(t)}},w=e=>{if(clearTimeout(G),!(0,_.applyFilters)("stackable.global-settings.global-color-schemes.update-color-schemes",!1,e,G)){const t=(0,A.cloneDeep)(c);t[c.findIndex((t=>t.key===e.key))]=e,f(t)}},T=e=>!(!o||!e)&&(e.startsWith("linear-")||e.startsWith("radial-")),x=e=>{if(!window.confirm((0,d.__)("Are you sure you want to reset this color scheme to their default values?",r.i18n)))return;const t=(0,A.cloneDeep)(e);"scheme-default-1"===t.key&&t.name===(0,d.__)("Color Scheme 1",r.i18n)&&(t.name=(0,d.__)("Default Scheme",r.i18n)),"scheme-default-2"===t.key&&t.name===(0,d.__)("Color Scheme 2",r.i18n)&&(t.name=(0,d.__)("Background Scheme",r.i18n)),t.colorScheme=(0,A.cloneDeep)(l.DEFAULT_COLOR_SCHEME_COLORS),o&&i(t),w(t)},I=e=>{if("scheme-default-3"===e.key){if(!window.confirm((0,d.__)("Deleting this color scheme would remove all colors linked to it. Any blocks that use this color scheme will revert to the default scheme. Delete this color scheme?",r.i18n)))return;const t=c.findIndex((t=>t.key===e.key)),o=(0,A.cloneDeep)(c);return o.splice(t,1),f(o),void i(null)}(0,_.applyFilters)("stackable.global-settings.global-color-schemes.delete-color-scheme",!1,e,i,G)||x(e)},z=e=>null!=e&&e[h]?e[h]:null==e?void 0:e.desktop,M=e=>{let{item:t,withWrapper:o=!1}=e;const n={...l.DEFAULT_COLOR_SCHEME_COLORS,..."scheme-default-2"===t.key?{backgroundColor:{desktop:"var(--stk-block-background-color)"}}:{}},r=z(t.colorScheme.backgroundColor)||n.backgroundColor.desktop,i={backgroundColor:r,headingColor:z(t.colorScheme.headingColor)||n.headingColor.desktop,textColor:z(t.colorScheme.textColor)||n.textColor.desktop,linkColor:z(t.colorScheme.linkColor)||n.linkColor.desktop,accentColor:z(t.colorScheme.accentColor)||n.accentColor.desktop,buttonBackgroundColor:z(t.colorScheme.buttonBackgroundColor)||n.buttonBackgroundColor.desktop,buttonOutlineColor:z(t.colorScheme.buttonOutlineColor)||n.buttonOutlineColor.desktop},s=!o&&!O(t.colorScheme),c=(0,a.createElement)(l.ColorSchemePreview,{colors:i,withWrapper:o,isDisabled:s});return o?(0,a.createElement)("div",{className:"stk-global-color-scheme__preview-wrapper",style:{background:r}}," ",c," "):c},N=e=>{var t;return"backgroundColor"===e?!(!T(null==o||null===(t=o.colorScheme[e])||void 0===t?void 0:t.desktop)||"normal"===g)||"parent-hover"===g:!!["headingColor","textColor","accentColor"].includes(e)&&"hover"===g},D=e=>"backgroundColor"===e||"buttonBackgroundColor"===e,R=e=>{var t;const a=N(e.property),l=T(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:l&&e.disabledTooltip.gradient?e.disabledTooltip.gradient:e.disabledTooltip[g]}:{}},L="scheme-default-1"===(null==o?void 0:o.key)||!r.isPro&&"scheme-default-2"===(null==o?void 0:o.key);return o?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l.InspectorSubHeader,{title:r.isPro||"scheme-default-1"!==o.key?r.isPro||"scheme-default-2"!==o.key?(0,d.sprintf)((0,d.__)("Editing %s",r.i18n),(0,d.__)("Color Scheme",r.i18n)):(0,d.sprintf)((0,d.__)("Editing %s",r.i18n),(0,d.__)("Background Scheme",r.i18n)):(0,d.sprintf)((0,d.__)("Editing %s",r.i18n),(0,d.__)("Default Scheme",r.i18n)),onBack:()=>i(null),showTrash:m.showTrash,showReset:m.showReset,showDuplicate:r.isPro,onTrash:()=>I(o),onReset:()=>x(o),onDuplicate:()=>{return e=o,void(window.confirm((0,d.__)("Do you want to duplicate this color scheme?",r.i18n))&&S(null,e));var e}}),(0,a.createElement)("div",{className:"stk-global-color-scheme__edit-panel-preview"},r.isPro||"scheme-default-1"!==o.key?r.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.",r.i18n)," "):(0,a.createElement)("p",null," ",(0,d.__)("Change the color scheme applied when the background option is enabled for a block.",r.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.",r.i18n)," "),(0,a.createElement)(M,{item:o,withWrapper:!0}),(0,a.createElement)(l.AdvancedTextControl,{label:(0,d.__)("Color Scheme Name",r.i18n),hasPanelModifiedIndicator:!1,value:null==o?void 0:o.name,allowReset:!1,readOnly:L,onChange:e=>{if(!o)return;const t=(0,A.cloneDeep)(o);t.name=e,i(t),w(t)}})),(0,a.createElement)(l.ColorSchemePresetPicker,{label:(0,d.__)("Color Scheme Presets",r.i18n),presets:u,onPresetClick:e=>{if(!o)return;const t=(0,A.cloneDeep)(o);!O(t.colorScheme)&&v&&(t.name="scheme-default-1"===(null==t?void 0:t.key)?(0,d.__)("Color Scheme 1",r.i18n):(0,d.__)("Color Scheme 2",r.i18n)),"normal"===g&&(t.colorScheme=(0,A.cloneDeep)(l.DEFAULT_COLOR_SCHEME_COLORS)),Object.entries(e).forEach((e=>{let[o,a]=e;N(o)||(t.colorScheme[o][h]=a)})),i(t),w(t)}}),r.showProNotice&&(0,a.createElement)(l.ProControlButton,{type:"color-schemes"}),(0,a.createElement)(l.ControlSeparator,null),(0,a.createElement)(l.AdvancedToggleControl,{label:(0,d.__)("Show Scheme Colors in Color Pickers",r.i18n),checked:!(null!=o&&o.hideInPicker),defaultValue:!0,onChange:e=>(e=>{if(!o)return;const t=(0,A.cloneDeep)(o);t.hideInPicker=!e,i(t),w(t)})(e)}),q.map(((e,t)=>{return(0,a.createElement)(l.ColorPaletteControl,{key:t,label:e.label,value:null==o?void 0:o.colorScheme[e.property][h],colorLabel:(0,n.extractColor)(null==o?void 0:o.colorScheme[e.property][h]),hover:(c=e.property,("backgroundColor"!==c||!T(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"!==g&&(localStorage.getItem("stk-disable-global-block-color-schemes-hover-notice")||s(!0));const a=(0,A.cloneDeep)(o);!O(a.colorScheme)&&v&&(a.name="scheme-default-1"===(null==a?void 0:a.key)?"Color Scheme 1":"Color Scheme 2"),a.colorScheme[e][h]=t,"backgroundColor"===e&&T(t)&&(a.colorScheme[e].desktopHover="",a.colorScheme[e].desktopParentHover=""),i(a),w(a)})(e.property,t),help:r.isPro||"scheme-default-1"!==o.key||"backgroundColor"!==e.property?r.isPro&&"backgroundColor"===e.property?(0,d.__)("Note: Background color is not used for Base Color Scheme.",r.i18n):"":(0,d.__)("Note: This background color is used when the container option of the block is enabled.",r.i18n),hasGradientPicker:D(e.property),enableGradient:"normal"===g||"buttonBackgroundColor"===e.property,additionalToggleProps:R(e),allowReset:!N(e.property)});var c,u}))):(0,a.createElement)(l.SortablePicker,(0,k.Z)({ref:t},e,{className:"stk-global-color-scheme-picker",items:y,nonSortableItems:c.slice(0,3),editableName:!1,onDeleteItem:I,handleAddItem:S,onSortEnd:e=>{(0,_.doAction)("stackable.global-settings.global-color-schemes.custom-color-schemes.sort-color-schemes",e,G)},ItemPreview:M,ItemPicker:null,buttonClassName:"stk-global-color-scheme__color-scheme-item",enableAddItem:r.isPro||!c.some((e=>"scheme-default-3"===e.key)),onItemClick:e=>i(e),showResetCallback:e=>C(e),showDeleteCallback:e=>(e=>"scheme-default-3"===e.key)(e)}))};$.defaultProps={className:"",label:"",onReset:()=>{}};const j=$;(0,_.addFilter)("stackable.global-settings.global-color-schemes.default-container-scheme","stackable.global-settings.global-color-schemes.use-v3_16_0-color-scheme-inheritance",(e=>{const{useV3_16_0_ColorSchemeInheritance:t}=(0,b.select)("stackable/global-color-schemes").getSettings();return t?"":e}));let Z=!1;const J=()=>{const{allColorSchemes:e,baseColorScheme:t,backgroundModeColorScheme:o,containerModeColorScheme:l}=(0,E.useBlockColorSchemes)(),[n,r]=(0,a.useState)(""),[i]=(0,E.useBlockHoverState)({forceUpdateHoverState:!0}),s=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()),[]);return(0,a.useEffect)((()=>{e&&Array.isArray(e)&&function(e,t,o,a,l,n){let r,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="";const c={background:[],container:[]},d=M(t),u=P();if(o in d&&O(d[o])&&(r=L(d[o],n),(r.desktop.length||r.desktopHover.length)&&(s+=`:root{ ${[...r.desktop,...r.desktopHover].join("")} }\n`)),a in d&&O(d[a])){r=L(d[a],n,"background");let e="";(r.desktop.length||r.desktopHover.length)&&(e+=`.stk-block-background{ ${[...r.desktop,...r.desktopHover,u].join("")} }\n`),r.desktopParentHover.length&&(e+=`:where(.stk-hover-parent:hover) .stk-block-background{ ${[...r.desktopParentHover,u].join("")} }\n`),s+=e}const b=l in d&&!O(d[l])&&(a in d&&O(d[a])||t.length>2);if(l in d&&O(d[l])){r=L(d[l],n,"container");let e="";(r.desktop.length||r.desktopHover.length)&&(e+=`.stk-container:where(:not(.stk--no-background)){ ${[...r.desktop,...r.desktopHover].join("")} }\n`),r.desktopParentHover.length&&(e+=`.stk-container:where(:not(.stk--no-background):hover), :where(.stk-hover-parent:hover) .stk-container:where(:not(.stk--no-background)){ ${r.desktopParentHover.join("")} }\n`),s+=e}else if(b){const e=`.stk-container:where(:not(.stk--no-background)){ ${U()} }\n`;s+=(0,_.applyFilters)("stackable.global-settings.global-color-schemes.default-container-scheme",e)}if(Object.entries(d).forEach((e=>{let[t,o]=e;O(o)&&(r=L(o,n,"background"),(r.desktop.length||r.desktopHover.length)&&c.background.push(`.stk--background-scheme--${t}{ ${[...r.desktop,...r.desktopHover,u].join("")} }`),r.desktopParentHover.length&&c.background.push(`:where(.stk-hover-parent:hover) .stk--background-scheme--${t}{ ${[...r.desktopParentHover,u].join("")} }`),r=L(o,n,"container"),(r.desktop.length||r.desktopHover.length)&&c.container.push(`.stk--container-scheme--${t}{ ${[...r.desktop,...r.desktopHover].join("")} }`),r.desktopParentHover.length&&c.container.push(`.stk--container-scheme--${t}:where(:hover), :where(.stk-hover-parent:hover) .stk--container-scheme--${t}{ ${r.desktopParentHover.join("")} }`))})),s+=`${c.background.join("\n")}`,s+=`${c.container.join("\n")}`,i)return s;e(s)}(r,e,t,o,l,i)}),[e,t,o,l,i]),(0,a.useEffect)((()=>{if(s){const e=e=>{const t=[],o=[];""===n?e.classList.remove("stk--has-base-scheme","stk--has-background-scheme","stk--has-container-scheme"):(n.includes(":root")?!1===e.classList.contains("stk--has-base-scheme")&&t.push("stk--has-base-scheme"):o.push("stk--has-base-scheme"),n.includes(".stk-block-background")?!1===e.classList.contains("stk--has-background-scheme")&&t.push("stk--has-background-scheme"):o.push("stk--has-background-scheme"),n.includes(".stk-container:where(:not(.stk--no-background))")?!1===e.classList.contains("stk--has-container-scheme")&&t.push("stk--has-container-scheme"):o.push("stk--has-container-scheme"),n.includes("--stk-default-container-background-color")?!1===e.classList.contains("stk--has-container-scheme")&&t.push("stk--has-default-container-scheme"):o.push("stk--has-default-container-scheme"),e.classList.add(...t),e.classList.remove(...o))};Z||((0,_.addFilter)("stackable.global-styles.classnames","stackable/global-settings.color-schemes",(e=>{const t=s,o=t.classList.contains("stk--has-base-scheme"),a=t.classList.contains("stk--has-background-scheme"),l=t.classList.contains("stk--has-container-scheme"),n=t.classList.contains("stk--has-default-container-scheme");return o&&!e.includes("stk--has-base-scheme")&&e.push("stk--has-base-scheme"),a&&!e.includes("stk--has-background-scheme")&&e.push("stk--has-background-scheme"),l&&!e.includes("stk--has-container-scheme")&&e.push("stk--has-container-scheme"),n&&!e.includes("stk--has-default-container-scheme")&&e.push("stk--has-default-container-scheme"),e})),Z=!0),e(s);const t=w(s,(()=>{e(s)}));return()=>t.disconnect()}}),[s,n]),n};let Y=null;const K={baseColorScheme:"stackable_global_base_color_scheme",backgroundModeColorScheme:"stackable_global_background_mode_color_scheme",containerModeColorScheme:"stackable_global_container_mode_color_scheme"};(0,_.addFilter)("stackable.global-settings.inspector","stackable/global-color-schemes",(e=>{const[t,o]=(0,a.useState)(null),[n,i]=(0,a.useState)(!1),[s,c]=(0,a.useState)(!1),{COLOR_SCHEME_OPTIONS:u,baseColorScheme:m,backgroundModeColorScheme:p,containerModeColorScheme:g}=(0,E.useBlockColorSchemes)(),k=(e,t)=>{clearTimeout(Y),Y=setTimeout((()=>{new H.models.Settings({[K[e]]:t,stackable_global_color_scheme_generated_css:""}).save()}),300),(0,b.dispatch)("stackable/global-color-schemes").updateSettings({[e]:t})};return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,d.__)("Global Color Schemes",r.i18n),className:"ugb-global-color-schemes__panel",onToggle:e=>i(e)},n&&s&&(0,a.createElement)("span",{className:"stk-global-block-layouts-help-tooltip"},(0,a.createElement)(l.HelpTooltip,{title:(0,d.__)("Hover States",r.i18n),description:(0,d.__)("When editing color schemes in the hover states, select a block to view the applied colors.",r.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.",r.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",r.i18n))),(0,a.createElement)(j,{label:(0,d.__)("Color Schemes",r.i18n),itemInEdit:t,setItemInEdit:o,setDisplayHoverNotice:c}),!t&&r.showProNotice&&(0,a.createElement)(l.ProControlButton,{type:"color-schemes"}),!t&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Default Block Colors",r.i18n)},(0,a.createElement)(l.AdvancedSelectControl,{label:(0,d.__)("Base Color Scheme",r.i18n),value:m,options:u,default:"scheme-default-1",onChange:e=>k("baseColorScheme",e),help:(0,d.__)("Default color scheme to use for all blocks when no special options are enabled.",r.i18n)}),(0,a.createElement)(l.AdvancedSelectControl,{label:(0,d.__)("Background Mode Color Scheme",r.i18n),value:p,options:u,default:"scheme-default-2",onChange:e=>k("backgroundModeColorScheme",e),help:(0,d.__)("Colors applied when the background option is enabled for a block.",r.i18n)}),(0,a.createElement)(l.AdvancedSelectControl,{label:(0,d.__)("Container Mode Color Scheme",r.i18n),value:g,options:u,default:"scheme-default-1",onChange:e=>k("containerModeColorScheme",e),help:(0,d.__)("Colors applied when the container option is enabled for a block.",r.i18n)})))))}),2),(0,_.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)(l.AdvancedToggleControl,{label:(0,d.__)("Show Global Color Schemes",r.i18n),checked:!t,onChange:e=>(e=>{(0,b.dispatch)("stackable/global-color-schemes").updateSettings({hideColorSchemeColors:e}),new H.models.Settings({stackable_global_hide_color_scheme_colors:e}).save()})(!e),allowReset:!1}))}));const Q={isInitializing:!0,stackableColors:[],stackableGradients:[],hideThemeColors:!1,hideDefaultColors:!1,hideSiteEditorColors:!1},X={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]:Q,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_SETTINGS"===t.type?{...e,...t.payload}:e},actions:X,selectors:{getSettings:e=>e}})),(0,u.Z)((()=>{(0,n.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:l,stackable_global_gradients:n}=e,r=(0,A.head)(l)||[];(0,b.dispatch)("stackable/global-colors").updateSettings({hideThemeColors:t,hideDefaultColors:o,hideSiteEditorColors:a,stackableColors:r,stackableGradients:n||[],isInitializing:!1})}))}));var ee=o(8874);const te=function(e){var t,o,a=[],l=1;if("string"==typeof e)if(ee[e])a=ee[e].slice(),o="rgb";else if("transparent"===e)l=0,o="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var n=(s=e.slice(1)).length;l=1,n<=4?(a=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===n&&(l=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===n&&(l=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 r=t[1],i="rgb"===r,s=r.replace(/a$/,"");o=s,n="cmyk"===s?4:"gray"===s?1:3,a=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===n?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!==oe[e])return oe[e]}return parseFloat(e)})),r===s&&a.push(1),l=i||void 0===a[n]?1:a[n],a=a.slice(0,n)}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",l=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]),l=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(l/=100)):(o="rgb",a=[e>>>16,(65280&e)>>>8,255&e]);return{space:o,values:a,alpha:l}};var oe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300},ae=o(2409),le=o(5985);function ne(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var o=te(e);if(!o.space)return[];const a="h"===o.space[0]?le.min:ae.min,l="h"===o.space[0]?le.max:ae.max;return(t=Array(3))[0]=Math.min(Math.max(o.values[0],a[0]),l[0]),t[1]=Math.min(Math.max(o.values[1],a[1]),l[1]),t[2]=Math.min(Math.max(o.values[2],a[2]),l[2]),"h"===o.space[0]&&(t=le.rgb(t)),t.push(Math.min(Math.max(o.alpha,0),1)),t}const re=e=>{const t=ne(e.match(/^#/)?e:`#${e}`);return t.splice(3,1),t.join(", ")};let ie=null;const se=e=>{let{item:t,onChange:o}=e;return(0,a.createElement)("div",{className:"stk-color-palette-control__popover-content"},(0,a.createElement)(i.ColorPicker,{onChange:e=>o({...t,color:e}),color:t.color,enableAlpha:!0}))},ce=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)}})),n=e=>{clearTimeout(ie),ie=setTimeout((()=>{new H.models.Settings({stackable_global_colors:[e]}).save()}),300),(0,b.dispatch)("stackable/global-colors").updateSettings({stackableColors:e})};return(0,a.createElement)(l.SortablePicker,(0,k.Z)({ref:t,items:o,itemType:"color",onChangeItem:e=>{const t=(0,A.cloneDeep)(o);t[o.findIndex((t=>t.slug===e.slug))]={...e},n(t)},onDeleteItem:e=>{if(!window.confirm((0,d.__)("Any blocks that use this color will become unlinked with this global color. Delete this color?",r.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:l}=(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:l=!0}=o;let n=JSON.stringify(e);return l&&t.forEach((e=>{e.slug.match(/^stk-global-color/)&&(n=n.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));n=n.replace(new RegExp(`"${e}"`,"g"),o&&`"${o.color}"`||'"#000000"')})),JSON.parse(n)}(e.attributes,t);(0,A.isEqual)(a,e.attributes)||l(o,a)}else if(a.startsWith("core/")&&(a.includes("heading")||a.includes("paragraph"))){const a={style:{color:{},...e.attributes.style}},{backgroundColor:n,textColor:r}=e.attributes;if(n&&n.includes("stk-global-color-")){const e=n.match(/stk-global-color-(\S*)/);if(e&&Array.isArray(e)&&e.length>=2){const o=e[1];a.backgroundColor=void 0;const l=(0,A.find)(t,(e=>e.slug===`stk-global-color-${o}`));a.style.color.background=l&&l.color||"#000000"}}if(r&&r.includes("stk-global-color-")){const e=r.match(/stk-global-color-(\S*)/);if(e&&Array.isArray(e)&&e.length>=2){const o=e[1];a.textColor=void 0;const l=(0,A.find)(t,(e=>e.slug===`stk-global-color-${o}`));a.style.color.text=l&&l.color||"#000000"}}l(o,a)}})(o,e),o.innerBlocks&&o.innerBlocks.length&&t(o.innerBlocks)}))};t((0,b.select)("core/block-editor").getBlocks())})([o[t]]),n(a)},handleAddItem:()=>{const e=o&&Array.isArray(o)?o.length+1:1,a=Math.floor(Math.random()*(new Date).getTime())%1e5,l=`#${((1<<24)*Math.random()|0).toString(16)}`,i=[...(0,b.select)("stackable/global-colors").getSettings().stackableColors,{name:(0,d.sprintf)((0,d.__)("Custom Color %s",r.i18n),e),slug:`stk-global-color-${a}`,color:l,rgb:re(l)}];n(i),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:l}=e;const r=(0,A.cloneDeep)(o);r.splice(a,0,r.splice(t,1)[0]),n(r),l(!1)},ItemPreview:e=>{let{item:t}=e;return(0,a.createElement)(i.ColorIndicator,{className:"stk-color-indicator block-editor-panel-color-gradient-settings__color-indicator",colorValue:t.color})},ItemPicker:se},e))};ce.defaultProps={className:"",label:"",onReset:()=>{}};const de=ce;(0,_.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 ue=()=>{const{colors:e,isEditingTemplate:t}=(0,b.useSelect)((e=>{var t,o;return{colors:e("stackable/global-colors").getSettings().stackableColors||[],isEditingTemplate:"wp_template"===(null===(t=e("core/editor"))||void 0===t||null===(o=t.getCurrentPostType)||void 0===o?void 0:o.call(t))||!1}})),[o,l]=(0,a.useState)("");return(0,a.useEffect)((()=>{e&&Array.isArray(e)&&((e,t,o)=>{let a="";const l=e.map((e=>`--${e.slug||""}: ${e.color||""};`));a+=`:root { ${(0,A.compact)(l).join("")}}`;const n=e.map((e=>{var o;const a=t&&(null===(o=document.querySelector('iframe[name="editor-canvas"]'))||void 0===o?void 0:o.contentWindow)||window,l=t?a.document:window.document,n=ne(a.getComputedStyle(l.documentElement).getPropertyValue(`--${e.slug}`).trim());return Array.isArray(n)&&0!==n.length?(n.splice(3,1),`--${e.slug||""}-rgba: ${n.join(", ")};`):null}));a+=`:root { ${(0,A.compact)(n).join(" ")}}`,o((0,_.applyFilters)("stackable.editor-render-global-styles.css",a,e,t))})(e,t,l)}),[JSON.stringify(e)]),o};(0,_.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,l=t.match(e)[0].trim().slice(0,-1);if(l&&"#"===l[0]){const e=ne(l);if(e)return e.splice(3,1),`rgba(var(--stk-global-color-${a[1]}-rgba, ${e.join(", ")}), ${null!==o?o:1})`}}return e})),(0,_.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,_.addFilter)("stackable.global-settings.inspector","stackable/global-colors",(e=>{const{stackableColors:t,hideThemeColors:o,hideDefaultColors:n,hideSiteEditorColors:i}=(0,b.useSelect)((e=>e("stackable/global-colors").getSettings())),s=(0,_.applyFilters)("stackable.global-settings.inspector.global-colors.toggle-controls",a.Fragment);return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,d.__)("Global Color Palette",r.i18n),showModifiedIndicator:!(null==t||!t.length)},(0,a.createElement)("p",{className:"components-base-control__help"},(0,d.__)("Change your color palette for all your blocks across your site.",r.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",rel:"noopener noreferrer"},(0,d.__)("Learn more about Global Colors",r.i18n))),(0,a.createElement)(de,{label:(0,d.__)("Global Colors",r.i18n)}),s,(0,a.createElement)(l.AdvancedToggleControl,{label:(0,d.__)("Show Theme Colors",r.i18n),checked:!o,onChange:e=>(e=>{(0,b.dispatch)("stackable/global-colors").updateSettings({hideThemeColors:e}),new H.models.Settings({stackable_global_hide_theme_colors:e}).save()})(!e),allowReset:!1}),(0,a.createElement)(l.AdvancedToggleControl,{label:(0,d.__)("Show Default Colors",r.i18n),checked:!n,onChange:e=>(e=>{(0,b.dispatch)("stackable/global-colors").updateSettings({hideDefaultColors:e}),new H.models.Settings({stackable_global_hide_default_colors:e}).save()})(!e),allowReset:!1}),(0,a.createElement)(l.AdvancedToggleControl,{label:(0,d.__)("Show Site Editor Custom Colors",r.i18n),checked:!i,onChange:e=>(e=>{(0,b.dispatch)("stackable/global-colors").updateSettings({hideSiteEditorColors:e}),new H.models.Settings({stackable_global_hide_site_editor_colors:e}).save()})(!e),allowReset:!1})))}),4),(0,_.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 be=o(4863),me=o.n(be);let pe=null;const ge=()=>{const{allCustomPresets:e}=(0,b.useSelect)((e=>{var t,o;return{allCustomPresets:{...null!==(t=null===(o=e("stackable/global-preset-controls.custom"))||void 0===o?void 0:o.getCustomPresetControls())&&void 0!==t?t:{}}}}),[]),[t,o]=(0,a.useState)([]),[l,r]=(0,a.useState)(""),[i,s]=(0,a.useState)(!1),[c,d]=(0,a.useState)(""),[u,m]=(0,a.useState)(null),{device:p}=(0,b.useSelect)((e=>{var t,o,a,l,n,r;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===(l=a.__experimentalGetPreviewDeviceType)||void 0===l?void 0:l.call(a))||(null===(n=e("core/edit-post"))||void 0===n||null===(r=n.__experimentalGetPreviewDeviceType)||void 0===r?void 0:r.call(n))||"Desktop"}}),[]),g=(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,n.fetchSettings)().then((e=>{o((0,A.head)(e.stackable_global_typography)||{}),r(e.stackable_global_typography_apply_to||"blocks-stackable-native"),s(e.stackable_is_apply_body_to_html||!1)})),(0,_.addAction)("stackable.global-settings.typography.update-trigger","stackable/typography-styles",((t,a,l,i,c)=>{((t,o,a)=>{if(t){var l,r,i,s,c,d;const t=a.filter((e=>{let{presetSlug:t}=e;return!!t})).map((e=>{var t,a,l;let{selector:r,presetName:i,presetSlug:s}=e;const c=null===(t=o[r])||void 0===t?void 0:t.fontSize,d=c?null===(a=o[r])||void 0===a?void 0:a.fontSizeUnit:"px";return{name:i,slug:s,size:`${null!==(l=null!=c?c:(0,n.getDefaultFontSize)(r))&&void 0!==l?l:16}${null!=d?d:"px"}`}}));let u=null!==(l=null!==(r=null===(i=o[".stk-subtitle"])||void 0===i?void 0:i.fontSize)&&void 0!==r?r:(0,n.getDefaultFontSize)(".stk-subtitle"))&&void 0!==l?l:16,m=null!==(s=null===(c=o[".stk-subtitle"])||void 0===c?void 0:c.fontSizeUnit)&&void 0!==s?s:"px";"px"===m?(u=Math.pow(u/16,2),m="rem"):u=Math.pow(u,2),t.push({name:"XS",slug:"x-small",size:`${u}${null!==(d=m)&&void 0!==d?d:"px"}`}),t.reverse();const p={...e,fontSizes:t};clearTimeout(pe),pe=setTimeout((()=>{new H.models.Settings({stackable_global_custom_preset_controls:p}).save()}),300),(0,b.dispatch)("stackable/global-preset-controls.custom").updateCustomPresetControls(p)}})(l,t,c),o(t),r(a),s(i)})),()=>{(0,_.removeAction)("stackable.global-settings.typography.update-trigger","stackable/typography-styles")})),[]),(0,a.useEffect)((()=>((0,_.addAction)("stackable.global-settings.typography-update-global-styles","stackable/typography-styles",(e=>{const t=Object.keys(e).map((t=>{const o=ke(t,l,i);return me().all(o.map((o=>{const a=e[t];a.fontFamily&&(0,n.loadGoogleFont)(a.fontFamily);let l=o.includes("stackable/");l=(0,_.applyFilters)("stackable.global-settings.typography.selector-is-stackable",l,o);const r={[o]:(0,n.createTypographyStyles)("%s","desktop",a,{important:l}),tablet:{[o]:(0,n.createTypographyStyles)("%s","tablet",a,{important:l})},mobile:{[o]:(0,n.createTypographyStyles)("%s","mobile",a,{important:l})}};return!p||"Tablet"!==p&&"Mobile"!==p||(r[o]={...r[o],...(0,n.createTypographyStyles)("%s",p.toLowerCase(),a,{important:l})}),(0,_.applyFilters)("stackable.global-settings.typography.editor-styles",r,t,o,a,l)})))}));d((0,I.generateStyles)(me().all(t)).join(""))})),clearTimeout(u),m(setTimeout((()=>(0,_.doAction)("stackable.global-settings.typography-update-global-styles",t)),200)),()=>(0,_.removeAction)("stackable.global-settings.typography-update-global-styles","stackable/typography-styles"))),[JSON.stringify(t),l,i,p,g]),c},ke=(e,t,o)=>["h1","h2","h3","h4","h5","h6"].includes(e)||e.startsWith(".")?he(e,t):ve(t,o),he=(e,t)=>{const o=[],a=e.startsWith(".");return o.push(`:is([data-type^="stackable/"], .stk-block) ${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,_.applyFilters)("stackable.global-settings.typography-selectors",o,e)},ve=(e,t)=>{const o=[...he("p",e),...he("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"];return t&&o.push("html"),(0,_.applyFilters)("stackable.global-settings.typography-selectors",o,"")};(0,_.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 Ce=o(4184),ye=o.n(Ce);const fe=e=>{var t;const{value:o,help:i}=e,s=(t,o)=>{const a={[t]:o};e.onChange(a)},c=(0,a.createElement)(Se,{selector:e.selector,styles:o,help:i},e.label),u=ye()(["ugb-global-settings-typography-control"],{"ugb-global-settings-typography-control--with-description":(0,n.createTypographyDescription)(o)}),m=(0,b.useSelect)((e=>{var t,o;return null!==(t=null===(o=e("stackable/global-preset-controls.custom"))||void 0===o?void 0:o.getUseTypographyAsPresets())&&void 0!==t&&t})),p=(null===(t=(0,E.usePresetControls)("fontSizes"))||void 0===t?void 0:t.getPresetMarks({customOnly:m}))||null;return(0,a.createElement)(l.TypographyControl,{fontSizeProps:{units:["px","em","rem"],min:[0,0,0],sliderMax:[150,7,7],step:[1,.05,.05],marks:p},lineHeightUnits:["px","em","rem"],className:u,label:c,popoverLabel:null,onChangeStyle:!1,showSecondFontSize:!1,allowReset:!0,fontFamily:o.fontFamily,defaultFontFamily:null==e?void 0:e.defaultFontFamily,fontSize:o.fontSize,htmlTag:e.selector,tabletFontSize:o.tabletFontSize,mobileFontSize:o.mobileFontSize,fontSizeUnit:o.fontSizeUnit,tabletFontSizeUnit:o.tabletFontSizeUnit,mobileFontSizeUnit:o.mobileFontSizeUnit,fontWeight:o.fontWeight,textTransform:o.textTransform,lineHeight:o.lineHeight,tabletLineHeight:o.tabletLineHeight,mobileLineHeight:o.mobileLineHeight,lineHeightUnit:o.lineHeightUnit,tabletLineHeightUnit:o.tabletLineHeightUnit,mobileLineHeightUnit:o.mobileLineHeightUnit,letterSpacing:o.letterSpacing,tabletLetterSpacing:o.tabletLetterSpacing,mobileLetterSpacing:o.mobileLetterSpacing,onChangeFontFamily:e=>s("fontFamily",e),onChangeFontSize:e=>s("fontSize",e),onChangeTabletFontSize:e=>s("tabletFontSize",e),onChangeMobileFontSize:e=>s("mobileFontSize",e),onChangeFontSizeUnit:e=>s("fontSizeUnit",e),onChangeTabletFontSizeUnit:e=>s("tabletFontSizeUnit",e),onChangeMobileFontSizeUnit:e=>s("mobileFontSizeUnit",e),onChangeFontWeight:e=>s("fontWeight",e),onChangeTextTransform:e=>s("textTransform",e),onChangeLineHeight:e=>s("lineHeight",e),onChangeTabletLineHeight:e=>s("tabletLineHeight",e),onChangeMobileLineHeight:e=>s("mobileLineHeight",e),onChangeLineHeightUnit:e=>s("lineHeightUnit",e),onChangeTabletLineHeightUnit:e=>s("tabletLineHeightUnit",e),onChangeMobileLineHeightUnit:e=>s("mobileLineHeightUnit",e),onChangeLetterSpacing:e=>s("letterSpacing",e),onChangeTabletLetterSpacing:e=>s("tabletLetterSpacing",e),onChangeMobileLetterSpacing:e=>s("mobileLetterSpacing",e),onReset:()=>e.onReset(e.selector),resetPopoverTitle:(0,d.sprintf)((0,d.__)("Reset %s Global Typography Style",r.i18n),"p"===e.selector?(0,d.__)("Body Text",r.i18n):e.selector.toUpperCase()),resetPopoverDescription:(0,d.__)("Resetting this typography style will revert all typography to its original style. Proceed?",r.i18n),isAllowReset:null==e?void 0:e.isAllowReset})};fe.defaultProps={selector:"h1",label:(0,d.sprintf)((0,d.__)("Heading %d",r.i18n),1),onChange:()=>{},onReset:()=>{},value:{},letterSpacing:""};const Be=fe,Se=e=>{var t,o;const r=null===(t=e.selector)||void 0===t?void 0:t.startsWith("."),s=r?"p":e.selector,c=ye()(["ugb-global-typography-preview__label"],{[null===(o=e.selector)||void 0===o?void 0:o.substring(1)]:r}),{device:d}=(0,b.useSelect)((e=>{var t,o,a,l,n,r,i,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===(l=e("core/edit-site"))||void 0===l||null===(n=l.__experimentalGetPreviewDeviceType)||void 0===n||null===(r=n.call(l))||void 0===r?void 0:r.toLowerCase())||(null===(i=e("core/edit-post"))||void 0===i||null===(s=i.__experimentalGetPreviewDeviceType)||void 0===s||null===(c=s.call(i))||void 0===c?void 0:c.toLowerCase())||"desktop"}}),[]),u=(0,n.createTypographyDescription)(e.styles,d),m=(0,A.omit)(e.styles,["lineHeight","tabletLineHeight","mobileLineHeight"]),p={[`.ugb-global-typography-preview__label[data-selector="${e.selector}"]`]:(0,n.createTypographyStyles)("%s","desktop",m,{important:!0}),[`.ugb-global-typography-preview__label[data-selector="${e.selector}"]:not([data-device="desktop"])`]:(0,n.createTypographyStyles)("%s","tablet",m,{important:!0}),[`.ugb-global-typography-preview__label[data-selector="${e.selector}"][data-device="mobile"]`]:(0,n.createTypographyStyles)("%s","mobile",m,{important:!0})};return e.styles.fontFamily&&(0,n.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,I.generateStyles)(p).join("")),(0,a.createElement)(s,{className:c,"data-selector":e.selector,"data-device":d},e.children))),e.help&&(0,a.createElement)(l.Tooltip,{placement:"bottom",text:e.help},(0,a.createElement)(i.Dashicon,{icon:"editor-help"}))),u&&(0,a.createElement)("p",{className:"ugb-global-typography-preview__description"},u))},we=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"}}}]'),_e=(e,t)=>{var o;const a=Ae("fontSize",t),l=Ae("fontSizeUnit",t),n=Object.keys(e);let r=null==e||null===(o=e.h6)||void 0===o?void 0:o[a];if(r=r&&parseFloat(r).toString(),r){var i;const o=null!==(i=Ee(r,t))&&void 0!==i?i:{};for(const t of n){var s,c,d,u;if((null===(s=e[t])||void 0===s?void 0:s[a])!==(null===(c=o[t])||void 0===c?void 0:c[a])||(null===(d=e[t])||void 0===d?void 0:d[l])!==(null===(u=o[t])||void 0===u?void 0:u[l])){r="custom";break}}}else{r="none";for(const t of n){var b;if(null!==(b=e[t])&&void 0!==b&&b[a]){r="custom";break}}}return r},Ae=(e,t)=>(t=t.toLowerCase())&&"desktop"!==t?`${t}${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,Ee=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const o=Number(e);if(Number.isNaN(o))return;const a={h1:6,h2:5,h3:4,h4:3,h5:2,h6:1,p:0,".stk-subtitle":-1,".stk-button__inner-text":0},l={};return Object.entries(a).forEach((e=>{let a,[n,r]=e;a=r>0?String(Math.pow(o,r).toFixed(3)):0===r?"1":String((1/o).toFixed(3));const i=Ae("fontSize",t),s=Ae("fontSizeUnit",t);l[n]={[i]:a,[s]:"rem"}})),l},Te=e=>e?Object.fromEntries(Object.entries(e).filter((e=>{let[,t]=e;return""!==t}))):{},xe={typographySettings:{}};(0,b.register)((0,b.createReduxStore)("stackable/global-typography",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xe,t=arguments.length>1?arguments[1]:void 0;return"UPDATE_TYPOGRAPHY"===t.type?{...e,typographySettings:t.typographySettings}:e},actions:{updateSettings:e=>({type:"UPDATE_TYPOGRAPHY",typographySettings:e})},selectors:{getSettings:e=>e.typographySettings}}));const Ie=[{label:(0,d.sprintf)((0,d.__)("Heading %d",r.i18n),1),selector:"h1",presetName:"5XL",presetSlug:"xxxxx-large"},{label:(0,d.sprintf)((0,d.__)("Heading %d",r.i18n),2),selector:"h2",presetName:"4XL",presetSlug:"xxxx-large"},{label:(0,d.sprintf)((0,d.__)("Heading %d",r.i18n),3),selector:"h3",presetName:"3XL",presetSlug:"xxx-large"},{label:(0,d.sprintf)((0,d.__)("Heading %d",r.i18n),4),selector:"h4",presetName:"2XL",presetSlug:"xx-large"},{label:(0,d.sprintf)((0,d.__)("Heading %d",r.i18n),5),selector:"h5",presetName:"XL",presetSlug:"x-large"},{label:(0,d.sprintf)((0,d.__)("Heading %d",r.i18n),6),selector:"h6",presetName:"L",presetSlug:"large"},{label:(0,d.__)("Body Text",r.i18n),selector:"p",presetName:"M",presetSlug:"medium"},{label:(0,d.__)("Subtitle",r.i18n),selector:".stk-subtitle",presetName:"S",presetSlug:"small",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",r.i18n),"stk-subtitle","p"))},{label:(0,d.__)("Button",r.i18n),selector:".stk-button__inner-text"}],He=[{label:(0,d.__)("None",r.i18n),value:"none"},{label:(0,d.__)("Custom",r.i18n),value:"custom",disabled:!0},{label:(0,d.sprintf)((0,d.__)("%s - %s",r.i18n),"1.067",(0,d.__)("Minor Second",r.i18n)),value:"1.067"},{label:(0,d.sprintf)((0,d.__)("%s - %s",r.i18n),"1.125",(0,d.__)("Major Second",r.i18n)),value:"1.125"},{label:(0,d.sprintf)((0,d.__)("%s - %s",r.i18n),"1.2",(0,d.__)("Minor Third",r.i18n)),value:"1.2"},{label:(0,d.sprintf)((0,d.__)("%s - %s",r.i18n),"1.25",(0,d.__)("Major Third",r.i18n)),value:"1.25"},{label:(0,d.sprintf)((0,d.__)("%s - %s",r.i18n),"1.333",(0,d.__)("Perfect Fourth",r.i18n)),value:"1.333"},{label:(0,d.sprintf)((0,d.__)("%s - %s",r.i18n),"1.414",(0,d.__)("Augmented Fourth",r.i18n)),value:"1.414"},{label:(0,d.sprintf)((0,d.__)("%s - %s",r.i18n),"1.5",(0,d.__)("Perfect Fifth",r.i18n)),value:"1.5"},{label:(0,d.sprintf)((0,d.__)("%s - %s",r.i18n),"1.618",(0,d.__)("Golden Ratio",r.i18n)),value:"1.618"}];let ze=null,Me=null,Oe=null;(0,_.addFilter)("stackable.global-settings.inspector","stackable/global-typography",(e=>{var t;const{useTypographyAsPresets:o}=(0,b.useSelect)((e=>{var t,o;return{useTypographyAsPresets:null!==(t=null===(o=e("stackable/global-preset-controls.custom"))||void 0===o?void 0:o.getUseTypographyAsPresets())&&void 0!==t&&t}}),[]),i=(null===(t=(0,E.useDeviceType)())||void 0===t?void 0:t.toLowerCase())||"desktop",s=(0,_.applyFilters)("stackable.global-settings.typography.font-pairs.premium-font-pairs",we),[c,u]=(0,a.useState)(!1),[m,p]=(0,a.useState)([]),[g,k]=(0,a.useState)(""),[h,v]=(0,a.useState)([]),[C,y]=(0,a.useState)(""),[f,B]=(0,a.useState)(!1),[S,w]=(0,a.useState)({desktop:"none",tablet:"none",mobile:"none"}),[T,x]=(0,a.useState)(!1),I=(0,a.useRef)(null);(0,a.useEffect)((()=>{(0,n.fetchSettings)().then((e=>{const t=(0,A.head)(e.stackable_global_typography)||{};p(t),k(e.stackable_global_typography_apply_to||"blocks-stackable-native"),v(e.stackable_custom_font_pairs||[]),y(e.stackable_selected_font_pair||"theme-heading-default/theme-body-default"),x(e.stackable_is_apply_body_to_html||!1);const o=_e(t,"desktop"),a=_e(t,"tablet"),l=_e(t,"mobile");w({desktop:o,tablet:a,mobile:l}),(0,b.dispatch)("stackable/global-typography").updateSettings(t)}))}),[]),(0,a.useEffect)((()=>{const e=_e(m,i);w((t=>({...t,[i]:e})))}),[i,m]),(0,a.useEffect)((()=>{(0,_.doAction)("stackable.global-settings.typography.update-trigger",m,g,o,T,Ie)}),[JSON.stringify(m),g,o,T]),(0,a.useEffect)((()=>{const e=null==I?void 0:I.current;if(e&&c){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}}}),[c]);const z=()=>[...s,...h].find((e=>e.name===C)),M=e=>{p(e),clearTimeout(ze),ze=setTimeout((()=>{new H.models.Settings({stackable_global_typography:[e]}).save()}),500),(0,b.dispatch)("stackable/global-typography").updateSettings(e)},O=e=>{y(e),clearTimeout(Me),Me=setTimeout((()=>{new H.models.Settings({stackable_selected_font_pair:e}).save()}),500)},N=e=>{v(e),clearTimeout(Oe),Oe=setTimeout((()=>{new H.models.Settings({stackable_custom_font_pairs:[...e]}).save()}),500)},D=e=>{p((t=>{const o=(0,A.cloneDeep)(e),a={...t};return Object.entries(o).forEach((e=>{let[t,o]=e;if(!t||"object"!=typeof o)return;0!==Object.keys(o).length&&(o={...a[t],...o});const l=Te(o)||{};a[t]=l})),Object.values(o).some((e=>e&&!e.fontSize))&&(0,_.doAction)("stackable.global-settings.typography-update-global-styles",a),M(a),a}))},R=e=>{const t=z();var o,a;if(!f&&t)return null!==(o=null===(a=t.typography[e])||void 0===a?void 0:a.fontFamily)&&void 0!==o?o:""},L=e=>{const t=z(),o=Te(m[e])||{};if(!f&&t){var a;const l=Te(null===(a=t.typography)||void 0===a?void 0:a[e])||{};return!(0,A.isEqual)(l,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))},U=()=>{if(h.find((e=>e.name===C)))return!0;const e=z();return!Ie.some((t=>{var o;let{selector:a}=t;if(f||!e)return!1;const l=Te(null===(o=e.typography)||void 0===o?void 0:o[a])||{},n=Te(m[a])||{};return!(Array.isArray(n)||!l.fontFamily||l.fontFamily===n.fontFamily)}))||window.confirm((0,d.__)("Picking a new font pair will overwrite the existing typography settings. Are you sure?",r.i18n))},P=(0,_.applyFilters)("stackable.global-settings.typography.font-pairs.customPicker",a.Fragment),V=(0,_.applyFilters)("stackable.global-settings.typography.font-pairs.editingFontPairPanel",a.Fragment);return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,d.__)("Global Typography",r.i18n),className:"ugb-global-typography__panel",onToggle:()=>{u((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})()," "),!f&&(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.",r.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",r.i18n))),(0,a.createElement)(l.AdvancedSelectControl,{label:(0,d.__)("Apply Typography Styles to",r.i18n),options:[{value:"blocks-stackable-native",label:(0,d.__)("Stackable and native blocks only",r.i18n)},{value:"blocks-stackable",label:(0,d.__)("Stackable blocks only",r.i18n)},{value:"blocks-all",label:(0,d.__)("Stackable and all other blocks",r.i18n)}],value:g,onChange:e=>{k(e),new H.models.Settings({stackable_global_typography_apply_to:e}).save()},default:"blocks-stackable-native"}),(0,a.createElement)(l.ControlSeparator,null),(0,a.createElement)("div",{className:"ugb-global-settings-font-pair__heading"},(0,a.createElement)("h3",null,(0,d.__)("Preset Font Pairs",r.i18n)),r.isPro&&(0,_.applyFilters)("stackable.global-settings.typography.font-pairs.addFontPair",[...s,...h],C,(e=>{B(!0),O(e.name),N([e,...h])}))),(0,a.createElement)("div",{className:"ugb-global-settings-font-pair__container",ref:I},(0,a.createElement)(l.FontPairPicker,{key:s[0].name,fontPair:s[0],isSelected:C===s[0].name,onClick:()=>{U()&&(O(s[0].name),D(s[0].typography))}}),(0,a.createElement)(P,{customFontPairs:h,selected:C,onClick:(e,t)=>{U()&&(O(e),D(t))},onEdit:(e,t)=>{B(!0),O(e),D(t)}}),s.slice(1).map((e=>(0,a.createElement)(l.FontPairPicker,{key:e.name,fontPair:e,isSelected:C===e.name,onClick:()=>{U()&&(O(e.name),D(e.typography))}})))),r.showProNotice&&(0,a.createElement)(l.ProControlButton,{type:"font-pairs"}),(0,a.createElement)(l.ControlSeparator,null),(0,a.createElement)("h3",null,(0,d.__)("Typography Settings",r.i18n)),(0,a.createElement)(l.AdvancedSelectControl,{label:(0,d.__)("Type Scale",r.i18n),options:He,value:S[i],onChange:e=>{if("none"===e){const e=Ie.map((e=>e.selector)),t=Ae("fontSize",i),o=Ae("fontSizeUnit",i),a=e.reduce(((e,a)=>(e[a]={[t]:"",[o]:""},e)),{});return void D(a)}const t=Ee(e,i);D(t)},responsive:"all",default:"none",hasTabletValue:"none"!==S.tablet,hasMobileValue:"none"!==S.mobile}),Ie.map(((e,t)=>{let{label:o,selector:l,help:n}=e;return(0,a.createElement)(Be,{help:n,key:t,label:o,selector:l,value:m[l]||{},defaultFontFamily:R(l),isAllowReset:L(l),onChange:e=>{D({[l]:e})},onReset:()=>{(e=>{let t={};const o=z();!f&&o&&(t={...m,[e]:o.typography[e]}),(0,_.doAction)("stackable.global-settings.typography-update-global-styles",t),M(t)})(l)}})}))),r.isPro&&f&&(0,a.createElement)(V,{TypographyPicker:Be,TYPOGRAPHY_TAGS:Ie,typographySettings:m,customFontPairs:h,selectedFontPairName:C,changeStyles:D,updateTypography:M,updateCustomFontPairs:N,setIsEditingFontPair:B,onDelete:e=>{B(!1),O(""),N(e)},getIsAllowReset:L}),(0,a.createElement)(l.AdvancedToggleControl,{label:(0,d.__)("Apply Body to HTML Tag",r.i18n),help:(0,d.__)("Adds the body text settings to the main HTML tag.",r.i18n),defaultValue:!1,checked:T,onChange:e=>{x(e),new H.models.Settings({stackable_is_apply_body_to_html:e}).save()}})))}),6);const Ne={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]:Ne,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}})),(0,u.Z)((()=>{(0,n.fetchSettings)().then((e=>{const{stackable_global_spacing_and_borders:t}=e,o=t||[];(0,b.dispatch)("stackable/global-spacing-and-borders").updateBlockLayouts(o)}))})),(0,_.addFilter)("stackable.global-settings.inspector","stackable/global-spacing-and-borders",(e=>{var t,o,n,i,s,c,u,b,m,p,g,k,B,S,w,_,T,x,H,M,O,N,D,R,L,U,P,V,F,G,W;const[q,$]=(0,a.useState)(!1),[j,Z]=(0,a.useState)(!1),[J,Y,K,Q,X,ee,te,oe]=z("stackable/global-spacing-and-borders","stackable_global_spacing_and_borders",Z,null),ae=(null===(t=(0,E.usePresetControls)("spacingSizes"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null,le=(null===(o=(0,E.usePresetControls)("spacingSizes"))||void 0===o?void 0:o.getPresetMarks({addNonePreset:!0}))||null,ne=(null===(n=(0,E.usePresetControls)("borderRadius"))||void 0===n?void 0:n.getPresetMarks({addNonePreset:!0}))||null;return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,d.__)("Global Spacing & Borders",r.i18n),onToggle:e=>$(e)},q&&j&&(0,a.createElement)("span",{className:"stk-global-block-layouts-help-tooltip"},(0,a.createElement)(l.HelpTooltip,{title:(0,d.__)("Hover States",r.i18n),description:(0,d.__)("When editing block layouts in the hover states, select a block to view the applied styles.",r.i18n),closeOnEscape:!1,showTooltipCheckbox:!1,onClose:()=>{Z(!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.",r.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",r.i18n))),(0,a.createElement)(l.Button,{className:"stk-reset-all-block-layout-settings",variant:"secondary",isSmall:!0,disabled:(0,A.isEmpty)(J),onClick:()=>{window.confirm((0,d.sprintf)((0,d.__)("Are you sure you want to reset all %s styles to their default values?",r.i18n),(0,d.__)("Global Spacing & Borders",r.i18n)))&&X({})},text:(0,d.__)("Reset All",r.i18n)}),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Margins",r.i18n),description:(0,d.__)("These styles are applied to all our Blocks.",r.i18n)},(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Block Margin Bottom",r.i18n),responsive:"all",sliderMin:[0,0],sliderMax:[200,100],placeholder:"24",units:["px","%"],unit:Y("block-margin-bottom",y)||"px",onChangeUnit:e=>ee("block-margin-bottom",e,y),value:Y("block-margin-bottom",C),onChange:e=>ee("block-margin-bottom",e,C),hasTabletValue:te("block-margin-bottom","tablet"),hasMobileValue:te("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.",r.i18n)},marks:ae})),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Columns",r.i18n),description:(0,d.__)("These styles are applied to Inner Column blocks.",r.i18n)},(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)(" Inner Column Spacing",r.i18n),responsive:"all",min:[0,0],sliderMax:[200,30],placeholder:"12",units:["px","em","vw"],unit:Y("column-margin",y)||"px",onChangeUnit:e=>ee("column-margin",e,y),value:Y("column-margin",C),onChange:e=>ee("column-margin",e,C),hasTabletValue:te("column-margin","tablet"),hasMobileValue:te("column-margin","mobile"),helpTooltip:{description:(0,d.__)("Sets column paddings, the space inside the block between the block elements and the column container border",r.i18n)}}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Column Gap",r.i18n),responsive:"all",min:0,sliderMax:100,placeholder:"0",value:Y("columns-column-gap",C),onChange:e=>ee("columns-column-gap",e,C),hasTabletValue:te("columns-column-gap","tablet"),hasMobileValue:te("columns-column-gap","mobile"),helpTooltip:{video:"column-gap",description:(0,d.__)("Sets the distance between two or more columns",r.i18n)},marks:ae}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Row Gap",r.i18n),responsive:"all",min:0,sliderMax:100,placeholder:"0",value:Y("columns-row-gap",C),onChange:e=>ee("columns-row-gap",e,C),hasTabletValue:te("columns-row-gap","tablet"),hasMobileValue:te("columns-row-gap","mobile"),helpTooltip:{description:(0,d.__)("Sets the distance between two or more columns",r.i18n)},marks:le})),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Background",r.i18n),description:(0,d.__)('These styles are applied to blocks that have the "Background" option enabled in the Style Tab.',r.i18n)},(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Padding",r.i18n),placeholder:"24",responsive:"all",forceUpdateHoverState:!0,min:[0,0,0,0],sliderMax:[200,30,30,100],units:["px","em","rem","%"],unit:Y("block-background-padding",v)||"px",onChangeUnit:e=>ee("block-background-padding",e,v),top:null===(i=Y("block-background-padding",h))||void 0===i?void 0:i.top,right:null===(s=Y("block-background-padding",h))||void 0===s?void 0:s.right,bottom:null===(c=Y("block-background-padding",h))||void 0===c?void 0:c.bottom,left:null===(u=Y("block-background-padding",h))||void 0===u?void 0:u.left,onChange:e=>ee("block-background-padding",e,h),hasHoverStateValue:oe("block-background-padding",!0),hasTabletValue:te("block-background-padding","tablet"),hasMobileValue:te("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",r.i18n)},marks:ae}),(0,a.createElement)(l.AdvancedToolbarControl,{label:(0,d.__)("Borders",r.i18n),controls:I.BORDER_CONTROLS,className:"ugb-border-controls__border-type-toolbar",isSmall:!0,value:Y("block-background-border-style"),onChange:e=>ee("block-background-border-style",e)}),(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Border Width",r.i18n),responsive:"all",hover:"all",min:0,max:99,step:1,placeholder:"1",sliderMax:5,defaultLocked:!0,forceUpdateHoverState:!0,top:null===(b=Y("block-background-border-width",h))||void 0===b?void 0:b.top,right:null===(m=Y("block-background-border-width",h))||void 0===m?void 0:m.right,bottom:null===(p=Y("block-background-border-width",h))||void 0===p?void 0:p.bottom,left:null===(g=Y("block-background-border-width",h))||void 0===g?void 0:g.left,onChange:e=>ee("block-background-border-width",e,h),hasHoverStateValue:oe("block-background-border-width",!0),hasTabletValue:te("block-background-border-width","tablet"),hasMobileValue:te("block-background-border-width","mobile")}),(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Border Radius",r.i18n),min:0,isCorner:!0,sliderMax:50,responsive:"all",placeholder:"0",onChange:e=>ee("block-background-border-radius",e,C),top:null===(k=Y("block-background-border-radius",C))||void 0===k?void 0:k.top,right:null===(B=Y("block-background-border-radius",C))||void 0===B?void 0:B.right,bottom:null===(S=Y("block-background-border-radius",C))||void 0===S?void 0:S.bottom,left:null===(w=Y("block-background-border-radius",C))||void 0===w?void 0:w.left,hasTabletValue:te("block-background-border-radius","tablet"),hasMobileValue:te("block-background-border-radius","mobile"),helpTooltip:{video:"general-border-radius",description:(0,d.__)("Adjusts the radius of block corners to make them more rounded",r.i18n)},marks:ne}),(0,a.createElement)(l.ShadowControl,{label:(0,d.__)("Shadow / Outline",r.i18n),hover:"all",forceUpdateHoverState:!0,value:K(Y("block-background-box-shadow",f)||""),onChange:e=>ee("block-background-box-shadow",Q(e),f),shadowFilterValue:Y("block-background-box-shadow",f)||"",shadowFilterOnChange:e=>ee("block-background-box-shadow",e,f),hasHoverStateValue:oe("block-background-box-shadow")})),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Containers",r.i18n),description:(0,d.__)('These styles are applied to blocks that have the "Container" option enabled in the Layout Tab.',r.i18n)},(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Padding",r.i18n),responsive:"all",forceUpdateHoverState:!0,min:[0,0,0,0],sliderMax:[200,30,30,100],units:["px","em","rem","%"],unit:Y("container-padding",v)||"px",onChangeUnit:e=>ee("container-padding",e,v),top:null===(_=Y("container-padding",h))||void 0===_?void 0:_.top,right:null===(T=Y("container-padding",h))||void 0===T?void 0:T.right,bottom:null===(x=Y("container-padding",h))||void 0===x?void 0:x.bottom,left:null===(H=Y("container-padding",h))||void 0===H?void 0:H.left,onChange:e=>ee("container-padding",e,h),hasHoverStateValue:oe("container-padding",!0),hasTabletValue:te("container-padding","tablet"),hasMobileValue:te("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",r.i18n)},marks:ae}),(0,a.createElement)(l.AdvancedToolbarControl,{label:(0,d.__)("Borders",r.i18n),controls:I.BORDER_CONTROLS,className:"ugb-border-controls__border-type-toolbar",isSmall:!0,value:Y("container-border-style"),onChange:e=>ee("container-border-style",e)}),(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Border Width",r.i18n),responsive:"all",hover:"all",forceUpdateHoverState:!0,min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,placeholder:"1",top:null===(M=Y("container-border-width",h))||void 0===M?void 0:M.top,right:null===(O=Y("container-border-width",h))||void 0===O?void 0:O.right,bottom:null===(N=Y("container-border-width",h))||void 0===N?void 0:N.bottom,left:null===(D=Y("container-border-width",h))||void 0===D?void 0:D.left,onChange:e=>ee("container-border-width",e,h),hasHoverStateValue:oe("container-border-width",!0),hasTabletValue:te("container-border-width","tablet"),hasMobileValue:te("container-border-width","mobile")}),(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Border Radius",r.i18n),min:0,isCorner:!0,sliderMax:50,responsive:"all",placeholder:"0",onChange:e=>ee("container-border-radius",e,C),top:null===(R=Y("container-border-radius",C))||void 0===R?void 0:R.top,right:null===(L=Y("container-border-radius",C))||void 0===L?void 0:L.right,bottom:null===(U=Y("container-border-radius",C))||void 0===U?void 0:U.bottom,left:null===(P=Y("container-border-radius",C))||void 0===P?void 0:P.left,hasTabletValue:te("container-border-radius","tablet"),hasMobileValue:te("container-border-radius","mobile"),helpTooltip:{video:"general-border-radius",description:(0,d.__)("Adjusts the radius of block corners to make them more rounded",r.i18n)},marks:ne}),(0,a.createElement)(l.ShadowControl,{label:(0,d.__)("Shadow / Outline",r.i18n),hover:"all",forceUpdateHoverState:!0,value:K(Y("container-box-shadow",f)||""),onChange:e=>ee("container-box-shadow",Q(e),f),shadowFilterValue:Y("container-box-shadow",f)||"",shadowFilterOnChange:e=>ee("container-box-shadow",e,f),hasHoverStateValue:oe("container-box-shadow")})),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Image",r.i18n),description:(0,d.__)("These styles are applied to all images in Stackable Blocks.",r.i18n)},(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Border Radius",r.i18n),min:0,isCorner:!0,sliderMax:50,responsive:"all",placeholder:"0",onChange:e=>ee("image-border-radius",e,C),top:null===(V=Y("image-border-radius",C))||void 0===V?void 0:V.top,right:null===(F=Y("image-border-radius",C))||void 0===F?void 0:F.right,bottom:null===(G=Y("image-border-radius",C))||void 0===G?void 0:G.bottom,left:null===(W=Y("image-border-radius",C))||void 0===W?void 0:W.left,hasTabletValue:te("image-border-radius","tablet"),hasMobileValue:te("image-border-radius","mobile"),helpTooltip:{video:"image-border-radius",description:(0,d.__)("Adjusts the radius of image corners to make them more rounded",r.i18n)},marks:ne}),(0,a.createElement)(l.ShadowControl,{label:(0,d.__)("Shadow / Outline",r.i18n),options:I.IMAGE_SHADOWS,hover:"all",isFilter:!0,forceUpdateHoverState:!0,value:K(Y("image-drop-shadow",f)||"",!0),onChange:e=>ee("image-drop-shadow",Q(e,!0),f),shadowFilterValue:Y("image-drop-shadow",f),shadowFilterOnChange:e=>ee("image-drop-shadow",e,f),hasHoverStateValue:oe("image-drop-shadow"),helpTooltip:{video:"image-shadow",title:(0,d.__)("Image Shadow",r.i18n),description:(0,d.__)("Adjusts the intensity of the image shadow",r.i18n)}}))))}),10);const De=()=>x("stackable/global-spacing-and-borders","spacing-and-borders");(0,_.addFilter)("stackable.resizable-bottom-margin.default","stackable/block-layouts",(e=>{const t=(0,E.useDeviceType)(),{getPlaceholder:o}=(0,E.useBlockLayoutDefaults)();return o("block-margin-bottom",{device:t.toLowerCase()})||e}));const Re={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]:Re,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}})),(0,u.Z)((()=>{(0,n.fetchSettings)().then((e=>{const{stackable_global_buttons_and_icons:t}=e,o=t||[];(0,b.dispatch)("stackable/global-buttons-and-icons").updateBlockLayouts(o)}))})),(0,_.addFilter)("stackable.global-settings.inspector","stackable/global-buttons-and-icons",(e=>{var t,o,n,i,s,c,u,b,m,p,g,k,v,B,S,w,_,T,x,H,M,O;const[N,D]=(0,a.useState)(!1),[R,L]=(0,a.useState)(!1),[U,P,V,F,G,W,q,$]=z("stackable/global-buttons-and-icons","stackable_global_buttons_and_icons",L,null),j=(null===(t=(0,E.usePresetControls)("spacingSizes"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null,Z=(null===(o=(0,E.usePresetControls)("borderRadius"))||void 0===o?void 0:o.getPresetMarks({addNonePreset:!0}))||null;return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,d.__)("Global Buttons & Icons",r.i18n),onToggle:e=>D(e)},N&&R&&(0,a.createElement)("span",{className:"stk-global-block-layouts-help-tooltip"},(0,a.createElement)(l.HelpTooltip,{title:(0,d.__)("Hover States",r.i18n),description:(0,d.__)("When editing block layouts in the hover states, select a block to view the applied styles.",r.i18n),closeOnEscape:!1,showTooltipCheckbox:!1,onClose:()=>{L(!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.",r.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",r.i18n))),(0,a.createElement)(l.Button,{className:"stk-reset-all-block-layout-settings",variant:"secondary",isSmall:!0,disabled:(0,A.isEmpty)(U),onClick:()=>{window.confirm((0,d.sprintf)((0,d.__)("Are you sure you want to reset all %s styles to their default values?",r.i18n),(0,d.__)("Global Buttons & Icons",r.i18n)))&&G({})},text:(0,d.__)("Reset All",r.i18n)}),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Buttons",r.i18n),description:(0,d.__)("These styles are applied to Button Blocks.",r.i18n)},(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Min. Button Height",r.i18n),responsive:"all",min:0,max:100,placeholder:"",value:P("button-min-height",C),onChange:e=>W("button-min-height",e,C),hasTabletValue:q("button-min-height","tablet"),hasMobileValue:q("button-min-height","mobile"),marks:j}),(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Button Padding",r.i18n),units:["px","%"],responsive:"all",sliderMin:[0,0],sliderMax:[40,100],vhMode:!0,unit:P("button-padding",y)||"px",onChangeUnit:e=>W("button-padding",e,y),top:null===(n=P("button-padding",C))||void 0===n?void 0:n.top,right:null===(i=P("button-padding",C))||void 0===i?void 0:i.right,bottom:null===(s=P("button-padding",C))||void 0===s?void 0:s.bottom,left:null===(c=P("button-padding",C))||void 0===c?void 0:c.left,onChange:e=>W("button-padding",e,C),placeholderTop:"12",placeholderBottom:"12",placeholderLeft:"16",placeholderRight:"16",hasTabletValue:q("button-padding","tablet"),hasMobileValue:q("button-padding","mobile"),helpTooltip:{title:(0,d.__)("Button padding",r.i18n),description:(0,d.__)("Adjusts the space between the button text and button borders",r.i18n)},marks:j}),(0,a.createElement)(l.AdvancedToolbarControl,{label:(0,d.__)("Borders",r.i18n),controls:I.BORDER_CONTROLS,className:"ugb-border-controls__border-type-toolbar",isSmall:!0,value:P("button-border-style"),onChange:e=>W("button-border-style",e)}),(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Border Width",r.i18n),placeholder:"1",responsive:"all",hover:"all",min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,forceUpdateHoverState:!0,top:null===(u=P("button-border-width",h))||void 0===u?void 0:u.top,right:null===(b=P("button-border-width",h))||void 0===b?void 0:b.right,bottom:null===(m=P("button-border-width",h))||void 0===m?void 0:m.bottom,left:null===(p=P("button-border-width",h))||void 0===p?void 0:p.left,onChange:e=>W("button-border-width",e,h),hasHoverStateValue:$("button-border-width",!0),hasTabletValue:q("button-border-width","tablet"),hasMobileValue:q("button-border-width","mobile")}),(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Button Ghost Border Width",r.i18n),placeholder:"2",responsive:"all",hover:"all",min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,forceUpdateHoverState:!0,top:null===(g=P("button-ghost-border-width",h))||void 0===g?void 0:g.top,right:null===(k=P("button-ghost-border-width",h))||void 0===k?void 0:k.right,bottom:null===(v=P("button-ghost-border-width",h))||void 0===v?void 0:v.bottom,left:null===(B=P("button-ghost-border-width",h))||void 0===B?void 0:B.left,onChange:e=>W("button-ghost-border-width",e,h),hasHoverStateValue:$("button-ghost-border-width",!0),hasTabletValue:q("button-ghost-border-width","tablet"),hasMobileValue:q("button-ghost-border-width","mobile")}),(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)("Border Radius",r.i18n),min:0,isCorner:!0,sliderMax:50,responsive:"all",placeholder:"0",onChange:e=>W("button-border-radius",e,C),top:null===(S=P("button-border-radius",C))||void 0===S?void 0:S.top,right:null===(w=P("button-border-radius",C))||void 0===w?void 0:w.right,bottom:null===(_=P("button-border-radius",C))||void 0===_?void 0:_.bottom,left:null===(T=P("button-border-radius",C))||void 0===T?void 0:T.left,hasTabletValue:q("button-border-radius","tablet"),hasMobileValue:q("button-border-radius","mobile"),helpTooltip:{video:"general-border-radius",description:(0,d.__)("Adjusts the radius of block corners to make them more rounded",r.i18n)},marks:Z}),(0,a.createElement)(l.ShadowControl,{label:(0,d.__)("Shadow / Outline",r.i18n),hover:"all",forceUpdateHoverState:!0,value:V(P("button-box-shadow",f)||""),onChange:e=>W("button-box-shadow",F(e),f),shadowFilterValue:P("button-box-shadow",f)||"",shadowFilterOnChange:e=>W("button-box-shadow",e,f),hasHoverStateValue:$("button-box-shadow")}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Icon Size",r.i18n),placeholder:"24",min:0,step:1,sliderMax:100,responsive:"all",value:P("button-icon-size",C),onChange:e=>W("button-icon-size",e,C),hasTabletValue:q("button-icon-size","tablet"),hasMobileValue:q("button-icon-size","mobile")}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Icon Gap",r.i18n),placeholder:"8",responsive:"all",min:0,sliderMax:50,value:P("button-icon-gap",C),onChange:e=>W("button-icon-gap",e,C),hasTabletValue:q("button-icon-gap","tablet"),hasMobileValue:q("button-icon-gap","mobile")}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Column Gap",r.i18n),placeholder:"12",responsive:"all",min:"0",sliderMax:"50",value:P("button-column-gap",C),onChange:e=>W("button-column-gap",e,C),hasTabletValue:q("button-column-gap","tablet"),hasMobileValue:q("button-column-gap","mobile"),marks:j}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Row Gap",r.i18n),placeholder:"12",responsive:"all",min:"0",sliderMax:"50",value:P("button-row-gap",C),onChange:e=>W("button-row-gap",e,C),hasTabletValue:q("button-row-gap","tablet"),hasMobileValue:q("button-row-gap","mobile"),marks:j})),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Icon Buttons",r.i18n),description:(0,d.__)("Additional settings that apply to Icon Button Blocks.",r.i18n)},(0,a.createElement)(l.FourRangeControl,{label:(0,d.__)(" Button Padding",r.i18n),placeholderTop:"12",placeholderBottom:"12",placeholderLeft:"12",placeholderRight:"12",units:["px","%"],responsive:"all",vhMode:!0,sliderMin:[0,0],sliderMax:[40,100],unit:P("icon-button-padding",y)||"px",onChangeUnit:e=>W("icon-button-padding",e,y),top:null===(x=P("icon-button-padding",C))||void 0===x?void 0:x.top,right:null===(H=P("icon-button-padding",C))||void 0===H?void 0:H.right,bottom:null===(M=P("icon-button-padding",C))||void 0===M?void 0:M.bottom,left:null===(O=P("icon-button-padding",C))||void 0===O?void 0:O.left,onChange:e=>W("icon-button-padding",e,C),hasTabletValue:q("icon-button-padding","tablet"),hasMobileValue:q("icon-button-padding","mobile"),helpTooltip:{title:(0,d.__)("Button padding",r.i18n),description:(0,d.__)("Adjusts the space between the button text and button borders",r.i18n)},marks:j})),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Icon List",r.i18n),description:(0,d.__)("These styles are applied to Icon List Blocks.",r.i18n)},(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Icon Size",r.i18n),min:0,max:50,step:1,placeholder:"16",responsive:"all",value:P("icon-list-icon-size",C),onChange:e=>W("icon-list-icon-size",e,C),hasTabletValue:q("icon-list-icon-size","tablet"),hasMobileValue:q("icon-list-icon-size","mobile")}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Row Gap",r.i18n),min:"0",sliderMax:"50",responsive:"all",placeholder:"0",value:P("icon-list-row-gap",C),onChange:e=>W("icon-list-row-gap",e,C),hasTabletValue:q("icon-list-row-gap","tablet"),hasMobileValue:q("icon-list-row-gap","mobile"),marks:j}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Icon Gap",r.i18n),min:"0",sliderMax:"20",placeholder:"8",responsive:"all",value:P("icon-list-icon-gap",C),onChange:e=>W("icon-list-icon-gap",e,C),hasTabletValue:q("icon-list-icon-gap","tablet"),hasMobileValue:q("icon-list-icon-gap","mobile")}),(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Indentation",r.i18n),min:"0",sliderMax:"50",placeholder:"0",responsive:"all",value:P("icon-list-indentation",C),onChange:e=>W("icon-list-indentation",e,C),hasTabletValue:q("icon-list-indentation","tablet"),hasMobileValue:q("icon-list-indentation","mobile")})),(0,a.createElement)(l.SectionSettings,{title:(0,d.__)("Icons",r.i18n),description:(0,d.__)("These styles are applied to Icon Blocks.",r.i18n)},(0,a.createElement)(l.AdvancedRangeControl,{label:(0,d.__)("Icon Size",r.i18n),responsive:"all",min:0,sliderMax:100,step:1,placeholder:"36",value:P("icon-size",C),onChange:e=>W("icon-size",e,C),hasTabletValue:q("icon-size","tablet"),hasMobileValue:q("icon-size","mobile")}))))}),12);const Le=()=>x("stackable/global-buttons-and-icons","buttons-and-icons"),Ue={fontSizes:{prefix:"font-size"},spacingSizes:{prefix:"spacing"},blockHeights:{prefix:"block-height"},borderRadius:{prefix:"border-radius"}},Pe=()=>{const{customPresets:e}=(0,b.useSelect)((e=>{var t,o;return{customPresets:null!==(o={...null===(t=e("stackable/global-preset-controls.custom"))||void 0===t?void 0:t.getCustomPresetControls()})&&void 0!==o?o:[]}}),[]),[t,o]=(0,a.useState)("");return(0,a.useEffect)((()=>{e&&"object"==typeof e&&((e,t)=>{let o="";Object.entries(e).forEach((e=>{let[t,a]=e;const l=null==a?void 0:a.map((e=>{var o;return!e||null!=e&&e.isDiscarded?"":`--stk--preset--${null===(o=Ue[t])||void 0===o?void 0:o.prefix}--${(null==e?void 0:e.slug)||""}: ${(null==e?void 0:e.size)||""};`}));o+=(0,A.compact)(l).join("")})),o=`:root { ${o} }`,t(o)})(e,o)}),[e]),t};(r.showProNotice||r.isPro)&&(0,_.addFilter)("stackable.global-settings.inspector","stackable/preset-controls",(e=>(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,d.__)("Global Preset Controls",r.i18n),id:"preset-controls-settings",isPremiumPanel:!r.isPro},!r.isPro&&(0,a.createElement)(l.ProControl,{type:"preset-controls"}),r.isPro&&(0,_.applyFilters)("stackable.global-settings.inspector.preset-controls.control",null)))),14);const Ve={};(0,b.register)((0,b.createReduxStore)("stackable/global-block-styles",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ve,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_BLOCK_STYLES":{const o=(0,A.cloneDeep)(e);return t.blockStyles.length?o[t.blockName]=t.blockStyles:delete o[t.blockName],new H.models.Settings({stackable_global_block_styles:o}).save(),o}case"UPDATE_GLOBAL_BLOCK_STYLES":return t.globalBlockStyles;default:return e}},actions:{updateGlobalBlockStyles:e=>({type:"UPDATE_GLOBAL_BLOCK_STYLES",globalBlockStyles:e}),updateBlockStyles:(e,t)=>({type:"UPDATE_BLOCK_STYLES",blockName:e,blockStyles:t})},selectors:{getBlockStyles:(e,t)=>(null==e?void 0:e[t])||[],getAllBlockStyles:e=>e}})),(0,u.Z)((()=>{(0,n.fetchSettings)().then((e=>{const{stackable_global_block_styles:t}=e,o="object"==typeof t&&Object.keys(t).length?t:{};(0,b.dispatch)("stackable/global-block-styles").updateGlobalBlockStyles(o)}))}));const Fe=()=>{const e=(0,b.useSelect)((e=>e("stackable/global-block-styles").getAllBlockStyles()),[]),[t,o]=(0,a.useState)("");return(0,a.useEffect)((()=>{e&&"object"==typeof e&&Object.keys(e).length&&function(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l="";for(const e in t)t[e].forEach((e=>{l+=o?e.saveCss:e.editCss}));if(a)return l;e(l)}(o,e)}),[e]),t};(r.showProNotice||r.isPro)&&(0,_.addFilter)("stackable.global-settings.inspector","stackable/global-block-styles",(e=>{const t=(0,b.useSelect)((e=>{const t=e("stackable/global-block-styles").getAllBlockStyles();return Object.keys(t).length>0}),[]);return(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,d.__)("Global Block Styles",r.i18n),className:"ugb-global-block-styles__panel",isPremiumPanel:!r.isPro,showModifiedIndicator:r.isPro&&t},!r.isPro&&(0,a.createElement)(l.ProControl,{type:"global-block-styles"}),r.isPro&&(0,_.applyFilters)("stackable.global-settings.inspector.global-block-styles.control",a.Fragment)))}),8);var Ge,We,qe,$e,je,Ze,Je,Ye=o(1398);(0,Ye.registerPlugin)("stackable-global-settings-loader",{render:()=>{const e=(0,E.useDeviceType)(),t=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()));return(0,a.useEffect)((()=>{var e;const o=null==t?void 0:t.closest("body"),a=null==o||null===(e=o.ownerDocument)||void 0===e?void 0:e.head;a&&(a.appendChild(Ke),a.appendChild(Qe),a.appendChild(Xe),a.appendChild(et),a.appendChild(tt),a.appendChild(ot),a.appendChild(at))}),[e,t]),null}});const Ke=null===(Ge=document)||void 0===Ge?void 0:Ge.createElement("style"),Qe=null===(We=document)||void 0===We?void 0:We.createElement("style"),Xe=null===(qe=document)||void 0===qe?void 0:qe.createElement("style"),et=null===($e=document)||void 0===$e?void 0:$e.createElement("style"),tt=null===(je=document)||void 0===je?void 0:je.createElement("style"),ot=null===(Ze=document)||void 0===Ze?void 0:Ze.createElement("style"),at=null===(Je=document)||void 0===Je?void 0:Je.createElement("style");null==Ke||Ke.setAttribute("id","stk-global-typography-styles"),null==Qe||Qe.setAttribute("id","stk-global-color-styles"),null==Xe||Xe.setAttribute("id","stk-global-spacing-and-borders-styles"),null==et||et.setAttribute("id","stk-global-buttons-and-icons-styles"),null==tt||tt.setAttribute("id","stk-global-color-schemes-styles"),null==ot||ot.setAttribute("id","stk-global-preset-controls-styles"),null==at||at.setAttribute("id","stk-global-block-styles"),(0,_.addFilter)("stackable.global-styles.ids","stackable/global-settings",(e=>(e.push("stk-global-typography-styles","stk-global-color-styles","stk-global-spacing-and-borders-styles","stk-global-buttons-and-icons-styles","stk-global-color-schemes-styles","stk-global-preset-controls-styles"),e))),(0,u.Z)((()=>{var e,t,o,l,r,i,s,c,d,u,b,m,p,g;null===(e=document)||void 0===e||null===(t=e.head)||void 0===t||t.appendChild(Ke),null===(o=document)||void 0===o||null===(l=o.head)||void 0===l||l.appendChild(Qe),null===(r=document)||void 0===r||null===(i=r.head)||void 0===i||i.appendChild(Xe),null===(s=document)||void 0===s||null===(c=s.head)||void 0===c||c.appendChild(et),null===(d=document)||void 0===d||null===(u=d.head)||void 0===u||u.appendChild(tt),null===(b=document)||void 0===b||null===(m=b.head)||void 0===m||m.appendChild(ot),null===(p=document)||void 0===p||null===(g=p.head)||void 0===g||g.appendChild(at),(0,n.createRoot)(Ke).render((0,a.createElement)(ge,null)),(0,n.createRoot)(Qe).render((0,a.createElement)(ue,null)),(0,n.createRoot)(Xe).render((0,a.createElement)(De,null)),(0,n.createRoot)(et).render((0,a.createElement)(Le,null)),(0,n.createRoot)(tt).render((0,a.createElement)(J,null)),(0,n.createRoot)(ot).render((0,a.createElement)(Pe,null)),(0,n.createRoot)(at).render((0,a.createElement)(Fe,null))})),(r.showProNotice||r.isPro)&&(0,_.addFilter)("stackable.global-settings.inspector","stackable/icon-library",(e=>(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,d.__)("Icon Library",r.i18n),id:"icon-library-settings",isPremiumPanel:!r.isPro},!r.isPro&&(0,a.createElement)(l.ProControl,{type:"icon-library"}),r.isPro&&(0,_.applyFilters)("stackable.global-settings.inspector.icon-library.control",null)))),16);var lt=o(9467);const nt=(0,a.forwardRef)((({icon:e,size:t=24,...o},l)=>(0,a.cloneElement)(e,{width:t,height:t,...o,ref:l})));function rt(e){var t,o,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(o=rt(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}const it=function(){for(var e,t,o=0,a="",l=arguments.length;o<l;o++)(e=arguments[o])&&(t=rt(e))&&(a&&(a+=" "),a+=t);return a};var st=o(3891);const ct=e=>(0,a.createElement)("path",e),dt=(0,a.forwardRef)((({className:e,isPressed:t,...o},a)=>{const l={...o,className:it(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,st.jsx)("svg",{...l,ref:a})}));dt.displayName="SVG";const ut=(0,st.jsx)(dt,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,st.jsx)(ct,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});(0,_.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)}));const bt=(0,a.memo)((()=>{const e=(0,_.applyFilters)("stackable.global-settings.inspector",null);return(0,a.createElement)(a.Fragment,null," ",e," ")}));var mt;!r.isContentOnlyMode&&r.settings.stackable_enable_global_settings&&(0,Ye.registerPlugin)("stackable-global-settings",{render:()=>{var e,t;const[o,s]=(0,a.useState)(!1),c=(0,b.useSelect)((e=>{var t;return null===(t=e("core").getCurrentUser())||void 0===t?void 0:t.id}),[]),[u,m]=(0,a.useState)(!1);(0,a.useEffect)((()=>{(async()=>{const e=await(0,n.currentUserHasCapability)("manage_options");s(e)})()}),[c]);const p=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,p&&o&&(0,a.createElement)(p,{name:"sidebar",title:(0,d.__)("Stackable Design System",r.i18n),className:"ugb-global-settings__inspector",icon:(0,a.createElement)(lt.SVGStackableIcon,null)},(0,a.createElement)(i.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.",r.i18n)),(0,a.createElement)(i.Button,{isSecondary:!0,className:"ugb-global-settings__preview-button",onClick:()=>m((e=>!e)),icon:(0,a.createElement)(nt,{icon:ut})},u?(0,d.__)("Close Preview",r.i18n):(0,d.__)("Preview Design System",r.i18n))),u&&(0,a.createElement)(l.StyleGuidePopover,{onClose:()=>m(!1)}),(0,a.createElement)(bt,null),(0,a.createElement)(l.GuidedModalTour,{tourId:"design-system"})))}});const pt=c.useSettings||(()=>[(0,c.useSetting)("layout.contentSize"),(0,c.useSetting)("layout.wideSize")]),gt=()=>{const[e,t]=pt("layout.contentSize","layout.wideSize"),o=(0,E.useDeviceType)(),l=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()));return(0,a.useEffect)((()=>{var e;const t=null==l?void 0:l.closest("body"),o=null==t||null===(e=t.ownerDocument)||void 0===e?void 0:e.head;o&&o.appendChild(kt)}),[o,l]),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},kt=null===(mt=document)||void 0===mt?void 0:mt.createElement("style");kt&&kt.setAttribute("id","stk-theme-block-size"),(0,u.Z)((()=>{var e,t;null===(e=document)||void 0===e||null===(t=e.head)||void 0===t||t.appendChild(kt),(0,n.createRoot)(kt).render((0,a.createElement)(gt,null))}));var ht=o(378);const vt=()=>{const{getEditorDom:e}=(0,b.useSelect)("stackable/editor-dom"),t=(0,a.useCallback)((()=>{var t;if(null!==(t=e())&&void 0!==t&&t.querySelector('[data-type="stackable/design-library"]')){var o;const t=null===(o=e())||void 0===o?void 0:o.querySelector('[data-type="stackable/design-library"] button');return void(t&&t.click())}const a=(0,ht.createBlock)("stackable/design-library");(0,b.dispatch)("core/block-editor").insertBlocks(a).then((()=>{var t;const o=null===(t=e())||void 0===t?void 0:t.querySelector(`[data-block="${a.clientId}"] button`);o&&o.click()}))}),[e]);return r.settings.stackable_enable_design_library&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l.GuidedModalTour,{tourId:"editor"}),(0,a.createElement)(i.ToolbarButton,{onClick:t,className:"ugb-insert-library-button",icon:(0,a.createElement)(lt.SVGStackableIcon,null)},(0,d.__)("Design Library",r.i18n)))};(0,u.Z)((()=>{if(r.isContentOnlyMode)return;const e=document.createElement("div");e.classList.add("ugb-insert-library-button__wrapper"),(0,n.createRoot)(e).render((0,a.createElement)(vt,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 Ct=o(3749);const yt=e=>{const{disabled:t,clientId:o}=e;return(0,a.createElement)(c.BlockControls,null,(0,a.createElement)(i.ToolbarGroup,{className:"stk-layout-picker"},(0,a.createElement)(i.ToolbarButton,{className:"components-toolbar__control stk-toolbar-button",icon:"layout",label:(0,d.__)("Reset layout",r.i18n),disabled:t,onClick:()=>{(0,b.dispatch)("core/block-editor").updateBlockAttributes(o,{uniqueId:void 0})}})))};if(yt.defaultProps={disabled:!1},!r.isContentOnlyMode){const e=(0,Ct.createHigherOrderComponent)((e=>t=>{if(!t.name.startsWith("stackable/"))return(0,a.createElement)(e,t);const{getBlockVariations:o,getBlockSupport:l}=(0,b.select)("core/blocks"),n=!1!==l(t.name,"stkLayoutReset"),i=o(t.name).length>0,s=!t.attributes.uniqueId;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(e,t),r.settings.stackable_enable_reset_layout&&i&&n&&(0,a.createElement)(yt,{disabled:s,clientId:t.clientId}))}),"withLayoutPicker");(0,_.addFilter)("editor.BlockEdit","stackable/layout-picekr",e)}(0,Ye.registerPlugin)("stackable-editor-block-tour",{render:()=>(0,a.createElement)(l.GuidedModalTour,{tourId:"blocks"})}),(0,Ye.registerPlugin)("stackable-guided-modal-tour-trigger",{render:()=>((0,a.useEffect)((()=>{var e,t;const o=new URLSearchParams((null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.search)||"").get("tour"),a=[];switch(o){case"editor":break;case"design-library":a.push(setTimeout((()=>{var e;null===(e=document.querySelector(".ugb-insert-library-button"))||void 0===e||e.click()}),500));break;case"design-system":a.push(setTimeout((()=>{var e;null===(e=(0,b.dispatch)("core/edit-post"))||void 0===e||e.openGeneralSidebar("stackable-global-settings/sidebar")}),500))}return()=>a.forEach((e=>clearTimeout(e)))}),[]),null),icon:()=>null,showInSidebar:!1}),(0,Ye.registerPlugin)("stackable-editor-device-preview-class",{render:()=>{const e=(0,E.useDeviceType)(),[t]=(0,E.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),(0,_.addFilter)("stackable.global-styles.classnames","stackable/theme-classname",(t=>(t.push(e),t)))}const l=ft(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),(0,_.addFilter)("stackable.global-styles.classnames","stackable/theme-classname",(t=>(t.push(e),t)))}}));return()=>l.disconnect()}}),[o,e,t]),null}});const ft=(e,t)=>{let o=e.classList.toString();const a=new MutationObserver((l=>{for(const n of l)if("class"===n.attributeName){const l=e.classList.toString();if(l!==o){t(a),o=l;break}}}));return a.observe(e,{attributes:!0}),a};(0,Ye.registerPlugin)("stackable-theme-block-style-inheritance-class",{render:()=>{const[e,t]=(0,a.useState)(!0),o=(0,b.useSelect)((e=>e("stackable/editor-dom").getEditorDom()),[]);return(0,a.useEffect)((()=>{(0,n.fetchSettings)().then((e=>{const o=e.stackable_disable_block_style_inheritance;t(o),o||(0,_.addFilter)("stackable.global-styles.classnames","stackable/global-settings.block-style-inheritance",(e=>(e.push("stk-has-block-style-inheritance"),e)))}))}),[]),(0,a.useEffect)((()=>{if(o){e||!1!==o.classList.contains("stk-has-block-style-inheritance")||o.classList.add("stk-has-block-style-inheritance"),e&&o.classList.remove("stk-has-block-style-inheritance");const t=Bt(o,(()=>{e||!1!==o.classList.contains("stk-has-block-style-inheritance")||o.classList.add("stk-has-block-style-inheritance"),e&&o.classList.remove("stk-has-block-style-inheritance")}));return()=>t.disconnect()}}),[o,e]),null}});const Bt=(e,t)=>{let o=e.classList.toString();const a=new MutationObserver((l=>{for(const n of l)if("class"===n.attributeName){const l=e.classList.toString();if(l!==o){t(a),o=l;break}}}));return a.observe(e,{attributes:!0}),a};(0,_.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,_.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,_.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,_.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 St=()=>{const[e,t]=(0,a.useState)(null),{selectedBlock:o,selectedBlockClientId:l}=(0,b.useSelect)((e=>({selectedBlock:e("core/block-editor").getSelectedBlock(),selectedBlockClientId:e("core/block-editor").getSelectedBlockClientId()})),[]),r=wt(e),i=(0,E.useIsLinked)(r),s=(0,a.useCallback)((t=>{if(!l||e!==l)return;if(!i)return;const a=(0,b.select)("core/block-editor").getBlock(e).name;if(!At(a))return;const s=Et(t,o.name);if(!Object.keys(s).length)return;const c=(0,n.extractBlockStyleStructure)(e,r);c[c.length-1].attributes=s;const d=_t(r).map((e=>{let{clientId:t}=e;return t})).reduce(((e,t)=>[...e,...(0,n.getBlocksToStyle)(t,c)]),[]);d.length&&(0,b.dispatch)("core/block-editor").updateBlockAttributes(d,s)}),[e,l,r,i]);return(0,E.useDidAttributesChange)(s,i?null==o?void 0:o.name:"",(null==o?void 0:o.attributes)||{},!1),(0,a.useEffect)((()=>{t(l)}),[l]),null},wt=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:l,getBlockParents:n}=(0,b.select)("core/block-editor"),r=(null===(o=l(e))||void 0===o?void 0:o.name)||"";if(t.includes(r)&&(a=e),a||(a=[...n(e)].reverse().find((e=>{var o;const a=null===(o=l(e))||void 0===o?void 0:o.name;return!!t.includes(a)&&e}))||null),a){const e=(0,A.last)(n(a));if(e){var i,s;const t=null===(i=l(e))||void 0===i?void 0:i.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])},_t=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,E.isBlockLinked)(t.clientId)))},At=e=>{const t=Object.keys((0,_.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},Et=(e,t)=>{const o=(0,_.applyFilters)("stackable.block-linking.blocks",{});return o[t]&&o[t].filterAttributes?(0,A.omit)(e,o[t].filterAttributes):e},Tt={editorDom:null};(0,b.registerStore)("stackable/editor-dom",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tt,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 xt={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]:xt,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}}));var It=o(6179),Ht=o.n(It);const zt=()=>((0,a.useEffect)((()=>{if("stackable/text"===(0,ht.getDefaultBlockName)())return null;(0,ht.setDefaultBlockName)("stackable/text")}),[]),null);r.settings.stackable_enable_block_defaults&&(o(914),o(5269)),(0,Ye.registerPlugin)("stackable-convert-to-container-button",{render:l.ConvertToContainerButton}),(0,Ye.registerPlugin)("stackable-block-hover-state",{render:()=>{const{getEditorDom:e,selectedClientId:t,selectedParent:o,selectedParentHoverBlock:l,hoverStateClientId:n}=(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)((()=>{n===t&&l===o||(t?(0,b.dispatch)("stackable/hover-state").updateSelectedBlock(t,e()):(0,b.dispatch)("stackable/hover-state").clearSelectedBlock())}),[e,o,t,n]),null}}),(0,Ye.registerPlugin)("stackable-content-align",{render:()=>{const{hasStkAlign:e,align:t,innerBlockContentAlign:o,clientId:l}=(0,b.useSelect)((e=>{var t,o,a,l;const n=e("core/block-editor").getSelectedBlockClientId(),r=e("core/block-editor").getBlock(n),i=(null==r?void 0:r.name)||"";return{clientId:n,hasStkAlign:i.startsWith("stackable/")&&(null===(t=e("core/blocks").getBlockType(i))||void 0===t||null===(o=t.supports)||void 0===o?void 0:o.stkAlign),align:null==r||null===(a=r.attributes)||void 0===a?void 0:a.align,innerBlockContentAlign:null==r||null===(l=r.attributes)||void 0===l?void 0:l.innerBlockContentAlign}}),[]),n=(0,Ct.usePrevious)(l);return(0,a.useEffect)((()=>{if(e&&t!==o&&n===l){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(l,{innerBlockContentAlign:e})}}),[t]),null}}),(0,Ye.registerPlugin)("stackable-editor-dom",{render:()=>{const e=(0,E.useDeviceType)(),[t,o]=(0,a.useState)(0),[l,n]=(0,a.useState)(null),r=(0,a.useRef)(null),i=(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||null===(o=t.getPage)||void 0===o?void 0:o.call(t)})),d=(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)i.current=setInterval((()=>{document.querySelector('.editor-styles-wrapper, iframe[name="editor-canvas"]')&&(clearInterval(i.current),clearTimeout(r.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(i.current),o((e=>e+1))):(clearTimeout(r.current),r.current=setTimeout((()=>{const t=e.contentDocument.body;t&&t.querySelector(".block-editor-block-list__layout")&&o((e=>e+1))}),200),e.onload=()=>{clearTimeout(r.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(i.current),clearTimeout(r.current)}}),[e,d,s,c]),(0,a.useMemo)((()=>{const e=document.querySelector('iframe[name="editor-canvas"]');n(e?e.contentDocument.body:document.querySelector(".editor-styles-wrapper"))}),[t,e]),(0,a.useEffect)((()=>{l&&(0,b.dispatch)("stackable/editor-dom").updateEditorDom(l)}),[l]),null}}),(0,Ye.registerPlugin)("stackable-theme-fonts",{render:()=>((0,a.useEffect)((()=>{Ht()({path:"/stackable/v3/get_theme_fonts/",method:"GET"}).then((e=>{e&&(0,b.dispatch)("stackable/theme-fonts").updateThemeFonts(e)}))}),[]),null)}),r.devMode&&(0,Ye.registerPlugin)("stackable-block-attributes-get-button",{render:l.GetBlockAttributesButton}),(0,n.fetchSettings)().then((e=>{e.stackable_enable_block_linking&&(0,Ye.registerPlugin)("stackable-block-linking",{render:St}),e.stackable_enable_text_default_block&&(0,Ye.registerPlugin)("stackable-text-default-block",{render:zt})})),(0,_.addFilter)("stackable.color-palette-control.change","stackable/compatibility/kadence",((e,t)=>"kadence"!==r.currentTheme?e:t&&t.slug.match(/^theme-palette\d+/)?t.slug.replace(/^[\w-]*(\d+)/,`var(--global-palette$1, ${e})`):e)),(0,_.addFilter)("stackable.block.metadata","stackable/wp-6-2",(e=>{var t;return r.wpVersion&&(0,n.semverCompare)(r.wpVersion,"<","6.3")&&null!=e&&null!==(t=e.supports)&&void 0!==t&&t.spacing&&delete e.supports.spacing,e}));const Mt=e=>{var t;return null==e||null===(t=e.find((e=>{let{isDefault:t}=e;return t})))||void 0===t?void 0:t.name},Ot=(e,t)=>e.map((e=>{let[o,a,l]=e;return l&&l.length>0&&(l=Ot(l,t)),t.includes(o)?(0,n.substituteCoreIfDisabled)(o,a,l,Dt):l?[o,a,l]:[o,a]}));(0,_.addFilter)("stackable.block.metadata","stackable/disabled-blocks",(e=>{const t=r.settings.stackable_block_states||{};let o=!0;e.name in t&&(o=!t[e.name]===n.BLOCK_STATE.HIDDEN),e["stk-block-dependency"]&&e["stk-block-dependency"]in t&&(o=!t[e["stk-block-dependency"]]===n.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 l=e.variations||[];if(a.length){const t=!!Mt(e.variations);l=l.filter((e=>!a.includes(e.name))),l.length&&t&&!Mt(l)&&(l[0].isDefault=!0),l.length||"hidden"===e["stk-type"]&&(o=!1)}const i=e["stk-substitution-blocks"];return i&&(l=l.map((e=>{const t=(0,A.cloneDeep)(e);return t.innerBlocks&&Array.isArray(t.innerBlocks)&&(t.innerBlocks=Ot(t.innerBlocks,i)),t}))),e.variations=l,void 0===e.supports&&(e.supports={}),void 0===e.supports.inserter&&(e.supports.inserter=o),e}));var Nt=o(9783);(0,n.addStackableBlockCategory)(),(0,_.addFilter)("stackable.registerBlockType.edit","stackable",(e=>(0,Nt.withVisualGuideContext)(e)));const Dt=(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));(e=>{e.keys().forEach((t=>{const{settings:o}=e(t);if(!o)return;const{name:a}=o;o.title=(0,d.__)(o.title,r.i18n),o.description&&(o.description=(0,d.__)(o.description,r.i18n)),o.keywords&&(o.keywords=o.keywords.map((e=>(0,d.__)(e,r.i18n)))),(0,ht.getBlockType)(a)||o["stk-block-dependency"]in r.settings.stackable_block_states&&r.settings.stackable_block_states[o["stk-block-dependency"]]===n.BLOCK_STATE.DISABLED||r.settings.stackable_block_states[a]===n.BLOCK_STATE.DISABLED||(0,n.registerBlockType)(a,o)}))})(o(3032))},5269:(e,t,o)=>{"use strict";o.r(t);var a=o(2610),l=o(7200),n=o(910),r=o(4184),i=o.n(r),s=o(8003),c=o(3284);(0,o(3882).addFilter)("stackable.global-settings.inspector","stackable/default-blocks",(e=>{const[t,o]=(0,a.useState)(0),[r,d]=(0,a.useState)(!1),u=(0,a.useMemo)((()=>{const{getBlockSupport:e}=(0,c.select)("core/blocks");return(0,c.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:b}=(0,c.useSelect)("stackable/block-styles");return(0,c.useSelect)((e=>r?e("stackable/block-styles").getAllBlockStyles():[]),[r]),(0,a.createElement)(a.Fragment,null,e,(0,a.createElement)(l.PanelAdvancedSettings,{title:(0,s.__)("Block Defaults",n.i18n),onToggle:e=>d(e)},(0,a.createElement)("p",{className:"components-base-control__help"},(0,a.createElement)("span",{style:{marginBottom:"8px",display:"block"}},(0,s.__)("Please use the Design System options instead of this. Block Defaults will be sunset and removed from a future version.",n.i18n)),(0,s.__)("Manage how Stackable blocks look when they're inserted.",n.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,s.__)("Learn more about Block Defaults",n.i18n))),u.map(((e,r)=>{const d=new URLSearchParams;d.set("stk_edit_block",e.name),d.set("stk_edit_block_style","default"),d.set("stk_edit_block_title",e.title);const u=b(e.name,"default"),m=i()("ugb-button-icon-control","stk-block-default-control",{"stk-block-default-control--is-active":u});return(0,a.createElement)(l.BaseControl,{key:r,label:e.title,className:m,allowReset:!0,showReset:u,onReset:()=>{(0,c.dispatch)("stackable/block-styles").deleteBlockDefaultStyle(e.name,(0,s.sprintf)((0,s.__)("Default %s Block Deleted!",n.i18n),e.title)).then((()=>{o(t+1)}))}},(0,a.createElement)("div",{className:"ugb-button-icon-control__wrapper"},(0,a.createElement)(l.Button,{className:"ugb-button-icon-control__edit",label:(0,s.__)("Edit",n.i18n),href:`${n.adminUrl}?${d.toString()}`,target:"_style-editor",isSecondary:!0,icon:"edit"})))}))))}),80)},914:(e,t,o)=>{"use strict";o.r(t);var a=o(2610),l=o(910),n=o(7545),r=o(8003),i=o(3284),s=o(2527),c=o(6179),d=o.n(c);const u={blockStyles:[]},b={updateBlockStylesStore:e=>({type:"UPDATE_BLOCK_STYLES",blockStyles:e}),updateBlockDefaultStyle:(e,t,o,a,l)=>({type:"UPDATE_BLOCK_STYLE",slug:"default",name:"Default",blockName:e,blockData:JSON.stringify({attributes:t,innerBlocks:o}),blockSave:a,successMessage:l}),updateBlockStyle:(e,t,o,a,l,n,r)=>({type:"UPDATE_BLOCK_STYLE",slug:n,name:l,blockName:e,blockData:JSON.stringify({attributes:t,innerBlocks:o}),blockSave:a,successMessage:r}),deleteBlockDefaultStyle:(e,t)=>({type:"DELETE_BLOCK_STYLE",slug:"default",blockName:e,successMessage:t})};(0,i.registerStore)("stackable/block-styles",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,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,l)=>e.slug===t.slug&&(o[a].styles.splice(l,1),!0))),d()({path:"/stackable/v2/delete_block_style/",method:"POST",data:{block:t.blockName,slug:t.slug}}).then((e=>{e&&t.successMessage&&(0,i.dispatch)("core/notices").createNotice("success",t.successMessage,{type:"snackbar",isDismissible:!0,id:"stk-block-style-deleted"})})).catch((e=>{window.alert((0,r.__)("Couldn't update block styles, got this error:",l.i18n)+`\n\n${e.message}\n\n`+(0,r.__)("Please refresh the page and try again.",l.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,l)=>e.slug===t.slug&&(o[a].styles[l].data=t.blockData,!0)))||o[a].styles.push({name:"default",data:t.blockData,slug:t.slug}),d()({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,i.dispatch)("core/notices").createNotice("success",t.successMessage,{type:"snackbar",isDismissible:!0,id:"stk-block-style-saved"})})).catch((e=>{window.alert((0,r.__)("Couldn't update block styles, got this error:",l.i18n)+`\n\n${e.message}\n\n`+(0,r.__)("Please refresh the page and try again.",l.i18n))})),{...e,blockStyles:o}}default:return e}},actions:b,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))}}}),(0,s.Z)((()=>{var e;const t=()=>{(0,n.fetchSettings)().then((e=>{const{stackable_block_styles:t}=e;(0,i.dispatch)("stackable/block-styles").updateBlockStylesStore({blockStyles:t})}))};t(),null===(e=window)||void 0===e||e.addEventListener("visibilitychange",(()=>{document.hidden||t()}))}));var m=o(3882);(0,m.addFilter)("stackable.variation-picker.variation-selected","stackable/saved-block",((e,t)=>{if(!e)return e;if(!l.isPro&&"default"!==e.name)return e;const{getBlockStyle:o}=(0,i.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}));var p=o(8085),g=o(378);const k=e=>({getBlockTitle:t=>{var o;const{getBlockName:a}=e("core/block-editor"),{getBlockType:l}=e("core/blocks");return(null===(o=l(a(t)))||void 0===o?void 0:o.title)||""},getBlockSave:t=>{const{getBlock:o}=e("core/block-editor");return t?(0,g.serialize)(o(t)):""},getBlockAttributes:t=>{if(!t)return{};const{getBlockName:o}=e("core/block-editor"),a=(0,p.cloneDeep)(e("core/block-editor").getBlockAttributes(t)),l=o(t).replace(/^\w+\//g,"");return a.uniqueId=void 0,(0,m.applyFilters)(`stackable.${l}.design.filtered-block-attributes`,a)},getBlockInnerBlocks:t=>{if(!t)return[];const{getBlock:o}=e("core/block-editor"),a=e=>[e.name,(0,p.cloneDeep)(e.attributes),e.innerBlocks.map(a)];return(o(t).innerBlocks||[]).map(a)}});let h=!1;const v=(e,t)=>{const o=t.find((t=>t.name===e));if(o)return o;let a=null;return t.some((t=>(a=v(e,t.innerBlocks),!!a))),a};(0,i.subscribe)((()=>{var e;const t=null===(e=(0,i.select)("core/editor"))||void 0===e?void 0:e.getCurrentPostType();var o,a;t&&"stackable_temp_post"===t&&((null===(o=(0,i.select)("core/editor"))||void 0===o?void 0:o.isSavingPost())&&!1===h&&(h=!0,null===(a=(()=>{const{stk_block_name:e,stk_block_title:t,stk_style_slug:o}=(0,i.select)("core/editor").getEditedPostAttribute("meta"),a=(0,i.select)("core/block-editor").getBlocks(),n=v(e,a);if(!n)return void setTimeout((()=>{(0,i.dispatch)("core/notices").createNotice("success",(0,r.sprintf)((0,r.__)("Error saving block, please make sure you only have a %s block",l.i18n),t),{type:"snackbar",isDismissible:!0,id:"stk-block-style-saved"})}),100);const s=n.clientId,{getBlockSave:c,getBlockAttributes:d,getBlockInnerBlocks:u}=k(i.select),b=d(s),m=u(s),p=c(s),{updateBlockStyle:g}=(0,i.dispatch)("stackable/block-styles"),h=(0,i.select)("core/editor").getPostEdits().title||(0,i.select)("core/editor").getCurrentPost().title;return g(e,b,m,p,"default"===o?(0,r.__)("Default",l.i18n):h,o).then((()=>{setTimeout((()=>{const e="default"===o?(0,r.sprintf)((0,r.__)("Default %s Block saved",l.i18n),t):(0,r.sprintf)((0,r.__)("%s Block style saved",l.i18n),t);(0,i.dispatch)("core/notices").createNotice("success",e,{type:"snackbar",isDismissible:!0,id:"stk-block-style-save-done"})}),100)}))})())||void 0===a||a.finally((()=>{setTimeout((()=>{h=!1}),1e3)}))))}));let C=!1;(0,i.subscribe)((()=>{var e;const t=null===(e=(0,i.select)("core/editor"))||void 0===e?void 0:e.getCurrentPostType();if(t&&"stackable_temp_post"===t){if(C)return;C=!0,setTimeout((()=>{(0,i.dispatch)("core/editor").updateEditorSettings({autosaveInterval:99999}),(0,i.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block");const{stk_block_name:e}=(0,i.select)("core/editor").getEditedPostAttribute("meta");if(!(0,i.select)("core/editor").getEditedPostContent()&&e){const{insertBlock:t}=(0,i.dispatch)("core/block-editor"),{getBlockSupport:o,getBlockType:a}=(0,i.select)("core/blocks");a(e).parent&&delete a(e).parent;const l=o(e,"stkSaveBlockStyle");let n;l?(n=l,Array.isArray(l)||(n=[l]),n=(0,g.createBlocksFromInnerBlocksTemplate)(n)):n=[(0,g.getBlockFromExample)(e,{})],n.forEach(((e,o)=>{t(e,o,"",!1)}))}setTimeout((()=>{const{getBlocks:t}=(0,i.select)("core/block-editor"),{selectBlock:o}=(0,i.dispatch)("core/block-editor"),a=v(e,t());a&&o(a.clientId)}))}))}}));var y=o(7537),f=o(78);var B=o(8333),S=o(1398),w=o(3749);const _=(0,i.withSelect)((e=>({clientId:e("core/block-editor").getSelectedBlockClientId()})))((e=>{var t;let{clientId:o}=e;const{getBlockName:n}=(0,i.useSelect)("core/block-editor"),{getBlockSupport:s}=(0,i.useSelect)("core/blocks"),{getBlockTitle:c,getBlockSave:d,getBlockAttributes:u,getBlockInnerBlocks:b}=(0,i.useSelect)(k),{blockName:m,hasDefaultBlockStyle:p}=(0,i.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===s(n(o),"stkSaveBlockStyle"))return null;const g=c(o);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(f.BlockSettingsMenuControls,null,(e=>{let{onClose:t}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(y.MenuItem,{icon:"sticky",onClick:()=>{const e=u(o),a=b(o),n=d(o);(0,i.dispatch)("stackable/block-styles").updateBlockDefaultStyle(m,e,a,n,(0,r.sprintf)((0,r.__)("Default %s Block Saved!",l.i18n),g)),t()}},(0,r.sprintf)((0,r.__)("Save as Default %s Block",l.i18n),g)),p()&&(0,a.createElement)(y.MenuItem,{icon:"editor-removeformatting",onClick:()=>{(0,i.dispatch)("stackable/block-styles").deleteBlockDefaultStyle(m,(0,r.sprintf)((0,r.__)("Default %s Block Deleted!",l.i18n),g)),t()}},(0,r.sprintf)((0,r.__)("Reset Default %s Block",l.i18n),g)))})))}));l.settings.stackable_enable_save_as_default_block&&(0,S.registerPlugin)("stackable-save-block-menu",{render:_});const A=(0,w.createHigherOrderComponent)((e=>t=>((e=>{const{clientId:t,name:o,attributes:l}=e,[r,s]=(0,a.useState)(!1),[c,d]=(0,a.useState)(null);if((0,a.useEffect)((()=>{t&&c&&((0,i.dispatch)("core/block-editor").replaceInnerBlocks(t,c,!1),d(null))}),[t,c]),o.startsWith("stackable/")&&!l.uniqueId&&!r&&!((0,g.getBlockVariations)(o).length>0)){var u,b;const a=(0,i.select)("core/block-editor").getBlockParents(t).map((e=>{var t;return null===(t=(0,i.select)("core/block-editor").getBlock(e))||void 0===t?void 0:t.name}));if(!(0,m.applyFilters)("stackable.block-default-styles.use-saved-style",!0,e,a))return;const r=(0,i.select)("stackable/block-styles").getDefaultBlockStyle(o);if(!r)return;const c=JSON.parse(r.data);let k=(0,p.omit)(c.attributes,n.CONTENT_ATTRIBUTES,"uniqueId");if(null!==(u=l.className)&&void 0!==u&&u.includes("is-style-")){let e=l.className.match(/is-style-([^\s]+)/);e=e?e[1]:"";const t=(0,B.getDefinedBlockStyles)(o),a=(0,p.find)(t,{name:e});a&&(k={...k,...a.onSelect(k)})}if(Object.keys(k).forEach((e=>{l[e]=k[e]})),null!==(b=c.innerBlocks)&&void 0!==b&&b.length&&"stackable/icon-list"!==o){const e=(0,g.createBlocksFromInnerBlocksTemplate)(c.innerBlocks);(0,n.recursivelyAddUniqueIdToInnerBlocks)(e),d(e)}s(!0)}})(t),(0,a.createElement)(e,t))),"withSaveBlockStyle");(0,m.addFilter)("editor.BlockEdit","stackable/save-block-style",A)},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)l(e,t[a])}e.prototype=Object.create(null);var o={}.hasOwnProperty,a=/\s+/;function l(e,l){if(l){var n=typeof l;"string"===n?function(e,t){for(var o=t.split(a),l=o.length,n=0;n<l;++n)e[o[n]]=!0}(e,l):Array.isArray(l)?t(e,l):"object"===n?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,l):"number"===n&&function(e,t){e[t]=!0}(e,l)}}return function(){for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];var n=new e;t(n,a);var r=[];for(var i in n)n[i]&&r.push(i);return r.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 l(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o)){if(o.length){var r=l.apply(null,o);r&&e.push(r)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var i in o)a.call(o,i)&&o[i]&&e.push(i);else e.push(o.toString())}}return e.join(" ")}e.exports?(l.default=l,e.exports=l):void 0===(o=function(){return l}.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,l,n,r=e[0]/360,i=e[1]/100,s=e[2]/100;if(0===i)return[n=255*s,n,n];t=2*s-(o=s<.5?s*(1+i):s+i-s*i),l=[0,0,0];for(var c=0;c<3;c++)(a=r+1/3*-(c-1))<0?a++:a>1&&a--,n=6*a<1?t+6*(o-t)*a:2*a<1?o:3*a<2?t+(o-t)*(2/3-a)*6:t,l[c]=255*n;return l}},a.hsl=function(e){var t,o,a=e[0]/255,l=e[1]/255,n=e[2]/255,r=Math.min(a,l,n),i=Math.max(a,l,n),s=i-r;return i===r?t=0:a===i?t=(l-n)/s:l===i?t=2+(n-a)/s:n===i&&(t=4+(a-l)/s),(t=Math.min(60*t,360))<0&&(t+=360),o=(r+i)/2,[t,100*(i===r?0:o<=.5?s/(i+r):s/(2-i-r)),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(/\+.*$/,""),l=(o="-",-1===(t=a).indexOf(o)?t.length:t.indexOf(o)),n=a.substring(0,l).split(".");return n.push(a.substring(l+1)),n}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 l(e,l){[e,l].forEach(a);for(var n=t(e),r=t(l),i=0;i<Math.max(n.length-1,r.length-1);i++){var s=parseInt(n[i]||0,10),c=parseInt(r[i]||0,10);if(s>c)return 1;if(c>s)return-1}var d=n[n.length-1],u=r[r.length-1];if(d&&u){var b=d.split(".").map(o),m=u.split(".").map(o);for(i=0;i<Math.max(b.length,m.length);i++){if(void 0===b[i]||"string"==typeof m[i]&&"number"==typeof b[i])return-1;if(void 0===m[i]||"string"==typeof b[i]&&"number"==typeof m[i])return 1;if(b[i]>m[i])return 1;if(m[i]>b[i])return-1}}else if(d||u)return d?-1:1;return 0}var n=[">",">=","=","<","<="],r={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return l.validate=function(t){return"string"==typeof t&&e.test(t)},l.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===n.indexOf(e))throw new TypeError("Invalid operator, expected one of "+n.join("|"))}(o);var a=l(e,t);return r[o].indexOf(a)>-1},l})?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)?r((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 l(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function n(e,t,a){var n={};return a.isMergeableObject(e)&&l(e).forEach((function(t){n[t]=o(e[t],a)})),l(t).forEach((function(l){a.isMergeableObject(t[l])&&e[l]?n[l]=function(e,t){if(!t.customMerge)return r;var o=t.customMerge(e);return"function"==typeof o?o:r}(l,a)(e[l],t[l],a):n[l]=o(t[l],a)})),n}function r(t,l,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||e;var i=Array.isArray(l);return i===Array.isArray(t)?i?r.arrayMerge(t,l,r):n(t,l,r):o(l,r)}return r.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return r(e,o,t)}),{})},r}()},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function l(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,n){for(var r,i,s=l(e),c=1;c<arguments.length;c++){for(var d in r=Object(arguments[c]))o.call(r,d)&&(s[d]=r[d]);if(t){i=t(r);for(var u=0;u<i.length;u++)a.call(r,i[u])&&(s[i[u]]=r[i[u]])}}return s}},2408:(e,t,o)=>{"use strict";var a=o(7418),l=60112;if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),l=n("react.forward_ref"),n("react.suspense"),n("react.memo"),n("react.lazy")}"function"==typeof Symbol&&Symbol.iterator;function r(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 i={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||i}function d(){}function u(e,t,o){this.props=e,this.context=t,this.refs=s,this.updater=o||i}c.prototype.isReactComponent={},c.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(r(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:l,render:e}}},7294:(e,t,o)=>{"use strict";e.exports=o(2408)},3726:function(e,t,o){"use strict";var a;!function(l){if("function"!=typeof n){var n=function(e){return e};n.nonNative=!0}const r=n("plaintext"),i=n("html"),s=n("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 n.nonNative||"function"!=typeof e[n.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:r,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,l=t.state,n=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(l===r)"<"===b?(l=i,n+=b):u+=b;else if(l===i)switch(b){case"<":if(d)break;c++;break;case">":if(d)break;if(c){c--;break}d="",l=r,n+=">",o.has(p(n))?u+=n:u+=a,n="";break;case'"':case"'":d=b===d?"":d||b,n+=b;break;case"-":"<!-"===n&&(l=s),n+=b;break;case" ":case"\n":if("<"===n){l=r,u+="< ",n="";break}n+=b;break;default:n+=b}else l===s&&(">"===b?("--"==n.slice(-2)&&(l=r),n=""):n+=b)}return t.state=l,t.tag_buffer=n,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 l(e){var t=n(e);return o(t)}function n(e){if(!o.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}l.keys=function(){return Object.keys(a)},l.resolve=n,e.exports=l,l.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 l(e){var t=n(e);return o(t)}function n(e){if(!o.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}l.keys=function(){return Object.keys(a)},l.resolve=n,e.exports=l,l.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},6179:e=>{"use strict";e.exports=wp.apiFetch},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},1398:e=>{"use strict";e.exports=wp.plugins},2413:e=>{"use strict";e.exports=wp.richText},7462:(e,t,o)=>{"use strict";function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var a in o)({}).hasOwnProperty.call(o,a)&&(e[a]=o[a])}return e},a.apply(null,arguments)}o.d(t,{Z:()=>a})}},t={};function o(a){var l=t[a];if(void 0!==l)return l.exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,o),n.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(9600)})();
/home/batcwwjx/www/wp-content/plugins/./stackable-ultimate-gutenberg-blocks/dist/editor_blocks.js