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
/
.
/
public_html
/
wp-content
/
plugins
/
.
/
stackable-ultimate-gutenberg-blocks
/
dist
/
stk.js
/
/
/*! For license information please see stk.js.LICENSE.txt */ (()=>{var e,t,n,o,a={2527:(e,t,n)=>{"use strict";function o(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}n.d(t,{Z:()=>o})},1984:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(2610);const a=(0,o.forwardRef)((({icon:e,size:t=24,...n},a)=>(0,o.cloneElement)(e,{width:t,height:t,...n,ref:a})))},5202:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(7823),a=n(3891);const l=(0,a.jsx)(o.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(o.y$,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})})},3710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(7823),a=n(3891);const l=(0,a.jsx)(o.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(o.y$,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})})},7823:(e,t,n)=>{"use strict";function o(e){var t,n,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]&&(n=o(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}n.d(t,{y$:()=>i,Wj:()=>s});const a=function(){for(var e,t,n=0,a="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=o(e))&&(a&&(a+=" "),a+=t);return a};var l=n(2610),r=n(3891);const i=e=>(0,l.createElement)("path",e),s=(0,l.forwardRef)((({className:e,isPressed:t,...n},o)=>{const l={...n,className:a(e,{"is-pressed":t})||void 0,"aria-hidden":!0,focusable:!1};return(0,r.jsx)("svg",{...l,ref:o})}));s.displayName="SVG"},9498:(e,t,n)=>{"use strict";var o=n(1233),a=Symbol.for("react.element"),l=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),r=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var o,s={},c=null,d=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)l.call(t,o)&&!i.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:a,type:e,key:c,ref:d,props:s,_owner:r.current}}t.jsx=s,t.jsxs=s},4314:(e,t)=>{"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=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"),p=Symbol.for("react.lazy"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function f(){}function k(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}b.prototype.isReactComponent={},b.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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},f.prototype=b.prototype;var y=k.prototype=new f;y.constructor=k,m(y,b.prototype),y.isPureReactComponent=!0;var _=Array.isArray,C=Object.prototype.hasOwnProperty,w={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,o){var a,l={},r=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(r=""+t.key),t)C.call(t,a)&&!S.hasOwnProperty(a)&&(l[a]=t[a]);var s=arguments.length-2;if(1===s)l.children=o;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];l.children=c}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===l[a]&&(l[a]=s[a]);return{$$typeof:n,type:e,key:r,ref:i,props:l,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function B(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 M(e,t,a,l,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 n:case o:s=!0}}if(s)return r=r(s=e),e=""===l?"."+B(s,0):l,_(r)?(a="",null!=e&&(a=e.replace(T,"$&/")+"/"),M(r,t,a,"",(function(e){return e}))):null!=r&&(x(r)&&(r=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,a+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(T,"$&/")+"/")+e)),t.push(r)),1;if(s=0,l=""===l?".":l+":",_(e))for(var c=0;c<e.length;c++){var d=l+B(i=e[c],c);s+=M(i,t,a,d,r)}else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof d)for(e=d.call(e),c=0;!(i=e.next()).done;)s+=M(i=i.value,t,a,d=l+B(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 A(e,t,n){if(null==e)return e;var o=[],a=0;return M(e,o,"","",(function(e){return t.call(n,e,a++)})),o}function N(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 I={current:null},R={transition:null},P={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:R,ReactCurrentOwner:w};function O(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=a,t.Profiler=r,t.PureComponent=k,t.StrictMode=l,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.act=O,t.cloneElement=function(e,t,o){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=m({},e.props),l=e.key,r=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(r=t.ref,i=w.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)C.call(t,c)&&!S.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=o;else if(1<c){s=Array(c);for(var d=0;d<c;d++)s[d]=arguments[d+2];a.children=s}return{$$typeof:n,type:e.type,key:l,ref:r,props:a,_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=E,t.createFactory=function(e){var t=E.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=x,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=O,t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.3.1"},1233:(e,t,n)=>{"use strict";e.exports=n(4314)},3891:(e,t,n)=>{"use strict";e.exports=n(9498)},376:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var o=n(8085);const a=e=>{const t=[];return e.reduce(((e,n)=>((0,o.sum)(e[e.length-1])+n>100?e.push([n]):e[e.length-1].push(n),t.push(e.length),e)),[[]]),t}},3363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Advanced:()=>c,Alignment:()=>bt,BORDER_CONTROLS:()=>B,BackgroundControls:()=>y,BlockDiv:()=>le,BlockLink:()=>de,BlockStyle:()=>pe,BorderControls:()=>A,Button:()=>He,CloneButton:()=>Ke,Column:()=>Ve,Columns:()=>Qe,ColumnsControl:()=>Ye,ConditionalDisplay:()=>Le,ContainerDiv:()=>$e,ContentAlign:()=>ot,CustomAttributes:()=>ae,CustomCSS:()=>lt,EffectsAnimations:()=>it,FlexGapControls:()=>R,IMAGE_SHADOWS:()=>xt,INVALID_HTML_ATTRIBUTES:()=>ne,Icon:()=>Ce,Image:()=>Ut,Link:()=>Se,Linking:()=>Vt,MarginBottom:()=>cn,ProgressBar:()=>Bn,Responsive:()=>un,Row:()=>kt,Separator:()=>rn,SizeControls:()=>U,Style:()=>sn.bg,Transform:()=>hn,Typography:()=>En,_Linking:()=>Gt,addBackgroundAttributes:()=>m,addBackgroundStyles:()=>v,addBlockClassNames:()=>sn.CJ,addBorderAttributes:()=>x,addBorderStyles:()=>T,addFlexGapAttributes:()=>I,addFlexGapStyles:()=>P,addSeparatorStyles:()=>Zt,addSizeAttributes:()=>L,addSizeStyles:()=>D,backgroundAttributes:()=>g,borderAttributes:()=>E,combineStyleRules:()=>sn.yN,createSeparatorAttributes:()=>an,createSeparatorLayerAttributes:()=>on,deprecateBlockBackgroundColorOpacity:()=>W,deprecateBlockHeight:()=>G,deprecateBlockShadowColor:()=>V,deprecateButtonGradientColor:()=>ve,deprecateColumnAndRowGap:()=>je,deprecateContainerBackgroundColorOpacity:()=>De,deprecateContainerShadowColor:()=>Fe,deprecateImageBorderRadius:()=>Ct,deprecateInnerBlockRowGapAndContainerHeight:()=>ct,deprecateShadowColor:()=>S,deprecateSizeControlHeight:()=>H,deprecateTypographyFontSize:()=>Cn,deprecateTypographyGradientColor:()=>yn,deprecateTypographyShadowColor:()=>_n,deprecatedAddAttributes:()=>w,deprecationBackgrounColorOpacity:()=>h,deprecationImageOverlayOpacity:()=>_t,flexGapAttributes:()=>N,formMediaQuery:()=>sn.Lu,generateStyles:()=>sn.KL,getAlignmentClasses:()=>vt,getBlockOrientation:()=>mt,getButtonClasses:()=>Oe,getColumnClasses:()=>We,getContentAlignmentClasses:()=>nt,getEditorStylesOnly:()=>sn.Yf,getResponsiveClasses:()=>dn,getRowClasses:()=>ft,getSeparatorClasses:()=>jt,getTypographyClasses:()=>Sn,mergeStyles:()=>sn.y0,sizeAttributes:()=>z,useUniqueId:()=>q});var o=n(2610),a=n(910),l=n(3566),r=n(3796),i=n(8003);const s=[{value:"",label:(0,i.__)("Default",a.i18n)},{value:"address",label:(0,i._x)("Address","HTML Tag",a.i18n)},{value:"article",label:(0,i._x)("Article","HTML Tag",a.i18n)},{value:"aside",label:(0,i._x)("Aside","HTML Tag",a.i18n)},{value:"blockquote",label:(0,i._x)("Blockquote","HTML Tag",a.i18n)},{value:"div",label:(0,i._x)("Div","HTML Tag",a.i18n)},{value:"details",label:(0,i._x)("Details","HTML Tag",a.i18n)},{value:"footer",label:(0,i._x)("Footer","HTML Tag",a.i18n)},{value:"header",label:(0,i._x)("Header","HTML Tag",a.i18n)},{value:"hgroup",label:(0,i._x)("Hgroup","HTML Tag",a.i18n)},{value:"main",label:(0,i._x)("Main","HTML Tag",a.i18n)},{value:"nav",label:(0,i._x)("Nav","HTML Tag",a.i18n)},{value:"section",label:(0,i._x)("Section","HTML Tag",a.i18n)},{value:"summary",label:(0,i._x)("Summary","HTML Tag",a.i18n)}],c=()=>null;c.InspectorControls=()=>{const e=(0,r.useBlockAttributesContext)((e=>({position:e.position,positionTablet:e.positionTablet,positionMobile:e.positionMobile})));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("General",a.i18n),id:"general"},(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.sprintf)((0,i._x)("%s HTML Tag","component",a.i18n),(0,i.__)("Block",a.i18n)),attribute:"htmlTag",options:s}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Overflow",a.i18n),attribute:"overflow",responsive:"all",options:[{value:"",label:(0,i.__)("Default",a.i18n)},{value:"auto",label:(0,i.__)("Auto",a.i18n)},{value:"hidden",label:(0,i.__)("Hidden",a.i18n)},{value:"scroll",label:(0,i.__)("Scroll",a.i18n)},{value:"visible",label:(0,i.__)("Visible",a.i18n)}]}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Clear",a.i18n),attribute:"clear",options:[{value:"",label:(0,i.__)("Default",a.i18n)},{value:"left",label:(0,i.__)("Left",a.i18n)},{value:"right",label:(0,i.__)("Right",a.i18n)},{value:"both",label:(0,i.__)("Both",a.i18n)},{value:"none",label:(0,i.__)("None",a.i18n)}]})),(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Position",a.i18n),id:"position"},(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Opacity",a.i18n),attribute:"opacity",responsive:"all",hover:"all",min:0,max:1,step:.1,allowReset:!0,placeholder:"1",helpTooltip:{video:"advanced-opacity",description:(0,i.__)("Adjusts the transparency of the entire block",a.i18n)}}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Z-Index",a.i18n),attribute:"zIndex",responsive:"all",sliderMin:-10,sliderMax:10,allowReset:!0,placeholder:"1",helpTooltip:{video:"advanced-zindex",description:(0,i.__)("Sets the stack order of different blocks to make one appear in front of another. A block with a higher z-index will show up on top of another block with a lower z-index.",a.i18n)}}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Position",a.i18n),attribute:"position",responsive:"all",help:[e.position,e.positionTablet,e.positionMobile].includes("sticky")?(0,i.__)("Sticky position may not work across all themes",a.i18n):"",options:[{value:"",label:(0,i.__)("Default",a.i18n)},{value:"static",label:(0,i.__)("Static",a.i18n)},{value:"relative",label:(0,i.__)("Relative",a.i18n)},{value:"absolute",label:(0,i.__)("Absolute",a.i18n)},{value:"sticky",label:(0,i.__)("Sticky",a.i18n)}]}),(0,o.createElement)(l.FourRangeControl,{label:(0,i.__)("Position",a.i18n),attribute:"positionNum",responsive:"all",units:["px","%"],hover:"all",defaultLocked:!1,hasLock:!1,sliderMin:-100,sliderMax:100}))))},c.addAttributes=e=>{e.add({attributes:{htmlTag:{type:"string",default:""},opacity:{stkResponsive:!0,stkHover:!0,type:"number",default:""},zIndex:{stkResponsive:!0,type:"number",default:""},overflow:{stkResponsive:!0,type:"string",default:""},clear:{type:"string",default:""},position:{stkResponsive:!0,type:"string",default:""},positionNum:{stkUnits:"px",stkResponsive:!0,stkHover:!0,type:"object",default:""}},versionAdded:"3.0.0",versionDeprecated:""})},c.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{positionSelector:o="",dependencies:a=[]}=t;e.addBlockStyles("positionNum",[{...n,renderIn:"save",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"top",attrName:"positionNum",key:"positionNum-save-top",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:(e,t,n,o)=>{if("desktop"===n&&"normal"===o){const o="sticky"===t("position",n,"normal",!0),a=!e||e&&""===e.top;if(o&&a)return 0}return null==e?void 0:e.top},dependencies:["position",...a]},{...n,renderIn:"save",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"right",attrName:"positionNum",key:"positionNum-save-right",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.right},{...n,renderIn:"save",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"bottom",attrName:"positionNum",key:"positionNum-save-bottom",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom},{...n,renderIn:"save",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"left",attrName:"positionNum",key:"positionNum-save-left",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.left}]),e.addBlockStyles("position",[{...n,renderIn:"save",selector:"",styleRule:"position",attrName:"position",key:"position-save",responsive:"all"}]),e.addBlockStyles("positionNum",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,hoverSelectorCallback:(e,t,n)=>o?`.editor-styles-wrapper [data-block="${n}"]:hover`:void 0,styleRule:"top",attrName:"positionNum",key:"positionNum-top",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:(e,t,n,o)=>{if("desktop"===n&&"normal"===o){const o="sticky"===t("position",n,"normal",!0),a=!e||e&&""===e.top;if(o&&a)return 0}return null==e?void 0:e.top},dependencies:["position",...a]},{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,hoverSelectorCallback:(e,t,n)=>o?`.editor-styles-wrapper [data-block="${n}"]:hover`:void 0,selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"bottom",attrName:"positionNum",key:"positionNum-bottom",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom},{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,hoverSelectorCallback:(e,t,n)=>o?`.editor-styles-wrapper [data-block="${n}"]:hover`:void 0,selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"left",attrName:"positionNum",key:"positionNum-left",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.left},{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,hoverSelectorCallback:(e,t,n)=>o?`.editor-styles-wrapper [data-block="${n}"]:hover`:void 0,selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"right",attrName:"positionNum",key:"positionNum-right",responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.right},{...n,renderIn:"edit",selector:o,hoverSelector:o?`${o}:hover`:void 0,styleRule:"position",attrName:"positionNum",key:"positionNum",responsive:"all",hover:"all",valuePreCallback:(e,t,n)=>{if(e&&(""!==e.top||""!==e.right||""!==e.bottom||""!==e.left)&&""===t("position",n))return"relative"},dependencies:["position",...a]}]),e.addBlockStyles("position",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"position",attrName:"position",key:"position",responsive:"all"}]),e.addBlockStyles("opacity",[{...n,selector:"",styleRule:"opacity",attrName:"opacity",key:"opacity",responsive:"all",hover:"all"}]),e.addBlockStyles("zIndex",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"zIndex",attrName:"zIndex",key:"zIndex",responsive:"all"},{...n,renderIn:"save",selector:"",styleRule:"zIndex",attrName:"zIndex",key:"zIndex-save",responsive:"all"}]),e.addBlockStyles("overflow",[{...n,selector:"",styleRule:"overflow",attrName:"overflow",key:"overflow",responsive:"all"},{...n,selector:".stk-container",styleRule:"overflow",attrName:"overflow",key:"overflow-container",enabledCallback:e=>"visible"===e("overflow"),responsive:"all"}]),e.addBlockStyles("clear",[{...n,selector:"",styleRule:"clear",attrName:"clear",key:"clear"}]),e.addBlockStyles("positionNum",[{...n,selector:o,styleRule:"top",attrName:"positionNum",key:"positionNum-hover-top",responsive:"all",valuePreCallback:(e,t,n,o)=>{if((!e||""===e.top)&&"normal"===o){const e=t("positionNum",n,"hover"),o=t("positionNum",n,"parent-hover");if(e&&""!==e.top||o&&""!==o.top)return 0}}},{...n,selector:o,styleRule:"right",attrName:"positionNum",key:"positionNum-hover-right",responsive:"all",valuePreCallback:(e,t,n,o)=>{if((!e||""===e.right)&&"normal"===o){const e=t("positionNum",n,"hover"),o=t("positionNum",n,"parent-hover");if(e&&""!==e.right||o&&""!==o.right)return 0}}},{...n,selector:o,styleRule:"bottom",attrName:"positionNum",key:"positionNum-hover-bottom",responsive:"all",valuePreCallback:(e,t,n,o)=>{if((!e||""===e.bottom)&&"normal"===o){const e=t("positionNum",n,"hover"),o=t("positionNum",n,"parent-hover");if(e&&""!==e.bottom||o&&""!==o.bottom)return 0}}},{...n,selector:o,styleRule:"left",attrName:"positionNum",key:"positionNum-hover-left",responsive:"all",valuePreCallback:(e,t,n,o)=>{if((!e||""===e.left)&&"normal"===o){const e=t("positionNum",n,"hover"),o=t("positionNum",n,"parent-hover");if(e&&""!==e.left||o&&""!==o.left)return 0}}}])};var d=n(7462),u=n(1205);const p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:{backgroundColorOpacity:{stkHover:!0,type:"number",default:""},backgroundColor2:{type:"string",default:""},backgroundGradientDirection:{type:"number",default:""},backgroundGradientLocation1:{type:"number",default:""},backgroundGradientLocation2:{type:"number",default:""}},attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:"3.12.0"})},h={isEligible:e=>t=>{var n;const o=(0,u.getAttrNameFunction)(e),a=e=>t[o(e)];return!(a("backgroundColorType")||!(a("backgroundColorOpacity")||0===a("backgroundColorOpacity")||a("backgroundColorOpacityHover")||0===a("backgroundColorOpacityHover")||a("backgroundColorOpacityParentHover")||0===a("backgroundColorOpacityParentHover")))||!("gradient"!==a("backgroundColorType")||null!==(n=a("backgroundColor"))&&void 0!==n&&n.includes("-gradient"))},migrate:e=>t=>{var n;const o=(0,u.getAttrNameFunction)(e),a=e=>t[o(e)],l={...t,[o("backgroundColorOpacity")]:void 0,[o("backgroundColorOpacityHover")]:void 0,[o("backgroundColorOpacityParentHover")]:void 0,[o("backgroundColor2")]:void 0,[o("backgroundGradientDirection")]:void 0,[o("backgroundGradientLocation1")]:void 0,[o("backgroundGradientLocation2")]:void 0};if(!a("backgroundColorType")&&(a("backgroundColorOpacity")||0===a("backgroundColorOpacity")||a("backgroundColorOpacityHover")||0===a("backgroundColorOpacityHover")||a("backgroundColorOpacityParentHover")||0===a("backgroundColorOpacityParentHover"))){const e=a("backgroundColor"),t=a("backgroundColorHover")||e,n=a("backgroundColorParentHover")||t;(a("backgroundColorOpacity")||0===a("backgroundColorOpacity"))&&(l[o("backgroundColor")]=(0,u.colorOpacityToHexAplha)(e,a("backgroundColorOpacity"))),(a("backgroundColorOpacityHover")||0===a("backgroundColorOpacityHover"))&&(l[o("backgroundColorHover")]=(0,u.colorOpacityToHexAplha)(t,a("backgroundColorOpacityHover"))),(a("backgroundColorOpacityParentHover")||0===a("backgroundColorOpacityParentHover"))&&(l[o("backgroundColorParentHover")]=(0,u.colorOpacityToHexAplha)(n,a("backgroundColorOpacityParentHover")))}if("gradient"===a("backgroundColorType")&&(null===(n=a("backgroundColor"))||void 0===n||!n.includes("-gradient"))){const e=l[o("backgroundColor")],t=a("backgroundColor2")||"rgba(0,0,0,0)",n=a("backgroundGradientDirection")||0===a("backgroundGradientDirection")?a("backgroundGradientDirection"):90,r=a("backgroundGradientLocation1")||0,i=a("backgroundGradientLocation2")||100;l[o("backgroundColor")]=`linear-gradient(${n}deg, ${e} ${r}%, ${t} ${i}%)`}return l}},g={backgroundColorType:{type:"string",default:""},backgroundColor:{stkHover:!0,type:"string",default:""},backgroundMediaId:{stkResponsive:!0,type:"string",default:""},backgroundMediaUrl:{stkResponsive:!0,type:"string",default:""},backgroundMediaThumbnailId:{stkResponsive:!0,type:"string",default:""},backgroundMediaThumbnailUrl:{stkResponsive:!0,type:"string",default:""},backgroundGradientBlendMode:{type:"string",default:""},backgroundPosition:{stkResponsive:!0,type:"string",default:""},backgroundRepeat:{stkResponsive:!0,type:"string",default:""},backgroundSize:{stkResponsive:!0,type:"string",default:""},backgroundImageBlendMode:{type:"string",default:""},backgroundTintStrength:{stkHover:!0,type:"number",default:""},backgroundCustomSize:{stkResponsive:!0,stkUnits:"%",type:"number",default:""},fixedBackground:{type:"boolean",default:""},backgroundMediaExternalUrl:{stkResponsive:!0,type:"string",default:""}},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";p(e,t),e.add({attributes:g,attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",attrNameTemplate:a="%s",dependencies:l=[],selectorCallback:r=null}=t;e.addBlockStyles("backgroundColor",[{...n,selector:o,hoverSelector:`${o}:hover`,styleRule:"backgroundColor",attrName:"backgroundColor",key:"backgroundColor-hover",attrNameTemplate:a,selectorCallback:r,hoverCallback:e=>"gradient"!==e("backgroundColorType")&&"all",valueCallback:(e,t)=>"gradient"===t("backgroundColorType")&&(e.match(/rgba\(([^\)]*?)\s*0\s*\.?0?0?\)/)||e.includes("transparent"))?"transparent":e,dependencies:["backgroundColorType",...l]}]),e.addBlockStyles("backgroundMediaUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaUrl",key:"backgroundMediaUrl",attrNameTemplate:a,format:"url(%s)",responsive:["desktop"],valuePreCallback:e=>{if("string"!=typeof e||!e.match(/\.(mp4|ogg|webm)$/i))return e}}]),e.addBlockStyles("backgroundMediaExternalUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaExternalUrl",key:"backgroundMediaExternalUrl",responsive:["desktop"],attrNameTemplate:a,format:"url(%s)"}]),e.addBlockStyles("backgroundMediaUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaUrl",key:"backgroundMediaUrlTablet",attrNameTemplate:a,format:"url(%s)",responsive:["tablet"],valuePreCallback:e=>{if("string"!=typeof e||!e.match(/\.(mp4|ogg|webm)$/i))return e}}]),e.addBlockStyles("backgroundMediaExternalUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaExternalUrl",key:"backgroundMediaExternalUrlTablet",responsive:["tablet"],attrNameTemplate:a,format:"url(%s)"}]),e.addBlockStyles("backgroundMediaUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaUrl",key:"backgroundMediaUrlMobile",attrNameTemplate:a,format:"url(%s)",responsive:["mobile"],valuePreCallback:e=>{if("string"!=typeof e||!e.match(/\.(mp4|ogg|webm)$/i))return e}}]),e.addBlockStyles("backgroundMediaExternalUrl",[{...n,selector:o,styleRule:"backgroundImage",attrName:"backgroundMediaExternalUrl",key:"backgroundMediaExternalUrlMobile",responsive:["mobile"],attrNameTemplate:a,format:"url(%s)"}]),e.addBlockStyles("fixedBackground",[{...n,selector:o,styleRule:"backgroundAttachment",attrName:"fixedBackground",key:"fixedBackground",attrNameTemplate:a,valueCallback:e=>e?"fixed":void 0}]),e.addBlockStyles("backgroundPosition",[{...n,selector:o,styleRule:"backgroundPosition",attrName:"backgroundPosition",key:"backgroundPosition",attrNameTemplate:a,responsive:"all"}]),e.addBlockStyles("backgroundRepeat",[{...n,selector:o,styleRule:"backgroundRepeat",attrName:"backgroundRepeat",key:"backgroundRepeat",attrNameTemplate:a,responsive:"all"}]),e.addBlockStyles("backgroundSize",[{...n,selector:o,styleRule:"backgroundSize",attrName:"backgroundSize",key:"backgroundSize",attrNameTemplate:a,responsive:"all",valueCallback:(e,t,n)=>"custom"===e&&t("backgroundCustomSize",n)?t("backgroundCustomSize",n)+(t("backgroundCustomSizeUnit",n)||"%"):e,dependencies:["backgroundCustomSize","backgroundCustomSizeUnit",...l]}]),e.addBlockStyles("backgroundImageBlendMode",[{...n,selector:o,styleRule:"backgroundBlendMode",attrName:"backgroundImageBlendMode",key:"backgroundImageBlendMode",attrNameTemplate:a}]),e.addBlockStyles("backgroundColor",[{...n,selector:`${o}:before`,hoverSelector:`${o}:hover:before`,styleRule:"backgroundColor",attrName:"backgroundColor",key:"backgroundColor-before",attrNameTemplate:a,selectorCallback:r,hover:"all",valuePreCallback:(e,t,n,o)=>""===e&&t("backgroundTintStrength",n,o)?"#000000":e,valueCallback:(e,t)=>"gradient"!==t("backgroundColorType")&&e?e:void 0,dependencies:["backgroundColorType","backgroundTintStrength",...l]}]),e.addBlockStyles("backgroundTintStrength",[{...n,selector:`${o}:before`,hoverSelector:`${o}:hover:before`,styleRule:"opacity",attrName:"backgroundTintStrength",key:"backgroundTintStrength",attrNameTemplate:a,hover:"all",enabledCallback:e=>!(!e("backgroundMediaUrl","mobile","normal",!0)&&!e("backgroundMediaExternalUrl","mobile","normal",!0)),valuePreCallback:(e,t,n,o)=>""===e&&t("backgroundColor",n,o)?5:e,valueCallback:e=>parseInt(e,10)/10,dependencies:["backgroundColor","backgroundMediaUrl","backgroundMediaExternalUrl",...l]}]),e.addBlockStyles("backgroundGradientBlendMode",[{...n,selector:`${o}:before`,styleRule:"mixBlendMode",attrName:"backgroundGradientBlendMode",key:"backgroundGradientBlendMode",attrNameTemplate:a,enabledCallback:e=>"gradient"===e("backgroundColorType"),dependencies:["backgroundColorType",...l]}]),e.addBlockStyles("backgroundColor",[{...n,selector:`${o}:before`,styleRule:"backgroundImage",attrName:"backgroundColor",key:"backgroundColor-image",attrNameTemplate:a,enabledCallback:e=>"gradient"===e("backgroundColorType"),dependencies:["backgroundColorType","backgroundColor",...l]}]),e.addBlockStyles("borderRadius",[{...n,renderIn:"edit",selector:`${o}:before`,styleRule:"borderRadius",attrName:"borderRadius",key:"borderRadius",attrNameTemplate:a,format:"%spx",enabledCallback:e=>"gradient"===e("backgroundColorType")||e("backgroundColor")||e("backgroundColor","desktop","hover")||e("backgroundColor","desktop","parent-hover"),dependencies:["backgroundColorType","backgroundColor",...l]}])},b=[{value:"",title:(0,i.__)("Single",a.i18n)},{value:"gradient",title:(0,i.__)("Gradient",a.i18n)}],f=["image","video"],k=["image"],y=e=>{const t=(0,r.useDeviceType)(),{getAttribute:n,getAttributes:s,updateAttributes:c,getAttrName:d}=(0,r.useAttributeEditHandlers)(e.attrNameTemplate),p=(0,r.useBlockSetAttributesContext)(),[h]=(0,r.useBlockHoverState)(),g=n("backgroundMediaUrl")||n("backgroundMediaUrlTablet")||n("backgroundMediaUrlMobile")||n("backgroundMediaExternalUrl")||n("backgroundMediaExternalUrlTablet")||n("backgroundMediaExternalUrlMobile"),m=[n("backgroundMediaUrl"),n("backgroundMediaUrlTablet"),n("backgroundMediaUrlMobile")].filter((e=>e)).filter(u.urlIsVideo).length>0;return(0,o.createElement)(o.Fragment,null,e.hasGradient&&(0,o.createElement)(l.AdvancedToolbarControl,{controls:b,attribute:d("backgroundColorType"),isSmall:!0}),(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Background Color",a.i18n),attribute:d("backgroundColor"),onChange:t=>{const n={[d("backgroundColor","desktop",h)]:t};e.onBackgroundEnableAttribute&&(n[e.onBackgroundEnableAttribute]=!0),p(n)},hover:"gradient"!==n("backgroundColorType")&&"all",isGradient:"gradient"===n("backgroundColorType")}),e.hasBackgroundImage&&(0,o.createElement)(l.ImageControl2,{label:e.backgroundMediaAllowVideo?(0,i.__)("Background Image or Video",a.i18n):(0,i.__)("Background Image",a.i18n),help:e.backgroundMediaAllowVideo?(0,i.__)("Use .mp4 format for videos",a.i18n):"",allowedTypes:e.backgroundMediaAllowVideo?f:k,attribute:d("backgroundMedia"),onChange:n=>{const o=(0,u.getAttributeName)(`${d("backgroundMedia")}Id`,t),a=(0,u.getAttributeName)(`${d("backgroundMedia")}Url`,t),l=(0,u.getAttributeName)(`${d("backgroundMedia")}HeightAttribute`,t),r=(0,u.getAttributeName)(`${d("backgroundMedia")}WidthAttribute`,t),i=(0,u.getAttributeName)(`${d("backgroundMedia")}Alt`,t),s=(0,u.getAttributeName)(d("backgroundMediaExternalUrl",t)),c={[o]:n.id,[a]:n.url,[l]:n.width||"",[r]:n.height||"",[i]:n.alt||"",[s]:""};e.onBackgroundEnableAttribute&&(c[e.onBackgroundEnableAttribute]=!0),p(c)},responsive:"all"}),(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Background Image Url",a.i18n),attribute:d("backgroundMediaExternalUrl"),responsive:"all",onChange:n=>{const o={[d("backgroundMediaExternalUrl",t)]:n,[(0,u.getAttributeName)(`${d("backgroundMedia")}Id`,t)]:"",[(0,u.getAttributeName)(`${d("backgroundMedia")}Url`,t)]:"",[(0,u.getAttributeName)(`${d("backgroundMedia")}HeightAttribute`,t)]:"",[(0,u.getAttributeName)(`${d("backgroundMedia")}WidthAttribute`,t)]:"",[(0,u.getAttributeName)(`${d("backgroundMedia")}Alt`,t)]:""};e.onBackgroundEnableAttribute&&(o[e.onBackgroundEnableAttribute]=!0),p(o)}}),g&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Background Media Tint Strength",a.i18n),attribute:d("backgroundTintStrength"),hover:"all",min:0,max:10,step:1,allowReset:!0,placeholder:n("backgroundColor")?"5":"0",helpTooltip:{video:"background-tint",description:(0,i.__)("Adjusts the intensity of the background media tint",a.i18n)}}),g&&m&&(0,o.createElement)(l.ImageControl2,{label:(0,i.__)("Background Video Thumbnail",a.i18n),allowedTypes:k,attribute:d("backgroundMediaThumbnail"),onChange:e=>{const n=(0,u.getAttributeName)(`${d("backgroundMediaThumbnail")}Id`,t),o=(0,u.getAttributeName)(`${d("backgroundMediaThumbnail")}Url`,t),a=(0,u.getAttributeName)(`${d("backgroundMediaThumbnail")}HeightAttribute`,t),l=(0,u.getAttributeName)(`${d("backgroundMediaThumbnail")}WidthAttribute`,t),r=(0,u.getAttributeName)(`${d("backgroundMediaThumbnail")}Alt`,t),i={[n]:e.id,[o]:e.url,[a]:e.width||"",[l]:e.height||"",[r]:e.alt||""};p(i)},responsive:"all"}),g&&!m&&(0,o.createElement)(l.AdvancedToggleControl,{help:(0,i.__)("Note: Fixed Background works on Desktop and Android devices only.",a.i18n),label:(0,i.__)("Fixed Background",a.i18n),attribute:d("fixedBackground"),helpTooltip:{video:"background-fixed",description:(0,i.__)("Keeps the background image fixed in place while scrolling",a.i18n)}}),"gradient"===n("backgroundColorType")&&e.hasBackgroundGradientBlendMode&&(0,o.createElement)(l.BlendModeControl,{label:(0,i.__)("Background Gradient Blend Mode",a.i18n),attribute:d("backgroundGradientBlendMode"),helpTooltip:{video:"background-blend-mode",description:(0,i.__)("Sets how this background gradient/image blends into the other background",a.i18n)}}),g&&(0,o.createElement)(l.ButtonIconPopoverControl,{label:(0,i.__)("Adv. Background Image Settings",a.i18n),onReset:()=>{c({BackgroundPosition:"",BackgroundPositionTablet:"",BackgroundPositionMobile:"",BackgroundRepeat:"",BackgroundRepeatTablet:"",BackgroundRepeatMobile:"",BackgroundSize:"",BackgroundSizeTablet:"",BackgroundSizeMobile:"",BackgroundCustomSize:"",BackgroundCustomSizeTablet:"",BackgroundCustomSizeMobile:"",BackgroundCustomSizeUnit:"%",BackgroundCustomSizeUnitTablet:"%",BackgroundCustomSizeUnitMobile:"%",BackgroundImageBlendMode:""})},allowReset:n("backgroundPosition")||n("BackgroundPositionTablet")||n("BackgroundPositionMobile")||n("backgroundRepeat")||n("BackgroundRepeatTablet")||n("BackgroundRepeatMobile")||n("backgroundSize")||n("BackgroundSizeTablet")||n("BackgroundSizeMobile")||n("backgroundImageBlendMode")},(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Image Position",a.i18n),attribute:d("backgroundPosition"),options:[{label:(0,i.__)("Default",a.i18n),value:""},{label:(0,i.__)("Top Left",a.i18n),value:"top left"},{label:(0,i.__)("Top Center",a.i18n),value:"top center"},{label:(0,i.__)("Top Right",a.i18n),value:"top right"},{label:(0,i.__)("Center Left",a.i18n),value:"center left"},{label:(0,i.__)("Center Center",a.i18n),value:"center center"},{label:(0,i.__)("Center Right",a.i18n),value:"center right"},{label:(0,i.__)("Bottom Left",a.i18n),value:"bottom left"},{label:(0,i.__)("Bottom Center",a.i18n),value:"bottom center"},{label:(0,i.__)("Bottom Right",a.i18n),value:"bottom right"}],helpTooltip:{video:"background-image-position",description:(0,i.__)("Chooses which part of the background image will be the focal point",a.i18n)},responsive:"all"}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Image Repeat",a.i18n),attribute:d("backgroundRepeat"),options:[{label:(0,i.__)("Default",a.i18n),value:""},{label:(0,i.__)("No-Repeat",a.i18n),value:"no-repeat"},{label:(0,i.__)("Repeat",a.i18n),value:"repeat"},{label:(0,i.__)("Repeat-X",a.i18n),value:"repeat-x"},{label:(0,i.__)("Repeat-Y",a.i18n),value:"repeat-y"}],helpTooltip:{video:"background-image-repeat",description:(0,i.__)("Covers the background with tiled images",a.i18n)},responsive:"all"}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Image Size",a.i18n),attribute:d("backgroundSize"),options:[{label:(0,i.__)("Default",a.i18n),value:""},{label:(0,i.__)("Auto",a.i18n),value:"auto"},{label:(0,i.__)("Cover",a.i18n),value:"cover"},{label:(0,i.__)("Contain",a.i18n),value:"contain"},{label:(0,i.__)("Custom",a.i18n),value:"custom"}],helpTooltip:{video:"background-image-size",description:(0,i.__)("Sets the display image size",a.i18n)},responsive:"all"}),"custom"===s()[(0,u.getAttributeName)(d("backgroundSize"),t)]&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Custom Size",a.i18n),attribute:d("backgroundCustomSize"),responsive:"all",units:["px","%","vw"],min:[0,0,0],max:[1e3,100,100]}),(0,o.createElement)(l.BlendModeControl,{label:(0,i.__)("Image Blend Mode",a.i18n),attribute:d("backgroundImageBlendMode"),helpTooltip:{video:"background-blend-mode",description:(0,i.__)("Sets how this background gradient/image blends into the other background",a.i18n)}})))};y.defaultProps={attrNameTemplate:"%s",backgroundMediaAllowVideo:!0,hasGradient:!0,hasBackgroundImage:!0,hasBackgroundGradientBlendMode:!0,onBackgroundEnableAttribute:""};var _=n(3882),C=n(3284);(0,_.addFilter)("stackable.block-component.helpers.borders","borders",((e,t,n)=>{const o=t("borderRadius"),a=t("borderRadiusTablet"),l=t("borderRadiusMobile");(o||a||l)&&((0,C.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),n({borderRadius2:o?{top:o,right:o,left:o,bottom:o}:void 0,borderRadius2Tablet:a?{top:a,right:a,left:a,bottom:a}:void 0,borderRadius2Mobile:l?{top:l,right:l,left:l,bottom:l}:void 0,borderRadius:o?"":void 0,borderRadiusTablet:a?"":void 0,borderRadiusMobile:l?"":void 0}))}));const w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:{shadow:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.12.11",attrNameTemplate:t})},S={isEligible:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)];return!!(o("shadow")&&-1!==o("shadow").indexOf("rgba")||o("shadowHover")&&-1!==o("shadowHover").indexOf("rgba")||o("shadowParentHover")&&-1!==o("shadowParentHover").indexOf("rgba"))},migrate:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a={...t},l=o("shadow"),r=o("shadowHover")||l,i=o("shadowParentHover")||r;if(o("shadow")&&-1!==o("shadow").indexOf("rgba")){const{options:e,color:t}=(0,u.extractRgba)(l),o=(0,u.rgbaToHexAlpha)(t);a[n("shadow")]=`${e} ${o}`}if(o("shadowHover")&&-1!==o("shadowHover").indexOf("rgba")){const{options:e,color:t}=(0,u.extractRgba)(r),o=(0,u.rgbaToHexAlpha)(t);a[n("shadowHover")]=`${e} ${o}`}if(o("shadowParentHover")&&-1!==o("shadowParentHover").indexOf("rgba")){const{options:e,color:t}=(0,u.extractRgba)(i),o=(0,u.rgbaToHexAlpha)(t);a[n("shadowParentHover")]=`${e} ${o}`}return a}},E={borderType:{type:"string",default:""},borderColor:{stkHover:!0,type:"string",default:""},borderWidth:{stkResponsive:!0,stkHover:!0,type:"object"},borderRadius:{stkResponsive:!0,stkHover:!0,type:"number",default:""},borderRadius2:{stkResponsive:!0,stkHover:!0,type:"object"},shadow:{stkHover:!0,type:"string",default:""}},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";w(e,t),e.add({attributes:E,attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{addBorderRadiusOverflow:o=!0,selector:a="",attrNameTemplate:l="%s",hoverSelector:r,borderRadiusSelector:i}=t;e.addBlockStyles("borderRadius",[{...n,selector:i||a,styleRule:"borderRadius",attrName:"borderRadius",key:"borderRadius",attrNameTemplate:l,format:"%spx",responsive:"all",hover:"all",hoverSelector:i?void 0:r}]),e.addBlockStyles("borderRadius2",[{...n,selector:i||a,styleRule:"borderTopLeftRadius",attrName:"borderRadius2",key:"borderTopLeftRadius2",attrNameTemplate:l,valueCallback:e=>(e="number"==typeof e?e.toString():e).startsWith("var")?e:e+"px",responsive:"all",hover:"all",valuePreCallback:e=>null==e?void 0:e.top,hoverSelector:i?void 0:r},{...n,selector:i||a,styleRule:"borderTopRightRadius",attrName:"borderRadius2",key:"borderTopRightRadius2",attrNameTemplate:l,valueCallback:e=>(e="number"==typeof e?e.toString():e).startsWith("var")?e:e+"px",responsive:"all",hover:"all",valuePreCallback:e=>null==e?void 0:e.right,hoverSelector:i?void 0:r},{...n,selector:i||a,styleRule:"borderBottomRightRadius",attrName:"borderRadius2",key:"borderBottomRightRadius2",attrNameTemplate:l,valueCallback:e=>(e="number"==typeof e?e.toString():e).startsWith("var")?e:e+"px",responsive:"all",hover:"all",valuePreCallback:e=>null==e?void 0:e.left,hoverSelector:i?void 0:r},{...n,selector:i||a,styleRule:"borderBottomLeftRadius",attrName:"borderRadius2",key:"borderBottomLeftRadius2",attrNameTemplate:l,valueCallback:e=>(e="number"==typeof e?e.toString():e).startsWith("var")?e:e+"px",responsive:"all",hover:"all",valuePreCallback:e=>null==e?void 0:e.bottom,hoverSelector:i?void 0:r}]),e.addBlockStyles("borderRadius",[{...n,selector:i||a,styleRule:"overflow",attrName:"borderRadius",key:"borderRadius-overflow",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:i?void 0:r,enabledCallback:(e,t)=>(!o||"block%s"!==l||!t.overflow)&&o,valueCallback:()=>"hidden",dependencies:["overflow"]}]),e.addBlockStyles("borderRadius2",[{...n,selector:i||a,styleRule:"overflow",attrName:"borderRadius2",key:"borderRadius2-overflow",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:i?void 0:r,enabledCallback:(e,t)=>(!o||"block%s"!==l||!t.overflow)&&o,valueCallback:()=>"hidden",dependencies:["overflow"]}]),e.addBlockStyles("shadow",[{...n,selector:a,styleRule:"boxShadow",attrName:"shadow",key:"shadow",attrNameTemplate:l,hover:"all",hoverSelector:r}]),e.addBlockStyles("borderType",[{...n,selector:a,styleRule:"borderStyle",attrName:"borderType",key:"borderType",attrNameTemplate:l}]),e.addBlockStyles("borderColor",[{...n,selector:a,styleRule:"borderColor",attrName:"borderColor",key:"borderColor",attrNameTemplate:l,hover:"all",hoverSelector:r,dependencies:["borderType"]}]),e.addBlockStyles("borderWidth",[{...n,selector:a,styleRule:"borderTopWidth",attrName:"borderWidth",key:"borderWidth-top",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:r,format:"%spx",valuePreCallback:e=>null==e?void 0:e.top,dependencies:["borderType"]},{...n,selector:a,styleRule:"borderRightWidth",attrName:"borderWidth",key:"borderWidth-right",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:r,format:"%spx",valuePreCallback:e=>null==e?void 0:e.right,dependencies:["borderType"]},{...n,selector:a,styleRule:"borderBottomWidth",attrName:"borderWidth",key:"borderWidth-bottom",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:r,format:"%spx",valuePreCallback:e=>null==e?void 0:e.bottom,dependencies:["borderType"]},{...n,selector:a,styleRule:"borderLeftWidth",attrName:"borderWidth",key:"borderWidth-left",attrNameTemplate:l,responsive:"all",hover:"all",hoverSelector:r,format:"%spx",valuePreCallback:e=>null==e?void 0:e.left,dependencies:["borderType"]}])},B=[{value:"",title:(0,i.__)("None",a.i18n)},{value:"solid",title:(0,i.__)("Solid",a.i18n)},{value:"dashed",title:(0,i.__)("Dashed",a.i18n)},{value:"dotted",title:(0,i.__)("Dotted",a.i18n)}],M=[{value:"none",title:(0,i.__)("None",a.i18n)},{value:"solid",title:(0,i.__)("Solid",a.i18n)},{value:"dashed",title:(0,i.__)("Dashed",a.i18n)},{value:"dotted",title:(0,i.__)("Dotted",a.i18n)}],A=e=>{var t;const{getAttribute:n,getAttrName:s,updateAttributes:c}=(0,r.useAttributeEditHandlers)(e.attrNameTemplate),d=(0,r.useBlockSetAttributesContext)(),{blockLayouts:u,getPlaceholder:p}=(0,r.useBlockLayoutDefaults)(),h=""!==p(`${e.placeholderTemplate}-border-style`)?M:B;(0,_.applyFilters)("stackable.block-component.helpers.borders",null,n,c);const g=(null===(t=(0,r.usePresetControls)("borderRadius"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null;return(0,o.createElement)(o.Fragment,null,e.hasBorderType&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.__)("Borders",a.i18n),controls:h,className:"ugb-border-controls__border-type-toolbar",attribute:s("borderType"),fullwidth:!0,isSmall:!0,placeholder:p(`${e.placeholderTemplate}-border-style`)}),e.hasBorderControls&&(0,o.createElement)(l.FourRangeControl,{label:(0,i.__)("Border Width",a.i18n),attribute:s("borderWidth"),responsive:"all",hover:"all",min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,placeholder:e.borderWidthPlaceholder||p(`${e.placeholderTemplate}-border-width`),changeCallback:t=>{const o=(null==t?void 0:t.top)||(null==t?void 0:t.right)||(null==t?void 0:t.bottom)||(null==t?void 0:t.left),a=`${e.placeholderTemplate}-border-style`;return!o||n("borderType")||null!=u&&u[a]||d({[s("borderType")]:"solid"}),t}}),e.hasBorderControls&&(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Border Color",a.i18n),attribute:s("borderColor"),hover:"all"}),e.hasBorderRadius&&(0,o.createElement)(l.FourRangeControl,{label:(0,i.__)("Border Radius",a.i18n),attribute:s("borderRadius2"),responsive:"all",hover:e.hasBorderRadiusHover,helpTooltip:{video:"general-border-radius",description:(0,i.__)("Adjusts the radius of block corners to make them more rounded",a.i18n)},min:0,isCorner:!0,sliderMax:e.borderSliderMax,placeholder:e.borderRadiusPlaceholder,marks:g}),(0,o.createElement)(l.ShadowControl,{label:(0,i.__)("Shadow / Outline",a.i18n),attribute:s("shadow"),hover:"all",placeholder:p(`${e.placeholderTemplate}-box-shadow`)}))};A.defaultProps={attrNameTemplate:"%s",borderTypeValue:"",hasBorderType:!0,hasBorderControls:!0,hasBorderRadius:!0,hasBorderRadiusHover:!0,borderSelector:null,borderSliderMax:50};const N={columnGap:{stkResponsive:!0,type:"number",default:""},rowGap:{stkResponsive:!0,type:"number",default:""}},I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:N,attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},R=e=>{const{placeholderTemplate:t}=e,{getPlaceholder:n}=(0,r.useBlockLayoutDefaults)();return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Column Gap",a.i18n),attribute:"columnGap",responsive:"all",min:"0",sliderMax:"50",placeholder:t?n(`${t}-column-gap`):""}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Row Gap",a.i18n),attribute:"rowGap",responsive:"all",min:"0",sliderMax:"50",placeholder:t?n(`${t}-row-gap`):""}))},P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o,editSelector:a="",saveSelector:l="",enableColumnGap:r=!0}=t;e.addBlockStyles("columnGap",[{...n,renderIn:"edit",selector:a||o,styleRule:"columnGap",attrName:"columnGap",key:"columnGap",format:"%spx",responsive:"all",enabledCallback:()=>r},{...n,renderIn:"save",selector:l||o,styleRule:"columnGap",attrName:"columnGap",key:"columnGap",format:"%spx",responsive:"all",enabledCallback:()=>r}]),e.addBlockStyles("rowGap",[{...n,renderIn:"edit",selector:a||o,styleRule:"rowGap",attrName:"rowGap",key:"rowGap",format:"%spx",responsive:"all"},{...n,renderIn:"save",selector:l||o,styleRule:"rowGap",attrName:"rowGap",key:"rowGap",format:"%spx",responsive:"all"}])},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:{height:{stkResponsive:!0,stkUnits:"px",type:"number",default:""}},attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:"3.16.0"})},H={isEligible:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a=o("height"),l=o("heightTablet"),r=o("heightMobile");return"number"==typeof a||"number"==typeof l||"number"==typeof r},migrate:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a={...t},l=o("height"),r=o("heightTablet"),i=o("heightMobile");return"number"==typeof l&&(a[n("height")]=String(l)),"number"==typeof r&&(a[n("heightTablet")]=String(r)),"number"==typeof i&&(a[n("heightMobile")]=String(i)),a}},z={width:{stkResponsive:!0,stkUnits:"px",type:"number",default:""},verticalAlign:{stkResponsive:!0,type:"string",default:""},horizontalAlign:{stkResponsive:!0,type:"string",default:""},margin:{stkResponsive:!0,stkUnits:"px",type:"object"},padding:{stkResponsive:!0,stkHover:!0,stkUnits:"px",type:"object"}},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";O(e,t),e.add({attributes:z,attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""}),e.add({attributes:{height:{stkResponsive:!0,stkUnits:"px",type:"string",default:""}},attrNameTemplate:t,versionAdded:"3.16.0",versionDeprecated:""})},D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",attrNameTemplate:a="%s",horizontalAlignRule:l="margin",verticalAlignRule:r="alignItems",verticalAlignSelectorEdit:i="",verticalAlignSelectorSave:s="",verticalAlignSelector:c="",hasPaddings:d=!0,wrapperSelector:u="",dependencies:p=[]}=t;e.addBlockStyles("height",[{...n,selector:o,styleRule:"minHeight",attrName:"height",key:"height",attrNameTemplate:a,responsive:"all",hasUnits:"px"}]),i&&e.addBlockStyles("verticalAlign",[{...n,renderIn:"edit",selector:i,styleRule:r||"alignItems",attrName:"verticalAlign",key:"verticalAlign-edit",attrNameTemplate:a,responsive:"all"}]),s&&e.addBlockStyles("verticalAlign",[{...n,renderIn:"save",selector:s,styleRule:r||"alignItems",attrName:"verticalAlign",key:"verticalAlign-save",attrNameTemplate:a,responsive:"all"}]),i||s||e.addBlockStyles("verticalAlign",[{...n,selector:c||o,styleRule:r||"alignItems",attrName:"verticalAlign",key:"verticalAlign",attrNameTemplate:a,responsive:"all"}]),e.addBlockStyles("width",[{...n,selector:u||o,styleRule:"maxWidth",attrName:"width",key:"width-maxwidth",attrNameTemplate:a,responsive:"all",hasUnits:"px"},{...n,selector:u||o,styleRule:"minWidth",attrName:"width",key:"width-minwidth",attrNameTemplate:a,responsive:"all",hover:"all",versionAdded:"3.0.0",versionDeprecated:"3.0.2",valueCallback:e=>""!==e?"auto":void 0}]),d&&e.addBlockStyles("padding",[{...n,selector:o,styleRule:"paddingTop",attrName:"padding",key:"padding-top",attrNameTemplate:a,responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.top},{...n,selector:o,styleRule:"paddingRight",attrName:"padding",key:"padding-right",attrNameTemplate:a,responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.right},{...n,selector:o,styleRule:"paddingBottom",attrName:"padding",key:"padding-bottom",attrNameTemplate:a,responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom},{...n,selector:o,styleRule:"paddingLeft",attrName:"padding",key:"padding-left",attrNameTemplate:a,responsive:"all",hover:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.left}]),e.addBlockStyles("margin",[{...n,selector:u||o,styleRule:"marginTop",attrName:"margin",key:"margin-top",attrNameTemplate:a,responsive:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.top,valueCallback:e=>e.startsWith("auto")?"auto":e},{...n,selector:u||o,styleRule:"marginRight",attrName:"margin",key:"margin-right",attrNameTemplate:a,responsive:"all",hasUnits:"px",valuePreCallback:(e,t,n)=>{const o=null==e?void 0:e.right,a=t("horizontalAlign",n);if(!t("width",n)&&void 0===o)return"";switch(a){case"flex-start":case"center":return"auto";case"flex-end":return o||0;default:return o}},valueCallback:e=>e.startsWith("auto")?"auto":e,dependencies:["horizontalAlign","width",...p]},{...n,selector:u||o,styleRule:"marginBottom",attrName:"margin",key:"margin-bottom",attrNameTemplate:a,responsive:"all",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom,valueCallback:e=>e.startsWith("auto")?"auto":e},{...n,selector:u||o,styleRule:"marginLeft",attrName:"margin",key:"margin-left",attrNameTemplate:a,responsive:"all",hasUnits:"px",valuePreCallback:(e,t,n)=>{const o=null==e?void 0:e.left,a=t("horizontalAlign",n);if(!t("width",n)&&void 0===o)return"";switch(a){case"flex-start":return o||0;case"center":case"flex-end":return"auto";default:return o}},valueCallback:e=>e.startsWith("auto")?"auto":e,dependencies:["horizontalAlign","width",...p]}]),e.addBlockStyles("verticalAlign",[{...n,selector:o,styleRule:"display",attrName:"verticalAlign",key:"verticalAlign-display",attrNameTemplate:a,responsive:"all",valueCallback:()=>"flex"}]),"margin"!==l&&e.addBlockStyles("horizontalAlign",[{...n,renderIn:"save",selector:u||o,styleRule:l||"justifyContent",attrName:"horizontalAlign",key:"horizontalAlign",attrNameTemplate:a,responsive:"all"}])},F=e=>{var t;const n=(0,r.useDeviceType)(),{getAttribute:s,getAttrName:c}=(0,r.useAttributeEditHandlers)(e.attrNameTemplate),{labelHeight:d=(0,i.__)("Min. Height",a.i18n),labelContentWidth:u=(0,i.__)("Max. Content Width",a.i18n),labelHorizontalAlign:p=(0,i.__)("Content Horizontal Align",a.i18n),labelVerticalAlign:h=(0,i.__)("Content Vertical Align",a.i18n)}=e.labels,g=(null===(t=(0,r.usePresetControls)("blockHeights"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null;return(0,o.createElement)(o.Fragment,null,e.hasMinHeight&&(0,o.createElement)(l.AdvancedRangeControl,{label:d,attribute:c("height"),responsive:"all",units:["px","rem","vh"],min:[0,0,0],sliderMax:[1e3,60,100],step:[1,1,1],allowReset:!0,placeholder:"0",helpTooltip:{video:"block-height",description:(0,i.__)("Adjusts the minimum allowable height of the block",a.i18n)},visualGuide:e.visualGuide,marks:g}),e.hasContentVerticalAlign&&(0,o.createElement)(l.AdvancedToolbarControl,{label:h,attribute:c("verticalAlign"),responsive:"all",controls:"vertical",helpTooltip:{video:"content-vertical-align",description:(0,i.__)("Sets the placement of the content to top, center or bottom. Available when the min. block height is set to higher than default.",a.i18n)},visualGuide:e.visualGuide?{...e.visualGuide,selector:(e.visualGuide.selector||"")+", .stk-%s > *"}:null}),(0,o.createElement)(l.AdvancedRangeControl,{label:u,attribute:c("width"),responsive:"all",units:["px","%","vw"],min:[0,0],sliderMax:[1500,100],step:[1,1],allowReset:!0,placeholder:"",initialPosition:"1500",helpTooltip:{video:"max-content-width",description:(0,i.__)("Adjusts the maximum allowable width of the block. The settings will depend on the block width you set on the toolbar.",a.i18n)},visualGuide:e.visualGuide}),(""!==s("width")&&"Desktop"===n||(""!==s("width")||""!==s("widthTablet"))&&"Tablet"===n||(""!==s("width")||""!==s("widthTablet")||""!==s("widthMobile"))&&"Mobile"===n)&&(0,o.createElement)(l.AdvancedToolbarControl,{label:p,attribute:c("HorizontalAlign"),responsive:"all",controls:"horizontal",helpTooltip:{video:"content-horizontal-align",description:(0,i.__)("Sets the placement of the content to left, center or right. Not available when block width is set to full width.",a.i18n)},visualGuide:e.visualGuide}))};F.defaultProps={attrNameTemplate:"%s",hasMinHeight:!0,hasContentVerticalAlign:!0,visualGuide:null,labels:{}};const $=e=>{var t;const n=(0,u.getAttributeNameFunc)(e.attrNameTemplate),{labelPaddings:s=(0,i.__)("Paddings",a.i18n),labelMargins:c=(0,i.__)("Margins",a.i18n)}=e.labels,d=e.visualGuide?{...e.visualGuide,highlight:"padding"}:null,p=e.visualGuide?{...e.visualGuide,highlight:"margin"}:null,h=(null===(t=(0,r.usePresetControls)("spacingSizes"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.FourRangeControl,{label:s,attribute:n("padding"),responsive:"all",hover:"all",units:["px","em","rem","%"],defaultLocked:!0,min:[0,0,0,0],sliderMax:[200,30,30,100],helpTooltip:{video:"inner-block-padding",description:(0,i.__)("Sets the block paddings, i.e the space between the inner columns and the block border",a.i18n)},visualGuide:d,placeholder:e.paddingPlaceholder,marks:h}),e.enableMargin&&(0,o.createElement)(l.FourRangeControl,{label:c,attribute:n("margin"),responsive:"all",units:["px","rem","%"],defaultLocked:!1,sliderMin:[-200,-15,-100],sliderMax:[200,15,100],placeholder:"0",helpTooltip:{video:"advanced-block-margin",description:(0,i.__)("Sets the block margin, i.e. the space outside the block between the block border and the next block.",a.i18n)},visualGuide:p,marks:h}))};$.defaultProps={attrNameTemplate:"%s",paddingPlaceholder:"",enableMargin:!0,visualGuide:null,labels:{}};const U={Layout:F,Spacing:$};(0,_.addFilter)("stackable.block-components.block-div.classnames.content","stackable/3.8.0",((e,t)=>((0,u.semverCompare)(t.version,"<","3.8.0")&&(e.push({"stk--block-margin-top-auto":!1,"stk--block-margin-bottom-auto":!1}),t.className.includes("stk-block-columns")||t.className.includes("stk-block-feature")||e.push({"stk--has-column-order":t.attributes.columnArrangementMobile||t.attributes.columnArrangementTablet})),e)));const W={isEligible:e=>h.isEligible("block%s")(e),migrate:e=>h.migrate("block%s")(e)},V={isEligible:e=>S.isEligible("block%s")(e),migrate:e=>S.migrate("block%s")(e)},G={isEligible:e=>H.isEligible("block%s")(e),migrate:e=>H.migrate("block%s")(e)};var j=n(78);const Z=e=>`${e.substring(0,7)}`,q=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{clientId:n}=(0,j.useBlockEditContext)(),{getEditorDom:a}=(0,C.useSelect)("stackable/editor-dom");(0,o.useEffect)((()=>{if(!t&&!e.uniqueId)return;const o=Z(n);if(e.uniqueId){if(o!==e.uniqueId){var l;const t=(null===(l=a())||void 0===l?void 0:l.querySelectorAll(`[data-block-id="${e.uniqueId}"]`))||[];Array.prototype.filter.call(t,(e=>!e.closest('[data-type="core/block"]'))).length>1&&((0,C.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,C.dispatch)("core/block-editor").updateBlockAttributes(n,{uniqueId:o}))}}else(0,C.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),(0,C.dispatch)("core/block-editor").updateBlockAttributes(n,{uniqueId:o})}),[n])},Y=(0,o.memo)((e=>{const{hasSizeSpacing:t,initialOpen:n,backgroundMediaAllowVideo:s}=e,{hasBackground:c,backgroundColorScheme:u}=(0,r.useBlockAttributesContext)((e=>({hasBackground:e.hasBackground,backgroundColorScheme:e.backgroundColorScheme}))),p=(0,r.useBlockSetAttributesContext)(),{getPlaceholder:h}=(0,r.useBlockLayoutDefaults)(),{getScheme:g,COLOR_SCHEME_OPTIONS:m,backgroundModeColorScheme:v}=(0,r.useBlockColorSchemes)();return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorBlockControls,null,t&&(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Block Size & Spacing",a.i18n),id:"spacing",initialOpen:"spacing"===n},(0,o.createElement)(U.Layout,(0,d.Z)({},e,{attrNameTemplate:"block%s",visualGuide:{highlight:"outline"}},e.sizeControlLayoutProps)),(0,o.createElement)(U.Spacing,(0,d.Z)({attrNameTemplate:"block%s",paddingPlaceholder:c?h("block-background-padding"):"",visualGuide:{highlight:"padding"}},e.sizeControlSpacingProps)))),(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Background",a.i18n),id:"background",hasToggle:!0,checked:c,onChange:e=>p({hasBackground:e}),initialOpen:"background"===n,className:"ugb-block-background-panel"},(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Color Scheme",a.i18n),value:g(u||v,{mode:"background",returnFallback:!1}),options:m,attribute:"backgroundColorScheme",changeCallback:e=>e===v?"":e,default:v,help:(0,o.createElement)(l.ColorSchemesHelp,null)}),(0,o.createElement)(y,{attrNameTemplate:"block%s",onBackgroundEnableAttribute:"hasBackground",backgroundMediaAllowVideo:s})),(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Borders & Shadows",a.i18n),id:"borders",initialOpen:"borders"===n},(0,o.createElement)(A,{attrNameTemplate:"block%s",placeholderTemplate:"block-background",borderTypeValue:h("block-background-border-style"),borderRadiusPlaceholder:h("block-background-border-radius")}))))}));Y.defaultProps={hasSizeSpacing:!0,initialOpen:!1,sizeControlLayoutProps:{}};var K=n(1991),X=n.n(K);const J=e=>e.htmlTag||"div";var Q=n(8085),ee=n(3726),te=n.n(ee);const ne=["class","className","id","ref","style","dangerouslySetInnerHTML"],oe=["customAttributes"],ae=()=>null;ae.InspectorControls=()=>{const e=(0,r.useBlockAttributesContext)((e=>e.customAttributes)),t=(0,r.useBlockSetAttributesContext)();return(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Custom Attributes",a.i18n),id:"custom-attributes"},(0,o.createElement)(l.CustomAttributesControl,{label:(0,i.__)("Custom Attributes",a.i18n),value:e,invalidHtmlAttributes:ne,onChange:e=>t({customAttributes:e})})))},ae.addAttributes=e=>{e.add({attributes:{customAttributes:{type:"array",default:[]}},versionAdded:"3.0.0",versionDeprecated:""})},ae.getCustomAttributes=e=>{if(!Array.isArray(e.customAttributes)||0===e.customAttributes.length)return{};const t=Object.fromEntries(e.customAttributes);return Object.keys(t).forEach((n=>{let o=unescape(t[n]);t[n]=o;try{const a=o.match(/%[^\%]*%/g);a&&(a.forEach((t=>{const n=t.substr(1,t.length-2);oe.includes(n)||!e.hasOwnProperty(n)||(0,Q.isUndefined)(e[n])||(o=o.replace(t,te()(e[n].toString())))})),t[n]=o)}catch{}})),(0,Q.omit)(t,ne)};const le=(0,o.memo)((e=>{var t,n,a,i;const{className:s,applyCustomAttributes:c,renderHtmlTag:p,enableVariationPicker:h,withUniqueClass:g,blockHoverClass:m,clientId:v,attributes:b,blockTag:f,version:k,...y}=e;q(b,!h);const C=Z(v),w=(0,u.useQueryLoopInstanceId)(b.uniqueId||C);let S=(0,u.getUniqueBlockClass)(b.uniqueId||C);S=w?S+`-${w}`:S,S=(0,_.applyFilters)("stackable.block-div.uniqueClass.edit",S);const E=J(b),x=c?ae.getCustomAttributes(b):{},T=X()((0,_.applyFilters)("stackable.block-components.block-div.classnames",[s,"stk-block",m,b.className,b.blockStyle,{[S]:g,"stk-block-background":b.hasBackground,[`stk--background-scheme--${b.backgroundColorScheme}`]:b.hasBackground&&b.backgroundColorScheme,"stk--block-margin-top-auto":"auto"===(null===(t=b.blockMargin)||void 0===t?void 0:t.top),"stk--block-margin-right-auto":"auto"===(null===(n=b.blockMargin)||void 0===n?void 0:n.right),"stk--block-margin-bottom-auto":"auto"===(null===(a=b.blockMargin)||void 0===a?void 0:a.bottom),"stk--block-margin-left-auto":"auto"===(null===(i=b.blockMargin)||void 0===i?void 0:i.left)}],e)),B=(0,r.useVariationPicker)(v,b.uniqueId);return B&&h?B:(0,o.createElement)(l.Div,(0,d.Z)({},y,x,{className:T,id:b.anchor||void 0,"data-block-id":b.uniqueId||C,blockTag:p?E:f,hasBackground:b.hasBackground,backgroundUrl:b.blockBackgroundMediaUrl||b.blockBackgroundMediaExternalUrl,backgroundUrlTablet:b.blockBackgroundMediaUrlTablet||b.blockBackgroundMediaExternalUrlTablet,backgroundUrlMobile:b.blockBackgroundMediaUrlMobile||b.blockBackgroundMediaExternalUrlMobile,backgroundThumbnailUrl:b.blockBackgroundMediaThumbnailUrl,backgroundThumbnailUrlTablet:b.blockBackgroundMediaThumbnailUrlTablet,backgroundThumbnailUrlMobile:b.blockBackgroundMediaThumbnailUrlMobile,backgroundColorType:b.blockBackgroundColorType},(0,_.applyFilters)("stackable.block-components.block-div.attributes",{},b)),e.children,((e,t)=>{var n;if(!e)return null;const a=null===(n=navigator)||void 0===n?void 0:n.userAgent;var l,r,i,s;return a&&-1!==a.indexOf("Firefox")?(0,o.createElement)("style",null,"auto"===(null===(l=t.blockMargin)||void 0===l?void 0:l.top)&&`[data-block="${e}"] {\n\t\t\t\tmargin-top: auto !important;\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}`,"auto"===(null===(r=t.blockMargin)||void 0===r?void 0:r.right)&&`[data-block="${e}"] {\n\t\t\t\tmargin-right: auto !important;\n\t\t\t\tmargin-left: 0;\n\t\t\t\twidth: fit-content;\n\t\t\t}`,"auto"===(null===(i=t.blockMargin)||void 0===i?void 0:i.bottom)&&`[data-block="${e}"] {\n\t\t\t\tmargin-bottom: auto !important;\n\t\t\t\tmargin-top: 0;\n\t\t\t}`,"auto"===(null===(s=t.blockMargin)||void 0===s?void 0:s.left)&&`[data-block="${e}"] {\n\t\t\t\tmargin-left: auto !important;\n\t\t\t\tmargin-right: 0;\n\t\t\t\twidth: fit-content;\n\t\t\t}`):null})(v,b))}));le.defaultProps={className:"",applyCustomAttributes:!0,renderHtmlTag:!0,enableVariationPicker:!1,withUniqueClass:!0,blockHoverClass:"",blockTag:"div"},le.Content=e=>{var t,n;const{className:a,attributes:r,applyCustomAttributes:i,blockTag:s,version:c,...p}=e,h=J(r),g=i?ae.getCustomAttributes(r):{};let m=(0,u.getUniqueBlockClass)(r.uniqueId);m=(0,_.applyFilters)("stackable.block-div.uniqueClass.save",m,r);const v=X()((0,_.applyFilters)("stackable.block-components.block-div.classnames.content",[a,"stk-block",m,r.blockStyle,{"stk-block-background":r.hasBackground,[`stk--background-scheme--${r.backgroundColorScheme}`]:r.hasBackground&&r.backgroundColorScheme,"stk--block-margin-top-auto":"auto"===(null===(t=r.blockMargin)||void 0===t?void 0:t.top),"stk--block-margin-bottom-auto":"auto"===(null===(n=r.blockMargin)||void 0===n?void 0:n.bottom),"stk--has-lightbox":r.blockLinkHasLightbox||r.linkHasLightbox}],e));return(0,o.createElement)(l.Div.Content,(0,d.Z)({},p,g,j.useBlockProps.save({className:v}),{id:r.anchor||void 0,"data-block-id":r.uniqueId||void 0,blockTag:s||h,hasBackground:r.hasBackground,backgroundUrl:r.blockBackgroundMediaUrl||r.blockBackgroundMediaExternalUrl,backgroundUrlTablet:r.blockBackgroundMediaUrlTablet||r.blockBackgroundMediaExternalUrlTablet,backgroundUrlMobile:r.blockBackgroundMediaUrlMobile||r.blockBackgroundMediaExternalUrlMobile,backgroundThumbnailUrl:r.blockBackgroundMediaThumbnailUrl,backgroundThumbnailUrlTablet:r.blockBackgroundMediaThumbnailUrlTablet,backgroundThumbnailUrlMobile:r.blockBackgroundMediaThumbnailUrlMobile,backgroundColorType:r.blockBackgroundColorType},(0,_.applyFilters)("stackable.block-components.block-div.attributes.content",{},r)))},le.Content.defaultProps={version:a.version,className:"",attributes:{},applyCustomAttributes:!0,blockTag:""},le.InspectorControls=Y,le.addAttributes=e=>{e.add({attributes:{uniqueId:{type:"string",default:""},hasBackground:{type:"boolean",default:!1},hasBorders:{type:"boolean",default:!1},backgroundColorScheme:{type:"string",default:""},blockStyle:{type:"string",default:""},modifiedBlockStyle:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""}),m(e,"block%s"),x(e,"block%s"),L(e,"block%s")},le.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(e,{...t,renderCondition:"hasBackground",attrNameTemplate:"block%s"}),T(e,{...t,attrNameTemplate:"block%s"}),D(e,{...t,attrNameTemplate:"block%s"})};const re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a";return{hasLink:{type:"boolean",default:!0},url:{type:"string",source:"attribute",selector:e,attribute:"href",default:""},newTab:{type:"boolean",source:"attribute",selector:e,attribute:"target",default:!1},rel:{type:"string",source:"attribute",selector:e,attribute:"rel",default:""},hasTitle:{type:"boolean",default:!0},title:{type:"string",source:"attribute",selector:e,attribute:"title",default:""},hasLightbox:{type:"boolean",default:!1}}},ie=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a";e.add({attributes:re(n),attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:""})},se=e=>{const{hasLink:t,hasTitle:n,hasLightbox:s,lightboxHelp:c,hasAnchorId:d=!1}=e,{getAttribute:u,updateAttributeHandler:p}=(0,r.useAttributeEditHandlers)(e.attrNameTemplate),h=u("url")||"",g=u("hasLightbox")&&h.startsWith("https://www.google.com/maps/")&&!h.startsWith("https://www.google.com/maps/embed");return(0,o.createElement)(o.Fragment,null,(t||u("hasLink"))&&(0,o.createElement)(l.LinkControl,{label:(0,i.__)("Link / URL",a.i18n),value:u("url"),onChange:p("url")}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Open in new tab",a.i18n),checked:u("newTab"),onChange:p("newTab")}),s&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Open Link in Lightbox",a.i18n),help:c,checked:u("hasLightbox"),onChange:p("hasLightbox")}),g&&(0,o.createElement)("div",{className:"stk-inspector-hint stk-inspector-hint__google-map "},(0,o.createElement)("span",null,(0,i.__)("Displaying a Google Map in a Lightbox? Use the embed iframe URL instead. Need help finding it?",a.i18n)," ",(0,o.createElement)("a",{href:"https://docs.wpstackable.com/article/528-how-to-add-a-google-map-in-a-lightbox?utm_source=inspector&utm_campaign=learnmore&utm_medium=gutenberg",target:"_blank",rel:"noreferrer"},(0,i.__)(" Check out our docs.",a.i18n))))),(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Link rel",a.i18n),help:(0,i.__)("Link relationship keywords, e.g. nofollow noreferrer prefetch",a.i18n),value:u("rel"),onChange:p("rel")}),(n||u("hasTitle"))&&(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Link Title",a.i18n),value:u("title"),onChange:p("title"),isDynamic:!0,isFormatType:!1,help:(0,i.__)("Also used for lightbox caption",a.i18n)}),d&&(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Anchor ID",a.i18n),attribute:"anchorId",help:(0,i.__)("Add an id attribute to the anchor tag.",a.i18n)}))};se.defaultProps={attrNameTemplate:"%s",hasLink:!0,hasTitle:!1,hasLightbox:!1,lightboxHelp:(0,i.__)("Supports links to images, videos, YouTube, Vimeo, and web pages that allow embedding",a.i18n)};const ce=e=>{const{hasLink:t,hasTitle:n,hasLightbox:r}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Link",a.i18n),id:"link"},(0,o.createElement)(se,{attrNameTemplate:"blockLink%s",hasLink:t,hasTitle:n,hasLightbox:r,lightboxHelp:(0,i.__)("Supports links to images, videos, YouTube, Vimeo, and web pages that allow embedding. Opens inner image block if no link is provided",a.i18n)}))))};ce.defaultProps={hasLink:!0,hasTitle:!0,hasLightbox:!0};const de=()=>null;de.Content=e=>{const{href:t,attributes:n,isHidden:a}=e;return n.blockLinkUrl?(0,o.createElement)(l.Link.Content,{className:"stk-block-link stk--transparent-overlay",href:t||n.blockLinkUrl,target:n.blockLinkNewTab?"_blank":"",rel:n.blockLinkRel||void 0,title:n.blockLinkTitle||void 0,"aria-hidden":a?"true":void 0,tabindex:a?"-1":void 0}):null},de.Content.defaultProps={className:"",attributes:{},href:"",isHidden:!0},de.InspectorControls=ce,de.addAttributes=e=>{ie(e,"blockLink%s","a.stk-block-link")},de.addStyles=()=>{};const ue=(0,o.memo)((e=>(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Styles",a.i18n),id:"styles",initialOpen:e.initialOpen},(0,o.createElement)(l.BlockStyles,{styles:e.styles}),e.children))));ue.defaultProps={initialOpen:!0,styles:[]};const pe=()=>null;pe.Content=()=>null,pe.InspectorControls=ue;var he=n(4184),ge=n.n(he);const me=(e,t)=>{const{attrNameTemplate:n="button%s"}=t;e.add({attributes:{backgroundColor2:{stkHover:!0,type:"string",default:""},backgroundGradientDirection:{stkHover:!0,type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.12.0",attrNameTemplate:n})},ve={isEligible:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)];return"gradient"===o("backgroundColorType")&&o("backgroundColor2")},migrate:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a={...t,[n("backgroundColor2")]:void 0,[n("backgroundGradientDirection")]:void 0};if("gradient"===o("backgroundColorType")){const e=o("backgroundColor"),t=o("backgroundColor2")||o("backgroundColor"),l=o("backgroundGradientDirection")||0===o("backgroundGradientDirection")?o("backgroundGradientDirection"):90,r=o("backgroundColorHover")||void 0,i=o("backgroundColor2Hover")||r,s=o("backgroundGradientDirectionHover")||0===o("backgroundGradientDirectionHover")?o("backgroundGradientDirectionHover"):90,c=o("backgroundColorParentHover")||void 0,d=o("backgroundColor2ParentHover")||c,u=o("backgroundGradientDirectionParentHover")||0===o("backgroundGradientDirectionParentHover")?o("backgroundGradientDirectionParentHover"):90,p=e&&e.includes("-gradient"),h=t&&t.includes("-gradient");e&&t&&!p&&!h&&(a[n("backgroundColor")]=`linear-gradient(${l}deg, ${e} 0%, ${t} 100%)`);const g=r&&r.includes("-gradient"),m=i&&i.includes("-gradient");r&&i&&!g&&!m&&(a[n("backgroundColorHover")]=`linear-gradient(${s}deg, ${r} 0%, ${i} 100%)`);const v=c&&c.includes("-gradient"),b=d&&d.includes("-gradient");c&&d&&!v&&!b&&(a[n("backgroundColorParentHover")]=`linear-gradient(${u}deg, ${c} 0%, ${d} 100%)`)}return a}},be={padding:{stkResponsive:!0,type:"object",stkUnits:"px"},backgroundColorType:{type:"string",default:""},backgroundColor:{stkHover:!0,type:"string",default:""},minHeight:{stkResponsive:!0,type:"number",default:""},width:{stkResponsive:!0,type:"number",default:""},fullWidth:{type:"boolean",default:""},hoverEffect:{type:"string",default:"darken"}},fe=e=>{const{hasShape:t,hasIconGap:n,hasIconPosition:s,hideControlsIfIconIsNotSet:c=!1,iconSizeProps:p={},iconControlHelp:h,initialOpen:g,hasMultiColor:m,hasGradient:v,wrapInPanels:b=!0,responsive:f="all",hover:k="all",defaultValue:y,onChangeIcon:C,iconGapPlaceholder:w="0",iconSizePlaceholderName:S="icon-size",attrNameTemplate:E}=e,x=(0,u.getAttrNameFunction)(E),T=(0,o.useMemo)((()=>(0,_.applyFilters)("stackable.block-component.icon.color-controls",null)),[]),B=(0,o.useMemo)((()=>(0,_.applyFilters)("stackable.block-component.icon.shape-color-controls",null)),[]),M=(0,o.useMemo)((()=>(0,_.applyFilters)("stackable.block-component.icon.edit.background-shape",null)),[]),A=(0,r.useBlockAttributesContext)((e=>({icon:e.icon,iconColorType:e.iconColorType,shapeColorType:e.shapeColorType}))),N=(0,r.useBlockSetAttributesContext)(),{getPlaceholder:I}=(0,r.useBlockLayoutDefaults)(),R=!c||!!A.icon,P=(0,_.applyFilters)("stackable.block-component.icon.color-types",[{value:"",title:(0,i.__)("Single",a.i18n)}],e),O=(0,_.applyFilters)("stackable.block-component.icon.shape-color-types",[{value:"",title:(0,i.__)("Single",a.i18n)}],e),H=(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.IconControl,{label:(0,_.applyFilters)("stackable.block-component.icon.label",(0,i.__)("Icon",a.i18n)),value:A.icon,defaultValue:y,onChange:e=>{C?C(e):N({icon:e})},help:h,hasPanelModifiedIndicator:!1}),e.children,a.showProNotice&&(m||v)&&(0,o.createElement)(l.ProControlButton,{type:"icon-colors"}),(0,_.applyFilters)("stackable.block-component.icon.after",null),P.length>1&&(0,o.createElement)(l.AdvancedToolbarControl,{controls:P,isSmall:!0,fullwidth:!1,attribute:"iconColorType"}),R&&(0,o.createElement)(o.Fragment,null,""===(A.iconColorType||"")&&(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Icon Color",a.i18n),attribute:x("iconColor1"),hover:k}),T&&(0,o.createElement)(T,e)),R&&(0,o.createElement)(l.AdvancedRangeControl,(0,d.Z)({label:(0,i.__)("Icon Size",a.i18n),attribute:"iconSize",min:0,sliderMax:100,step:1,allowReset:!0,placeholder:I(S)||"",responsive:f},p)),R&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Icon Opacity",a.i18n),attribute:"iconOpacity",min:0,max:1,step:.1,allowReset:!0,placeholder:"1.0",hover:k}),R&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Icon Rotation",a.i18n),attribute:"iconRotation",min:0,max:360,allowReset:!0,placeholder:"0",hover:k}),s&&(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Icon Position",a.i18n),attribute:"iconPosition",options:[{value:"",label:(0,i.__)("Left",a.i18n)},{value:"right",label:(0,i.__)("Right",a.i18n)}]}),n&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Icon Gap",a.i18n),attribute:"iconGap",min:0,sliderMax:50,allowReset:!0,placeholder:e.iconGapPlaceholderName?I(e.iconGapPlaceholderName):w})),z=(0,o.createElement)(o.Fragment,null,O.length>1&&(0,o.createElement)(l.AdvancedToolbarControl,{controls:O,isSmall:!0,fullwidth:!1,attribute:"shapeColorType"}),""===(A.shapeColorType||"")&&(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Shape Color",a.i18n),attribute:"shapeColor1",hover:"all"}),B&&(0,o.createElement)(B,e),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Shape Border Radius",a.i18n),attribute:"shapeBorderRadius",hover:k,min:0,sliderMax:100,step:1,allowReset:!0,placeholder:50}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Shape Padding",a.i18n),attribute:"shapePadding",min:0,sliderMax:150,step:1,allowReset:!0,placeholder:20}),(0,o.createElement)(l.FourRangeControl,{label:(0,i.__)("Shape Outline Width",a.i18n),units:["px"],min:0,step:1,sliderMax:20,defaultLocked:!0,attribute:"shapeOutlineWidth",responsive:f,default:"1"}),(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Shape Outline Color",a.i18n),attribute:"shapeOutlineColor",hover:k})),L=(0,o.createElement)(l.ProControl,{type:"icon-background-shape"}),D=b?l.InspectorStyleControls:o.Fragment;return(0,o.createElement)(D,null,b?(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Icon",a.i18n),id:"icon",initialOpen:g},H):H,t&&(b?(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Icon Shape",a.i18n),id:"icon-shape"},z):z),e.hasBackgroundShape&&(0,o.createElement)(o.Fragment,null,a.showProNotice&&!a.isPro&&(b?(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Background Shape",a.i18n),id:"icon-background-shape",isPremiumPanel:!0}," ",L):L),M&&(0,o.createElement)(M,e)))};fe.defaultProps={label:(0,i.__)("Icon",a.i18n),hasColor:!0,hasGradient:!0,hasShape:!0,hasShapeGradient:!0,hasBackgroundShape:!0,initialOpen:!1,hasIconGap:!1,hasIconPosition:!1,hasMultiColor:!1,defaultValue:"",onChangeIcon:null,attrNameTemplate:"%s"};const ke={icon:{type:"string",default:""},icon2:{type:"string",default:""},iconColorType:{type:"string",default:""},...(0,Q.range)(1,11).reduce(((e,t)=>({...e,[`iconColor${t}`]:{stkHover:!0,type:"string",default:""},[`iconOpacity${t}`]:{stkHover:!0,type:"number",default:""}})),{}),iconColorGradientDirection:{type:"number",default:""},iconOpacity:{stkHover:!0,type:"number",default:""},iconRotation:{stkHover:!0,type:"number",default:""},iconPosition:{type:"string",default:""},iconGap:{type:"number",default:""},shapeColorType:{type:"string",default:""},shapeColor1:{stkHover:!0,type:"string",default:""},shapeColor2:{type:"string",default:""},shapeColorGradientDirection:{type:"number",default:""},shapeBorderRadius:{stkHover:!0,type:"number",default:""},shapePadding:{type:"number",default:""},showBackgroundShape:{type:"boolean",default:!1},backgroundShape:{type:"string",default:""},backgroundShapeColor:{stkHover:!0,type:"string",default:""},backgroundShapeOpacity:{stkHover:!0,type:"number",default:""},backgroundShapeSize:{type:"number",default:""},backgroundShapeOffsetHorizontal:{type:"number",default:""},backgroundShapeOffsetVertical:{type:"number",default:""},shapeOutlineColor:{stkHover:!0,type:"string",default:""},iconSize:{stkResponsive:!0,type:"number",default:""},shapeOutlineWidth:{stkResponsive:!0,type:"object"}},ye=e=>{let{id:t}=e;const n=(0,Q.kebabCase)(t);return(0,o.createElement)("svg",{style:{height:0,width:0}},(0,o.createElement)("defs",null,(0,o.createElement)("linearGradient",{id:t,x1:"0",x2:"100%",y1:"0",y2:"0"},(0,o.createElement)("stop",{offset:"0%",style:{stopOpacity:1,stopColor:`var(--${n}-color-1)`}}),(0,o.createElement)("stop",{offset:"100%",style:{stopOpacity:1,stopColor:`var(--${n}-color-2)`}}))))},_e=()=>{},Ce=e=>{const{attrNameTemplate:t="%s",hasLinearGradient:n=!0,value:a="",defaultValue:i="",onChange:s=_e,openEvenIfUnselected:c=!1}=e,{isSelected:d}=(0,j.useBlockEditContext)(),[p,h]=(0,o.useState)(!1),g=(0,o.useRef)(null);(0,o.useEffect)((()=>{d||!p||c||h(!1)}),[d,p]),(0,o.useEffect)((()=>{const e=e=>{p&&(e.target.closest(".stk--inner-svg")&&e.stopPropagation(),e.target.closest(".stk--inner-svg")||(0,u.isElementDescendant)(g.current,e.target)||e.target.closest(".components-popover")||h(!1))};return document.body.addEventListener("click",e),()=>document.body.removeEventListener("click",e)}),[g.current,p]);const[m,v]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(!d)return void v(!1);const e=setTimeout((()=>{d&&v(d)}),1);return()=>clearTimeout(e)}),[d]);const b=(0,r.useBlockAttributesContext)((e=>e.uniqueId)),{getAttribute:f,updateAttributeHandler:k}=(0,r.useAttributeEditHandlers)(t),y=(0,o.useMemo)((()=>(0,u.getShapeSVG)(f("backgroundShape")||"blob1")),[f("backgroundShape")]),_=a||f("icon");if(!_)return null;const C=n?(0,o.renderToString)((0,o.createElement)(ye,{id:"linear-gradient-"+b,iconColor1:f("iconColor1"),iconColor2:f("iconColor2")})):void 0,w=ge()(["stk--svg-wrapper"],{"stk--show-cursor":m,"stk--has-icon2":f("icon2")});return(0,o.createElement)("span",{className:w,onClick:e=>{(m||c)&&e.target.closest(".stk--inner-svg")&&!p&&h(!p)}},_&&(0,o.createElement)(l.SvgIcon,{className:"stk--inner-svg",prependRenderString:C,value:_,ariaLabel:f("ariaLabel")}),f("showBackgroundShape")&&(0,o.createElement)(y,{className:"stk--shape-icon"}),p&&(0,o.createElement)(l.IconSearchPopover,{__hasPopover:!0,__deprecateUseRef:g,onClose:()=>h(!1),onChange:e=>{s===_e?k("icon")(e):s(e),h(!1)},defaultValue:i}),f("icon2")&&(0,o.createElement)(l.SvgIcon,{className:"stk--inner-svg stk--icon-2",prependRenderString:C,value:f("icon2"),ariaLabel:f("ariaLabel"),style:{display:"none"}}))};Ce.Content=e=>{const{attributes:t,attrNameTemplate:n,hasLinearGradient:a=!0,children:r,value:i=""}=e,s=(0,u.getAttrNameFunction)(n),c=(0,u.__getValue)(t,s,""),d=(0,u.getShapeSVG)(c("backgroundShape")||"blob1"),p=a?(0,o.renderToString)((0,o.createElement)(ye,{id:"linear-gradient-"+t.uniqueId,iconColor1:c("iconColor1"),iconColor2:c("iconColor2")})):void 0,h=ge()(["stk--svg-wrapper"],{"stk--has-icon2":c("icon2")}),g=i||c("icon");return g||c("icon2")?(0,o.createElement)("span",{className:h},g&&(0,o.createElement)(l.SvgIcon.Content,{className:"stk--inner-svg",prependRenderString:p,value:g,ariaLabel:c("ariaLabel")}),c("showBackgroundShape")&&(0,o.createElement)(d,{className:"stk--shape-icon"}),c("icon2")&&(0,o.createElement)(l.SvgIcon.Content,{className:"stk--inner-svg stk--icon-2",prependRenderString:p,value:c("icon2"),ariaLabel:c("ariaLabel"),style:{display:"none"}}),r):null},Ce.InspectorControls=fe,Ce.addAttributes=e=>{e.add({attributes:ke,versionAdded:"3.0.0",versionDeprecated:""})},Ce.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{hasIconGap:o=!0,selector:a="",hoverSelector:l="",dependencies:r=[]}=t,i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a;const l=`${t||o} .stk--inner-svg svg:last-child`;return n.length?[l,l+` :is(${n.join(",")})`]:l},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return i(e,t,n,a+":hover")},c=`${a} .stk--inner-svg`,d=`${l} .stk--inner-svg`;e.addBlockStyles("iconSize",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>s(e,l),styleRule:"height",attrName:"iconSize",key:"iconSize",responsive:"all",format:"%spx"}]),e.addBlockStyles("iconSize",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>s(e,l),styleRule:"width",attrName:"iconSize",key:"iconSize-width",responsive:"all",format:"%spx"}]),e.addBlockStyles("iconOpacity",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>s(e,l),styleRule:"opacity",attrName:"iconOpacity",key:"iconOpacity",hover:"all"}]),e.addBlockStyles("iconRotation",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>s(e,l),styleRule:"transform",attrName:"iconRotation",key:"iconRotation",hover:"all",format:"rotate(%sdeg)"}]),o&&e.addBlockStyles("iconGap",[{...n,selectorCallback:e=>i(e),hoverSelectorCallback:e=>i(e,l),styleRuleCallback:e=>"right"===e("iconPosition")?"marginInlineStart":"marginInlineEnd",attrName:"iconGap",key:"iconGap",format:"%spx",dependencies:["iconPosition",...r]}]),e.addBlockStyles("iconColor1",[{...n,selectorCallback:e=>i(e,a,["g","path","rect","polygon","ellipse"]),hoverSelectorCallback:e=>s(e,l,["g","path","rect","polygon","ellipse"]),styleRule:"fill",attrName:"iconColor1",key:"iconColor1-fill",valuePreCallback:(e,t,n,o)=>"gradient"===t("iconColorType")&&t("iconColor1","desktop",o)&&t("iconColor2","desktop",o)?`url(#linear-gradient-${t("uniqueId")})`:t("iconColorType")?void 0:e,dependencies:["iconColorType","iconColor1","iconColor2","uniqueId",...r],hover:"all"}]),e.addBlockStyles("iconColorGradientDirection",[{...n,selectorCallback:e=>`${a} #linear-gradient-${e("uniqueId")}`,styleRule:"transform",format:"rotate(%sdeg)",attrName:"iconColorGradientDirection",key:"iconColorGradientDirection",hoverSelectorCallback:e=>`${a}:hover #linear-gradient-${e("uniqueId")}`}]),e.addBlockStyles("iconColor1",[{...n,selectorCallback:e=>`${a} #linear-gradient-${e("uniqueId")}`,styleRuleCallback:e=>`--linear-gradient-${e("uniqueId")}-color-1`,attrName:"iconColor1",key:"iconColor1",valuePreCallback:(e,t,n,o)=>{if("gradient"===t("iconColorType")&&t("iconColor1","desktop",o)&&t("iconColor2","desktop",o))return e},hoverSelectorCallback:e=>`${a}:hover #linear-gradient-${e("uniqueId")}`,dependencies:["iconColorType","iconColor1","iconColor2",...r]}]),e.addBlockStyles("iconColor2",[{...n,selectorCallback:e=>`${a} #linear-gradient-${e("uniqueId")}`,styleRuleCallback:e=>`--linear-gradient-${e("uniqueId")}-color-2`,attrName:"iconColor2",key:"iconColor2",valuePreCallback:(e,t,n,o)=>{if("gradient"===t("iconColorType")&&t("iconColor1","desktop",o)&&t("iconColor2","desktop",o))return e},hoverSelectorCallback:e=>`${a}:hover #linear-gradient-${e("uniqueId")}`,dependencies:["iconColorType","iconColor1","iconColor2",...r]}]),e.addBlockStyles("shapeColor1",[{...n,selector:c,hoverSelector:d,styleRule:"backgroundColor",attrName:"shapeColor1",key:"shapeColor1",hover:"all",valuePreCallback:(e,t,n,o)=>{const a=t("shapeColorType");if("normal"===o||"gradient"!==a)return e},dependencies:["shapeColorType","shapeColor2","shapeColorType","shapeGradientDirection",...r]}]),e.addBlockStyles("shapeBorderRadius",[{...n,selector:c,hoverSelector:d,styleRule:"borderRadius",attrName:"shapeBorderRadius",key:"shapeBorderRadius",format:"%s%",hover:"all"}]),e.addBlockStyles("shapePadding",[{...n,selector:c,hoverSelector:d,styleRule:"padding",attrName:"shapePadding",key:"shapePadding",format:"%spx"}]),e.addBlockStyles("shapeOutlineColor",[{...n,selector:c,hoverSelector:d,styleRule:"borderColor",attrName:"shapeOutlineColor",key:"shapeOutlineColor",hover:"all"}]),e.addBlockStyles("borderStyle",[{...n,selector:c,hoverSelector:d,styleRule:"borderStyle",attrName:"borderStyle",key:"borderStyle",valuePreCallback:(e,t,n,o)=>{var a,l,r,i;if(null!==(a=t("shapeOutlineWidth","desktop",o))&&void 0!==a&&a.top&&null!==(l=t("shapeOutlineWidth","desktop",o))&&void 0!==l&&l.right&&null!==(r=t("shapeOutlineWidth","desktop",o))&&void 0!==r&&r.bottom&&null!==(i=t("shapeOutlineWidth","desktop",o))&&void 0!==i&&i.left)return"solid"},hover:"all",dependencies:["shapeOutlineWidth",...r]}]),e.addBlockStyles("shapeOutlineWidth",[{...n,selector:c,hoverSelector:d,styleRule:"borderTopWidth",attrName:"shapeOutlineWidth",key:"shapeOutlineWidth-top",responsive:"all",format:"%spx",valuePreCallback:e=>null==e?void 0:e.top}]),e.addBlockStyles("shapeOutlineWidth",[{...n,selector:c,hoverSelector:d,styleRule:"borderRightWidth",attrName:"shapeOutlineWidth",key:"shapeOutlineWidth-right",responsive:"all",format:"%spx",valuePreCallback:e=>null==e?void 0:e.right}]),e.addBlockStyles("shapeOutlineWidth",[{...n,selector:c,hoverSelector:d,styleRule:"borderBottomWidth",attrName:"shapeOutlineWidth",key:"shapeOutlineWidth-bottom",responsive:"all",format:"%spx",valuePreCallback:e=>null==e?void 0:e.bottom}]),e.addBlockStyles("shapeOutlineWidth",[{...n,selector:c,hoverSelector:d,styleRule:"borderLeftWidth",attrName:"shapeOutlineWidth",key:"shapeOutlineWidth-left",responsive:"all",format:"%spx",valuePreCallback:e=>null==e?void 0:e.left}]),(0,_.doAction)("stackable.block-component.icon.indiv-icon-style.addStyles",e)};const we=e=>{const t=(0,u.getAttrNameFunction)("link%s")("hasLink"),n=(0,r.useBlockAttributesContext)((e=>e[t])),s=(0,r.useBlockSetAttributesContext)(),c=e.isAdvancedTab?l.InspectorAdvancedControls:l.InspectorStyleControls;return(0,o.createElement)(c,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Link",a.i18n),id:"link",hasToggle:e.hasToggle,checked:e.hasToggle?n:void 0,onChange:e.hasToggle?e=>{s({[t]:e})}:void 0},(0,o.createElement)(se,{attrNameTemplate:"link%s",hasLightbox:!0,hasAnchorId:e.hasAnchorId})))};we.defaultProps={hasToggle:!1,isAdvancedTab:!1,hasAnchorId:!1};const Se=e=>(0,r.useBlockAttributesContext)((e=>e.linkHasLink))?(0,o.createElement)(l.Link,(0,d.Z)({},e.linkProps,{className:e.className}),e.children):e.children;Se.defaultProps={className:"",linkProps:{}},Se.Content=e=>{const{linkProps:t={},attributes:n}=e;return n.linkHasLink?(0,o.createElement)(l.Link.Content,(0,d.Z)({},t,{className:e.className,href:n.linkUrl||void 0,target:n.linkNewTab?"_blank":void 0,rel:n.linkRel||void 0,title:n.linkTitle||void 0}),e.children):e.children},Se.InspectorControls=we,Se.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{attrNameTemplate:n="link%s",selector:o="a"}=t;ie(e,n,o)};const Ee=e=>(0,o.createElement)(Ce.InspectorControls,{hasColor:e.hasColor,hasGradient:!1,hasShape:!1,hasBackgroundShape:!1,hasIconGap:e.hasIconGap,hasIconPosition:e.hasIconPosition,defaultValue:e.defaultValue,iconSizePlaceholderName:"button-icon-size",iconGapPlaceholderName:e.iconGapPlaceholderName});Ee.defaultProps={hasIconGap:!0,hasIconPosition:!0,hasColor:!0,defaultValue:""};const xe=Se.InspectorControls,Te=[{label:(0,i.__)("None",a.i18n),value:""},{label:(0,i.__)("Darken",a.i18n),value:"darken"},{label:(0,i.__)("Lift",a.i18n),value:"lift"},{label:(0,i.__)("Scale",a.i18n),value:"scale"},{label:(0,i.__)("Lift & Scale",a.i18n),value:"lift-scale"},{label:(0,i.__)("Lift More",a.i18n),value:"lift-more"},{label:(0,i.__)("Scale More",a.i18n),value:"scale-more"},{label:(0,i.__)("Lift & Scale More",a.i18n),value:"lift-scale-more"}],Be=e=>{const{hasIconColor:t,hasTextColor:n,attrNameTemplate:s="button%s"}=e,c=(0,u.getAttributeNameFunc)(s),d=(0,r.useBlockAttributesContext)((e=>e[c("backgroundColorType")]));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.AdvancedToolbarControl,{controls:[{value:"",title:(0,i.__)("Single",a.i18n)},{value:"gradient",title:(0,i.__)("Gradient",a.i18n)}],attribute:c("backgroundColorType"),isSmall:!0}),(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Button Color",a.i18n),attribute:c("backgroundColor"),hover:"all",isGradient:"gradient"===d}),n&&(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Text Color",a.i18n),attribute:"textColor1",hover:"all"}),t&&(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Icon Color",a.i18n),attribute:"iconColor1",hover:"all"}))},Me=e=>(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Button Colors",a.i18n),id:"button-colors"},(0,o.createElement)(Be,e)));Me.defaultProps={hasTextColor:!0,hasIconColor:!1};const Ae=e=>{var t;const{attrNameTemplate:n="button%s",paddingPlaceholderName:s="button-padding"}=e,c=(0,u.getAttributeNameFunc)(n),{getPlaceholder:d}=(0,r.useBlockLayoutDefaults)(),p=d(s,{single:!1}),h=(null===(t=(0,r.usePresetControls)("spacingSizes"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null;return(0,o.createElement)(o.Fragment,null,e.hasFullWidth&&(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Full Width",a.i18n),attribute:c("fullWidth")}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Min. Button Height",a.i18n),responsive:"all",attribute:c("minHeight"),min:0,max:100,placeholder:d("button-min-height")}),e.hasWidth&&!e.hasFullWidth&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Button Width",a.i18n),responsive:"all",attribute:c("width"),min:0,max:100,placeholder:""}),(0,o.createElement)(l.FourRangeControl,{label:(0,i.__)("Button Padding",a.i18n),units:["px","%"],responsive:"all",defaultLocked:!0,attribute:c("padding"),sliderMin:[0,0],sliderMax:[40,100],vhMode:!0,placeholderTop:(null==p?void 0:p.top)||"",placeholderRight:(null==p?void 0:p.right)||"",placeholderBottom:(null==p?void 0:p.bottom)||"",placeholderLeft:(null==p?void 0:p.left)||"",helpTooltip:{title:(0,i.__)("Button padding",a.i18n),description:(0,i.__)("Adjusts the space between the button text and button borders",a.i18n)},marks:h}))},Ne=e=>(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Button Size & Spacing",a.i18n),id:"button"},(0,o.createElement)(Ae,e)));Ne.defaultProps={hasWidth:!1};const Ie=e=>{const t=(0,r.useBlockAttributesContext)((e=>e.className)),{getPlaceholder:n}=(0,r.useBlockLayoutDefaults)(),a=n("is-style-ghost"===t?"button-ghost-border-width":"button-border-width");return(0,o.createElement)(A,(0,d.Z)({hasBorderRadiusHover:!1,borderSelector:e.borderSelector,borderRadiusPlaceholder:e.placeholder,borderTypeValue:n("button-border-style"),borderWidthPlaceholder:a,placeholderTemplate:"button"},e))},Re=e=>(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Button Borders & Shadows",a.i18n),id:"button-borders"},(0,o.createElement)(Ie,(0,d.Z)({attrNameTemplate:"button%s",hasBorderRadiusHover:!1},e))));Re.defaultProps={borderSelector:""};const Pe=e=>{const{borderSelector:t,hasTextColor:n,hasIcon:a,hasLink:l,hasIconGap:r,hasIconPosition:i,borderRadiusPlaceholder:s,hasFullWidth:c,iconGapPlaceholderName:u,...p}=e,{clientId:h}=(0,j.useBlockEditContext)(),{parentBlock:g}=(0,C.useSelect)((e=>{const{getBlockRootClientId:t,getBlock:n}=e("core/block-editor");return{parentBlock:n(t(h))}}),[h]),m=(0,_.applyFilters)("stackable.edit.button.enable-link",!0,g);return(0,o.createElement)(o.Fragment,null,l&&m&&(0,o.createElement)(xe,{hasAnchorId:!0}),(0,o.createElement)(Me,(0,d.Z)({hasTextColor:n},p)),(0,o.createElement)(Ne,{hasFullWidth:c}),(0,o.createElement)(Re,{borderSelector:t,placeholder:s}),a&&(0,o.createElement)(Ee,{hasIconGap:r,hasIconPosition:i,iconGapPlaceholderName:u}))};Pe.defaultProps={hasIcon:!0,hasLink:!0,borderSelector:"",hasTextColor:!0,hasIconGap:!0,hasIconPosition:!0,hasFullWidth:!1,iconGapPlaceholderName:void 0},Pe.Link=xe,(Pe.Colors=Me).Controls=Be,(Pe.Size=Ne).Controls=Ae,(Pe.Borders=Re).Controls=Ie,Pe.Icon=Ee,Pe.HoverEffects=()=>(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Hover Effect",a.i18n),attribute:"buttonHoverEffect",options:Te,default:"darken",helpTooltip:{video:"button-hover-effect",title:(0,i.__)("Hover effect",a.i18n),description:(0,i.__)("Triggers animation or effects when you mouse over",a.i18n)}});const Oe=e=>ge()("stk-button",{[`stk--hover-effect-${e.buttonHoverEffect}`]:e.buttonHoverEffect}),He=e=>{const{className:t,buttonProps:n,linkTrigger:a}=e,l=(0,r.useBlockAttributesContext)((e=>({buttonHoverEffect:e.buttonHoverEffect,iconPosition:e.iconPosition})));return(0,o.createElement)(Se,{className:ge()([t,Oe(l)]),linkProps:n,linkTrigger:a},"right"===l.iconPosition&&e.children,(0,o.createElement)(Ce,{hasLinearGradient:!1}),"right"!==l.iconPosition&&e.children)};He.defaultProps={className:"",buttonProps:{}},He.Content=e=>{const{className:t,attributes:n,buttonProps:a}=e;return(0,o.createElement)(Se.Content,{linkProps:a,attributes:n,className:ge()([t,Oe(n)])},"right"===n.iconPosition&&e.children,(0,o.createElement)(Ce.Content,{attributes:n,hasLinearGradient:!1}),"right"!==n.iconPosition&&e.children)},He.Content.defaultProps={className:"",buttonProps:{}},He.InspectorControls=Pe,He.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n,attrNameTemplate:o="button%s"}=t;me(e,t),e.add({attributes:be,attrNameTemplate:o,versionAdded:"3.0.0",versionDeprecated:""}),x(e,o),Se.addAttributes(e,{selector:n}),Ce.addAttributes(e)},He.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",attrNameTemplate:a="button%s",borderSelector:l=`${o}:before`,borderHoverSelector:r=`${o}:hover:before`,backgroundSelector:i=`${o}:after`,hoverSelector:s,dependencies:c=[]}=t;e.addBlockStyles("fullWidth",[{...n,selector:["",".stk-button"],styleRule:"width",attrName:"fullWidth",attrNameTemplate:a,key:"buttonFullWidth",valueCallback:()=>"100%",format:"%spx",enabledCallback:e=>e("fullWidth")}]),e.addBlockStyles("fullWidth",[{...n,renderIn:"save",selector:"",styleRule:"flex",attrName:"fullWidth",attrNameTemplate:a,key:"buttonFullWidth-save",valueCallback:()=>"1 0 var(--stk-button-group-flex-wrap, 0)",enabledCallback:e=>e("fullWidth")}]),e.addBlockStyles("fullWidth",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"flex",attrName:"fullWidth",attrNameTemplate:a,key:"buttonFullWidth-flex",valueCallback:()=>"1 0 var(--stk-button-group-flex-wrap, 0)",enabledCallback:e=>e("fullWidth")}]),e.addBlockStyles("minHeight",[{...n,selector:o,responsive:"all",styleRule:"minHeight",attrName:"minHeight",attrNameTemplate:a,key:"buttonMinHeight",format:"%spx"}]),e.addBlockStyles("width",[{...n,selector:o,responsive:"all",styleRule:"width",attrName:"width",attrNameTemplate:a,key:"buttonWidth",format:"%spx",enabledCallback:e=>!e("fullWidth"),dependencies:["fullWidth",...c]}]),e.addBlockStyles("padding",[{...n,selector:o,responsive:"all",styleRule:"paddingTop",attrName:"padding",attrNameTemplate:a,key:"buttonPadding-top",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.top}]),e.addBlockStyles("padding",[{...n,selector:o,responsive:"all",styleRule:"paddingRight",attrName:"padding",attrNameTemplate:a,key:"buttonPadding-right",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.right}]),e.addBlockStyles("padding",[{...n,selector:o,responsive:"all",styleRule:"paddingBottom",attrName:"padding",attrNameTemplate:a,key:"buttonPadding-bottom",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.bottom}]),e.addBlockStyles("padding",[{...n,selector:o,responsive:"all",styleRule:"paddingLeft",attrName:"padding",attrNameTemplate:a,key:"buttonPadding-left",hasUnits:"px",valuePreCallback:e=>null==e?void 0:e.left}]),e.addBlockStyles("backgroundColor",[{...n,selector:o,styleRule:"background",attrName:"backgroundColor",attrNameTemplate:a,key:"buttonBackgroundColor",dependencies:["backgroundColorType",...c]}]),e.addBlockStyles("backgroundColor",[{...n,selector:i||`${o}:after`,styleRule:"background",attrName:"backgroundColor",attrNameTemplate:a,key:"buttonBackgroundColor-after",hover:"all",hoverSelector:s||`${o}:hover:after`,valuePreCallback:(e,t,n,o)=>{if("normal"!==o)return e},dependencies:["backgroundColorType",...c]}]),e.addBlockStyles("backgroundColor",[{...n,selector:i||`${o}:after`,styleRule:"opacity",attrName:"backgroundColor",attrNameTemplate:a,key:"buttonBackgroundColor-opacity",hover:"all",hoverSelector:s||`${o}:hover:after`,valuePreCallback:(e,t,n,o)=>{if("normal"===o)return;const a=t("backgroundColor","desktop",o);return void 0!==a&&""!==a?1:void 0}}]),T(e,{...n,selector:l,addBorderRadiusOverflow:!1,hoverSelector:r,borderRadiusSelector:o,attrNameTemplate:a}),Ce.addStyles(e,{...n})};const ze=()=>a.showProNotice||a.isPro?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Conditional Display",a.i18n),id:"conditional-display",isPremiumPanel:!a.isPro},!a.isPro&&(0,o.createElement)(l.ProControl,{type:"conditional-display"}),a.isPro&&(0,_.applyFilters)("stackable.block-component.conditional-display.control",null)))):null;ze.defaultProps={mainBlockClass:""};const Le=()=>null;Le.InspectorControls=ze,Le.addAttributes=e=>{e.add({attributes:{displayCondition:{type:"object",default:{}}},versionAdded:"3.0.0",versionDeprecated:""})};const De={isEligible:e=>h.isEligible("container%s")(e),migrate:e=>h.migrate("container%s")(e)},Fe={isEligible:e=>S.isEligible("container%s")(e),migrate:e=>S.migrate("container%s")(e)},$e=e=>{const t=(0,r.useBlockAttributesContext)((e=>({uniqueId:e.uniqueId,hasContainer:e.hasContainer,triggerHoverState:e.triggerHoverState,containerBackgroundMediaUrl:e.containerBackgroundMediaUrl,containerBackgroundMediaUrlTablet:e.containerBackgroundMediaUrlTablet,containerBackgroundMediaUrlMobile:e.containerBackgroundMediaUrlMobile,containerBackgroundMediaExternalUrl:e.containerBackgroundMediaExternalUrl,containerBackgroundMediaExternalUrlTablet:e.containerBackgroundMediaExternalUrlTablet,containerBackgroundMediaExternalUrlMobile:e.containerBackgroundMediaExternalUrlMobile,containerBackgroundColorType:e.containerBackgroundColorType,containerColorScheme:e.containerColorScheme}))),n=(0,u.useQueryLoopInstanceId)(t.uniqueId);let a=(0,u.getUniqueBlockClass)(t.uniqueId);a=n?a+`-${n}`:a;const i=(0,_.applyFilters)("stackable.container-div.uniqueClass.edit",`${a}-container`,a),s=ge()([e.className,"stk-container",i],{"stk-hover-parent":t.hasContainer&&t.triggerHoverState,"stk--no-background":!t.hasContainer,"stk--no-padding":!t.hasContainer,[`stk--container-scheme--${t.containerColorScheme}`]:t.hasContainer&&t.containerColorScheme});return(0,o.createElement)(l.Div,(0,d.Z)({},e,{className:s,hasBackground:t.hasContainer,backgroundUrl:t.containerBackgroundMediaUrl||t.containerBackgroundMediaExternalUrl,backgroundUrlTablet:t.containerBackgroundMediaUrlTablet||t.containerBackgroundMediaExternalUrlTablet,backgroundUrlMobile:t.containerBackgroundMediaUrlMobile||t.containerBackgroundMediaExternalUrlMobile,backgroundColorType:t.containerBackgroundColorType}))};$e.defaultProps={className:""},$e.Content=e=>{const{attributes:t,...n}=e,a=(0,_.applyFilters)("stackable.container-div.uniqueClass.save",`stk-${t.uniqueId}-container`,`stk-${t.uniqueId}`,t),r=ge()([e.className,"stk-container",a],{"stk-hover-parent":t.hasContainer&&t.triggerHoverState,"stk--no-background":!t.hasContainer,"stk--no-padding":!t.hasContainer,[`stk--container-scheme--${t.containerColorScheme}`]:t.hasContainer&&t.containerColorScheme});return(0,o.createElement)(l.Div.Content,(0,d.Z)({},n,{className:r,hasBackground:t.hasContainer,backgroundUrl:t.containerBackgroundMediaUrl||t.containerBackgroundMediaExternalUrl,backgroundUrlTablet:t.containerBackgroundMediaUrlTablet||t.containerBackgroundMediaExternalUrlTablet,backgroundUrlMobile:t.containerBackgroundMediaUrlMobile||t.containerBackgroundMediaExternalUrlMobile,backgroundColorType:t.containerBackgroundColorType}))},$e.Content.defaultProps={className:"",attributes:{}},$e.InspectorControls=e=>{const{hasContentVerticalAlign:t=!1}=e,{hasContainer:n,containerColorScheme:s}=(0,r.useBlockAttributesContext)((e=>({hasContainer:e.hasContainer,containerColorScheme:e.containerColorScheme}))),c=(0,r.useBlockSetAttributesContext)(),{getPlaceholder:d}=(0,r.useBlockLayoutDefaults)(),{getScheme:u,COLOR_SCHEME_OPTIONS:p,containerModeColorScheme:h}=(0,r.useBlockColorSchemes)();return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorBlockControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Container",a.i18n),id:"container-size",hasToggle:!0,checked:n,onChange:e=>c({hasContainer:e})},(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Color Scheme",a.i18n),value:u(s||h,{returnFallback:!1}),options:p,attribute:"containerColorScheme",changeCallback:e=>e===h?"":e,default:h,help:(0,o.createElement)(l.ColorSchemesHelp,null)}),(0,o.createElement)(U.Layout,{attrNameTemplate:"container%s",enableMargin:!1,labels:{labelHeight:(0,i.__)("Container Min. Height",a.i18n),labelContentWidth:(0,i.__)("Max Container Width",a.i18n),labelHorizontalAlign:(0,i.__)("Container Horizontal Align",a.i18n),labelVerticalAlign:(0,i.__)("Container Vertical Align",a.i18n)},hasContentVerticalAlign:t,visualGuide:{selector:".stk-%s-container",highlight:"outline"}}),(0,o.createElement)(U.Spacing,{attrNameTemplate:"container%s",enableMargin:!1,paddingPlaceholder:d("container-padding"),visualGuide:{selector:".stk-%s-container"}}))),n&&(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Container Background",a.i18n),id:"container"},(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Trigger hover state on nested blocks",a.i18n),attribute:"triggerHoverState",defaultValue:!0}),(0,o.createElement)(y,{attrNameTemplate:"container%s"})),(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Container Borders & Shadow",a.i18n),id:"container-size"},(0,o.createElement)(A,{attrNameTemplate:"container%s",placeholderTemplate:"container",borderTypeValue:d("container-border-style"),borderRadiusPlaceholder:d("container-border-radius")}))))},$e.addAttributes=e=>{e.add({attributes:{hasContainer:{type:"boolean",default:!1},triggerHoverState:{type:"boolean",default:!0},containerColorScheme:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),m(e,"container%s"),x(e,"container%s"),L(e,"container%s")},$e.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{backgroundSelector:n=".%s-container",borderSelector:o=".%s-container",sizeSelector:a=".%s-container",sizeVerticalAlignRule:l=null,sizeHorizontalAlignRule:r="margin",wrapperSelector:i="",sizeVerticalAlignSelector:s=""}=t;v(e,{...t,renderCondition:"hasContainer",attrNameTemplate:"container%s",selector:n}),T(e,{...t,renderCondition:"hasContainer",attrNameTemplate:"container%s",selector:o,hoverSelector:`${o}:hover`}),D(e,{...t,attrNameTemplate:"container%s",selector:a,verticalAlignRule:l,verticalAlignSelector:s,horizontalAlignRule:r,wrapperSelector:i})};var Ue=n(376);const We=()=>[ge()(["stk-column"]),"stk-column-wrapper"],Ve=(0,o.memo)((e=>{const{isHovered:t,clientId:n,parentBlock:a,...r}=e,i=((e,t)=>({onChangeDesktop:e=>{const n=(null==t?void 0:t.innerBlocks)||[];if(n.length){const[t,o]=e.reduce(((t,o,a)=>{const l=n[a].clientId;return t[0].push(l),t[1][l]={columnWidth:o,columnAdjacentCount:e.length,columnWrapDesktop:!1},t}),[[],{}]);(0,C.dispatch)("core/block-editor").updateBlockAttributes(t,o,!0)}},onChangeDesktopWrap:(n,o)=>{const a=[e],l={[e]:{columnWidth:n}},r=(null==t?void 0:t.innerBlocks)||[];if(r.length){const e=(0,Ue.w)(o);o.forEach(((t,n)=>{const o=r[n].clientId;a.push(o),l[o]={columnWidth:t,columnAdjacentCount:e.filter((t=>t===e[n])).length,columnWrapDesktop:!0}}))}(0,C.dispatch)("core/block-editor").updateBlockAttributes(a,l,!0)},onChangeTablet:(n,o)=>{const a=[e],l={[e]:{columnWidthTablet:n}},r=(null==t?void 0:t.innerBlocks)||[];if(r.length){const e=(0,Ue.w)(o);o.forEach(((t,n)=>{const o=r[n].clientId;a.push(o),l[o]={columnWidthTablet:t,columnAdjacentCountTablet:e.filter((t=>t===e[n])).length}}))}(0,C.dispatch)("core/block-editor").updateBlockAttributes(a,l,!0)},onChangeMobile:(n,o)=>{const a=[e],l={[e]:{columnWidthMobile:n}},r=(null==t?void 0:t.innerBlocks)||[];if(r.length){const e=(0,Ue.w)(o);o.forEach(((t,n)=>{const o=r[n].clientId;a.push(o),l[o]={columnWidthMobile:t,columnAdjacentCountMobile:e.filter((t=>t===e[n])).length}}))}(0,C.dispatch)("core/block-editor").updateBlockAttributes(a,l,!0)},onResetDesktop:()=>{const e=(null==t?void 0:t.innerBlocks)||[];if(e.length){const t=e.map((e=>e.clientId));(0,C.dispatch)("core/block-editor").updateBlockAttributes(t,{columnWidth:""})}},onResetTabletMobile:()=>{const e=(null==t?void 0:t.innerBlocks)||[];if(e.length){const t=e.map((e=>e.clientId));(0,C.dispatch)("core/block-editor").updateBlockAttributes(t,{columnWidthTablet:"",columnWidthMobile:""})}}}))(n,a);return(0,o.createElement)(l.ResizableColumn,(0,d.Z)({showHandle:t,isHovered:t,columnWidth:e.columnWidth,columnWidthTablet:e.columnWidthTablet,columnWidthMobile:e.columnWidthMobile},i,r))}));Ve.defaultProps={isHovered:!0},Ve.InspectorControls=null,Ve.addAttributes=e=>{e.add({attributes:{columnWidth:{stkResponsive:!0,type:"number",default:""},columnAdjacentCount:{stkResponsive:!0,type:"number",default:""},columnWrapDesktop:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""})},Ve.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",dependencies:a=[]}=t;e.addBlockStyles("columnWidth",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"flex",attrName:"columnWidth",key:"columnWidth-flex",responsive:["desktopTablet","tabletOnly","mobile"],format:"1 1 %s%",dependencies:["columnAdjacentCount",...a],valueCallback:(e,t,n)=>{if("desktop"===n)return e;const o=t("columnAdjacentCount",n);return o?e.replace(/([\d\.]+%)$/,`calc($1 - var(--stk-column-gap, 0px) * ${o-1} / ${o} )`):e}}]),e.addBlockStyles("columnWidth",[{...n,renderIn:"edit",selectorCallback:(e,t,n)=>`[data-block="${n}"]`,styleRule:"maxWidth",attrName:"columnWidth",key:"columnWidth-maxwidth",responsive:["desktopTablet","tabletOnly","mobile"],format:"%s%",dependencies:["columnAdjacentCount",...a],valueCallback:(e,t,n)=>{const o=t("columnAdjacentCount",n);return o?e.replace(/([\d\.]+%)$/,`calc($1 - var(--stk-column-gap, 0px) * ${o-1} / ${o} )`):e}}]),e.addBlockStyles("columnWidth",[{...n,renderIn:"save",selector:o,styleRule:"flex",attrName:"columnWidth",key:"columnWidth-save-flex",responsive:["desktopTablet","tabletOnly","mobile"],format:"var(--stk-flex-grow, 1) 1 %s%",dependencies:["columnAdjacentCount",...a],valueCallback:(e,t,n)=>{const o="desktop"!==n||t("columnWrapDesktop")?e.replace(/^var(--stk-flex-grow, 1) 1/,"0 1"):e,a=t("columnAdjacentCount",n);return a?o.replace(/([\d\.]+%)$/,`calc($1 - var(--stk-column-gap, 0px) * ${a-1} / ${a} )`):o}}])};const Ge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:{columnGap:{stkResponsive:!0,type:"number",default:""},rowGap:{stkResponsive:!0,type:"number",default:""},columnSpacing:{stkResponsive:!0,stkUnits:"px",type:"number",default:""}},attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:"3.16.0"})},je={isEligible:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a=o("columnSpacing"),l=o("columnSpacingTablet"),r=o("columnSpacingMobile"),i=o("columnGap"),s=o("columnGapTablet"),c=o("columnGapMobile"),d=o("rowGap"),p=o("rowGapTablet"),h=o("rowGapMobile");return"number"==typeof a||"number"==typeof l||"number"==typeof r||"number"==typeof i||"number"==typeof s||"number"==typeof c||"number"==typeof d||"number"==typeof p||"number"==typeof h},migrate:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a={...t},l=o("columnSpacing"),r=o("columnSpacingTablet"),i=o("columnSpacingMobile"),s=o("columnGap"),c=o("columnGapTablet"),d=o("columnGapMobile"),p=o("rowGap"),h=o("rowGapTablet"),g=o("rowGapMobile");return"number"==typeof l&&(a[n("columnSpacing")]=String(l)),"number"==typeof r&&(a[n("columnSpacingTablet")]=String(r)),"number"==typeof i&&(a[n("columnSpacingMobile")]=String(i)),"number"==typeof s&&(a[n("columnGap")]=String(s)),"number"==typeof c&&(a[n("columnGapTablet")]=String(c)),"number"==typeof d&&(a[n("columnGapMobile")]=String(d)),"number"==typeof p&&(a[n("rowGap")]=String(p)),"number"==typeof h&&(a[n("rowGapTablet")]=String(h)),"number"==typeof g&&(a[n("rowGapMobile")]=String(g)),a}};var Ze=n(7537),qe=n(378);const Ye=e=>{const{label:t,sliderMax:n=6,rootClientId:a=null,onChangeCallback:r,newColumnAttributes:i}=e,{clientId:s}=(0,j.useBlockEditContext)(),c=a||s,{numInnerBlocks:d,innerBlocks:p}=(0,C.useSelect)((e=>{const{getBlock:t}=e("core/block-editor"),{innerBlocks:n}=t(c);return{innerBlocks:n,numInnerBlocks:n.length}}),[c]),{multiClientIds:h,multiNumInnerBlocks:g,multiInnerBlocks:m,hasMultiSelectedBlocks:v}=(0,C.useSelect)((e=>{const t=e("core/block-editor").getMultiSelectedBlocks();let n=[];const o={},a={};return t.length&&"stackable/tabs"===t[0].name?t.forEach((e=>{const t="stackable/tab-content"===e.innerBlocks[0].name?e.innerBlocks[0]:e.innerBlocks[1];n.push(t.clientId)})):n=t.map((e=>e.clientId)),n.forEach((t=>{var n;const l=null===(n=e("core/block-editor").getBlock(t))||void 0===n?void 0:n.innerBlocks,r=l.length;o[t]=l,a[t]=r})),{multiClientIds:n,multiNumInnerBlocks:a,multiInnerBlocks:o,hasMultiSelectedBlocks:n.length>1}})),[b,f]=(0,u.useLocalStorage)("stk__columns_new_duplicate",!1);return(0,o.createElement)(l.AdvancedRangeControl,{label:t,min:1,sliderMax:n,placeholder:"1",value:d,onChange:e=>{const t=function(t,n,o,a){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{insertBlock:r,removeBlocks:s}=(0,C.dispatch)("core/block-editor");if(""===n);else if(n<o){const t=a.slice(e).map((e=>{let{clientId:t}=e;return t}));l&&(0,C.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),s(t,!1)}else if(n>o&&!b){const e=n-o;for(let n=0;n<e;n++){const e=(0,qe.getBlockFromExample)("stackable/column",{attributes:{...i}});l&&(0,C.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),r(e,o+n+1,t,!1)}}else if(n>o){const e=n-o,i=(0,Q.last)(a),s=i?(0,C.select)("core/block-editor").getBlock(i.clientId):{};for(let n=0;n<e;n++){const e=(0,qe.getBlockFromExample)("stackable/column",(0,Q.pick)(s,["attributes","innerBlocks"]));l&&(0,C.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),r(e,o+n+1,t,!1)}}};r((e=>{v?h.forEach(((n,o)=>t(n,e,g[n],m[n],0!==o))):v||t(c,e,d,p,!1)}),e)},allowReset:!1,after:(0,o.createElement)(Ke,{isPressed:b,onClick:()=>f(!b)})})},Ke=e=>(0,o.createElement)(l.Tooltip,{text:(0,i.__)("When enabled, the last column will be cloned instead of adding a blank column.",a.i18n)},(0,o.createElement)(Ze.Button,{className:"stk-control-columns__settings-button",isSmall:!0,isTertiary:!0,isPressed:e.isPressed,"aria-label":(0,i.__)("Settings",a.i18n),onClick:e.onClick,icon:(0,o.createElement)(Ze.Dashicon,{icon:"admin-page"})}));Ye.defaultProps={label:(0,i.__)("Columns",a.i18n),rootClientId:null,onChangeCallback:(e,t)=>e(t),newColumnAttributes:{}},Ke.defaultProps={isPressed:!1,onClick:null};const Xe=e=>{var t;const[,n]=(0,o.useState)(0),s=(0,r.useDeviceType)(),{getPlaceholder:c}=(0,r.useBlockLayoutDefaults)(),{clientId:d}=(0,j.useBlockEditContext)(),{numInnerBlocks:p,innerBlocks:h}=(0,C.useSelect)((e=>{var t;const{getBlock:n}=e("core/block-editor"),o=null===(t=n(d))||void 0===t?void 0:t.innerBlocks;return{innerBlocks:o,numInnerBlocks:o.length}}),[d]),{multiClientIds:g,multiInnerBlocks:m,hasMultiSelectedBlocks:v}=(0,C.useSelect)((e=>{const t=e("core/block-editor").getMultiSelectedBlockClientIds(),n={};return t.forEach((t=>{var o;const a=null===(o=e("core/block-editor").getBlock(t))||void 0===o?void 0:o.innerBlocks;n[t]=a})),{multiClientIds:t,multiInnerBlocks:n,hasMultiSelectedBlocks:t.length>1}})),b=(0,r.useBlockAttributesContext)((e=>({columnArrangementTablet:e.columnArrangementTablet,columnArrangementMobile:e.columnArrangementMobile,columnWrapDesktop:e.columnWrapDesktop}))),f=(0,r.useBlockSetAttributesContext)(),k=[],y=[],_=[];let w=!1,S=!1;h.forEach((e=>{let{clientId:t}=e;const n=(0,C.select)("core/block-editor").getBlockAttributes(t);n&&(k.push(n.columnWidth),y.push(n.columnWidthTablet),_.push(n.columnWidthMobile),n.columnWidthTablet&&(w=!0),n.columnWidthMobile&&(S=!0))}));const E=(0,Q.range)(p).map((e=>(e+1).toString())).join(","),x="Desktop"===s?E:"Tablet"===s?b.columnArrangementTablet||E:b.columnArrangementMobile||E,T=(null===(t=(0,r.usePresetControls)("spacingSizes"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null;return(0,o.createElement)(o.Fragment,null,e.hasColumnsControl&&(0,o.createElement)(Ye,null),p>1&&"Desktop"===s&&(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Allow Column Wrapping",a.i18n),attribute:"columnWrapDesktop"}),p>1&&"Tablet"!==s&&"Mobile"!==s&&!b.columnWrapDesktop&&(0,o.createElement)(l.ColumnsWidthControl,{columns:p,values:k,hasTabletValue:w,hasMobileValue:S,responsive:"all",onChange:e=>{const t=[],o={},a=(0,u.getAttributeName)("columnWidth",s),l=(0,u.getAttributeName)("columnAdjacentCount",s);v?Object.values(m).forEach((n=>{n.forEach(((n,r)=>{t.push(n.clientId),o[n.clientId]={[a]:e[r],[l]:e.length}}))})):h.forEach(((n,r)=>{t.push(n.clientId),o[n.clientId]={[a]:e[r],[l]:e.length}})),(0,C.dispatch)("core/block-editor").updateBlockAttributes(t,o,!0),n(Math.random())}}),p>1&&("Tablet"===s||"Mobile"===s||b.columnWrapDesktop)&&(0,o.createElement)(l.ColumnsWidthMultiControl,{columns:p,values:"Desktop"===s?k:"Tablet"===s?y:_,responsive:"all",hasTabletValue:w,hasMobileValue:S,placeholders:"Mobile"===s?Array(p).fill("100"):k,allowReset:!0,onChange:e=>{const t=(0,Ue.w)(e),o=[],a={},l=(0,u.getAttributeName)("columnWidth",s),r=(0,u.getAttributeName)("columnAdjacentCount",s);v?Object.values(m).forEach((n=>{n.forEach(((n,i)=>{o.push(n.clientId),a[n.clientId]={[l]:e[i],[r]:t.filter((e=>e===t[i])).length}}))})):h.forEach(((n,i)=>{o.push(n.clientId),a[n.clientId]={[l]:e[i],[r]:t.filter((e=>e===t[i])).length}})),(0,C.dispatch)("core/block-editor").updateBlockAttributes(o,a,!0),n(Math.random())}}),p>1&&(0,o.createElement)(l.SortControl,{responsive:"all",attribute:"columnArrangement",axis:"Mobile"!==s?"x":"y",values:x,num:p,allowReset:!0,onChange:(e,t)=>{let{oldIndex:n,newIndex:o}=t;if("Tablet"!==s&&"Mobile"!==s)if(v)for(const e in m)(0,C.dispatch)("core/block-editor").moveBlockToPosition(m[e][n].clientId,e,e,o);else(0,C.dispatch)("core/block-editor").moveBlockToPosition(h[n].clientId,d,d,o);else{const t=(0,u.getAttributeName)("columnArrangement",s);a={[t]:(e||[]).join(",")},g.length?g.forEach((e=>((e,t)=>{(0,C.dispatch)("core/block-editor").updateBlockAttributes(g,t)})(0,a))):f(a)}var a}}),(0,o.createElement)(l.ControlSeparator,null),e.hasGap&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Inner Column Spacing",a.i18n),attribute:"columnSpacing",responsive:"all",units:["px","em","vw"],defaultLocked:!0,min:[0,0],sliderMax:[200,30],placeholder:1===p?"0":c("column-margin"),visualGuide:{selector:'.stk-%s-column > * > * > [data-type="stackable/column"] > * > .stk-column > .stk-inner-blocks',highlight:"column-spacing",defaultValue:"12px"},helpTooltip:{description:(0,i.__)("Sets column paddings, the space inside the block between the block elements and the column container border",a.i18n)},marks:T}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Column Gap",a.i18n),attribute:"columnGap",responsive:"all",min:0,sliderMax:100,placeholder:c("columns-column-gap"),visualGuide:{selector:".stk-%s-column > * > *",highlight:"columns:column-gap",responsive:["desktop"]},helpTooltip:{video:"column-gap",description:(0,i.__)("Sets the distance between two or more columns",a.i18n)},marks:T}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Row Gap",a.i18n),attribute:"rowGap",responsive:"all",min:0,sliderMax:100,placeholder:c("columns-row-gap"),helpTooltip:{description:(0,i.__)("Sets the distance between two or more columns",a.i18n)},marks:T})))},Je=e=>(0,o.createElement)(l.InspectorLayoutControls,null,(0,o.createElement)(Xe,e));Je.defaultProps={hasColumnsControl:!0,hasGap:!0},Je.Controls=Xe;const Qe=()=>null;Qe.InspectorControls=Je,Qe.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{hasRowGap:o=!0,columnWrapDesktopSaveStyleRule:a=""}=t;e.addBlockStyles("columnSpacing",[{...n,selector:".%s-column",styleRule:"--stk-columns-spacing",attrName:"columnSpacing",responsive:"all",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px"}]),e.addBlockStyles("columnGap",[{...n,renderIn:"save",selector:".%s-column",styleRule:"--stk-column-gap",attrName:"columnGap",responsive:"all",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px"},{...n,renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"--stk-column-gap",attrName:"columnGap",responsive:"all",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px"}]),e.addBlockStyles("columnWrapDesktop",[{...n,renderIn:"save",selector:".%s-column",styleRule:a||"flexWrap",attrName:"columnWrapDesktop",valueCallback:e=>e?"wrap":void 0},{...n,renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"flexWrap",attrName:"columnWrapDesktop",valueCallback:e=>e?"wrap":void 0}]),e.addBlockStyles("columnWrapDesktop",[{...n,renderIn:"save",selector:".%s-column",styleRule:"--stk-flex-grow",attrName:"columnWrapDesktop",valueCallback:e=>e?"0":void 0}]),o&&e.addBlockStyles("rowGap",[{...n,renderIn:"save",selector:".%s-column",styleRule:"rowGap",attrName:"rowGap",responsive:"all",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px"},{...n,renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"rowGap",attrName:"rowGap",responsive:"all",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px"}]),e.addBlockStyles("columnJustify",[{...n,renderIn:"save",selector:".%s-column",styleRule:"justifyContent",attrName:"columnJustify",responsive:"all"},{...n,renderIn:"edit",selector:".%s-column > .block-editor-inner-blocks > .block-editor-block-list__layout",styleRule:"justifyContent",attrName:"columnJustify",responsive:"all"}]),e.addBlockStyleConditionally(((e,t)=>{const o=(e.columnArrangementMobile||e.columnArrangementTablet||"").split(",").length;(0,Q.range)(1,o+1).forEach((e=>{t({...n,renderIn:"edit",selector:`> .stk-block-content > .block-editor-inner-blocks > .block-editor-block-list__layout > :nth-child(${e})`,styleRule:"order",responsive:"all",attrName:"columnArrangement",valueCallback:t=>(t.split(",")||[]).indexOf(e.toString())+1,valuePreCallback:(e,t,n)=>{const a=t("columnArrangement","tablet");return"mobile"===n&&!e&&a?[...Array(o).keys()].map((e=>e+1)).join(","):e}}),t({renderIn:"save",styleRule:`--stk-col-order-${e}`,responsive:"all",attrName:"columnArrangement",valueCallback:t=>(t.split(",")||[]).indexOf(e.toString())+1,valuePreCallback:(e,t,n)=>{const a=t("columnArrangement","tablet");return"mobile"===n&&!e&&a?[...Array(o).keys()].map((e=>e+1)).join(","):e}})}))}))},Qe.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";Ge(e,t),e.add({attributes:{columnWrapDesktop:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""}),e.add({attributes:{columnGap:{stkResponsive:!0,type:"string",default:""},rowGap:{stkResponsive:!0,type:"string",default:""},columnSpacing:{stkResponsive:!0,stkUnits:"px",type:"string",default:""}},attrNameTemplate:t,versionAdded:"3.16.0",versionDeprecated:""})},(0,_.addFilter)("stackable.block-components.content-align.getContentAlignmentClasses","stackable/3_7_3",((e,t)=>(e["stk--fit-content"]=t.columnFit,e)));const et=()=>{const e=(0,r.useBlockAttributesContext)((e=>({align:e.align,columnFit:e.columnFit})));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.__)("Block Width",a.i18n),attribute:"align",default:"",controls:[{value:"",title:(0,i.__)("Align Center",a.i18n),icon:"align-center"},{value:"wide",title:(0,i.__)("Align Wide",a.i18n),icon:"align-wide"},{value:"full",title:(0,i.__)("Align Full",a.i18n),icon:"align-full-width"}],visualGuide:{highlight:"outline"}}),(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.__)("Content Width",a.i18n),attribute:"innerBlockContentAlign",default:e.align?`align${e.align}`:"",controls:[{value:"",title:(0,i.__)("Align Center",a.i18n),icon:"align-center"},{value:"alignwide",title:(0,i.__)("Align Wide",a.i18n),icon:"align-wide"},{value:"alignfull",title:(0,i.__)("Align Full",a.i18n),icon:"align-full-width"}],help:(0,i.__)("Set the content to be smaller than the block width",a.i18n),visualGuide:{selector:", .stk-%s-column",highlight:"outline-first-offset"}}))},tt=e=>(0,o.createElement)(l.InspectorLayoutControls,null,(0,o.createElement)(et,e));tt.Controls=et;const nt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"column",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o="";return n&&(o=`${n}-`),ge()("stk-content-align",`stk-${e.uniqueId}-${o}${t}`,(0,_.applyFilters)("stackable.block-components.content-align.getContentAlignmentClasses",{"stk--flex":e.columnJustify,alignwide:"alignwide"===e.innerBlockContentAlign,alignfull:"alignfull"===e.innerBlockContentAlign},e))},ot=()=>null;ot.InspectorControls=tt,ot.addStyles=()=>{},ot.addAttributes=e=>{(e=>{e.add({attributes:{columnFit:{type:"boolean",default:""},columnFitAlign:{type:"string",default:"",stkResponsive:!0}},versionAdded:"3.0.0",versionDeprecated:""})})(e),e.add({attributes:{innerBlockContentAlign:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""})};const at=e=>{const t=(0,r.useBlockAttributesContext)((e=>e.customCSSMinified));return a.showProNotice||a.isPro?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Custom CSS",a.i18n),id:"custom-css",isPremiumPanel:!a.isPro,showModifiedIndicator:!!t},!a.isPro&&(0,o.createElement)(l.ProControl,{type:"custom-css"}),a.isPro&&(0,_.applyFilters)("stackable.block-component.custom-css.control",null,{mainBlockClass:e.mainBlockClass})))):null};at.defaultProps={mainBlockClass:""};const lt=e=>(0,_.applyFilters)("stackable.block-component.custom-css",null,e);lt.defaultProps={mainBlockClass:""},lt.Content=e=>(0,_.applyFilters)("stackable.block-component.custom-css.content",null,e),lt.Content.defaultProps={attributes:{}},lt.InspectorControls=at,lt.addAttributes=e=>{e.add({attributes:{customCSS:{type:"string",default:""},customCSSMinified:{type:"string",source:"html",selector:"style.stk-custom-css",default:""}},versionAdded:"3.0.0",versionDeprecated:""})};const rt=e=>a.showProNotice||a.isPro?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Motion Effects",a.i18n),id:"effects-animations",isPremiumPanel:!a.isPro},!a.isPro&&(0,o.createElement)(l.ProControl,{type:"motion-effects"}),a.isPro&&(0,_.applyFilters)("stackable.block-component.effects-animations.control",null,{mainBlockClass:e.mainBlockClass})))):null;rt.defaultProps={mainBlockClass:""};const it=e=>(0,_.applyFilters)("stackable.block-component.effects-animations",null,e);it.defaultProps={mainBlockClass:""},it.Content=e=>(0,_.applyFilters)("stackable.block-component.effects-animations.content",null,e),it.Content.defaultProps={attributes:{}},it.InspectorControls=rt,it.addAttributes=e=>{e.add({attributes:{effectType:{type:"string",default:""},effectEntrance:{type:"string",stkResponsive:"all",default:""},effectEntranceDuration:{type:"string",default:""},effectEntranceDelay:{type:"number",default:""},effectAnimationSmooth:{type:"boolean",default:""},effectAnimation3d:{type:"boolean",default:""},effectAnimationPerspective:{type:"number",default:""},effectAnimationOut:{type:"object",default:{}},effectAnimationIn:{type:"object",default:{}}},versionAdded:"3.0.0",versionDeprecated:""})},it.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_.doAction)("stackable.block-component.effects-animations.style.addStyles",e,t)};const st=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";e.add({attributes:{innerBlockRowGap:{stkResponsive:!0,type:"number",default:""}},attrNameTemplate:t,versionAdded:"3.0.0",versionDeprecated:"3.16.0"})},ct={isEligible:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a=o("containerHeight"),l=o("containerHeightTablet"),r=o("containerHeightMobile"),i=o("innerBlockRowGap"),s=o("innerBlockRowGapTablet"),c=o("innerBlockRowGapMobile");return"number"==typeof a||"number"==typeof i||"number"==typeof l||"number"==typeof s||"number"==typeof r||"number"==typeof c},migrate:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a={...t},l=o("containerHeight"),r=o("containerHeightTablet"),i=o("containerHeightMobile"),s=o("innerBlockRowGap"),c=o("innerBlockRowGapTablet"),d=o("innerBlockRowGapMobile");return"number"==typeof l&&(a[n("containerHeight")]=String(l)),"number"==typeof r&&(a[n("containerHeightTablet")]=String(r)),"number"==typeof i&&(a[n("containerHeightMobile")]=String(i)),"number"==typeof s&&(a[n("innerBlockRowGap")]=String(s)),"number"==typeof c&&(a[n("innerBlockRowGapTablet")]=String(c)),"number"==typeof d&&(a[n("innerBlockRowGapMobile")]=String(d)),a}};var dt;const ut=[{align:"left",title:(0,i.__)("Align Left",a.i18n),icon:"editor-alignleft"},{align:"center",title:(0,i.__)("Align Center",a.i18n),icon:"editor-aligncenter"},{align:"right",title:(0,i.__)("Align Right",a.i18n),icon:"editor-alignright"},{align:"justify",title:(0,i.__)("Justified",a.i18n),icon:"editor-justify"}],pt=ut.filter((e=>"justify"!==e.align)),ht=(0,o.memo)((e=>{var t,n;const{contentAlign:s,columnJustify:c,innerBlockOrientation:d,innerBlockWrap:u,containerWidth:p,containerWidthTablet:h,containerWidthMobile:g,alignLastBlockToBottom:m,innerBlockRowGap:v,innerBlockColumnGap:b}=(0,r.useBlockAttributesContext)((e=>({contentAlign:e.contentAlign,columnJustify:e.columnJustify,innerBlockOrientation:e.innerBlockOrientation,innerBlockWrap:e.innerBlockWrap,containerWidth:e.containerWidth,containerWidthTablet:e.containerWidthTablet,containerWidthMobile:e.containerWidthMobile,alignLastBlockToBottom:e.alignLastBlockToBottom,innerBlockRowGap:e.innerBlockRowGap,innerBlockColumnGap:e.innerBlockColumnGap}))),f=(0,r.useBlockSetAttributesContext)(),k=(0,r.useDeviceType)(),{labelContentAlign:y=(0,i.sprintf)((0,i.__)("%s Alignment",a.i18n),(0,i.__)("Content",a.i18n)),enableContentAlign:_=!0}=e,C=(null===(t=(0,r.usePresetControls)("blockHeights"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null,w=(null===(n=(0,r.usePresetControls)("spacingSizes"))||void 0===n?void 0:n.getPresetMarks({addNonePreset:!0}))||null,S=e.hasContainerSize&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.ControlSeparator,null),e.hasContainerHeight&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Content Min. Height",a.i18n),attribute:"containerHeight",responsive:"all",units:["px","vh"],min:[0,0],sliderMax:[1e3,100],step:[1,1],allowReset:!0,placeholder:"0",visualGuide:{selector:".stk-%s-container",highlight:"outline"},marks:C}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Content Max Width",a.i18n),attribute:"containerWidth",responsive:"all",units:["px","%","vw"],min:[0,0],sliderMax:[1500,100],step:[1,1],allowReset:!0,placeholder:"",initialPosition:"1500",visualGuide:{selector:".stk-%s-container",highlight:"outline"}}),(""!==p&&"Desktop"===k||(""!==p||""!==h)&&"Tablet"===k||(""!==p||""!==h||""!==g)&&"Mobile"===k)&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.__)("Content Horizontal Align",a.i18n),attribute:"containerHorizontalAlign",responsive:"all",controls:"horizontal",helpTooltip:{video:"content-horizontal-align",description:(0,i.__)("Sets the placement of the column container to left, center or right. Not available when block width is set to full width.",a.i18n)},visualGuide:{selector:".stk-%s-container",highlight:"outline"}}));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(j.BlockControls,null,(0,o.createElement)(j.AlignmentToolbar,{value:s,onChange:e=>f({contentAlign:e}),alignmentControls:e.hasContentJustify?ut:pt})),(0,o.createElement)(l.InspectorLayoutControls,null,e.containerSizePriority<5&&S,_&&(0,o.createElement)(l.AlignButtonsControl,{label:y,attribute:"contentAlign",responsive:"all",justified:e.hasContentJustify,helpTooltip:{video:"alignment-all",description:(0,i.__)("Adjusts the placement of all content in the block to align left, center or right",a.i18n)}}),e.hasColumnJustify&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.sprintf)((0,i.__)("%s Justify",a.i18n),(0,i.__)("Column",a.i18n)),attribute:"columnJustify",responsive:"all",controls:"flex-horizontal",disableTablet:!c,disableMobile:!c,helpTooltip:{video:"content-horizontal-align",description:(0,i.__)("Sets the horizontal position and spacing of the inner columns.",a.i18n)},visualGuide:{selector:".stk-%s-column > * > * > [data-type]",highlight:"outline"},help:(0,i.__)("Column contents need to be narrow for effect to show.",a.i18n)}),e.hasColumnAlignment&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.sprintf)((0,i.__)("%s Alignment",a.i18n),(0,i.__)("Column",a.i18n)),attribute:"columnAlign",responsive:"all",controls:"flex-vertical",helpTooltip:{video:"column-vertical-align",description:(0,i.__)("Sets the vertical position of the inner columns relative to the columns block.",a.i18n)},visualGuide:{selector:', .stk-block-columns:has( > .stk-inner-blocks > * > * > [data-type="stackable/column"] > * > .stk-%s)',highlight:"outline-second-offset"},className:"ugb-column-align-control"}),e.hasRowAlignment&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.sprintf)((0,i.__)("%s Alignment",a.i18n),(0,i.__)("Column",a.i18n)),attribute:"rowAlign",responsive:"all",controls:"flex-vertical",helpTooltip:{video:"column-vertical-align",description:(0,i.__)("Sets the vertical position of the inner columns relative to the columns block.",a.i18n)},visualGuide:{selector:".stk-%s-column > * > * > [data-type]",highlight:"outline"}}),5===e.containerSizePriority&&S,(e.hasColumnAlignment||e.hasBlockAlignment)&&(0,o.createElement)(l.ControlSeparator,null),(e.hasColumnAlignment||e.hasBlockAlignment)&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.sprintf)((0,i.__)("%s Direction",a.i18n),(0,i.__)("Inner Block",a.i18n)),controls:[{value:"horizontal",title:(0,i.__)("Horizontal",a.i18n)},{value:"",title:(0,i.__)("Vertical",a.i18n)}],attribute:"innerBlockOrientation",onChange:e=>{const t={innerBlockOrientation:e};""===e?t.innerBlockJustify="":t.innerBlockAlign="",f(t)}}),(e.hasColumnAlignment||e.hasBlockAlignment)&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.sprintf)((0,i.__)("%s Justify",a.i18n),(0,i.__)("Inner Block",a.i18n)),attribute:"innerBlockJustify",responsive:"all",controls:d?"flex-horizontal":"horizontal",visualGuide:{selector:".stk-%s-container, .stk-%s-container > * > .block-editor-block-list__layout > [data-type]",highlight:"outline-first-offset"},helpTooltip:{description:(0,i.__)("Sets the horizontal/vertical position and spacing of the inner blocks.",a.i18n)}}),(e.hasColumnAlignment||e.hasBlockAlignment)&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.sprintf)((0,i.__)("%s Alignment",a.i18n),(0,i.__)("Inner Block",a.i18n)),attribute:"innerBlockAlign",responsive:"all",controls:d?"vertical":"flex-justify-vertical",disabled:m?"all":void 0,visualGuide:{selector:".stk-%s-container, .stk-%s-container > * > .block-editor-block-list__layout > [data-type]",highlight:"outline-first-offset"},helpTooltip:{description:(0,i.__)("Aligns the horizontal/vertical position of the inner blocks.",a.i18n)},help:(0,i.__)("Set Content Min. Height for alignment to display properly",a.i18n)}),d&&(0,o.createElement)(l.AdvancedToolbarControl,{label:(0,i.__)("Inner Block Wrapping",a.i18n),controls:[{value:"",title:(0,i.__)("No Wrap",a.i18n)},{value:"wrap",title:(0,i.__)("Wrap",a.i18n)}],attribute:"innerBlockWrap"}),d&&(0,o.createElement)(l.AdvancedRangeControl,{label:"wrap"===u?(0,i.sprintf)((0,i.__)("%s %s",a.i18n),(0,i.__)("Inner Block",a.i18n),(0,i.__)("Column Gap",a.i18n)):(0,i.sprintf)((0,i.__)("%s %s",a.i18n),(0,i.__)("Inner Block",a.i18n),(0,i.__)("Gap",a.i18n)),responsive:"all",min:0,sliderMax:100,placeholder:"24",attribute:"innerBlockColumnGap",helpTooltip:{description:(0,i.__)("Sets the gap between the columns of inner blocks.",a.i18n)},visualGuide:"wrap"!==u?{selector:".stk-%s-container > * > .block-editor-block-list__layout",highlight:"column-gap",value:b}:null}),(e.hasColumnAlignment||e.hasBlockAlignment)&&!d&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.sprintf)((0,i.__)("%s %s",a.i18n),(0,i.__)("Inner Block",a.i18n),(0,i.__)("Gap",a.i18n)),responsive:"all",min:0,sliderMax:100,placeholder:"0",attribute:"innerBlockRowGap",helpTooltip:{description:(0,i.__)("Sets the gap between inner blocks.",a.i18n)},visualGuide:{selector:".stk-%s-container > * > .block-editor-block-list__layout",highlight:"row-gap",value:v},marks:w}),d&&"wrap"===u&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.sprintf)((0,i.__)("%s %s",a.i18n),(0,i.__)("Inner Block",a.i18n),(0,i.__)("Row Gap",a.i18n)),responsive:"all",min:0,sliderMax:100,placeholder:"0",attribute:"innerBlockRowGap",helpTooltip:{description:(0,i.__)("Sets the gap between the rows of inner blocks.",a.i18n)}})))})),gt=null===(dt=navigator)||void 0===dt?void 0:dt.userAgent;gt&&-1!==gt.indexOf("Firefox")&&(0,_.addFilter)("stackable.block-components.block-div.classnames","alignment-editor-has-polyfill",((e,t)=>{const n=(0,C.useSelect)((e=>{var n;return(null===(n=e("core/block-editor").getBlock(t.clientId))||void 0===n?void 0:n.innerBlocks)||[]}),[t.clientId]);if(n.length>0)for(let t=0;t<n.length;t++){const{blockMargin:o}=n[t].attributes;!o||"auto"!==o.top&&"auto"!==o.bottom||e.push("stk--alignment-polyfill")}return e})),ht.defaultProps={hasColumnJustify:!1,hasRowAlignment:!1,hasColumnAlignment:!1,hasBlockAlignment:!1,hasContentJustify:!1,hasContainerSize:!1,hasContainerHeight:!0,containerSizePriority:5};const mt=e=>{let{innerBlockOrientation:t}=e;return t||"vertical"},vt=e=>ge()({[`has-text-align-${e.contentAlign}`]:e.contentAlign,[`has-text-align-${e.contentAlignTablet}-tablet`]:e.contentAlignTablet,[`has-text-align-${e.contentAlignMobile}-mobile`]:e.contentAlignMobile,"stk--block-horizontal-flex":"horizontal"===e.innerBlockOrientation,"stk--column-flex":e.innerBlockJustify||e.innerBlockAlign,[`stk--block-align-${e.uniqueId}`]:e.rowAlign||e.rowAlignTablet||e.rowAlignMobile}),bt=()=>null;bt.InspectorControls=ht,bt.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";st(e,t),e.add({attributes:{align:{type:"string"},contentAlign:{stkResponsive:!0,type:"string",default:""},rowAlign:{stkResponsive:!0,type:"string",default:""},columnJustify:{type:"string",default:"",stkResponsive:!0},columnAlign:{stkResponsive:!0,type:"string",default:""},innerBlockOrientation:{type:"string",default:""},innerBlockJustify:{stkResponsive:!0,type:"string",default:""},innerBlockAlign:{stkResponsive:!0,type:"string",default:""},innerBlockWrap:{type:"string",default:""},innerBlockColumnGap:{stkResponsive:!0,type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),e.add({attributes:{innerBlockRowGap:{stkResponsive:!0,type:"string",default:""},containerHeight:{stkResponsive:!0,type:"string",default:""}},attrNameTemplate:t,versionAdded:"3.16.0",versionDeprecated:""})},bt.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selectorCallback:o=(e=>`.stk--block-align-${e("uniqueId")}`),editorSelectorCallback:a=(e=>`.stk--block-align-${e("uniqueId")}`),columnAlignSelectorEditCallback:l=(()=>""),columnAlignSelectorSaveCallback:r=(()=>""),innerBlockSelectorCallback:i=(e=>`.stk-${e("uniqueId")}-inner-blocks > .block-editor-inner-blocks > .block-editor-block-list__layout`),editorInnerBlockSelectorCallback:s=(e=>`.stk-${e("uniqueId")}-inner-blocks`),dependencies:c=[]}=t;e.addBlockStyles("columnAlign",[{...n,renderIn:"edit",selectorCallback:l,responsive:"all",styleRule:"alignSelf",attrName:"columnAlign",key:"columnAlign"},{...n,renderIn:"save",selectorCallback:r,responsive:"all",styleRule:"alignSelf",attrName:"columnAlign",key:"columnAlign"}]),e.addBlockStyles("rowAlign",[{...n,renderIn:"save",selectorCallback:o,styleRule:"alignItems",attrName:"rowAlign",key:"rowAlign-save",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"edit",selectorCallback:a,styleRule:"alignItems",attrName:"rowAlign",key:"rowAlign",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockJustify",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"alignItems",attrName:"innerBlockJustify",key:"innerBlockJustifyVerticalEdit",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"alignItems",attrName:"innerBlockJustify",key:"innerBlockJustifyVerticalSave",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockAlign",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"justifyContent",attrName:"innerBlockAlign",key:"innerBlockAlignVerticalEdit",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"justifyContent",attrName:"innerBlockAlign",key:"innerBlockAlignVerticalSave",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockJustify",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"justifyContent",attrName:"innerBlockJustify",key:"innerBlockJustifyHorizontalEdit",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"justifyContent",attrName:"innerBlockJustify",key:"innerBlockJustifyHorizontalSave",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockAlign",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"alignItems",attrName:"innerBlockAlign",key:"innerBlockAlignHorizontalEdit",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"alignItems",attrName:"innerBlockAlign",key:"innerBlockAlignHorizontalSave",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockWrap",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"flexWrap",attrName:"innerBlockWrap",key:"innerBlockWrapEdit",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"flexWrap",attrName:"innerBlockWrap",key:"innerBlockWrapSave",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockColumnGap",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"columnGap",attrName:"innerBlockColumnGap",key:"innerBlockColumnGapEdit",responsive:"all",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"columnGap",attrName:"innerBlockColumnGap",key:"innerBlockColumnGapSave",responsive:"all",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px",enabledCallback:e=>"horizontal"===e("innerBlockOrientation"),dependencies:["innerBlockOrientation",...c]}]),e.addBlockStyles("innerBlockRowGap",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"rowGap",attrName:"innerBlockRowGap",key:"innerBlockRowGapEdit",responsive:"all",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation")||"horizontal"===e("innerBlockOrientation")&&"wrap"===e("innerBlockWrap"),valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px",dependencies:["innerBlockOrientation","innerBlockWrap",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"rowGap",attrName:"innerBlockRowGap",key:"innerBlockRowGapSave",responsive:"all",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px",enabledCallback:e=>"horizontal"!==e("innerBlockOrientation")||"horizontal"===e("innerBlockOrientation")&&"wrap"===e("innerBlockWrap"),dependencies:["innerBlockOrientation","innerBlockWrap",...c]}]),e.addBlockStyles("innerBlockAlign",[{...n,renderIn:"edit",selectorCallback:i,styleRule:"alignContent",attrName:"innerBlockAlign",key:"innerBlockAlignWrapEdit",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation")&&"wrap"===e("innerBlockWrap"),dependencies:["innerBlockOrientation","innerBlockWrap",...c]},{...n,renderIn:"save",selectorCallback:s,styleRule:"alignContent",attrName:"innerBlockAlign",key:"innerBlockAlignWrapSave",responsive:"all",enabledCallback:e=>"horizontal"===e("innerBlockOrientation")&&"wrap"===e("innerBlockWrap"),dependencies:["innerBlockOrientation","innerBlockWrap",...c]}])};const ft=e=>ge()(["stk-row"],{[`stk-columns-${e.numInnerBlocks}`]:e.numInnerBlocks&&e.numInnerBlocks>1}),kt=e=>{const{clientId:t}=(0,j.useBlockEditContext)(),{numInnerBlocks:n}=(0,C.useSelect)((e=>{const{getBlockRootClientId:n,getBlockOrder:o}=e("core/block-editor");return{numInnerBlocks:o(n(t)).length}}),[t]),a=(0,r.useBlockAttributesContext)();return(0,o.useEffect)((()=>{a.numInnerBlocks=n}),[n]),(0,o.createElement)(o.Fragment,{children:e.children})};kt.InspectorControls=null,kt.addAttributes=e=>{e.add({attributes:{numInnerBlocks:{type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:""})},kt.addStyles=()=>{};const yt=e=>{e.add({attributes:{imageOverlayColor2:{type:"string",default:"",stkHover:!0},imageOverlayGradientDirection:{type:"number",default:"",stkHover:!0},imageOverlayGradientLocation1:{type:"number",default:"",stkHover:!0},imageOverlayGradientLocation2:{type:"number",default:"",stkHover:!0}},versionAdded:"3.0.0",versionDeprecated:"3.12.0"}),e.add({attributes:{imageBorderRadius:{type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.16.4"})},_t={isEligible:e=>{var t,n,o;const a=e.imageOverlayColor||e.imageOverlayColorHover||e.imageOverlayColorParentHover,l=e.imageOverlayColor2||e.imageOverlayColor2Hover||e.imageOverlayColor2ParentHover,r="gradient"===e.imageOverlayColorType&&(a||l||e.imageOverlayGradientDirection||e.imageOverlayGradientLocation1||e.imageOverlayGradientLocation2),i="gradient"===e.imageOverlayColorType&&!e.imageOverlayColor2&&!e.imageOverlayColor2Hover&&!e.imageOverlayColor2ParentHover&&((null===(t=e.imageOverlayColor)||void 0===t?void 0:t.includes("-gradient"))||(null===(n=e.imageOverlayColorHover)||void 0===n?void 0:n.includes("-gradient"))||(null===(o=e.imageOverlayColorParentHover)||void 0===o?void 0:o.includes("-gradient")));return r&&!i},migrate:e=>{var t,n,o;let a={...e};const l=e.imageOverlayColor||e.imageOverlayColorHover||e.imageOverlayColorParentHover,r=e.imageOverlayColor2||e.imageOverlayColor2Hover||e.imageOverlayColor2ParentHover,i="gradient"===e.imageOverlayColorType&&(l||r||e.imageOverlayGradientDirection||e.imageOverlayGradientLocation1||e.imageOverlayGradientLocation2),s="gradient"===e.imageOverlayColorType&&!e.imageOverlayColor2&&!e.imageOverlayColor2Hover&&!e.imageOverlayColor2ParentHover&&((null===(t=e.imageOverlayColor)||void 0===t?void 0:t.includes("-gradient"))||(null===(n=e.imageOverlayColorHover)||void 0===n?void 0:n.includes("-gradient"))||(null===(o=e.imageOverlayColorParentHover)||void 0===o?void 0:o.includes("-gradient"))),c=i&&!s;if("gradient"===e.imageOverlayColorType&&c){const t=a.imageOverlayColor||"rgba(0,0,0,0)",n=a.imageOverlayColorHover||t,o=a.imageOverlayColorParentHover||t,l=a.imageOverlayColor2||"rgba(0,0,0,0)",r=a.imageOverlayColor2Hover||l,i=a.imageOverlayColor2ParentHover||l,s=e.imageOverlayGradientDirection||0===e.imageOverlayGradientDirection?e.imageOverlayGradientDirection:90,c=e.imageOverlayGradientDirectionHover||s,d=e.imageOverlayGradientDirectionParentHover||s,u=e.imageOverlayGradientLocation1||0===e.imageOverlayGradientLocation1?e.imageOverlayGradientLocation1:0,p=e.imageOverlayGradientLocation1Hover||u,h=e.imageOverlayGradientLocation1ParentHover||u,g=e.imageOverlayGradientLocation2||0===e.imageOverlayGradientLocation2?e.imageOverlayGradientLocation2:100,m=e.imageOverlayGradientLocation2Hover||g,v=e.imageOverlayGradientLocation2ParentHover||g,b=a.imageOverlayColor||a.imageOverlayColor2||e.imageOverlayGradientDirection||e.imageOverlayGradientLocation1||e.imageOverlayGradientLocation2,f=a.imageOverlayColorHover||a.imageOverlayColor2Hover||e.imageOverlayGradientDirectionHover||e.imageOverlayGradientLocation1Hover||e.imageOverlayGradientLocation2Hover,k=a.imageOverlayColorParentHover||a.imageOverlayColor2ParentHover||e.imageOverlayGradientDirectionParentHover||e.imageOverlayGradientLocation1ParentHover||e.imageOverlayGradientLocation2ParentHover;a={...a,imageOverlayColor2:void 0,imageOverlayColor2Hover:void 0,imageOverlayColor2ParentHover:void 0,imageOverlayGradientDirection:void 0,imageOverlayGradientLocation1:void 0,imageOverlayGradientLocation2:void 0,imageOverlayGradientDirectionHover:void 0,imageOverlayGradientLocation1Hover:void 0,imageOverlayGradientLocation2Hover:void 0,imageOverlayGradientDirectionParentHover:void 0,imageOverlayGradientLocation1ParentHover:void 0,imageOverlayGradientLocation2ParentHover:void 0,imageOverlayColor:b?`linear-gradient(${s}deg, ${t} ${u}%, ${l} ${g}%)`:a.imageOverlayColor,imageOverlayColorHover:f?`linear-gradient(${c}deg, ${n} ${p}%, ${r} ${m}%)`:a.imageOverlayColorHover,imageOverlayColorParentHover:k?`linear-gradient(${d}deg, ${o} ${h}%, ${i} ${v}%)`:a.imageOverlayColorParentHover}}return a}},Ct={isEligible:e=>"number"==typeof e.imageBorderRadius,migrate:e=>{const t={...e},n=e.imageBorderRadius;return"number"==typeof n&&(t.imageBorderRadius=String(n)),t}};n(7294);const wt={circle:function(e){return(0,o.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},e),(0,o.createElement)("circle",{cx:50,cy:50,r:50}))},square:function(e){return(0,o.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,o.createElement)("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}))},blob1:function(e){return(0,o.createElement)("svg",(0,d.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,o.createElement)("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"}))}},St=(e,t,n,a)=>{if(!e)return{};const l=(e=>{const t=(0,_.applyFilters)("stackable.image.shape.svgs",wt);return t[e]?t[e]:null})(e),r=(0,o.createElement)(l,{preserveAspectRatio:!["","square"].includes(e)&&a?"none":void 0,transform:t||n?`scale(${t?-1:1},${n?-1:1})`:void 0});return`url('data:image/svg+xml;base64,${btoa((0,u.svgRenderToString)(r))}')`},Et=e=>{let{x:t,y:n}=e,o=(0,Q.toNumber)(t),a=(0,Q.toNumber)(n);return o=isNaN(o)?50:100*o,a=isNaN(a)?50:100*a,`${o}% ${a}%`},xt=["none","0px 0 1px #78787880","0px 0 2px #78787880","0px 5px 10px #9999995a","0px 2px 20px #99999933","25px 10px 30px #123f524d","0px 10px 30px #0000001a","7px 5px 30px #48497927","0px 10px 60px #0000001a","70px 60px 60px #48497933"],Tt=e=>{var t;const n=(0,r.useBlockAttributesContext)((e=>({imageId:e.imageId,imageAspectRatio:e.imageAspectRatio,imageWidthUnit:e.imageWidthUnit,imageHeightUnit:e.imageHeightUnit,imageWidth:e.imageWidth,imageHeight:e.imageHeight,imageWidthAttribute:e.imageWidthAttribute,imageHeightTablet:e[(0,u.getAttributeName)("imageHeight","tablet")],imageHeightMobile:e[(0,u.getAttributeName)("imageHeight","mobile")],imageHasLightbox:e.imageHasLightbox,imageSize:e.imageSize,imageAlt:e.imageAlt,imageOverlayColorType:e.imageOverlayColorType,imageUrl:e.imageUrl,imageShapeFlipX:e.imageShapeFlipX,imageShapeFlipY:e.imageShapeFlipY,imageShapeStretch:e.imageShapeStretch,imageShape:e.imageShape,imageFilter:e.imageFilter,imageExternalUrl:e.imageExternalUrl}))),s=(0,r.useBlockSetAttributesContext)(),c=(0,r.useDeviceType)(),{getPlaceholder:d}=(0,r.useBlockLayoutDefaults)(),{getEditorDom:p}=(0,C.useSelect)("stackable/editor-dom"),{clientId:h}=(0,j.useBlockEditContext)(),g=(null==p?void 0:p())||void 0,m=(0,o.useMemo)((()=>"stackable/image"===(0,C.select)("core/block-editor").getBlockName(h)),[h]),v=(0,o.useMemo)((()=>{if(g&&m){const e=g.querySelector(`[data-block="${h}"]`);return(null==e?void 0:e.clientWidth)||void 0}}),[g,m,h]),{imageData:b}=(0,C.useSelect)((e=>({imageData:{...e("core").getMedia(n.imageId)}})),[n.imageId]),f=(0,o.useMemo)((()=>"px"===n.imageWidthUnit&&["","px"].includes(n.imageHeightUnit)?(Math.max(n.imageWidth,n.imageHeight)||200)/2:"px"===n.imageWidthUnit?n.imageWidth:["","px"].includes(n.imageHeightUnit)?(n.imageHeight||200)/2:100),[n.imageWidth,n.imageWidthUnit,n.imageHeight,n.imageHeightUnit]),k=(null===(t=(0,r.usePresetControls)("borderRadius"))||void 0===t?void 0:t.getPresetMarks({addNonePreset:!0}))||null;return(0,o.createElement)(o.Fragment,null,(0,_.applyFilters)("stackable.block-component.image.before",null,e),e.hasSelector&&(0,o.createElement)(l.ImageControl2,{label:(0,i.__)("Select Image",a.i18n),allowedTypes:["image"],attribute:"image",hasPanelModifiedIndicator:!1,onRemove:()=>s({imageId:"",imageUrl:"",imageWidthAttribute:"",imageHeightAttribute:"",imageWidthUnit:"",imageHeightUnit:""}),onChange:t=>{var o;let{url:a,width:l,height:r}=t;const i=n.imageSize||"full";var c,d,u,p,h,g;null!==(o=t.sizes)&&void 0!==o&&o[i]&&(a=(null===(c=t.sizes)||void 0===c||null===(d=c[i])||void 0===d?void 0:d.url)||a,r=(null===(u=t.sizes)||void 0===u||null===(p=u[i])||void 0===p?void 0:p.height)||r||"",l=(null===(h=t.sizes)||void 0===h||null===(g=h[i])||void 0===g?void 0:g.width)||l||"");const b={imageId:t.id,imageUrl:a,imageWidthAttribute:l,imageHeightAttribute:r,imageExternalUrl:"",...n.imageAlt?{}:{imageAlt:t.alt||""}};m&&v&&!e.hasManuallyChangedDimensions&&(b.imageWidth="",b.imageWidthUnit="%",l&&l<v&&(b.imageWidth=l,b.imageWidthUnit="px")),s(b)}}),(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Image Url",a.i18n),attribute:"imageExternalUrl",onChange:e=>{s({imageExternalUrl:e,imageUrl:"",imageAlt:"",imageId:"",imageWidthAttribute:"",imageHeightAttribute:""})}}),e.hasAspectRatio&&(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Aspect Ratio",a.i18n),attribute:"imageAspectRatio",options:[{label:(0,i.__)("Original",a.i18n),value:""},{label:(0,i.__)("Square 1:1",a.i18n),value:"1/1"},{label:(0,i.__)("Standard 4:3",a.i18n),value:"4/3"},{label:(0,i.__)("Classic 3:2",a.i18n),value:"3/2"},{label:(0,i.__)("Wide 16:9",a.i18n),value:"16/9"},{label:(0,i.__)("Cinematic 2:1",a.i18n),value:"2/1"},{label:(0,i.__)("Ultra Wide 3:1",a.i18n),value:"3/1"},{label:(0,i.__)("Panoramic 4:1",a.i18n),value:"4/1"},{label:(0,i.__)("Portrait 3:4",a.i18n),value:"3/4"},{label:(0,i.__)("Classic Portrait 2:3",a.i18n),value:"2/3"},{label:(0,i.__)("Tall 9:16",a.i18n),value:"9/16"}],responsive:"all",onChange:t=>{const o=(0,u.getAttributeName)("imageAspectRatio",c),a=(0,u.getAttributeName)("imageHeight",c),l={[o]:t};t&&e.hasHeight&&n[a]&&(l[a]=""),s(l)}}),e.hasWidth&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Width",a.i18n),attribute:"imageWidth",units:e.widthUnits,min:e.widthMin,sliderMax:e.widthMax,step:e.widthStep,initialPosition:100,allowReset:!0,placeholder:"auto",default:m&&"Desktop"===c&&"px"===n.imageWidthUnit&&v&&n.imageWidthAttribute<v?n.imageWidthAttribute:"",onChangeUnit:(e,t,o)=>{if(m&&"Desktop"===c)if("%"===o&&"px"===e){if(v&&n.imageWidthAttribute<v)return s({imageWidth:n.imageWidthAttribute,[t]:e});if(""===n.imageWidth)return s({imageWidth:v,[t]:e})}else if("px"===o&&"%"===e){if(v&&n.imageWidthAttribute>v)return s({imageWidth:"",[t]:e});if(n.imageWidth>100)return s({imageWidth:"",[t]:e})}s({[t]:e})},responsive:"all",onOverrideReset:()=>{if(m&&"Desktop"===c){let e="";return"px"===n.imageWidthUnit?(n.imageWidthAttribute&&(e=n.imageWidthAttribute),v&&n.imageWidthAttribute>v&&(e="",s({imageWidthUnit:"%"}))):"%"===n.imageWidthUnit&&v&&n.imageWidthAttribute<v&&(e=n.imageWidthAttribute,s({imageWidthUnit:"px"})),e}},helpTooltip:{title:(0,i.__)("Image width",a.i18n),description:(0,i.__)("Adjusts the image width",a.i18n)}}),e.hasHeight&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Height",a.i18n),attribute:"imageHeight",units:e.heightUnits,min:e.heightMin,sliderMax:e.heightMax,step:e.heightStep,allowReset:!0,placeholder:"",responsive:"all",helpTooltip:{title:(0,i.__)("Image height",a.i18n),description:(0,i.__)("Adjusts the image height",a.i18n)}}),e.hasLightbox&&(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Open Image in Lightbox",a.i18n),attribute:"imageHasLightbox"}),e.hasAlt&&(0,o.createElement)(l.ImageAltControl,{label:(0,i.__)("Image Alt",a.i18n),value:n.imageAlt,onChange:e=>s({imageAlt:e})}),e.hasAlt&&!n.imageAlt&&(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Show Empty Alt Attribute",a.i18n),attribute:"imageShowEmptyAlt"}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Zoom",a.i18n),attribute:"imageZoom",hover:"all",min:0,sliderMax:3,step:.01,initialPosition:1,allowReset:!0}),e.hasShadow&&(0,o.createElement)(l.ShadowControl,{options:xt,attribute:"imageShadow",hover:"all",isFilter:!0,placeholder:d("image-drop-shadow"),helpTooltip:{video:"image-shadow",title:(0,i.__)("Image Shadow",a.i18n),description:(0,i.__)("Adjusts the intensity of the image shadow",a.i18n)}}),n.imageId&&(0,o.createElement)(l.ImageSizeControl,{label:(0,i.__)("Image Size",a.i18n),value:n.imageSize,onChange:e=>{var t,n,o,a,l,r,i,c;const d=(null===(t=b.media_details)||void 0===t||null===(n=t.sizes[e])||void 0===n?void 0:n.source_url)||b.source_url,u=(null===(o=b.media_details)||void 0===o||null===(a=o.sizes[e])||void 0===a?void 0:a.width)||(null===(l=b.media_details)||void 0===l?void 0:l.width)||"",p=(null===(r=b.media_details)||void 0===r||null===(i=r.sizes[e])||void 0===i?void 0:i.height)||(null===(c=b.media_details)||void 0===c?void 0:c.height)||"";s({imageSize:e,imageUrl:d,imageWidthAttribute:u,imageHeightAttribute:p})},defaultValue:"full",helpTooltip:{video:"image-size",description:(0,i.__)("Sets the image display size to thumbnail, medium, large or full size. A smaller image size will also load faster.",a.i18n)}}),e.hasBorderRadius&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Border Radius",a.i18n),attribute:"imageBorderRadius",min:"0",sliderMax:f,placeholder:d("image-border-radius")||"0",defaultValue:0,allowReset:!0,helpTooltip:{video:"image-border-radius",description:(0,i.__)("Adjusts the radius of image corners to make them more rounded",a.i18n)},marks:k}),(0,o.createElement)(l.ControlSeparator,null),(0,o.createElement)(l.AdvancedToolbarControl,{controls:[{value:"",title:(0,i.__)("Single",a.i18n)},{value:"gradient",title:(0,i.__)("Gradient",a.i18n)}],attribute:"imageOverlayColorType",isSmall:!0}),(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Overlay Color",a.i18n),attribute:"imageOverlayColor",hover:"all",isGradient:"gradient"===n.imageOverlayColorType}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Overlay Opacity",a.i18n),attribute:"imageOverlayOpacity",hover:"all",min:0,max:1,step:.1,placeholder:"0.3"}),(0,o.createElement)(l.BlendModeControl,{label:(0,i.__)("Overlay Blend Mode",a.i18n),attribute:"imageOverlayBlendMode",helpTooltip:{description:(0,i.__)("Sets how the overlay color blends with the image",a.i18n)}}),(0,o.createElement)(l.ControlSeparator,null),(0,o.createElement)(l.AdvancedFocalPointControl,{attribute:"imageFocalPoint",label:(0,i.__)("Focal point",a.i18n),url:e.src?e.src:n.imageUrl||n.imageExternalUrl,responsive:"all",hover:"all"}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Image Fit",a.i18n),attribute:"imageFit",options:[{label:(0,i.__)("Default",a.i18n),value:""},{label:(0,i.__)("Contain",a.i18n),value:"contain"},{label:(0,i.__)("Cover",a.i18n),value:"cover"},{label:(0,i.__)("Fill",a.i18n),value:"fill"},{label:(0,i.__)("None",a.i18n),value:"none"},{label:(0,i.__)("Scale Down",a.i18n),value:"scale-down"}],helpTooltip:{video:"image-size",description:(0,i.__)("Sets the fit to default, contain, cover, fill, none, and scale down. Image fit specifies how an image resizes in a container.",a.i18n)},responsive:"all"}),e.hasShape&&(0,o.createElement)(l.ButtonIconPopoverControl,{label:(0,i.__)("Image Shape",a.i18n),onReset:()=>{s({imageShape:"",imageShapeFlipX:"",imageShapeFlipY:"",imageShapeStretch:!0})},allowReset:n.imageShape||n.imageShapeFlipX||n.imageShapeFlipY||!n.imageShapeStretch},(0,o.createElement)(l.ImageShapeControl,{selected:n.imageShape,onChange:e=>s({imageShape:e}),helpTooltip:{video:"image-shape",title:(0,i.__)("Shape",a.i18n),description:(0,i.__)("Change the shape of the image",a.i18n)}}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Flip Shape Horizontally",a.i18n),attribute:"imageShapeFlipX"}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Flip Shape Vertically",a.i18n),attribute:"imageShapeFlipY"}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Stretch Shape Mask",a.i18n),attribute:"imageShapeStretch",defaultValue:!0})),(0,o.createElement)(l.ButtonIconPopoverControl,{label:(0,i.__)("Image Filter",a.i18n),popoverLabel:"",onReset:()=>{s({imageFilter:""})},allowReset:n.imageFilter},(0,o.createElement)(l.ImageFilterControl,{label:(0,i.__)("Image Filter",a.i18n),attribute:"imageFilter",hover:"all"})))};Tt.defaultProps={hasAlt:!0,hasWidth:!0,hasSelector:!0,hasShadow:!0,widthUnits:["px","%","vw"],widthMin:[0,0,0],widthMax:[1e3,100,100],widthStep:[1,1,1],hasHeight:!0,heightUnits:["px","%","vh"],heightMin:[0,0,0],heightMax:[1e3,100,100],heightStep:[1,1,1],hasAspectRatio:!0,hasBorderRadius:!0,hasShape:!0};const Bt=e=>{const t=(0,r.useBlockAttributesContext)((e=>e.imageShow)),n=(0,r.useBlockSetAttributesContext)();return(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,(0,d.Z)({title:e.label,id:"image",initialOpen:e.initialOpen,hasToggle:e.hasToggle},e.hasToggle?{checked:t,onChange:e=>n({imageShow:e})}:{}),(0,o.createElement)(Tt,e)))};Bt.defaultProps={initialOpen:!1,label:(0,i.__)("Image",a.i18n),hasToggle:!1,hasAlt:!0,hasWidth:!0,hasSelector:!0,hasShadow:!0,widthUnits:["px","%","vw"],widthMin:[0,0,0],widthMax:[1e3,100,100],widthStep:[1,1,1],hasHeight:!0,heightUnits:["px","%","vh"],heightMin:[0,0,0],heightMax:[1e3,100,100],heightStep:[1,1,1],hasBorderRadius:!0,hasShape:!0},Bt.Controls=Tt;const Mt=[.25,.5,.75,1],At=(0,Q.range)(50,2001,50),Nt=(0,Q.range)(100,2001,100),It=[.1,.2,.25,.3,.4,.5,.6,.7,.75,.8,.9,1],Rt=(0,Q.range)(8,2001,8);var Pt=n(9755);const Ot=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return"auto"===e?e:e||0===e?"%"===t?o?`${e}%`:e:n?`${e}px`:e:"%"===t?o?"100%":100:n?"150px":150},Ht=e=>ge()([e.className,"stk-img-wrapper"],{"stk-img--shape":e.shape,"stk-image--shape-stretch":e.shapeStretch,[`stk--shadow-${e.shadow}`]:!e.shape&&e.shadow,"stk-img--gradient-overlay":e.hasGradientOverlay,"stk--has-lightbox":e.hasLightbox}),zt=e=>ge()(["stk-img"],{[`wp-image-${e.imageId}`]:e.imageId}),Lt=(0,o.memo)((e=>{const{isSelected:t}=(0,j.useBlockEditContext)(),[n,a]=(0,o.useState)(!0),[i,s]=(0,o.useState)(!1),[c,d]=(0,o.useState)(!1),[u,p]=(0,o.useState)(),[h,g]=(0,o.useState)(),[m,v]=(0,o.useState)(),[b,f]=(0,o.useState)(),[k,y]=(0,o.useState)(!1),[_,w]=(0,o.useState)(),[S,E]=(0,o.useState)(),[x,T]=(0,o.useState)(!1),B=(0,o.useRef)(),M=(0,o.useRef)(),{clientId:A}=(0,j.useBlockEditContext)(),N=(0,o.useMemo)((()=>"stackable/image"===(0,C.select)("core/block-editor").getBlockName(A)),[A]),[I,R]=(0,o.useState)(null),[P,O]=(0,o.useState)(null),H=(0,Pt.wt)(e.src),z=(0,r.useWithShift)();(0,o.useEffect)((()=>{O(null)}),[z]);const L=ge()([Ht(e),"stk-img-resizer"],{"stk-img-placeholder":!H||k,"stk--never-resized":(!H||k)&&n,"stk--is-resizing":i,"stk--no-click-to-edit":!e.enableClickToEdit,"stk--too-small":x});(0,o.useEffect)((()=>{if(B.current){const e=new ResizeObserver((e=>{for(const t of e)T(t.contentRect.width<140)}));return e.observe(B.current),()=>e.disconnect()}}),[B.current]);const D=zt(e);return(0,o.createElement)(Ze.ResizableBox,{className:L,enable:{top:!(!e.showHandles||"top"!==e.heightResizePosition)&&e.enableHeight,bottom:!(!e.showHandles||"bottom"!==e.heightResizePosition)&&e.enableHeight,right:!(!e.showHandles||"right"!==e.widthResizePosition)&&e.enableWidth,left:!(!e.showHandles||"left"!==e.widthResizePosition)&&e.enableWidth,topRight:!1,bottomRight:e.showHandles&&e.enableDiagonal,bottomLeft:!1,topLeft:!1},size:{width:Ot(S||e.width,e.widthUnit),height:Ot(_||e.height,e.heightUnit)},resizeRatio:1.2,lockAspectRatio:c,snap:P,snapGap:10,onResizeStart:(t,n,o)=>{d("bottomRight"===n);let l=e.height?parseFloat(e.height):0;if("%"===e.heightUnit){const t=o.parentElement.getBoundingClientRect().height;v(t),l=(e.height||100)/100*t}else e.height&&"auto"!==e.height||(l=parseInt(o.getBoundingClientRect().height,10));p(l||0);let r=e.width?parseFloat(e.width):0;if("%"===e.widthUnit){const t=o.parentElement.getBoundingClientRect().width;f(t),r=(e.width||100)/100*t}else e.width&&"auto"!==e.width||(r=parseInt(o.getBoundingClientRect().width,10));g(r||0),a(!1),s(!0),O(null)},onResize:(t,n,o,a)=>{let l,r;"%"===e.heightUnit?(l=(0,Q.clamp)(Math.round((u+a.height)/m*100),0,100),R(`.stk--is-resizing { height: ${l}% !important; }`)):l=u+a.height,w(l),r="%"===e.widthUnit?(0,Q.clamp)(Math.round((h+a.width)/b*100),0,100):h+a.width,E(r),P||O(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"%",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"px",a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return"bottomRight"!==(arguments.length>4&&void 0!==arguments[4]?arguments[4]:"bottom")||a?{x:a?"%"===n?It.map((t=>t*e)):Rt:"%"===n?Mt.map((t=>t*e)):At,y:a?"%"===o?It.map((e=>e*t)):Rt:"%"===o?Mt.map((e=>e*t)):At}:{x:"%"===n?Mt.map((t=>t*e)):At,y:"%"===o?Mt.map((e=>e*t)):Nt}}(b,m,e.widthUnit,e.heightUnit,n,z))},onResizeStop:()=>{e.onChangeSize({width:S,widthUnit:e.widthUnit,height:_,heightUnit:e.heightUnit}),s(!1),E(null),w(null),R(null),O(null)}},H&&e.onRemove&&e.hasRemove&&e.showTooltips&&(0,o.createElement)("button",{className:"stk-img-upload-remove",onClick:t=>{e.onRemove(),t.stopPropagation()}},(0,o.createElement)(Ze.Dashicon,{icon:"no"})),e.hasTooltip&&e.showTooltips&&(0,o.createElement)(l.ResizerTooltip,{enableHeight:e.enableHeight||e.enableDiagonal,enableWidth:e.enableWidth||e.enableDiagonal,height:Ot(_||e.height,e.heightUnit,!1,!1),width:Ot(S||e.width,e.widthUnit,!1,!1),widthUnits:e.widthUnits,heightUnits:e.heightUnits,heightUnit:e.heightUnit,widthUnit:e.widthUnit,allowReset:e.allowReset,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,onChangeHeight:t=>{let{value:n,unit:o}=t;const a={};void 0!==n&&(a.height=n),void 0!==o&&(a.heightUnit=o),e.onChangeSize(a)},onChangeWidth:t=>{let{value:n,unit:o}=t;const a={};void 0!==n&&(a.width=n),void 0!==o&&(a.widthUnit=o),e.onChangeSize(a)}}),(0,o.createElement)("div",{className:"stk-img-resizer-wrapper",ref:M},(0,o.createElement)("img",{ref:B,onLoad:()=>y(!1),onError:()=>y(!0),className:D,src:H||void 0,alt:te()(e.alt||void 0),title:te()(e.title||void 0),width:e.width||void 0,height:e.height||void 0,draggable:"false"})),i&&I&&(0,o.createElement)("style",null,I),t&&e.enableClickToEdit&&(0,o.createElement)(j.MediaUpload,{onSelect:t=>{let{url:n,width:o,height:a}=t;const l=e.size||"full";var r,i;(t.sizes&&t.sizes[l]&&(n=t.sizes[l].url,o=t.sizes[l].width,a=t.sizes[l].height),N&&B.current&&!e.hasManuallyChangedDimensions)&&(e.onChangeSize({width:"",widthUnit:"%"}),o<((null===(r=M.current.parentElement)||void 0===r||null===(i=r.parentElement)||void 0===i?void 0:i.clientWidth)||M.current.clientWidth)&&e.onChangeSize({width:o,widthUnit:"px"}));e.onChange({...t,url:n,width:o,height:a})},allowedTypes:e.allowedTypes,value:e.imageID,render:e=>(0,o.createElement)(Ze.Button,{className:"stk-img-media-manager-button",onClick:()=>e.open()})}),e.children)}));Lt.defaultProps={imageId:"",enableClickToEdit:!0,showHandles:!0,showTooltips:!0,alt:"",title:"",src:"",size:"full",width:"",height:"",widthUnit:"%",heightUnit:"px",widthUnits:["px","%","vw"],heightUnits:["px","%","vh"],shape:"",shapeStretch:!1,shadow:"",allowedTypes:["image"],enableWidth:!0,enableHeight:!0,enableDiagonal:!0,widthResizePosition:"right",heightResizePosition:"bottom",allowReset:!0,hasGradientOverlay:!1,hasRemove:!0,hasTooltip:!0,onChange:()=>{},onRemove:()=>{},onChangeSize:()=>{}};const Dt=e=>{const t=(0,r.useDeviceType)(),n="Desktop"===t,a="Mobile"===t;let l=e.width,i=e.widthUnit||"%";n||""===e.widthTablet||(l=e.widthTablet,i=e.widthUnitTablet),a&&""!==e.widthMobile&&(l=e.widthMobile,i=e.widthUnitMobile);let s=e.height,c=e.heightUnit||"px";return n||""===e.heightTablet||(s=e.heightTablet,""!==e.heightUnitTablet&&(c=e.heightUnitTablet)),a&&""!==e.heightMobile&&(s=e.heightMobile,""!==e.heightUnitMobile&&(c=e.heightUnitMobile)),(0,o.createElement)(Lt,(0,d.Z)({},e,{width:l,widthUnit:i,height:s,heightUnit:c,onChangeSize:n=>{e[`onChangeSize${t}`](n)}}))};Dt.defaultProps={...Lt.defaultProps,widthTablet:"",heightTablet:"",widthUnitTablet:"",heightUnitTablet:"",widthMobile:"",heightMobile:"",widthUnitMobile:"",heightUnitMobile:"",onChangeSizeDesktop:()=>{},onChangeSizeTablet:()=>{},onChangeSizeMobile:()=>{},defaultWidth:"",defaultHeight:""};const Ft=e=>{const t=Ht(e),n=zt(e),a=e.width||0===e.width?"%"===e.widthUnit?`${e.width}%`:e.width:void 0,l=e.height||0===e.height?"%"===e.heightUnit?`${e.height}%`:e.height:void 0,r={},i=te()(e.alt||void 0);i?r.alt=i:e.showEmptyAlt&&(r.alt="");const s=te()(e.title||void 0);s&&(r.title=s);const c=ge()(e.figcaptionClassnames,"stk-img-figcaption"),u=e.customWrapper;let p=(0,o.createElement)("img",(0,d.Z)({className:n,src:e.src||void 0,width:a||void 0,height:l||void 0},r));return p=e.hasWrapper?(0,o.createElement)("span",{className:t},p):p,(0,_.applyFilters)("stackable.image.save.wrapper",(0,o.createElement)("figure",{className:e.hasWrapper?void 0:t},(0,o.createElement)((e=>{let{condition:t,children:n}=e;return t?(0,o.createElement)(u,null,n):n}),{condition:!!e.customWrapper,children:p}),e.figcaptionShow&&e.src&&(0,o.createElement)(j.RichText.Content,{tagName:"figcaption",className:c,value:e.figcaption}),e.children),e,t,p,c)};Ft.defaultProps={imageId:"",hasWrapper:!1,alt:"",title:"",src:"",size:"full",width:"",height:"",widthUnit:"px",heightUnit:"px",shape:"",shapeStretch:!1,shadow:"",hasGradientOverlay:!1,customWrapper:null,figcaptionShow:!1,figcaption:""},Dt.Content=Ft;const $t=Dt,Ut=e=>{const{defaultWidth:t,defaultHeight:n,...a}=e,{isSelected:l,clientId:i}=(0,j.useBlockEditContext)(),s=(0,r.useBlockAttributesContext)((e=>({imageOverlayColorType:e.imageOverlayColorType,imageOverlayColorHover:e.imageOverlayColorHover,imageOverlayColorParentHover:e.imageOverlayColorParentHover,imageOverlayOpacityHover:e.imageOverlayOpacityHover,imageOverlayOpacityParentHover:e.imageOverlayOpacityParentHover,imageOverlayGradientLocation1Hover:e.imageOverlayGradientLocation1Hover,imageOverlayGradientLocation1ParentHover:e.imageOverlayGradientLocation1ParentHover,imageOverlayGradientLocation2Hover:e.imageOverlayGradientLocation2Hover,imageOverlayGradientLocation2ParentHover:e.imageOverlayGradientLocation2ParentHover,imageId:e.imageId,imageUrl:e.imageUrl,imageSize:e.imageSize,imageWidth:e.imageWidth,imageWidthTablet:e.imageWidthTablet,imageWidthMobile:e.imageWidthMobile,imageWidthUnit:e.imageWidthUnit,imageWidthUnitTablet:e.imageWidthUnitTablet,imageWidthUnitMobile:e.imageWidthUnitMobile,imageHeight:e.imageHeight,imageHeightTablet:e.imageHeightTablet,imageHeightMobile:e.imageHeightMobile,imageHeightUnit:e.imageHeightUnit,imageHeightUnitTablet:e.imageHeightUnitTablet,imageHeightUnitMobile:e.imageHeightUnitMobile,imageHasLightbox:e.imageHasLightbox,imageShape:e.imageShape,imageShapeStretch:e.imageShapeStretch,imageShadow:e.imageShadow,imageExternalUrl:e.imageExternalUrl,figcaption:e.figcaptionText,figcaptionShow:e.figcaptionShow}))),{parentBlock:c}=(0,C.useSelect)((e=>{const{getBlockRootClientId:t,getBlock:n}=e("core/block-editor");return{parentBlock:n(t(i))}}),[i]),{setImage:u}=(()=>{const e=(0,r.useBlockSetAttributesContext)(),t=(0,r.useBlockAttributesContext)((e=>({imageAlt:e.imageAlt})));return{setImage:{onChange:n=>{e({imageUrl:n.url,imageId:n.id,imageHeightAttribute:n.height,imageWidthAttribute:n.width,imageExternalUrl:"",...t.imageAlt?{}:{imageAlt:n.alt||""}})},onChangeSizeDesktop:t=>{let{width:n,height:o,widthUnit:a,heightUnit:l}=t;const r={};void 0!==n&&(r.imageWidth=n),void 0!==o&&(r.imageHeight=o),void 0!==l&&(r.imageHeightUnit=l),void 0!==a&&(r.imageWidthUnit=a),e(r)},onChangeSizeTablet:t=>{let{width:n,height:o,widthUnit:a,heightUnit:l}=t;const r={};void 0!==n&&(r.imageWidthTablet=n),void 0!==o&&(r.imageHeightTablet=o),void 0!==l&&(r.imageHeightUnitTablet=l),void 0!==a&&(r.imageWidthUnitTablet=a),e(r)},onChangeSizeMobile:t=>{let{width:n,height:o,widthUnit:a,heightUnit:l}=t;const r={};void 0!==n&&(r.imageWidthMobile=n),void 0!==o&&(r.imageHeightMobile=o),void 0!==l&&(r.imageHeightUnitMobile=l),void 0!==a&&(r.imageWidthUnitMobile=a),e(r)},onRemove:()=>{e({imageUrl:"",imageId:"",imageHeightAttribute:"",imageWidthAttribute:""})}}}})(),p="auto"===n?"auto":void 0!==n?n:"",h=(0,_.applyFilters)("stackable.image.enable-handlers",!0,c),g="gradient"===s.imageOverlayColorType&&(s.imageOverlayColorHover||s.imageOverlayColorParentHover||s.imageOverlayOpacityHover||s.imageOverlayOpacityParentHover);return(0,o.createElement)($t,(0,d.Z)({},u,{showHandles:h&&l,imageId:s.imageId,imageURL:s.imageUrl,size:s.imageSize,src:s.imageUrl||s.imageExternalUrl,width:s.imageWidth||t,widthTablet:s.imageWidthTablet,widthMobile:s.imageWidthMobile,widthUnit:s.imageWidthUnit||"%",widthUnitTablet:s.imageWidthUnitTablet,widthUnitMobile:s.imageWidthUnitMobile,height:s.imageHeight||p,heightTablet:s.imageHeightTablet,heightMobile:s.imageHeightMobile,heightUnit:s.imageHeightUnit||"px",heightUnitTablet:s.imageHeightUnitTablet,heightUnitMobile:s.imageHeightUnitMobile,shape:s.imageShape,shapeStretch:s.imageShapeStretch,shadow:s.imageShadow,hasGradientOverlay:g,hasLightbox:s.imageHasLightbox,defaultWidth:e.defaultWidth,defaultHeight:e.defaultHeight,figcaption:s.figcaption,figcaptionShow:s.figcaptionShow,figcaptionClassnames:e.figcaptionClassnames},(0,Q.pickBy)(a,(e=>void 0!==e))))};Ut.defaultProps={defaultWidth:150,defaultHeight:300,enableHandles:!0,showTooltips:!1},Ut.Content=e=>{const{defaultWidth:t,defaultHeight:n,attributes:a,src:l,alt:r,width:i,...s}=e,c="auto"===n&&a.imageUrl?"auto":300,u="gradient"===a.imageOverlayColorType&&(a.imageOverlayColorHover||a.imageOverlayColorParentHover||a.imageOverlayOpacityHover||a.imageOverlayOpacityParentHover);return(0,o.createElement)($t.Content,(0,d.Z)({imageId:a.imageId,imageURL:a.imageUrl,alt:r||a.imageAlt,showEmptyAlt:a.imageShowEmptyAlt,size:a.imageSize,src:l||a.imageUrl||a.imageExternalUrl,width:i||a.imageWidthAttribute||a.imageWidth||t,height:a.imageHeightAttribute||a.imageHeight||c,shape:a.imageShape,shapeStretch:a.imageShapeStretch,shadow:a.imageShadow,hasGradientOverlay:u,hasLightbox:a.imageHasLightbox,figcaption:a.figcaptionText,figcaptionShow:a.figcaptionShow,figcaptionClassnames:e.figcaptionClassnames},s))},Ut.Content.defaultProps={attributes:{},defaultWidth:150,defaultHeight:300},Ut.InspectorControls=Bt,Ut.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{imageWidthUnitDefault:n="%",selector:o="img"}=t;yt(e),e.add({attributes:{imageShow:{type:"boolean",default:!0},imageUrl:{type:"string",default:""},imageId:{type:"number",default:""},imageAlt:{type:"string",source:"attribute",selector:o,attribute:"alt",default:""},imageShowEmptyAlt:{type:"boolean",default:!1},imageAspectRatio:{stkResponsive:!0,type:"string",default:""},imageSize:{type:"string",default:"full"},imageWidthAttribute:{type:"number",default:""},imageHeightAttribute:{type:"number",default:""},imageOverlayColorType:{type:"string",default:""},imageOverlayColor:{type:"string",default:"",stkHover:!0},imageOverlayOpacity:{type:"number",default:"",stkHover:!0},imageOverlayBlendMode:{type:"string",default:""},imageFocalPoint:{stkResponsive:!0,stkHover:!0,type:"object"},imageFit:{stkResponsive:!0,type:"string",default:""},imageHeight:{stkResponsive:!0,stkUnits:"px",type:"number",default:""},imageWidth:{stkResponsive:!0,stkUnits:n,type:"number",default:""},imageHasLightbox:{type:"boolean",default:!1},imageZoom:{stkHover:!0,type:"number",default:""},imageShadow:{stkHover:!0,type:"string",default:""},imageFilter:{stkHover:!0,type:"string",default:""},imageShape:{type:"string",default:""},imageShapeFlipX:{type:"boolean",default:""},imageShapeFlipY:{type:"boolean",default:""},imageShapeStretch:{type:"boolean",default:!0},imageExternalUrl:{type:"string",default:""}},versionAdded:"3.0.0",versionDeprecated:""}),e.add({attributes:{imageBorderRadius:{type:"string",default:""}},versionAdded:"3.16.4",versionDeprecated:""})},Ut.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o=".stk-img-wrapper",hoverSelector:a=".stk-img-wrapper:hover",hoverSelectorCallback:l=null,enableWidth:r=!0,enableWidthCallback:i=null,saveEnableWidthCallback:s=null,enableHeight:c=!0,enableHeightCallback:d=null,enableAspectRatio:u=!0,enableAspectRatioCallback:p=null,widthStyleRule:h=null,widthStyleRuleCallback:g=null,editorWidthUnitCallback:m=null,saveWidthUnitCallback:v=null,heightUnitCallback:b=null,dependencies:f=[]}=t,k=i||(()=>r),y=d||(()=>c),_=p||(()=>u),C=g||(()=>h||"width");e.addBlockStyles("imageAspectRatio",[{...n,selector:[o,`${o} .stk-img-resizer-wrapper`],renderIn:"edit",styleRule:"aspectRatio",attrName:"imageAspectRatio",key:"imageAspectRatio",responsive:"all",enabledCallback:_},{...n,selector:o,renderIn:"save",styleRule:"aspectRatio",attrName:"imageAspectRatio",key:"imageAspectRatio",responsive:"all",enabledCallback:_}]),e.addBlockStyles("imageWidth",[{...n,selector:`${o}:not(.stk--is-resizing)`,renderIn:"edit",styleRule:"width",attrName:"imageWidth",key:"imageWidth",hasUnits:"%",unitCallback:m,responsive:"all",enabledCallback:k,valueCallback:(e,t)=>u&&!e&&t("imageAspectRatio")&&t("imageHeight")?"auto":e,dependencies:["imageAspectRatio","imageHeight"]},{...n,selector:o,renderIn:"save",styleRuleCallback:C,attrName:"imageWidth",key:"imageWidth-save",hasUnits:"%",unitCallback:v,responsive:"all",enabledCallback:s||k,valueCallback:(e,t)=>u&&!e&&t("imageAspectRatio")&&t("imageHeight")?"auto":e,dependencies:["imageAspectRatio","imageHeight"]}]),e.addBlockStyles("imageHeight",[{...n,selector:`${o}:not(.stk--is-resizing)`,renderIn:"edit",styleRule:"height",attrName:"imageHeight",key:"imageHeight",hasUnits:"px",unitCallback:b,responsive:"all",enabledCallback:y,valueCallback:(e,t)=>u&&!e&&t("imageAspectRatio")&&t("imageWidth")?"auto":e,valuePreCallback:(e,t)=>u&&""===e&&t("imageAspectRatio")&&!t("imageWidth")?"auto":e,dependencies:["imageAspectRatio","imageWidth"]},{...n,selector:o,renderIn:"save",styleRule:"height",attrName:"imageHeight",key:"imageHeight-save",hasUnits:"px",unitCallback:b,responsive:"all",enabledCallback:y,valueCallback:(e,t)=>u&&!e&&t("imageAspectRatio")&&t("imageWidth")?"auto":e,valuePreCallback:(e,t)=>u&&""===e&&t("imageAspectRatio")&&!t("imageHeight")?"auto":e,dependencies:["imageAspectRatio","imageWidth"]}]),e.addBlockStyles("imageShadow",[{...n,selector:`${o} .stk-img-resizer-wrapper`,hoverSelector:a?`${a} .stk-img-resizer-wrapper`:void 0,hoverSelectorCallback:l,renderIn:"edit",styleRule:"filter",attrName:"imageShadow",key:"imageShadow",format:"drop-shadow(%s)",hover:"all"},{...n,selector:o,hoverSelector:a,renderIn:"save",styleRule:"filter",attrName:"imageShadow",key:"imageShadow-save",format:"drop-shadow(%s)",hover:"all"}]),e.addBlockStyles("imageFilter",[{...n,selector:`${o} img`,hoverSelector:`${a} img`,hoverSelectorCallback:l,styleRule:"filter",attrName:"imageFilter",key:"imageFilter",hover:"all"}]),e.addBlockStyles("imageZoom",[{...n,selector:`${o} img`,hoverSelector:`${a} img`,hoverSelectorCallback:l,styleRule:"transform",attrName:"imageZoom",key:"imageZoom",format:"scale(%s)",hover:"all"}]),e.addBlockStyles("imageBorderRadius",[{...n,selector:`${o} .stk-img-resizer-wrapper img`,renderIn:"edit",styleRule:"borderRadius",attrName:"imageBorderRadius",key:"imageBorderRadius",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px"},{...n,selector:`${o} img`,renderIn:"save",styleRule:"borderRadius",attrName:"imageBorderRadius",key:"imageBorderRadius-save",valueCallback:e=>"string"==typeof e&&e.startsWith("var")?e:e+"px"}]),e.addBlockStyles("imageFocalPoint",[{...n,selector:`${o} img`,hoverSelector:`${a} img`,hoverSelectorCallback:l,styleRule:"objectPosition",attrName:"imageFocalPoint",key:"imageFocalPoint",valueCallback:Et,responsive:"all",hover:"all"}]),e.addBlockStyles("imageFit",[{...n,selector:`${o} img`,styleRule:"objectFit",attrName:"imageFit",key:"imageFit",responsive:"all"}]),e.addBlockStyles("imageShape",[{...n,renderIn:"edit",selector:[`${o} .stk-img-resizer-wrapper img`,`${o} .stk-img-resizer-wrapper::after`,`${o} .stk-img-resizer-wrapper::before`],styleRule:"mask-image",vendorPrefixes:["-webkit-"],attrName:"imageShape",key:"imageShape",responsive:"all",enabledCallback:e=>!!e("imageShape"),valueCallback:(e,t)=>St(e,t("imageShapeFlipX"),t("imageShapeFlipY"),t("imageShapeStretch")),dependencies:["imageShapeFlipX","imageShapeFlipY","imageShapeStretch",...f]},{...n,renderIn:"save",selector:[`${o} img`,`${o}::after`,`${o}::before`],styleRule:"mask-image",vendorPrefixes:["-webkit-"],attrName:"imageShape",key:"imageShape-save",responsive:"all",enabledCallback:e=>!!e("imageShape"),valueCallback:(e,t)=>St(e,t("imageShapeFlipX"),t("imageShapeFlipY"),t("imageShapeStretch")),dependencies:["imageShapeFlipX","imageShapeFlipY","imageShapeStretch",...f]}]),e.addBlockStyles("imageOverlayColor",[{...n,renderIn:"save",selector:`${o}::after`,hoverSelector:`${a}::after`,hoverSelectorCallback:l,styleRuleCallback:e=>"gradient"===e("imageOverlayColorType")?"backgroundImage":"backgroundColor",attrName:"imageOverlayColor",key:"imageOverlayColor-save",hoverCallback:e=>"gradient"===e("imageOverlayColorType")?null:"all",valueCallback:(e,t)=>{const n=t("imageOverlayColorType"),o=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===n&&!o)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==n&&o){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["imageOverlayColorType",...f]},{...n,renderIn:"edit",selector:`${o} .stk-img-resizer-wrapper::after`,hoverSelector:`${a} .stk-img-resizer-wrapper::after`,hoverSelectorCallback:l,styleRuleCallback:e=>"gradient"===e("imageOverlayColorType")?"backgroundImage":"backgroundColor",attrName:"imageOverlayColor",key:"imageOverlayColor",hoverCallback:e=>"gradient"===e("imageOverlayColorType")?null:"all",valueCallback:(e,t)=>{const n=t("imageOverlayColorType"),o=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===n&&!o)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==n&&o){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["imageOverlayColorType",...f]}]),e.addBlockStyles("imageOverlayColor",[{...n,renderIn:"edit",selector:`${o}::after`,hoverSelector:`${o}::before`,styleRuleCallback:e=>"gradient"===e("imageOverlayColorType")?"backgroundImage":"backgroundColor",attrName:"imageOverlayColor",key:"imageOverlayColor-edit-image",hoverCallback:e=>"gradient"===e("imageOverlayColorType")?"all":null,enabledCallback:e=>"gradient"===e("imageOverlayColorType"),valueCallback:(e,t,n,o)=>{if("normal"===o)return;const a=t("imageOverlayColorType"),l=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===a&&!l)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==a&&l){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["imageOverlayColorType","imageOverlayOpacity",...f]},{...n,renderIn:"save",selector:`${o}::after`,hoverSelector:`${o}::before`,styleRuleCallback:e=>"gradient"===e("imageOverlayColorType")?"backgroundImage":"backgroundColor",attrName:"imageOverlayColor",key:"imageOverlayColor-save-image",hoverCallback:e=>"gradient"===e("imageOverlayColorType")?"all":null,enabledCallback:e=>"gradient"===e("imageOverlayColorType"),valueCallback:(e,t,n,o)=>{if("normal"===o)return;const a=t("imageOverlayColorType"),l=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===a&&!l)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==a&&l){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["imageOverlayColorType","imageOverlayOpacity",...f]}]),e.addBlockStyles("imageOverlayOpacity",[{...n,renderIn:"save",selector:`${o}`,hoverSelector:`${o}::before`,styleRule:"--stk-gradient-overlay",attrName:"imageOverlayOpacity",key:"imageOverlayOpacity-save",hover:"all"},{...n,renderIn:"edit",selector:`${o} .stk-img-resizer-wrapper`,hoverSelector:`${o} .stk-img-resizer-wrapper::before`,styleRule:"--stk-gradient-overlay",attrName:"imageOverlayOpacity",key:"imageOverlayOpacity",hover:"all"}]),e.addBlockStyles("imageOverlayBlendMode",[{...n,renderIn:"save",selector:`${o}::after, ${o}::before`,styleRule:"mix-blend-mode",attrName:"imageOverlayBlendMode",key:"imageOverlayBlendMode-save"},{...n,renderIn:"edit",selector:`${o} .stk-img-resizer-wrapper::after, ${o} .stk-img-resizer-wrapper::before`,hoverSelectorCallback:l,styleRule:"mix-blend-mode",attrName:"imageOverlayBlendMode",key:"imageOverlayBlendMode"}])},(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);var Wt=n(1398);const Vt=e=>(0,Wt.getPlugin)("stackable-block-linking")?(0,o.createElement)(Gt,e):null,Gt=()=>{const[e,t]=(0,r.useLinking)(),{clientId:n}=(0,j.useBlockEditContext)(),{isOnlyBlock:s}=(0,C.useSelect)((e=>{const{getBlockRootClientId:t,getBlock:o}=e("core/block-editor");return{isOnlyBlock:1===o(t(n)).innerBlocks.length}}),[n]),c=(e=>{const t=(0,o.useMemo)((()=>wp.data.select("core/blocks").getBlockTypes().reduce(((e,t)=>{var n;return null!==(n=t.supports)&&void 0!==n&&n.stkBlockLinking&&e.push(t.name),e}),[])),[]);return(0,o.useMemo)((()=>{var n;if(!e)return null;let o=null;const{getBlock:a,getBlockParents:l}=(0,C.select)("core/block-editor"),r=(null===(n=a(e))||void 0===n?void 0:n.name)||"";if(t.includes(r)&&(o=e),o||(o=[...l(e)].reverse().find((e=>{var n;const o=null===(n=a(e))||void 0===n?void 0:n.name;return!!t.includes(o)&&e}))||null),o){const e=(0,Q.last)(l(o));if(e){var i,s;const t=null===(i=a(e))||void 0===i?void 0:i.name,n=wp.data.select("core/blocks").getBlockType(t);if(!1===(null==n||null===(s=n.supports)||void 0===s?void 0:s.stkBlockLinking))return null}}return o}),[e])})(n);if(s||!c)return null;const d=ge()(["stk-linking-wrapper__tooltip"],{"stk--is-unlinked":!e});return(0,o.createElement)("div",{className:"stk-linking-wrapper"},(0,o.createElement)(l.Tooltip,{placement:"bottom",text:(0,o.createElement)(o.Fragment,null,(0,i.__)("When linked, styling this block would also style other linked blocks in adjacent columns.",a.i18n),(0,o.createElement)("br",null),(0,o.createElement)("a",{href:"https://docs.wpstackable.com/article/452-how-to-use-linking/?utm_source=wp-linking-tooltip&utm_campaign=learnmore&utm_medium=gutenberg",target:"_blank",rel:"noopener noreferrer"},(0,i.__)("Learn more about linking",a.i18n)))},(0,o.createElement)("div",{className:d,onClick:()=>t(!e),onKeyDown:n=>{13===n.keyCode&&t(!e)},role:"button",tabIndex:"0"},(0,o.createElement)(Ze.Dashicon,{icon:e?"admin-links":"editor-unlink"}))))};Vt.Content=()=>null;const jt=e=>ge()({"stk-has-top-separator":e.topSeparatorShow,"stk-has-bottom-separator":e.bottomSeparatorShow}),Zt=(e,t)=>{const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{location:o="",selector:a,wrapperSelector:l=".stk-separator__wrapper",enableFlipHorizontally:r=!0,enableFlipVertically:i=!1,isInitiallyFlippedVertically:s=!0,dependencies:c=[]}=t,d=void 0!==a?a:` > .stk-separator__${o}`;e.addBlockStyles("separatorBringToFront",[{...n,attrNameTemplate:`${o}%s`,selector:d,styleRule:"zIndex",attrName:"separatorBringToFront",valuePreCallback:e=>{if(e)return 6}}]),e.addBlockStyles("separatorFlipHorizontally",[{...n,attrNameTemplate:`${o}%s`,selector:d,styleRule:"transform",attrName:"separatorFlipHorizontally",valuePreCallback:(e,t)=>{const n=e,o=t("separatorFlipVertically");if(!i&&!r)return;if(!n&&!o)return;const a=r&&n,l=a&&s,c=i&&o;return(0,Q.compact)([a?"scaleX(-1)":void 0,l?"scaleY(-1)":void 0,c?"scaleY(-1)":void 0]).join(" ")},dependencies:["separatorFlipVertically",...c]}]),e.addBlockStyles("separatorColor",[{...n,attrNameTemplate:`${o}%s`,selector:d+" svg",styleRule:"fill",attrName:"separatorColor"}]),e.addBlockStyles("separatorWidth",[{...n,attrNameTemplate:`${o}%s`,selector:d+` ${l}`,styleRule:"transform",attrName:"separatorWidth",format:"scaleX(%s)"}]),e.addBlockStyles("separatorHeight",[{...n,attrNameTemplate:`${o}%s`,selector:d+` ${l}`,styleRule:"height",responsive:"all",attrName:"separatorHeight",format:"%spx"}]),e.addBlockStyles("separatorShadow",[{...n,attrNameTemplate:`${o}%s`,selector:d+" svg",styleRule:"filter",attrName:"separatorShadow",format:"drop-shadow(%s)",valueCallback:e=>"drop-shadow(none)"===e?"none":e}])},qt=(e,t)=>{const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o}=t;e.addBlockStyles("textShadow",[{...n,renderIn:"edit",selector:void 0!==o?o:" > .stk-separator__bottom",styleRule:"bottom",attrName:"blockMargin",responsive:"all",valuePreCallback:e=>null==e?void 0:e.bottom,format:"%spx"}])};var Yt=n(2622),Kt=n(5509);const Xt=[{image:"dist/images/block-components-separator-wave-1.fe7d2e5.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Wave",a.i18n),1),value:"wave-1"},{image:"dist/images/block-components-separator-straight-1.fba0f99.png",label:(0,i.__)("Straight",a.i18n),value:"straight-1"},{image:"dist/images/block-components-separator-wave-2.bc3ff78.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Wave",a.i18n),2),value:"wave-2"},{image:"dist/images/block-components-separator-wave-3.9e204d5.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Wave",a.i18n),3),value:"wave-3"},{image:"dist/images/block-components-separator-wave-4.b82e3aa.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Wave",a.i18n),4),value:"wave-4"},{image:"dist/images/block-components-separator-slant-1.645f0b9.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Slant",a.i18n),1),value:"slant-1"},{image:"dist/images/block-components-separator-slant-2.50e3178.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Slant",a.i18n),2),value:"slant-2"},{image:"dist/images/block-components-separator-curve-1.277a020.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Curve",a.i18n),1),value:"curve-1"},{image:"dist/images/block-components-separator-curve-2.4b8c7da.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Curve",a.i18n),2),value:"curve-2"},{image:"dist/images/block-components-separator-curve-3.da5eb6d.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Curve",a.i18n),3),value:"curve-3"},{image:"dist/images/block-components-separator-rounded-1.85d0e25.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Rounded",a.i18n),1),value:"rounded-1"},{image:"dist/images/block-components-separator-rounded-2.6e57ec5.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Rounded",a.i18n),2),value:"rounded-2"},{image:"dist/images/block-components-separator-rounded-3.78cb6da.png",label:(0,i.sprintf)((0,i._x)("%s %d","Nth Title",a.i18n),(0,i.__)("Rounded",a.i18n),3),value:"rounded-3"}];(0,_.hasFilter)("stackable.block-component.separator.layouts","default")||(0,_.addFilter)("stackable.block-component.separator.layouts","default",(e=>[...e,...Xt]));const Jt=e=>{const{attribute:t,responsive:n,hover:a,valueCallback:r,changeCallback:i,onChange:s,value:c}=e,{excludeDesigns:u,...p}=e,h=(0,o.useMemo)((()=>((0,_.applyFilters)("stackable.block-component.separator.layouts",[])||[]).filter((e=>-1===(0,Q.findIndex)(u,(t=>t===(null==e?void 0:e.value)))))),[...u]),[g,m]=(0,Kt.G)(t,n,a,r,i),[v,b]=(0,Yt.ED)(p);return(0,o.createElement)(Yt.ZP,b,(0,o.createElement)(l.DesignControl,(0,d.Z)({},v,{options:h,selected:void 0===c?g:c,onChange:void 0===s?m:s})))};Jt.defaultProps={excludeDesigns:[],attribute:""};const Qt=Jt,en=["none","0px 0 1px #78787880","0px 0 2px #78787880","2px 4px 6px #000","0px 5px 10px #9999995a","0px 2px 20px #99999933","25px 10px 30px #123f524d","0px 10px 30px #0000000d","7px 5px 30px #48497927","0px 10px 60px #0000001a","70px 130px -60px #48497961"],tn=e=>{const{attrNameTemplate:t,hasFlipVertically:n}=e,r=(0,u.getAttributeNameFunc)(t),s=(0,_.applyFilters)("stackable.separator.shadows",en);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Qt,{label:(0,i.__)("Design",a.i18n),attribute:r("separatorDesign")}),(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Color",a.i18n),attribute:r("separatorColor")}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Height",a.i18n),min:30,sliderMax:400,placeholder:"",attribute:r("separatorHeight"),responsive:"all",helpTooltip:{video:"separator-height",title:(0,i.__)("Separator Height",a.i18n),description:(0,i.__)("Adjusts the height of the separator to stretch or compress vertically",a.i18n)}}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Width",a.i18n),attribute:r("separatorWidth"),min:1,sliderMax:4,step:.1,helpTooltip:{video:"separator-width",title:(0,i.__)("Separator Width",a.i18n),description:(0,i.__)("Adjusts the height of the separator to stretch or compress vertically",a.i18n)}}),(0,o.createElement)(l.ShadowControl,{isFilter:!0,label:(0,i.__)("Shadow / Outline",a.i18n),attribute:r("separatorShadow"),options:s,placeholder:"5",helpTooltip:{video:"separator-shadow",title:(0,i.__)("Shadow",a.i18n),description:(0,i.__)("Adjusts the intensity of the separator shadow and makes the separator more prominent",a.i18n)}}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Invert Design",a.i18n),attribute:r("separatorInverted")}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Flip Horizontally",a.i18n),attribute:r("separatorFlipHorizontally")}),n&&(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Flip Vertically",a.i18n),attribute:r("separatorFlipVertically")}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Bring to Front",a.i18n),attribute:r("separatorBringToFront"),helpTooltip:{video:"separator-bring-to-front",title:(0,i.__)("Bring to Front",a.i18n),description:(0,i.__)("Brings the separator layer in front of other block elements",a.i18n)}}))};tn.defaultProps={attrNameTemplate:"%s",hasFlipVertically:!1};const nn=e=>{const t=(0,o.useMemo)((()=>(0,_.applyFilters)("stackable.block-component.separator.top.after",null)),[]),n=(0,o.useMemo)((()=>(0,_.applyFilters)("stackable.block-component.separator.bottom.after",null)),[]),s=(0,r.useBlockSetAttributesContext)(),c=(0,r.useBlockAttributesContext)((e=>({topSeparatorShow:e.topSeparatorShow,bottomSeparatorShow:e.bottomSeparatorShow})));return(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Top Separator",a.i18n),id:"top-separator",hasToggle:!0,checked:c.topSeparatorShow,onChange:e=>s({topSeparatorShow:e})},(0,o.createElement)(tn,{attrNameTemplate:"top%s"}),t&&(0,o.createElement)(t,e),a.showProNotice&&(0,o.createElement)(l.ProControlButton,{type:"separator"})),(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Bottom Separator",a.i18n),id:"bottom-separator",hasToggle:!0,checked:c.bottomSeparatorShow,onChange:e=>s({bottomSeparatorShow:e})},(0,o.createElement)(tn,{attrNameTemplate:"bottom%s"}),n&&(0,o.createElement)(n,e),a.showProNotice&&(0,o.createElement)(l.ProControlButton,{type:"separator"})))};nn.SeparatorControls=tn;const on=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"top%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const n=(0,u.getAttrNameFunction)(e);return{[n(`SeparatorLayer${t}Show`)]:{type:"boolean",default:""},[n(`SeparatorLayer${t}Color`)]:{type:"string",default:""},[n(`SeparatorLayer${t}Height`)]:{stkResponsive:!0,type:"number",default:""},[n(`SeparatorLayer${t}Width`)]:{type:"number",default:""},[n(`SeparatorLayer${t}FlipHorizontally`)]:{type:"boolean",default:""},[n(`SeparatorLayer${t}Inverted`)]:{type:"boolean",default:""},[n(`SeparatorLayer${t}Opacity`)]:{type:"number",default:""},[n(`SeparatorLayer${t}BlendMode`)]:{type:"string",default:""}}},an=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s";const t=(0,u.getAttrNameFunction)(e);return{[t("separatorShow")]:{type:"boolean",default:""},[t("separatorDesign")]:{type:"string",default:""},[t("separatorColor")]:{type:"string",default:""},[t("separatorHeight")]:{stkResponsive:!0,type:"number",default:""},[t("separatorWidth")]:{type:"number",default:""},[t("separatorShadow")]:{type:"string",default:""},[t("separatorInverted")]:{type:"boolean",default:""},[t("separatorFlipHorizontally")]:{type:"boolean",default:""},[t("separatorFlipVertically")]:{type:"boolean",default:""},[t("separatorBringToFront")]:{type:"boolean",default:""}}},ln={...an("top%s"),...an("bottom%s"),...on("top%s",2),...on("top%s",3),...on("bottom%s",2),...on("bottom%s",3)},rn=e=>{let{children:t}=e;const n=(0,r.useBlockAttributesContext)((e=>({topSeparatorShow:e.topSeparatorShow,topSeparatorDesign:e.topSeparatorDesign,topSeparatorInverted:e.topSeparatorInverted,topSeparatorLayer2Show:e.topSeparatorLayer2Show,topSeparatorLayer3Show:e.topSeparatorLayer3Show,bottomSeparatorShow:e.bottomSeparatorShow,bottomSeparatorDesign:e.bottomSeparatorDesign,bottomSeparatorInverted:e.bottomSeparatorInverted,bottomSeparatorLayer2Show:e.bottomSeparatorLayer2Show,bottomSeparatorLayer3Show:e.bottomSeparatorLayer3Show})));return(0,o.createElement)(o.Fragment,null,n.topSeparatorShow&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"stk-separator stk-separator__top"},(0,o.createElement)("div",{className:"stk-separator__wrapper"},(0,o.createElement)(l.Separator2,{design:n.topSeparatorDesign,inverted:n.topSeparatorInverted}),(0,_.applyFilters)("stackable.block-component.separator.output.top.after",null,n)))),t,n.bottomSeparatorShow&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"stk-separator stk-separator__bottom"},(0,o.createElement)("div",{className:"stk-separator__wrapper"},(0,o.createElement)(l.Separator2,{design:n.bottomSeparatorDesign,inverted:n.bottomSeparatorInverted}),(0,_.applyFilters)("stackable.block-component.separator.output.bottom.after",null,n)))))};rn.Content=e=>{let{children:t,attributes:n}=e;return(0,o.createElement)(o.Fragment,null,n.topSeparatorShow&&(0,o.createElement)("div",{className:"stk-separator stk-separator__top"},(0,o.createElement)("div",{className:"stk-separator__wrapper"},(0,o.createElement)(l.Separator2,{design:n.topSeparatorDesign,inverted:n.topSeparatorInverted}),(0,_.applyFilters)("stackable.block-component.separator.output.top.after",null,n))),t,n.bottomSeparatorShow&&(0,o.createElement)("div",{className:"stk-separator stk-separator__bottom"},(0,o.createElement)("div",{className:"stk-separator__wrapper"},(0,o.createElement)(l.Separator2,{design:n.bottomSeparatorDesign,inverted:n.bottomSeparatorInverted}),(0,_.applyFilters)("stackable.block-component.separator.output.bottom.after",null,n))))},rn.Content.defaultProps={attributes:{}},rn.InspectorControls=nn,rn.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{}=t;e.add({attributes:ln,versionAdded:"3.0.0",versionDeprecated:""})},rn.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zt(e,{...t,location:"top"}),Zt(e,{...t,isInitiallyFlippedVertically:!1,location:"bottom"}),qt(e,t),(0,_.doAction)("stackable.block-component.separator.layer-styles.addStyles",e,{...t,location:"top"}),(0,_.doAction)("stackable.block-component.separator.layer-styles.addStyles",e,{...t,location:"bottom"})};var sn=n(2286);const cn=(0,o.memo)((e=>{const{clientId:t}=(0,j.useBlockEditContext)(),n=(0,r.useBlockAttributesContext)((e=>({layout:e.layout,uniqueId:e.uniqueId,blockMargin:e.blockMargin,blockMarginTablet:e.blockMarginTablet,blockMarginMobile:e.blockMarginMobile,blockMarginUnit:e.blockMarginUnit,blockMarginUnitTablet:e.blockMarginUnitTablet,blockMarginUnitMobile:e.blockMarginUnitMobile}))),{isLastBlock:a,parentBlock:i,isGroupBlock:s,isRowLayout:c}=(0,C.useSelect)((e=>{const{getBlockOrder:n,getBlockRootClientId:o,getBlock:a}=e("core/block-editor"),l=o(t),r=a(l),i=n(l),s="core/group"===(null==r?void 0:r.name);let c=!1;var d,u;return s&&(c="flex"===(null===(d=r.attributes.layout)||void 0===d?void 0:d.type)&&"nowrap"===(null===(u=r.attributes.layout)||void 0===u?void 0:u.flexWrap)),{parentBlock:r,isLastBlock:i[i.length-1]===t,isGroupBlock:s,isRowLayout:c}}),[t]);return"horizontal"===(0,r.useBlockContextContext)((e=>e["stackable/innerBlockOrientation"]))||s&&c||a||!n.uniqueId?null:(0,_.applyFilters)("stackable.edit.margin-bottom.enable-handlers",!0,i)?(0,o.createElement)(l.ResizableBottomMargin,(0,d.Z)({previewSelector:e.previewSelector||(n.uniqueId?`.${(0,u.getUniqueBlockClass)(n.uniqueId)}`:void 0),attribute:"blockMargin",responsive:"all"},n)):null}));cn.addAttributes=e=>{e.add({attributes:{blockMargin:{stkResponsive:!0,type:"object"}},versionAdded:"3.0.0",versionDeprecated:""})},cn.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o=""}=t;e.addBlockStyles("blockMarginBottom",[{...n,selector:o,styleRule:"marginBottom",attrName:"blockMarginBottom",key:"blockMarginBottom",responsive:"all",format:"%spx"}])};const dn=e=>ge()({"stk--hide-desktop":e.hideDesktop,"stk--hide-tablet":e.hideTablet,"stk--hide-mobile":e.hideMobile}),un=()=>null;un.InspectorControls=()=>{const e=(0,r.useBlockSetAttributesContext)(),{hideDesktop:t,hideTablet:n,hideMobile:s}=(0,r.useBlockAttributesContext)((e=>({hideDesktop:e.hideDesktop,hideTablet:e.hideTablet,hideMobile:e.hideMobile})));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Responsive",a.i18n),initialOpen:!1},(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Hide on Desktop",a.i18n),checked:t,onChange:t=>e({hideDesktop:t})}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Hide on Tablet",a.i18n),checked:n,onChange:t=>e({hideTablet:t})}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Hide on Mobile",a.i18n),checked:s,onChange:t=>e({hideMobile:t})}))))},un.addAttributes=e=>{e.add({attributes:{hideDesktop:{type:"boolean",default:!1},hideTablet:{type:"boolean",default:!1},hideMobile:{type:"boolean",default:!1}},versionAdded:"3.0.0",versionDeprecated:""})};const pn=()=>a.showProNotice||a.isPro?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorAdvancedControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:(0,i.__)("Transform & Transition",a.i18n),id:"transform-transition",isPremiumPanel:!a.isPro},!a.isPro&&(0,o.createElement)(l.ProControl,{type:"transforms"}),a.isPro&&(0,_.applyFilters)("stackable.block-component.transform-transition.control",null)))):null;pn.defaultProps={};const hn=()=>null;hn.InspectorControls=pn,hn.addAttributes=e=>{e.add({attributes:{transitionDuration:{type:"number",default:""},transformOrigin:{type:"string",default:""},transitionFunction:{type:"string",default:""},transform:{type:"string",stkHover:!0,stkResponsive:!0,default:""}},versionAdded:"3.0.0",versionDeprecated:""})},hn.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,_.doAction)("stackable.block-component.transform.style.addStyles",e,t)};var gn=n(7811);const mn=["none","2px 2px 4px #00000033","6px 6px 4px #78787833","2px 4px 5px #00000066","0px 0px 5px #00000066","4px 4px 0px #000000ff","0px 15px 14px #123f524d","25px 10px 14px #123f524d","25px 10px 30px #123f524d","0px 0px 40px #123f5299","0px 0px 62px #47494fff","0px 0px 100px #47494fff"],vn=[{value:"",title:(0,i.__)("Single",a.i18n)},{value:"gradient",title:(0,i.__)("Gradient",a.i18n)}],bn=e=>{var t;const{hasAlign:n,hasColor:s,hasTextTag:c,hasTextContent:d,hasRemoveMargins:p,attrNameTemplate:h,isMultiline:g,hasGradient:m,hasTextShadow:v,blockState:b}=e,{getAttribute:f,updateAttributeHandler:k,updateAttributes:y,updateAttribute:w}=(0,r.useAttributeEditHandlers)(h),S=(0,u.getAttrNameFunction)(h),E=f("text"),[x,T]=(0,o.useState)(E),B=(0,C.useSelect)((e=>{var t,n;return null!==(t=null===(n=e("stackable/global-preset-controls.custom"))||void 0===n?void 0:n.getUseTypographyAsPresets())&&void 0!==t&&t}));(0,o.useEffect)((()=>{E!==x&&T(E)}),[E]),(0,o.useEffect)((()=>{let e;return x!==E&&(e=setTimeout((()=>{w("text",x)}),300)),()=>clearTimeout(e)}),[w,x,E]);const M=(0,o.useCallback)((e=>T((e=>{const t=(new DOMParser).parseFromString(e,"text/html"),n=t.querySelector("parsererror"),o=t.body.innerHTML.trim();return n||o!==e.trim()?(0,gn.escapeHTML)(e):e})(e))),[]),A=(null===(t=(0,r.usePresetControls)("fontSizes"))||void 0===t?void 0:t.getPresetMarks({customOnly:B}))||null;return(0,o.createElement)(o.Fragment,null,(0,_.applyFilters)("stackable.block-component.typography.before",null,e),d&&(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Content",a.i18n),hasPanelModifiedIndicator:!1,isMultiline:g,value:(0,Q.unescape)(x),onChange:M,changeDynamicContent:T,isDynamic:!0}),p&&(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Use theme heading margins",a.i18n),attribute:S("useThemeTextMargins")}),c&&(0,o.createElement)(l.HeadingButtonsControl,{attribute:S("textTag"),hasP:f("hasP")}),(0,o.createElement)(l.ButtonIconPopoverControl,{label:(0,i.__)("Typography",a.i18n),popoverLabel:(0,i.__)("Typography",a.i18n),onReset:()=>{y({[(0,u.getAttributeName)("fontFamily")]:"",[(0,u.getAttributeName)("fontWeight","desktop",b)]:"",[(0,u.getAttributeName)("textTransform","desktop",b)]:"",[(0,u.getAttributeName)("letterSpacing","desktop",b)]:"",[(0,u.getAttributeName)("letterSpacing","tablet",b)]:"",[(0,u.getAttributeName)("letterSpacing","mobile",b)]:"",[(0,u.getAttributeName)("lineHeight","desktop",b)]:"",[(0,u.getAttributeName)("lineHeight","tablet",b)]:"",[(0,u.getAttributeName)("lineHeight","mobile",b)]:""})},allowReset:f("fontFamily")||f("fontWeight","desktop",b)||f("textTransform","desktop",b)||f("letterSpacing","desktop",b)||f("letterSpacing","tablet",b)||f("letterSpacing","mobile",b)||f("lineHeight","desktop",b)||f("lineHeight","tablet",b)||f("lineHeight","mobile",b)},(0,o.createElement)(l.FontFamilyControl,{label:(0,i.__)("Font Family",a.i18n),onChange:k("fontFamily"),value:f("fontFamily"),placeholder:(0,i.__)("Theme Default",a.i18n),helpTooltip:{video:"typography-family",description:(0,i.__)("Sets the font set to be used for the element",a.i18n)}}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Weight",a.i18n),options:[{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"},{label:(0,i.__)("Default",a.i18n),value:""},{label:(0,i.__)("Normal",a.i18n),value:"normal"},{label:(0,i.__)("Bold",a.i18n),value:"bold"}],attribute:S("fontWeight"),helpTooltip:{video:"typography-weight",title:(0,i.__)("Font weight",a.i18n),description:(0,i.__)("Sets the thinness or thickness of text characters",a.i18n)}}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Transform",a.i18n),options:[{label:(0,i.__)("Default",a.i18n),value:""},{label:(0,i.__)("Uppercase",a.i18n),value:"uppercase"},{label:(0,i.__)("Lowercase",a.i18n),value:"lowercase"},{label:(0,i.__)("Capitalize",a.i18n),value:"capitalize"},{label:(0,i.__)("None",a.i18n),value:"none"}],attribute:S("textTransform"),helpTooltip:{video:"typography-transform",title:(0,i.__)("Transform",a.i18n),description:(0,i.__)("Sets the usage of upper or lower case",a.i18n)}}),(0,o.createElement)(l.AdvancedSelectControl,{label:(0,i.__)("Font Style",a.i18n),options:[{label:(0,i.__)("Default",a.i18n),value:""},{label:(0,i.__)("Normal",a.i18n),value:"normal"},{label:(0,i.__)("Italic",a.i18n),value:"italic"},{label:(0,i.__)("Oblique",a.i18n),value:"oblique"}],attribute:S("fontStyle")}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Line-Height",a.i18n),attribute:S("lineHeight"),units:["px","em","rem"],min:[1,.1],sliderMax:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,initialPosition:[37,1.8],responsive:"all",helpTooltip:{video:"typography-line-height",title:(0,i.__)("Line height",a.i18n),description:(0,i.__)("Sets the vertical distance between lines of text",a.i18n)}}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Letter Spacing",a.i18n),attribute:S("letterSpacing"),min:-5,sliderMax:10,step:.1,allowReset:!0,placeholder:"0",responsive:"all",helpTooltip:{video:"typography-letter-spacing",title:(0,i.__)("Letter spacing",a.i18n),description:(0,i.__)("Sets the distance or space between letters",a.i18n)}})),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Size",a.i18n),allowReset:!0,attribute:S("fontSize"),units:["px","em","rem"],min:[0,0,0],sliderMax:[150,7,7],step:[1,.05,.05],placeholder:e.sizePlaceholder,responsive:"all",helpTooltip:{title:(0,i.__)("Font size",a.i18n),description:(0,i.__)("Sets the size of text characters",a.i18n)},marks:A}),s&&(0,o.createElement)(o.Fragment,null,m&&(0,o.createElement)(l.AdvancedToolbarControl,{controls:vn,isSmall:!0,attribute:S("textColorType")}),(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Text Color",a.i18n),attribute:S("textColor1"),hover:(!m||"gradient"!==f("textColorType"))&&"all",isGradient:"gradient"===f("textColorType")}),(0,_.applyFilters)("stackable.block-component.typography.color.after",null,e)),v&&(0,o.createElement)(l.ShadowControl,{isFilter:!0,label:(0,i.__)("Shadow / Outline",a.i18n),attribute:S("textShadow"),options:mn,placeholder:"",hover:"all",hasInset:!1}),n&&(0,o.createElement)(l.AlignButtonsControl,{label:(0,i.__)("Align",a.i18n),attribute:S("textAlign"),responsive:"all"}))};bn.defaultProps={hasAlign:!1,hasColor:!0,hasTextTag:!0,hasTextContent:!0,hasRemoveMargins:!1,attrNameTemplate:"%s",isMultiline:!1,hasGradient:!0,hasTextShadow:!1,blockState:"normal"};const fn=(0,o.memo)((e=>{const{hasAlign:t,hasColor:n,hasTextTag:a,hasTextContent:i,hasRemoveMargins:s,attrNameTemplate:c,isMultiline:u,initialOpen:p,hasGradient:h,hasToggle:g,label:m,hasTextShadow:v,blockState:b}=e,{getAttribute:f,updateAttributeHandler:k}=(0,r.useAttributeEditHandlers)(c);return(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,(0,d.Z)({title:m,initialOpen:p,hasToggle:g},g?{checked:f("%s"!==c?"show":"showText"),onChange:k("%s"!==c?"show":"showText")}:{},{id:"text"}),(0,o.createElement)(bn,{hasAlign:t,hasColor:n,hasTextTag:a,hasTextContent:i,hasRemoveMargins:s,attrNameTemplate:c,isMultiline:u,hasGradient:h,hasTextShadow:v,blockState:b})))}));fn.defaultProps={hasAlign:!1,hasColor:!0,hasTextTag:!0,hasTextContent:!0,attrNameTemplate:"%s",isMultiline:!1,initialOpen:!0,hasGradient:!0,hasRemoveMargins:!1,label:(0,i.__)("Typography",a.i18n),sizePlaceholder:"32",hasTextShadow:!1},fn.Controls=bn;const kn=(e,t)=>{const{attrNameTemplate:n="%s"}=t;e.add({attributes:{textColor2:{type:"string",default:""},textGradientDirection:{type:"number",default:""}},versionAdded:"3.0.0",versionDeprecated:"3.12.0",attrNameTemplate:n}),e.add({attributes:{fontSize:{stkResponsive:!0,type:"number",default:"",stkUnits:"px"}},versionAdded:"3.0.0",versionDeprecated:"3.16.0",attrNameTemplate:n})},yn={isEligible:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)];return"gradient"===o("textColorType")&&o("textColor2")},migrate:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a={...t,[n("textColor2")]:void 0,[n("textGradientDirection")]:void 0};if("gradient"===o("textColorType")&&o("textColor2")){const e=o("textColor1")||o("textColor2"),t=o("textColor2")||o("textColor1"),l=e&&e.includes("-gradient"),r=t&&t.includes("-gradient");if(!l&&!r){const l=o("textGradientDirection")||0===o("textGradientDirection")?o("textGradientDirection"):180;a[n("textColor1")]=`linear-gradient(${l}deg, ${e} 0%, ${t} 100%)`}}return a}},_n={isEligible:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)];return!!(o("textShadow")&&-1!==o("textShadow").indexOf("rgba")||o("textShadowHover")&&-1!==o("textShadowHover").indexOf("rgba")||o("textShadowParentHover")&&-1!==o("textShadowParentHover").indexOf("rgba"))},migrate:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a={...t},l=o("textShadow"),r=o("textShadowHover")||l,i=o("textShadowParentHover")||r;if(o("textShadow")&&-1!==o("textShadow").indexOf("rgba")){const{options:e,color:t}=(0,u.extractRgba)(l),o=(0,u.rgbaToHexAlpha)(t);a[n("textShadow")]=`${e} ${o}`}if(o("textShadowHover")&&-1!==o("textShadowHover").indexOf("rgba")){const{options:e,color:t}=(0,u.extractRgba)(r),o=(0,u.rgbaToHexAlpha)(t);a[n("textShadowHover")]=`${e} ${o}`}if(o("textShadowParentHover")&&-1!==o("textShadowParentHover").indexOf("rgba")){const{options:e,color:t}=(0,u.extractRgba)(i),o=(0,u.rgbaToHexAlpha)(t);a[n("textShadowParentHover")]=`${e} ${o}`}return a}},Cn={isEligible:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a=o("fontSize"),l=o("fontSizeTablet"),r=o("fontSizeMobile");return"number"==typeof a||"number"==typeof l||"number"==typeof r},migrate:e=>t=>{const n=(0,u.getAttrNameFunction)(e),o=e=>t[n(e)],a={...t},l=o("fontSize"),r=o("fontSizeTablet"),i=o("fontSizeMobile");return"number"==typeof l&&(a[n("fontSize")]=String(l)),"number"==typeof r&&(a[n("fontSizeTablet")]=String(r)),"number"==typeof i&&(a[n("fontSizeMobile")]=String(i)),a}},wn={lineHeight:{stkResponsive:!0,type:"number",default:"",stkUnits:"em"},fontFamily:{type:"string",default:""},fontStyle:{type:"string",default:""},fontWeight:{type:"string",default:""},textTransform:{type:"string",default:""},letterSpacing:{stkResponsive:!0,type:"number",default:""},textColorType:{type:"string",default:""},textColorClass:{type:"string",default:""},textColor1:{type:"string",stkHover:!0,default:""},textShadow:{stkHover:!0,type:"string",default:""},textAlign:{stkResponsive:!0,type:"string",default:""},hasP:{type:"boolean",default:!1}},Sn=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";const n=(0,u.getAttrNameFunction)(t);return ge()({"stk--is-gradient":"gradient"===e[n("textColorType")],[`has-text-align-${e[n("textAlign")]}`]:e[n("textAlign")],[`has-text-align-${e[n("textAlignTablet")]}-tablet`]:e[n("textAlignTablet")],[`has-text-align-${e[n("textAlignMobile")]}-mobile`]:e[n("textAlignMobile")],"has-text-color":!!e[n("textColor1")],[e[n("textColorClass")]]:!!e[n("textColorClass")]})},En=(0,o.memo)((0,o.forwardRef)(((e,t)=>{const{className:n,attrNameTemplate:a,tagName:l,defaultTag:i,value:s,onChange:c,children:p,editable:h,identifier:g,defaultValue:m,withoutInteractiveFormatting:v=!1,allowedFormats:b=null,enableDebounce:f=!0,...k}=e,y=(0,u.getAttrNameFunction)(a),_=(0,r.useBlockSetAttributesContext)(),{textTag:C,text:w,fontFamily:S}=(0,r.useBlockAttributesContext)((e=>{const t=(0,u.getAttrNameFunction)(a);return{textTag:e[t("textTag")],text:e[t("text")],fontFamily:e[t("fontFamily")]}})),E=(null===l?C:l)||i||"p",x=null===s?w:s,T=null===c?e=>_({[y("text")]:e}):c,[B,M]=(0,o.useState)(x);(0,r.useFontLoader)(S),(0,o.useEffect)((()=>{x!==B&&M(x)}),[x]),(0,o.useEffect)((()=>{let e;return x!==B&&f&&(e=setTimeout((()=>{T(B||m)}),300)),()=>clearTimeout(e)}),[B,T]);const A=(0,Pt.wt)(B);return h?(0,o.createElement)(j.RichText,(0,d.Z)({identifier:g,className:n,tagName:E,value:A,onChange:e=>{f?M(e):T(e)},ref:t,withoutInteractiveFormatting:v,allowedFormats:b},k),p):(0,o.createElement)(E,{className:n},A)})));En.defaultProps={attrNameTemplate:"%s",tagName:null,defaultTag:"p",value:null,onChange:null,editable:!0,identifier:"text"},En.Content=e=>{const{className:t,attrNameTemplate:n,attributes:a,tagName:l,defaultTag:r,value:i,children:s,...c}=e,p=e=>{const t=(0,u.getAttrName)(n,e);return a[(0,u.getAttributeName)(t)]};return(0,o.createElement)(j.RichText.Content,(0,d.Z)({className:t,tagName:(null===l?p("textTag"):l)||r,value:null===i?p("text"):i},c),s)},En.Content.defaultProps={attrNameTemplate:"%s",attributes:{},tagName:null,defaultTag:"p",value:null},En.InspectorControls=fn,En.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".stk-content",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{hasTextTag:o=!0,hasTextContent:a=!0,defaultTextTag:l="p",attrNameTemplate:r="%s",multiline:i,defaultText:s="",multilineWrapperTags:c}=n;kn(e,n),e.add({attributes:{...wn,...a?{showText:{type:"boolean",default:!0},text:{source:"html",selector:t,multiline:i,default:s,__unstableMultilineWrapperTags:c}}:{},...o?{textTag:{type:"string",default:l}}:{}},versionAdded:"3.0.0",versionDeprecated:"",attrNameTemplate:r}),e.add({attributes:{fontSize:{stkResponsive:!0,type:"string",default:"",stkUnits:"px"}},versionAdded:"3.16.0",versionDeprecated:"",attrNameTemplate:r})},En.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.0.0",versionDeprecated:""},{selector:o="",editSelector:a="",saveSelector:l="",selectorCallback:r=null,attrNameTemplate:i="%s",inherit:s=!0,inheritMin:c,inheritMax:d=50,hoverSelector:p="",hoverSelectorCallback:h=null,editHoverSelectorCallback:g=null,saveHoverSelectorCallback:m=null,dependencies:v=[]}=t;e.addBlockStyles("textShadow",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"textShadow",attrName:"textShadow",key:"textShadow",hover:"all",hoverSelector:p,hoverSelectorCallback:g||h},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"textShadow",attrName:"textShadow",key:"textShadow",hover:"all",hoverSelector:p,hoverSelectorCallback:m||h}]),e.addBlockStyles("fontSize",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontSize",attrName:"fontSize",key:"fontSize",hasUnits:"px",responsive:"all",clampCallback:(e,t,n,o)=>{const a=t("fontSize",n,o),l="mobile"===n;let r=e;const i=s&&(0,u.clampInheritedStyle)(e,{min:c,max:d});if(l){r=s&&(0,u.clampInheritedStyle)(t("fontSize","desktop",o),{min:c,max:d})||r}return r=i||r,r=void 0!==a&&""!==a?a:l?void 0:r,r},dependencies:["fontSizeUnit","fontSize",...v]},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontSize",attrName:"fontSize",key:"fontSize",hasUnits:"px",responsive:"all",clampCallback:(e,t,n,o)=>{const a=t("fontSize",n,o),l="mobile"===n;let r=e;const i=s&&(0,u.clampInheritedStyle)(e,{min:c,max:d});if(l){r=s&&(0,u.clampInheritedStyle)(t("fontSize","desktop",o),{min:c,max:d})||r}return r=i||r,r=void 0!==a&&""!==a?a:l?void 0:r,r},dependencies:["fontSizeUnit","fontSize",...v]}]),e.addBlockStyles("textColor1",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRuleCallback:e=>"gradient"===e("textColorType")?"backgroundImage":"color",hover:"all",hoverSelector:p,hoverSelectorCallback:g||h,attrName:"textColor1",key:"textColor1-color",valuePreCallback:(e,t,n,o)=>e||"gradient"!==t("textColorType","desktop",o)?e:"currentColor",valueCallback:(e,t)=>{const n=t("textColorType"),o=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===n&&!o)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==n&&o){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["textColorType",...v]},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRuleCallback:e=>"gradient"===e("textColorType")?"backgroundImage":"color",hover:"all",hoverSelector:p,hoverSelectorCallback:m||h,attrName:"textColor1",key:"textColor1-color",valuePreCallback:(e,t,n,o)=>e||"gradient"!==t("textColorType","desktop",o)?e:"currentColor",valueCallback:(e,t)=>{const n=t("textColorType"),o=(null==e?void 0:e.startsWith("linear-"))||(null==e?void 0:e.startsWith("radial-"));if("gradient"===n&&!o)return`linear-gradient(${e} 0%, ${e} 100%)`;if("gradient"!==n&&o){const t=e.match(/((rgba?|var)\([^\)]+\)|#[\w\d]+)/);if(t)return t[0]}return e},dependencies:["textColorType",...v]}]),e.addBlockStyles("lineHeight",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"lineHeight",attrName:"lineHeight",key:"lineHeight",responsive:"all",hasUnits:"em",dependencies:v},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"lineHeight",attrName:"lineHeight",key:"lineHeight",responsive:"all",hasUnits:"em",dependencies:v}]),e.addBlockStyles("fontWeight",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontWeight",attrName:"fontWeight",key:"fontWeight",dependencies:v},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontWeight",attrName:"fontWeight",key:"fontWeight",dependencies:v}]),e.addBlockStyles("textTransform",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"textTransform",attrName:"textTransform",key:"textTransform",dependencies:v},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"textTransform",attrName:"textTransform",key:"textTransform",dependencies:v}]),e.addBlockStyles("fontStyle",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontStyle",attrName:"fontStyle",key:"fontStyle",dependencies:v},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontStyle",attrName:"fontStyle",key:"fontStyle",dependencies:v}]),e.addBlockStyles("fontFamily",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontFamily",attrName:"fontFamily",key:"fontFamily",valueCallback:e=>(0,u.getFontFamily)(e),dependencies:v},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"fontFamily",attrName:"fontFamily",key:"fontFamily",valueCallback:e=>(0,u.getFontFamily)(e),dependencies:v}]),e.addBlockStyles("letterSpacing",[{...n,renderIn:"edit",selector:a||o,selectorCallback:r,attrNameTemplate:i,styleRule:"letterSpacing",attrName:"letterSpacing",key:"letterSpacing",format:"%spx",responsive:"all",dependencies:v},{...n,renderIn:"save",selector:l||o,selectorCallback:r,attrNameTemplate:i,styleRule:"letterSpacing",attrName:"letterSpacing",key:"letterSpacing",format:"%spx",responsive:"all",dependencies:v}])};const xn=[{value:"",title:(0,i.__)("Single",a.i18n)},{value:"gradient",title:(0,i.__)("Gradient",a.i18n)}],Tn=e=>{let{attrNameTemplate:t,isCircle:n}=e;const{getAttribute:s,updateAttributes:c}=(0,r.useAttributeEditHandlers)(t),d="gradient"===s("progressColorType"),u=s("progressMax")||100;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.InspectorStyleControls,null,(0,o.createElement)(l.PanelAdvancedSettings,{title:n?(0,i.__)("Progress Circle",a.i18n):(0,i.__)("Progress Bar",a.i18n),initialOpen:!0},(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Progress",a.i18n),attribute:"progressValue",min:"0",max:u,sliderMax:u,step:u<=1?.01:.1,placeholder:50,isDynamic:!0}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Maximum Progress",a.i18n),attribute:"progressMax",min:"0",sliderMax:"100",step:"1",placeholder:100}),!n&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Width",a.i18n),attribute:"progressWidth",responsive:"all",units:["%","px","vw"],min:[0,0,0],sliderMax:[100,1e3,100],step:"1",placeholder:100}),(0,o.createElement)(l.AdvancedRangeControl,{label:n?(0,i.__)("Size",a.i18n):(0,i.__)("Height",a.i18n),responsive:!!n&&"all",attribute:"progressSize",min:"0",sliderMin:n?50:8,sliderMax:n?300:50,step:"1",placeholder:n?150:32}),!n&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Border Radius",a.i18n),attribute:"progressBorderRadius",allowReset:!0,min:"0",units:["px","%","rem"],step:"1",sliderMax:"25",changeCallback:e=>(e||c({progressApplyBarRadius:!1}),e)}),s("progressBorderRadius")?(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Apply border radius to bar",a.i18n),attribute:"progressApplyBarRadius",defaultValue:!1}):null),n&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Thickness",a.i18n),responsive:"all",attribute:"progressThickness",min:"0",sliderMin:"1",sliderMax:"30",step:"1",placeholder:8}),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.AdvancedToolbarControl,{controls:xn,isSmall:!0,attribute:"progressColorType"}),(0,o.createElement)(l.ColorPaletteControl,{label:d?(0,i.sprintf)((0,i.__)("Bar Color #%s",a.i18n),1):(0,i.__)("Bar Color",a.i18n),attribute:"progressColor1"}),d&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.sprintf)((0,i.__)("Bar Color #%s",a.i18n),2),attribute:"progressColor2"}),n&&(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Gradient Direction (degrees)",a.i18n),attribute:"progressColorGradientDirection",min:0,max:360,step:10,allowReset:!0})),d&&!n&&(0,o.createElement)(l.ButtonIconPopoverControl,{label:(0,i.__)("Adv. Gradient Color Settings",a.i18n),onReset:()=>{c({progressColorGradientDirection:"",progressColorGradientBlendMode:"",progressColorGradientLocation1:"",progressColorGradientLocation2:""})},allowReset:""!==s("progressColorGradientDirection")&&90!==s("progressColorGradientDirection")||""!==s("progressColorGradientLocation1")&&0!==s("progressColorGradientLocation1")||""!==s("progressColorGradientLocation2")&&100!==s("progressColorGradientLocation2")||s("progressColorGradientBlendMode")},(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.__)("Gradient Direction (degrees)",a.i18n),attribute:"progressColorGradientDirection",min:0,max:360,step:10,allowReset:!0,placeholder:"90",helpTooltip:{title:(0,i.__)("Gradient Direction",a.i18n),description:(0,i.__)("Sets the direction (in degrees) of the colors",a.i18n)}}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.sprintf)((0,i.__)("Color %d Location",a.i18n),1),attribute:"progressColorGradientLocation1",sliderMin:0,max:100,step:1,allowReset:!0,placeholder:"0",helpTooltip:{video:"gradient-location",description:(0,i.__)("Sets the placement of each color in relation to the other color",a.i18n)}}),(0,o.createElement)(l.AdvancedRangeControl,{label:(0,i.sprintf)((0,i.__)("Color %d Location",a.i18n),2),attribute:"progressColorGradientLocation2",sliderMin:0,max:100,step:1,allowReset:!0,placeholder:"100",helpTooltip:{video:"gradient-location",description:(0,i.__)("Sets the placement of each color in relation to the other color",a.i18n)}}),(0,o.createElement)(l.BlendModeControl,{label:(0,i.__)("Background Gradient Blend Mode",a.i18n),attribute:"progressColorGradientBlendMode",helpTooltip:{video:"background-blend-mode",description:(0,i.__)("Sets how this background gradient/image blends into the other background",a.i18n)}}))),(0,o.createElement)(l.ColorPaletteControl,{label:(0,i.__)("Background Color",a.i18n),attribute:"progressBackgroundColor"}),n&&(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Rounded",a.i18n),attribute:"progressRounded"}),(0,o.createElement)(l.AdvancedToggleControl,{label:(0,i.__)("Animate",a.i18n),attribute:"progressAnimate",defaultValue:!0}),(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Accessibility Label",a.i18n),attribute:"progressAriaValueText"}))))};Tn.defaulProps={isCircle:!1,attrNameTemplate:"%s"},(0,_.addFilter)("stackable.block-component.typography.before","stackable/progress-blocks",(e=>{const{name:t}=(0,j.useBlockEditContext)();return["stackable/progress-bar","stackable/progress-circle"].includes(t)?(0,o.createElement)(o.Fragment,null,"stackable/progress-bar"===t&&(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Progress Bar Text",a.i18n),attribute:"text",isDynamic:!0}),(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Progress Prefix",a.i18n),attribute:"progressValuePrefix"}),(0,o.createElement)(l.AdvancedTextControl,{label:(0,i.__)("Progress Suffix",a.i18n),attribute:"progressValueSuffix"})):e}));const Bn=()=>(0,o.createElement)("div",null);Bn.InspectorControls=Tn,Bn.addStyles=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...t,version:t.version,versionAdded:"3.4.5",versionDeprecated:""},{isCircle:o=!1,dependencies:a=[]}=t,l=o?".stk-progress-circle":".stk-progress-bar";e.addBlockStyles("progressMax",[{...n,selector:l,styleRule:"--progress-max",attrName:"progressMax",key:"progressMax"}]),e.addBlockStyles("progressValue",[{...n,selector:l,renderIn:"save",styleRule:"--progress-value",attrName:"progressValue",key:"progressValue",format:o?void 0:"%s%"}]),e.addBlockStyles("progressColor1",[{...n,renderCondition:()=>!o,selector:l,styleRule:"--progress-color-1",attrName:"progressColor1",key:"progressColor1-bar",dependencies:["progressColorType","progressColor2",...a]},{...n,renderCondition:()=>o,selector:l,styleRule:"--progress-color-1",attrName:"progressColor1",key:"progressColor1-circle",dependencies:["progressColorType","progressColor2",...a],renderIn:"save",valuePreCallback:(e,t)=>"gradient"===t("progressColorType")?`url(#gradient-${t("uniqueId")})`:e}]),e.addBlockStyles("progressBackgroundColor",[{...n,selector:l,styleRule:"--progress-background",attrName:"progressBackgroundColor",key:"progressBackgroundColor"}]),e.addBlockStyles("progressSize",[{...n,selector:l,responsive:"all",styleRule:"--progress-size",attrName:"progressSize",key:"progressSize",format:"%spx"}]),o&&(e.addBlockStyles("progressColor1",[{...n,selector:l,renderIn:"edit",styleRule:"--progress-color-1",attrName:"progressColor1",key:"progressColor1-circle-var",valuePreCallback:(e,t)=>"gradient"===t("progressColorType")?`url(#gradient-${((t("progressColor1")||"-")+(t("progressColor2")||"-")+(t("progressColorGradientDirection")||"")).replace(/[^0-9A-Z]+/gi,"")})`:e,dependencies:["progressColorType","progressColor2","progressColorGradientDirection",...a]}]),e.addBlockStyles("progressRounded",[{...n,selector:l,styleRule:"--progress-rounded",attrName:"progressRounded",key:"progressRounded",valuePreCallback:e=>{if("string"!=typeof e&&!1!==e)return"round"}}]),e.addBlockStyles("progressThickness",[{...n,selector:l,responsive:"all",styleRule:"--progress-thickness",attrName:"progressThickness",key:"progressThickness",format:"%spx"}])),o||(e.addBlockStyles("progressWidth",[{...n,selector:l,styleRule:"--progress-bar-width",attrName:"progressWidth",key:"progressWidth",hasUnits:"%",responsive:"all",dependencies:["progressWidthUnit",...a]}]),e.addBlockStyles("progressBorderRadius",[{...n,selector:l,styleRule:"--progress-border-radius",attrName:"progressBorderRadius",key:"progressBorderRadius",hasUnits:"px"}]),e.addBlockStyles("progressApplyBarRadius",[{...n,selector:l,styleRule:"--progress-bar-border-radius",attrName:"progressApplyBarRadius",key:"progressApplyBarRadius",valuePreCallback:(e,t)=>{const n=t("progressBorderRadius");return e?n:void 0},format:"%spx",dependencies:["progressBorderRadius",...a]}]),e.addBlockStyles("progressColorGradientBlendMode",[{...n,selector:".stk-progress-bar__bar.stk--has-background-overlay:before",styleRule:"mixBlendMode",attrName:"progressColorGradientBlendMode",key:"progressColorGradientBlendMode",enabledCallback:e=>"gradient"===e("progressColorType"),dependencies:["progressColorType",...a]}]),e.addBlockStyles("progressColor1",[{...n,selector:".stk-progress-bar__bar.stk--has-background-overlay:before",styleRule:"backgroundImage",attrName:"progressColor1",key:"progressColor1-overlay",enabledCallback:e=>"gradient"===e("progressColorType"),valueCallback:(e,t)=>{if(!t("progressColor2"))return;const n=(0,u.hexToRgba)(t("progressColor2")||"#ffffff",0),o=(0,u.hexToRgba)(t("progressColor1")||"#3498db",0),a=`${t("progressColorGradientLocation1")||"0"}%`,l=`${t("progressColorGradientLocation2")||"100"}%`,r=t("progressColorGradientDirection");return`linear-gradient(${"string"==typeof r?"90deg":`${r}deg`}, ${t("progressColor1")||n} ${a}, ${t("progressColor2")||o} ${l})`},dependencies:["progressColorType","progressColor1","progressColor2","progressColorGradientLocation1","progressColorGradientLocation2","progressColorGradientDirection",...a]}]))},Bn.addAttributes=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.add({attributes:{progressValue:{type:"string",default:""},progressSize:{stkResponsive:t,type:"number",default:""},progressAnimate:{type:"boolean",default:!0},progressAriaValueText:{type:"string",default:""},progressColorType:{type:"string",default:""},progressColor1:{type:"string",default:""},progressColor2:{type:"string",default:""},progressColorGradientDirection:{type:"number",default:""},progressBackgroundColor:{type:"string",default:""},progressValuePrefix:{type:"string",default:""},progressValueSuffix:{type:"string",default:""},progressMax:{type:"number",default:""},...t?{progressThickness:{stkResponsive:!0,type:"number",default:""},progressRounded:{type:"boolean",default:""}}:{progressWidth:{stkResponsive:!0,type:"number",default:"",stkUnits:"%"},progressBorderRadius:{type:"number",default:"",stkUnits:"px"},progressApplyBarRadius:{type:"boolean",default:""},progressColorGradientLocation1:{type:"number",default:""},progressColorGradientLocation2:{type:"number",default:""},progressColorGradientBlendMode:{type:"string",default:""}}},versionAdded:"3.4.5",versionDeprecated:""})}},2286:(e,t,n)=>{"use strict";n.d(t,{bg:()=>v,CJ:()=>u,yN:()=>p,Lu:()=>h,KL:()=>g,Yf:()=>m,y0:()=>b});var o=n(2610),a=n(1205),l=n(7044),r=n(8085),i=n(4863),s=n.n(i),c=n(78),d=n(3796);const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object.keys(e).reduce(((o,l)=>({...o,[(0,a.prependCSSClass)(l,t,t,n?".editor-styles-wrapper":"")]:e[l]})),{})},p=e=>Object.keys(e).reduce(((t,n)=>{const o=Object.keys(e[n]).reduce(((t,o)=>{const a=e[n][o];if(void 0===a)return t;const l=o.replace(/^(--?)?(.*?$)/,((e,t,n)=>`${t||""}${(0,r.kebabCase)(n)}`));return t+"\n\t"+l+": "+a+";"}),"");return t.push("\n\n"+n+" {"+o+"\n}"),t}),[]),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["desktop"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:768;const o=(0,r.sortBy)("string"==typeof e?e.split(",").map((e=>e.trim())):e);return(0,r.isEqual)(o,["desktop","tablet"])?"@media screen and (min-width: "+n+"px)":(0,r.isEqual)(o,["desktop"])?"@media screen and (min-width: "+t+"px)":(0,r.isEqual)(o,["mobile","tablet"])?"@media screen and (max-width: "+(t-1)+"px)":(0,r.isEqual)(o,["tablet"])?"@media screen and (min-width: "+n+"px) and (max-width: "+(t-1)+"px)":(0,r.isEqual)(o,["mobile"])?"@media screen and (max-width: "+(n-1)+"px)":null},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:768,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;const i=[];Object.keys(e).forEach((t=>{if(["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","ie11","editor","saveOnly","custom"].includes(t)){const n=t;Object.keys(e[n]).forEach((t=>{Object.keys(e[n][t]).forEach((o=>void 0===e[n][t][o]?delete e[n][t][o]:{})),Object.keys(e[n][t]).length||delete e[n][t]})),Object.keys(e[n]).length||delete e[n]}else Object.keys(e[t]).forEach((n=>void 0===e[t][n]?delete e[t][n]:{})),Object.keys(e[t]).length||delete e[t]}));const s=(0,r.omit)(e,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","ie11","editor","saveOnly","custom"]);if(Object.keys(s).length){const e=u(s,t,a);Array.prototype.push.apply(i,p(e))}if(void 0!==e.desktopTablet){const l=u(e.desktopTablet,t,a),r=p(l,!a);r&&(a?r.forEach((e=>{i.push("\n\n"+h(["desktop","tablet"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${h(["desktop","tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.desktopOnly){const l=u(e.desktopOnly,t,a),r=p(l,!a);r&&(a?r.forEach((e=>{i.push("\n\n"+h(["desktop"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${h(["desktop"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.tablet){const l=u(e.tablet,t,a),r=p(l,!a);r&&(a?r.forEach((e=>{i.push("\n\n"+h(["mobile","tablet"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${h(["mobile","tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.tabletOnly){const l=u(e.tabletOnly,t,a),r=p(l,!a);r&&(a?r.forEach((e=>{i.push("\n\n"+h(["tablet"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${h(["tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.mobile){const l=u(e.mobile,t,a),r=p(l,!a);r&&(a?r.forEach((e=>{i.push("\n\n"+h(["mobile"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${h(["mobile"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.ie11){const n=u(e.ie11,t,a),o=p(n,!a);o&&i.push(`\n\n@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {\n${o.join("")} }`)}return void 0!==e.custom&&Array.prototype.push.apply(i,p(e.custom)),a&&void 0!==e.editor&&!l&&Array.prototype.push.apply(i,g(e.editor,t,n,o,a,l++)),a||void 0===e.saveOnly||l||Array.prototype.push.apply(i,g(e.saveOnly,t,n,o,a,l++)),i},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Desktop";const n=[(0,r.omit)(e,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","editor","ie11","saveOnly"])];return"Desktop"===t?(n.push(e.desktopTablet||{}),n.push(e.desktopOnly||{}),e.editor&&(n.push((0,r.omit)(e.editor,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","editor","ie11","saveOnly"])),n.push(e.editor.desktopTablet||{}),n.push(e.editor.desktopOnly||{}))):"Tablet"===t?(n.push(e.desktopTablet||{}),n.push(e.tablet||{}),n.push(e.tabletOnly||{}),e.editor&&(n.push((0,r.omit)(e.editor,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","editor","ie11","saveOnly"])),n.push(e.editor.desktopTablet||{}),n.push(e.editor.tablet||{}),n.push(e.editor.tabletOnly||{}))):(n.push(e.tablet||{}),n.push(e.mobile||{}),e.editor&&(n.push((0,r.omit)(e.editor,["desktopTablet","desktopOnly","tablet","tabletOnly","mobile","editor","ie11","saveOnly"])),n.push(e.editor.tablet||{}),n.push(e.editor.mobile||{}))),n.forEach((e=>{Object.keys(e).forEach((t=>{Object.keys(e[t]).forEach((n=>void 0===e[t][n]?delete e[t][n]:{})),Object.keys(e[t]).length||delete e[t]}))})),s().all(n)},v=(0,o.memo)((e=>{const{breakTablet:t=1024,breakMobile:n=768,styleFunc:l=(()=>{})}=e,r=(0,d.useDeviceType)(),{clientId:i}=(0,c.useBlockEditContext)(),s=(0,d.useBlockAttributesContext)(),u=(0,a.getUniqueBlockClass)(s.uniqueId),p=l({...s,clientId:i}).map((e=>{const o=m(e,r);return g(o,u,t,n,!0)}));return p?p.map(((e,t)=>(0,o.createElement)("style",{key:t},e))):null}));v.Content=e=>{const{breakTablet:t=1024,breakMobile:n=768,styleFunc:l=(()=>{}),attributes:r={}}=e,i=(0,a.getUniqueBlockClass)(r.uniqueId),s=g(b(l(r)),i,t,n,!1);return s&&s.length?(0,o.createElement)("style",null,(0,a.minifyCSS)(s.join(""))):null},v.displayName="Style";const b=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=s().all(e);return t?(0,l.A)(n):n};v.addAttributes=e=>{e.add({attributes:{generatedCss:{type:"string",source:"html",selector:".stk-block > style:not(.stk-custom-css),\n\t\t\t\t\t .stk-block > * > style:not(.stk-custom-css)",default:""}},versionAdded:"3.0.3",versionDeprecated:""})}},1364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2610),a=n(4184),l=n.n(a);let r=1;const i=e=>{const{showLabel:t=!0}=e,[n]=(0,o.useState)("ugb-admin-setting-"+r++),a=!e.searchedSettings||e.searchedSettings.includes(e.label),i=l()(["ugb-admin-setting",e.className],{[`ugb-admin-setting--${e.size}`]:e.size,"ugb-admin-setting--not-highlight":!a});return(0,o.createElement)("div",{className:i,id:n},(0,o.createElement)("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:n,onClick:e.onClick},!!e.label&&t&&(0,o.createElement)("span",{className:"ugb-admin-setting__label"},e.label),(0,o.createElement)("div",{className:"ugb-admin-setting__field"},e.children)),e.help&&(0,o.createElement)("p",{className:"ugb-admin-setting__help"},e.help))};i.defaultProps={label:"",onClick:()=>{}};const s=i},3260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(2610),a=n(1364);const l=e=>(0,o.createElement)(a.Z,e,(0,o.createElement)("select",{className:"ugb-admin-select-setting",value:e.value,onChange:t=>e.onChange(t.target.value)},e.options.map(((e,t)=>(0,o.createElement)("option",{key:t,value:e.value},e.name)))),e.children);l.defaultProps={label:"",value:"",onChange:()=>{},options:[]};const r=l},1114:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(7462),a=n(2610),l=n(1364);const r=e=>{const t=(0,a.createRef)();return(0,a.createElement)(l.Z,(0,o.Z)({onClick:e=>{e.preventDefault(),t.current.focus()}},e),(0,a.createElement)("input",{ref:t,className:"ugb-admin-text-setting",type:e.type,value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value),t.preventDefault(),t.stopPropagation()}}),e.children)};r.defaultProps={label:"",type:"text",value:"",placeholder:"",onChange:()=>{}};const i=r},8255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(7462),a=n(2610),l=n(910),r=n(1364),i=n(8003),s=n(4184),c=n.n(s);const d=e=>{const t=(0,a.createRef)();return(0,a.createElement)(r.Z,(0,o.Z)({onClick:n=>{e.onChange(!e.value),n.preventDefault(),t.current.focus()}},e,{className:c()(e.className,"ugb-admin-toggle-setting")}),(0,a.createElement)("button",{ref:t,className:c()("ugb-admin-toggle-setting__button",{"ugb-admin-toggle-setting__button--enabled":!!e.value}),type:"button",role:"switch","aria-checked":!!e.value,onClick:t=>{e.onChange(!e.value),t.preventDefault(),t.stopPropagation()},style:{minWidth:e.width||void 0},disabled:e.isDisabled?"disabled":""}),(0,a.createElement)("span",{className:"ugb-admin-toggle-setting__label"},(0,a.createElement)("span",{style:{visibility:e.value?"visible":"hidden"}},e.enabled),(0,a.createElement)("span",{style:{visibility:e.value?"hidden":"visible"}},e.disabled)))};d.defaultProps={label:"",value:!1,placeholder:"",onChange:()=>{},disabled:(0,i.__)("Disabled",l.i18n),enabled:(0,i.__)("Enabled",l.i18n),width:"",isDisabled:!1};const u=d},5509:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});var o=n(3796);const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const r=(0,o.useBlockSetAttributesContext)(),i=(0,o.useAttributeName)(e,t,n),s=(0,o.useBlockAttributesContext)((e=>e[i])),c=void 0!==s?s:"";let d=void 0!==s?s:"";a&&(d=a(d));const u=e=>{const t=l?l(e,c):e;r({[i]:t})};return[d,u]}},2622:(e,t,n)=>{"use strict";n.d(t,{Xp:()=>B,ZP:()=>A,ED:()=>N,Gj:()=>E.G});var o=n(7462),a=n(2610),l=n(6500),r=n(2046);n(7294);const i=function(e){return(0,a.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,a.createElement)("path",{className:"state-parent-hover_svg__st0",d:"M9.8 15.8c-.3 0-.6-.2-.7-.5l-3.8-9c-.1-.3 0-.6.2-.8.2-.2.5-.3.8-.2l9 3.8c.3.1.5.4.5.7 0 .3-.2.6-.5.7l-3.6 1.2-1.2 3.6c-.1.2-.4.4-.7.5zM7.4 7.4l2.3 5.5.7-2c.1-.2.2-.4.5-.5l2-.7-5.5-2.3z"}),(0,a.createElement)("path",{className:"state-parent-hover_svg__st0",d:"M6.4 12.8H2.2V2.2h11.5v4.5l1.5.6V1.5c0-.4-.3-.8-.8-.8h-13c-.4 0-.8.3-.8.8v12c0 .4.3.8.8.8H7l-.6-1.5z"}))};var s=n(3796),c=n(910),d=n(8003),u=n(3284),p=n(8085),h=n(1205);const g=[{label:(0,d.__)("Normal State",c.i18n),value:"normal",icon:(0,a.createElement)((function(e){return(0,a.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,a.createElement)("path",{className:"state-normal_svg__st0",d:"M7 14.8c-.3 0-.6-.2-.7-.5l-5-12c-.1-.3 0-.6.2-.8.2-.2.5-.3.8-.2l12 5c.3.1.5.4.5.7 0 .3-.2.6-.5.7L9.4 9.4l-1.7 4.9c-.1.2-.4.4-.7.5zM3.4 3.4l3.5 8.5L8 8.6c.1-.2.2-.4.5-.5L11.8 7 3.4 3.4z"}))}),null)},{label:(0,d.__)("Hovered State",c.i18n),value:"hover",icon:(0,a.createElement)((function(e){return(0,a.createElement)("svg",(0,o.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,a.createElement)("path",{className:"state-hover_svg__st0",d:"M9.2 15.8c-.3 0-.6-.2-.7-.5l-4.2-10c-.1-.3 0-.6.2-.8.2-.2.5-.3.8-.2l10 4.2c.3.1.5.4.5.7 0 .3-.2.6-.5.7l-4 1.4-1.4 4c-.1.2-.4.4-.7.5zM6.4 6.4l2.7 6.5.8-2.5c.1-.2.2-.4.5-.5l2.5-.8-6.5-2.7z"}),(0,a.createElement)("path",{className:"state-hover_svg__st0",d:"M3.7 7.6C2.7 7.2 2 6.2 2 5c0-1.6 1.3-3 3-3 1.2 0 2.2.7 2.7 1.7l1.7.7C9.1 2.2 7.3.5 5 .5 2.5.5.5 2.5.5 5c0 2.3 1.7 4.1 3.9 4.4l-.7-1.8z"}))}),null)},{label:(0,d.__)("Parent Container Hovered State",c.i18n),value:"parent-hover",icon:(0,a.createElement)(i,null)},{label:(0,d.__)("Collapsed",c.i18n),value:"collapsed",icon:(0,a.createElement)(i,null)}],m=["normal","hover","parent-hover","collapsed"],v=m.map((e=>(0,p.upperFirst)((0,p.camelCase)(e)))),b=e=>{const[t,n,o,r,i]=(0,s.useBlockHoverState)({forceUpdateHoverState:e.forceUpdateHoverState}),p=(0,s.useDeviceType)(),b=(0,s.useBlockAttributesContext)((t=>e.attribute?m.reduce(((n,o,a)=>({...n,[o]:t[`${e.attribute}${e.hasResponsive&&"Desktop"!==p?p:""}${v[a]}`]})),{}):{})),f="all"===e.hover?m:e.hover,k=g.filter((e=>{let{value:t}=e;return!(!r&&"collapsed"===t&&!i)&&f.includes(t)})),y=!e.forceUpdateHoverState&&!o,_=k.map((t=>"parent-hover"===t.value?{disabled:!e.forceUpdateHoverState&&!o,tooltip:y?(0,a.createElement)("span",{className:"stk-tooltip__text"},(0,d.sprintf)("%s - %s",(0,d.__)("Parent Hovered",c.i18n),(0,d.__)("Add a Container Background to a parent block to enable this state.",c.i18n)),(0,a.createElement)("br",null),(0,a.createElement)("a",{href:"https://docs.wpstackable.com/article/465-how-to-style-the-different-block-hover-states?utm_source=wp-settings-global-settings&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,d.__)("Learn more",c.i18n))):void 0,...t}:t)).map((t=>{var n,o;return e.forceUpdateHoverState?{...t,hasValue:null!==(n=null===(o=e.hasHoverStateValue)||void 0===o?void 0:o[t.value])&&void 0!==n&&n}:"normal"!==t.value&&e.attribute?{...t,hasValue:!(0,h.isEmptyAttribute)(b[t.value])}:t}));return(0,a.createElement)(l.Z,{value:t,options:_,onChange:e=>(0,u.dispatch)("stackable/hover-state").updateHoverState(e)})};b.defaultProps={hover:!1,attribute:"",hasResponsive:!1,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const f=(0,a.memo)(b);var k=n(8667);const y=e=>{const[t,n]=(0,a.useState)(!1),o=(0,a.useRef)(!1),l=(0,k.F)();return(0,a.useEffect)((()=>{!t&&l&&l(null)}),[t]),l?(t&&l(e),(0,a.createElement)("div",{className:"stk-visual-guideer-trigger",onMouseEnter:()=>{var e,t,a,l;o.current=!1,setTimeout((()=>{!o.current&&n&&n(!0)}),10),null!==(e=document)&&void 0!==e&&null!==(t=e.activeElement)&&void 0!==t&&null!==(a=t.getAttribute("data-type"))&&void 0!==a&&a.startsWith("stackable/")&&(null===(l=document.activeElement)||void 0===l||l.blur())},onMouseLeave:()=>{o.current=!0,n(!1)}},e.children)):e.children};var _=n(2122),C=n(4184),w=n.n(C),S=n(7537),E=n(5509);const x=["desktop","tablet","mobile"],T={},B=e=>{var t,n,i,u;const p=(0,s.useDeviceType)(),h=w()(["stk-control",e.className],{"stk-control--disabled":e.disableTablet&&"Tablet"===p||e.disableMobile&&"Mobile"===p}),g=!(null===(t=e.responsive)||void 0===t||!t.length),m=!(null===(n=e.hover)||void 0===n||!n.length),v=!(null===(i=e.units)||void 0===i||!i.length),b="all"===e.responsive?x:e.responsive,k=e.units&&(null===(u=e.units)||void 0===u?void 0:u.map((e=>({value:e}))))||[],C=w()(["stk-control-label"],{"stk-control-label--bold":e.boldLabel}),E=e.boldLabel?(0,a.createElement)("h3",null,e.label):e.label,B=e.visualGuide!==T?y:a.Fragment;return(0,a.createElement)(S.BaseControl,{help:e.help,className:h,__nextHasNoMarginBottom:!0},(0,a.createElement)(B,e.visualGuide,(0,a.createElement)("div",{className:C},(0,a.createElement)(_.Z,(0,o.Z)({label:E},e.helpTooltip)),(0,a.createElement)("div",{className:"stk-control-label__toggles"},g&&(0,a.createElement)(r.Z,{screens:b,attribute:e.attribute,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue,valueCheckAttribute:e.valueCheckAttribute}),m&&(0,a.createElement)(f,{hover:e.hover,attribute:e.attribute,hasResponsive:g,forceUpdateHoverState:e.forceUpdateHoverState,hasHoverStateValue:e.hasHoverStateValue})),(0,a.createElement)("div",{className:"stk-control-label__after"},v&&(0,a.createElement)(l.Z,{className:"stk-control-label__units",value:e.unit,options:k,onChange:t=>e.onChangeUnit(t),buttonLabel:(0,d.__)("Unit",c.i18n),hasLabels:!1,hasColors:!1,labelPosition:"left"}),e.after)),(0,a.createElement)("div",{className:"stk-control-content"},e.children)))};B.defaultProps={className:"",label:"",help:"",boldLabel:!1,attribute:"",responsive:!1,hover:!1,units:!1,unit:"",onChangeUnit:null,after:null,disableTablet:!1,disableMobile:!1,hasTabletValue:void 0,hasMobileValue:void 0,visualGuide:T,helpTooltip:T,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const M=e=>{const t=(0,s.useAttributeName)(`${e.attribute}Unit`,e.responsive,e.hover),n=(0,s.useBlockAttributesContext)((e=>e[t]))||"",l=e.unit?e.unit:n,r=(0,s.useBlockSetAttributesContext)();return(0,a.createElement)(B,(0,o.Z)({},e,{unit:l,onChangeUnit:o=>{if(e.onChangeUnit)return e.onChangeUnit(o,t,n);r({[t]:o})}}))};M.defaultProps={className:"",label:"",help:"",attribute:"",responsive:!1,hover:!1,units:!1,onChangeUnit:null,unit:null,after:null,valueCheckAttribute:"",disableTablet:!1,disableMobile:!1,hasTabletValue:void 0,hasMobileValue:void 0,visualGuide:T,helpTooltip:T,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const A=M,N=e=>{const t=[...Object.keys(M.defaultProps),"allowReset","screens"],n=(0,p.pick)(e,t);return e.screens&&(n.responsive=e.screens),[(0,p.omit)(e,t),n]}},2122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(2610),a=n(7408),l=n(1205),r=n(2814),i=n(2527);const s=e=>{const{title:t,label:n,video:l,description:i}=e,[s,c]=(0,o.useState)(!1),[p,h]=function(){const[e,t]=(0,o.useState)(d);return(0,o.useEffect)((()=>{var e;const n=e=>t(e.detail);return null===(e=window)||void 0===e||e.addEventListener("_stkHelpTooltipEnabledChanged",n),()=>{window.removeEventListener("_stkHelpTooltipEnabledChanged",n)}}),[]),[e,e=>{d=e,new r.models.Settings({stackable_help_tooltip_disabled:e?"":"1"}).save(),window.dispatchEvent(new CustomEvent("_stkHelpTooltipEnabledChanged",{detail:e}))}]}(),g=u(c),m=(0,o.useRef)(),v=(0,o.useRef)();return i&&(p||s)?(0,o.createElement)("div",{className:"components-base-control__label"},(0,o.createElement)("span",{className:"stk-control__label--has-tooltip",onMouseEnter:()=>{clearTimeout(m.current),m.current=setTimeout((()=>{g(!0),setTimeout((()=>{document.querySelector(".stk-control-help-tooltip").focus()}),100)}),800)},onMouseLeave:()=>{clearTimeout(m.current)},onMouseDown:()=>{v.current=s},onClick:()=>{v.current||(clearTimeout(m.current),g((e=>!e)),s||setTimeout((()=>{document.querySelector(".stk-control-help-tooltip").focus()}),100))},onKeyDown:e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),g((e=>!e)))},role:"button",tabIndex:"0"},n),s&&(0,o.createElement)(a.Z,{title:t||n,description:i,video:l,onClose:()=>g(!1),tooltipsEnabled:p,onTooltipsEnabledChange:h})):(0,o.createElement)("div",{className:"components-base-control__label"},n)};s.defaultProps={label:"",description:"",video:""};const c=s;let d=!0;(0,i.Z)((()=>{(0,l.fetchSettings)().then((e=>{d="1"!==e.stackable_help_tooltip_disabled})).catch((()=>{}))}));const u=e=>((0,o.useEffect)((()=>{var t;const n=()=>e(!1);return null===(t=window)||void 0===t||t.addEventListener("_stkHelpTooltipOpened",n),()=>{window.removeEventListener("_stkHelpTooltipOpened",n)}}),[]),t=>{t&&window.dispatchEvent(new CustomEvent("_stkHelpTooltipOpened")),e(t)})},5917:(e,t,n)=>{"use strict";n.d(t,{J:()=>u});var o=n(2610),a=n(2440),l=n(910),r=n(8003),i=n(7537),s=n(4184),c=n.n(s);const d=(0,o.createElement)(i.Dashicon,{icon:"image-rotate"}),u=(0,o.memo)((e=>{const t=null!==e.showReset?e.showReset:void 0!==e.value&&e.value!==e.default&&e.value!==e.placeholder,n=c()(["stk-control__reset-button",{"stk-control__reset-button--no-modified":!e.hasPanelModifiedIndicator}]);return e.allowReset&&t&&(0,o.createElement)(a.Z,{className:n,isSmall:!0,isTertiary:!0,label:(0,r.__)("Reset",l.i18n),onClick:()=>{e.onChange(void 0===e.default?"":e.default)},icon:d})}));u.defaultProps={allowReset:!0,showReset:null,value:"",default:"",onChange:null,hasPanelModifiedIndicator:!0}},6691:(e,t,n)=>{"use strict";n.d(t,{fE:()=>b,Ow:()=>x,WS:()=>w,Gh:()=>v,ZP:()=>B,ul:()=>S});var o=n(7462),a=n(2610),l=n(1205),r=n(4247),i=n.n(r);const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"desktop",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:768;return"desktopTablet"===e?"@media screen and (min-width: "+n+"px)":"desktopOnly"===e?"@media screen and (min-width: "+t+"px)":"tablet"===e?"@media screen and (max-width: "+(t-1)+"px)":"tabletOnly"===e?"@media screen and (min-width: "+n+"px) and (max-width: "+(t-1)+"px)":"mobile"===e?"@media screen and (max-width: "+(n-1)+"px)":null},c=e=>{const t=[],{attrName:n="",dependencies:o=[],attrNameTemplate:a="",styles:r={}}=e,i=a?(0,l.getAttrName)(a,n):n;return i&&!t.includes(i)&&t.push(i),Object.values(r).forEach((e=>{const n=a?(0,l.getAttrName)(a,e):e;n&&!t.includes(n)&&t.push(n)})),o.forEach((e=>{if(e){const n=a?(0,l.getAttrName)(a,e):e;n&&!t.includes(n)&&t.push(n)}})),[...u(t),"uniqueId"]},d=[["","Unit"],["","Tablet","Mobile"],["","Hover","ParentHover","Collapsed"]],u=e=>e.reduce(((e,t)=>(d[0].forEach((n=>{d[1].forEach((o=>{d[2].forEach((a=>{e.push(`${t}${n}${o}${a}`)}))}))})),e)),[]),p=(e,t)=>{const n=e=>`${t||""}${e.startsWith(":")?"":" "}${e||""}`.trim();return Array.isArray(e)?e.map(n).join(", "):n(e)},h=(e,t)=>{const n=e=>`${e}${t||""}`.trim();return Array.isArray(e)?e.map(n).join(", "):n(e)};var g=n(9755);const m=["desktop","desktopOnly","desktopTablet","tabletOnly","tablet","mobile"],v=class{constructor(){this.styles=null}addStyle(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop";this.styles||(this.styles={}),this.styles[o]||(this.styles[o]={}),this.styles[o][e]||(this.styles[o][e]={}),void 0===n||this.styles[o][e][t]!==n&&(this.styles[o][e][t]=n)}compile(){if(!this.styles)return"";const e=[];return m.forEach((t=>{if(!this.styles[t])return;let n="";Object.keys(this.styles[t]).forEach((e=>{let o="";Object.keys(this.styles[t][e]).forEach((n=>{const a=this.styles[t][e][n];o+=`${n}:${a};`})),o&&(n+=`${e}{${o}}`)}));const o=s(t);o&&n&&(n=`${o}{${n}}`),e.push(n)})),e.join("")}},b=e=>{const t=new v;return(0,a.createElement)(a.Fragment,null,a.Children.toArray(e.children).map((e=>(0,a.cloneElement)(e,{compileCssTo:t}))),(0,a.createElement)(f,{cssObject:t}))},f=e=>{const t=e.cssObject.compile();return t?(0,a.createElement)("style",null,t):null};var k=n(3796),y=n(8085),_=n(8003),C=n(3882);class w{constructor(e){this.commonProps=e,this._blockStyles={},this._dynamicBlockStyles=[],this._blockStyleNamesWithValuePreCallbacks=[],this._orderedStyles=[]}addBlockStyles(e,t){Array.isArray(t)?t.forEach((t=>{this.addBlockStyle(e,t)})):this.addBlockStyle(e,t)}addBlockStyle(e,t){e||console.error("BlockStyleGenerator: No attribute name provided.");const n=t.attrNameTemplate?(0,l.getAttrName)(t.attrNameTemplate,e):e;t.valuePreCallback&&this._blockStyleNamesWithValuePreCallbacks.push(n),this._orderedStyles.push(t);const o=this._orderedStyles.length-1;this._blockStyles[n]?this._blockStyles[n].push(o):this._blockStyles[n]=[o]}addBlockStyleConditionally(e){this._orderedStyles.push(e);const t=this._orderedStyles.length-1;this._dynamicBlockStyles.push(t)}getRootAttrName(e){return e.replace(/(Hover|ParentHover|Collapsed|Tablet|TabletHover|TabletParentHover|TabletCollapsed|Mobile|MobileHover|MobileParentHover|MobileCollapsed|Unit|UnitHover|UnitParentHover|UnitCollapsed|UnitTablet|UnitTabletHover|UnitTabletParentHover|UnitTabletCollapsed|UnitMobile|UnitMobileHover|UnitMobileParentHover|UnitMobileCollapsed)$/,"")}getBlockStyles(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return this._orderedStyles.reduce(((e,t,n)=>(e[n]=t,e)),{});const n={},o=e.reduce(((e,t)=>{!e[t]&&this._blockStyles[t]&&(e[t]=!0,this._blockStyles[t].forEach((e=>{n[e]=this._orderedStyles[e]})));const o=this.getRootAttrName(t);return!e[o]&&this._blockStyles[o]&&(e[o]=!0,this._blockStyles[o].forEach((e=>{n[e]=this._orderedStyles[e]}))),e}),{});if(this._blockStyleNamesWithValuePreCallbacks.forEach((e=>{o[e]||(o[e]=!0,this._blockStyles[e].forEach((e=>{n[e]=this._orderedStyles[e]})))})),this._dynamicBlockStyles.forEach((e=>{n[e]||(n[e]=this._orderedStyles[e])})),t&&e){const t=e.filter((e=>!(this.getRootAttrName(e)in o)&&"uniqueId"!==e));return[n,t]}return n}getAttributesWithValues(e){return Object.keys((0,y.pickBy)(e,(e=>void 0!==e&&""!==e)))}styleShouldRender(e,t){return!e.renderCondition||("function"==typeof e.renderCondition?e.renderCondition(t):!!t[e.renderCondition])}generateBlockStylesForEditor(e,t,n){const o=[];Object.values(t).forEach((t=>{if("function"==typeof t){const a=t=>{if(!this.styleShouldRender(t,e))return;const a=x({...this.commonProps,...t,version:n.version||this.commonProps.version,versionDeprecated:n.versionDeprecated||this.commonProps.versionDeprecated,blockState:n.blockState,clientId:n.clientId,uniqueId:n.uniqueId,instanceId:n.instanceId,attributes:e,editorMode:!0,generateForAllBlockStates:n.generateForAllBlockStates});a&&o.push(a)};return void t(e,a)}if(!this.styleShouldRender(t,e))return;const a=x({...this.commonProps,...t,version:n.version||this.commonProps.version,versionDeprecated:n.versionDeprecated||this.commonProps.versionDeprecated,blockState:n.blockState,clientId:n.clientId,uniqueId:n.uniqueId,instanceId:n.instanceId,attributes:e,editorMode:!0,generateForAllBlockStates:n.generateForAllBlockStates});a&&o.push(a)}));let a=o.join("");return a=(0,g.vY)(a,n.clientId,n.context),a=(0,C.applyFilters)("stackable.block-styles.edit",a,(0,l.getUniqueBlockClass)(e.uniqueId)),a}generateBlockStylesForSave(e,t,n,o){return Object.values(n).forEach((n=>{"function"!=typeof n?this.styleShouldRender(n,t)&&x({...this.commonProps,...n,version:o.version||this.commonProps.version,versionDeprecated:o.versionDeprecated||this.commonProps.versionDeprecated,uniqueId:t.uniqueId,attributes:t,editorMode:!1,compileCssTo:e}):n(t,(n=>{if(this.styleShouldRender(n,t))return x({...this.commonProps,...n,version:o.version||this.commonProps.version,versionDeprecated:o.versionDeprecated||this.commonProps.versionDeprecated,uniqueId:t.uniqueId,attributes:t,editorMode:!1,compileCssTo:e})}))})),e.compile()}}const S=e=>{const{blockStyles:t,version:n,clientId:o,context:r,attributes:i,blockState:s}=e,c=(0,a.useRef)([]),d=(0,l.useQueryLoopInstanceId)(i.uniqueId),u=(0,a.useRef)(i.text),p=(0,a.useRef)(null),h=(0,a.useMemo)((()=>{if(u.current!==i.text)return u.current=i.text,p.current;const e=t.getAttributesWithValues(i);c.current=t.getBlockStyles(e);const a=t.generateBlockStylesForEditor(i,c.current,{version:n,blockState:s,uniqueId:i.uniqueId,instanceId:d,clientId:o,context:r});return p.current=a,a}),[i,n,s,o,i.uniqueId,d,r]);return(0,k.useRafEffect)((()=>{if(u.current!==i.text)return void(u.current=i.text);const e=new v,o=t.generateBlockStylesForSave(e,i,c.current,{version:n});i.generatedCss=o}),[i,n]),h},E=e=>{const{selector:t="",styleRule:n="",hoverStyleRule:o="",attrName:a="",format:r="%s",hasUnits:s=!1,responsive:c=!1,hover:d=!1,attrNameTemplate:u="",selectorCallback:g=null,hoverSelector:m="",hoverSelectorCallback:v=null,hoverCallback:b=null,styleRuleCallback:f=null,renderIn:k="",valuePreCallback:y=null,valueCallback:w=null,enabledCallback:S=null,vendorPrefixes:E=[],clampCallback:x=null,unitCallback:T=null,version:B="",versionAdded:N="",versionDeprecated:I="",compileCssTo:R=null,attributes:P={},editorMode:O=!0,clientId:H="",instanceId:z="",blockState:L="normal",generateForAllBlockStates:D=!1}=e;if(!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?i()(e,t)>=0&&(!n||-1===i()(e,n)):!!n}(B,N,I))return null;const F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=t?(0,l.getAttrName)(t,o):o,c=e[(0,l.getAttributeName)(s,a,r)];return i?""!==c&&void 0!==c||"desktop"===a?c:n(o,"mobile"===a?"tablet":"desktop",r,i):c};return n}(P,u),$=u?(0,l.getAttrName)(u,a):a;if(k){if(O&&"save"===k)return null;if(!O&&"edit"===k)return null}if(S&&!S(F,P))return null;const U=(e,t,n)=>{const o=(0,l.getAttributeName)(`${e}Unit`,t,n),a=(0,l.getAttributeName)(e,t,n);let i=s?P[o]||s:"",d=P[a];if(""===d&&("tablet"===t||"mobile"===t)){const o=P[(0,l.getAttributeName)(`${e}Unit`,"desktop",n)],a=P[(0,l.getAttributeName)(`${e}Unit`,"tablet",n)];"tablet"===t?i=o:"mobile"===t&&(i=""!==P[(0,l.getAttributeName)(e,"tablet",n)]?a:o)}if(T&&(i=T(i,t,n,F)),x&&c){const o=P[(0,l.getAttributeName)(e,"desktop",n)],a=P[(0,l.getAttributeName)(e,"tablet",n)];""!==d&&void 0!==d||("tablet"===t?d=x(o,F,t,n,i,P):"mobile"===t&&(d=x(""!==a?a:o,F,t,n,i,P)))}if(y&&(d=y(d,F,t,n,P)),""!==d&&void 0!==d)return i&&("auto"===d||"string"==typeof d&&d.startsWith("var")||(d=`${d}${i}`)),"%s"!==r&&""!==r&&(d=(0,_.sprintf)(r.replace(/%([sd])%/,"%$1%%"),d)),w&&(d=w(d,F,t,n,P)),d},W=b?b(F,P):d,V="all"===c||!1===c||Array.isArray(c)&&c.find((e=>e.startsWith("desktop"))),G="all"===c||Array.isArray(c)&&c.find((e=>e.startsWith("tablet"))),j="all"===c||Array.isArray(c)&&c.find((e=>e.startsWith("mobile"))),Z="all"===W||Array.isArray(W)&&W.includes("hover"),q="all"===W||Array.isArray(W)&&W.includes("parent-hover"),Y="all"===W||Array.isArray(W)&&W.includes("collapsed");let K,X,J,Q,ee,te,ne,oe,ae,le,re,ie;if(V&&(K=U($,"desktop","normal"),Z&&(J=U($,"desktop","hover")),q&&(Q=U($,"desktop","parent-hover")),Y&&(X=U($,"desktop","collapsed"))),G&&(ae=U($,"tablet","normal"),Z&&(re=U($,"tablet","hover")),q&&(ie=U($,"tablet","parent-hover")),Y&&(le=U($,"tablet","collapsed"))),j&&(ee=U($,"mobile","normal"),Z&&(ne=U($,"mobile","hover")),q&&(oe=U($,"mobile","parent-hover")),Y&&(te=U($,"mobile","collapsed"))),void 0===K&&void 0===J&&void 0===Q&&void 0===X&&void 0===ae&&void 0===re&&void 0===ie&&void 0===le&&void 0===ee&&void 0===ne&&void 0===oe&&void 0===te)return null;let se=n;f&&(se=f(F,P));const ce=o||se;let de=g?g(F,P,H,e):t,ue=v?v(F,P,H):m;const pe=(Array.isArray(c)?c.find((e=>e.startsWith("desktop"))):"desktop")||"desktop",he=(Array.isArray(c)?c.find((e=>e.startsWith("tablet"))):"tablet")||"tablet",ge=(Array.isArray(c)?c.find((e=>e.startsWith("mobile"))):"mobile")||"mobile";let me="",ve="";Y&&(me=p(de,D?"%h :where(.stk-block-accordion.stk--is-open) .%s":":where(.stk-block-accordion.stk--is-open) .%s")),q&&(ve=D?[p(de,"%h.%s.stk--is-hovered"),p(de,":where(.stk-hover-parent:hover, .stk-hover-parent.stk--is-hovered) .%s")]:p(de,"parent-hover"===L?".%s.stk--is-hovered":":where(.stk-hover-parent:hover, .stk-hover-parent.stk--is-hovered) .%s")),Z&&((ue||de).includes("[data-block=")&&(ue||de).endsWith("]")?ue=D?[h(de,"%h.stk--is-hovered"),ue||h(de,":hover")]:"hover"===L?h(de,".stk--is-hovered"):ue||h(de,":hover"):(D&&(ue=[p(de,"%h.%s.stk--is-hovered"),ue||p(de,".%s:hover")]),ue="hover"===L?p(de,".%s.stk--is-hovered"):ue||p(de,".%s:hover")));let be=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,l.getUniqueBlockClass)(e);let o=n;if(!n&&t){const e=(0,l.createUniqueClass)(t);o=(0,l.getUniqueBlockClass)(e)}return o}(P.uniqueId,H);z&&(be.match(/-[\d]$/g)||(be+=`-${z}`),"string"==typeof de&&(de=de.replace(/[^^?](.%s)([^-])/g,`$1-${z}$2`),ue="string"==typeof ue?ue.replace(/[^^?](.%s)([^-])/g,`$1-${z}$2`):ue.map((e=>e.replace(/[^^?](.%s)([^-])/g,`$1-${z}$2`))),ve="string"==typeof ve?ve.replace(/[^^?](.%s)([^-])/g,`$1-${z}$2`):ve.map((e=>e.replace(/[^^?](.%s)([^-])/g,`$1-${z}$2`))),me=me.replace(/[^^?](.%s)([^-])/g,`$1-${z}$2`))),be=e.editorMode?(0,C.applyFilters)("stackable.block-css.uniqueClass.edit",be):(0,C.applyFilters)("stackable.block-css.uniqueClass.save",be,P),Array.isArray(de)&&(de=de.join(", ")),Array.isArray(ue)&&(ue=ue.join(", ")),Array.isArray(ve)&&(ve=ve.join(", "));const fe=O?".editor-styles-wrapper":"";de=(0,l.prependCSSClass)(de,be,be,fe),Z&&(ue=(0,l.prependCSSClass)(ue,be,be,fe,D?".stk-preview-state--hover":"")),q&&(ve=(0,l.prependCSSClass)(ve,be,be,fe,D?".stk-preview-state--parent-hover":"")),Y&&(me=(0,l.prependCSSClass)(me,be,be,fe,D?".stk-preview-state--collapsed":""));let ke="";const ye=O?M:A;return ke+=ye(de,se,K,pe,E,R),Z&&(ke+=ye(ue,ce,J,pe,E,R)),q&&(ke+=ye(ve,ce,Q,pe,E,R)),Y&&(ke+=ye(me,se,X,pe,E,R)),G&&(ke+=ye(de,se,ae,he,E,R),Z&&(ke+=ye(ue,ce,re,he,E,R)),q&&(ke+=ye(ve,ce,ie,he,E,R)),Y&&(ke+=ye(me,se,le,pe,E,R))),j&&(ke+=ye(de,se,ee,ge,E,R),Z&&(ke+=ye(ue,ce,ne,ge,E,R)),q&&(ke+=ye(ve,ce,oe,ge,E,R)),Y&&(ke+=ye(me,se,te,pe,E,R))),e.editorMode||(ke=(0,C.applyFilters)("stackable.block-styles.save",ke,be,P)),ke||null},x=E,T=e=>{const{clientId:t}=e,n=(0,k.useBlockAttributesContext)((n=>({...(0,y.pick)(n,c(e)),clientId:t}))),o=(0,l.useQueryLoopInstanceId)(n.uniqueId),r=E({...e,clientId:t,attributes:n,instanceId:o});let i=(0,g.wt)(r);return i=(0,C.applyFilters)("stackable.block-styles.edit",i,(0,l.getUniqueBlockClass)(n.uniqueId)),r?(0,a.createElement)("style",null,i):null},B=e=>(e.styles&&console.error("BlockCss `styles` prop is deprecated, use individual BlockCss components instead."),e.compileCssTo?E({...e,editorMode:!1}):(0,a.createElement)(T,(0,o.Z)({},e,{editorMode:!0})));function M(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(void 0===n)return"";const l=t.replace(/^(--?)?(.*?$)/,((e,t,n)=>`${t||""}${(0,y.kebabCase)(n)}`));let r=`${l}: ${n} !important`;a.length&&a.forEach((e=>{r+=`;${e}${l}: ${n} !important`})),r=`\n${e} {\n\t${r}\n}`;const i=781,c=361,d=s(o,i,c);return d&&(r=`\n${d} {${r}\n}`),r}function A(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(void 0===n)return"";const r=t.replace(/^(--?)?(.*?$)/,((e,t,n)=>`${t||""}${(0,y.kebabCase)(n)}`));return l.addStyle(e,r,`${n} !important`,o),a.length&&a.forEach((t=>{l.addStyle(e,`${t}${r}`,`${n} !important`,o)})),""}},2440:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(7462),a=n(2610),l=n(4184),r=n.n(l),i=n(7537);const s=(0,a.forwardRef)(((e,t)=>{const n=r()([e.className,"ugb-button-component"]);return(0,a.createElement)(i.Button,(0,o.Z)({},e,{className:n,ref:t}))}))},1959:(e,t,n)=>{"use strict";n.d(t,{V$:()=>d,E1:()=>u,nu:()=>p,yz:()=>m,ZP:()=>v});var o=n(7462),a=n(2610),l=n(910),r=n(7537),i=n(8003),s=n(4184),c=n.n(s);const d={backgroundColor:(0,i.__)("Background Color",l.i18n),headingColor:(0,i.__)("Heading Color",l.i18n),textColor:(0,i.__)("Text Color",l.i18n),linkColor:(0,i.__)("Link Color",l.i18n),accentColor:(0,i.__)("Accent Color",l.i18n),buttonBackgroundColor:(0,i.__)("Button Color",l.i18n),buttonTextColor:(0,i.__)("Button Text Color",l.i18n),buttonOutlineColor:(0,i.__)("Button Outline Color",l.i18n)},u={backgroundColor:{desktop:""},headingColor:{desktop:""},textColor:{desktop:""},linkColor:{desktop:""},accentColor:{desktop:""},buttonBackgroundColor:{desktop:""},buttonTextColor:{desktop:""},buttonOutlineColor:{desktop:""}},p={backgroundColor:{desktop:"#0f0e17"},headingColor:{desktop:"#fffffe"},textColor:{desktop:"#fffffe"},linkColor:{desktop:"#f00069"},accentColor:{desktop:"#f00069"},buttonBackgroundColor:{desktop:"#f00069"},buttonTextColor:{desktop:"#fffffe"},buttonOutlineColor:{desktop:"#fffffe"}},h=()=>{},g=e=>{let{colors:t,withWrapper:n=!1,onClick:l=h,isDisabled:i=!1,isCollapsed:s=!1}=e;const d=l===h?"div":r.Button,u=l===h?{}:{onClick:l},p=c()("stk-global-color-scheme__preview__background",{"stk-scheme--is-disabled":i,"stk-scheme--is-collapsed":s});return(0,a.createElement)("div",{className:"stk-global-color-scheme__preview"},(0,a.createElement)(d,(0,o.Z)({className:p,style:n?{}:{background:null==t?void 0:t.backgroundColor}},u),(0,a.createElement)("div",{className:"stk-global-color-scheme__preview__typography"},(0,a.createElement)("span",{style:{color:null==t?void 0:t.headingColor}},"A"),(0,a.createElement)("span",{style:{color:null==t?void 0:t.textColor}},"a")),(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"stk-global-color-scheme__preview__button",style:{background:`${(null==t?void 0:t.buttonBackgroundColor)||"var(--stk-button-background-color)"}`}}),(0,a.createElement)("div",{className:"stk-global-color-scheme__preview__button",style:{borderStyle:"solid",borderWidth:"1px",borderColor:`${(null==t?void 0:t.buttonOutlineColor)||(null==t?void 0:t.buttonBackgroundColor)||"var(--stk-button-background-color)"}`}}),(0,a.createElement)("div",{className:"stk-global-color-scheme__preview__circle",style:{backgroundColor:`${(null==t?void 0:t.linkColor)||(null==t?void 0:t.textColor)||"var(--stk-container-color)"}`}}),(0,a.createElement)("div",{className:"stk-global-color-scheme__preview__circle",style:{backgroundColor:`${(null==t?void 0:t.accentColor)||"var(--stk-icon-color)"}`}}))))},m=e=>{let{label:t,presets:n,onPresetClick:o}=e;return(0,a.createElement)(r.BaseControl,{label:t,className:"stk-preset-color-schemes__control",__nextHasNoMarginBottom:!0},(0,a.createElement)("div",{className:"stk-preset-color-schemes__preset-wrapper"},n.map(((e,t)=>(0,a.createElement)(g,{key:t,colors:e,onClick:()=>o(e)})))))},v=g},6500:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2610),a=n(2440),l=n(4184),r=n.n(l);const i=e=>{const{value:t,options:n}=e,[l,i]=(0,o.useState)(!1),s=(0,o.useRef)(null),c=(0,o.useMemo)((()=>e.options.findIndex((e=>e.value===t))/n.length*100),[n,t]);if((0,o.useEffect)((()=>{const e=e=>{var t;l&&((null===(t=e.target)||void 0===t?void 0:t.closest(".stk-label-unit-toggle"))!==s.current&&i(!1))};return document.body.addEventListener("click",e),()=>document.body.removeEventListener("click",e)}),[l,s.current]),n.length<=1)return null;const d=r()([e.className,"stk-label-unit-toggle"],{"stk-label-unit-toggle__colored":e.hasColors,"is-open":l});return(0,o.createElement)("div",{className:d,"aria-expanded":l,ref:s},(0,o.createElement)("div",{className:r()("stk-label-unit-toggle__wrapper",{"is-open":l}),style:{transform:`translateY(-${c}%)`}},n.length>1&&n.map(((n,s)=>{const c=n.label||n.value,d=t===n.value,u=r()({"is-active":d,"has-value":n.hasValue});return(0,o.createElement)(a.Z,{key:s,className:u,"data-index":s,"data-value":n.value,disabled:n.disabled,tabIndex:d?"0":"-1",onClick:()=>{l?(e.onChange(n.value),i(!1)):i(!0)},icon:n.icon,label:e.hasLabels?c:"","aria-haspopup":"true",tooltipPosition:"middle right",onKeyDown:e=>{const t=e.target;if(t&&l){if("ArrowUp"===e.key||"ArrowRight"===e.key||"ArrowDown"===e.key||"ArrowLeft"===e.key)if(e.preventDefault(),"ArrowUp"===e.key||"ArrowLeft"===e.key){const e=t.previousElementSibling||t.parentElement.lastElementChild;e&&e.focus()}else{const e=t.nextElementSibling||t.parentElement.firstElementChild;e&&e.focus()}"Tab"===e.key&&i(!1),"Escape"===e.key&&(e.preventDefault(),i(!1))}}},n.icon?void 0:c)}))))};i.defaultProps={className:"",value:"",options:[],onChange:null,labelPosition:"right",buttonLabel:"",hasLabels:!0,hasColors:!0};const s=(0,o.memo)(i)},9305:(e,t,n)=>{"use strict";n.d(t,{oC:()=>s,aj:()=>d,R6:()=>u,Nl:()=>p,W$:()=>h,wT:()=>g,_w:()=>m,i5:()=>b,wr:()=>f,un:()=>k,yU:()=>y});var o=n(424),a=n(910),l=n(1205),r=n(378),i=n(3284);const s={...o},c=new DOMParser,d=e=>{const t=console.error,n=console.warn;let o;console.error=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];n.length&&"string"==typeof n[0]&&n[0].includes("Block validation failed")||t(...n)},console.warn=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];t.length&&"string"==typeof t[0]&&t[0].includes("Block validation")||n(...t)};try{o=(0,r.parse)(e)}finally{console.error=t,console.warn=n}return o},u=(e,t)=>{const n=e=>e.map((e=>{var o;if(null!==(o=e.innerBlocks)&&void 0!==o&&o.length&&(e.innerBlocks=n(e.innerBlocks)),e.attributes.hasContainer&&(e.attributes.containerColorScheme=t),"core/missing"===e.name&&e.attributes.originalName){const{originalAttributes:t}=e.attributes;let n="";e.innerBlocks.length?n=(0,r.serialize)(e.innerBlocks):t.text&&(n=t.text);const o=((e,t)=>{const n="\x3c!-- wp:",o="\x3c!-- /wp:",a=e.indexOf(n,n.length),l=e.lastIndexOf(o),r=e.lastIndexOf(o,l-1),i=e.indexOf("--\x3e",r);return-1===a||-1===r||-1===i?e:`${e.slice(0,a)}${t}${e.slice(i+3)}`})(e.attributes.originalContent,n);e.attributes.originalContent=o}return e}));return n(e)},p=function(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const a=e=>(o&&(e.attributes.hasBackground=!0),e.attributes.hasBackground&&""!==n&&(e.attributes.backgroundColorScheme=n),e),l=e=>{e.forEach((e=>{const t=e.attributes.customAttributes;(null==t?void 0:t.find((e=>"stk-design-library__bg-target"===e[0]&&"true"===e[1])))?e=a(e):e.innerBlocks.length&&l(e.innerBlocks)}))};return t?e.map((e=>{const t=e.attributes.customAttributes;return null!=t&&t.length?(l(e.innerBlocks),e):e=a(e)})):e},h=(e,t,n,o)=>{let a="";if(!o&&"header"!==t){e.hasBackground?a+="margin-bottom: 0px !important;":(a+=`margin-top: ${n} !important;`,a+=`margin-bottom: ${n} !important;`);const t=(0,i.select)("stackable/global-spacing-and-borders").getBlockLayouts();e.hasBackground&&"object"==typeof t&&!t["block-background-padding"]&&(a+=`padding-top: ${n} !important;`,a+=`padding-right: ${n} !important;`,a+=`padding-bottom: ${n} !important;`,a+=`padding-left: ${n} !important;`)}a&&e.uniqueId&&(e.generatedCss+=`.stk-${e.uniqueId} {${a}}`)},g=(e,t,n)=>{const o=s[t];return o&&!n&&Object.keys(o).forEach((t=>{e=e.replaceAll(t,o[t])})),e},m=e=>{const t=a.settings.stackable_block_states||[],n=new Set;if(Array.isArray(t)&&!t.length)return[e,n];const o=e=>e.map((e=>{if("core/missing"===e.name){n.add(e.attributes.originalName);const t=((e,t,n)=>{const o=n.match(/{.*}/);let a={};if(o)try{if(a=JSON.parse(o[0]),t){n=n.replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"");const e=c.parseFromString(n,"text/html");a.text=e.body.textContent.trim()}}catch(e){}return a})(e.attributes.originalName,0===e.innerBlocks.length,e.attributes.originalContent),o=e.attributes;e.attributes={...o,...t,originalAttributes:t}}return e.innerBlocks=o(e.innerBlocks),e}));return[o(e),n]},v=a.cdnUrl.replace(/\/$/,"")+"/library-v4/images/",b=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const a=[...t],r=e.replace(/</g,"<").replace(/>/g,">").replace(/–/g,"-").replace(/\u2013|\u2014/g,"-"),i=/<!--\s*wp:stackable\/posts\s+(\{[\s\S]*?\})\s*-->([\s\S]*?)<!--\s*\/wp:stackable\/posts\s*-->/g;return r.replace(i,((e,r,i)=>{var s,c,d;let u;try{u=JSON.parse(r)}catch{return e}const p=null!==(s=u.numberOfItems)&&void 0!==s?s:6,h=u.imageWidth?u.imageWidth+(null!==(c=u.imageWidthUnit)&&void 0!==c?c:"px"):"auto",g=l.META_SEPARATORS[null!==(d=u.metaSeparator)&&void 0!==d?d:"dot"],m=i.match(/<!--\s*\/stk-start:posts\/template\s*-->([\s\S]*?)<!--\s*\/stk-end:post\/template\s*-->/);if(!m)return e;const b=m[1].trim();let f;if(p<=a.length)f=a.slice(0,p);else{const e=p;f=[...a,...Array.from({length:e-a.length},((e,n)=>t[n%t.length]))].slice(0,p)}const k=f.map(((e,t)=>{const a=null!=o?o:`${v}stk-design-library-image-${t+1}.jpeg`;return b.replace(/!#title!#/g,e.title_placeholder).replace(/!#excerpt!#/g,e.text_placeholder).replace(/!#authorName!#/g,"John Doe").replaceAll(/!#metaSeparator!#/g,g).replace(/!#commentsNum!#/g,"3 comments").replace(/!#date!#/g,"March 1, 2025").replace(/!#readmoreText!#/g,n["post-btn_placeholder"]).replace(/!#category!#/g,n.tag_placeholder).replace(/img class="stk-img"/g,`img class="stk-img" src="${a}" width="${h}" style="width: ${h} !important;"`)})).join("\n");return`\x3c!-- wp:stackable/posts ${r} --\x3e${i.replace(/<!--\s*\/stk-start:posts\/template\s*-->([\s\S]*?)<!--\s*\/stk-end:post\/template\s*-->/,k)}\x3c!-- /wp:stackable/posts --\x3e`}))},f=e=>{const t=a.cdnUrl.replace(/\/$/,"")+"/library-v4/images/low-resolution/";return e.replace(new RegExp(v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"([^\\/\\s]+\\.(jpeg|jpg|png))","g"),((e,n)=>t+n))},k=e=>"string"!=typeof e?"":e.startsWith("section-")?e.replace(/^section-/,"").replace(/-\d+$/,""):e.replace(/-\d+$/,""),y=()=>{let e="";return e+="body { display: flow-root; }",e+="body { --stk-block-wide-width: 1000px; }",e+="body.preview-pages { overflow-y: hidden; max-height: 1200px; }",e+="::-webkit-scrollbar { width: 0; }",e+="body.preview-pages { scrollbar-width: none; -ms-overflow-style: none; }",e+=".stk-block-count-up__text:not(.stk--count-up-active) { opacity: 1; }",e+=".stk-block-timeline { --line-bg-color: var(--line-accent-bg-color, #000); }",e+=".stk-progress-bar .stk-progress-bar__bar { width: var(--progress-percent, 0px); }",e+=".stk-progress-circle .stk-progress-circle__bar { stroke-dashoffset: var(--progress-dash-offset); }",e+=".stk-block-map { height: 100%; } .stk-block-map > img { height: 100%; width: 100%; object-fit: cover; }",a.isPro||(e+=".stk-block-posts.is-style-horizontal-2 {\n\t.stk-block-posts__item > .stk-container {\n\t\tpadding: 0;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\n\t\t> .stk-block-posts__image-link:empty ~ .stk-container-padding,\n\t\t\t.stk-container-padding:only-child {\n\t\t\t\twidth: 100%;\n\t\t}\n\t}\n\t.stk-img-wrapper {\n\t\theight: 100%;\n\t\tmargin-top: 0;\n\t\tmargin-bottom: 0;\n\t}\n\t.stk-block-posts__image-link {\n\t\tmargin-bottom: 0;\n\t}\n}"),e}},9755:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>x,V6:()=>k,vY:()=>_,wt:()=>y,WA:()=>f});var o=n(2610),a=n(910),l=n(8085),r=n(4184),i=n.n(r),s=n(6071),c=n(8003),d=n(78),u=n(7537),p=n(3882),h=n(3284),g=n(4685),m=n(5980),v=n(7462);n(7294);var b=n(5917);const f=e=>{var t,n;const[a,r]=(0,o.useState)(!1),[i,s]=(0,o.useState)(e.value);(0,o.useEffect)((()=>{const e=e=>{a&&(e.target.closest(".stackable-dynamic-content__popover")||e.target.closest(".stk-dynamic-content-control__button")||e.target.closest(".components-color-picker")||e.target.closest(".react-autosuggest__suggestions-container")||e.target.closest(".components-dropdown__content")||r(!1))};return document.body.addEventListener("mousedown",e),()=>document.body.removeEventListener("mousedown",e)}),[a]),(0,o.useEffect)((()=>{const t=setTimeout((()=>{s(e.value)}),300);return()=>clearTimeout(t)}),[e.value]);const c=[];var d,u;null!=i&&null!==(t=i.includes)&&void 0!==t&&t.call(i,"!#stk_dynamic")&&(null===(d=i.match(/\!#stk_dynamic\/(.*)\!#/g))||void 0===d||d.forEach((e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/","");c.push(t)}))),null!=i&&null!==(n=i.includes)&&void 0!==n&&n.call(i,'data-stk-dynamic="')&&(null===(u=i.match(/data-stk-dynamic="[^"]*"/g))||void 0===u||u.forEach((e=>{var t,n,o;const a=null===(t=e.match(/data-stk-dynamic="(.*?(?="))"/g))||void 0===t||null===(n=t[0])||void 0===n||null===(o=n.replace(/"/g,""))||void 0===o?void 0:o.replace("data-stk-dynamic=","");a&&c.push(a)})));const p=y(i),h=C(i),g=a||c.length,m=(0,l.first)(c)||"";return{onClick:()=>{r(!a)},isPressed:g,isPopoverOpen:a,value:p,placeholder:h,onClose:()=>{r(!1)},onReset:()=>{e.onChange("")},onChange:(t,n,o)=>{const a=e.isFormatType?`<span data-stk-dynamic="${o}" contenteditable="false" class="stk-dynamic-content">${t}</span>`:`!#stk_dynamic/${o}!#`;e.onChange(a),s(a),r(!1)},activeAttribute:m}},k=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,h.select)("stackable/dynamic-content"))return t;const o=(null===(e=(0,h.select)("core/editor"))||void 0===e?void 0:e.getCurrentPostId())||-1;let a=t;var l,r;return-1!==o&&null!=n&&n.postId&&n.postId!==o&&(a=null===(l=a)||void 0===l?void 0:l.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],o=t.split("/");return t.startsWith("current-page")?(o.length>2&&o[2].startsWith("?")?o.splice(2,0,n.postId.toString()):2===o.length&&o.push(n.postId.toString()),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+o.join("/")+'"')):e})),a=null===(r=a)||void 0===r?void 0:r.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),o=t.split("/");return t.startsWith("current-page")?(o.length>2?o.splice(2,0,n.postId.toString()):2===o.length&&o.push(n.postId.toString()),"!#stk_dynamic/"+o.join("/")+"!#"):e}))),(0,h.select)("stackable/dynamic-content").parseDynamicContents(a)},y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{clientId:t}=(0,d.useBlockEditContext)(),n=(0,h.select)("core/block-editor").getBlock(t),a=(0,o.useContext)(s.v);return(0,h.useSelect)((t=>{var o;if(!e||!(0,l.isString)(e))return e;if(!e.includes("!#stk_dynamic")&&!e.includes("data-stk-dynamic"))return e;if(!t("stackable/dynamic-content"))return e;let r=(null===(o=t("core/editor"))||void 0===o?void 0:o.getCurrentPostId())||-1;var i,s;r&&(null==a?void 0:a.postId)!==r&&(r=(null===(i=a.postId)||void 0===i?void 0:i.toString())||-1),-1===r&&t("core/edit-site")&&(r=(null===(s=t("core/edit-site").getEditedPostContext())||void 0===s?void 0:s.postId)||-1);let c=e;var d,u;-1!==r&&(c=null===(d=c)||void 0===d?void 0:d.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],n=t.split("/");return t.startsWith("current-page")?(n.length>2&&n[2].startsWith("?")?n.splice(2,0,r):2===n.length&&n.push(r),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+n.join("/")+'"')):e})),c=null===(u=c)||void 0===u?void 0:u.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),n=t.split("/");return t.startsWith("current-page")?(n.length>2?n.splice(2,0,r):2===n.length&&n.push(r),"!#stk_dynamic/"+n.join("/")+"!#"):e})));let p=t("stackable/dynamic-content").parseDynamicContents(c,n);var h,g;return-1!==r&&(p=null===(h=p)||void 0===h?void 0:h.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],n=t.split("/");return t.startsWith("current-page")&&(0,l.last)(n).match(/^\d+$/)?(n.pop(),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+n.join("/")+'"')):e})),p=null===(g=p)||void 0===g?void 0:g.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),n=t.split("/");return t.startsWith("current-page")&&(0,l.last)(n).match(/^\d+$/)?"!#stk_dynamic/"+n.join("/")+"!#":e}))),p}),[e,null==a?void 0:a.postId])},_=(e,t,n)=>{var o;if(!e||!(0,l.isString)(e))return e;if(!e.includes("!#stk_dynamic")&&!e.includes("data-stk-dynamic"))return e;if(!(0,h.select)("stackable/dynamic-content"))return e;let a=(null===(o=(0,h.select)("core/editor"))||void 0===o?void 0:o.getCurrentPostId())||-1;var r,i;a&&(null==n?void 0:n.postId)!==a&&(a=(null===(r=n.postId)||void 0===r?void 0:r.toString())||-1),-1===a&&(0,h.select)("core/edit-site")&&(a=(null===(i=(0,h.select)("core/edit-site").getEditedPostContext())||void 0===i?void 0:i.postId)||-1);let s=e;var c,d;-1!==a&&(s=null===(c=s)||void 0===c?void 0:c.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],n=t.split("/");return t.startsWith("current-page")?(n.length>2&&n[2].startsWith("?")?n.splice(2,0,a):2===n.length&&n.push(a),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+n.join("/")+'"')):e})),s=null===(d=s)||void 0===d?void 0:d.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),n=t.split("/");return t.startsWith("current-page")?(n.length>2?n.splice(2,0,a):2===n.length&&n.push(a),"!#stk_dynamic/"+n.join("/")+"!#"):e})));const u=(0,h.select)("core/block-editor").getBlock(t);let p=(0,h.select)("stackable/dynamic-content").parseDynamicContents(s,u);var g,m;return-1!==a&&(p=null===(g=p)||void 0===g?void 0:g.replace(/<span[^\>]+data-stk-dynamic=[^\>]*>(.*?)<\/span>/g,(e=>{const t=e.match(/data-stk-dynamic="([^\"]*)"/)[1],n=t.split("/");return t.startsWith("current-page")&&(0,l.last)(n).match(/^\d+$/)?(n.pop(),e.replace(/data-stk-dynamic="[^\"]*"/g,'data-stk-dynamic="'+n.join("/")+'"')):e})),p=null===(m=p)||void 0===m?void 0:m.replace(/!#stk_dynamic(.*)\!#/g,(e=>{const t=e.replace(/\!#/g,"").replace("stk_dynamic/",""),n=t.split("/");return t.startsWith("current-page")&&(0,l.last)(n).match(/^\d+$/)?"!#stk_dynamic/"+n.join("/")+"!#":e}))),p},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,h.useSelect)((t=>{var n,o;if(!t("stackable/dynamic-content"))return e;let a=e;return null!=e&&null!==(n=e.includes)&&void 0!==n&&n.call(e,"!#stk_dynamic")&&(a=a.replace(/\!#stk_dynamic\/(.*)\!#/g,(e=>{const n=e.replace(/\!#/g,"").replace("stk_dynamic/","");let o=(0,l.first)(t("stackable/dynamic-content").getFieldTitle(n));var a;o||(o=null===(a=new URL(`stk:${n}`).pathname.split("/"))||void 0===a?void 0:a[1]);return o?`[${o}]`:""}))),null!=e&&null!==(o=e.includes)&&void 0!==o&&o.call(e,'data-stk-dynamic="')&&(a=a.replace(/<span[^\>]+data-stk-dynamic="[^>"]*"[^\>]*>(.*?)<\/span>/g,(n=>{var o,a,r;const i=null===(o=n.match(/data-stk-dynamic="(.*?(?="))"/g))||void 0===o||null===(a=o[0])||void 0===a||null===(r=a.replace(/"/g,""))||void 0===r?void 0:r.replace("data-stk-dynamic=","");if(e){let e=(0,l.first)(t("stackable/dynamic-content").getFieldTitle(i));var s;if(!e)e=null===(s=new URL(`stk:${i}`).pathname.split("/"))||void 0===s?void 0:s[1];return e?`[${e}]`:""}return n}))),a}))},w=(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,v.Z)({"aria-hidden":"true","data-prefix":"fal","data-icon":"database",className:"database-light_svg__svg-inline--fa database-light_svg__fa-database database-light_svg__fa-w-14",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),(0,o.createElement)("path",{fill:"currentColor",d:"M224 32c106 0 192 28.75 192 64v32c0 35.25-86 64-192 64S32 163.25 32 128V96c0-35.25 86-64 192-64m192 149.5V224c0 35.25-86 64-192 64S32 259.25 32 224v-42.5c41.25 29 116.75 42.5 192 42.5s150.749-13.5 192-42.5m0 96V320c0 35.25-86 64-192 64S32 355.25 32 320v-42.5c41.25 29 116.75 42.5 192 42.5s150.749-13.5 192-42.5m0 96V416c0 35.25-86 64-192 64S32 451.25 32 416v-42.5c41.25 29 116.75 42.5 192 42.5s150.749-13.5 192-42.5M224 0C145.858 0 0 18.801 0 96v320c0 77.338 146.096 96 224 96 78.142 0 224-18.801 224-96V96c0-77.338-146.096-96-224-96z"}))}),null),S=(0,o.memo)((e=>{if((0,h.select)("core/customize-widgets"))return null;if(!a.isPro&&!a.showProNotice)return null;const t=(0,p.applyFilters)("stackable.dynamic-content.component")||o.Fragment;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(u.Button,{className:"stk-dynamic-content-control__button",icon:w,"aria-haspopup":"true",label:(0,c.__)("Dynamic Fields",a.i18n),variant:"secondary",onClick:e.onClick,isPressed:!!e.isPressed}),e.isPopoverOpen&&(0,o.createElement)(m.Z,{position:"top right",className:i()("stackable-dynamic-content__popover",{"stk-dynamic-content__popover--is-premium":!a.isPro}),onEscape:e.onClick},!a.isPro&&(0,o.createElement)(g.Z,{type:"dynamic-attributes"}),a.isPro&&(0,o.createElement)(t,{onClose:e.onClose,onChange:e.onChange,activeAttribute:e.activeAttribute,type:e.type})))})),E=e=>{let{children:t,enable:n,...a}=e;if(!n)return t;const l=""!==a.activeAttribute,r=i()(["stk-dynamic-content-control"],{"stk--has-dynamic-content":l,"stk--has-control-tooltip":a.controlHasTooltip});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:r},l?(0,o.createElement)(u.TextControl,{value:a.placeholder,disabled:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}):t,(0,o.createElement)(S,a)),(0,o.createElement)(b.J,{allowReset:!0,value:a.activeAttribute,default:"",hasPanelModifiedIndicator:a.hasPanelModifiedIndicator,onChange:a.onReset}))};E.defaultProps={enable:!1,controlHasTooltip:!1,children:null,activeAttribute:"",onReset:()=>{}};const x=E},8903:(e,t,n)=>{"use strict";n.d(t,{W6:()=>l,tk:()=>r,yY:()=>i,Ax:()=>s,aQ:()=>c});let o=null;const a=new Set,l=e=>{o=e,a.forEach((t=>t(e)))},r=()=>{o=null,a.forEach((e=>e(null)))},i=()=>null!==o,s=()=>o,c=e=>(a.add(e),()=>a.delete(e))},7408:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(2610),a=n(910);const l={"inner-block-padding":"dist/videos/help/advanced-column-paddings.mp4","column-gap":"dist/videos/help/advanced-column-gap.mp4","advanced-block-paddings":"dist/videos/help/advanced-block-paddings.mp4","image-shape":"dist/videos/help/image-shape.mp4","image-size":"dist/videos/help/image-size-no-crop.mp4","image-border-radius":"dist/videos/help/image-border-radius.mp4","advanced-opacity":"dist/videos/help/advanced-opacity.mp4","advanced-zindex":"dist/videos/help/advanced-zindex.mp4","content-horizontal-align":"dist/videos/help/advanced-block-horizontal-align.mp4","block-height":"dist/videos/help/advanced-block-height.mp4","advanced-block-margin":"dist/videos/help/advanced-block-margins.mp4","content-vertical-align":"dist/videos/help/advanced-column-content-vertical-align.mp4","column-vertical-align":"dist/videos/help/advanced-block-vertical-align.mp4","max-content-width":"dist/videos/help/advanced-block-content-width.mp4","gradient-location":"dist/videos/help/gradient-location.mp4","background-color-opacity":"dist/videos/help/background-color-opacity.mp4","background-blend-mode":"dist/videos/help/background-blend-mode.mp4","background-tint":"dist/videos/help/background-tint.mp4","background-fixed":"dist/videos/help/background-fixed.mp4","background-image-position":"dist/videos/help/background-image-position.mp4","background-image-repeat":"dist/videos/help/background-image-repeat.mp4","background-image-size":"dist/videos/help/background-image-size.mp4","general-border-radius":"dist/videos/help/general-border-radius.mp4","general-shadow":"dist/videos/help/general-shadow.mp4","typography-family":"dist/videos/help/typography-family.mp4","typography-weight":"dist/videos/help/typography-weight.mp4","typography-transform":"dist/videos/help/typography-transform.mp4","typography-line-height":"dist/videos/help/typography-line-height.mp4","typography-letter-spacing":"dist/videos/help/typography-letter-spacing.mp4","button-hover-effect":"dist/videos/help/button-hover-effect.mp4","image-shadow":"dist/videos/help/image-shadow.mp4","separator-height":"dist/videos/help/separator-height.mp4","separator-width":"dist/videos/help/separator-width.mp4","separator-shadow":"dist/videos/help/separator-shadow.mp4","separator-bring-to-front":"dist/videos/help/separator-bring-to-front.mp4","separator-layer-blend-mode":"dist/videos/help/separator-layer-blend-mode.mp4","accordion-adjacent-open":"dist/videos/help/accordion-adjacent-open.mp4","alignment-all":"dist/videos/help/alignment-all.mp4","posts-content-order":"dist/videos/help/posts-content-order.mp4","posts-meta-separator":"dist/videos/help/posts-meta-separator.mp4"},r=e=>{const t=l[e]||"";return`${a.cdnUrl}/${t}`};var i=n(7537),s=n(8003),c=n(5980);const d=()=>{},u=e=>(0,o.createElement)(c.Z,{className:"stk-control-help-tooltip",title:e.title,placement:"left",offset:28,noArrow:!1,onFocusOutside:e.closeOnEscape?e.onClose:d,onEscape:e.closeOnEscape?e.onClose:d},(0,o.createElement)(i.PanelBody,null,(0,o.createElement)("button",{className:"stk-control-help-tooltip__remove",onClick:e.onClose},(0,o.createElement)(i.Dashicon,{icon:"no-alt"})),e.video&&(0,o.createElement)("video",{width:"600",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,src:r(e.video)}),(0,o.createElement)("h4",null,e.title),(0,o.createElement)("p",null,e.description),e.showTooltipCheckbox&&(0,o.createElement)(i.CheckboxControl,{label:(0,s.__)("Stop showing tooltips",a.i18n),className:"ugb-help-tooltip__checkbox",checked:!e.tooltipsEnabled,onChange:t=>e.onTooltipsEnabledChange(!t),__nextHasNoMarginBottom:!0})));u.defaultProps={title:"",video:"",description:"",closeOnEscape:!0,onClose:d,showTooltipCheckbox:!0,tooltipsEnabled:!0,onTooltipsEnabledChange:d};const p=u},3566:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ALTERNATE_COLOR_SCHEME_COLORS:()=>Mn.nu,AdminBaseSetting:()=>_a.Z,AdminSelectSetting:()=>Sa.Z,AdminTextSetting:()=>Ca.Z,AdminToggleSetting:()=>wa.Z,AdvancedAutosuggestControl:()=>Ce,AdvancedControl:()=>E.ZP,AdvancedFocalPointControl:()=>ml,AdvancedRadioControl:()=>pl,AdvancedRangeControl:()=>ce,AdvancedSelectControl:()=>ue,AdvancedTextControl:()=>$,AdvancedToggleControl:()=>dl,AdvancedTokenField:()=>bl,AdvancedToolbarControl:()=>Oe,AlignButtonsControl:()=>la,BaseControl:()=>ll,BaseControl2:()=>E.ZP,BaseControlMultiLabel:()=>No,BlendModeControl:()=>Z,BlockContainer:()=>Va,BlockCss:()=>$r.ZP,BlockCssCompiler:()=>$r.fE,BlockStyleGenerator:()=>$r.WS,BlockStyles:()=>Ra,BlockWrapper:()=>Fr,BorderControls:()=>_o,BorderControlsHelper:()=>wo,Button:()=>f.Z,ButtonIconPopoverControl:()=>bo,COLOR_SCHEME_PROPERTY_LABELS:()=>Mn.V$,CodeTextarea:()=>da,CodeTextareaControl:()=>pa,ColorPaletteControl:()=>O,ColorSchemePresetPicker:()=>Mn.yz,ColorSchemePreview:()=>Mn.ZP,ColorSchemesHelp:()=>An,ColumnInnerBlocks:()=>ql,ColumnInserter:()=>Sl,ColumnsWidthControl:()=>ns,ColumnsWidthMultiControl:()=>as,ControlIconToggle:()=>Bo.Z,ControlSeparator:()=>Ka,ConvertToContainerButton:()=>ba,CssSaveCompiler:()=>$r.Gh,CustomAttributesControl:()=>V,DEFAULT_COLOR_SCHEME_COLORS:()=>Mn.E1,DesignControl:()=>Xn,DesignLibraryList:()=>$n,DesignPanelBody:()=>Zn,DesignPanelItem:()=>qn,DesignSeparatorControl:()=>eo,Div:()=>Nr,DynamicContentControl:()=>D.ZP,FontAwesomeIcon:()=>el,FontFamilyControl:()=>De,FontPairPicker:()=>_s,FontSizeControl:()=>ze,FourNumberControl:()=>Ro,FourRangeControl:()=>qo,GetBlockAttributesButton:()=>fa,GroupPlaceholder:()=>El,GuidedModalTour:()=>za,HeadingButtonsControl:()=>ta,HelpTooltip:()=>rs.Z,IconControl:()=>ao,IconSearchPopover:()=>mo,ImageAltControl:()=>J,ImageControl:()=>K,ImageControl2:()=>sl,ImageFilterControl:()=>yl,ImageShapeControl:()=>ee,ImageSizeControl:()=>oe,ImageUploadPlaceholder:()=>p,InspectorAdvancedControls:()=>Er,InspectorBlockControls:()=>wr,InspectorBottomTip:()=>Lr,InspectorLayoutControls:()=>Cr,InspectorPanelControls:()=>pn,InspectorStyleControls:()=>Sr,InspectorSubHeader:()=>ks,InspectorTabs:()=>Tr,Link:()=>Dl,LinkControl:()=>Il,ModalDesignLibrary:()=>ya,PanelAdvancedSettings:()=>cn,PanelDesignLibrary:()=>dn,PanelTabs:()=>jn,Popover:()=>ls.Z,ProControl:()=>hn.Z,ProControlButton:()=>To,ResizableBottomMargin:()=>br,ResizableColumn:()=>nr,ResizerTooltip:()=>ir,ResponsiveControl2:()=>cr,ResponsiveToggle:()=>Mo.Z,RichText:()=>ss,SectionSettings:()=>Cs,Separator:()=>Ya,Separator2:()=>Or,ShadowControl:()=>Al,SmallNumberControl:()=>Yo,SortControl:()=>Kt,SortablePicker:()=>hs,SpacingControl:()=>Eo,Style:()=>zl.Z,StyleControl:()=>Hl,StyleGuidePopover:()=>$a,SvgIcon:()=>ol,TaxonomyControl:()=>Aa,Tooltip:()=>In,TypographyControl:()=>ko,URLInputControl:()=>b,UrlInputPopover:()=>S,VariationPicker:()=>zr,WhenResponsiveScreen:()=>Xo,advancedToolbarControlControls:()=>Ie,extractControlProps:()=>E.ED,getDynamicContent:()=>D.V6,getShadows:()=>xl,useBlockCssGenerator:()=>$r.ul,useControlHandlers:()=>E.Gj,useDynamicContent:()=>D.wt});var o=n(2610),a=n(7462),l=n(7294);const r=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),(0,o.createElement)("circle",{cx:409.1,cy:102.9,r:40.9}),(0,o.createElement)("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}))};var i=n(4184),s=n.n(i),c=n(7537),d=n(78);const u=e=>{const{imageID:t,imageURL:n,onRemove:a,className:l,allowedTypes:i,render:u,hasRemove:p,style:h}=e,g=s()([l,"ugb-image-upload-placeholder"],{"ugb-image-upload-has-image":n,"ugb-image-upload-has-placeholder":!n}),m={...h,backgroundImage:n&&!u?`url(${n})`:void 0};return(0,o.createElement)(d.MediaUpload,{onSelect:t=>{let{url:n,width:o,height:a}=t;const l=e.imageSize||"full";t.sizes&&t.sizes[l]&&(n=t.sizes[l].url,o=t.sizes[l].width,a=t.sizes[l].height),e.onChange({...t,url:n,width:o,height:a})},allowedTypes:i,value:t,render:e=>n&&u?(0,o.createElement)("div",{className:g,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()},style:m,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&p&&(0,o.createElement)("button",{className:"ugb-image-upload-remove",onClick:e=>{a(),e.stopPropagation()}},(0,o.createElement)(c.Dashicon,{icon:"no"})),u):(0,o.createElement)("div",{className:g,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()},style:m,role:"button",tabIndex:0,"data-is-placeholder-visible":!n},n&&a&&p&&(0,o.createElement)("button",{className:"ugb-image-upload-remove",onClick:e=>{a(),e.stopPropagation()}},(0,o.createElement)(c.Dashicon,{icon:"no"})),!n&&(0,o.createElement)(r,null))})};u.defaultProps={imageID:"",imageURL:"",imageSize:"full",onChange:e=>{let{url:t,id:n}=e},onRemove:null,className:"",allowedTypes:["image"],render:void 0,hasRemove:!0,style:{}};const p=u;var h=n(8003),g=n(910),m=n(8085);const v=e=>(0,o.createElement)(ll,{label:e.label,id:"url-input-control",help:e.help,allowReset:e.allowReset,value:e.value,onChange:e.onChange},(0,o.createElement)(d.URLInput,(0,a.Z)({className:"ugb-url-input-control__input",value:e.value,onChange:e.onChange,autoFocus:!1},(0,m.omit)(e,["label","help"]))));v.defaultProps={label:(0,h.__)("URL",g.i18n),help:null,value:"",onChange:()=>{},allowReset:!0};const b=v;var f=n(2440),k=n(7823),y=n(3891);const _=(0,y.jsx)(k.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y.jsx)(k.y$,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})}),C=[{id:"opensInNewTab",title:(0,h.__)("Opens in new tab",g.i18n)},{id:"noFollowLink",title:(0,h.__)("Nofollow link",g.i18n)},{id:"sponsored",title:(0,h.__)("Sponsored",g.i18n)},{id:"ugc",title:(0,h.__)("UGC",g.i18n)}],w=e=>{const{value:t,newTab:n,noFollow:a,sponsored:l,ugc:r}=e,i={url:t,opensInNewTab:n,noFollowLink:a,sponsored:l,ugc:r};if(!(e.onChange||e.onChangeNewTab||e.onChangeNoFollow||e.onChangeSponsored||e.onChangeUgc))return null;const u=s()(["ugb-url-input-popover"]),p=C.filter((t=>{let{id:n}=t;switch(n){case"opensInNewTab":return e.onChangeNewTab;case"noFollowLink":return e.onChangeNoFollow;case"sponsored":return e.onChangeSponsored;case"ugc":return e.onChangeUgc;default:return!0}}));return(0,o.createElement)(c.Popover,{className:u,focusOnMount:!1,position:e.position},(0,o.createElement)(d.__experimentalLinkControl,{value:i,settings:p,showSuggestions:!e.disableSuggestions,onChange:t=>{const n={url:e.onChange,opensInNewTab:e.onChangeNewTab,noFollowLink:e.onChangeNoFollow,sponsored:e.onChangeSponsored,ugc:e.onChangeUgc},o=(0,m.omitBy)((0,m.omit)(t,"id","title","type"),((e,t)=>i[t]===e));(0,m.keys)(o).forEach((e=>{var t;null===(t=n[e])||void 0===t||t.call(n,o[e])}))}},(0,o.createElement)("form",null,(0,o.createElement)("input",{placeholder:(0,h.__)("Search or type url",g.i18n),value:t}),(0,o.createElement)(f.Z,{icon:_,type:"submit"}))))};w.defaultProps={value:"",disableSuggestions:!1,onChange:null,position:"bottom center",newTab:!1,noFollow:!1,sponsored:!1,ugc:!1,onChangeNewTab:null,onChangeNoFollow:null,onChangeSponsored:null,onChangeUgc:null};const S=w;var E=n(2622),x=n(5917),T=n(5509),B=n(3882);const M=[{value:"",title:(0,h.__)("Single",g.i18n)},{value:"gradient",title:(0,h.__)("Gradient",g.i18n)}],A=(0,o.memo)((e=>{const{onChange:t,preOnChange:n,value:a,colors:l,gradients:r,isGradient:i}=e,[s,u]=(0,o.useState)(a.startsWith("linear-")||a.startsWith("radial-")?"gradient":""),p=l.reduce(((e,t)=>[...e,...t.colors||t.gradients]),[]);let h,g=a;return p.some((e=>(e.color===a||e.gradient===a)&&(g=e.name,h=e.name,!0))),h=g||("transparent"===a?"Transparent":a),(0,o.createElement)(o.Fragment,null,e.hasGradientPicker&&(0,o.createElement)(Oe,{className:"stk-color-palette-popup-control__tabs",controls:M,fullwidth:!1,allowReset:!1,value:s,onChange:e=>u(e),disabled:e.enableGradient?[]:["gradient"]}),(e.hasGradientPicker?s:i)&&(0,o.createElement)(c.GradientPicker,{onChange:e=>{t(n(e,a))},value:a.startsWith("linear-")||a.startsWith("radial-")?a:null,gradients:e.hasGradientPicker?r:l,clearable:!1,__experimentalHasMultipleOrigins:!0}),(e.hasGradientPicker?!s:!i)&&(0,o.createElement)(c.ColorPicker,{onChange:e=>{t(n(e,a))},color:a,enableAlpha:!0}),(e.hasGradientPicker?!s:!i)&&(0,o.createElement)(c.ColorPalette,{value:a,onChange:e=>{const o=(0,d.getColorObjectByColorValue)(p,e);t(n((0,B.applyFilters)("stackable.color-palette-control.change",e,o),a))},disableCustomColors:!0,label:h,clearable:!1,colors:l,__experimentalHasMultipleOrigins:!0}))}));A.defaultProps={value:"",onChange:()=>{},preOnChange:e=>e,colors:[],gradients:[],isGradient:!1,hasGradientPicker:!1,enableGradient:!1};var N=n(3284),I=n(3796);const R={placement:"left-start",offset:36,shift:!0};(0,B.addFilter)("stackable.color-palette-control.colors","stackable/global-color-schemes-color-palette-control",(e=>{let{colors:t,gradients:n}=e;const{getColorGroups:o}=(0,I.useBlockColorSchemes)(),{colorSchemeColors:a,colorSchemeGradients:l}=o();let r=(0,m.cloneDeep)(t),i=(0,m.cloneDeep)(n);return i=[...l,...i],r=[...a,...t],{colors:r,gradients:i}})),(0,B.addFilter)("stackable.color-palette-control.colors","stackable/color-palette-control",(e=>{let{colors:t,gradients:n}=e;const{stackableColors:o,stackableGradients:a}=(0,N.select)("stackable/global-colors").getSettings();let l=(0,m.cloneDeep)(t),r=(0,m.cloneDeep)(n);return a&&a.length&&(r=[{name:(0,h.__)("Global Gradients",g.i18n),gradients:(0,m.cloneDeep)(a),id:"stk-global-gradients"},...r]),o&&o.length&&(l=[{name:(0,h.__)("Global Colors",g.i18n),colors:(0,m.cloneDeep)(o),id:"stk-global-colors"},...l]),{colors:l,gradients:r}})),(0,B.addFilter)("stackable.color-palette-control.color-value","stackable/color-palette-control",(e=>"string"==typeof e&&e.includes("--stk-global-color")&&e.match(/#[\d\w]{6,}/)?e.match(/#[\d\w]{6,}/)[0]:e));const P=(0,o.memo)((e=>{const{label:t,className:n=""}=e,[l,r]=(0,T.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[i,u]=(0,E.ED)(e),{hideThemeColors:p,hideDefaultColors:g,hideSiteEditorColors:m}=(0,N.useSelect)("stackable/global-colors").getSettings();let{colors:v,gradients:b}=(0,B.applyFilters)("stackable.color-palette-control.colors",(0,d.__experimentalUseMultipleOriginColorsAndGradients)());v=v.filter((e=>!(p&&e.name===(0,h._x)("Theme","Indicates this palette comes from the theme.")||g&&e.name===(0,h._x)("Default","Indicates this palette comes from WordPress.")||m&&e.name===(0,h._x)("Custom","Indicates this palette comes from the theme.")))),b=b.filter((e=>!(p&&e.name===(0,h._x)("Theme","Indicates this palette comes from the theme.")||g&&e.name===(0,h._x)("Default","Indicates this palette comes from WordPress.")||m&&e.name===(0,h._x)("Custom","Indicates this palette comes from the theme."))));const f=[...v,...b].reduce(((e,t)=>[...e,...t.colors||t.gradients]),[]);let k=void 0===e.value?l:e.value;const y=void 0===e.onChange?r:e.onChange;k=(0,B.applyFilters)("stackable.color-palette-control.color-value",k);let _,C=k,w=k;f.some((e=>e.color===k||e.gradient===k?(C=e.name,_=e.name,!0):!(!e.slug||`var(--${e.slug})`!==k||(C=e.name,_=e.name,w=e.color,0)))),_=C||("transparent"===k?"Transparent":k);const S={colorValue:k,label:e.colorLabel||_,additionalToggleProps:e.additionalToggleProps},M=(0,o.createElement)(A,{value:w,onChange:y,preOnChange:e.preOnChange,colors:e.isGradient?b:v,isGradient:e.isGradient,hasGradientPicker:e.hasGradientPicker,enableGradient:e.hasGradientPicker&&e.enableGradient,gradients:b});return(0,o.createElement)(E.ZP,(0,a.Z)({},u,{className:s()([n,"editor-color-palette-control","stk-color-palette-control"]),label:t}),e.isExpanded&&M,!e.isExpanded&&(0,o.createElement)(c.Dropdown,{popoverProps:R,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:H(S),renderContent:()=>(0,o.createElement)("div",{className:"stk-color-palette-control__popover-content"},M)}),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:k,default:e.default,onChange:y}))}));P.defaultProps={allowReset:!0,default:"",attribute:"",value:void 0,colorLabel:void 0,onChange:void 0,preOnChange:e=>e,isExpanded:!1,isGradient:!1,hasGradientPicker:!1,enableGradient:!1,additionalToggleProps:{}};const O=P,H=e=>t=>{let{onToggle:n,isOpen:a}=t;const{colorValue:l,label:r,additionalToggleProps:i}=e,d={onClick:n,className:s()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":a}),"aria-expanded":a,...i};return(0,o.createElement)(c.Button,d,(0,o.createElement)(z,{colorValue:l,label:r}))},z=e=>{let{colorValue:t,label:n}=e;return(0,o.createElement)(c.__experimentalHStack,{justify:"flex-start"},(0,o.createElement)(c.ColorIndicator,{className:"stk-color-indicator block-editor-panel-color-gradient-settings__color-indicator",colorValue:t}),(0,o.createElement)(c.FlexItem,{className:"stk-color-name block-editor-panel-color-gradient-settings__color-name",title:n},n))};var L=n(1205),D=n(9755);const F=(0,o.memo)((e=>{const[t,n]=(0,T.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=(0,E.ED)(e),{isDynamic:i,isMultiline:d,changeDynamicContent:u,isFormatType:p,...h}=l,g=void 0!==u?u:void 0===e.onChange?n:e.onChange,m=(0,D.WA)({value:void 0===e.value?t:e.value,onChange:g,isFormatType:p}),[v,b]=(0,I.useInternalValue)(void 0===e.value?t:e.value),f=void 0===e.onChange?n:e.onChange,k=e=>{b(e),f(e)},y=d?c.TextareaControl:c.TextControl;return(0,o.createElement)(E.ZP,(0,a.Z)({className:e.className},r),(0,o.createElement)(D.ZP,(0,a.Z)({enable:i,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator},m),(0,o.createElement)(y,(0,a.Z)({},h,{value:v,onChange:k,className:s()(l.className,"ugb-advanced-text-control"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}))),(0,o.createElement)(x.J,{allowReset:r.allowReset&&!e.isDynamic,value:v,default:e.default,onChange:k,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator}))}),m.isEqual);F.defaultProps={className:"",isMultiline:!1,allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,isDynamic:!1,isFormatType:!0,value:void 0,onChange:void 0,changeDynamicContent:void 0,hasPanelModifiedIndicator:!0};const $=F,U=e=>Array.isArray(e)?e.map((e=>{const[t,n]=e;var o;return[t,`"${o=n,(0,m.escape)(unescape(o))}"`].join("=")})).join(" "):"",W=e=>{const t=(0,o.useRef)(),[n,a]=(0,o.useState)(!1),[l,r]=(0,o.useState)(U(e.value));return(0,o.createElement)($,{ref:t,"data-testid":"custom-attributes",className:"ugb-custom-attributes-control",label:(0,h.__)("Custom Attributes",g.i18n),value:l,onBlur:()=>{Array.isArray(e.value)&&e.value.length>0&&r(U(e.value))},onChange:t=>{var n;r(t);const l=document.createElement("div");l.innerHTML=`<div ${t} />`;const i=(null===(n=l.children[0])||void 0===n?void 0:n.attributes)||[],s=[];let c=!1;""===l.innerHTML&&""!==t.trim()&&(c=!0);for(let t=0;t<i.length;t++)if(!e.invalidHtmlAttributes.includes(i[t].name))try{const e=document.createElement("div");(0,L.createRoot)(e).render((0,o.createElement)("div",{[i[t].name]:i[t].value})),(0,o.unmountComponentAtNode)(e),document.createElement("div").setAttribute(i[t].name,i[t].value),s.push([i[t].name,escape(i[t].value)])}catch{c=!0}a(c),e.onChange(s)},help:(0,o.createElement)(o.Fragment,null,(0,h.__)("You can type in custom HTML attributes for this block in the field above.",g.i18n)," ",(0,h.__)("Example:",g.i18n),(0,o.createElement)("br",null),(0,o.createElement)("code",null,'data-id="my-title"'),(0,o.createElement)("br",null),(0,o.createElement)(c.ExternalLink,{href:"https://docs.wpstackable.com/article/461-how-to-use-custom-attributes?utm_source=inspector&utm_campaign=learnmore&utm_medium=gutenberg",target:"_docs"},(0,h.__)("Learn more about Custom Attributes",g.i18n)),n&&(0,o.createElement)("span",{className:"ugb-custom-attributes-control__error"},(0,h.__)("There is an error in your custom attribute",g.i18n)))})};W.defaultProps={label:"",value:[],invalidHtmlAttributes:[],onChange:()=>{}};const V=W,G=[{value:"",label:(0,h.__)("None",g.i18n)},{value:"normal",label:(0,h.__)("Normal",g.i18n)},{value:"multiply",label:(0,h.__)("Multiply",g.i18n)},{value:"screen",label:(0,h.__)("Screen",g.i18n)},{value:"overlay",label:(0,h.__)("Overlay",g.i18n)},{value:"darken",label:(0,h.__)("Darken",g.i18n)},{value:"lighten",label:(0,h.__)("Lighten",g.i18n)},{value:"color-dodge",label:(0,h.__)("Color Dodge",g.i18n)},{value:"color-burn",label:(0,h.__)("Color Burn",g.i18n)},{value:"hard-light",label:(0,h.__)("Hard Light",g.i18n)},{value:"soft-light",label:(0,h.__)("Soft Light",g.i18n)},{value:"difference",label:(0,h.__)("Difference",g.i18n)},{value:"exclusion",label:(0,h.__)("Exclusion",g.i18n)},{value:"hue",label:(0,h.__)("Hue",g.i18n)},{value:"saturation",label:(0,h.__)("Saturation",g.i18n)},{value:"color",label:(0,h.__)("Color",g.i18n)},{value:"luminosity",label:(0,h.__)("Luminosity",g.i18n)},{value:"initial",label:(0,h.__)("Initial",g.i18n)},{value:"inherit",label:(0,h.__)("Inherit",g.i18n)},{value:"unset",label:(0,h.__)("Unset",g.i18n)}],j=e=>(0,o.createElement)(ue,(0,a.Z)({},e,{className:e.className,options:G}));j.defaultProps={className:"",label:(0,h.__)("Mix Blend Mode",g.i18n),help:""};const Z=j,q=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 512 376",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M0 0v376h512V0H0zm480 344H32V32h448v312z"}),(0,o.createElement)("circle",{cx:409.1,cy:102.9,r:40.9}),(0,o.createElement)("path",{d:"M480 344H32l86.3-164.2 21.7 11.3 49-77.3 100 113.1 8.9-9.3 17.1 22.3 26-46.4 52.9 71.2 15.1-15.9z"}))},Y=e=>{const t=e.imageURL&&e.imageURL.match(/(mp4|webm|ogg)$/i)?"video":"image",n=()=>{e.onRemove?e.onRemove():e.onChange({url:"",id:"",width:"",height:""})};return(0,o.createElement)("div",{className:"ugb-image-control"},(0,o.createElement)(c.BaseControl,{help:e.help,__nextHasNoMarginBottom:!0},(0,o.createElement)(No,{label:e.label,screens:e.screens}),(0,o.createElement)(d.MediaUpload,{onSelect:e.onChange,allowedTypes:e.allowedTypes,value:e.imageID,render:a=>(0,o.createElement)(o.Fragment,null,e.imageURL&&(0,o.createElement)("div",{className:"ugb-image-preview-wrapper"},(0,o.createElement)("button",{className:"ugb-image-preview-remove",onClick:n},(0,o.createElement)(c.Dashicon,{icon:"no"})),"video"===t&&(0,o.createElement)("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:e.imageURL,onClick:a.open,onKeyDown:e=>{13===e.keyCode&&a.open()}}),"image"===t&&(0,o.createElement)("img",{className:"ugb-image-preview",draggable:"false",src:e.imageURL,onClick:a.open,onKeyDown:e=>{13===e.keyCode&&a.open()},alt:(0,h.__)("preview",g.i18n)})),!e.imageURL&&(0,o.createElement)("div",{className:"ugb-placeholder",onClick:a.open,onKeyDown:e=>{13===e.keyCode&&a.open()},role:"button",tabIndex:0},(0,o.createElement)(q,null)))})))};Y.defaultProps={label:"",imageID:"",imageURL:"",onChange:e=>{let{url:t,id:n,width:o,height:a}=e},onRemove:()=>{},allowedTypes:["image"],help:"",screens:["desktop"]};const K=Y,X=e=>{const[t,n]=(0,I.useInternalValue)(e.value);return(0,o.createElement)(c.TextareaControl,(0,a.Z)({},e,{value:t,onChange:t=>{n(t),e.onChange(t)},help:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,h.__)("Describe the purpose of the image",g.i18n)),(0,h.__)("Leave empty if the image is purely decorative.",g.i18n)),__nextHasNoMarginBottom:!0}))};X.defaultProps={label:(0,h.__)("Alt Text (Alternative Text)",g.i18n)};const J=X,Q=e=>{const{className:t,hasDefault:n,...l}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Xn,(0,a.Z)({},l,{className:s()(t,["ugb-image-shape-control"]),options:[...n?[{label:(0,h.__)("Default",g.i18n),value:"",image:"dist/images/components-image-shape-control-default.5e465f6.png"}]:[],{label:(0,h.__)("Square",g.i18n),value:"square",image:"dist/images/components-image-shape-control-square.d8d54ee.png"},{label:(0,h.__)("Circle",g.i18n),value:"circle",image:"dist/images/components-image-shape-control-circle.ddaef4e.png"},{label:(0,h.sprintf)((0,h.__)("Blob %s",g.i18n),1),value:"blob1",image:"dist/images/components-image-shape-control-blob1.3c54e8e.png"},...(0,B.applyFilters)("stackable.image.control.shapes",[])]})),g.showProNotice&&(0,o.createElement)(To,{type:"image"}))};Q.defaultProps={className:"",label:(0,h.__)("Shape",g.i18n),selected:"",hasDefault:!0};const ee=Q;var te=n(3749);const ne=e=>{let{imageSizes:t,value:n,className:l,defaultValue:r,...i}=e;const s=(e=>(0,m.map)(e,(e=>{let{name:t,slug:n}=e;return{value:n,label:t}})))(t);return(0,m.isEmpty)(s)?null:(0,o.createElement)(ue,(0,a.Z)({},i,{value:n||"large",options:s,className:l,defaultValue:r||"large",default:r||"large"}))};ne.defaultProps={className:"",label:(0,h.__)("Image Size",g.i18n),value:"large",defaultValue:"",imageSizes:[],onChange:()=>{}};const oe=(0,te.compose)([(0,N.withSelect)((e=>({imageSizes:e("core/block-editor").getSettings().imageSizes})))])(ne),ae=!!c.__experimentalNumberControl,le=(0,o.memo)((e=>{const{allowReset:t,withInputField:n,isShiftStepEnabled:l,placeholderRender:r,defaultValue:i,children:d,...u}=e,p=()=>""===e.value||isNaN(e.value)&&"auto"!==e.value?"":e.value,[v,b]=(0,o.useState)(""===e.value||isNaN(e.value)&&"auto"!==e.value?"":e.value),[k,y]=(0,o.useState)(p());p()!==k&&(y(p()),""===e.value||isNaN(e.value)&&"auto"!==e.value?b(""):b(e.value));const _=t=>{if(b(t),"string"!=typeof t||"auto"!==t.toLowerCase()){if(!isNaN(t)){const n=parseFloat(t);if(!isNaN(n)){const t=(0,m.clamp)(n,e.min,e.max);return b(t),void e.onChange(t)}}e.onChange(e.resetFallbackValue)}else e.onChange(t)},C=s()(["ugb-range-control",e.className],{"ugb-range-control--blank":""===v}),w=""===v,S=null!==e.placeholder?e.placeholder:e.sliderMin||e.min,E=null!==e.initialPosition?e.initialPosition:S,x=((e,t,n)=>{const o=(e-t)/(n-t)*100;return`${(0,m.clamp)(o,0,100)}%`})(w?E:v,null!==e.sliderMin?e.sliderMin:e.min||0,null!==e.sliderMax?e.sliderMax:e.max||100);let T=e.placeholder;return"function"!=typeof r||v?null===e.placeholder&&(T=E):T=r(v),(0,o.createElement)("div",{className:C,style:{"--ugb-advanced-range-control--width":x}},(0,o.createElement)(c.RangeControl,(0,a.Z)({},u,{value:v,initialPosition:"",onChange:_,withInputField:!1,allowReset:!1,min:null!==e.sliderMin?e.sliderMin:e.min===-1/0?0:e.min,max:null!==e.sliderMax?e.sliderMax:e.max===1/0?100:e.max,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),n&&ae&&(0,o.createElement)(c.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:l,max:e.max,min:e.min,onChange:_,onBlur:()=>{if("string"!=typeof v||"auto"!==v.toLowerCase()){if(!isNaN(v)){const t=parseFloat(v);if(!isNaN(t))return void b((0,m.clamp)(t,e.min,e.max))}b(e.resetFallbackValue)}else b(v)},shiftStep:e.shiftStep,step:e.step,value:v,placeholder:T,type:"text",__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),d,t&&(0,o.createElement)(f.Z,{className:"components-range-control__reset",disabled:e.disabled,isSecondary:!0,isSmall:!0,onClick:()=>{b(e.resetFallbackValue),e.onChange(e.resetFallbackValue)}},(0,h.__)("Reset",g.i18n)))}));le.defaultProps={className:"",allowReset:!1,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,sliderMax:null,sliderMin:null,shiftStep:10,step:1,resetFallbackValue:"",placeholder:null,placeholderRender:null,initialPosition:null,onChange:()=>{}};const re=le,ie=(0,y.jsxs)(k.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,y.jsx)(k.y$,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,y.jsx)(k.y$,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),se=e=>{var t,n,l;const[r,i]=(0,T.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[s,d]=(0,E.ED)(e),u=(0,I.useDeviceType)(),[p]=(0,I.useBlockHoverState)(),h=!(null===(t=e.units)||void 0===t||!t.length),m=(0,I.useBlockSetAttributesContext)(),v=(0,I.useAttributeName)(`${e.attribute}Unit`,e.responsive,e.hover),{unitAttribute:b,_valueDesktop:f,_valueTablet:k,_unitDesktop:y,_unitTablet:_}=(0,I.useBlockAttributesContext)((t=>({unitAttribute:t[v],_valueDesktop:t[`${e.attribute}`],_valueTablet:t[`${e.attribute}Tablet`],_unitDesktop:t[`${e.attribute}Unit`],_unitTablet:t[`${e.attribute}UnitTablet`]}))),C="string"==typeof e.unit?e.unit||(null===(n=e.units)||void 0===n?void 0:n[0])||"px":b||"",w=!(null!==(l=null===g.settings||void 0===g.settings?void 0:g.settings.stackable_use_size_presets_by_default)&&void 0!==l&&!l);if(h){const t=e.units.indexOf(C)<0?0:e.units.indexOf(C);Array.isArray(e.min)&&(s.min=e.min[t]),Array.isArray(e.max)&&(s.max=e.max[t]),Array.isArray(e.sliderMin)&&(s.sliderMin=e.sliderMin[t]),Array.isArray(e.sliderMax)&&(s.sliderMax=e.sliderMax[t]),Array.isArray(e.step)&&(s.step=e.step[t]),s.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,0!==t&&(s.initialPosition="",s.placeholder="")}"Mobile"===u&&k&&""!==k?(s.initialPosition=b===_?k:"",s.placeholder=b===_?k:""):"Mobile"!==u&&"Tablet"!==u||!f||""===f||(s.initialPosition=b===y?f:"",s.placeholder=b===y?f:""),e.forcePlaceholder||"normal"===p||(s.initialPosition="",s.placeholder="");let S=e.placeholderRender;("normal"!==p||h&&C!==e.units[0])&&(S=null);let B=void 0===e.value?r:e.value;const M=(0,o.useRef)(!1);let A=!!e.marks&&w;if(e.marks&&B){const t=(0,L.getCSSVarName)(B),n=e.marks.find((e=>(0,L.getCSSVarName)(e.value)===t));A=!!n,n&&(B=n.value)}const[R,P]=(0,o.useState)(A);(0,o.useEffect)((()=>{P(A)}),[u]);const O=t=>{const n=void 0===e.onChange?i:e.onChange;let o=e.isDynamic||e.marks?t.toString():t;if(""===o){var a;const t=null===(a=e.onOverrideReset)||void 0===a?void 0:a.call(e);void 0!==t&&(o=t)}n(o)},H=(0,D.WA)({value:B,onChange:O});e.marks&&R?(s.min=0,s.max=e.marks.length-1,s.sliderMax=e.marks.length-1,s.step=1,s.marks=e.marks.reduce(((e,t,n)=>[{value:n,name:void 0},...e]),[]),s.renderTooltipContent=t=>{var n,o;return(null===(n=e.marks[t])||void 0===n?void 0:n.name)||(null===(o=e.marks[t])||void 0===o?void 0:o.slug)||""},s.withInputField=!1,d.units=!1,s.initialPosition="",s.placeholder=""):s.marks=void 0,e.marks&&(d.className=d.className||"",d.className+="stk-range-control--with-marks",d.className+=R?" stk-range-control--mark-mode":""),e.isCustomPreset&&(d.className=d.className||"",d.className+="stk-preset-controls");let z=s.isDynamic||e.marks?parseFloat(B):B,F=O;if(R)z=e.marks.findIndex((e=>{let t,n;return"string"==typeof B&&B.startsWith("var")?[n,t]=(0,L.extractNumbersAndUnits)(e.value)[0]:[n,t]=(0,L.extractNumbersAndUnits)(e.size)[0],n===B&&(""===t||t===C)})),z=-1===z?"":z,F=function(t){var n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(""===t)return O(t);const a=(null===(n=e.marks[t])||void 0===n?void 0:n[o])||"0";let[l,r]=(0,L.extractNumbersAndUnits)(a)[0];const i=(0,L.convertToPxIfUnsupported)(e.units,r,l);l=i.value,r=i.unit,r&&((0,N.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),m({[v]:r}),e.onChangeUnit&&e.onChangeUnit(r)),O(l),M.current=!1};else if("string"==typeof B&&B.startsWith("var")){var $;const t=null===($=e.marks.find((e=>B===e.value)))||void 0===$?void 0:$.size;let[n,o]=(0,L.extractNumbersAndUnits)(t)[0];const a=(0,L.convertToPxIfUnsupported)(e.units,o,n);n=a.value,o=a.unit,z=parseFloat(n),o&&!M.current&&((0,N.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),m({[v]:o}),e.onChangeUnit&&e.onChangeUnit(o),M.current=!0),d.onChangeUnit=(t,o)=>{(0,N.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),m({[o]:t}),e.onChangeUnit&&e.onChangeUnit(t),O(n)}}return(0,o.createElement)(E.ZP,d,(0,o.createElement)(D.ZP,(0,a.Z)({enable:s.isDynamic,controlHasTooltip:!0},H),(0,o.createElement)(re,(0,a.Z)({},s,{value:z,onChange:F,allowReset:!1,placeholderRender:S,__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(c.Button,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{P(!R)},icon:ie}))),(0,o.createElement)(x.J,{allowReset:e.allowReset,showReset:e.showReset,value:B,default:e.default,onChange:e.onReset?e.onReset:O}))};se.defaultProps={allowReset:!0,onReset:void 0,showReset:void 0,isDynamic:!1,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0,onOverrideReset:void 0,forcePlaceholder:!1,marks:void 0,allowCustom:!0,isCustomPreset:!1,isMarkModeDefault:!0};const ce=(0,o.memo)(se,m.isEqual),de=(0,o.memo)((e=>{const[t,n]=(0,T.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=(0,E.ED)(e),{defaultValue:i,...d}=l;return(0,o.createElement)(E.ZP,(0,a.Z)({},r,{className:s()("ugb-advanced-select-control",e.className)}),(0,o.createElement)(c.SelectControl,(0,a.Z)({},d,{role:"listbox",value:void 0===e.value?t:e.value,onChange:void 0===e.onChange?n:e.onChange,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:void 0===e.value?t:e.value,default:e.default,onChange:void 0===e.onChange?n:e.onChange}))}),m.isEqual);de.defaultProps={className:"",url:"",allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const ue=de;var pe=n(8808),he=n.n(pe);const ge=(e,t)=>{const n=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!n)return t;const o=new RegExp(n,"i");return me(t)?t.map((e=>{let{title:t,options:n}=e;return{title:t,options:n.filter((e=>o.test(e.label)||o.test(e.value)))}})).filter((e=>e.options.length>0)):t.filter((e=>"string"==typeof e?o.test(e):o.test(e.label)||o.test(e.value)))},me=e=>!(!e.length||"object"!=typeof e[0].options),ve=(e,t)=>{if(!t.length)return e;if(!me(t)){const n=t.filter((t=>("string"==typeof t?t:t.value)===e));return n.length?n[0].label:e}const n=t.map((t=>{let{title:n,options:o}=t;return{title:n,options:o.filter((t=>t.value===e))}})).filter((e=>e.options.length>0));return n.length?n[0].options[0].label:e},be=e=>e.value,fe=e=>(0,o.createElement)("div",{className:"ugb--autosuggest-group"},e.title),ke=e=>e.options,ye=()=>!0;class _e extends o.Component{constructor(){super(...arguments),this.state={value:"",label:"",suggestions:[],isEmpty:!1,isShowingSuggestions:!1,containerRect:null},this.onSuggestionsFetchRequested=this.onSuggestionsFetchRequested.bind(this),this.onSuggestionsClearRequested=this.onSuggestionsClearRequested.bind(this),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.autosuggestDiv=(0,o.createRef)(),this.suggestionContainerLocationUpdater=this.suggestionContainerLocationUpdater.bind(this)}onChange(e,t){let{newValue:n}=t;this.props.onChange(n),this.setState({value:n,label:ve(n,this.props.options)})}onFocus(){this.props.highlightValueOnFocus&&setTimeout((()=>{const e=this.autosuggestDiv.current.querySelector(`[data-value="${this.state.value}"]`);e&&e.scrollIntoView()}),0)}onSuggestionsFetchRequested(e){let{value:t,reason:n}=e;if(this.props.disableAutoIndex)return void this.setState({suggestions:ge("",this.props.options)});if("input-focused"===n||"suggestion-selected"===n)return void this.setState({suggestions:this.props.options,isEmpty:!1});const o=ge(t,this.props.options);this.setState({suggestions:o,isEmpty:""!==t.trim()&&0===o.length})}suggestionContainerLocationUpdater(){var e;null!==(e=this.autosuggestDiv)&&void 0!==e&&e.current&&this.state.isShowingSuggestions&&(this.setState({containerRect:this.autosuggestDiv.current.getBoundingClientRect()}),requestAnimationFrame(this.suggestionContainerLocationUpdater))}componentDidMount(){this.props.options.length&&this.props.value&&this.setState({value:this.props.value,label:this.props.value?ve(this.props.value,this.props.options):this.props.value,suggestions:ge(this.props.disableAutoIndex?"":this.props.value,this.props.options)})}componentWillReceiveProps(e){this.setState({value:e.value,label:e.value?ve(e.value,e.options):e.value,suggestions:ge(this.props.disableAutoIndex?"":e.value,e.options)})}onSuggestionsClearRequested(){this.setState({suggestions:[]})}render(){var e,t,n,l;const{label:r,suggestions:i}=this.state,c={placeholder:this.props.placeholder,value:r,onChange:this.onChange,onFocus:this.onFocus,type:"search",...this.props.inputProps};return(0,o.createElement)(ll,{help:this.props.help,className:s()("ugb-advanced-autosuggest-control",this.props.className),label:this.props.label,screens:this.props.screens,value:this.props.value,defaultValue:null!==(e=null===(t=this.props)||void 0===t?void 0:t.defaultValue)&&void 0!==e?e:"",onChange:e=>{var t;(""===e||null!==(t=this.props)&&void 0!==t&&t.defaultValue)&&this.onChange(null,{newValue:e})},allowReset:this.props.allowReset,helpTooltip:this.props.helpTooltip},(0,o.createElement)("div",{className:"ugb-advanced-autosuggest-control__select",ref:this.autosuggestDiv},this.state.isShowingSuggestions&&(0,o.createElement)("style",null,`:root {\n\t\t\t\t\t\t\t\t--container-left: ${null===(n=this.state.containerRect)||void 0===n?void 0:n.left}px;\n\t\t\t\t\t\t\t\t--container-bottom: ${null===(l=this.state.containerRect)||void 0===l?void 0:l.bottom}px;\n\t\t\t\t\t\t\t}`),(0,o.createElement)(he(),{multiSection:me(this.props.options),suggestions:i,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.props.onSuggestionSelected,getSuggestionValue:this.props.getSuggestionValue||be,renderSuggestion:e=>(0,o.createElement)("div",{className:"ugb-autosuggest-option","data-value":e.value,id:`ugb-autosuggest-option--${e.id||(0,m.kebabCase)(e.value)}`},this.props.renderOption?this.props.renderOption(e):e.label),renderSectionTitle:fe,getSectionSuggestions:ke,shouldRenderSuggestions:ye,inputProps:c,renderInputComponent:this.props.renderInputComponent?this.props.renderInputComponent:e=>(0,o.createElement)("input",e),renderSuggestionsContainer:e=>{let{containerProps:t,children:n}=e;const l=t.className.indexOf("react-autosuggest__suggestions-container--open")>=0;if(l&&!this.state.isShowingSuggestions?(this.setState({isShowingSuggestions:!0}),requestAnimationFrame(this.suggestionContainerLocationUpdater)):!l&&this.state.isShowingSuggestions&&this.setState({isShowingSuggestions:!1}),l&&this.state.containerRect){const e=this.autosuggestDiv.current.getBoundingClientRect(),l={left:`calc(var(--container-left, 0px) + ${window.scrollX}px)`,top:`calc(var(--container-bottom, 0px) + ${window.scrollY}px)`,width:e.width},r=(0,o.createElement)("div",(0,a.Z)({},t,{style:l,className:s()(t.className,"ugb-advanced-autosuggest__suggestions-container")}),n);return(0,o.createPortal)(r,document.body)}return null}}),this.state.isEmpty&&(0,o.createElement)("div",{className:"ugb--autosuggest-empty"},this.props.noMatchesLabel),this.props.children))}}_e.defaultProps={onChange:()=>{},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:(0,h.__)("No matches found",g.i18n),renderOption:null,highlightValueOnFocus:!1,allowReset:!0,placeholder:"",getSuggestionValue:null,disableAutoIndex:!1,onSuggestionSelected:()=>{},renderInputComponent:null,inputProps:{},helpTooltip:{}};const Ce=_e,we=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M19 18H1v1h18v-1zM14 11h-3v6h3v-6zM9 9H6v8h3V9z"}))},Se=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M10.5 1h-1v18h1V1zM8 5H5v10h3V5zM15 5h-3v10h3V5z"}))},Ee=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M2 1H1v18h1V1zM6 5H3v10h3V5zM10 5H7v10h3V5z"}))},xe=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M19 1h-1v18h1V1zM13 5h-3v10h3V5zM17 5h-3v10h3V5z"}))},Te=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M20 1h-1v18h1V1zM1 1H0v18h1V1zM5 5H2v10h3V5zM18 5h-3v10h3V5z"}))},Be=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M20 1h-1v18h1V1zM1 1H0v18h1V1zM7 5H4v10h3V5zM16 5h-3v10h3V5z"}))},Me=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M20 1h-1v18h1V1zM1 1H0v18h1V1zM8 5H5v10h3V5zM15 5h-3v10h3V5z"}))},Ae=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M19 1H1v1h18V1zM14 3h-3v6h3V3zM9 3H6v8h3V3z"}))},Ne=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M19 9.5H1v1h18v-1z"}),(0,o.createElement)("path",{d:"M14 7h-3v6h3V7zM9 6H6v8h3V6z"}))},Ie={"flex-horizontal":[{value:"flex-start",title:(0,h.__)("Start",g.i18n),icon:(0,o.createElement)(Ee,{width:"24",height:"24"})},{value:"center",title:(0,h.__)("Center",g.i18n),icon:(0,o.createElement)(Se,{width:"24",height:"24"})},{value:"flex-end",title:(0,h.__)("End",g.i18n),icon:(0,o.createElement)(xe,{width:"24",height:"24"})},{value:"space-between",title:(0,h.__)("Space Between",g.i18n),icon:(0,o.createElement)(Te,{width:"24",height:"24"})},{value:"space-around",title:(0,h.__)("Space Around",g.i18n),icon:(0,o.createElement)(Be,{width:"24",height:"24"})},{value:"space-evenly",title:(0,h.__)("Space Evenly",g.i18n),icon:(0,o.createElement)(Me,{width:"24",height:"24"})}],"flex-horizontal-alt":[{value:"flex-start",title:(0,h.__)("Start",g.i18n),icon:(0,o.createElement)(Ee,{width:"24",height:"24"})},{value:"center",title:(0,h.__)("Center",g.i18n),icon:(0,o.createElement)(Se,{width:"24",height:"24"})},{value:"flex-end",title:(0,h.__)("End",g.i18n),icon:(0,o.createElement)(xe,{width:"24",height:"24"})},{value:"space-between",title:(0,h.__)("Space Between",g.i18n),icon:(0,o.createElement)(Te,{width:"24",height:"24"})}],"flex-vertical":[{value:"flex-start",title:(0,h.__)("Start",g.i18n),icon:(0,o.createElement)(Ae,{width:"24",height:"24"})},{value:"center",title:(0,h.__)("Center",g.i18n),icon:(0,o.createElement)(Ne,{width:"24",height:"24"})},{value:"flex-end",title:(0,h.__)("End",g.i18n),icon:(0,o.createElement)(we,{width:"24",height:"24"})},{value:"stretch",title:(0,h.__)("Stretch",g.i18n),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M19 18H1v1h18v-1zM19 1H1v1h18V1zM14 3h-3v14h3V3zM9 3H6v14h3V3z"}))}),{width:"24",height:"24"})},{value:"baseline",title:(0,h.__)("Baseline",g.i18n),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M1 14.1h18v1H1zM11.4 11.1h-3l-.6 2H6.5l2.6-8.3h1.7l2.6 8.3H12l-.6-2zm-2.6-1h2.4L10 5.9l-1.2 4.2z"}))}),{width:"24",height:"24"})}],"flex-justify-vertical":[{value:"flex-start",title:(0,h.__)("Start",g.i18n),icon:(0,o.createElement)(Ae,{width:"24",height:"24"})},{value:"center",title:(0,h.__)("Center",g.i18n),icon:(0,o.createElement)(Ne,{width:"24",height:"24"})},{value:"flex-end",title:(0,h.__)("End",g.i18n),icon:(0,o.createElement)(we,{width:"24",height:"24"})},{value:"space-between",title:(0,h.__)("Space Between",g.i18n),icon:(0,o.createElement)(Te,{style:{transform:"rotate(90deg)"},width:"24",height:"24"})},{value:"space-around",title:(0,h.__)("Space Around",g.i18n),icon:(0,o.createElement)(Be,{style:{transform:"rotate(90deg)"},width:"24",height:"24"})},{value:"space-evenly",title:(0,h.__)("Space Evenly",g.i18n),icon:(0,o.createElement)(Me,{style:{transform:"rotate(90deg)"},width:"24",height:"24"})}],horizontal:[{value:"flex-start",title:(0,h.__)("Left",g.i18n),icon:(0,o.createElement)(Ee,null)},{value:"center",title:(0,h.__)("Center",g.i18n),icon:(0,o.createElement)(Se,{width:"24",height:"24"})},{value:"flex-end",title:(0,h.__)("Right",g.i18n),icon:(0,o.createElement)(xe,{width:"24",height:"24"})}],vertical:[{value:"flex-start",title:(0,h.__)("Top",g.i18n),icon:(0,o.createElement)(Ae,{width:"24",height:"24"})},{value:"center",title:(0,h.__)("Center",g.i18n),icon:(0,o.createElement)(Ne,{width:"24",height:"24"})},{value:"flex-end",title:(0,h.__)("Bottom",g.i18n),icon:(0,o.createElement)(we,{width:"24",height:"24"})}]},Re=e=>{const[t,n]=(0,T.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=(0,E.ED)(e),{className:i="",controls:d,fullwidth:u,multiline:p,isToggleOnly:h,omit:g}=l,v=(0,B.applyFilters)("stackable.toolbar-control.controls",Ie),b="string"==typeof d?v[d]:d,k=s()({"ugb-toolbar--full-width":u,"ugb-toolbar--multiline":p,"ugb-toolbar--small":e.isSmall}),y=void 0===e.value?t:e.value,_=void 0===e.onChange?n:e.onChange,C=b.every((t=>!(y?y===t.value:e.placeholder===t.value)));return(0,o.createElement)(E.ZP,(0,a.Z)({},r,{className:s()("ugb-advanced-toolbar-control",i,r.className)}),(0,o.createElement)(c.ButtonGroup,{children:b.map(((t,n)=>{if(g.includes(t.value))return null;const l=e.default||"",r=y?y===t.value:e.placeholder===t.value,i=r?"0":"-1",s={...(0,m.omit)(t,"controls","show"),onClick:()=>{h&&t.value===y||_(t.value!==y?t.value:l)},children:t.icon?null:t.custom||(0,o.createElement)("span",{className:"ugb-advanced-toolbar-control__text-button"},t.title)};return(0,o.createElement)(f.Z,(0,a.Z)({key:t.value},s,{label:t.title||e.label,tabIndex:C&&0===n?"0":i,disabled:"all"===e.disabled||e.disabled.includes(t.value),isPrimary:r,isSmall:e.isSmall,onKeyDown:e=>{const t=e.target;if(t)if(39===e.keyCode){const e=t.nextElementSibling||t.parentElement.firstElementChild;e.focus(),e.click()}else if(37===e.keyCode){const e=t.previousElementSibling||t.parentElement.lastElementChild;e.focus(),e.click()}}}))})),className:k}),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:y,default:e.default,onChange:_}))},Pe=[];Re.defaultProps={controls:Pe,multiline:!1,fullwidth:!0,isSmall:!1,isToggleOnly:!1,allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0,placeholder:"",disabled:Pe,omit:Pe};const Oe=(0,o.memo)(Re,m.isEqual),He=e=>{const t=e.placeholder;return(0,o.createElement)(ce,(0,a.Z)({},e,{placeholder:t,onChangeUnit:t=>{""===e.value||isNaN(Number(e.value))||("em"===t||"rem"===t?e.onChange(String(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?1:Math.round(parseFloat(e)/parseFloat(t)*10)/10}(e.value))):"px"===t&&e.onChange(String(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return""===e?21:Math.round(parseFloat(e)*t)}(e.value)))),e.onChangeUnit(t)}}))};He.defaultProps={label:(0,h.__)("Font Size",g.i18n),value:"",onChange:()=>{},unit:"px",onChangeUnit:()=>{},min:[0,0],max:[150,7],step:[1,.05],units:["px","em"],placeholder:""};const ze=He,Le=e=>{const{loadingThemeFont:t,themeFonts:l,themeFontOptions:r}=(0,N.select)("stackable/theme-fonts").getThemeFonts(),[i,s]=(0,o.useState)([]);(0,o.useEffect)((()=>{(async()=>{const{default:e}=await n.e(732).then(n.t.bind(n,1513,19));return e.map((e=>({label:e.family,value:e.family})))})().then((e=>{s(e)}))}),[]);const c=(0,o.useMemo)((()=>{const e=[{id:"system-fonts",title:(0,h.__)("System Fonts",g.i18n),options:Object.keys(L.SYSTEM_FONT_STACKS).map((e=>({label:L.SYSTEM_FONT_STACKS[e].label,value:e})))},{id:"modern-font-stacks",title:(0,h.__)("Modern Font Stacks",g.i18n),options:Object.keys(L.MODERN_FONT_STACKS).map((e=>({label:L.MODERN_FONT_STACKS[e].label,value:e})))},{id:"google-fonts",title:(0,h.__)("Google Fonts",g.i18n),options:i}];return l.length&&e.unshift({id:"theme-fonts",title:(0,h.__)("Theme Fonts",g.i18n),options:r}),(0,B.applyFilters)("stackable.font-family-control.options",e)}),[t,i]);return(0,o.createElement)(Ce,(0,a.Z)({options:c,highlightValueOnFocus:!0},e,{onChange:t=>{l.includes(t)||i.some((e=>e.value===t&&((0,L.loadGoogleFont)(t),!0))),e.onChange(t)}}))};Le.defaultProps={onChange:()=>{},label:(0,h.__)("Font Family",g.i18n),value:""};const De=Le;function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function $e(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,l,r,i=[],s=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=l.call(n)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return i}}(e,t)||$e(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Ve(e){var t=function(e,t){if("object"!=We(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=We(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==We(t)?t:t+""}function Ge(e,t,n){return(t=Ve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach((function(t){Ge(e,t,n[t])}))}return e}function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ve(o.key),o)}}function Ye(e,t,n){return t&&qe(e.prototype,t),n&&qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e,t){if(t&&("object"==We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ke(e)}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Je(e)}function Qe(e,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qe(e,t)}function et(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qe(e,t)}var tt=n(1143),nt=n.n(tt);var ot=n(5697),at=n.n(ot),lt=function(){function e(){Ze(this,e),Ge(this,"refs",{})}return Ye(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(rt)}}]),e}();function rt(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function it(e,t){return Object.keys(e).reduce((function(n,o){return-1===t.indexOf(o)&&(n[o]=e[o]),n}),{})}var st={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},ct=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function dt(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function ut(e,t){e.style["".concat(ct,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function pt(e,t){e.style["".concat(ct,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function ht(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function gt(e,t,n){return Math.max(e,Math.min(n,t))}function mt(e){return"px"===e.substr(-2)?parseFloat(e):0}function vt(e){var t=window.getComputedStyle(e);return{bottom:mt(t.marginBottom),left:mt(t.marginLeft),right:mt(t.marginRight),top:mt(t.marginTop)}}function bt(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function ft(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function kt(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function yt(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function _t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var o={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?o:_t(e.parentNode,t,o)}}function Ct(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function wt(e){var t=e.lockOffset,n=e.width,o=e.height,a=t,l=t,r="px";if("string"==typeof t){var i=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);nt()(null!==i,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=parseFloat(t),l=parseFloat(t),r=i[1]}return nt()(isFinite(a)&&isFinite(l),"lockOffset value should be a finite. Given %s",t),"%"===r&&(a=a*n/100,l=l*o/100),{x:a,y:l}}function St(e){var t=e.height,n=e.width,o=e.lockOffset,a=Array.isArray(o)?o:[o,o];nt()(2===a.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",o);var l=Ue(a,2),r=l[0],i=l[1];return[wt({height:t,lockOffset:r,width:n}),wt({height:t,lockOffset:i,width:n})]}function Et(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:Et(e.parentNode):null}function xt(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:mt(t.gridColumnGap),y:mt(t.gridRowGap)}:{x:0,y:0}}var Tt="BUTTON",Bt="INPUT",Mt="OPTION",At="TEXTAREA",Nt="SELECT";function It(e){var t,n="input, textarea, select, canvas, [contenteditable]",o=e.querySelectorAll(n),a=e.cloneNode(!0);return(t=a.querySelectorAll(n),function(e){if(Array.isArray(e))return Fe(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||$e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(e,t){"file"!==e.type&&(e.value=o[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),"CANVAS"===e.tagName&&o[t].width>0&&o[t].height>0&&e.getContext("2d").drawImage(o[t],0,0)})),a}function Rt(e){return null!=e.sortableHandle}var Pt=function(){function e(t,n){Ze(this,e),this.container=t,this.onScrollCallback=n}return Ye(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,o=e.minTranslate,a=e.maxTranslate,l=e.width,r=e.height,i={x:0,y:0},s={x:1,y:1},c=this.container,d=c.scrollTop,u=c.scrollLeft,p=c.scrollHeight,h=c.scrollWidth,g=0===d,m=p-d-c.clientHeight==0,v=0===u,b=h-u-c.clientWidth==0;n.y>=a.y-r/2&&!m?(i.y=1,s.y=10*Math.abs((a.y-r/2-n.y)/r)):n.x>=a.x-l/2&&!b?(i.x=1,s.x=10*Math.abs((a.x-l/2-n.x)/l)):n.y<=o.y+r/2&&!g?(i.y=-1,s.y=10*Math.abs((n.y-r/2-o.y)/r)):n.x<=o.x+l/2&&!v&&(i.x=-1,s.x=10*Math.abs((n.x-l/2-o.x)/l)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===i.x&&0===i.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:s.x*i.x,top:s.y*i.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}(),Ot={axis:at().oneOf(["x","y","xy"]),contentWindow:at().any,disableAutoscroll:at().bool,distance:at().number,getContainer:at().func,getHelperDimensions:at().func,helperClass:at().string,helperContainer:at().oneOfType([at().func,"undefined"==typeof HTMLElement?at().any:at().instanceOf(HTMLElement)]),hideSortableGhost:at().bool,keyboardSortingTransitionDuration:at().number,lockAxis:at().string,lockOffset:at().oneOfType([at().number,at().string,at().arrayOf(at().oneOfType([at().number,at().string]))]),lockToContainerEdges:at().bool,onSortEnd:at().func,onSortMove:at().func,onSortOver:at().func,onSortStart:at().func,pressDelay:at().number,pressThreshold:at().number,keyCodes:at().shape({lift:at().arrayOf(at().number),drop:at().arrayOf(at().number),cancel:at().arrayOf(at().number),up:at().arrayOf(at().number),down:at().arrayOf(at().number)}),shouldCancelStart:at().func,transitionDuration:at().number,updateBeforeSortStart:at().func,useDragHandle:at().bool,useWindowAsScrollContainer:at().bool},Ht={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},zt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Ht,shouldCancelStart:function(e){return-1!==[Bt,At,Nt,Mt,Tt].indexOf(e.target.tagName)||!!ht(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Lt=Object.keys(Ot);function Dt(e){nt()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Ft(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var $t=(0,l.createContext)({manager:{}});function Ut(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;Ze(this,n),Ge(Ke(Ke(t=Xe(this,Je(n).call(this,e)))),"state",{}),Ge(Ke(Ke(t)),"handleStart",(function(e){var n=t.props,o=n.distance,a=n.shouldCancelStart;if(2!==e.button&&!a(e)){t.touched=!0,t.position=kt(e);var l=ht(e.target,(function(e){return null!=e.sortableInfo}));if(l&&l.sortableInfo&&t.nodeIsChild(l)&&!t.state.sorting){var r=t.props.useDragHandle,i=l.sortableInfo,s=i.index,c=i.collection;if(i.disabled)return;if(r&&!ht(e.target,Rt))return;t.manager.active={collection:c,index:s},yt(e)||"A"!==e.target.tagName||e.preventDefault(),o||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),Ge(Ke(Ke(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Ge(Ke(Ke(t)),"handleMove",(function(e){var n=t.props,o=n.distance,a=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var l=kt(e),r={x:t.position.x-l.x,y:t.position.y-l.y},i=Math.abs(r.x)+Math.abs(r.y);t.delta=r,o||a&&!(i>=a)?o&&i>=o&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),Ge(Ke(Ke(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Ge(Ke(Ke(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Ge(Ke(Ke(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),o=function(){if(n){var o=function(){var n=p.sortableInfo.index,o=vt(p),a=xt(t.container),c=t.scrollContainer.getBoundingClientRect(),m=r({index:n,node:p,collection:h});if(t.node=p,t.margin=o,t.gridGap=a,t.width=m.width,t.height=m.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=c,t.index=n,t.newIndex=n,t.axis={x:l.indexOf("x")>=0,y:l.indexOf("y")>=0},t.offsetEdge=_t(p,t.container),t.initialOffset=kt(g?je({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(It(p)),dt(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-o.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-o.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),s&&(t.sortableGhost=p,dt(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var v=u?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,b=v.top,f=v.left,k=v.width,y=b+v.height,_=f+k;t.axis.x&&(t.minTranslate.x=f-t.boundingClientRect.left,t.maxTranslate.x=_-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=b-t.boundingClientRect.top,t.maxTranslate.y=y-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(u?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(u?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(u?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(u?t.contentWindow.innerHeight:c.top+c.height)-t.boundingClientRect.top-t.height/2);i&&i.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?e.target:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(st.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),st.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),d&&d({node:p,index:n,collection:h,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},a=t.props,l=a.axis,r=a.getHelperDimensions,i=a.helperClass,s=a.hideSortableGhost,c=a.updateBeforeSortStart,d=a.onSortStart,u=a.useWindowAsScrollContainer,p=n.node,h=n.collection,g=t.manager.isKeySorting,m=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=Ft((function(){var t=p.sortableInfo.index;return Promise.resolve(c({collection:h,index:t,node:p,isKeySorting:g},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return m&&m.then?m.then(o):o()}}();return Promise.resolve(o&&o.then?o.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),Ge(Ke(Ke(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),Ge(Ke(Ke(t)),"handleSortEnd",(function(e){var n=t.props,o=n.hideSortableGhost,a=n.onSortEnd,l=t.manager,r=l.active.collection,i=l.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(i?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(st.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),st.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),o&&t.sortableGhost&&dt(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,d=s.length;c<d;c++){var u=s[c],p=u.node;u.edgeOffset=null,u.boundingClientRect=null,ut(p,null),pt(p,null),u.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof a&&a({collection:r,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:i,nodes:s},e),t.touched=!1})),Ge(Ke(Ke(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var o=je({},t.translate),a=0,l=0;return t.axis.x&&(o.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),a=t.translate.x-o.x),t.axis.y&&(o.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),l=t.translate.y-o.y),t.translate=o,ut(t.helper,t.translate),t.scrollContainer.scrollLeft+=a,void(t.scrollContainer.scrollTop+=l)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),Ge(Ke(Ke(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),Ge(Ke(Ke(t)),"handleKeyDown",(function(e){var n=e.keyCode,o=t.props,a=o.shouldCancelStart,l=o.keyCodes,r=je({},Ht,void 0===l?{}:l);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||r.lift.includes(n)&&!a(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),r.lift.includes(n)&&!t.manager.active?t.keyLift(e):r.drop.includes(n)&&t.manager.active?t.keyDrop(e):r.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):r.up.includes(n)?t.keyMove(-1):r.down.includes(n)&&t.keyMove(1))})),Ge(Ke(Ke(t)),"keyLift",(function(e){var n=e.target,o=ht(n,(function(e){return null!=e.sortableInfo})).sortableInfo,a=o.index,l=o.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:a,collection:l},t.handlePress(e)})),Ge(Ke(Ke(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),o=n[n.length-1].node.sortableInfo.index,a=t.newIndex+e,l=t.newIndex;if(!(a<0||a>o)){t.prevIndex=l,t.newIndex=a;var r=Ct(t.newIndex,t.prevIndex,t.index),i=n.find((function(e){return e.node.sortableInfo.index===r})),s=i.node,c=t.containerScrollDelta,d=i.boundingClientRect||ft(s,c),u=i.translate||{x:0,y:0},p=d.top+u.y-c.top,h=d.left+u.x-c.left,g=l<a,m=g&&t.axis.x?s.offsetWidth-t.width:0,v=g&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:h+m,pageY:p+v,ignoreTransition:0===e})}})),Ge(Ke(Ke(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),Ge(Ke(Ke(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),Ge(Ke(Ke(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,o=e.target,a=ht(o,(function(e){return null!=e.sortableInfo}));return a&&a.sortableInfo&&!a.sortableInfo.disabled&&(n?Rt(o):o.sortableInfo)}));var o=new lt;return Dt(e),t.manager=o,t.wrappedInstance=(0,l.createRef)(),t.sortableContextValue={manager:o},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return et(n,t),Ye(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var o=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof o?o():o,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Et(e.container)||e.container,e.autoScroller=new Pt(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return st[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return st[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,o=t.lockOffset,a=t.lockToContainerEdges,l=t.transitionDuration,r=t.keyboardSortingTransitionDuration,i=void 0===r?l:r,s=this.manager.isKeySorting,c=e.ignoreTransition,d=kt(e),u={x:d.x-this.initialOffset.x,y:d.y-this.initialOffset.y};if(u.y-=window.pageYOffset-this.initialWindowScroll.top,u.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=u,a){var p=Ue(St({height:this.height,lockOffset:o,width:this.width}),2),h=p[0],g=p[1],m={x:this.width/2-h.x,y:this.height/2-h.y},v={x:this.width/2-g.x,y:this.height/2-g.y};u.x=gt(this.minTranslate.x+m.x,this.maxTranslate.x-v.x,u.x),u.y=gt(this.minTranslate.y+m.y,this.maxTranslate.y-v.y,u.y)}"x"===n?u.y=0:"y"===n&&(u.x=0),s&&i&&!c&&pt(this.helper,i),ut(this.helper,u)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,o=e.onSortOver,a=this.containerScrollDelta,l=this.windowScrollDelta,r=this.manager.getOrderedRefs(),i=this.offsetEdge.left+this.translate.x+a.left,s=this.offsetEdge.top+this.translate.y+a.top,c=this.manager.isKeySorting,d=this.newIndex;this.newIndex=null;for(var u=0,p=r.length;u<p;u++){var h=r[u].node,g=h.sortableInfo.index,m=h.offsetWidth,v=h.offsetHeight,b={height:this.height>v?v/2:this.height/2,width:this.width>m?m/2:this.width/2},f=c&&g>this.index&&g<=d,k=c&&g<this.index&&g>=d,y={x:0,y:0},_=r[u].edgeOffset;_||(_=_t(h,this.container),r[u].edgeOffset=_,c&&(r[u].boundingClientRect=ft(h,a)));var C=u<r.length-1&&r[u+1],w=u>0&&r[u-1];C&&!C.edgeOffset&&(C.edgeOffset=_t(C.node,this.container),c&&(C.boundingClientRect=ft(C.node,a))),g!==this.index?(t&&pt(h,t),this.axis.x?this.axis.y?k||g<this.index&&(i+l.left-b.width<=_.left&&s+l.top<=_.top+b.height||s+l.top+b.height<=_.top)?(y.x=this.width+this.marginOffset.x,_.left+y.x>this.containerBoundingRect.width-b.width&&C&&(y.x=C.edgeOffset.left-_.left,y.y=C.edgeOffset.top-_.top),null===this.newIndex&&(this.newIndex=g)):(f||g>this.index&&(i+l.left+b.width>=_.left&&s+l.top+b.height>=_.top||s+l.top+b.height>=_.top+v))&&(y.x=-(this.width+this.marginOffset.x),_.left+y.x<this.containerBoundingRect.left+b.width&&w&&(y.x=w.edgeOffset.left-_.left,y.y=w.edgeOffset.top-_.top),this.newIndex=g):f||g>this.index&&i+l.left+b.width>=_.left?(y.x=-(this.width+this.marginOffset.x),this.newIndex=g):(k||g<this.index&&i+l.left<=_.left+b.width)&&(y.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=g)):this.axis.y&&(f||g>this.index&&s+l.top+b.height>=_.top?(y.y=-(this.height+this.marginOffset.y),this.newIndex=g):(k||g<this.index&&s+l.top<=_.top+b.height)&&(y.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=g))),ut(h,y),r[u].translate=y):n&&(this.sortableGhost=h,dt(h,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=d);var S=c?this.prevIndex:d;o&&this.newIndex!==S&&o({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:S,isKeySorting:c,nodes:r,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return nt()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,o.findDOMNode)(this):e(r.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,l.createElement)($t.Provider,{value:this.sortableContextValue},(0,l.createElement)(e,(0,a.Z)({ref:t},it(this.props,Lt))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(l.Component),Ge(t,"displayName",bt("sortableList",e)),Ge(t,"defaultProps",zt),Ge(t,"propTypes",Ot),n}var Wt={index:at().number.isRequired,collection:at().oneOfType([at().number,at().string]),disabled:at().bool},Vt=Object.keys(Wt);function Gt(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Ze(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return Ge(Ke(Ke(t=Xe(this,(e=Je(n)).call.apply(e,[this].concat(a))))),"wrappedInstance",(0,l.createRef)()),t}return et(n,t),Ye(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,a=e.index,l=(0,o.findDOMNode)(this);l.sortableInfo={collection:t,disabled:n,index:a,manager:this.context.manager},this.node=l,this.ref={node:l},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return nt()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,l.createElement)(e,(0,a.Z)({ref:t},it(this.props,Vt)))}}]),n}(l.Component),Ge(t,"displayName",bt("sortableElement",e)),Ge(t,"contextType",$t),Ge(t,"propTypes",Wt),Ge(t,"defaultProps",{collection:0}),n}const jt=Ut((e=>{let{children:t}=e;return(0,o.createElement)("div",{className:"ugb-sort-control__container"},t)})),Zt=Gt((e=>{let{value:t,key:n,index:l,...r}=e;return(0,o.createElement)("div",(0,a.Z)({className:"ugb-sort-control__item"},r),t)}));let qt=!1;const Yt=(0,o.memo)((e=>{const[t,n]=(0,T.G)(e.attribute,e.responsive,e.hover),[l,r]=(0,E.ED)(e);let i=void 0===e.values?t:Array.isArray(e.values)?[...e.values]:"string"==typeof e.values?e.values.split(","):t;for(i=i?i.splice(0,e.num):(0,m.range)(e.num).map((e=>e+1));i.length<e.num;)i.push(i.length+1);const c=void 0===e.onChange?n:e.onChange,d=(0,m.range)(e.num).map((e=>(e+1).toString())),u=i.map((e=>e.toString()));return(0,o.createElement)(E.Xp,(0,a.Z)({},r,{className:s()(["ugb-sort-control",e.className,`ugb-sort-control--axis-${e.axis}`])}),(0,o.createElement)(jt,(0,a.Z)({},l,{onSortStart:()=>qt=!0,onSortOver:t=>{let{newIndex:n}=t;e.onHover(n)},onSortEnd:e=>{let{oldIndex:t,newIndex:n}=e;qt=!1;const o=((e,t,n)=>(e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e))(i,t,n);(0,m.isEqual)(o.map((e=>e.toString())),d)?c("",{oldIndex:0,newIndex:0}):c([...o],{oldIndex:t,newIndex:n})},axis:e.axis}),i.map(((t,n)=>(0,o.createElement)(Zt,{key:n,index:n,value:t,onMouseEnter:()=>{qt||e.onHover(n)},onMouseLeave:()=>{qt||e.onHover(null)}})))),(0,o.createElement)(x.J,{allowReset:e.allowReset,showReset:!(0,m.isEqual)(u,d),value:i,default:e.default,onChange:()=>c("",{oldIndex:0,newIndex:0})}))}));Yt.defaultProps={className:"",help:"",label:(0,h.__)("Column Arrangement",g.i18n),num:2,axis:"x",values:null,onChange:()=>{},onHover:()=>{},hasReset:!1};const Kt=Yt;function Xt(e){this.value=e,this.subscribers=[],this.getValue=function(){return this.value},this.setValue=function(e){if(this.getValue()===e)return;this.value=e;const t=this;this.subscribers.forEach((function(e){e(t.value)}))},this.subscribe=function(e){this.subscribers.indexOf(e)>-1||this.subscribers.push(e)},this.unsubscribe=function(e){this.subscribers=this.subscribers.filter((function(t){return t!==e}))}}function Jt(e,t){void 0===t&&(t=null);const[,n]=(0,o.useState)(),a=Qt.getState(e,t),l=a.getValue();function r(){n({})}return(0,o.useEffect)((function(){return a.subscribe(r),function(){a.unsubscribe(r)}})),[l,function(e){a.setValue(e)}]}const Qt=new function(){this.value={},this.init=function(e){for(const t in e)this.setState(t,e[t])},this.getState=function(e,t){return void 0===this.value[e]&&this.setState(e,t),this.value[e]},this.setState=function(e,t){this.value[e]=new Xt(t)}},en=(0,y.jsx)(k.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)(k.y$,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),tn=(0,y.jsx)(k.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)(k.y$,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),nn=()=>{},on=(0,m.debounce)((e=>{e&&e.getBoundingClientRect().top<200&&e.scrollIntoView({inline:"start",block:"start",behavior:"instant"})}),0,{leading:!1,trailing:!0}),an=(0,o.forwardRef)(((e,t)=>{let{isOpened:n,icon:l,title:r,isPremiumPanel:i,showModifiedIndicator:d,checked:u,hasToggle:p,onChange:h,setIsOpened:g,...m}=e;return r?(0,o.createElement)("h2",{className:"components-panel__body-title"},(0,o.createElement)(c.Button,(0,a.Z)({className:"components-panel__body-toggle stk-panel","aria-expanded":n,ref:t},m),(0,o.createElement)("span",{"aria-hidden":"true"},(0,o.createElement)(c.Icon,{className:"components-panel__arrow",icon:n?en:tn})),p&&(0,o.createElement)(c.FormToggle,{className:"ugb-toggle-panel-form-toggle",checked:u,onClick:e=>{e.stopPropagation(),e.preventDefault(),u&&n||u||n||g((e=>!e)),h&&h(!u)},"aria-describedby":r}),r,(0,o.createElement)("span",{className:s()(["stk-panel-modified-indicator",{"stk--visible":d}])}),i&&(0,o.createElement)("div",{className:"stk-pulsating-circle"}),l&&(0,o.createElement)(c.Icon,{icon:l,className:"components-panel__icon",size:20}))):null})),ln=(0,o.forwardRef)(((e,t)=>{let{buttonProps:n={},children:l,className:r,icon:i,initialOpen:c,onToggle:u=nn,isOpen:p=null,title:h,id:g="",checked:m,hasToggle:v,onChange:b=nn,isPremiumPanel:f=!1,showModifiedIndicator:k=!1}=e;const{name:y}=(0,d.useBlockEditContext)(),[_,C]=Jt(`panelCache-${y}-${g}-${h}`,void 0!==c&&c),w=null===p?_:p,S=(0,o.useRef)(),E=s()("components-panel__body","ugb-toggle-panel-body",r,{"is-opened":w,[`ugb-panel--${g}`]:g,"stk--premium-panel":f});return(0,o.createElement)("div",{className:E,ref:(0,te.useMergeRefs)([S,t])},(0,o.createElement)(an,(0,a.Z)({icon:i,isOpened:w,onClick:e=>{e.preventDefault();const t=!w;C(t),u(t),t?setTimeout((()=>{on(S.current)}),0):on(S.current)},title:h,checked:m,hasToggle:void 0===v?!!b:v,onChange:b,setIsOpened:C,isPremiumPanel:f,showModifiedIndicator:k},n)),"function"==typeof l?l({opened:!0}):l)}));ln.displayName="PanelBody";const rn=ln,sn=(0,o.memo)((e=>(0,o.createElement)(rn,e)));sn.defaultProps={id:"",className:"",title:(0,h.__)("Settings",g.i18n),checked:!1,onChange:null,initialOpen:!1,hasToggle:!1,onToggle:()=>{},isOpen:null};const cn=sn,dn=function(e){const{block:t="all",options:n=(0,B.applyFilters)(`stackable.${t}.edit.templates`,e.options||[]),className:l="",title:r=(0,h.__)("Designs",g.i18n),help:i=(0,h.__)("Pick a design to start from, this will override your block settings",g.i18n)}=e,c=s()(["ugb-panel-design-settings",l]);if(!n.length)return null;const d=n.map(((e,t)=>({...e,value:t})));return(0,o.createElement)(Zn,(0,a.Z)({},(0,m.omit)(e,["options"]),{selectedOptionInTitle:!1,title:r,className:c,help:i}),n&&(0,o.createElement)(Xn,(0,a.Z)({},(0,m.omit)(e,["help","title"]),{options:d,onChange:e=>{const t=n[e].value,o=(0,N.select)("core/block-editor").getBlockSelectionStart();(0,N.dispatch)("core/block-editor").updateBlockAttributes(o,t)}})),e.children)},un=e=>{const t=s()(["ugb-inspector-panel-controls",`ugb-panel-${e.tab}`]);return(0,o.createElement)("div",{className:t},e.children)};un.defaultProps={tab:"layout"};const pn=un;var hn=n(4685);const gn=wp.dom,mn=()=>{},vn=e=>{let{blocks:t="",shadowRoot:n,selectedTab:a,designIndex:l,onMouseDown:r=mn,updateShadowBodySize:i=mn,setIsLoading:c}=e;const d=(0,o.useRef)(null),u=(0,o.useRef)(null),p=(0,o.useRef)(!1),h=(0,o.useRef)(0),g=(0,o.useRef)(0),m=e=>{r(),p.current=!0,h.current=e.clientY;const t=d.current;t&&(g.current=t.scrollTop)},v=e=>{if(!p.current)return;const t=d.current;if(t){const n=e.clientY-h.current;t.scrollTop=g.current-4*n}},b=()=>{p.current=!1};(0,o.useEffect)((()=>{const e=d.current;if(e&&"patterns"!==a)return e.addEventListener("mousedown",m),window.addEventListener("mousemove",v),window.addEventListener("mouseup",b),()=>{e.removeEventListener("mousedown",m),window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",b)}}),[a]);const f=s()((0,B.applyFilters)("stackable.global-styles.classnames",["entry-content"]),{"preview-pages":"pages"===a});return(0,o.useEffect)((()=>{const e=u.current;if(!e||!t)return;c(!0);const n=window.requestIdleCallback?e=>window.requestIdleCallback(e,{timeout:5e3}):e=>setTimeout(e,20*l),o=(0,gn.safeHTML)(t);if("pages"!==a||l<9)return e.innerHTML=o,void requestAnimationFrame((()=>{n((()=>c(!1)))}));requestAnimationFrame((()=>{n((()=>{e.innerHTML=o,i(),requestAnimationFrame((()=>{n((()=>c(!1)))}))}))}))}),[t,n]),(0,o.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)("body",{ref:d,className:f},(0,o.createElement)("div",{ref:u,style:{pointerEvents:"none"}}))),n)};var bn=n(9305),fn=n(424);const kn="dist/images/components-design-library-list-maps.0f15487.webp";var yn=n(8324),_n=n(378);const Cn={...fn},wn=()=>{},Sn=(0,o.memo)((e=>{const{shouldRender:t,presetMarks:n,previewProps:a,isMultiSelectBusy:l}=e,{selectedTab:r,selectedNum:i,selectedData:d,plan:u,label:p}=a,v=Array.isArray(n)&&n.length>=2?n[n.length-2].value:120,[b,k]=(0,o.useState)(!0),[y,_]=(0,o.useState)(!1),{hostRef:C,shadowRoot:w,stylesLoaded:S}=(e=>{const t=(0,o.useRef)(null),[n,a]=(0,o.useState)(null),[l,r]=(0,o.useState)(0),{getEditorDom:i}=(0,N.useSelect)("stackable/editor-dom"),s=i(),c=(0,B.applyFilters)("stackable.global-styles.ids",["ugb-dep-native-global-style-css-nodep-inline-css","ugb-style-css-css","ugb-style-css-responsive-css","ugb-block-style-inheritance-nodep-inline-css","ugb-style-css-premium-css"]);return(0,o.useEffect)((()=>{if(e&&t.current){const e=t.current.shadowRoot||t.current.attachShadow({mode:"open"});r(0);const n=new Set(Array.from(e.querySelectorAll("style[id],link[id]")).map((e=>e.id))),o=c.map((e=>{let t=null,n=null;if(document&&document.head&&(n=document.head.querySelector(`#${e}`)),!n&&s){var o;const t=null==s?void 0:s.closest("body");n=(null==t||null===(o=t.ownerDocument)||void 0===o?void 0:o.head).querySelector(`#${e}`)}return n&&(t=n.cloneNode(!0)),t})).filter((e=>null!==e));if(!n.has("global-styles-inline-css")){const e=document.createElement("style");e.setAttribute("id","global-styles-inline-css"),e.innerHTML=g.wpGlobalStylesInlineCss,o.push(e)}if(!n.has("stk-design-library-styles")){const e=document.createElement("style");e.setAttribute("id","stk-design-library-styles"),e.innerHTML+=(0,bn.yU)(),o.push(e)}o.forEach((t=>{t.id&&n.has(t.id)||(t.href&&(t.onload=()=>{r((e=>e+1))},t.onerror=()=>{r((e=>e+1))}),t.textContent&&(t.textContent=t.textContent.replace(/:root/g,":host")),e.appendChild(t),t.id&&n.add(t.id))})),a(e)}}),[e]),{hostRef:t,shadowRoot:n,stylesLoaded:l}})(t),E=(0,o.useRef)(null),{blocks:x,enableBackground:T,shadowBodySizeRef:M,blocksForSubstitutionRef:A,previewSize:I,onClickDesign:R,updateShadowBodySize:P}=((e,t,n,a,l,r,i,s)=>{const{designId:c,template:d,category:u,plan:p,containerScheme:h,backgroundScheme:v,enableBackground:b,selectedTab:f,selectedNum:k,selectedData:y,onClick:_}=e,[C,w]=(0,o.useState)({parsed:null,serialized:""}),[S,E]=(0,o.useState)(""),[x,T]=(0,o.useState)(null),[B,M]=(0,o.useState)({}),A=(0,o.useRef)([]),I=(0,o.useRef)(!1),R=(0,o.useRef)(!1),P=(0,o.useRef)(null),O=(0,o.useRef)(null),H=(0,o.useRef)(f),z=(0,o.useRef)(null),D=(0,o.useRef)(!1),F=(0,N.useSelect)((e=>{var t;return(null===(t=e("core").getEntityRecord("root","site"))||void 0===t?void 0:t.title)||"InnovateCo"}),[]),$=g.devMode&&"1"===localStorage.getItem("stk__design_library__dev_mode"),U="patterns"===f,W=e=>{const t=e||(null==r?void 0:r.querySelector("body"));t&&(P.current={clientHeight:t.clientHeight,scrollHeight:t.scrollHeight,maxScrollTop:t.scrollHeight-t.clientHeight})},V=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=null==a||null===(e=a.current)||void 0===e?void 0:e.querySelector(".stk-block-design__design-container");if(!(a.current&&l.current&&r&&o&&(!k||H.current!==f))||!t||n>3)return;const i=a.current.getBoundingClientRect(),s=l.current.getBoundingClientRect(),c=o.getBoundingClientRect(),d=i.width,u=s.width,p=Math.abs(c.height-s.height)<1;let h=!0;Math.abs(d-u)<1&&p&&(t-=1,h=!1);const g=r.querySelector("body");if(g&&h){const e=d>0?d/1300:1;let t=1200;"patterns"===f&&(t=g.offsetHeight);const n=parseFloat(t)*e;M((t=>{const o={...t,scale:e};return 0===Object.keys(t).length?(o.heightBackground=n,o.heightNoBackground=n):o[b?"heightBackground":"heightNoBackground"]=n,o})),W(g)}null!==z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame((()=>V(t,++n)))};return(0,o.useEffect)((()=>{if(!t||D.current===d)return;i(!0),A.current=[],R.current=!1;let e=[],o=null;(async()=>{const t=d;if("patterns"===f){const n=(0,bn.un)(c),a=(0,bn.wT)(t,n,!1),l=$?(0,bn.wT)(t,n,!0):a;A.current.push(n),a.includes('stk-design-library__bg-target="true"')&&(R.current=!0),e=(0,bn.aj)(a),o=$?(0,bn.aj)(l):null}else{const a=t.map((e=>e.designId||e.id)),l=await Promise.all(a.map((e=>(0,yn.fetchDesign)(e)))),r=a.map((e=>(0,bn.un)(e))),i=l.map(((e,t)=>(0,bn.wT)(e.template||e.content,r[t],!1))).join("\n"),s=$?l.map(((e,t)=>(0,bn.wT)(e.template||e.content,r[t],!0))).join("\n"):i;A.current.push(...r);const c=(0,bn.aj)(i),d=$?(0,bn.aj)(s):null;for(let a=0;a<t.length;a++){let l=c[a],i=$&&d?d[a]:null;t[a].bg&&(l=(0,bn.Nl)([l],!0,"")[0],i&&(i=(0,bn.Nl)([i],!0,"")[0])),(0,bn.W$)(l.attributes,r[a],n,!1),i&&(0,bn.W$)(i.attributes,r[a],n,!0),e.push(l),i&&(o=o||[],o.push(i))}}})().then((()=>{const[t,n]=(0,bn._w)(e),a=o?(0,bn._w)(o)[0]:null;I.current=n,E(t),T(a),i(!1),D.current=d}))}),[d,t]),(0,o.useEffect)((()=>{H.current=f}),[f]),(0,o.useEffect)((()=>{t&&S&&r&&(k&&H.current===f||(S&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=(0,m.cloneDeep)((null==y?void 0:y.designData)||e);if(!t)return;""===h||k||(t=(0,bn.R6)(t,h)),b&&!k&&(t=(0,bn.Nl)(t,b,v,U)),"patterns"===f&&(0,bn.W$)(t[0].attributes,A.current[0],n,!1);let o=(0,_n.serialize)(t);if(A.current.includes("header")&&(o=o.replace(/<!--\s*wp:site-title(?:\s+[^\/]*?)?\/-->/g,(0,m.escape)(F))),A.current.includes("tabs")&&(o=o.replace('"stk-block-tabs__tab"','"stk-block-tabs__tab stk-block-tabs__tab--active"')),A.current.includes("post-loop")){const e=Cn["post-loop"];o=(0,bn.i5)(o,e.posts_placeholder,e)}o.includes("stk-block-map")&&(o=o.replace(/(<div[^>]*class="[^"]*stk-block-map[^"]*"[^>]*>)([\s\S]*?)(<\/div>)/g,((e,t,n,o)=>t+n.replace(/<iframe[\s\S]*?<\/iframe>|<iframe[\s\S]*?\/>/g,'<img src="'+g.srcUrl+"/"+kn+'" />')+o))),o=(0,bn.wr)(o);const a=(0,L.cleanSerializedBlock)(o);w({parsed:t,serialized:a})}(),null!==z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame((()=>V()))))}),[S,h,v,b,k,t,r]),(0,o.useEffect)((()=>{C.parsed&&C.serialized&&t&&O.current!==b&&(O.current=b,null!==z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame((()=>V())))}),[C,b]),(0,o.useEffect)((()=>{C.parsed&&C.serialized&&t&&(null!==z.current&&cancelAnimationFrame(z.current),z.current=requestAnimationFrame((()=>V())))}),[s]),(0,o.useEffect)((()=>()=>{cancelAnimationFrame(z.current),z.current=null}),[]),{blocks:C.serialized,enableBackground:b,shadowBodySizeRef:P,blocksForSubstitutionRef:I,previewSize:B,onClickDesign:()=>{if(!g.isPro&&"free"!==p)return;const e=a.current.getBoundingClientRect(),t={preview:b?B.heightBackground:B.heightNoBackground,card:e.height,scale:B.scale};_(c,u,x||C.parsed,I.current,t)},updateShadowBodySize:W}})(a,t,v,E,C,w,k,S),{onMouseOut:O,onMouseOver:H,onMouseDown:z}=((e,t,n)=>{const a=(0,o.useRef)(0),l=(0,o.useRef)(null),r=(0,o.useRef)(!1),i=(0,o.useRef)(null),s=(e,n)=>{if(!e||!r.current)return;const o=e.scrollTop,i=n-o,c=1-i/t.current.maxScrollTop;if(Math.abs(i)<1)return void(r.current=!1);const d=8*c*(1-c),u=Math.max(20*d,5);e.scrollTop=o+u,a.current=e.scrollTop,l.current=requestAnimationFrame((()=>s(e,n)))},c=(0,o.useCallback)((()=>{r.current=!1,l.current&&(cancelAnimationFrame(l.current),l.current=null),i.current&&(clearTimeout(i.current),i.current=null),a.current=-1}),[]);return(0,o.useEffect)((()=>()=>{r.current=!1,l.current&&(cancelAnimationFrame(l.current),l.current=null),i.current&&(clearTimeout(i.current),i.current=null),a.current=-1}),[]),{onMouseOver:"patterns"===n?wn:()=>{var n,o,c;const d=null==e||null===(n=e.current)||void 0===n||null===(o=n.shadowRoot)||void 0===o||null===(c=o.querySelector)||void 0===c?void 0:c.call(o,"body");d&&t.current&&(a.current=0,r.current=!0,i.current&&(clearTimeout(i.current),i.current=null),i.current=setTimeout((()=>{if(-1===a.current||!r.current)return;l.current&&cancelAnimationFrame(l.current);const e=t.current.maxScrollTop;e>0&&s(d,e),i.current=null}),1e3))},onMouseOut:"patterns"===n?wn:()=>{var t,n,o;const s=null==e||null===(t=e.current)||void 0===t||null===(n=t.shadowRoot)||void 0===n||null===(o=n.querySelector)||void 0===o?void 0:o.call(n,"body");s&&(r.current=!1,l.current&&(cancelAnimationFrame(l.current),l.current=null),i.current&&(clearTimeout(i.current),i.current=null),s.scrollTo({top:0,behavior:"smooth"}),a.current=-1)},onMouseDown:"patterns"===n?wn:c}})(C,M,r),D=(0,o.useMemo)((()=>{const e="pages"===r?345:100,t=i&&d?d.selectedPreviewSize.preview:T?I.heightBackground:I.heightNoBackground;return x&&t?t:e}),[r,i,d,I,x,T]),F=s()(["ugb-design-library-item","ugb-design-library-item--toggle"],{[`ugb--is-${u}`]:!g.isPro&&"free"!==u,"ugb--is-toggled":i,"ugb--is-hidden":!t});return(0,o.createElement)("button",{className:F,ref:E,onClick:e=>{e.stopPropagation(),"pages"!==r&&R()},onMouseOut:O,onMouseOver:H},!g.isPro&&"free"!==u&&(0,o.createElement)("span",{className:"stk-pulsating-circle",role:"presentation"}),(0,o.createElement)("div",{style:{position:"relative"},className:"stk-block-design__design-container "+(D>100?"stk--design-preview-large":"stk--design-preview-small")},!g.isPro&&"free"!==u&&(0,o.createElement)(hn.Z,{type:"design-library",showImage:!1,showHideNote:!1}),(0,o.createElement)("div",{className:"stk-spinner-container "+(b||!t?"":"stk-hide-spinner")},(0,o.createElement)(c.Spinner,null)),(0,o.createElement)("div",{className:"stk-block-design__host-container",style:{transform:`scale(${i&&d?d.selectedPreviewSize.scale:null==I?void 0:I.scale})`,transformOrigin:"top left",height:D}},(0,o.createElement)("div",{className:"stk-block-design__host",ref:C},t&&w&&(0,o.createElement)(vn,{blocks:x,shadowRoot:w,selectedTab:r,designIndex:e.designIndex,onMouseDown:z,updateShadowBodySize:P,setIsLoading:k})))),(0,o.createElement)("footer",{"data-selected-num":i},(0,o.createElement)("div",null,(0,o.createElement)("h4",null," ",p," "),!1!==A.current&&0!==A.current.size&&(0,o.createElement)(In,{text:(0,h.__)("This design contains disabled blocks. You can still insert this design with blocks substituted with other enabled blocks.",g.i18n)},(0,o.createElement)(c.Dashicon,{icon:"warning",size:16}))),(0,o.createElement)("div",null,0!==i&&(0,o.createElement)(In,{text:(0,h.__)("Style options are locked for this design because it is selected.",g.i18n)},(0,o.createElement)(c.Dashicon,{icon:"editor-help",size:16})),"patterns"===r?(0,o.createElement)("span",{className:"stk-block-design__selected-num"},0===i?"":i):(0,o.createElement)("div",null,(0,o.createElement)(f.Z,{label:(0,h.__)("Insert",g.i18n),className:"ugb-modal-design-library__add-multi "+(y?"stk--is-selected":""),disabled:l,onClick:()=>{_(!0),R()}},(0,h.__)("Insert",g.i18n),l&&(0,o.createElement)(c.Spinner,null))))))}));Sn.defaultProps={designId:"",image:"",label:"",onClick:()=>{},plan:"free",premiumLabel:(0,h.__)("Go Premium",g.i18n)};const En=Sn,xn=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),(0,o.createElement)("path",{d:"M504 256c0 137-111 248-248 248S8 393 8 256C8 119.1 119 8 256 8s248 111.1 248 248zM262.7 90c-54.5 0-89.3 23-116.5 63.8-3.5 5.3-2.4 12.4 2.7 16.3l34.7 26.3c5.2 3.9 12.6 3 16.7-2.1 17.9-22.7 30.1-35.8 57.3-35.8 20.4 0 45.7 13.1 45.7 33 0 15-12.4 22.7-32.5 34-23.7 13-54.8 29.4-54.8 70.5v4c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12v-1.3c0-28.5 83.2-29.6 83.2-106.7 0-58-60.2-102-116.5-102zM256 338c-25.4 0-46 20.6-46 46s20.6 46 46 46 46-20.6 46-46-20.6-46-46-46z"}))},Tn=e=>{const[t,n]=(0,o.useState)([]),{viewBy:a,designs:l,plan:r,selected:i,onSelect:d}=e;return(0,o.useEffect)((()=>{let e=0;const t=l.reduce(((t,n)=>{const o=n.category;return r&&r!==n.plan||(o in t?t[o].count++:t[o]={id:o,label:o,count:1},e++),t}),{});t.all={id:"",label:" ",count:e};const o=(0,m.sortBy)(Object.values(t),"label");o[0].label=(0,h.__)("All",g.i18n),n(o)}),[l,a,r]),e.isBusy?(0,o.createElement)(c.Spinner,{style:{display:"block",margin:"0 auto"}}):(0,o.createElement)("ul",{className:"ugb-block-list"},t.reduce(((e,t)=>{const{id:n,label:a,count:l}=t,r=s()(["stk-design-library__sidebar-item"],{"is-active":i===n});return e.push((0,o.createElement)("li",{key:n},(0,o.createElement)("div",{className:r,"data-count":l,onClick:()=>d(n),onKeyPress:e=>{13===e.keyCode&&(void 0).click()},role:"button",tabIndex:0,"aria-pressed":i===n?"true":"false"},a,(0,o.createElement)("span",{className:"ugb-block-list__count","data-testid":`${n}-count`},l)))),e}),[]))};Tn.defaultProps={select:"",onSelect:()=>{},apiVersion:"",designs:[]};const Bn=Tn;var Mn=n(1959);const An=e=>{const{customText:t,callback:n,className:a}=e;return(0,o.createElement)(o.Fragment,null,t||""===t?t:(0,o.createElement)("span",null,(0,h.__)("Change the color scheme.",g.i18n)),""!==t&&(0,o.createElement)(o.Fragment,null," "),(0,o.createElement)(Dl,{className:a,onClick:()=>{var e,t;let o=!1;n&&(o=n()),o||(null===(e=(0,N.dispatch)("core/edit-post"))||void 0===e||e.openGeneralSidebar("stackable-global-settings/sidebar"),null===(t=(0,N.dispatch)("core/edit-site"))||void 0===t||t.openGeneralSidebar("stackable-global-settings/sidebar"),setTimeout((()=>{const e=document.querySelectorAll(".ugb-global-settings__inspector > .ugb-toggle-panel-body.is-opened");null==e||e.forEach((e=>{if(e.classList.contains("ugb-global-color-schemes__panel"))return;const t=e.querySelector(".components-panel__body-title > .components-panel__body-toggle");null==t||t.click()}));const t=document.querySelector(".ugb-global-color-schemes__panel .components-panel__body-title > .components-panel__body-toggle");"false"===t.getAttribute("aria-expanded")&&(null==t||t.click())}),10))}}," ",(0,h.__)("Manage your color schemes.",g.i18n)," "))},Nn=e=>(0,o.createElement)(c.Tooltip,(0,a.Z)({},e,{className:s()([e.className,"stk-tooltip"]),text:(0,o.createElement)("span",{className:"stk-tooltip__text"},e.text)}));Nn.defaultProps={className:""};const In=Nn,Rn=[{key:"",label:(0,h.__)("All",g.i18n)},{key:"free",label:(0,h.__)("Free",g.i18n)},{key:"premium",label:(0,h.__)("Premium",g.i18n)}],Pn=e=>{const{selectedTab:t,setSelectedTab:n,selectedPlan:a,setSelectedPlan:l,setDoReset:r,onClose:i}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Oe,{className:"stk-design-library-tabs",fullwidth:!1,controls:[{value:"patterns",title:(0,h.__)("Patterns",g.i18n)},{value:"pages",title:(0,h.__)("Pages",g.i18n)}],value:t,onChange:n,isToggleOnly:!0,allowReset:!1}),(0,o.createElement)("div",{className:"stk-design-library__header-settings"},g.devMode&&(0,o.createElement)(c.ToggleControl,{label:"Dev Mode",checked:!!localStorage.getItem("stk__design_library__dev_mode")||!1,onChange:e=>{localStorage.setItem("stk__design_library__dev_mode",e?"1":""),setTimeout((()=>{var e,t;null===(e=document)||void 0===e||null===(t=e.querySelector(".ugb-insert-library-button__wrapper .ugb-insert-library-button"))||void 0===t||t.click()}),100),i()},__nextHasNoMarginBottom:!0}),(0,o.createElement)(f.Z,{icon:"image-rotate",iconSize:14,label:(0,h.__)("Refresh Library",g.i18n),className:"ugb-modal-design-library__refresh",onClick:()=>r(!0)}),!g.isPro&&(0,o.createElement)(c.Dropdown,{focusOnMount:"container",renderToggle:e=>{let{onToggle:t}=e;return(0,o.createElement)(f.Z,{onClick:t,style:{height:"auto"},icon:"arrow-down-alt2",iconSize:12,iconPosition:"right",variant:"secondary"},(0,o.createElement)(c.Dashicon,{icon:"lock",size:12}),(0,o.createElement)("span",null,a.label))},renderContent:e=>{let{onClose:t}=e;return(0,o.createElement)("div",{className:"stk-design-library__plan-dropdown"},Rn.map(((e,n)=>(0,o.createElement)(f.Z,{key:n,onClick:()=>{l(e),t()}},e.label))))}})))};var On;const Hn={className:"ugb-design-library__color-scheme-popover",placement:"right-start",shift:!0};null===(On=localStorage)||void 0===On||On.setItem("stk__design_library__block-list__selected","");const zn=(0,o.createContext)(null),Ln=e=>{const{backgroundModeColorScheme:t,containerModeColorScheme:n,colorSchemesCollection:a}=(0,I.useBlockColorSchemes)(),[l,r]=(0,o.useState)(!0),[i,d]=(0,o.useState)(!1),[u,p]=(0,o.useState)([]),[m,v]=(0,o.useState)([]),[b,k]=(0,o.useState)(!1),[y,_]=(0,L.useLocalStorage)("stk__design_library__block-list__view_by","patterns"),[C,w]=(0,L.useLocalStorage)("stk__design_library__block-list__selected",""),[S,E]=(0,L.useLocalStorage)("stk__design_library__view-plan",Rn[0]),[x,T]=(0,o.useState)([]),[B,M]=(0,o.useState)([]),[A,N]=(0,o.useState)(!1),[R,P]=(0,o.useState)(""),[O,H]=(0,o.useState)("");(0,o.useEffect)((()=>{window.localStorage.getItem("stk__design_library__version")||(window.localStorage.setItem("stk__design_library__version","v4"),_("patterns"),w(""))}),[]),(0,o.useEffect)((()=>{r(!0),T([]),(0,yn.getDesigns)({reset:i,type:y}).then((e=>{T(e),w("")})).finally((()=>{d(!1),r(!1)}))}),[i,y]),(0,o.useEffect)((()=>{(0,yn.filterDesigns)({library:x,category:C,plan:S.key}).then((e=>{M(e)}))}),[x,S,C]);const z=()=>!(!u.length||window.confirm((0,h.sprintf)((0,h.__)("You have one or more designs selected. Navigating to %s will close the Design Library and your current selection will be lost. Do you want to continue?",g.i18n),(0,h.__)("Color Schemes",g.i18n))))||(e.onClose(),!1),D=t=>{k(!0),e.onSelect(t,(()=>k(!1)),y)},F=(0,o.useCallback)(((e,t,n,o,a)=>{"pages"!==y?(p((t=>{const n=[...t];if(n.includes(e)){const t=n.indexOf(e);n.splice(t,1)}else n.push(e);return n})),v((l=>{const r=[...l];if(l.some((t=>t.designId===e))){const t=r.findIndex((t=>t.designId===e));r.splice(t,1)}else r.push({designId:e,category:t,designData:n,blocksForSubstitution:o,selectedPreviewSize:a});return r}))):D([{designId:e,category:t,designData:n,blocksForSubstitution:o,selectedPreviewSize:a}])}),[y]),$=(0,o.useMemo)((()=>(0,o.createElement)(Pn,{selectedTab:y,setSelectedTab:_,selectedPlan:S,setSelectedPlan:E,setDoReset:d,onClose:e.onClose})),[y,S,_,E,d,e.onClose]),U=(0,o.useMemo)((()=>[y,u,m,F,b,R,O,A]),[y,u,m,F,b,R,O,A]);return(0,o.createElement)(c.Modal,{title:(0,h.__)("Stackable Design Library",g.i18n),headerActions:$,className:s()("ugb-modal-design-library","ugb-modal-design-library--is-multiselect"),onRequestClose:e.onClose},(0,o.createElement)(zn.Provider,{value:U},(0,o.createElement)("div",{className:s()("ugb-modal-design-library__wrapper",{"ugb-modal-design-library__full-pages":"pages"===y})},(0,o.createElement)(za,{tourId:"design-library"}),(0,o.createElement)("aside",{className:"ugb-modal-design-library__sidebar"},(0,o.createElement)("div",{className:"ugb-modal-design-library__filters"},(0,o.createElement)(Bn,{designs:x,viewBy:y,plan:S.key,selected:C,onSelect:e=>w(e),isBusy:l})),(0,o.createElement)("div",{className:"ugb-modal-design-library__style-options"},(0,o.createElement)("div",null,(0,o.createElement)("h4",null,(0,h.__)("Style Options",g.i18n)),(0,o.createElement)(In,{className:"ugb-modal-design-library__style-options-tooltip",placement:"top",text:(0,o.createElement)(o.Fragment,null,(0,h.__)("Customize patterns using the options below.",g.i18n)," ",(0,o.createElement)("a",{href:"https://docs.wpstackable.com/article/343-using-the-design-library#Design-Library-Style-Options-Pswi5",target:"_docs"},(0,h.__)("Learn how to use style options.",g.i18n)))},(0,o.createElement)(xn,{height:"14px",width:"14px"}))),"patterns"===y&&(0,o.createElement)(c.ToggleControl,{className:"ugb-modal-design-library__enable-background",label:(0,h.__)("Section Background",g.i18n),checked:A,onChange:e=>{N(e)},__nextHasNoMarginBottom:!0}),(0,o.createElement)(c.BaseControl,{label:(0,h.__)("Background Scheme",g.i18n),className:"ugb-modal-design-library__color-scheme-label ugb-modal-design-library__background-scheme",__nextHasNoMarginBottom:!0},(0,o.createElement)(c.Dropdown,{className:"ugb-modal-design-library__color-scheme-dropdown",popoverProps:Hn,focusOnMount:"container",renderToggle:e=>{let{onToggle:n}=e;return(0,o.createElement)(f.Z,{onClick:n,className:"ugb-modal-design-library__stk-color-scheme stk-color-scheme__toggle"},""!==O?(0,o.createElement)(Mn.ZP,{isCollapsed:!0,colors:a[O||t].normal}):(0,o.createElement)(Dn,{label:(0,h.__)("Default",g.i18n)}))},renderContent:e=>{let{onClose:t}=e;return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:"ugb-modal-design-library__stk-color-scheme-list-header"},(0,o.createElement)("p",null," ",(0,h.__)("Background Scheme",g.i18n)),(0,o.createElement)(f.Z,{icon:"no",className:"ugb-modal-design-library__color-scheme-close-button",onClick:()=>{t()}})),(0,o.createElement)("div",{className:"ugb-modal-design-library__stk-color-scheme-list"},(0,o.createElement)(f.Z,{className:"ugb-modal-design-library__stk-color-scheme"+(""===O?" stk-color-scheme__selected":""),onClick:()=>{A||N(!0),H("")}},(0,o.createElement)("span",{className:"stk-color-scheme-name stk-color-scheme__none"}," ",(0,h.__)("Default",g.i18n)," ")),Object.entries(a).map(((e,t)=>{let[n,a]=e;return(0,o.createElement)(f.Z,{key:t,className:"ugb-modal-design-library__stk-color-scheme"+(O===n?" stk-color-scheme__selected":""),onClick:()=>{A||N(!0),H(n)}},(0,o.createElement)(Mn.ZP,{colors:a.normal,isCollapsed:!0}),(0,o.createElement)("span",{className:"stk-color-scheme-name"}," ",a.name))})),Object.keys(a).length?(0,o.createElement)(An,{customText:"",callback:z,className:"ugb-design-library__manage-scheme"}):(0,o.createElement)(An,{customText:(0,h.__)("You do not have any color schemes.",g.i18n),callback:z})))}})),(0,o.createElement)(c.BaseControl,{label:(0,h.__)("Container Scheme",g.i18n),className:"ugb-modal-design-library__color-scheme-label",__nextHasNoMarginBottom:!0},(0,o.createElement)(c.Dropdown,{popoverProps:Hn,focusOnMount:"container",renderToggle:e=>{let{onToggle:t}=e;return(0,o.createElement)(f.Z,{onClick:t,className:"ugb-modal-design-library__stk-color-scheme stk-color-scheme__toggle"},""!==R?(0,o.createElement)(Mn.ZP,{isCollapsed:!0,colors:a[R||n].normal}):(0,o.createElement)(Dn,{label:(0,h.__)("Default",g.i18n)}))},renderContent:e=>{let{onClose:t}=e;return(0,o.createElement)("div",null,(0,o.createElement)("div",{className:"ugb-modal-design-library__stk-color-scheme-list-header"},(0,o.createElement)("p",null," ",(0,h.__)("Container Scheme",g.i18n)),(0,o.createElement)(f.Z,{icon:"no",onClick:()=>{t()}})),(0,o.createElement)("div",{className:"ugb-modal-design-library__stk-color-scheme-list"},(0,o.createElement)(f.Z,{className:"ugb-modal-design-library__stk-color-scheme"+(""===R?" stk-color-scheme__selected":""),onClick:()=>{P("")}},(0,o.createElement)("span",{className:"stk-color-scheme-name stk-color-scheme__none"}," ",(0,h.__)("Default",g.i18n)," ")),Object.entries(a).map(((e,t)=>{let[n,a]=e;return(0,o.createElement)(f.Z,{key:t,className:"ugb-modal-design-library__stk-color-scheme"+(R===n?" stk-color-scheme__selected":""),onClick:()=>{P(n)}},(0,o.createElement)(Mn.ZP,{colors:a.normal,isCollapsed:!0}),(0,o.createElement)("span",{className:"stk-color-scheme-name"}," ",a.name," "))})),Object.keys(a).length?(0,o.createElement)(An,{customText:"",callback:z,className:"ugb-design-library__manage-scheme"}):(0,o.createElement)(An,{customText:(0,h.__)("You do not have any color schemes.",g.i18n),callback:z})))}})))),(0,o.createElement)($n,{className:`stk-design-library__item-${y}`,isBusy:l,designs:B}),"patterns"===y&&(0,o.createElement)("aside",{className:"ugb-modal-design-library__footer"},(0,o.createElement)("div",null,(0,h.sprintf)((0,h.__)("(%d) Selected",g.i18n),u.length)),(0,o.createElement)(f.Z,{label:(0,h.__)("Add Designs",g.i18n),className:"ugb-modal-design-library__add-multi",disabled:!u.length||b,onClick:()=>D(m)},(0,h.__)("Add Designs",g.i18n),b&&(0,o.createElement)(c.Spinner,null))))))};Ln.defaultProps={search:"",onClose:()=>{},onSelect:()=>{},hasVersionSwitcher:!1,apiVersion:"",onChangeApiVersion:()=>{}};const Dn=e=>(0,o.createElement)("div",{style:{position:"relative"}},(0,o.createElement)("div",{style:{opacity:"0"}},(0,o.createElement)(Mn.ZP,{isCollapsed:!0})),(0,o.createElement)("span",{className:"stk-color-scheme-name stk-color-scheme__none"}," ",e.label," ")),Fn=(0,o.memo)((e=>{const{className:t="",designs:n,isBusy:a}=e,l=(0,o.useRef)(null),r=s()(["ugb-design-library-items",t]);return(0,o.useEffect)((()=>{l.current.scrollTop=0}),[n]),(0,o.createElement)("div",{className:"ugb-modal-design-library__designs",ref:l},a&&(0,o.createElement)(c.Spinner,{style:{display:"block",margin:"0 auto"}}),!a&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:r},(n||[]).map(((e,t)=>(0,o.createElement)(Un,{design:e,key:e.id||e.designId,designIndex:t}))),!(n||[]).length&&(0,o.createElement)("p",{className:"components-base-control__help","data-testid":"nothing-found-note"},(0,h.__)("No designs found",g.i18n)))))}));Fn.defaultProps={designs:[],columns:3,onSelect:()=>{},isBusy:!1};const $n=Fn,Un=(0,o.memo)((e=>{const{design:t,designIndex:n}=e,a=(0,o.useRef)(null),[l,r]=(0,o.useState)(n<9),[i,s,c,d,u,p,h,g]=(0,o.useContext)(zn),{selectedNum:m,selectedData:v}=(0,o.useMemo)((()=>{const e=s.indexOf(t.id||t.designId)+1;return{selectedNum:e,selectedData:e?c[e-1]:null}}),[s,c]),b=(0,o.useMemo)((()=>({designId:t.id||t.designId,template:t.template||t.content,category:t.category,plan:t.plan,label:t.label,containerScheme:p,backgroundScheme:h,enableBackground:"pages"===i||g,selectedTab:i,selectedNum:m,selectedData:v,onClick:d})),[t.id||t.designId,p,h,g,i,m,d]),{getPresetMarks:f}=(0,I.usePresetControls)("spacingSizes"),k=(0,o.useMemo)((()=>f()||null),[]);return(0,o.useEffect)((()=>{if("pages"!==i)return;let e;return e="undefined"!=typeof requestIdleCallback?requestIdleCallback((()=>l?{}:r(!0)),{timeout:500*(n+1)}):setTimeout((()=>r(!0)),500*n),()=>{"undefined"!=typeof cancelIdleCallback?cancelIdleCallback(e):clearTimeout(e)}}),[i]),(0,o.useEffect)((()=>{if("pages"===i)return;const e=document.querySelector(".ugb-modal-design-library__designs");if(!a.current||!e)return;const t=new IntersectionObserver((e=>{let[t]=e;requestAnimationFrame((()=>{requestAnimationFrame((()=>r(t.isIntersecting||t.intersectionRatio>0)))}))}),{root:e,rootMargin:"500px",scrollMargin:"500px",threshold:0});return t.observe(a.current),()=>t.disconnect()}),[i]),(0,o.createElement)("div",{ref:a},(0,o.createElement)(En,{previewProps:b,isMultiSelectBusy:u,shouldRender:l,presetMarks:k}))}));n(7385);const Wn=[{value:"layout",title:(0,h.__)("Layout",g.i18n),label:(0,h.__)("Layout Tab",g.i18n),icon:"align-left"},{value:"style",title:(0,h.__)("Style",g.i18n),label:(0,h.__)("Style Tab",g.i18n),icon:"admin-appearance"},{value:"advanced",title:(0,h.__)("Advanced",g.i18n),label:(0,h.__)("Advanced Tab",g.i18n),icon:"admin-generic"}],Vn=["layout","style","advanced"];class Gn extends o.Component{constructor(){super(...arguments),this.tabsToUse=this.props.tabs||Vn,this.state={activeTab:this.props.initialTab?this.props.initialTab:this.tabsToUse[0]},this.onButtonPanelClick=this.onButtonPanelClick.bind(this),this.updateSidebarPanelTab=this.updateSidebarPanelTab.bind(this),this.select=this.select.bind(this),this.containerDiv=(0,o.createRef)(),this.suspendClickListener=!1,this.props.onTabFirstOpen(this.state.activeTab)}updateSidebarPanelTab(e){const t=this.containerDiv.current.closest(".components-panel");t&&setTimeout((()=>{var n;t&&(t.setAttribute("data-ugb-tab",e),null===(n=t.closest(".edit-post-sidebar, .edit-widgets-sidebar, .interface-complementary-area"))||void 0===n||n.classList.add("ugb--has-panel-tabs"))}),1)}componentDidMount(){this.updateSidebarPanelTab(this.state.activeTab),this.props.closeOtherPanels&&g.settings.stackable_auto_collapse_panels&&document.body.addEventListener("click",this.onButtonPanelClick)}componentWillUnmount(){const e=document.querySelector("[data-ugb-tab]");e&&(e.removeAttribute("data-ugb-tab"),e.closest(".edit-post-sidebar, .edit-widgets-sidebar, .interface-complementary-area").classList.remove("ugb--has-panel-tabs")),this.props.closeOtherPanels&&g.settings.stackable_auto_collapse_panels&&document.body.removeEventListener("click",this.onButtonPanelClick)}onButtonPanelClick(e){const t=e.target.closest(".components-panel__body-toggle.stk-panel");var n,o;t&&(0,B.applyFilters)("stackable.panel.tabs.panel-auto-close",!0,t)&&(this.suspendClickListener||(this.suspendClickListener=!0,n=t,[].forEach.call((null===(o=document.querySelector(".edit-post-sidebar, .edit-widgets-sidebar, .block-editor-block-inspector"))||void 0===o?void 0:o.querySelectorAll(".components-panel__body .components-panel__body-toggle.stk-panel"))||[],(e=>{0!==e.offsetHeight&&e.parentElement.parentElement.classList.contains("is-opened")&&n!==e&&(0,B.applyFilters)("stackable.panel.tabs.panel-auto-close",!0,e)&&e.click()})),this.suspendClickListener=!1))}select(e){this.setState({activeTab:e}),this.updateSidebarPanelTab(e),this.props.onClick(e)}render(){const e=s()([this.props.className,"components-panel__body","ugb-panel-tabs"]);return(0,o.createElement)("div",{className:e,style:this.props.style,ref:this.containerDiv},(0,o.createElement)("div",{className:"ugb-panel-tabs__wrapper"},(0,B.applyFilters)("stackable.inspector.tabs",Wn).map(((e,t)=>{let{value:n,title:a,label:l,icon:r}=e;return this.tabsToUse.includes(n)?(0,o.createElement)("button",{key:t,onClick:()=>this.select(n),className:s()(["edit-post-sidebar__panel-tab",`ugb-tab--${n}`],{"is-active":this.state.activeTab===n}),"aria-label":l,"data-label":l},(0,o.createElement)(c.Icon,{icon:r}),a):null}))))}}Gn.defaultProps={className:"",style:{},closeOtherPanels:!0,initialTab:"",onClickPanel:()=>{},onClick:()=>{},tabs:null,onTabFirstOpen:()=>{}};const jn=Gn,Zn=function(e){const{options:t,selected:n,title:l=(0,h.__)("Layout",g.i18n),selectedOptionInTitle:r=!0,help:i="",className:c="",initialOpen:d=!0}=e,u=t?t.find((e=>e.value===n)):null,p=u?`${l} – ${u.label}`:l,v=s()(["ugb-design-panel-body",c]);return(0,o.createElement)(cn,(0,a.Z)({title:r?(0,o.createElement)("span",null,p):l,className:v,initialOpen:d},(0,m.omit)(e,["help","onChange"])),i&&(0,o.createElement)("p",{className:"components-base-control__help"},i),t&&(0,o.createElement)(Xn,(0,m.omit)(e,["help","title","children"])),e.children)},qn=function(e){let{imageFile:t,imageHoverFile:n,imageWidth:a="",imageHeight:l="",label:r,isActive:i=!1}=e;const c=t?t.match(/https?:/i)?t:g.srcUrl?`${g.srcUrl}/${t}`:t:"",d=n?n.match(/https?:/i)?n:g.srcUrl?`${g.srcUrl}/${n}`:n:null;return(0,o.createElement)("span",{className:s()("ugb-design-panel-item",{"is-active":i})},d&&(0,o.createElement)("img",{className:"ugb-design-panel-item__hover-image",src:d,alt:r,width:a,height:l}),c&&(0,o.createElement)("img",{className:"ugb-design-panel-item__image",src:c,alt:r,width:a,height:l}),(0,o.createElement)("span",{className:"design-label"},r))};var Yn=n(2122);const Kn=e=>{const t=e.options.filter((e=>!e.premium||g.isPro)).map((t=>({...t,label:(0,o.createElement)(qn,{imageFile:t.image,imageHoverFile:t.hoverImage,imageWidth:t.imageWidth,imageHeight:t.imageHeight,isPro:t.isPro,label:t.label,isActive:t.value===e.selected}),title:t.label,value:t.value}))),n=s()([e.className,"ugb-design-control-wrapper","components-base-control",`ugb-design-control--columns-${e.columns}`]);return(0,o.createElement)("div",{className:n},e.label&&(0,o.createElement)(Yn.Z,(0,a.Z)({label:e.label},e.helpTooltip)),(0,o.createElement)(c.RadioControl,(0,a.Z)({},(0,m.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};Kn.defaultProps={className:"",columns:2,selected:"",options:[],onChange:()=>{}};const Xn=Kn,Jn=[{image:"dist/images/components-design-separator-control-wave-1.fe7d2e5.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Wave",g.i18n),1),value:"wave-1"},{image:"dist/images/components-design-separator-control-straight-1.fba0f99.png",label:(0,h.__)("Straight",g.i18n),value:"straight-1"},{image:"dist/images/components-design-separator-control-wave-2.bc3ff78.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Wave",g.i18n),2),value:"wave-2"},{image:"dist/images/components-design-separator-control-wave-3.9e204d5.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Wave",g.i18n),3),value:"wave-3"},{image:"dist/images/components-design-separator-control-wave-4.b82e3aa.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Wave",g.i18n),4),value:"wave-4"},{image:"dist/images/components-design-separator-control-slant-1.645f0b9.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Slant",g.i18n),1),value:"slant-1"},{image:"dist/images/components-design-separator-control-slant-2.50e3178.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Slant",g.i18n),2),value:"slant-2"},{image:"dist/images/components-design-separator-control-curve-1.277a020.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Curve",g.i18n),1),value:"curve-1"},{image:"dist/images/components-design-separator-control-curve-2.4b8c7da.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Curve",g.i18n),2),value:"curve-2"},{image:"dist/images/components-design-separator-control-curve-3.da5eb6d.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Curve",g.i18n),3),value:"curve-3"},{image:"dist/images/components-design-separator-control-rounded-1.85d0e25.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Rounded",g.i18n),1),value:"rounded-1"},{image:"dist/images/components-design-separator-control-rounded-2.6e57ec5.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Rounded",g.i18n),2),value:"rounded-2"},{image:"dist/images/components-design-separator-control-rounded-3.78cb6da.png",label:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Rounded",g.i18n),3),value:"rounded-3"}];(0,B.addFilter)("stackable.separator.edit.layouts","default",(e=>(0,m.uniqBy)([...e,...Jn],"value")));const Qn=e=>{const{label:t,help:n,excludeDesigns:l,...r}=e,i=((0,B.applyFilters)("stackable.separator.edit.layouts",[])||[]).filter((e=>-1===(0,m.findIndex)(l,(t=>t===e.value))));return(0,o.createElement)(c.BaseControl,{className:"ugb-design-separator-control",id:"ugb-design-separator-control",label:t,help:n,__nextHasNoMarginBottom:!0},(0,o.createElement)(Xn,(0,a.Z)({options:i},r)))};Qn.defaultProps={label:"",help:"",excludeDesigns:[]};const eo=Qn,to=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 496 512"},e),(0,o.createElement)("path",{fill:"currentColor",d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"}))},no={placement:"left-start",offset:36,shift:!0},oo=e=>(0,o.createElement)(ll,(0,a.Z)({className:"ugb-icon-control stk-control"},(0,m.omit)(e,["onChange","value"]),{allowReset:!0,value:e.value,defaultValue:e.defaultValue,onChange:e.onChange,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator}),(0,o.createElement)("div",{className:"ugb-icon-control__wrapper"},(0,o.createElement)("div",{className:"ugb-icon-control__button-wrapper"},(0,o.createElement)(c.Dropdown,{popoverProps:no,renderToggle:t=>{let{onToggle:n,isOpen:a}=t;return(0,o.createElement)(f.Z,{isSecondary:!0,onClick:n,className:"ugb-icon-control__icon-button","aria-expanded":a},e.value&&(0,o.createElement)(ol,{value:e.value}),!e.value&&(0,o.createElement)(to,{style:{opacity:.3}}))},renderContent:t=>{let{onClose:n}=t;return(0,o.createElement)(mo,{onClose:n,returnSVGValue:e.returnSVGValue,onChange:e.onChange,defaultValue:e.defaultValue})}}))));oo.defaultProps={label:(0,h.__)("Icon",g.i18n),value:"",returnSVGValue:!0,onChange:()=>{},defaultValue:"",hasPanelModifiedIndicator:!0};const ao=oo,lo=function(e){return(0,o.createElement)("svg",(0,a.Z)({"aria-hidden":"true","data-prefix":"fas","data-icon":"arrow-alt-to-bottom",className:"drop_svg__svg-inline--fa drop_svg__fa-arrow-alt-to-bottom drop_svg__fa-w-12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512"},e),(0,o.createElement)("path",{fill:"currentColor",d:"M360 480H24c-13.3 0-24-10.7-24-24v-24c0-13.3 10.7-24 24-24h336c13.3 0 24 10.7 24 24v24c0 13.3-10.7 24-24 24zM128 56v136H40.3c-17.8 0-26.7 21.5-14.1 34.1l152.2 152.2c7.5 7.5 19.8 7.5 27.3 0l152.2-152.2c12.6-12.6 3.7-34.1-14.1-34.1H256V56c0-13.3-10.7-24-24-24h-80c-13.3 0-24 10.7-24 24z"}))},ro=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=[...e.FamilyStylesByLicense.free,...t?e.FamilyStylesByLicense.pro.filter((t=>!e.FamilyStylesByLicense.free.includes(t))):[]];return n.map((t=>{let n="";return"duotone"===t.family?n="d":"classic"===t.family?n=t.style[0]:"sharp"===t.family&&(n="s"+t.style[0]),{className:`fa${n} fa-${e.id}`,prefix:`fa${n}`,iconName:e.id}}))};var io=n(5112);let so=null,co=null;const uo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ugb-custom-icon";return e.match(/(<svg[^>]*class=["'])/)?e.replace(/(<svg[^>]*class=["'])/,`$1${t} `):e.match(/(<svg)/)?e.replace(/(<svg)/,`$1 class="${t}"`):e},po=e=>{let t=e.replace(/(^[\s\S]*?)(<svg)/gm,"$2").replace(/(<\/svg>)([\s\S]*)/g,"$1");const n=Math.floor(Math.random()*(new Date).getTime())%1e5;t=t.replace(/id="([^"]*)"/g,`id="$1-${n}"`),t=t.replace(/url\(#([^)]*)\)/g,`url(#$1-${n})`),t=t.replace(/href="#([^"]*)"/g,`href="#$1-${n}"`),-1!==t.indexOf("\x3c!--")&&(t=t.replace(/<!--[\s\S]*?-->/gm,""));for(let e=0;e<2;e++)t=t.replace(/\s*<g\s*>([\s\S]*?)<\/g>\s*/gm,"$1");return t=t.replace(/<svg([^>]*)width=(["'])[^"']*["']([^>]*)/g,"<svg$1$3").replace(/<svg([^>]*)height=(["'])[^"']*["']([^>]*)/g,"<svg$1$3"),t},ho=e=>{const[t,n]=(0,o.useState)(""),[a,l]=(0,o.useState)({faIcons:[],iconLibrary:[]}),[r,i]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),p=e.returnSVGValue;(0,o.useEffect)((()=>{let e=!0;return clearTimeout(so),so=setTimeout((()=>{e&&(i(!0),async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"icon",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.fontAwesomeSearchProIcons;const n=`{ search(version: "${(g.iconsFaKit?g.iconsFaProKitVersion:g.iconsFaFreeKitVersion||"6.5.1")||"6.5.1"}", first: 50, query: "${(e||"info").replace(/["'\\]/g,"")}") {\n\t\t\tid,\n\t\t\tFamilyStylesByLicense {\n\t\t\t\tfree { style, family },\n\t\t\t\t${t?"pro { style, family }":""}\n\t\t\t}\n\t\t} }`,o=(await fetch("https://api.fontawesome.com",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({query:n})}).then((e=>e.json()))).data.search.reduce(((e,n)=>(ro(n,t).forEach((t=>{e.push(t)})),e)),[]),a=(0,B.applyFilters)("stackable.global-settings.inspector.icon-library.search-icons",null,e);return{faIcons:o,iconLibrary:a}}(t).then((t=>{e&&l(t)})).finally((()=>{e&&i(!1)})))}),500),()=>{e=!1,clearTimeout(so)}}),[t]),(0,o.useEffect)((()=>{co||(co=wp.data.select("core/block-editor").getSettings().mediaUpload),d?wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:null}):wp.data.select("core/block-editor").getSettings().mediaUpload!==co&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:co})}),[d]);const m=s()(["ugb-icon-popover__label-container"],{"ugb-icon--has-settings":g.isPro,"ugb-icon--has-upload":p,"ugb-icon--has-reset":e.allowReset}),v=(0,B.applyFilters)("stackable.global-settings.inspector.icon-library.icons",o.Fragment),b=(0,o.createElement)("div",{className:"stk-icon-search-popover-container"},(0,o.createElement)(io.FileDrop,{onFrameDragEnter:()=>u(!0),onFrameDragLeave:()=>u(!1),onFrameDrop:()=>u(!1),onDrop:t=>{if(!p||!t.length)return void u(!1);if("image/svg+xml"!==t[0].type)return void u(!1);const n=new FileReader;n.onload=function(t){u(!1);const n=po(uo(t.target.result));(0,B.doAction)("stackable.icon-search-popover.svg-upload",n),e.onChange(n),e.onClose()},n.readAsText(t[0])}},(0,o.createElement)("div",{className:m},(0,o.createElement)(c.TextControl,{className:"ugb-icon-popover__input",value:t,onChange:n,placeholder:(0,h.__)("Type to search icon",g.i18n),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),g.isPro&&(0,o.createElement)(f.Z,{className:"ugb-icon-popover__settings-button",icon:"admin-generic",href:g.settingsUrl+"#icon-settings",target:"_settings",iconSize:"16",label:(0,h.__)("Icon Settings",g.i18n),showTooltip:!0,isSmall:!0,isSecondary:!0}),p&&(0,o.createElement)(f.Z,{onClick:t=>{t.preventDefault();const n=document.createElement("input");n.accept="image/svg+xml",n.type="file",n.onchange=t=>{const n=t.target.files;if(!n.length)return void u(!1);const o=new FileReader;o.onload=function(t){u(!1);const n=po(uo(t.target.result));(0,B.doAction)("stackable.icon-search-popover.svg-upload",n),e.onChange(n),e.onClose()},o.readAsText(n[0])},n.click()},isSmall:!0,isPrimary:!0,className:"components-range-control__upload"},(0,h.__)("Upload SVG",g.i18n)),e.allowReset&&(0,o.createElement)(f.Z,{onClick:()=>{e.onChange(e.defaultValue||""),e.onClose()},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},(0,h.__)("Clear icon",g.i18n))),(0,o.createElement)("div",{className:"ugb-icon-popover__iconlist"},r&&(0,o.createElement)(c.Spinner,null),!r&&(0,o.createElement)(v,{icons:a.iconLibrary,onChange:e.onChange,onClose:e.onClose}),!r&&a.faIcons.map(((t,n)=>{let{prefix:a,iconName:l}=t;const r=`${a}-${l}`;return(0,o.createElement)("button",{key:n,className:`components-button ugb-prefix--${a} ugb-icon--${l}`,onClick:async()=>{if(e.returnSVGValue&&e.returnIconName){let t=(0,L.faGetIcon)(a,l);t||(await(0,L.faFetchIcon)(a,l),t=(0,L.faGetIcon)(a,l)),e.onChange(po(t),a,l)}else if(e.returnSVGValue){let t=(0,L.faGetIcon)(a,l);t||(await(0,L.faFetchIcon)(a,l),t=(0,L.faGetIcon)(a,l)),e.onChange(po(t))}else e.onChange(r,a,l);e.onClose()}},(0,o.createElement)(el,{prefix:a,iconName:l}))})),!r&&!a.faIcons.length&&!a.iconLibrary.length&&(0,o.createElement)("p",{className:"components-base-control__help"},(0,h.__)("No matches found",g.i18n))),p&&d&&(0,o.createElement)("div",{className:"ugb-icon-popover__drop-indicator"},(0,o.createElement)(lo,{height:"40",width:"40"}),(0,h.__)("Drop your SVG here",g.i18n))));return e.__hasPopover?(0,o.createElement)(ls.Z,{className:"ugb-icon-popover",onClose:e.onClose,onEscape:e.onClose,onClickOutside:e.__deprecatedOnClickOutside,position:e.__deprecatedPosition,anchorRef:e.__deprecatedAnchorRef,ref:e.__deprecateUseRef},(0,o.createElement)(c.PanelBody,null,b)):b},go=()=>{};ho.defaultProps={onChange:go,onClose:go,returnSVGValue:!0,allowReset:!0,__deprecatedAnchorRef:void 0,__deprecatedPosition:"center",__deprecatedOnClickOutside:go,__hasPopover:!1};const mo=ho,vo=(0,o.memo)((e=>{const[t,n]=(0,o.useState)(!1),a=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(t){const e=e=>{var t,o,l,r;null!==(t=window.wp)&&void 0!==t&&null!==(o=t.media)&&void 0!==o&&null!==(l=o.frame)&&void 0!==l&&null!==(r=l.el)&&void 0!==r&&r.clientHeight||e.target.closest(".ugb-button-icon-control__popover")||(null==a?void 0:a.current)===e.target.closest(".ugb-button-icon-control__edit")||e.target.closest(".components-color-picker")||e.target.closest(".react-autosuggest__suggestions-container")||e.target.closest(".components-dropdown__content")||n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}}),[t]),(0,o.createElement)(ll,{help:e.help,label:e.label,id:"ugb-button-icon-control",className:s()("ugb-button-icon-control",e.className),allowReset:!0,showReset:e.allowReset||!!e.onToggle&&e.checked,onReset:()=>{e.onReset(),e.onToggle&&e.onToggle(!1)},hasLabel:!e.onToggle},e.onToggle&&(0,o.createElement)(c.ToggleControl,{label:e.label,checked:e.checked,onChange:e.onToggle,__nextHasNoMarginBottom:!0}),(0,o.createElement)("div",{className:"ugb-button-icon-control__wrapper"},(0,o.createElement)(f.Z,{onClick:()=>n((e=>!e)),className:"ugb-button-icon-control__edit",label:(0,h.__)("Edit",g.i18n),isSecondary:!0,icon:"edit",ref:a}),t&&(0,o.createElement)(ls.Z,{className:"ugb-button-icon-control__popover",focusOnMount:"container",onEscape:()=>n(!1)},(0,o.createElement)(c.PanelBody,null,(void 0!==e.popoverLabel?e.popoverLabel:e.label)&&(0,o.createElement)("h2",{className:"components-panel__body-title"},e.popoverLabel||e.label),e.children))))}));vo.defaultProps={help:"",label:"",popoverLabel:void 0,className:"",allowReset:!1,onReset:()=>{},checked:!1,onToggle:void 0};const bo=vo,fo=e=>{const{isAllowReset:t}=e,n=(0,o.useMemo)((()=>"function"==typeof e.placeholder?e.fontSize||Math.round(e.placeholder((0,L.getDefaultFontSize)(e.htmlTag,!0))):e.fontSize||e.placeholder||(0,L.getDefaultFontSize)(e.htmlTag,!0)),[e.htmlTag,e.fontSize]),l=void 0!==typeof t?t:e.fontFamily||e.fontSize||e.tabletFontSize||e.mobileFontSize||e.fontWeight||e.textTransform||e.lineHeight||e.tabletLineHeight||e.mobileLineHeight||e.letterSpacing||e.tabletLetterSpacing||e.mobileLetterSpacing;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(bo,{label:e.label,popoverLabel:e.popoverLabel,onReset:e.onReset,allowReset:l,resetPopoverTitle:e.resetPopoverTitle,resetPopoverDescription:e.resetPopoverDescription,className:e.className,help:e.help},e.onChangeFontFamily&&(0,o.createElement)(De,{label:(0,h.__)("Font Family",g.i18n),onChange:e.onChangeFontFamily,value:e.fontFamily,defaultValue:null==e?void 0:e.defaultFontFamily,placeholder:(0,h.__)("Default",g.i18n),helpTooltip:{video:"typography-family",description:(0,h.__)("Sets the font set to be used for the element",g.i18n)}}),e.onChangeFontSize&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Xo,null,(0,o.createElement)(ze,(0,a.Z)({label:(0,h.__)("Size",g.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:n,helpTooltip:{title:(0,h.__)("Font size",g.i18n),description:(0,h.__)("Sets the size of text characters",g.i18n)}}))),(0,o.createElement)(Xo,{screen:"tablet"},(0,o.createElement)(ze,(0,a.Z)({label:(0,h.__)("Size",g.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletFontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{helpTooltip:{title:(0,h.__)("Font size",g.i18n),description:(0,h.__)("Sets the size of text characters",g.i18n)}}))),(0,o.createElement)(Xo,{screen:"mobile"},(0,o.createElement)(ze,(0,a.Z)({label:(0,h.__)("Size",g.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobileFontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{helpTooltip:{title:(0,h.__)("Font size",g.i18n),description:(0,h.__)("Sets the size of text characters",g.i18n)}})))),e.onChangeFontWeight&&(0,o.createElement)(ue,{label:(0,h.__)("Weight",g.i18n),options:[{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"},{label:(0,h.__)("Default",g.i18n),value:""},{label:(0,h.__)("Normal",g.i18n),value:"normal"},{label:(0,h.__)("Bold",g.i18n),value:"bold"}],onChange:e.onChangeFontWeight,value:e.fontWeight,helpTooltip:{video:"typography-weight",title:(0,h.__)("Font weight",g.i18n),description:(0,h.__)("Sets the thinness or thickness of text characters",g.i18n)}}),e.onChangeTextTransform&&(0,o.createElement)(ue,{label:(0,h.__)("Transform",g.i18n),options:[{label:(0,h.__)("Default",g.i18n),value:""},{label:(0,h.__)("Uppercase",g.i18n),value:"uppercase"},{label:(0,h.__)("Lowercase",g.i18n),value:"lowercase"},{label:(0,h.__)("Capitalize",g.i18n),value:"capitalize"},{label:(0,h.__)("None",g.i18n),value:"none"}],onChange:e.onChangeTextTransform,value:e.textTransform,helpTooltip:{video:"typography-transform",title:(0,h.__)("Transform",g.i18n),description:(0,h.__)("Sets the usage of upper or lower case",g.i18n)}}),e.onChangeLineHeight&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Xo,null,(0,o.createElement)(ce,{label:(0,h.__)("Line-Height",g.i18n),units:e.lineHeightUnits,min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.lineHeight,onChange:e.onChangeLineHeight,unit:e.lineHeightUnit,onChangeUnit:e.onChangeLineHeightUnit,initialPosition:[37,1.8],helpTooltip:{video:"typography-line-height",title:(0,h.__)("Line height",g.i18n),description:(0,h.__)("Sets the vertical distance between lines of text",g.i18n)}})),(0,o.createElement)(Xo,{screen:"tablet"},(0,o.createElement)(ce,{label:(0,h.__)("Line-Height",g.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.tabletLineHeight,onChange:e.onChangeTabletLineHeight,unit:e.tabletLineHeightUnit,onChangeUnit:e.onChangeTabletLineHeightUnit,initialPosition:[37,1.8],helpTooltip:{video:"typography-line-height",title:(0,h.__)("Line height",g.i18n),description:(0,h.__)("Sets the vertical distance between lines of text",g.i18n)}})),(0,o.createElement)(Xo,{screen:"mobile"},(0,o.createElement)(ce,{label:(0,h.__)("Line-Height",g.i18n),units:["px","em"],min:[1,.1],max:[100,10],step:[1,.1],placeholder:[30,1.5],allowReset:!0,value:e.mobileLineHeight,onChange:e.onChangeMobileLineHeight,unit:e.mobileLineHeightUnit,onChangeUnit:e.onChangeMobileLineHeightUnit,initialPosition:[37,1.8],helpTooltip:{video:"typography-line-height",title:(0,h.__)("Line height",g.i18n),description:(0,h.__)("Sets the vertical distance between lines of text",g.i18n)}}))),e.onChangeLetterSpacing&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Xo,null,(0,o.createElement)(ce,{label:(0,h.__)("Letter Spacing",g.i18n),min:-5,max:10,step:.1,allowReset:!0,onChange:e.onChangeLetterSpacing,value:e.letterSpacing,placeholder:"0",helpTooltip:{video:"typography-letter-spacing",title:(0,h.__)("Letter spacing",g.i18n),description:(0,h.__)("Sets the distance or space between letters",g.i18n)}})),(0,o.createElement)(Xo,{screen:"tablet"},(0,o.createElement)(ce,{label:(0,h.__)("Letter Spacing",g.i18n),min:-5,max:10,step:.1,allowReset:!0,value:e.tabletLetterSpacing,onChange:e.onChangeTabletLetterSpacing,placeholder:"0",helpTooltip:{video:"typography-letter-spacing",title:(0,h.__)("Letter spacing",g.i18n),description:(0,h.__)("Sets the distance or space between letters",g.i18n)}})),(0,o.createElement)(Xo,{screen:"mobile"},(0,o.createElement)(ce,{label:(0,h.__)("Letter Spacing",g.i18n),min:-5,max:10,step:.1,allowReset:!0,value:e.mobileLetterSpacing,onChange:e.onChangeMobileLetterSpacing,placeholder:"0",helpTooltip:{video:"typography-letter-spacing",title:(0,h.__)("Letter spacing",g.i18n),description:(0,h.__)("Sets the distance or space between letters",g.i18n)}})))),e.showSecondFontSize&&e.onChangeFontSize&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Xo,null,(0,o.createElement)(ze,(0,a.Z)({label:(0,h.__)("Size",g.i18n),onChange:e.onChangeFontSize,value:e.fontSize,allowReset:!0,unit:e.fontSizeUnit,onChangeUnit:e.onChangeFontSizeUnit},e.fontSizeProps,{placeholder:n,helpTooltip:{title:(0,h.__)("Font size",g.i18n),description:(0,h.__)("Sets the size of text characters",g.i18n)}}))),(0,o.createElement)(Xo,{screen:"tablet"},(0,o.createElement)(ze,(0,a.Z)({label:(0,h.__)("Size",g.i18n),onChange:e.onChangeTabletFontSize,value:e.tabletFontSize,allowReset:!0,unit:e.tabletFontSizeUnit,onChangeUnit:e.onChangeTabletFontSizeUnit},e.fontSizeProps,{helpTooltip:{title:(0,h.__)("Font size",g.i18n),description:(0,h.__)("Sets the size of text characters",g.i18n)}}))),(0,o.createElement)(Xo,{screen:"mobile"},(0,o.createElement)(ze,(0,a.Z)({label:(0,h.__)("Size",g.i18n),onChange:e.onChangeMobileFontSize,value:e.mobileFontSize,allowReset:!0,unit:e.mobileFontSizeUnit,onChangeUnit:e.onChangeMobileFontSizeUnit},e.fontSizeProps,{helpTooltip:{title:(0,h.__)("Font size",g.i18n),description:(0,h.__)("Sets the size of text characters",g.i18n)}})))))};fo.defaultProps={label:(0,h.__)("Typography",g.i18n),popoverLabel:void 0,showSecondFontSize:!0,fontFamily:"",fontSize:"",tabletFontSize:"",mobileFontSize:"",fontSizeUnit:"px",tabletFontSizeUnit:"px",mobileFontSizeUnit:"px",fontWeight:"",textTransform:"",lineHeight:"",tabletLineHeight:"",mobileLineHeight:"",lineHeightUnit:"em",lineHeightUnits:["px","em"],tabletLineHeightUnit:"em",mobileLineHeightUnit:"em",letterSpacing:"",tabletLetterSpacing:"",mobileLetterSpacing:"",fontSizeProps:{},resetPopoverTitle:"",resetPopoverDescription:"",placeholder:"",htmlTag:"p",onReset:()=>{},onChangeFontFamily:()=>{},onChangeFontSize:()=>{},onChangeTabletFontSize:()=>{},onChangeMobileFontSize:()=>{},onChangeFontSizeUnit:()=>{},onChangeTabletFontSizeUnit:()=>{},onChangeMobileFontSizeUnit:()=>{},onChangeFontWeight:()=>{},onChangeTextTransform:()=>{},onChangeLineHeight:()=>{},onChangeTabletLineHeight:()=>{},onChangeMobileLineHeight:()=>{},onChangeLineHeightUnit:()=>{},onChangeTabletLineHeightUnit:()=>{},onChangeMobileLineHeightUnit:()=>{},onChangeLetterSpacing:()=>{},onChangeTabletLetterSpacing:()=>{},onChangeMobileLetterSpacing:()=>{}};const ko=fo,yo=e=>(0,o.createElement)(o.Fragment,null,e.onChangeBorderType&&(0,o.createElement)(Oe,{label:(0,h.__)("Borders",g.i18n),controls:[{value:"",title:(0,h.__)("None",g.i18n)},{value:"solid",title:(0,h.__)("Solid",g.i18n)},{value:"dashed",title:(0,h.__)("Dashed",g.i18n)},{value:"dotted",title:(0,h.__)("Dotted",g.i18n)}],className:"ugb-border-controls__border-type-toolbar",value:e.borderType,onChange:e.onChangeBorderType,fullwidth:!0,isSmall:!0}),e.onChangeBorderWidth&&e.borderType&&(0,o.createElement)(Eo,{label:(0,h.__)("Border Width",g.i18n),units:["px"],min:0,max:99,step:1,sliderMax:5,defaultLocked:!0,valueDesktop:{top:e.borderWidthTop,right:e.borderWidthRight,bottom:e.borderWidthBottom,left:e.borderWidthLeft},onChangeDesktop:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeBorderWidth({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):"",borderType:e.borderType?void 0:"solid"})},valueTablet:{top:e.tabletBorderWidthTop,right:e.tabletBorderWidthRight,bottom:e.tabletBorderWidthBottom,left:e.tabletBorderWidthLeft},onChangeTablet:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeTabletBorderWidth({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},valueMobile:{top:e.mobileBorderWidthTop,right:e.mobileBorderWidthRight,bottom:e.mobileBorderWidthBottom,left:e.mobileBorderWidthLeft},onChangeMobile:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeMobileBorderWidth({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},placeholder:"1",placeholderTop:"1",placeholderLeft:"1",placeholderBottom:"1",placeholderRight:"1"}),e.onChangeBorderColor&&e.borderType&&(0,o.createElement)(O,{value:e.borderColor,onChange:t=>{e.onChangeBorderColor({color:t,borderType:e.borderType?void 0:"solid"})},label:(0,h.__)("Border Color",g.i18n)}));yo.defaultProps={onResetBorder:()=>{},borderType:"",onChangeBorderType:()=>{},borderWidthTop:"",borderWidthRight:"",borderWidthBottom:"",borderWidthLeft:"",tabletBorderWidthTop:"",tabletBorderWidthRight:"",tabletBorderWidthBottom:"",tabletBorderWidthLeft:"",mobileBorderWidthTop:"",mobileBorderWidthRight:"",mobileBorderWidthBottom:"",mobileBorderWidthLeft:"",onChangeBorderWidth:()=>{},onChangeTabletBorderWidth:()=>{},onChangeMobileBorderWidth:()=>{},borderColor:"",onChangeBorderColor:()=>{}};const _o=yo,Co=e=>{const{setAttributes:t}=e,n=t=>(0,m.camelCase)((0,h.sprintf)(e.attrNameTemplate,t)),l=(0,L.__getValue)(e.blockAttributes,n,"");return(0,o.createElement)(_o,(0,a.Z)({borderType:l("BorderType"),onChangeBorderType:e=>t({[n("BorderType")]:e}),onResetBorder:()=>{t({[n("BorderType")]:""})},borderWidthTop:l("BorderWidthTop"),borderWidthRight:l("BorderWidthRight"),borderWidthBottom:l("BorderWidthBottom"),borderWidthLeft:l("BorderWidthLeft"),tabletBorderWidthTop:l("TabletBorderWidthTop"),tabletBorderWidthRight:l("TabletBorderWidthRight"),tabletBorderWidthBottom:l("TabletBorderWidthBottom"),tabletBorderWidthLeft:l("TabletBorderWidthLeft"),mobileBorderWidthTop:l("MobileBorderWidthTop"),mobileBorderWidthRight:l("MobileBorderWidthRight"),mobileBorderWidthBottom:l("MobileBorderWidthBottom"),mobileBorderWidthLeft:l("MobileBorderWidthLeft"),onChangeBorderWidth:e=>{let{top:o,right:a,bottom:l,left:r,borderType:i}=e;const s={[n("BorderWidthTop")]:o,[n("BorderWidthRight")]:a,[n("BorderWidthBottom")]:l,[n("BorderWidthLeft")]:r};i&&(s[n("BorderType")]=i),t(s)},onChangeTabletBorderWidth:e=>{let{top:o,right:a,bottom:l,left:r}=e;t({[n("TabletBorderWidthTop")]:o,[n("TabletBorderWidthRight")]:a,[n("TabletBorderWidthBottom")]:l,[n("TabletBorderWidthLeft")]:r})},onChangeMobileBorderWidth:e=>{let{top:o,right:a,bottom:l,left:r}=e;t({[n("MobileBorderWidthTop")]:o,[n("MobileBorderWidthRight")]:a,[n("MobileBorderWidthBottom")]:l,[n("MobileBorderWidthLeft")]:r})},borderColor:l("BorderColor"),onChangeBorderColor:e=>{let{color:o,borderType:a}=e;const l={[n("BorderColor")]:o};a&&(l[n("BorderType")]=a),t(l)}},e))};Co.defaultProps={attrNameTemplate:"%s",setAttributes:()=>{},blockAttributes:{}};const wo=Co,So=e=>{const t=(0,m.pick)(e,["label","units","screens","defaultLocked","enableTop","enableRight","enableBottom","enableLeft","className","sliderMax","sliderMin"]),n=Array.isArray(e.min)?e.min:[e.min,e.min,e.min],l=Array.isArray(e.max)?e.max:[e.max,e.max,e.max],r=Array.isArray(e.sliderMin)?e.sliderMin:[e.sliderMin,e.sliderMin,e.sliderMin],i=Array.isArray(e.sliderMax)?e.sliderMax:[e.sliderMax,e.sliderMax,e.sliderMax],s=Array.isArray(e.step)?e.step:[e.step,e.step,e.step];return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Xo,{screen:"desktop"},(0,o.createElement)(qo,(0,a.Z)({},t,{min:n[0],max:l[0],sliderMin:r[0],sliderMax:i[0],step:s[0],top:e.valueDesktop.top,right:e.valueDesktop.right,bottom:e.valueDesktop.bottom,left:e.valueDesktop.left,unit:e.valueDesktopUnit||e.units[0],onChange:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeDesktop({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},onChangeUnit:t=>e.onChangeDesktopUnit(t),placeholder:e.placeholder,placeholderTop:e.placeholderTop,placeholderLeft:e.placeholderLeft,placeholderBottom:e.placeholderBottom,placeholderRight:e.placeholderRight}))),(0,o.createElement)(Xo,{screen:"tablet"},(0,o.createElement)(qo,(0,a.Z)({},t,{min:n[1],max:l[1],sliderMin:r[1],sliderMax:i[1],step:s[1],top:e.valueTablet.top,right:e.valueTablet.right,bottom:e.valueTablet.bottom,left:e.valueTablet.left,unit:e.valueTabletUnit||e.units[0],onChange:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeTablet({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},onChangeUnit:t=>e.onChangeTabletUnit(t)}))),(0,o.createElement)(Xo,{screen:"mobile"},(0,o.createElement)(qo,(0,a.Z)({},t,{min:n[2],max:l[2],sliderMin:r[2],sliderMax:i[2],step:s[2],top:e.valueMobile.top,right:e.valueMobile.right,bottom:e.valueMobile.bottom,left:e.valueMobile.left,unit:e.valueMobileUnit||e.units[0],onChange:t=>{let{top:n,right:o,bottom:a,left:l}=t;e.onChangeMobile({top:n||0===n?parseInt(n,10):"",right:o||0===o?parseInt(o,10):"",bottom:a||0===a?parseInt(a,10):"",left:l||0===l?parseInt(l,10):""})},onChangeUnit:t=>e.onChangeMobileUnit(t)}))))};So.defaultProps={label:(0,h.__)("Spacing",g.i18n),defaultLocked:!0,units:["px","em","%","vw"],screens:["desktop","tablet","mobile"],min:0,max:1/0,sliderMax:null,sliderMin:null,step:1,enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,valueDesktop:{},valueTablet:{},valueMobile:{},valueDesktopUnit:"",valueTabletUnit:"",valueMobileUnit:"",onChangeDesktop:()=>{},onChangeTablet:()=>{},onChangeMobile:()=>{},onChangeDesktopUnit:()=>{},onChangeTabletUnit:()=>{},onChangeMobileUnit:()=>{},placeholderTop:"60",placeholderLeft:"35",placeholderBottom:"60",placeholderRight:"35",placeholder:""};const Eo=So,xo=e=>{const{initialOpen:t,...n}=e,[a,l]=(0,o.useState)(t),r=s()(["ugb-pro-control-button__wrapper"],{"ugb-pro-control-button--hidden":!a});return(0,o.createElement)("div",{className:"components-base-control ugb-pro-control-button"},(0,o.createElement)("button",{className:"ugb-pro-control-more-dots",onClick:()=>l((e=>!e))},(0,o.createElement)("div",{className:"ugb-pro-control-more-dots__dot stk-pulsating-circle"}),(0,o.createElement)("div",{className:"ugb-pro-control-more-dots__dot stk-pulsating-circle"}),(0,o.createElement)("div",{className:"ugb-pro-control-more-dots__dot stk-pulsating-circle"})),(0,o.createElement)("div",{className:r},(0,o.createElement)(hn.Z,n)))};xo.defaultProps={initialOpen:!1};const To=xo;var Bo=n(6500),Mo=n(2046);const Ao=e=>{var t;const n="all"===e.screens?["desktop","tablet","mobile"]:e.screens,l=(null===(t=e.units)||void 0===t?void 0:t.map((e=>({value:e}))))||[];return(0,o.createElement)("div",{className:"ugb-base-control-multi-label"},(0,o.createElement)(Yn.Z,(0,a.Z)({label:e.label},e.helpTooltip)),(0,o.createElement)(Mo.Z,{screens:n}),(0,o.createElement)("div",{className:"ugb-base-control-multi-label__units"},(0,o.createElement)(Bo.Z,{className:"stk-control-unit-toggle",value:e.unit,options:l,onChange:t=>e.onChangeUnit(t),labelPosition:"left",buttonLabel:(0,h.__)("Unit",g.i18n),hasLabels:!1,hasColors:!1}),e.afterButton))};Ao.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:()=>{},screens:["desktop"],afterButton:null};const No=Ao;class Io extends o.Component{constructor(){super(...arguments);const e=this.getEnabledValues(),t=!e.length||e.every((t=>t===e[0])),n=e.every((e=>""===e));this.state={locked:n?this.props.defaultLocked:t},this.onToggleLock=this.onToggleLock.bind(this),this.onChangeTop=this.onChangeTop.bind(this),this.onChangeRight=this.onChangeRight.bind(this),this.onChangeBottom=this.onChangeBottom.bind(this),this.onChangeLeft=this.onChangeLeft.bind(this)}getEnabledValues(){return[...this.props.enableTop?[this.props.top]:[],...this.props.enableRight?[this.props.right]:[],...this.props.enableBottom?[this.props.bottom]:[],...this.props.enableLeft?[this.props.left]:[]]}getEnabledLocations(){return[...this.props.enableTop?["top"]:[],...this.props.enableRight?["right"]:[],...this.props.enableBottom?["bottom"]:[],...this.props.enableLeft?["left"]:[]]}filterOnlyEnabled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,m.pick)(e,this.getEnabledLocations())}onToggleLock(){this.setState({locked:!this.state.locked})}onChangeTop(e){const t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange({...this.getEnabledValues(),top:n})}onChangeRight(e){const t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange({...this.getEnabledValues(),right:n})}onChangeBottom(e){const t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange({...this.getEnabledValues(),bottom:n})}onChangeLeft(e){const t=e.target.value,n=t||0===t?t:"";this.state.locked?this.props.onChange(this.filterOnlyEnabled({top:n,right:n,bottom:n,left:n})):this.props.onChange({...this.getEnabledValues(),left:n})}render(){const{instanceId:e}=this.props,t=`ugb-four-number-control-${e}__item-`;return(0,o.createElement)(c.BaseControl,{help:this.props.help,className:s()("ugb-four-number-control",this.props.className),__nextHasNoMarginBottom:!0},(0,o.createElement)(No,{label:this.props.label,units:this.props.units,unit:this.props.unit,onChangeUnit:this.props.onChangeUnit,screens:this.props.screens}),(0,o.createElement)("div",{className:"ugb-four-number-control__wrapper"},(0,o.createElement)("label",{className:"ugb-four-number-control__label",htmlFor:`${t}-top`},(0,o.createElement)("input",{id:`${t}-top`,type:"number",onChange:this.onChangeTop,"aria-label":(0,h.__)("Top",g.i18n),value:this.props.top,placeholder:this.props.enableTop?"":(0,h.__)("auto",g.i18n),disabled:!this.props.enableTop}),(0,o.createElement)("span",null,(0,h.__)("Top",g.i18n))),(0,o.createElement)("label",{className:"ugb-four-number-control__label",htmlFor:`${t}-right`},(0,o.createElement)("input",{id:`${t}-right`,type:"number",onChange:this.onChangeRight,"aria-label":this.props.label,value:this.props.right,placeholder:this.props.enableRight?"":(0,h.__)("auto",g.i18n),disabled:!this.props.enableRight}),(0,o.createElement)("span",null,(0,h.__)("Right",g.i18n))),(0,o.createElement)("label",{className:"ugb-four-number-control__label",htmlFor:`${t}-bottom`},(0,o.createElement)("input",{id:`${t}-bottom`,type:"number",onChange:this.onChangeBottom,"aria-label":this.props.label,value:this.props.bottom,placeholder:this.props.enableBottom?"":(0,h.__)("auto",g.i18n),disabled:!this.props.enableBottom}),(0,o.createElement)("span",null,(0,h.__)("Bottom",g.i18n))),(0,o.createElement)("label",{className:"ugb-four-number-control__label",htmlFor:`${t}-left`},(0,o.createElement)("input",{id:`${t}-left`,type:"number",onChange:this.onChangeLeft,"aria-label":this.props.label,value:this.props.left,placeholder:this.props.enableLeft?"":(0,h.__)("auto",g.i18n),disabled:!this.props.enableLeft}),(0,o.createElement)("span",null,(0,h.__)("Left",g.i18n))),(0,o.createElement)(f.Z,{className:this.state.locked?"ugb--is-locked":"",onClick:this.onToggleLock,icon:(0,o.createElement)(c.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})})))}}Io.defaultProps={onChange:()=>{},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:()=>{},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0};const Ro=(0,te.withInstanceId)(Io),Po=function(e){return(0,o.createElement)("svg",(0,a.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,o.createElement)("path",{d:"M0 6V0h6v2L5 3H3v2L2 6H0zM16 10v6h-6v-2l1-1h2v-2l1-1h2zM10 0h6v6h-2l-1-1V3h-2l-1-1V0zM6 16H0v-6h2l1 1v2h2l1 1v2z",fill:"#555D63"}))},Oo=function(e){return(0,o.createElement)("svg",(0,a.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,o.createElement)("path",{d:"M16 10v6h-6v-2l1-1h2v-2l1-1h2z",fill:"#555D63"}))},Ho=function(e){return(0,o.createElement)("svg",(0,a.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,o.createElement)("path",{d:"M6 16H0v-6h2l1 1v2h2l1 1v2z",fill:"#555D63"}))},zo=function(e){return(0,o.createElement)("svg",(0,a.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,o.createElement)("path",{d:"M10 0h6v6h-2l-1-1V3h-2l-1-1V0z",fill:"#555D63"}))},Lo=function(e){return(0,o.createElement)("svg",(0,a.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{opacity:.06,d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555D63"}),(0,o.createElement)("path",{d:"M0 6V0h6v2L5 3H3v2L2 6H0z",fill:"#555D63"}))},Do=function(e){return(0,o.createElement)("svg",(0,a.Z)({id:"all_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",xmlSpace:"preserve"},e),(0,o.createElement)("style",null,".all_svg__st0{fill:#555d63}"),(0,o.createElement)("path",{className:"all_svg__st0",d:"M13 11.5v-7l2.3-1.9c.3-.2.7-.1.7.1v10.5c0 .2-.3.3-.7.2L13 11.5zM3 4.5v7L.7 13.4c-.3.2-.7.1-.7-.1V2.7c0-.2.3-.3.7-.2l2.3 2zM11.5 3h-7L2.6.7c-.2-.3-.1-.7.1-.7h10.5c.2 0 .3.3.2.7L11.5 3zM4.5 13h7l1.9 2.3c.2.2.1.7-.2.7H2.7c-.2 0-.3-.3-.2-.7l2-2.3z"}))},Fo=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,o.createElement)("path",{d:"M3.8 13h8.4l2.2 2.3c.2.2.1.7-.2.7H1.8c-.3 0-.4-.3-.2-.7L3.8 13z",fill:"#555d63"}))},$o=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,o.createElement)("path",{d:"M3 3.8v8.4L.7 14.3c-.3.3-.7.2-.7-.1V1.9c0-.4.4-.5.7-.3L3 3.8z",fill:"#555d63"}))},Uo=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,o.createElement)("path",{d:"M13 12.2V3.8l2.3-2.2c.3-.2.7-.1.7.2v12.4c0 .3-.3.4-.7.2L13 12.2z",fill:"#555d63"}))},Wo=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,o.createElement)("path",{d:"M1.6.7c-.2-.3-.1-.7.2-.7h12.4c.3 0 .4.3.2.7L12.2 3H3.8L1.6.7z",fill:"#555d63"}))},Vo=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",fill:"#555d63"}))},Go=function(e){return(0,o.createElement)("svg",(0,a.Z)({id:"vertical_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",xmlSpace:"preserve"},e),(0,o.createElement)("style",null,".vertical_svg__st1{fill:#555d63}"),(0,o.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,o.createElement)("path",{className:"vertical_svg__st1",d:"M3.8 13h8.4l2.2 2.3c.2.2.1.7-.2.7H1.8c-.3 0-.4-.3-.2-.7L3.8 13zM1.6.7c-.2-.3-.1-.7.2-.7h12.4c.3 0 .4.3.2.7L12.2 3H3.8L1.6.7z"}))},jo=function(e){return(0,o.createElement)("svg",(0,a.Z)({id:"horizontal_svg__Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",xmlSpace:"preserve"},e),(0,o.createElement)("style",null,".horizontal_svg__st1{fill:#555d63}"),(0,o.createElement)("path",{d:"M0 0v16h16V0H0zm13 13H3V3h10v10z",opacity:.06,fill:"#555d63"}),(0,o.createElement)("path",{className:"horizontal_svg__st1",d:"M3 3.8v8.4L.7 14.3c-.3.3-.7.2-.7-.1V1.9c0-.4.4-.5.7-.3L3 3.8zM13 12.2V3.8l2.3-2.2c.3-.2.7-.1.7.2v12.4c0 .3-.3.4-.7.2L13 12.2z"}))},Zo=(0,o.memo)((e=>{var t,n;const[l,r]=(0,T.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[i,d]=(0,E.ED)(e),[u]=(0,I.useBlockHoverState)();let p=l||{top:e.defaultTop,right:e.defaultRight,bottom:e.defaultBottom,left:e.defaultLeft};(void 0!==e.top||void 0!==e.right||void 0!==e.bottom||void 0!==e.left)&&(p={top:void 0!==e.top?e.top:e.enableTop?e.defaultTop:void 0,right:void 0!==e.right?e.right:e.enableRight?e.defaultRight:void 0,bottom:void 0!==e.bottom?e.bottom:e.enableBottom?e.defaultBottom:void 0,left:void 0!==e.left?e.left:e.enableLeft?e.defaultLeft:void 0});const m=void 0===e.onChange?r:e.onChange,v=e.enableTop&&""===p.top&&e.enableRight&&""===p.right&&e.enableBottom&&""===p.bottom&&e.enableLeft&&""===p.left;let b=e.enableTop?p.top:e.enableRight?p.right:e.enableBottom?p.bottom:p.left;const[k,y]=(0,o.useState)(v?e.defaultLocked:((e,t,n)=>{let o=!0;return o=(!e.enableTop||t.top===n)&&o,o=(!e.enableRight||t.right===n)&&o,o=(!e.enableBottom||t.bottom===n)&&o,o=(!e.enableLeft||t.left===n)&&o,o})(e,p,b)),_=s()(["ugb-four-range-control__lock"],{"ugb--is-locked":e.hasLock&&k});d.after=e.hasLock&&(0,o.createElement)(f.Z,{className:_,onClick:()=>y(!k),variation:"tertiary",icon:k?e.isCorner?(0,o.createElement)(Po,null):(0,o.createElement)(Do,null):(0,o.createElement)(Vo,null),label:k?(0,h.__)("Individual sides",g.i18n):(0,h.__)("All sides",g.i18n)});const C=(0,I.useBlockSetAttributesContext)(),w=!(null===(t=e.units)||void 0===t||!t.length),S=(0,I.useAttributeName)(`${e.attribute}Unit`,e.responsive,e.hover),{unit:B,_valueDesktop:M,_valueTablet:A,_unitDesktop:R,_unitTablet:P}=(0,I.useBlockAttributesContext)((t=>({unit:t[S],_valueDesktop:t[`${e.attribute}`],_valueTablet:t[`${e.attribute}Tablet`],_unitDesktop:t[`${e.attribute}Unit`],_unitTablet:t[`${e.attribute}UnitTablet`]}))),O=!(null!==(n=null===g.settings||void 0===g.settings?void 0:g.settings.stackable_use_size_presets_by_default)&&void 0!==n&&!n);if(w){const t=e.units.indexOf(B)<0?0:e.units.indexOf(B);Array.isArray(e.min)&&(i.min=e.min[t]),Array.isArray(e.max)&&(i.max=e.max[t]),Array.isArray(e.sliderMin)&&(i.sliderMin=e.sliderMin[t]),Array.isArray(e.sliderMax)&&(i.sliderMax=e.sliderMax[t]),Array.isArray(e.step)&&(i.step=e.step[t]),Array.isArray(e.placeholder)&&(i.placeholder=e.placeholder[t]),i.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,0!==t&&(i.initialPosition="",i.placeholder=e.placeholder)}else i.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder;const H=(0,I.useDeviceType)(),z=A&&""!==A&&A.top&&""!==A.top,D=A&&""!==A&&A.right&&""!==A.right,F=A&&""!==A&&A.bottom&&""!==A.bottom,$=A&&""!==A&&A.left&&""!==A.left,U=e.enableTop?A&&""!==A&&A.top&&""!==A.top:e.enableRight?A&&""!==A&&A.right&&""!==A.right:e.enableBottom?A&&""!==A&&A.bottom&&""!==A.bottom:A&&""!==A&&A.left&&""!==A.left,W=M&&""!==M&&M.top&&""!==M.top,V=M&&""!==M&&M.right&&""!==M.right,G=M&&""!==M&&M.bottom&&""!==M.bottom,j=M&&""!==M&&M.left&&""!==M.left,Z=e.enableTop?M&&""!==M&&M.top&&""!==M.top:e.enableRight?M&&""!==M&&M.right&&""!==M.right:e.enableBottom?M&&""!==M&&M.bottom&&""!==M.bottom:M&&""!==M&&M.left&&""!==M.left,{desktop:q,tablet:Y}=e.enableTop?{desktop:null==M?void 0:M.top,tablet:null==A?void 0:A.top}:e.enableRight?{desktop:null==M?void 0:M.right,tablet:null==A?void 0:A.right}:e.enableBottom?{desktop:null==M?void 0:M.bottom,tablet:null==A?void 0:A.bottom}:{desktop:null==M?void 0:M.left,tablet:null==A?void 0:A.left},K=(0,o.useRef)({first:!1,top:!1,right:!1,bottom:!1,left:!1,vertical:!1,horizontal:!1}),X={first:!!e.marks&&O,top:!!e.marks&&O,right:!!e.marks&&O,bottom:!!e.marks&&O,left:!!e.marks&&O};if(e.marks&&b){const t=(0,L.getCSSVarName)(b),n=e.marks.find((e=>(0,L.getCSSVarName)(e.value)===t));X.first=!!n,n&&(b=n.value),["top","right","bottom","left"].forEach((t=>{const n=(0,L.getCSSVarName)(p[t]),o=e.marks.find((e=>(0,L.getCSSVarName)(e.value)===n));X[t]=!!o,o&&(p[t]=o.value)}))}const[J,Q]=(0,o.useState)(X);(0,o.useEffect)((()=>{Q(X)}),[H]);const ee=t=>{const n=e.marks?String(t):t;m({top:e.enableTop?n:p.top,right:e.enableRight?n:p.right,bottom:e.enableBottom?n:p.bottom,left:e.enableLeft?n:p.left}),Q((e=>({...e,top:e.first,right:e.first,bottom:e.first,left:e.first})))},te=t=>{const n=e.marks?String(t):t;m({top:n,right:p.right,bottom:p.bottom,left:p.left}),Q((e=>({...e,first:e.top})))},ne=t=>{const n=e.marks?String(t):t;m({top:p.top,right:n,bottom:p.bottom,left:p.left}),Q((e=>({...e,first:e.right})))},oe=t=>{const n=e.marks?String(t):t;m({top:p.top,right:p.right,bottom:n,left:p.left}),Q((e=>({...e,first:e.bottom})))},ae=t=>{const n=e.marks?String(t):t;m({top:p.top,right:p.right,bottom:p.bottom,left:n}),Q((e=>({...e,first:e.left})))},le=t=>{const n=e.marks?String(t):t;m({top:n,right:p.right,bottom:n,left:p.left}),Q((e=>({...e,top:e.top,bottom:e.top})))},se=t=>{const n=e.marks?String(t):t;m({top:p.top,right:n,bottom:p.bottom,left:n}),Q((e=>({...e,right:e.left,left:e.left})))},ce=function(t,n,o){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const l={...i};e.marks&&t?(l.min=0,l.max=e.marks.length-1,l.sliderMin=0,l.sliderMax=e.marks.length-1,l.step=1,l.marks=e.marks.reduce(((e,t,n)=>[{value:n,name:void 0},...e]),[]),l.renderTooltipContent=t=>{var n,o;return(null===(n=e.marks[t])||void 0===n?void 0:n.name)||(null===(o=e.marks[t])||void 0===o?void 0:o.slug)||""},l.withInputField=!1):l.marks=void 0,e.marks&&(d.className=d.className||"",d.className+="stk-range-control--with-marks",d.className+=t?" stk-range-control--mark-mode":"");let r=e.marks?parseFloat(n):n,s=o;if(e.marks&&t)r=e.marks.findIndex((e=>{let t,o;return"string"==typeof n&&n.startsWith("var")?[o,t]=(0,L.extractNumbersAndUnits)(e.value)[0]:[o,t]=(0,L.extractNumbersAndUnits)(e.size)[0],o===n&&(""===t||t===B)})),r=-1===r?"":r,s=function(t){var n;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(""===t)return o(t);const r=(null===(n=e.marks[t])||void 0===n?void 0:n[l])||"0";let[i,s]=(0,L.extractNumbersAndUnits)(r)[0];const c=(0,L.convertToPxIfUnsupported)(e.units,s,i);i=c.value,s=c.unit,s&&((0,N.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),C({[S]:s}),e.onChangeUnit&&e.onChangeUnit(s)),o(i),K.current[a]=!1};else if("string"==typeof n&&n.startsWith("var")&&(k&&"first"===a||!k&&["top","right","left","bottom"].includes(a)||k&&e.vhMode&&["vertical","horizontal"].includes(a))){var c;const t=null===(c=e.marks.find((e=>n===e.value)))||void 0===c?void 0:c.size;let[l,i]=(0,L.extractNumbersAndUnits)(t)[0];const s=(0,L.convertToPxIfUnsupported)(e.units,i,l);l=s.value,i=s.unit,r=parseFloat(l),i&&a&&!K.current[a]&&(K.current[a]=!0,(0,N.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),C({[S]:i}),e.onChangeUnit&&e.onChangeUnit(i)),d.onChangeUnit=(t,n)=>{(0,N.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),C({[n]:t}),e.onChangeUnit&&e.onChangeUnit(t),o(l)}}return[l,parseFloat(r),s]};k&&!e.vhMode?d.units=!J.first&&d.units:k&&e.vhMode?d.units=(!J.top||!J.right)&&d.units:d.units=!(J.top&&J.right&&J.bottom&&J.left)&&d.units;const[de,ue,pe]=ce(J.first,b,ee,"first"),[he,ge,me]=ce(J.top,p.top,te,"top"),[ve,be,fe]=ce(J.right,p.right,ne,"right"),[ke,ye,_e]=ce(J.bottom,p.bottom,oe,"bottom"),[Ce,we,Se]=ce(J.left,p.left,ae,"left"),[Ee,xe,Te]=ce(J.top,p.top,le,"vertical"),[Be,Me,Ae]=ce(J.left,p.left,se,"horizontal");return(0,o.createElement)(E.ZP,d,k&&!e.vhMode&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(re,(0,a.Z)({},de,{value:ue,onChange:pe,allowReset:!1,initialPosition:J.first||"normal"!==u?"":"Mobile"===H&&U?B===P?Y:"":"Mobile"!==H&&"Tablet"!==H||!Z?i.initialPosition:B===R?q:"",placeholder:J.first||"normal"!==u?"":"Mobile"===H&&U?B===P?Y:"":"Mobile"!==H&&"Tablet"!==H||!Z?i.placeholder:B===R?q:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(f.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{Q((e=>({...e,first:!e.first})))},icon:ie})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:b,default:e.defaultTop,onChange:ee})),k&&e.vhMode&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(c.Tooltip,{text:(0,h.__)("Top and Bottom",g.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},(0,o.createElement)(Go,null))),(0,o.createElement)(re,(0,a.Z)({},Ee,{value:xe,onChange:Te,allowReset:!1,initialPosition:J.top||"normal"!==u?"":"Mobile"===H&&z?B===P?A.top:"":"Mobile"!==H&&"Tablet"!==H||!W?i.initialPosition:B===R?M.top:"",placeholder:J.top||"normal"!==u?"":"Mobile"===H&&z?B===P?A.top:"":"Mobile"!==H&&"Tablet"!==H||!W?void 0===e.placeholderTop?i.placeholder:e.placeholderTop:B===R?M.top:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(f.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{Q((e=>({...e,top:!e.top})))},icon:ie})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:p.top,default:e.defaultTop,onChange:le})),(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(c.Tooltip,{text:(0,h.__)("Left and Right",g.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},(0,o.createElement)(jo,null))),(0,o.createElement)(re,(0,a.Z)({},Be,{value:Me,onChange:Ae,allowReset:!1,initialPosition:J.left||"normal"!==u?"":"Mobile"===H&&$?B===P?A.left:"":"Mobile"!==H&&"Tablet"!==H||!j?i.initialPosition:B===R?M.left:"",placeholder:J.left||"normal"!==u?"":"Mobile"===H&&$?B===P?A.left:"":"Mobile"!==H&&"Tablet"!==H||!j?void 0===e.placeholderLeft?i.placeholder:e.placeholderLeft:B===R?M.left:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(f.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{Q((e=>({...e,left:!e.left})))},icon:ie})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:p.left,default:e.defaultLeft,onChange:se}))),!k&&(0,o.createElement)(o.Fragment,null,e.enableTop&&(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(c.Tooltip,{text:e.isCorner?(0,h.__)("Top Left",g.i18n):(0,h.__)("Top",g.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,o.createElement)(Lo,null):(0,o.createElement)(Wo,null))),(0,o.createElement)(re,(0,a.Z)({},he,{value:ge,onChange:me,allowReset:!1,initialPosition:J.top||"normal"!==u?"":"Mobile"===H&&z?B===P?A.top:"":"Mobile"!==H&&"Tablet"!==H||!W?i.initialPosition:B===R?M.top:"",placeholder:J.top||"normal"!==u?"":"Mobile"===H&&z?B===P?A.top:"":"Mobile"!==H&&"Tablet"!==H||!W?void 0===e.placeholderTop?i.placeholder:e.placeholderTop:B===R?M.top:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(f.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{Q((e=>({...e,top:!e.top})))},icon:ie})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:p.top,default:e.defaultTop,onChange:te})),e.enableRight&&(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(c.Tooltip,{text:e.isCorner?(0,h.__)("Top Right",g.i18n):(0,h.__)("Right",g.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,o.createElement)(zo,null):(0,o.createElement)(Uo,null))),(0,o.createElement)(re,(0,a.Z)({},ve,{value:be,onChange:fe,allowReset:!1,initialPosition:J.right||"normal"!==u?"":"Mobile"===H&&D?B===P?A.right:"":"Mobile"!==H&&"Tablet"!==H||!V?i.initialPosition:B===R?M.right:"",placeholder:J.right||"normal"!==u?"":"Mobile"===H&&D?B===P?A.right:"":"Mobile"!==H&&"Tablet"!==H||!V?void 0===e.placeholderRight?i.placeholder:e.placeholderRight:B===R?M.right:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(f.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{Q((e=>({...e,right:!e.right})))},icon:ie})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:p.right,default:e.defaultRight,onChange:ne})),e.enableBottom&&(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(c.Tooltip,{text:e.isCorner?(0,h.__)("Bottom Left",g.i18n):(0,h.__)("Bottom",g.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,o.createElement)(Ho,null):(0,o.createElement)(Fo,null))),(0,o.createElement)(re,(0,a.Z)({},ke,{value:ye,onChange:_e,allowReset:!1,initialPosition:J.bottom||"normal"!==u?"":"Mobile"===H&&F?B===P?A.bottom:"":"Mobile"!==H&&"Tablet"!==H||!G?i.initialPosition:B===R?M.bottom:"",placeholder:J.bottom||"normal"!==u?"":"Mobile"===H&&F?B===P?A.bottom:"":"Mobile"!==H&&"Tablet"!==H||!G?void 0===e.placeholderBottom?i.placeholder:e.placeholderBottom:B===R?M.bottom:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(f.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{Q((e=>({...e,bottom:!e.bottom})))},icon:ie})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:p.bottom,default:e.defaultBottom,onChange:oe})),e.enableLeft&&(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(c.Tooltip,{text:e.isCorner?(0,h.__)("Bottom Right",g.i18n):(0,h.__)("Left",g.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,o.createElement)(Oo,null):(0,o.createElement)($o,null))),(0,o.createElement)(re,(0,a.Z)({},Ce,{value:we,onChange:Se,allowReset:!1,initialPosition:J.left||"normal"!==u?"":"Mobile"===H&&$?B===P?A.left:"":"Mobile"!==H&&"Tablet"!==H||!j?i.initialPosition:B===R?M.left:"",placeholder:J.left||"normal"!==u?"":"Mobile"===H&&$?B===P?A.left:"":"Mobile"!==H&&"Tablet"!==H||!j?void 0===e.placeholderLeft?i.placeholder:e.placeholderLeft:B===R?M.left:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(f.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{Q((e=>({...e,left:!e.left})))},icon:ie})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:p.left,default:e.defaultLeft,onChange:ae}))))}),m.isEqual);Zo.defaultProps={defaultLocked:!0,hasLock:!0,enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0,defaultTop:"",defaultRight:"",defaultBottom:"",defaultLeft:"",placeholder:"",placeholderTop:"",placeholderRight:"",placeholderBottom:"",placeholderLeft:"",initialPosition:"",vhMode:!1,allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,top:void 0,right:void 0,bottom:void 0,left:void 0,onChange:void 0,isCorner:!1,marks:void 0,allowCustom:!0};const qo=(0,o.memo)(Zo),Yo=e=>(0,o.createElement)(c.TextControl,(0,a.Z)({type:"number",className:"ugb-small-number-control"},e,{__next40pxDefaultSize:!0})),Ko=e=>{const t=(0,I.useDeviceType)(),n=o.Children.toArray(e.children).map((n=>(0,o.cloneElement)(n,{screens:e.screens,screen:t.toLowerCase()}))),a=t?(null==t?void 0:t.toLowerCase())===e.screen:"desktop"===e.screen.toLowerCase(),l=!e.screens.includes(t.toLowerCase())&&!a&&"Desktop"===t;return(0,o.createElement)(o.Fragment,null,(a||l)&&n)};Ko.defaultProps={screen:"desktop",screens:["desktop","tablet","mobile"]};const Xo=Ko,Jo=[{value:"h1",title:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Heading",g.i18n),1),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M8.5 13H5.8V8.9H2.7V13H0V3h2.7v3.7h3.1V3h2.7v10zM16 13h-2.7V7.7 5.9c-.2.2-.4.4-.6.7l-1.1.9-1.4-1.7L13.6 3H16v10z"}))}),null)},{value:"h2",title:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Heading",g.i18n),2),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M7.7 12.7h-2v-4H2v4H0V3.4h2v3.7h3.7V3.4h2v9.3zM16 12.7H9.4v-1.4L11.8 9c.7-.7 1.1-1.2 1.4-1.5.2-.3.4-.5.5-.8.1-.2.1-.5.1-.7 0-.4-.1-.7-.3-.8-.2-.2-.5-.3-.8-.3-.4 0-.7.1-1 .3-.3.2-.7.4-1.1.7L9.4 4.6c.5-.4.8-.7 1.1-.8.3-.2.6-.3 1-.4.4-.1.8-.1 1.2-.1.6 0 1.1.1 1.6.3.5.2.8.5 1 .9s.4.8.4 1.3c0 .4-.1.8-.2 1.2-.2.4-.4.8-.7 1.2s-.9 1-1.7 1.7L11.9 11v.1H16v1.6z"}))}),null)},{value:"h3",title:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Heading",g.i18n),3),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M7.7 12.6H6.2V8.4H2v4.2H.5V3.3H2v3.8h4.2V3.3h1.5v9.3zM15.2 5.5c0 .6-.2 1.1-.5 1.5-.3.4-.8.7-1.4.8v.1c.7.1 1.3.3 1.6.7.4.4.6.9.6 1.5 0 .9-.3 1.6-.9 2.1-.6.5-1.5.7-2.6.7-1 0-1.9-.2-2.5-.5v-1.3c.4.2.8.3 1.2.5.4.1.8.2 1.2.2.7 0 1.2-.1 1.6-.4.4-.3.5-.7.5-1.2s-.2-.9-.6-1.1-1-.3-1.8-.3h-.8V7.3h.8c1.4 0 2.2-.5 2.2-1.5 0-.4-.1-.7-.4-.9-.3-.2-.6-.3-1.1-.3-.4 0-.7 0-1 .1-.3.1-.7.3-1.1.6l-.7-1c.8-.6 1.8-.9 2.9-.9.9 0 1.6.2 2.1.6.4.2.7.8.7 1.5z"}))}),null)},{value:"h4",title:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Heading",g.i18n),4),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M7.5 12.5H6v-4H1.9v4H.5v-9h1.4v3.7H6V3.5h1.4l.1 9zM15.5 10.5h-1.2v2h-1.4v-2h-4V9.4l4-5.9h1.4v5.8h1.2v1.2zm-2.6-1.2V7.1c0-.8 0-1.5.1-2-.1.3-.3.6-.5 1l-2.2 3.2h2.6z"}))}),null)},{value:"h5",title:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Heading",g.i18n),5),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M7.7 12.1H6.3V8.4H2.4v3.8H1V3.8h1.4v3.4h3.9V3.8h1.4v8.3zM12.2 6.9c.9 0 1.5.2 2 .7.5.4.8 1 .8 1.8 0 .9-.3 1.6-.9 2.1-.6.5-1.4.7-2.4.7-.9 0-1.7-.1-2.2-.4v-1.2c.3.2.7.3 1.1.4.4.1.8.1 1.1.1.6 0 1.1-.1 1.4-.4.3-.3.5-.7.5-1.2 0-1-.6-1.5-1.9-1.5H11c-.3 0-.5.1-.7.1l-.7-.3.4-4h4.4V5h-3.2L11 7.1c.1 0 .3 0 .5-.1.2 0 .4-.1.7-.1z"}))}),null)},{value:"h6",title:(0,h.sprintf)((0,h._x)("%s %d","Nth Title",g.i18n),(0,h.__)("Heading",g.i18n),6),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M7.6 12.1H6.3V8.4H2.6v3.7H1.2V3.8h1.3v3.4h3.8V3.8h1.3v8.3zM9.2 8.6c0-3.2 1.3-4.8 3.9-4.8.4 0 .8 0 1 .1V5c-.3-.1-.6-.1-1-.1-.9 0-1.5.2-2 .7-.4.5-.7 1.2-.7 2.3h.1c.2-.3.4-.5.7-.7.3-.2.7-.2 1.1-.2.7 0 1.3.2 1.7.7s.6 1.1.6 1.9c0 .9-.2 1.5-.7 2.1-.5.5-1.1.8-2 .8-.6 0-1.1-.1-1.5-.4-.4-.3-.8-.7-1-1.3 0-.8-.2-1.5-.2-2.2zm2.9 2.5c.4 0 .8-.2 1-.4.2-.3.4-.7.4-1.3 0-.5-.1-.9-.4-1.1-.2-.3-.6-.4-1-.4-.3 0-.6.1-.8.2-.2.1-.4.3-.6.5-.1.2-.2.4-.2.6 0 .5.2 1 .4 1.3.4.4.7.6 1.2.6z"}))}),null)},{value:"p",title:(0,h.__)("Paragraph",g.i18n),icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M4.5 3h3.1c2.2 0 3.9.8 3.9 3.1 0 2.2-1.6 3.2-3.8 3.2H6.3V13H4.5V3zm3.1 4.9c1.5 0 2.2-.6 2.2-1.8 0-1.3-.8-1.7-2.3-1.7H6.3v3.5h1.3z"}))}),null)}],Qo=Jo.filter((e=>{let{value:t}=e;return"p"!==t})),ea=(0,o.memo)((e=>(0,o.createElement)(Oe,(0,a.Z)({},e,{className:"ugb-heading-buttons-control",controls:e.hasP?Jo:Qo,placeholder:Jo[1].value,default:Jo[1].value}))));ea.defaultProps={label:(0,h.sprintf)((0,h._x)("%s HTML Tag","component",g.i18n),(0,h.__)("Title",g.i18n)),value:void 0,hasP:!0};const ta=ea,na=[{value:"left",title:(0,h.__)("Align Left",g.i18n),icon:"editor-alignleft"},{value:"center",title:(0,h.__)("Align Center",g.i18n),icon:"editor-aligncenter"},{value:"right",title:(0,h.__)("Align Right",g.i18n),icon:"editor-alignright"},{value:"justify",title:(0,h.__)("Justified",g.i18n),icon:"editor-justify"}],oa=na.filter((e=>"justify"!==e.value)),aa=e=>{const{justified:t,className:n,controls:l,...r}=e;let i=l;return i||(i=t?na:oa),(0,o.createElement)(Oe,(0,a.Z)({},r,{controls:i,className:s()([n,"ugb-align-buttons-control"])}))};aa.defaultProps={className:"",label:(0,h.__)("Align",g.i18n),justified:!1,controls:null};const la=aa,ra=wp.codeEditor;var ia=n(4863),sa=n.n(ia);const ca=e=>{const[t,n]=(0,o.useState)(e.value),[a,l]=(0,o.useState)(null),r=(0,o.useRef)(),i=(0,I.useOnScreenOnce)(r),s=(0,o.useMemo)((()=>(0,m.uniqueId)("ugb-code-textarea-")),[]),c=(0,o.useRef)((0,m.debounce)((t=>{e.onChange(t)}),500,{leading:!0})),d=(0,o.useCallback)((e=>{const t=e.getValue?e.getValue():e;n(t),c.current(t)}),[]);return(0,o.useEffect)((()=>{if(ra.initialize&&i){const t=(0,ra.initialize)(s,sa()(ra.defaultSettings,e.editorSettings));l(t),t.codemirror.on("change",d)}return()=>{var e;null==c||null===(e=c.current)||void 0===e||e.cancel(),null==a||a.codemirror.off("change",d)}}),[i]),(0,o.createElement)("textarea",{ref:r,className:"ugb-code-textarea",id:s,value:t,onChange:d})};ca.defaultProps={value:"",onChange:()=>{},editorSettings:{}};const da=ca,ua=e=>(0,o.createElement)(c.BaseControl,{help:e.help,className:s()("stk-code-textarea-control",e.className),__nextHasNoMarginBottom:!0},(0,o.createElement)(No,{label:e.label,screens:e.screens}),(0,o.createElement)(da,{value:e.value,onChange:e.onChange}));ua.defaultProps={help:"",className:"",value:"",label:"",screens:[],onChange:()=>{}};const pa=ua;var ha=n(6556);const ga=(0,o.createElement)(c.Icon,{icon:ha.GroupContainerIcon}),ma=(0,o.createElement)(c.Icon,{icon:ha.UngroupContainerIcon}),va=(0,te.compose)([(0,N.withSelect)(((e,t)=>{let{clientIds:n}=t;const{getBlockRootClientId:o,getBlocksByClientId:a,canInsertBlockType:l}=e("core/block-editor"),r="ugb/container",i=l(r,n&&n.length>0?o(n[0]):void 0),s=a(n),c=1===s.length&&s[0]&&s[0].name===r;return{isGroupable:i&&s.length&&!c,isUngroupable:c&&!!s[0].innerBlocks.length,blocksSelection:s,groupingBlockName:r}})),(0,N.withDispatch)(((e,t)=>{let{clientIds:n,onToggle:o=m.noop,blocksSelection:a=[]}=t;const{replaceBlocks:l}=e("core/block-editor");return{onConvertToGroup(){if(!a.length)return;const e=a.map((e=>(0,_n.cloneBlock)(e))),t=(0,_n.createBlock)("ugb/container",{},e);l(n,t),o()},onConvertFromGroup(){if(!a.length)return;const e=a[0].innerBlocks;e.length&&(l(n,e),o())}}}))])((function(e){let{onConvertToGroup:t,onConvertFromGroup:n,isGroupable:a=!1,isUngroupable:l=!1}=e;return(0,N.select)("core/block-editor").getSelectedBlockClientIds?(0,o.createElement)(o.Fragment,null,a&&(0,o.createElement)(d.BlockSettingsMenuControls,null,(e=>{let{onClose:n}=e;return(0,o.createElement)(c.MenuItem,{icon:ga,onClick:()=>{t(),n()}},(0,h.__)("Group into Container",g.i18n))})),l&&(0,o.createElement)(d.BlockSettingsMenuControls,null,(e=>{let{onClose:t}=e;return(0,o.createElement)(c.MenuItem,{icon:ma,onClick:()=>{n(),t()}},(0,h.__)("Ungroup from Container",g.i18n))}))):null})),ba=(0,N.withSelect)((e=>{const{getSelectedBlockClientIds:t}=e("core/block-editor");return t?{clientIds:t()}:{}}))(va),fa=(0,N.withSelect)((e=>{const{getSelectedBlockClientId:t}=e("core/block-editor");return t?{clientId:t()}:{}}))((e=>{let{clientId:t}=e;const[n,a]=(0,o.useState)(!1),[l,r]=(0,o.useState)(!1),{blockName:i,getJSONBlockAttributes:s}=(0,N.useSelect)((e=>{const{getBlockName:n}=e("core/block-editor");return{blockName:t&&n(t)?n(t).replace(/^\w+\//g,""):"",getJSONBlockAttributes:()=>{const{getBlockName:n}=e("core/block-editor");if(!t)return{};const o=e("core/block-editor").getBlockAttributes(t),a=n(t).replace(/^\w+\//g,""),l=(0,L.getCleanAttributes)(o,n(t));return l.uniqueClass=void 0,JSON.stringify((0,B.applyFilters)(`stackable.${a}.design.filtered-block-attributes`,l),null,4)}}}));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.BlockSettingsMenuControls,null,(e=>{let{onClose:t}=e;return(0,o.createElement)(c.MenuItem,{icon:"editor-code",onClick:()=>{a(!0),r(!1),setTimeout((()=>document.querySelector(".ugb-modal-get-block-attributes-button textarea").select()),100),t()}},"Get / Set Block Attributes")})),n&&(0,o.createElement)(c.Modal,{title:`${(0,m.startCase)(i)} Block Attributes`,focusOnMount:!0,className:"ugb-modal-get-block-attributes-button",onRequestClose:()=>{l&&(e=>{if(t)try{const n=JSON.parse(e);(0,L.applyBlockDesign)(n,t)}catch(e){console.error(e)}})(document.querySelector(".ugb-modal-get-block-attributes-button textarea").value),a(!1)}},(0,o.createElement)("p",null,'Copy or modify the attributes of the block directly. Use only double quotes "'),(0,o.createElement)("textarea",{onChange:()=>r(!0)},s())))})),ka=e=>{const[t,n]=(0,L.useLocalStorage)("stk__design_library_api_version",""),l=(0,o.useMemo)((()=>(0,B.applyFilters)("stackable.design-library.versions",[""])),[]),r=l.includes(t)?t:l[0],i=(0,o.useMemo)((()=>(0,B.applyFilters)("stackable.design-library.modal-component",Ln,r)),[r]),s=(0,o.useCallback)((e=>n(e)),[]);return(0,o.createElement)(i,(0,a.Z)({hasVersionSwitcher:l.length>1,apiVersion:r,onChangeApiVersion:s},e))};ka.defaultProps={};const ya=ka;var _a=n(1364),Ca=n(1114),wa=n(8255),Sa=n(3260),Ea=n(1368),xa=n(6179),Ta=n.n(xa);let Ba=[];class Ma extends o.Component{constructor(){super(...arguments),this.state={isLoading:0===Ba.length,termList:Ba}}componentWillMount(){this.state.termList.length||(this.isStillMounted=!0,this.fetchRequest=Ta()({path:(0,Ea.addQueryArgs)(`/stackable/${"v"+(this.props.stkVersion||"2")}/terms`,{per_page:-1})}).then((e=>{this.isStillMounted&&(Ba=e,this.setState({termList:e,isLoading:!1}))})).catch((()=>{this.isStillMounted&&this.setState({termList:[],isLoading:!1})})))}componentWillUnmount(){this.isStillMounted=!1}render(){const e=[],t=[],n=[];let a="";const{taxonomy:l,allowReset:r}=this.props;Object.keys(this.state.termList).forEach((o=>{const{label:a,taxonomies:l}=this.state.termList[o];"wp_block"!==o&&(e.push({label:a,value:o}),o===this.props.postType&&Object.keys(l).forEach(((e,o)=>{const{label:a,terms:r}=l[e];t.push({label:a,value:e});const i=!this.props.taxonomyType&&0===o;(e===this.props.taxonomyType||i)&&Object.keys(r).forEach((e=>{n.push({name:r[e].name,value:r[e].term_id})}))})))}));const i=n.map((e=>e.name));let s=""!==l?l.split(",").map((e=>{const{name:t}=(0,m.find)(n,(t=>t.value===parseInt(e)))||{};return t})).filter((e=>e)):void 0;if((0,m.compact)(s).length||(s=void 0),t.length){const e=this.props.taxonomyType||t[0].value,n=t.filter((t=>{let{value:n}=t;return e===n}));a=n.length?n[0].label:t[0].label}return this.state.isLoading?(0,o.createElement)("div",{className:"stk-taxonomy-control__spinner"},(0,o.createElement)(c.Spinner,null)):(0,o.createElement)("div",{className:"stk-taxonomy-control"},g.isPro&&(0,o.createElement)(ue,{label:(0,h.__)("Post Type",g.i18n),options:e,value:this.props.postType,allowReset:r,onChange:e=>{const t=Object.keys(this.state.termList[e].taxonomies);this.props.onChangePostType(e),this.props.onChangeTaxonomyType(t.length?t[0]:""),this.props.onChangeTaxonomy("")},default:"post"}),t.length>0&&(0,o.createElement)(ue,{label:(0,h.__)("Filter by Taxonomy",g.i18n),options:t,value:this.props.taxonomyType,allowReset:r,onChange:e=>{this.props.onChangeTaxonomyType(e),this.props.onChangeTaxonomy("")},default:"category"}),t.length>0&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(ue,{label:(0,h.__)("Taxonomy Filter Type",g.i18n),allowReset:r,options:[{label:(0,h.__)("Included In",g.i18n),value:"__in"},{label:(0,h.__)("Not In",g.i18n),value:"__not_in"}],value:this.props.taxonomyFilterType,onChange:this.props.onChangeTaxonomyFilterType,default:"__in"}),(0,o.createElement)(bl,{label:a,suggestions:i,value:s,onChange:e=>{var t;const o=null==e||null===(t=e.map)||void 0===t?void 0:t.call(e,(e=>{const{value:t}=(0,m.find)(n||[],(t=>t.name===e))||{};return t}));this.props.onChangeTaxonomy((0,m.compact)(o||[]).join(","))}})))}}Ma.defaultProps={postType:"post",onChangePostType:()=>{},taxonomyType:"category",onChangeTaxonomyType:()=>{},taxonomy:"",onChangeTaxonomy:()=>{},allowReset:!1};const Aa=Ma;var Na=n(3420),Ia=n.n(Na);const Ra=e=>{const{styles:t}=e,n=(0,I.useBlockAttributesContext)(),a=(0,I.useBlockSetAttributesContext)(),l=(null==n?void 0:n.className)||"",r=(0,I.getBlockStyle)(t,l);return(0,o.createElement)(Hl,{options:t,onSelect:t=>{const o=function(e,t,n){const o=new(Ia())(e);return t&&o.remove("is-style-"+t.name),"default"!==n.name&&o.add("is-style-"+n.name),o.value}(l,r,t),i=t.onSelect?t.onSelect(n,e):{};a({...i,className:o})},value:r.name,activeProperty:"name"})},Pa={blocks:()=>{var e,t,n;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.search)||void 0===n?void 0:n.includes("tour=blocks")},"design-library":()=>{var e,t,n;return!(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.search)||void 0===n||!n.includes("tour=design-library"))||null},"design-system-picker":()=>{var e,t,n;return!(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.search)||void 0===n||!n.includes("tour=design-system-picker"))||null},"design-system":()=>{var e,t,n;return!(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.search)||void 0===n||!n.includes("tour=design-system"))||null},editor:()=>{var e,t,n;return(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.search)||void 0===n||!n.includes("tour="))&&!g.guidedTourStates.includes("design-library")&&null},"site-kit":()=>{var e,t,n;return!(null===(e=window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.search)||void 0===n||!n.includes("tour=site-kit"))||null}};var Oa=n(8903),Ha=n(2814);const za=(0,o.memo)((e=>{const{tourId:t=""}=e,[a,l]=(0,o.useState)(g.guidedTourStates.includes(t)),[r,i]=(0,o.useState)(!1),[s,c]=(0,o.useState)((0,Oa.yY)()&&(0,Oa.Ax)()!==t);if((0,o.useEffect)((()=>(0,Oa.aQ)((e=>{c(null!==e&&e!==t)}))),[t]),r)return null;if(s)return null;const d=Pa[t],u=d?d():null;if(!1===u)return null;if(null===u&&a)return null;const p=(0,o.lazy)((()=>Promise.all([n.e(865),n.e(985)]).then(n.bind(n,5993))));return(0,o.createElement)(o.Suspense,{fallback:null},(0,o.createElement)(p,{tourId:t,onClose:()=>{l(!0),i(!0),(0,Oa.tk)(),g.guidedTourStates.includes(t)||new Ha.models.Settings({stackable_guided_tour_states:[...g.guidedTourStates,t]}).save(),g.guidedTourStates.push(t);const e=new URL(window.location.href);e.searchParams.delete("tour"),window.history.replaceState(null,"",e.toString())}}))}));var La=n(1984),Da=n(5202),Fa=n(3710);const $a=e=>{const{onClose:t}=e,l=(0,o.useRef)(null),[r,i]=(0,o.useState)(null),[s,d]=(0,o.useState)(!0),[u,p,m]=(0,o.useMemo)((()=>{const e=document.querySelector(".interface-interface-skeleton__content");return[e,null==e?void 0:e.offsetWidth,null==e?void 0:e.offsetHeight]}),[]);(0,o.useEffect)((()=>{(async()=>{try{const{default:e}=await n.e(641).then(n.bind(n,2960));i((()=>e))}catch(e){console.error("Failed to load StyleGuide component:",e)}finally{d(!1)}})()}),[]);const v=p&&m?{"--width":`${p}px`,"--height":`${m}px`}:{};return(0,o.createElement)(c.Popover,{className:"ugb-style-guide-popover",anchor:u,placement:"overlay",style:v},(0,o.createElement)(c.Button,{className:"ugb-style-guide-popover__close-button",variant:"tertiary",onClick:t,"aria-label":(0,h.__)("Close",g.i18n)},(0,o.createElement)(La.Z,{icon:Da.Z})),(0,o.createElement)("div",{className:"ugb-style-guide-popover__heading"},(0,o.createElement)(Ua,{printRef:l}),(0,o.createElement)("h1",{className:"ugb-style-guide-popover__title"},(0,h.__)("Design System Style Guide",g.i18n)),(0,o.createElement)("p",{className:"ugb-style-guide-popover__description"},(0,h.__)("Welcome to your Style Guide! Here you can see a live preview of your design system in action. Any changes you make to your design settings will instantly update here.",g.i18n))),s?(0,o.createElement)("div",{className:"ugb-style-guide__loading"},(0,h.__)("Loading style guide…",g.i18n)):r?(0,o.createElement)(r,(0,a.Z)({},e,{contentRef:l})):(0,o.createElement)("div",{className:"ugb-style-guide__error"},(0,h.__)("Failed to load style guide",g.i18n)))},Ua=e=>{const{printRef:t}=e,[a,l]=(0,o.useState)(!1);return(0,o.createElement)(c.Button,{className:"ugb-style-guide__print-button",variant:"secondary",onClick:async()=>{l(!0);try{const e=await n.e(923).then(n.bind(n,183)),o=await e.toPng(t.current,{cacheBust:!0}),a=document.createElement("a");a.download="style-guide.png",a.href=o,a.click()}catch(e){alert((0,h.sprintf)((0,h.__)("Error exporting style guide: %s",g.i18n),e.message||e))}finally{l(!1)}},icon:(0,o.createElement)(La.Z,{icon:Fa.Z}),isBusy:a,disabled:a},(0,h.__)("Export as Image",g.i18n))},Wa={Edit:e=>{const{blockProps:t,render:n,mainClass:l,blockTag:r,...i}=e,{blockName:c}=t,{anchor:d="",design:u,blockTag:p="div"}=t.attributes,h=s()([e.className],(0,B.applyFilters)(`stackable.${c}.main-block.classes`,{"ugb-main-block":l},t)),g=s()(["ugb-inner-block"],(0,B.applyFilters)(`stackable.${c}.main-block.inner-classes`,{},t)),m=(0,B.applyFilters)(`stackable.${c}.main-block.extraProps`,i,t),v=""!==d?d:void 0,b=p||r||"div";return(0,o.createElement)(b,(0,a.Z)({},m,{id:v,className:h}),t.styles,(0,B.applyFilters)(`stackable.${c}.edit.output.outer`,null,u,t),n&&(0,o.createElement)("div",{className:g},(0,B.applyFilters)(`stackable.${c}.edit.output.before`,null,u,t),(0,o.createElement)("div",{className:"ugb-block-content"},n(t)),(0,B.applyFilters)(`stackable.${c}.edit.output.after`,null,u,t)))}};Wa.Edit.defaultProps={styles:null,mainClass:!0},Wa.Save=e=>{const{blockProps:t,render:n,mainClass:l,blockTag:r,...i}=e,{blockName:c}=t,{anchor:d="",design:u,blockTag:p="div"}=t.attributes,h=s()([e.className],(0,B.applyFilters)(`stackable.${c}.main-block.classes`,{"ugb-main-block":l},t)),g=s()(["ugb-inner-block"],(0,B.applyFilters)(`stackable.${c}.main-block.inner-classes`,{},t)),m=(0,B.applyFilters)(`stackable.${c}.main-block.extraProps`,i,t),v=""!==d?d:void 0,b=p||r||"div";return(0,o.createElement)(b,(0,a.Z)({},m,{id:v,className:h}),t.styles,(0,B.applyFilters)(`stackable.${c}.save.output.outer`,null,u,t),n&&(0,o.createElement)("div",{className:g},(0,B.applyFilters)(`stackable.${c}.save.output.before`,null,u,t),(0,o.createElement)("div",{className:"ugb-block-content"},n(t)),(0,B.applyFilters)(`stackable.${c}.save.output.after`,null,u,t)))},Wa.Save.defaultProps={styles:null,mainClass:!0};const Va=Wa,Ga=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M-10 210h1620V105.2H-10z"}))},ja=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#straight-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"straight-1-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M-10 121.6h1620v-16.4H-10z"}))},Za={"wave-1":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"wave-1_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7V210h1620V102c-110.6-40.2-181-53.1-268.6-53.1z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"wave-1-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"wave-1-shadow_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7v10s91.9 35.9 203.9 35.9 182.4-38.8 324.6-38.8c183.8 0 275.7 67.5 393.5 67.5 175.2 0 247-80.4 429.4-80.4 87.6 0 158 12.9 268.6 53.1v-10c-110.6-40.2-181-53.1-268.6-53.1z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v75.9h1620V98.3c-110.6 40.2-181 53.1-268.6 53.1z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"wave-1-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v10s91.9-35.9 203.9-35.9 182.4 38.8 324.6 38.8C702.3 148.5 794.2 81 912 81c175.2 0 247 80.4 429.4 80.4 87.6 0 158-12.9 268.6-53.1v-10c-110.6 40.2-181 53.1-268.6 53.1z"}))}}},"wave-2":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"wave-2_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3V210h1620V91.6c-53 10-86.8-7.1-177.8-24.2z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"wave-2-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"wave-2-shadow_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3v10s77.1 31.5 171.6 3c69.7-21 174.7-62.6 294.4-73 115-10 163.1 3.4 274.1 23.8 111 20.4 199.6 39.5 275 27.9 76-11.7 175.1-60.1 223.1-73.9s115.2-25.2 204-8.5c91 17.1 124.8 34.2 177.8 24.2v-10c-53 10-86.8-7.1-177.8-24.2z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v155.2h1620V132c-53-10-86.8 7.1-177.8 24.2z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"wave-2-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v10s77.1-31.5 171.6-3c69.7 21 174.7 62.6 294.4 73 115 10 163.1-3.4 274.1-23.8 111-20.4 199.6-39.5 275-27.9 76 11.7 175.1 60.1 223.1 73.9s115.2 25.2 204 8.5c91-17.1 124.8-34.2 177.8-24.2v-10c-53-10-86.8 7.1-177.8 24.2z"}))}}},"wave-3":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"wave-3_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.4 102-10 136.2-10 136.2v74.2h1620v-68.5s-68.8 19.5-196.4 19.5z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"wave-3-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"wave-3-shadow_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.5 102-10 136.2-10 136.2v10s69.9-5.7 198.5-34.3 221.7-45.7 311.8-49.1 202.6.3 418.2 41.1c156.9 29.7 337.2 67.4 495.1 67.4 127.6 0 196.4-19.4 196.4-19.4v-10s-68.8 19.5-196.4 19.5z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7-10 64.5-10 64.5v150.2h1620V58.8s-68.8-19.5-196.4-19.5z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"wave-3-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7C59.8 70.1-10 64.5-10 64.5v10s69.8 5.6 198.4 34.2c128.6 28.6 221.8 45.6 311.9 49.1s202.6-.3 418.2-41.1c156.9-29.7 337.2-67.4 495.1-67.4 127.6 0 196.4 19.5 196.4 19.5v-10s-68.8-19.5-196.4-19.5z"}))}}},"wave-4":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 209.7v-51.2s-81.4-33.3-241.4-23.1c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v154h1620z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-4-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"wave-4-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1368.6 135.4c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v10c90 56.1 248.1 20.6 362.8 8 114.4-12.3 171 18.4 209.2 43.1 38.2 24.8 87.3 21.4 106 19.3 18.6-2.1 109.8-2 185.5 25.1 53.2 19 81.1 33.5 174.2 33.6 93 .2 183.5-39.4 340.9-49.4 160-10.2 241.4 23.1 241.4 23.1v-10s-81.4-33.3-241.4-23.1z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 208.9V79.2s-81.4 33.3-241.4 23.1c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v26.9h1620z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#wave-4-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"wave-4-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1368.6 102.3c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v10c90-56.1 248.1-20.6 362.8-8 114.4 12.3 171-18.4 209.2-43.1 38.2-24.8 87.3-21.4 106-19.3 18.6 2.1 109.8 2 185.5-25.1 53.2-19 81.1-33.5 174.2-33.6 93-.2 183.5 39.4 340.9 49.4 160 10.2 241.4-23.1 241.4-23.1v-10s-81.4 33.3-241.4 23.1z"}))}}},"curve-1":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"curve-1_svg__st2",d:"M1610 177.3C1423 122.9 1133.3 88 808 88c-334.7 0-631.8 37-818 94.1v28h1620v-32.8z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"curve-1-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"curve-1-shadow_svg__st2",d:"M808 87.9c-334.7 0-631.8 37-818 94.1v10c186.2-57.1 483.3-94.1 818-94.1 325.3 0 615 34.9 802 89.3v-10c-187-54.3-476.7-89.3-802-89.3z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 78.3c-187 54.4-476.7 89.3-802 89.3-334.7 0-631.8-37-818-94.1v136.8h1620v-132z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"curve-1-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M808 167.6c-334.7 0-631.8-37-818-94.1v10c186.2 57.1 483.3 94.1 818 94.1 325.3 0 615-34.9 802-89.3v-10c-187 54.4-476.7 89.3-802 89.3z"}))}}},"curve-2":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"curve-2_svg__st2",d:"M-10 207.6h1620S1430.8 23.8 1138.3 23.8C884 23.8 234.9 140.1-10 197.9v9.7z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"curve-2-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"curve-2-shadow_svg__st2",d:"M1138.3 36.2c246.1 0 412 130.1 458.4 171.4h13.3S1430.8 23.8 1138.3 23.8C884 23.8 172 156.9-10 197.9v9.7H2.2C201.7 163.7 889.3 36.2 1138.3 36.2z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M-10 207.4h1620S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v199.6z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"curve-2-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1604.2 13.7c3.3-3.1 5.2 152.3 5.7 193.7h.1S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v10c244.9 57.8 894 174.1 1148.3 174.1 262 0 433.1-147.5 465.9-178.2z"}))}}},"curve-3":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"curve-3_svg__st1",d:"M-6.7 13.4S456 171.1 876.1 171.1 1606.4 16 1606.4 16v192.6H-6.7V13.4z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"curve-3-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"curve-3-shadow_svg__st1",d:"M876.1 171.1C456 171.1-6.7 13.4-6.7 13.4v13.7S456 184.8 876.1 184.8s730.3-155.1 730.3-155.1V16s-310.3 155.1-730.3 155.1z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M-6.6 177.6S456.1 40.3 876.2 40.3s730.3 135.1 730.3 135.1v33.5H-6.6v-31.3z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#curve-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"curve-3-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M876.2 40.3C456.1 40.3-6.5 177.6-6.5 177.6v10S456.2 50.3 876.3 50.3s730.3 135.1 730.3 135.1v-10c0-.1-310.3-135.1-730.4-135.1z"}))}}},"slant-1":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"slant-1-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"slant-1-shadow_svg__st2",d:"M-10 183.9v10L1610 10.5V.5z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 210H-10V.5l1620 183.4z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"slant-1-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M-10 .5v10l1620 183.4v-10z"}))}}},"slant-2":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"slant-2-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"slant-2-shadow_svg__st1",d:"M1610 39.2v12L800 170.1-10 51.2v-12l810 118.9 810-118.9z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#slant-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"slant-2-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M800 41.1L-10 160v10L800 51.1 1610 170v-10z"}))}}},"straight-1":{default:{shape:Ga,shadow:ja},inverted:{shape:Ga,shadow:ja}},"rounded-1":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"rounded-1_svg__st1",d:"M1602.9 209l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2V209h1610.9z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-1-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"rounded-1-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"rounded-1-shadow_svg__st1",d:"M1491.2 20.7c48.1-3.8 90.6 32.5 94.4 80.6l8.5 107.7h8.8l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2v9.4L1491.2 20.7z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1604.5-2.7l-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v148.5h1613.9l-1.4-213z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-1-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"rounded-1-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1596.6 111.7l8.2-78-.2-36.4-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v10l1507.2 120.5c48.1 3.8 93.6-32.5 97.4-80.6z"}))}}},"rounded-2":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"rounded-2_svg__st2",d:"M1609.5 133.2h-9.5c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2l-10-.2v77h1619.5v-76.8z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-2-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"rounded-2-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{className:"rounded-2-shadow_svg__st2",d:"M1600 133.2c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2V210h9v-66.8c0-10.9 8.9-19.8 19.8-19.8h1542.4c10.9 0 19.8 8.9 19.8 19.8V210h9v-76.8z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1609.5 128.5h-9.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v83.1h1619.5v-83.3z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-2-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"rounded-2-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1600 128.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v10l10-.2c0 11 8.9 19.9 19.8 19.8h1560.4c10.9 0 19.8-8.9 19.8-19.8h9.5v-10h-9.5z"}))}}},"rounded-3":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610.5 189.1s-128.2-82.6-138.2-89.2c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v50h1620v-24.1z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-3-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"rounded-3-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1472.3 99.9c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v10s449.8-106 489.8-115.5 90.8-9.7 121.1-8.2c30.3 1.6 734.2 39.7 783.9 42.3 49.8 2.6 69.9 6.8 87 18.1 10 6.6 138.2 89.2 138.2 89.2v-10s-128.2-82.6-138.2-89.2z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610.5 24.1s-128.2 82.6-138.2 89.2c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v158.9h1620V24.1z"}))},shadow:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200",filter:"url(#rounded-3-inverted-shadow_svg__a)",enableBackground:"new 0 0 1600 200"},e),(0,o.createElement)("filter",{id:"rounded-3-inverted-shadow_svg__a"},(0,o.createElement)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:4}),(0,o.createElement)("feComponentTransfer",null,(0,o.createElement)("feFuncA",{type:"linear",slope:.4})),(0,o.createElement)("feMerge",null,(0,o.createElement)("feMergeNode",null),(0,o.createElement)("feMergeNode",{in:"SourceGraphic"}))),(0,o.createElement)("path",{d:"M1472.3 113.3c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v10s449.8 106 489.8 115.5 90.8 9.7 121.1 8.2c30.3-1.6 734.2-39.7 783.9-42.3 49.8-2.6 69.9-6.8 87-18.1 10-6.6 138.2-89.2 138.2-89.2v-10s-128.2 82.6-138.2 89.2z"}))}}}},qa=e=>{const{shape:t,shadow:n}=Za[e.design||"wave-1"][e.inverted?"inverted":"default"],a=s()([e.className,"ugb-separator-wrapper"]);return(0,o.createElement)("div",{className:a},e.shadow&&(0,o.createElement)(n,{className:"ugb-separator__shadow",preserveAspectRatio:"none","aria-hidden":"true"}),(0,o.createElement)(t,{className:"ugb-separator__layer-1",preserveAspectRatio:"none","aria-hidden":"true"}),e.children)};qa.defaultProps={className:"",design:"wave-1",shadow:!1,inverted:!1},qa.Save=e=>(0,o.createElement)(qa,e);const Ya=qa,Ka=()=>(0,o.createElement)("hr",{className:"ugb-control-separator"}),Xa=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";return n=t?Ja(e,{"aria-label":t,role:"img"},["aria-hidden"]):Ja(e,{"aria-hidden":"true"},["aria-label","role"]),n},Ja=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const o=(0,L.createElementFromHTMLString)(e);return o?(Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),n.forEach((e=>{o.removeAttribute(e)})),o.outerHTML):""},Qa=(0,o.memo)((e=>{const{svgAttrsToAdd:t={width:"32",height:"32"},svgAttrsToRemove:n=["id","data-name"]}=e,[a,l]=(0,o.useState)(0),r=()=>{l(a+1)},i=(0,m.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/)){let a=Xa(e.value,e.ariaLabel);return a=Ja(a,t,n),(0,o.createElement)(o.RawHTML,i,e.prependRenderString+a)}const s=e.value?e.value.replace(/-.*$/,""):e.prefix,d=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(s&&d){const a=(0,L.faGetIcon)(s,d);if(!a)return(0,L.faFetchIcon)(s,d).then(r),(0,o.createElement)(c.Spinner,null);let l=Xa(a,e.ariaLabel);return l=Ja(l,t,n),(0,o.createElement)(o.RawHTML,i,e.prependRenderString+l)}const u=(0,L.faGetIcon)("far","smile");if(!u)return(0,L.faFetchIcon)("far","smile").then(r),(0,o.createElement)(c.Spinner,null);let p=Xa(u,e.ariaLabel);return p=Ja(p,t,n),(0,o.createElement)(o.RawHTML,i,e.prependRenderString+p)}));Qa.Content=e=>{const t=(0,m.pick)(e,["className","color","fill","style"]),{prependRenderString:n=""}=e;if("string"==typeof e.value&&e.value.match(/^<svg/)){let a=Xa(e.value,e.ariaLabel);return a=Ja(a,{width:"32",height:"32"}),(0,o.createElement)(o.RawHTML,t,n+a)}const a=e.value?e.value.replace(/-.*$/,""):e.prefix,l=e.value?e.value.replace(/^.*?-/,""):e.iconName,r=(0,L.faGetIcon)(a,l);let i=Xa(r,e.ariaLabel);return i=Ja(i,{width:"32",height:"32"}),(0,o.createElement)(o.RawHTML,t,n+i)},Qa.defaultProps={ariaLabel:"",prefix:"",iconName:"",value:"",prependRenderString:""};const el=Qa,tl=e=>e.match(/^<svg(.*?)<\/svg>$/g)?e:e.match(/<svg/)?(e.match(/<svg.*?<\/svg>/g)||[e])[0]:e,nl=e=>{const{...t}=e;return t.value=(0,o.useMemo)((()=>"string"===e.value?tl(e.value):e.value),[e.value]),(0,o.createElement)(el,t)};nl.Content=e=>{const{...t}=e;return t.value="string"===e.value?tl(e.value):e.value,(0,o.createElement)(el.Content,t)};const ol=nl,al=e=>{const t=s()(["stk-inspector-control",e.className],{"stk-inspector-control--allow-reset":e.allowReset,"stk--is-small":e.isSmall}),n=null!==e.showReset?e.showReset:void 0!==e.value&&e.value!==e.defaultValue&&e.value!==e.placeholder;return(0,o.createElement)(c.BaseControl,{help:e.help,className:t,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0},e.hasLabel&&(0,o.createElement)(No,{label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens,afterButton:e.afterButton,helpTooltip:e.helpTooltip}),e.children,e.allowReset&&n&&(0,o.createElement)(f.Z,{className:s()("stk-inspector-control__reset-button",{"stk-control__reset-button--no-modified":!e.hasPanelModifiedIndicator}),isSmall:!0,isTertiary:!0,"aria-label":(0,h.__)("Reset",g.i18n),onClick:()=>{e.onReset?e.onReset():e.onChange(e.defaultValue)},icon:(0,o.createElement)(c.Dashicon,{icon:"image-rotate"})}))};al.defaultProps={className:"",help:"",id:"",screens:["desktop"],units:null,unit:"px",onChangeUnit:()=>{},value:"",onChange:()=>{},allowReset:!1,showReset:null,defaultValue:"",onReset:null,isLinked:!0,onLink:()=>{},afterButton:null,isSmall:!1,hasLabel:!0,hasPanelModifiedIndicator:!0};const ll=al,rl=function(e){return(0,o.createElement)("svg",(0,a.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M16.667 12.222v2.963a1.482 1.482 0 01-1.482 1.482H4.815a1.482 1.482 0 01-1.482-1.482v-2.963M13.704 7.037L10 3.333 6.296 7.037M10 3.333v8.89",stroke:"#293056",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},il=(0,o.memo)((e=>{const t=(0,I.useAttributeName)(`${e.attribute}Id`,e.responsive,e.hover),n=(0,I.useAttributeName)(`${e.attribute}Url`,e.responsive,e.hover),l=(0,I.useAttributeName)(`${e.attribute}HeightAttribute`,e.responsive,e.hover),r=(0,I.useAttributeName)(`${e.attribute}WidthAttribute`,e.responsive,e.hover),i=(0,I.useAttributeName)(`${e.attribute}Alt`,e.responsive,e.hover),c=(0,I.useBlockAttributesContext)((e=>({[t]:e[t],[n]:e[n]}))),u=(0,I.useBlockSetAttributesContext)(),p=void 0!==e.onChange?e.onChange:e=>{u({[t]:e.id,[n]:e.url,[l]:e.width||"",[r]:e.height||"",[i]:e.alt||""})},[m,v]=(0,E.ED)(e),b=(0,D.WA)({onChange:e=>p({url:e,id:"",width:"",height:"",alt:""}),value:c[n]}),k=void 0!==e.imageId?e.imageId:c[t],y=void 0!==e.imageURL?e.imageURL:b.value||c[n],_=y&&y.match(/(mp4|webm|ogg)$/i)?"video":"image";return(0,o.createElement)(E.ZP,(0,a.Z)({},v,{valueCheckAttribute:e.attribute+"Url",className:s()("ugb-image-control",e.className)}),y&&(0,o.createElement)(d.MediaUpload,{onSelect:p,allowedTypes:e.allowedTypes,value:k,render:e=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"ugb-image-preview-wrapper"},"video"===_&&(0,o.createElement)("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:y,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()}}),"image"===_&&(0,o.createElement)("img",{className:"ugb-image-preview",draggable:"false",src:y,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()},alt:(0,h.__)("preview",g.i18n)})))}),(0,o.createElement)(D.ZP,(0,a.Z)({enable:e.isDynamic,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator,type:"image-url"},b),(0,o.createElement)(d.MediaUpload,{onSelect:p,allowedTypes:e.allowedTypes,value:k,render:e=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(f.Z,{className:"ugb-image-upload",onClick:e.open,icon:(0,o.createElement)(rl,{viewBox:"0 0 20 20"}),isSecondary:!0,onKeyDown:t=>{13===t.keyCode&&e.open()}},(0,o.createElement)("span",{className:"ugb-image-upload__label"},y?(0,h.__)("Replace",g.i18n):(0,h.__)("Upload",g.i18n)," ")))})),(0,o.createElement)(x.J,{allowReset:e.allowReset&&!e.dynamic,value:y,default:e.default,onChange:()=>{p({url:"",id:"",height:"",width:"",alt:""})},hasPanelModifiedIndicator:e.hasPanelModifiedIndicator}))}));il.defaultProps={label:"",attribute:"",allowedTypes:["image"],responsive:!1,hover:!1,isDynamic:!0,value:void 0,onChange:void 0,allowReset:!0,hasPanelModifiedIndicator:!0};const sl=il,cl=(0,o.memo)((e=>{const{help:t}=e,n=`inspector-toggle-control-${(0,te.useInstanceId)(cl)}`,[l,r]=(0,T.G)(e.attribute,e.responsive,e.hover,e.changeCallback),i=void 0===e.checked?l:e.checked,d=void 0===e.onChange?r:e.onChange;let u,p;t&&(u=n+"__help",p=(0,m.isFunction)(t)?t(i):t);const h=s()(["components-toggle-control","stk-toggle-control","stk-control",e.className]);return(0,o.createElement)(ll,{id:n,help:p,className:h,allowReset:e.allowReset,value:i,showReset:e.defaultValue?i!==e.defaultValue:i,onChange:d,hasLabel:!1,defaultValue:e.defaultValue},(0,o.createElement)(c.FormToggle,{id:n,checked:i,onChange:e=>d(e.target.checked),"aria-describedby":u}),(0,o.createElement)("label",{htmlFor:n,className:"components-toggle-control__label"},(0,o.createElement)(Yn.Z,(0,a.Z)({label:e.label},e.helpTooltip))))}));cl.defaultProps={className:"",allowReset:!0,showReset:null,defaultValue:"",attribute:"",responsive:!1,hover:!1,checked:void 0,onChange:void 0};const dl=cl,ul=e=>(0,o.createElement)(ll,{help:e.help,className:s()("ugb-advanced-radio-control",e.className),label:e.label,units:e.units,unit:e.unit,onChangeUnit:e.onChangeUnit,screens:e.screens,allowReset:e.allowReset,value:e.selected,onChange:e.onChange,defaultValue:e.defaultValue},(0,o.createElement)(c.RadioControl,(0,m.omit)(e,["className","help","label","units","unit","onChangeUnit","screens","allowReset","defaultValue"])));ul.defaultProps={onChange:()=>{},onChangeUnit:()=>{},help:"",className:"",units:["px"],unit:"px",screens:["desktop"],allowReset:!0,defaultValue:""};const pl=ul,hl={x:.5,y:.5},gl=e=>{var t;const[n,l]=(0,T.G)(e.attribute,e.responsive,e.hover),[r,i]=(0,E.ED)(e);r.url=(0,D.wt)(r.url),null!==(t=r.url)&&void 0!==t&&t.includes("http")||(r.url=void 0);const d=void 0===e.value?n:e.value;return(0,o.createElement)(E.ZP,(0,a.Z)({},i,{className:s()("stk-advanced-focal-point-control",e.className)}),(0,o.createElement)(c.FocalPointPicker,(0,a.Z)({},r,{value:d||hl,onChange:void 0===e.onChange?l:e.onChange,__nextHasNoMarginBottom:!0})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:d,default:e.default,onChange:void 0===e.onChange?l:e.onChange}))};gl.defaultProps={className:"",url:"",allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const ml=(0,o.memo)(gl),vl=e=>{const[t,n]=(0,T.G)(e.attribute,e.responsive,e.hover),[l,r]=(0,E.ED)(e),{...i}=l,d=void 0===e.value?t:e.value,u=void 0===e.onChange?n:e.onChange;return(0,o.createElement)(E.ZP,(0,a.Z)({},r,{className:s()("stk-advanced-token-field",e.className)}),(0,o.createElement)(c.FormTokenField,(0,a.Z)({},i,{value:d||[],onChange:u})),(0,o.createElement)(x.J,{allowReset:e.allowReset,value:d,default:e.default,onChange:u}))};vl.defaultProps={className:"",allowReset:!0,default:"",attribute:"",value:void 0,onChange:void 0};const bl=vl,fl={blur:{label:(0,h.__)("Blur",g.i18n),min:0,sliderMax:10,step:.1,placeholder:0,format:"%spx"},brightness:{label:(0,h.__)("Brightness",g.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},contrast:{label:(0,h.__)("Contrast",g.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},grayscale:{label:(0,h.__)("Grayscale",g.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"},"hue-rotate":{label:(0,h.__)("Hue Rotate",g.i18n),min:0,sliderMax:360,step:1,placeholder:0,format:"%sdeg"},invert:{label:(0,h.__)("Invert",g.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"},opacity:{label:(0,h.__)("Opacity",g.i18n),min:0,sliderMax:1,step:.01,placeholder:1,format:"%s"},saturate:{label:(0,h.__)("Saturate",g.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},sepia:{label:(0,h.__)("Sepia",g.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"}},kl=e=>{const[t,n]=(0,T.G)(e.attribute,e.responsive,e.hover),[l,r]=(0,E.ED)(e),[i,c]=(0,o.useState)({}),d=void 0===e.value?t:e.value,u=void 0===e.onChange?n:e.onChange;return(0,o.useEffect)((()=>{const e=[...d.matchAll(/([\w-]+)\(([^\)]+)\)/g)].reduce(((e,t)=>{const[,n,o]=t;return e[n]=parseFloat(o),e}),{});c(e)}),[d]),(0,o.createElement)(E.ZP,(0,a.Z)({},r,{boldLabel:!0,className:s()("stk-image-filter-control","stk--no-padding",e.className)}),Object.keys(fl).map(((e,t)=>{const n=fl[e];return(0,o.createElement)(ce,(0,a.Z)({key:t,allowReset:!0},(0,m.omit)(n,["format"]),{value:i[e],onChange:t=>{i[e]=t,c(i),u((e=>{const t=Object.keys(e).map((t=>{const n=e[t],{format:o,placeholder:a}=fl[t];return isNaN(n)||""===n?"":`${t}(${(0,h.sprintf)(o,n||a)})`}));return(0,m.compact)(t).join(" ")})(i))}}))})))};kl.defaultProps={allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const yl=kl,_l=(0,y.jsx)(k.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y.jsx)(k.y$,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),Cl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{getBlock:o,__experimentalGetAllowedBlocks:a}=(0,N.select)("core/block-editor");let l;const{innerBlocks:r}=o(e);if(t)l=(0,_n.getBlockFromExample)(t,n);else{const t=(0,m.last)(r);l=(0,_n.getBlockFromExample)((null==t?void 0:t.name)||a(e)[0].name,(0,m.pick)(t||{},["attributes","innerBlocks"]))}(0,N.dispatch)("core/block-editor").insertBlock(l,r.length,e)},wl=e=>{let{label:t}=e;const{clientId:n}=(0,d.useBlockEditContext)();return(0,o.createElement)("div",{className:"block-editor-default-block-appender stk-column-appender"},(0,o.createElement)(c.Button,{onMouseDown:()=>Cl(n),icon:_l,label:t,tooltipPosition:"bottom",className:"block-editor-inserter__toggle"}))};wl.defaultProps={label:(0,h.__)("Add Column",g.i18n)};const Sl=wl,El=e=>{const{blockName:t="stackable/column",attributes:n}=e,{clientId:a,name:l}=(0,d.useBlockEditContext)(),{blockTitle:r}=(0,N.useSelect)((e=>{var t;return{blockTitle:null===(t=e("core/blocks").getBlockType(l))||void 0===t?void 0:t.title}}),[l]);return(0,o.createElement)(c.Placeholder,{icon:(0,o.createElement)(ha.SVGStackableIcon,null),label:r,instructions:(0,h.__)("There are no blocks in this group, please add one.",g.i18n)},(0,o.createElement)(c.Button,{isSecondary:!0,className:"ugb-design-library-block__button",onClick:()=>{Cl(a,t,n)}},(0,h.__)("Add Block",g.i18n)))},xl=()=>(0,B.applyFilters)("stackable.shadows",["none","0 0 0 1px #7878781a","0 0 0 2px #7878781a","0 5px 5px 0 #123f5209","0px 2px 20px #99999933","0 5px 30px -10px #123f524d","0px 10px 30px #0000000d","7px 5px 30px #48497927","0px 10px 60px #0000001a","0px 70px 90px -20px #4849794d"]),Tl=[{component:dl,key:"inset",props:{label:(0,h.__)("Inset",g.i18n)},default:!1},{component:ce,key:"horizontalOffset",props:{label:(0,h.__)("Horizontal Offset",g.i18n),placeholder:0,sliderMin:-100,sliderMax:100},format:"%spx",default:"0px"},{component:ce,key:"verticalOffset",props:{label:(0,h.__)("Vertical Offset",g.i18n),placeholder:0,sliderMin:-100,sliderMax:100},format:"%spx",default:"0px"},{component:ce,key:"blur",props:{label:(0,h.__)("Blur",g.i18n),placeholder:0,sliderMin:0,sliderMax:100},format:"%spx",default:"0px"},{component:ce,key:"shadowSpread",props:{label:(0,h.__)("Shadow Spread",g.i18n),placeholder:0,sliderMin:0,sliderMax:100},format:"%spx",default:"0px",show:e=>!e.isFilter},{component:O,key:"shadowColor",props:{label:(0,h.__)("Shadow Color",g.i18n)},default:"#000000"}],Bl=e=>{const[t,n]=(0,o.useState)({}),[l,r]=(0,o.useState)({}),[i,s]=(0,T.G)(e.attribute,e.responsive,e.hover),[c,d]=(0,E.ED)(e),u=void 0===e.value?i:e.value,p=void 0===e.onChange?s:e.onChange,v=(e,t,n,o)=>{if(e){let a=e.trim();a.startsWith("inset")?(t.inset=!0,a=a.replace(/^inset\s*/,"")):t.inset=!1;const[l,r,i,s,c]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;const n=e.split(" "),o=[];for(let e=0;e<t-1;e++)n.length?o.push(n.shift()):o.push("");return o.push(n.join(" ")),o}(a,o?4:5);t.horizontalOffset=isNaN(parseInt(l))?0:parseInt(l),t.verticalOffset=isNaN(parseInt(r))?0:parseInt(r),t.blur=isNaN(parseInt(i))?0:parseInt(i),t.shadowSpread=isNaN(parseInt(s))?0:parseInt(s),t.shadowColor=c||"",o&&(t.shadowSpread="",t.shadowColor=s),n({...t})}};return(0,o.useEffect)((()=>{v(u,t,n,e.isFilter)}),[u,e.isFilter]),(0,o.useEffect)((()=>{v(e.placeholder,l,r,e.isFilter)}),[e.placeholder,e.isFilter]),(0,o.createElement)(ls.Z,{placement:"top-start",className:"shadow-control__popover",anchorRect:e.anchorRect,onEscape:e.onEscape},(0,o.createElement)("div",{className:"components-panel__body is-opened"},(0,o.createElement)(E.ZP,(0,a.Z)({},d,{label:(0,h.__)("Advanced Shadow Options",g.i18n),boldLabel:!0}),Tl.map((r=>{if(!e.hasInset&&"inset"===r.key)return null;const i={...r.props},s=r.component;return r.show&&!r.show(e.parentProps)?null:("inset"===r.key&&(i.checked=!!t[r.key]),"shadowColor"===r.key&&(i.default=l[r.key]||"",i.value=t[r.key]||l[r.key]||""),(0,o.createElement)(s,(0,a.Z)({key:r.key,allowReset:!0,value:t[r.key]||""},i,{placeholder:l[r.key]||"",onChange:o=>{const a=(r.changeCallback||(e=>e))(o);t[r.key]=a,n({...t}),p(((e,t)=>(0,m.compact)(Tl.map((n=>{const{key:o}=n;return"inset"===o?t[o]?"inset":"":!n.show||n.show(e)?n.format&&void 0!==t[o]&&""!==t[o]?(0,h.sprintf)(n.format,t[o]):t[o]||n.default||"":void 0}))).join(" "))(e.parentProps,t))}})))})))))};Bl.defaultProps={hasInset:!0,isFilter:!1};const Ml=(0,o.memo)((e=>{var t;const{options:n,label:l,...r}=e,i=n||xl(),s=(0,o.useRef)(null),[d,u]=(0,o.useState)(!1),p=e=>e?-1===i.indexOf(e)?"custom":i.indexOf(e):"",[m,v]=(0,T.G)(e.attribute,e.responsive,e.hover,p,(e=>""!==e?i[e]:e)),b=void 0===e.value?m:e.value,[f,k]=(0,E.ED)(r);return(0,o.useEffect)((()=>{const e=e=>{d&&(e.target.closest(".shadow-control__popover")||e.target.closest(".stk-shadow-control__more-button")||e.target.closest(".components-color-picker")||e.target.closest(".react-autosuggest__suggestions-container")||e.target.closest(".components-dropdown__content")||u(!1))};return document.body.addEventListener("mousedown",e),()=>document.body.removeEventListener("mousedown",e)}),[d]),(0,o.useEffect)((()=>{}),[b,d]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(ce,(0,a.Z)({},f,k,{attribute:e.attribute,label:l,value:b,onChange:void 0===e.onChange?v:e.onChange,min:0,max:i.length-1,allowReset:!0,helpTooltip:e.helpTooltip,hover:e.hover,placeholder:"custom"===b?(0,h.__)("Custom",g.i18n):p(e.placeholder),after:(0,o.createElement)(c.Button,{className:"stk-shadow-control__more-button",ref:s,isSmall:!0,isTertiary:!0,isPressed:d||"custom"===b,label:(0,h.__)("Shadow Settings",g.i18n),onClick:()=>u(!d),icon:(0,o.createElement)(c.Dashicon,{icon:"admin-generic"})})})),d&&(0,o.createElement)(Bl,(0,a.Z)({},k,{anchorRect:null===(t=s.current)||void 0===t?void 0:t.getBoundingClientRect(),attribute:e.attribute,responsive:e.responsive,placeholder:e.placeholder,hover:e.hover,parentProps:e,hasInset:e.hasInset,isFilter:e.isFilter,onEscape:()=>u(!1),value:e.shadowFilterValue,onChange:e.shadowFilterOnChange})))}),m.isEqual);Ml.defaultProps={attribute:"",label:(0,h.__)("Shadow / Outline",g.i18n),placeholder:"",options:null,valueCallback:null,changeCallback:null,isFilter:!1,hasInset:!0,helpTooltip:{video:"general-shadow",title:(0,h.__)("Shadow/Outline",g.i18n),description:(0,h.__)("Adjusts the intensity of the shadow/outline of the block and the appearance of the block border",g.i18n)}};const Al=Ml,Nl=e=>{const[t,n]=(0,T.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=(0,E.ED)(e),{isDynamic:i,...c}=l,u=void 0===e.value?t:e.value,p=void 0===e.onChange?n:e.onChange,h=(0,D.WA)({value:u,onChange:p}),g=s()(["stk-link-control",e.className],{"stk--has-value":u});return(0,o.createElement)(E.ZP,(0,a.Z)({},r,{className:g}),(0,o.createElement)(D.ZP,(0,a.Z)({type:["link","image-url"],enable:i},h),(0,o.createElement)("div",{className:"stk-link-control__input"},(0,o.createElement)(d.__experimentalLinkControl,(0,a.Z)({},c,{value:{url:u},onChange:e=>{let{url:t}=e;return p(t)},settings:[],forceIsEditingLink:!u})))),(0,o.createElement)(x.J,{allowReset:e.allowReset&&!e.dynamic,value:u,onChange:()=>p("")}))};Nl.defaultProps={className:"",label:"",screens:["desktop"],help:"",value:void 0,onChange:void 0,showSuggestions:!0,isDynamic:!0,allowReset:!0};const Il=Nl,Rl=wp.keycodes,Pl=e=>{const{options:t,value:n}=e;return(0,o.createElement)("div",{className:s()(e.className,"stk-block-editor-block-styles")},t.map(((t,a)=>(0,o.createElement)(Ol,{key:a,isActive:n===t[e.activeProperty],onSelect:e.onSelect,option:t}))))};Pl.defaultProps={className:"",onSelect:()=>{},options:[],value:"",activeProperty:"value"};const Ol=(0,o.memo)((e=>{const{option:t,isActive:n,onSelect:a}=e,l=e=>{t.disabled||n||a(e)},r=t.icon;return(0,o.createElement)("div",{className:s()("stk-style-control__option","stk-block-editor-block-styles__item",{"is-active":n,"is-disabled":t.disabled}),onClick:()=>l(t),onKeyDown:e=>{Rl.ENTER!==e.keyCode&&Rl.SPACE!==e.keyCode||(e.preventDefault(),l(t))},role:"button",tabIndex:"0","aria-label":t.label||""},(0,o.createElement)("div",{className:"stk-block-editor-block-styles__item-preview stk-style-control__image"},t.image||r&&(0,o.createElement)(r,{className:"stk-style-control__image__icon"})),t.label&&(0,o.createElement)("div",{className:"stk-block-editor-block-styles__item-label"},t.label))}));Ol.defaultProps={option:{},isActive:!1,onSelect:()=>{}};const Hl=Pl;var zl=n(7044);const Ll=(0,o.forwardRef)(((e,t)=>{const{children:n,className:l,tagName:r,...i}=e,c=s()(["stk-link",l]),d=r||"a";return(0,o.createElement)(d,(0,a.Z)({ref:t,className:c,href:"a"===r?"javascript:void(0)":void 0},i),n)}));Ll.defaultProps={className:"",tagName:"a"},Ll.Content=e=>{const t=s()(["stk-link",e.className]),n=(0,m.omit)(e,["target","rel","tagName"]),l=e.tagName||"a";e.target&&(n.target=e.target);const r=(e.rel||"").split(" ").filter((e=>!!e));return"_blank"===e.target&&(r.includes("noreferrer")||r.push("noreferrer"),r.includes("noopener")||r.push("noopener")),r.length&&(n.rel=r.join(" ")),(0,o.createElement)(l,(0,a.Z)({},n,{className:t}))},Ll.Content.defaultProps={className:"",target:"",rel:"",href:"",tagName:"a"};const Dl=Ll,Fl=[.25,.33333,.5,.66666,.75,1],$l=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1],Ul=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"right",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const l=e.slice(0,t).reduce(((e,t)=>e+t),0),r=l+e[t],i=a?$l:Fl;return i.map((e=>{const t=n*e;return"right"===o?t-l:r-t}))},Wl=Fl.map((e=>100*e)),Vl=$l.map((e=>100*e)),Gl=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t?Vl:Wl;return e.map((e=>{let t=e;return n.some((n=>Math.abs(e-n)<.2&&(t=n,!0))),t}))},jl=(0,o.createContext)({showColumnTooltip:!1,setShowColumnTooltip:()=>{}}),Zl=e=>{const{providerValue:t,...n}=e;return(0,o.createElement)(jl.Provider,{value:t},(0,o.createElement)(d.InnerBlocks,n))};Zl.useContext=()=>{const[e,t]=(0,o.useState)(!1);return[{showColumnTooltip:e,setShowColumnTooltip:t},e?"stk--column-tooltip-hovered":""]};const ql=Zl,Yl=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),(0,o.createElement)("path",{d:"M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0l154.7 154 154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-33.9 0z"}))};var Kl=n(376);const Xl={Desktop:5,Tablet:10,Mobile:10},Jl=e=>(Math.trunc(10*e)/10).toFixed(1),Ql=e=>{const{clientId:t}=(0,d.useBlockEditContext)(),{getEditorDom:n}=(0,N.useSelect)("stackable/editor-dom"),{isFirstBlock:a,isLastBlock:l,isOnlyBlock:r,adjacentBlocks:i,blockIndex:u,parentBlock:p}=(0,N.useSelect)((e=>{const{getBlockOrder:n,getBlockRootClientId:o,getBlock:a}=e("core/block-editor"),l=o(t),r=a(l),i=r.innerBlocks,s=n(l).indexOf(t);return{isFirstBlock:0===s,isLastBlock:s===i.length-1,isOnlyBlock:1===i.length,adjacentBlocks:i,blockIndex:s,parentBlock:r}}),[t]),h=!e.context["stackable/innerBlockOrientation"],g=!!e.context["stackable/columnWrapDesktop"],v=(0,I.useDeviceType)(),[b,f]=(0,o.useState)([]),[k,y]=(0,o.useState)(""),[_,C]=(0,o.useState)([]),[w,S]=(0,o.useState)(2e3),[E,x]=(0,o.useState)(""),[T,B]=(0,o.useState)(null),M="Desktop"===v,A="Tablet"===v,[R,P]=(0,o.useState)(null==i?void 0:i.length);(0,o.useEffect)((()=>{R&&null!=i&&i.length?(R!==(null==i?void 0:i.length)&&(e.onResetDesktop(),P(i.length)),(null==i?void 0:i.length)<R&&1===(null==i?void 0:i.length)&&e.onResetTabletMobile()):P(null==i?void 0:i.length)}),[i]),(0,o.useEffect)((()=>{p&&M&&!g&&U()}),[g]);const[O,H]=(0,o.useState)(!1);(0,o.useEffect)((()=>(H(!0),()=>{H(!1)})),[]);const z=(0,I.useWithShift)();(0,o.useEffect)((()=>{B(null)}),[z]);const L=s()(["stk-column-resizeable",e.className]),D={top:!1,right:"Desktop"===v?!r&&(!l||g):!r,bottom:!1,left:"Desktop"===v&&!r&&!a&&!g,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},F=null==p?void 0:p.clientId,$=(0,o.useRef)(void 0),U=()=>{const t=(0,N.select)("core/block-editor").getBlock(F);if(!t)return;const n=$.current=t.innerBlocks;let o=0;const a=n.map((e=>{let{attributes:t}=e;return o+=t.columnWidth,t.columnWidth}));o<100&&o>0&&(a[a.length-1]+=100-o,(0,m.isEqual)(a.map((e=>0|e)),[33,33,33])?e.onChangeDesktop([33.33,33.33,33.33]):e.onChangeDesktop(a))},[W,V]=(0,o.useState)(!1),[G,j]=(0,o.useState)(!1),{showColumnTooltip:Z,setShowColumnTooltip:q}=(0,o.useContext)(jl);return(0,o.useEffect)((()=>{W||(G&&!Z?q(t):G||Z!==t||q(!1))}),[Z,q,G,W,t]),(0,o.createElement)(c.ResizableBox,{enable:!!e.isHovered&&D,minWidth:"30",minHeight:"30",maxWidth:w,className:L,showHandle:!(!h||!e.isHovered)&&e.showHandle,snap:T,snapGap:20,onResizeStart:(e,o)=>{const a=(0,N.select)("core/block-editor").getBlock(F),{columnGap:l,columnGapTablet:r,columnGapMobile:i}=(null==a?void 0:a.attributes)||{},s=l||0,c=n(),d=$.current=a.innerBlocks;if(M&&!g){const e=s*(d.length-1),t=c.querySelector(`[data-block="${F}"] .stk-inner-blocks`).clientWidth-e,n=d.every((e=>{let{attributes:t}=e;return!t.columnWidth})),a=d.map((e=>{let{clientId:o,attributes:a}=e;if(n)return 1*t/d.length;if(a.columnWidth)return t*a.columnWidth/100;const l=c.querySelector(`[data-block="${o}"]`);return(null==l?void 0:l.clientWidth)||0}));f(a);const l="right"===o?u+1:u-1,r=a[u]+(a[l]-30);S(r)}else{const e=d.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/d.length}));f(e);const n=c.querySelector(`[data-block="${t}"]`),o=(null==n?void 0:n.clientWidth)||0;y(o);const a=c.querySelector(`[data-block="${F}"]`),l=(null==a?void 0:a.clientWidth)||0;S(l)}j(!0)},onResize:(e,n,o,a)=>{let l=[];const r=$.current;if(M&&!g){const e=[...b],t=b.reduce(((e,t)=>e+t),0),o="right"===n?u+1:u-1;e[o]-=a.width,e[u]+=a.width,l=(e||[]).map((e=>parseFloat(Jl(e/t*100)))),l=Gl(l,z);let i=l.reduce(((e,t)=>e+t),0);100!==i&&(l[o]=parseFloat(Jl(l[o]+100-i))),i=l.reduce(((e,t)=>e+t),0),100!==i&&(l[o]=l[o]+100-i),C(l);const s=l.map(((e,t)=>`.editor-styles-wrapper [data-block][data-block="${r[t].clientId}"] {\n\t\t\t\t\tflex: 1 1 ${e}% !important;\n\t\t\t\t\tmax-width: ${e}% !important;\n\t\t\t\t}\n\t\t\t\t[data-block="${r[t].clientId}"] .stk-resizable-column__size-tooltip {\n\t\t\t\t\t--width: '${Jl(e)}%' !important;\n\t\t\t\t}`)).join("");x(s),T||B({x:Ul(e,u,t,n,z)})}else{const e=k+a.width;l=(0,m.clamp)(parseFloat(Jl(e/w*100)),0,100),l=Gl([l],z)[0],C(l);const o=[...b];o[u]=l;const r=(0,Kl.w)(o),i=r.filter((e=>e===r[u])).length,s=`.editor-styles-wrapper [data-block][data-block="${t}"] {\n\t\t\t\t\tflex: 1 1 calc(${l}% - var(--stk-column-gap, 0px) * ${i-1} / ${i} ) !important;\n\t\t\t\t\tmax-width: calc(${l}% - var(--stk-column-gap, 0px) * ${i-1} / ${i} ) !important;\n\t\t\t\t}\n\t\t\t\t[data-block="${t}"] .stk-resizable-column__size-tooltip {\n\t\t\t\t\t--width: '${Jl(l)}%' !important;\n\t\t\t\t}`;x(s),T||B({x:Ul([100],0,w,n,z)})}},onResizeStop:(t,n,o,a)=>{const l=$.current;if(a.width)if(M&&!g)(0,m.isEqual)(_.map((e=>0|e)),[33,33,33])?e.onChangeDesktop([33.33,33.33,33.33]):e.onChangeDesktop(_);else if(M){const t=l.map((e=>{let{attributes:t}=e;return t.columnWidth||100/l.length}));t[u]=_,e.onChangeDesktopWrap(_,t,u)}else if(A){const t=l.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/l.length}));t[u]=_,e.onChangeTablet(_,t,u)}else{const t=l.map((e=>{let{attributes:t}=e;return t.columnWidthMobile||100}));t[u]=_,e.onChangeMobile(_,t,u)}E&&setTimeout((()=>{O&&x("")}),400),B(null),j(!1),$.current=void 0}},h&&(0,o.createElement)(er,{isVisible:!r,adjacentBlocks:i,isOnlyBlock:r,blockIndex:u,isLastBlock:l,isFirstBlock:a,value:M?e.columnWidth:A?e.columnWidthTablet||e.columnWidth:e.columnWidthMobile,onChange:t=>{if(""!==t&&t<Xl[v])return;const n=(0,N.select)("core/block-editor").getBlock(F).innerBlocks;if(M&&!g){const o=n.every((e=>{let{attributes:t}=e;return!t.columnWidth})),a=n.map((e=>{let{attributes:t}=e;return o?100/n.length:t.columnWidth})),l=n.length-1!==u?u+1:u-1,r=a[u]+(a[l]-5),i=(0,m.clamp)(t,Xl.Desktop,r),s=i-a[u];a[l]-=s,a[u]=i,e.onChangeDesktop(a)}else if(M){const o=n.map((e=>{let{attributes:t}=e;return t.columnWidth||100/n.length})),a=t?(0,m.clamp)(t,Xl[v],100):"";o[u]=a,e.onChangeDesktopWrap(a,o,u)}else if(A){const o=n.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/n.length})),a=t?(0,m.clamp)(t,Xl[v],100):"";o[u]=a,e.onChangeTablet(a,o,u)}else{const o=n.map((e=>{let{attributes:t}=e;return t.columnWidthMobile||100})),a=t?(0,m.clamp)(t,Xl[v],100):"";o[u]=a,e.onChangeMobile(a,o,u)}},onTogglePopup:e=>{V(e),e?q(t):G||Z!==t||q(!1)},tooltipProps:{onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1)}}),E&&(0,o.createElement)("style",null,E),e.children)},er=(0,o.memo)((e=>{const{adjacentBlocks:t,isOnlyBlock:n,blockIndex:l,isLastBlock:r,isFirstBlock:i}=e,s=(0,I.useDeviceType)(),[c,d]=(0,o.useState)(!1),[u,p]=(0,o.useState)(""),[v,b]=(0,o.useState)(""),f=(0,o.useRef)(),k=(0,o.useRef)();let y="";if(void 0!==t&&!e.value&&!u)if("Desktop"===s||"Tablet"===s){const e=Jl(100/t.length);y="33.3"===e.toString()?33.33:e}else y=100;const _=(e.value?Jl(parseFloat(e.value)):"")||u||y,C=_!==(0,h.__)("Auto",g.i18n)?`'${_}%'`:`'${_}'`;return(0,o.useEffect)((()=>{e.onTogglePopup&&e.onTogglePopup(c),c&&(p(e.value),b(e.value||(y!==(0,h.__)("Auto",g.i18n)?y:"")),setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.querySelector("input").select()}),1))}),[c]),(0,o.useEffect)((()=>{var e;const t=()=>{d(!0)};return null===(e=k.current)||void 0===e||e.addEventListener("openColumnInputPopup",t),()=>{var e;null===(e=k.current)||void 0===e||e.removeEventListener("openColumnInputPopup",t)}}),[k.current]),(0,o.createElement)(o.Fragment,null,!n&&c&&(0,o.createElement)(ls.Z,{className:"stk-resizable-column__popup",anchorRef:k.current,position:"bottom right",onFocusOutside:e=>{e.relatedTarget!==k.current&&d(!1)},onEscape:()=>d(!1)},(0,o.createElement)("div",{ref:f},(0,o.createElement)($,{label:(0,h.__)("Column",g.i18n),className:"stk-resizable-column__input",value:v,allowReset:!1,onChange:t=>{const n="Desktop"===s?u:"",o=(0,m.clamp)(t,0,100)||n;""===o&&p(""),e.onChange(o),b(t)},onKeyDown:e=>{9===e.keyCode&&(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right";if(window.CustomEvent)if("right"===e){const e=r?0:l+1,t=k.current.closest(".stk-row").querySelectorAll(".stk-resizable-column__size-tooltip")[e];null==t||t.dispatchEvent(new window.CustomEvent("openColumnInputPopup"))}else{const e=i?t.length-1:l-1,n=k.current.closest(".stk-row").querySelectorAll(".stk-resizable-column__size-tooltip")[e];null==n||n.dispatchEvent(new window.CustomEvent("openColumnInputPopup"))}}(e.shiftKey?"left":"right"),e.stopPropagation(),e.preventDefault())},placeholder:u||y||e.value}))),!n&&(0,o.createElement)("div",(0,a.Z)({},e.tooltipProps,{className:"stk-resizable-column__size-tooltip",ref:k,style:{"--width":C},onMouseDown:e=>{d(!c),e.preventDefault()},onKeyDown:e=>{13===e.keyCode&&d(!c)},role:"button",tabIndex:"0"}),(0,o.createElement)(Yl,{fill:"currentColor",width:"10"})))})),tr=()=>{};er.defaultProps={isVisible:!0,value:"",onChange:tr,tooltipProps:{},onTogglePopup:null},Ql.defaultProps={className:"",context:null,showHandle:!0,columnWidth:"",columnWidthTablet:"",columnWidthMobile:"",isHovered:!1,onChangeDesktop:tr,onChangeTablet:tr,onChangeMobile:tr,onResetDesktop:tr};const nr=(0,o.memo)(Ql),or=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"},e),(0,o.createElement)("path",{d:"M207 381.5L12.7 187.1c-9.4-9.4-9.4-24.6 0-33.9l22.7-22.7c9.4-9.4 24.5-9.4 33.9 0l154.7 154 154.7-154c9.4-9.3 24.5-9.3 33.9 0l22.7 22.7c9.4 9.4 9.4 24.6 0 33.9L241 381.5c-9.4 9.4-24.6 9.4-33.9 0z"}))},ar=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%";return"%"===n&&(t=(0,m.clamp)(e,5,100)),t=Math.max(e,5),isNaN(t)?"":t},lr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"height",o=arguments.length>3?arguments[3]:void 0;if("px"===t)return"height"===n?null==o?void 0:o.clientHeight:null==o?void 0:o.clientWidth;const a=null==o?void 0:o.closest(".stk-img-resizer"),l=null==a?void 0:a.parentElement;if(!l)return e;const r="height"===n?l.clientHeight:l.clientWidth;return(0,m.clamp)(10*Math.round(e/r*10),10,100)},rr=e=>{const[t,n]=(0,o.useState)(!1),[a,l]=(0,o.useState)(""),[r,i]=(0,o.useState)(""),[d,u]=(0,o.useState)(null),[p,m]=(0,o.useState)(null),v=(0,o.useRef)(),b=(0,o.useRef)(),f=()=>{setTimeout((()=>{var e;null===(e=b.current)||void 0===e||e.querySelector("input").select()}),1)};(0,o.useEffect)((()=>{u(null),m(null),t?(l(e.width),i(e.height),f()):(l(""),i(""))}),[t]);const k=s()(["stk-resizer-tooltip"],{"stk--is-editing":t}),y=s()(["stk-resizer-popup"],{"stk--is-wide":e.enableWidth&&e.enableHeight}),_=(0,o.createElement)($,{placeholder:e.widthPlaceholder,default:"auto"===e.defaultWidth?"":e.defaultWidth,type:"number",label:e.enableWidth&&e.enableHeight?(0,h.__)("Width",g.i18n):(0,h.sprintf)((0,h.__)("%s Width",g.i18n),e.label),className:"stk-resizer-popup__size",units:e.widthUnits,unit:e.widthUnit,value:"auto"===a?"":a,allowReset:e.allowReset,onChangeUnit:t=>{if(t===e.widthUnit)return;let n=null;if(null===d){var o;u(e.width);const a=null===(o=v.current)||void 0===o?void 0:o.parentElement.querySelector(".stk-img"),r=lr(e.width,t,"width",a);l(r),n=ar(r,t)}else l(d),n=d,u(null);e.onChangeWidth({value:n,unit:t}),f()},onChange:t=>{const n="auto"===t?"":t;u(null),l(n),n>=5?e.onChangeWidth({value:ar(n,e.widthUnit),unit:e.widthUnit}):""===n&&(u(null),l(""),e.enableWidth&&e.onChangeWidth({value:"",unit:""}))}}),C=(0,o.createElement)($,{placeholder:e.heightPlaceholder,default:"auto"===e.defaultHeight?"":e.defaultHeight,type:"number",label:e.enableWidth&&e.enableHeight?(0,h.__)("Height",g.i18n):(0,h.sprintf)((0,h.__)("%s Height",g.i18n),e.label),className:"stk-resizer-popup__size",units:e.heightUnits,unit:e.heightUnit,value:"auto"===r?"":r,allowReset:e.allowReset,onChangeUnit:t=>{if(t===e.heightUnit)return;let n=null;if(null===p){var o;m(e.height);const a=null===(o=v.current)||void 0===o?void 0:o.parentElement.querySelector(".stk-img"),l=lr(e.height,t,"height",a);i(l),n=ar(l,t)}else i(p),n=p,m(null);e.onChangeHeight({value:n,unit:t}),f()},onChange:t=>{const n="auto"===t?"":t;m(null),i(n),n>=5?e.onChangeHeight({value:ar(n,e.heightUnit),unit:e.heightUnit}):""===n&&(m(null),i(""),e.enableHeight&&e.onChangeHeight({value:"",unit:""}))}});let w=a||0===a?a:e.width||0===e.width?e.width:e.widthPlaceholder;w="auto"===w?"auto":`${w}${e.widthUnit}`;let S=r||0===r?r:e.height||0===e.height?e.height:e.heightPlaceholder;return S="auto"===S?"auto":`${S}${e.heightUnit}`,(0,o.createElement)(o.Fragment,null,t&&(0,o.createElement)(ls.Z,{className:y,anchorRef:v.current,position:"bottom right",onFocusOutside:e=>{e.relatedTarget!==v.current&&n(!1)},onEscape:()=>n(!1)},(0,o.createElement)("div",{ref:b},e.enableWidth&&e.enableHeight&&(0,o.createElement)(c.BaseControl,{help:e.help,className:s()("stk-control stk--no-padding",e.className),__nextHasNoMarginBottom:!0},(0,o.createElement)("div",{className:"stk-control-label"},(0,o.createElement)("div",{className:"components-base-control__label"},(0,o.createElement)("h3",null,(0,h.sprintf)((0,h.__)("%s Size",g.i18n),e.label)))),(0,o.createElement)("div",{className:"stk-resizer-popup__control-wrapper"},_,(0,o.createElement)("span",{className:"stk-resizer-popup__x"},"×"),C)),!(e.enableWidth&&e.enableHeight)&&(0,o.createElement)("div",{className:"stk-resizer-popup__control-wrapper"},e.enableWidth&&!e.enableHeight&&_,!e.enableWidth&&e.enableHeight&&C))),(0,o.createElement)("div",{className:k,role:"button",tabIndex:"0",onMouseDown:()=>{n(!t)},onKeyDown:e=>{13===e.keyCode&&n(!t)},ref:v},e.enableWidth?w:null,e.enableWidth&&e.enableHeight?" × ":null,e.enableHeight?S:null,(0,o.createElement)(or,{fill:"currentColor",width:"10"})))};rr.defaultProps={width:"",height:"",widthUnit:"%",heightUnit:"px",widthUnits:["px","%"],heightUnits:["px","%"],enableWidth:!0,enableHeight:!0,allowReset:!0,onChangeWidth:()=>{},onChangeHeight:()=>{},label:(0,h.__)("Image",g.i18n),defaultWidth:"",defaultHeight:""};const ir=rr,sr=e=>{const t=(0,I.useDeviceType)();return(0,o.createElement)(o.Fragment,null,o.Children.toArray(e.children).map((n=>(0,o.cloneElement)(n,{screens:e.screens,...e[t.toLowerCase()+"Props"]}))))};sr.defaultProps={screens:"all",desktopProps:{},tabletProps:{},mobileProps:{}};const cr=sr,dr={Desktop:24,Tablet:24,Mobile:16},ur=(0,m.range)(50,1001,50),pr=(0,m.range)(8,1001,8),hr={bottom:{height:"100%"}},gr={top:!1,right:!1,bottom:!0,left:!1},mr=e=>{const{deviceType:t}=e,{name:n}=(0,d.useBlockEditContext)(),[a,l]=(0,o.useState)(null),[r,i]=(0,o.useState)(null),[u,p]=(0,o.useState)(!1),h=(0,o.useRef)(null),[g,m]=(0,o.useState)(ur),v=(0,I.useWithShift)();(0,o.useEffect)((()=>{m(null)}),[v]);const b=(0,B.applyFilters)("stackable.resizable-bottom-margin.default",dr[t],n),f=s()(["stk-resizable-bottom-margin"],{"stk--is-resizing":null!==a,"stk--is-tiny":(""!==e.value?e.value:b)<5}),k=e.value||0===e.value?e.unit:"px",y=e.value||0===e.value?e.value:b,_=e=>{if("%"===k&&h.current){const t=h.current.getParentSize().width;return{height:y/100*t+e,delta:e/t*100}}return{height:y,delta:e}};return(0,o.createElement)(c.ResizableBox,{ref:h,className:f,minHeight:"0",handleStyles:hr,enable:gr,size:{height:_(0).height},snap:g,snapGap:5,onResizeStart:()=>{h.current&&h.current.resizable&&h.current.resizable.closest(".wp-block")?i(h.current.resizable.getBoundingClientRect().top-h.current.resizable.closest(".wp-block").getBoundingClientRect().top):i(null),l(y),p(!0)},onResize:(e,t,n,o)=>{let a=o.height;if("%"===k){const{height:e,delta:t}=_(a);a=t,n.style.height=`${e}px`}null!==r&&(n.style.top=`${r}px`),l(y+a),g||m(function(){return{y:arguments.length>0&&void 0!==arguments[0]&&arguments[0]?pr:ur}}(v))},onResizeStop:(t,n,o)=>{o.style.top="",e.onChange(parseInt(a,10)===parseInt(b,10)&&"px"===k?"":parseInt(a,10)),l(null),p(!1)}},e.previewSelector&&u&&(0,o.createElement)("style",null,`.editor-styles-wrapper ${e.previewSelector} { margin-bottom: ${a}${k} !important; }`),(0,o.createElement)("span",{className:"stk-resizable-bottom-margin__label"},`${u?parseInt(a,10):y}${k}`))};mr.defaultProps={previewSelector:"",value:"",onChange:()=>{}};const vr=e=>{var t;const n=(0,I.useBlockSetAttributesContext)(),a=(0,I.useDeviceType)(),l=(0,L.getAttributeName)(e.attribute,a),r=(0,L.getAttributeName)(`${e.attribute}Unit`,a);let i=null===(t=e[l])||void 0===t?void 0:t.bottom,s=e[r];if("Mobile"===a&&(void 0===i||""===i)){var c;const t=(0,L.getAttributeName)(e.attribute,"Tablet"),n=(0,L.getAttributeName)(`${e.attribute}Unit`,"Tablet");i=null===(c=e[t])||void 0===c?void 0:c.bottom,s=e[n]}if(!("Tablet"!==a&&"Mobile"!==a||void 0!==i&&""!==i)){var d;const t=(0,L.getAttributeName)(e.attribute,"Desktop"),n=(0,L.getAttributeName)(`${e.attribute}Unit`,"Desktop");i=null===(d=e[t])||void 0===d?void 0:d.bottom,s=e[n]}return(0,o.createElement)(mr,{deviceType:a,previewSelector:e.previewSelector,value:i,unit:s,onChange:t=>{n({[l]:{...e[l],bottom:t}})}})};vr.defaultProps={previewSelector:"",attribute:"",responsive:!1};const br=vr,fr=e=>{const{blockName:t}=e,n=(0,_n.getBlockType)(t),a=(0,L.getBlockStyleAttributesFilter)(t),l=(0,o.useMemo)((()=>(0,L.getFilteredAttributes)(n.attributes,a)),[]),[r,i]=(0,o.useState)(!1),[d,u]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!1),[v,b]=(0,o.useState)(!1),[k,y]=(0,o.useState)(0),_=(0,o.useRef)(null),C=(0,o.useRef)(null),w=(0,o.useRef)(null),S=(0,o.useRef)([]),E=(0,N.useSelect)((e=>{var t;return null===(t=e("core").getCurrentUser())||void 0===t?void 0:t.id}),[]),T=(0,I.useBlockAttributesContext)(),M=(0,I.useBlockSetAttributesContext)(),{blockStyle:A,modifiedBlockStyle:R,uniqueId:P,generatedCss:O,...H}=T,z=s()(["components-panel__body","ugb-block-styles-controls"]),D=s()(["ugb-pro-control-button__wrapper"],{"ugb-pro-control-button--hidden":!d}),F=e=>{S.current.includes(document.activeElement)&&("ArrowDown"===e.key?(e.preventDefault(),y((e=>(e+1)%S.current.length))):"ArrowUp"===e.key&&(e.preventDefault(),y((e=>(e-1+S.current.length)%S.current.length))))};(0,o.useEffect)((()=>{S.current[k]&&S.current[k].focus()}),[k]),(0,o.useEffect)((()=>{if(!v)return u(!1),y(-1),void(S.current=[]);const e=w.current;if(!e)return;S.current.length||(S.current=Array.from(e.querySelectorAll("button")));const t=e.querySelector(".ugb-block-styles-controls__selected");if(t&&S.current.length){const e=S.current.indexOf(t);y(e)}return e.addEventListener("keydown",F),()=>{e&&e.removeEventListener("keydown",F)}}),[v]),(0,o.useEffect)((()=>{(async()=>{const e=await(0,L.currentUserHasCapability)("manage_options");i(e)})()}),[E]),(0,o.useEffect)((()=>{null!==_.current&&_.current===A?!R&&A&&(0,L.isBlockStyleAttributesModified)(t,A,H)&&M({modifiedBlockStyle:!0}):_.current=A}),[T]);const $=(0,N.useSelect)((e=>e("stackable/global-block-styles").getBlockStyles(t)),[R]),{inBlockStyleOptions:U,blockStyleLabel:W,blockStyleAttributes:V}=(0,o.useMemo)((()=>{const e=$.findIndex((e=>e.slug===A));return-1===e?{inBlockStyleOptions:!1,blockStyleLabel:(0,h.__)("Default",g.i18n)}:{inBlockStyleOptions:!0,blockStyleLabel:$[e].name,blockStyleAttributes:$[e].nonCssAttributes}}),[A]),G=(0,B.applyFilters)("stackable.global-settings.global-block-styles.save-update-modal",o.Fragment);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:z},(0,o.createElement)("div",{className:"ugb-block-styles-controls__wrapper "+(R&&U?"has-modified":"")},(0,o.createElement)(f.Z,{variant:"tertiary",className:"ugb-block-styles-controls__block-style-button",size:"small",icon:"edit",iconSize:12,onMouseDown:()=>b((e=>!e)),ref:C},`${(0,h.__)("Block Style",g.i18n)}:`," ",(0,o.createElement)("wbr",null)," ",W,R&&U?(0,o.createElement)("span",{className:"stk-panel-modified-indicator stk--visible"}):""),(0,o.createElement)(x.J,{allowReset:!0,value:R&&U,default:!1,onChange:()=>{M(A&&U?{...l,...V,blockStyle:A}:l)}}))),v&&(0,o.createElement)(c.Popover,{className:"ugb-button-icon-control__popover ugb-block-styles-controls__popover",anchor:C.current,onEscape:()=>b(!1),onClose:()=>b(!1),focusOnMount:!1,placement:"left-start",resize:!1,offset:8},(0,o.createElement)(c.PanelBody,null,(0,o.createElement)("h2",{className:"components-panel__body-title"},(0,h.__)("Block Styles",g.i18n)),(0,o.createElement)("p",{className:"components-panel__body-description"},(0,h.__)("Save the styles of this block to reuse on others. You can also update a saved style, and the changes will apply wherever it's used.",g.i18n)," ",(0,o.createElement)("a",{href:"https://docs.wpstackable.com/article/737-how-to-use-block-styles",target:"_docs",rel:"noreferrer"},(0,h.__)("Learn more",g.i18n))),(0,o.createElement)("ul",{className:"ugb-block-styles-controls__list",ref:w},(0,o.createElement)("li",null,(0,o.createElement)(f.Z,{onClick:()=>(y(0),void(A&&(M({...l,modifiedBlockStyle:!1}),(0,N.dispatch)("stackable/hover-state").updateHoverState("normal")))),className:A?"":"ugb-block-styles-controls__selected",tabIndex:0},!A&&(0,o.createElement)("span",{className:"ugb-block-styles-controls__selected-icon"}," ",(0,o.createElement)(c.Dashicon,{icon:"saved"})," "),(0,o.createElement)("span",{className:"ugb-block-styles-controls__label"},(0,h.__)("Default",g.i18n)))),$.map(((e,t)=>(0,o.createElement)("li",{key:t},(0,o.createElement)(f.Z,{onClick:()=>((e,t)=>{y(t),g.isPro?(0,B.doAction)("stackable.global-settings.global-block-styles.select-block-style",e,A,$,l,M):u((e=>!e))})(e.slug,t+1),className:A===e.slug?"ugb-block-styles-controls__selected":"",tabIndex:0},A===e.slug&&(0,o.createElement)("span",{className:"ugb-block-styles-controls__selected-icon"}," ",(0,o.createElement)(c.Dashicon,{icon:"saved"})," "),(0,o.createElement)("span",{className:"ugb-block-styles-controls__label"},e.name," ",A===e.slug&&U&&R?`(${(0,h.__)("Modified",g.i18n)})`:""),!g.isPro&&(0,o.createElement)(c.Dashicon,{icon:"lock",size:12})))))),r&&(0,o.createElement)(kr,{blockName:t,blockStyle:A,inOptions:U,isModified:R,setOpenSaveModal:m,onAddBlockStyle:()=>{g.isPro?(0,B.doAction)("stackable.global-settings.global-block-styles.add-block-style",m):u((e=>!e))}}),(0,o.createElement)("div",{className:D},(0,o.createElement)(hn.Z,{type:"global-block-styles"})))),(0,o.createElement)(G,{openSaveModal:p,setOpenSaveModal:m,blockName:t,blockStyleLabel:W,defaultBlockAttributes:l}))},kr=e=>{const{onAddBlockStyle:t,...n}=e,a=(0,B.applyFilters)("stackable.global-settings.global-block-styles.action-buttons",o.Fragment);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.Flex,{style:{marginTop:"24px",justifyContent:"flex-end"}},(0,o.createElement)(a,n),(0,o.createElement)(c.FlexItem,{style:e.blockStyle&&e.inOptions?{}:{marginLeft:"auto"}},(0,o.createElement)(f.Z,{variant:"primary",onClick:()=>t(),size:"small"},(0,h.__)("Save New Block Style",g.i18n),!g.isPro&&(0,o.createElement)("span",{className:"stk-pulsating-circle",role:"presentation"})))))},{Slot:yr,Fill:_r}=(0,c.createSlotFill)("StackableLayoutPanel"),Cr=e=>{let{children:t}=e;return(0,o.createElement)(d.InspectorControls,null,(0,o.createElement)(_r,null,t))},wr=e=>{let{children:t}=e;const{name:n}=(0,d.useBlockEditContext)(),[a]=Jt(`tabCache-${n}`,"layout");return"layout"!==a?null:(0,o.createElement)(d.InspectorControls,null,t)},Sr=e=>{let{children:t}=e;const{name:n}=(0,d.useBlockEditContext)(),[a]=Jt(`tabCache-${n}`,"layout");return"style"!==a?null:(0,o.createElement)(d.InspectorControls,null,t)},Er=e=>{let{children:t}=e;const{name:n}=(0,d.useBlockEditContext)(),[a]=Jt(`tabCache-${n}`,"layout");return"advanced"!==a?null:(0,o.createElement)(d.InspectorControls,null,t)},xr=e=>{const{name:t,clientId:n}=(0,d.useBlockEditContext)(),a=(0,_n.getBlockSupport)(t,"stkDefaultTab")||"style",[l,r]=Jt(`tabCache-${t}`,e.tabs.includes(a)?a:"style");return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(d.InspectorControls,null,(g.isPro||g.showProNotice)&&(0,o.createElement)(fr,{blockName:t,clientId:n}),(0,o.createElement)(jn,{tabs:e.tabs,initialTab:l,onClick:r})),(0,o.createElement)(wr,null,e.hasLayoutPanel&&(0,o.createElement)(cn,{title:(0,h.__)("Layout",g.i18n),id:"layout",initialOpen:!0},(0,o.createElement)(yr,null))))};xr.defaultProps={tabs:["layout","style","advanced"],hasLayoutPanel:!0};const Tr=(0,o.memo)(xr),Br=e=>{let t=e.videoUrl,n=e.videoThumbnailUrl;const a=(0,I.useDeviceType)();return"Desktop"!==a&&e.videoUrlTablet&&(t=e.videoUrlTablet),"Mobile"===a&&e.videoUrlMobile&&(t=e.videoUrlMobile),"Desktop"!==a&&e.videoThumbnailUrlTablet&&(n=e.videoThumbnailUrlTablet),"Mobile"===a&&e.videoThumbnailUrlMobile&&(n=e.videoThumbnailUrlMobile),(0,L.urlIsVideo)(t)?(0,o.createElement)("video",{className:"stk-video-background",autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:t,poster:n}):null};Br.defaultProps={videoUrl:"",videoUrlTablet:"",videoUrlMobile:"",videoThumbnailUrl:"",videoThumbnailUrlTablet:"",videoThumbnailUrlMobile:""},(Br.Content=e=>{const t=s()(["stk-video-background"],{"stk--hide-tablet":e.videoUrlTablet,"stk--hide-mobile":e.videoUrlTablet||e.videoUrlMobile}),n=s()(["stk-video-background"],{"stk--hide-desktop":!0,"stk--hide-mobile":e.videoUrlMobile}),a=s()(["stk-video-background"],{"stk--hide-desktop":!0,"stk--hide-tablet":!0});return(0,o.createElement)(o.Fragment,null,(0,L.urlIsVideo)(e.videoUrl)&&(0,o.createElement)("video",{className:t,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:e.videoUrl,poster:e.videoThumbnailUrl}),(0,L.urlIsVideo)(e.videoUrlTablet)&&(0,o.createElement)("video",{className:n,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:e.videoUrlTablet,poster:e.videoThumbnailUrlTablet}),(0,L.urlIsVideo)(e.videoUrlMobile)&&(0,o.createElement)("video",{className:a,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:e.videoUrlMobile,poster:e.videoThumbnailUrlMobile}))}).defaultProps={videoUrl:"",videoUrlTablet:"",videoUrlMobile:"",videoThumbnailUrl:"",videoThumbnailUrlTablet:"",videoThumbnailUrlMobile:""};const Mr=Br,Ar=e=>{const{blockTag:t,className:n,hasBackground:l,backgroundUrl:r,backgroundUrlTablet:i,backgroundUrlMobile:c,backgroundThumbnailUrl:d,backgroundThumbnailUrlTablet:u,backgroundThumbnailUrlMobile:p,backgroundColorType:h,...g}=e,m=s()([n],{"stk--has-background-overlay":l&&("gradient"===h||r||i||c)});return(0,o.createElement)(t,(0,a.Z)({className:m},g),e.children,(0,o.createElement)(Mr,{videoUrl:r,videoUrlTablet:i,videoUrlMobile:c,videoThumbnailUrl:d,videoThumbnailUrlTablet:u,videoThumbnailUrlMobile:p}))};Ar.defaultProps={blockTag:"div",className:"",hasBackground:!0,backgroundUrl:"",backgroundUrlTablet:"",backgroundUrlMobile:"",backgroundColorType:""},(Ar.Content=e=>{const{blockTag:t,className:n,hasBackground:l,backgroundUrl:r,backgroundUrlTablet:i,backgroundUrlMobile:c,backgroundThumbnailUrl:d,backgroundThumbnailUrlTablet:u,backgroundThumbnailUrlMobile:p,backgroundColorType:h,...g}=e,m=s()([n],{"stk--has-background-overlay":l&&("gradient"===h||r||i||c)});return(0,o.createElement)(t,(0,a.Z)({className:m},g),e.children,(0,o.createElement)(Mr.Content,{videoUrl:r,videoUrlTablet:i,videoUrlMobile:c,videoThumbnailUrl:d,videoThumbnailUrlTablet:u,videoThumbnailUrlMobile:p}))}).defaultProps={...Ar.defaultProps};const Nr=Ar,Ir=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M-10 210h1620V105.2H-10z"}))},Rr={"wave-1":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"wave-1_svg__st2",d:"M1341.4 48.9c-182.4 0-254.2 80.4-429.4 80.4-117.8 0-209.7-67.5-393.5-67.5-142.2 0-212.6 38.8-324.6 38.8S-10 64.7-10 64.7V210h1620V102c-110.6-40.2-181-53.1-268.6-53.1z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1341.4 151.4C1159 151.4 1087.2 71 912 71c-117.8 0-209.7 67.5-393.5 67.5-142.2 0-212.6-38.8-324.6-38.8S-10 135.6-10 135.6v75.9h1620V98.3c-110.6 40.2-181 53.1-268.6 53.1z"}))}}},"wave-2":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"wave-2_svg__st2",d:"M1432.2 67.4c-88.8-16.7-156-5.3-204 8.5s-147.1 62.2-223.1 73.9c-75.4 11.6-164-7.5-275-27.9S571 88.1 456 98.1c-119.7 10.4-224.7 52-294.4 73-94.5 28.5-171.6-3-171.6-3V210h1620V91.6c-53 10-86.8-7.1-177.8-24.2z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1432.2 156.2c-88.8 16.7-156 5.3-204-8.5s-147.1-62.2-223.1-73.9c-75.4-11.6-164 7.5-275 27.9S571 135.5 456 125.5c-119.7-10.4-224.7-52-294.4-73C67.1 24-10 55.5-10 55.5v155.2h1620V132c-53-10-86.8 7.1-177.8 24.2z"}))}}},"wave-3":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"wave-3_svg__st2",d:"M1413.6 161.4c-157.9 0-338.2-37.7-495.1-67.4-215.6-40.8-328.1-44.6-418.2-41.1S317 73.4 188.4 102-10 136.2-10 136.2v74.2h1620v-68.5s-68.8 19.5-196.4 19.5z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1413.6 39.3c-157.9 0-338.2 37.7-495.1 67.4-215.6 40.8-328.1 44.6-418.2 41.1S317 127.3 188.4 98.7-10 64.5-10 64.5v150.2h1620V58.8s-68.8-19.5-196.4-19.5z"}))}}},"wave-4":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 209.7v-51.2s-81.4-33.3-241.4-23.1c-157.4 10-247.9 49.6-340.9 49.4-93.1-.1-121-14.6-174.2-33.6-75.7-27.1-166.9-27.2-185.5-25.1-18.7 2.1-67.8 5.5-106-19.3-38.2-24.7-94.8-55.4-209.2-43.1C238.1 76.3 80 111.8-10 55.7v154h1620z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 208.9V79.2s-81.4 33.3-241.4 23.1c-157.4-10-247.9-49.6-340.9-49.4-93.1.1-121 14.6-174.2 33.6-75.7 27.1-166.9 27.2-185.5 25.1-18.7-2.1-67.8-5.5-106 19.3-38.2 24.7-94.8 55.4-209.2 43.1C238.1 161.4 80 125.9-10 182v26.9h1620z"}))}}},"curve-1":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"curve-1_svg__st2",d:"M1610 177.3C1423 122.9 1133.3 88 808 88c-334.7 0-631.8 37-818 94.1v28h1620v-32.8z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 78.3c-187 54.4-476.7 89.3-802 89.3-334.7 0-631.8-37-818-94.1v136.8h1620v-132z"}))}}},"curve-2":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"curve-2_svg__st2",d:"M-10 207.6h1620S1430.8 23.8 1138.3 23.8C884 23.8 234.9 140.1-10 197.9v9.7z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M-10 207.4h1620S1608.1.1 1604.2 3.7c-32.8 30.8-203.9 178.2-465.9 178.2C884 181.9 234.9 65.6-10 7.8v199.6z"}))}}},"curve-3":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"curve-3_svg__st1",d:"M-6.7 13.4S456 171.1 876.1 171.1 1606.4 16 1606.4 16v192.6H-6.7V13.4z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M-6.6 177.6S456.1 40.3 876.2 40.3s730.3 135.1 730.3 135.1v33.5H-6.6v-31.3z"}))}}},"slant-1":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"slant-1_svg__st2",d:"M-10 210h1620V.5L-10 183.9z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 210H-10V.5l1620 183.4z"}))}}},"slant-2":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"slant-2_svg__st1",d:"M1610 39.2V209H-10V39.2l810 118.9 810-118.9z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610 160v53.2H-10V160L800 41.1 1610 160z"}))}}},"straight-1":{default:{shape:Ir},inverted:{shape:Ir}},"rounded-1":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"rounded-1_svg__st1",d:"M1602.9 209l-9.3-117.7c-3.8-48.1-46.3-84.4-94.4-80.6L-8 131.2V209h1610.9z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1604.5-2.7l-10.9 104.5c-3.8 48.1-46.3 84.4-94.4 80.6L-8 61.8v148.5h1613.9l-1.4-213z"}))}}},"rounded-2":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{className:"rounded-2_svg__st2",d:"M1609.5 133.2h-9.5c0-10.9-8.9-19.8-19.8-19.8H19.8C8.9 113.3 0 122.2 0 133.2l-10-.2v77h1619.5v-76.8z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1609.5 128.5h-9.5c0 10.9-8.9 19.8-19.8 19.8H19.8C8.9 148.4 0 139.5 0 128.5l-10 .2v83.1h1619.5v-83.3z"}))}}},"rounded-3":{default:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610.5 189.1s-128.2-82.6-138.2-89.2c-17.1-11.3-37.2-15.5-87-18.1-49.7-2.6-753.6-40.7-783.9-42.3-30.3-1.5-81.1-1.3-121.1 8.2S-9.5 163.2-9.5 163.2v50h1620v-24.1z"}))}},inverted:{shape:function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1600 200"},e),(0,o.createElement)("path",{d:"M1610.5 24.1s-128.2 82.6-138.2 89.2c-17.1 11.3-37.2 15.5-87 18.1-49.7 2.6-753.6 40.7-783.9 42.3-30.3 1.5-81.1 1.3-121.1-8.2S-9.5 50-9.5 50v158.9h1620V24.1z"}))}}}},Pr=e=>{const{design:t,inverted:n,layer:a}=e,{shape:l}=Rr[t||"wave-1"][n?"inverted":"default"];return(0,o.createElement)(l,{className:`stk-separator__layer-${a}`,preserveAspectRatio:"none","aria-hidden":!0})};Pr.defaultProps={className:"",design:"wave-1",inverted:!1,layer:1},Pr.Content=e=>(0,o.createElement)(Pr,e);const Or=Pr,Hr=(0,y.jsx)(k.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y.jsx)(k.y$,{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"})}),zr=e=>{const{icon:t=Hr,label:n=(0,h.__)("Choose variation"),instructions:a=(0,h.__)("Select a variation to start with.",g.i18n),variations:l,onSelect:r,allowSkip:i}=e,d=s()("block-editor-block-variation-picker",{"has-many-variations":l.length>4}),u=l.some((e=>e.isPremium));return(0,o.createElement)("div",{className:"stk-variation-picker"},(0,o.createElement)(c.Placeholder,{icon:t,label:n,instructions:a,className:d},(0,o.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,h.__)("Block variations")},l.map((e=>(0,o.createElement)("li",{key:e.name},(0,o.createElement)(c.Button,{variant:"tertiary",icon:e.pickerIcon||e.icon,iconSize:48,onClick:()=>r(e),className:s()("block-editor-block-variation-picker__variation",{"is-premium":e.isPremium}),label:e.description||e.pickerTitle||e.title,disabled:!g.isPro&&e.isPremium}),(0,o.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.pickerTitle||e.title))))),!g.isPro&&g.showProNotice&&u&&(0,o.createElement)("p",{className:"block-editor-block-variation-picker__notice"},(0,h.__)("Upgrade to Premium to get more design variations.",g.i18n)," ",(0,o.createElement)("a",{href:"https://wpstackable.com/premium/?utm_source=variation-picker&utm_campaign=learnmore&utm_medium=gutenberg",target:"_premium"},(0,h.__)("Learn more",g.i18n))),i&&(0,o.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,o.createElement)(c.Button,{variant:"link",onClick:()=>r()},(0,h.__)("Skip")))))},Lr=()=>(0,o.createElement)("p",{className:"stk-inspector-bottom-tip"},(0,h.__)("Click on any inner block in the editor to style it.",g.i18n)),Dr=(0,o.memo)((e=>{const{align:t,className:n="",blockStyle:a,blockHoverClass:l="",children:r,hoverRef:i,...c}=e,u=s()(l,{[`align${t}`]:t}),p=(0,d.useBlockProps)({...c||{},ref:i,className:u,"data-align":t,...a?{"data-block-style":a}:{}});return p.className=p.className.replace(n,"").trim(),(0,o.createElement)("div",p,r)}));Dr.displayName="BlockWrapper";const Fr=Dr;var $r=n(6691),Ur=n(2473),Wr=n.n(Ur),Vr=Math.sqrt(50),Gr=Math.sqrt(10),jr=Math.sqrt(2);function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){Jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Xr(e,t,n){return t&&Kr(e.prototype,t),n&&Kr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ti(e,t)}function ei(e){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ei(e)}function ti(e,t){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ti(e,t)}function ni(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oi(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ni(e)}function ai(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ei(e);if(t){var a=ei(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return oi(this,n)}}function li(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,l=[],r=!0,i=!1;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(l.push(o.value),!t||l.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==n.return||n.return()}finally{if(i)throw a}}return l}}(e,t)||ii(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ri(e){return function(e){if(Array.isArray(e))return si(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ii(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(e,t){if(e){if("string"==typeof e)return si(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?si(e,t):void 0}}function si(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var ci="react-compound-slider:";function di(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){return t.val>n.val?e?-1:1:n.val>t.val?e?1:-1:0}}function ui(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=e.findIndex((function(e){return e.key===t}));if(-1!==a){var l=e[a],r=l.key,i=l.val;return i===n?e:[].concat(ri(e.slice(0,a)),[{key:r,val:n}],ri(e.slice(a+1))).sort(di(o))}return e}function pi(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function hi(e){var t=e.type,n=void 0===t?"":t,o=e.touches;return!o||o.length>1||"touchend"===n.toLowerCase()&&o.length>0}function gi(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function mi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=0,l=e.map((function(e){var t=n.getValue(e);return e!==t&&(a+=1,Wr()(!o,"".concat(ci," Invalid value encountered. Changing ").concat(e," to ").concat(t,"."))),t})).map((function(e,t){return{key:"$$-".concat(t),val:e}})).sort(di(t));return{handles:l,changes:a}}function vi(e,t){return t}function bi(e,t){for(var n=0;n<e.length;n++){if(e[n].key!==t[n].key)return e;if(t[n+1]&&t[n].val===t[n+1].val)return e}return t}function fi(e,t,n,o,a){for(var l=-1,r=!0,i=0;i<e.length;i++){var s=e[i],c=t[i];if(!c||c.key!==s.key)return e;c.val!==s.val&&(l=i,r=c.val-s.val>0)}if(-1===l)return e;for(var d=r?n:-n,u=0;u<t.length;u++){var p=t[u],h=t[u+1];if(h&&p.val===h.val){if(u===l){var g=h.val+d;if(a(g)===g){var m=fi(t,ui(t,h.key,h.val+d,o),n,o,a);return m===t?e:m}return e}var v=p.val+d;if(a(v)===v){var b=fi(t,ui(t,p.key,p.val+d,o),n,o,a);return b===t?e:b}return e}}return t}function ki(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.forEach((function(t){return t&&t(e)}))}}var yi=function(){return{value:0,percent:0}},_i=function(e){Qr(n,e);var t=ai(n);function n(){var e;Yr(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(e=t.call.apply(t,[this].concat(a))).getRailProps=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.props,o=n.emitMouse,a=n.emitTouch;return qr(qr({},t),{},{onMouseDown:ki(t&&t.onMouseDown,o),onTouchStart:ki(t&&t.onTouchStart,a)})},e}return Xr(n,[{key:"render",value:function(){var e=this.getRailProps,t=this.props,n=t.getEventData,o=t.activeHandleID,a=void 0===o?"":o,r=(0,t.children)({getEventData:n||yi,activeHandleID:a,getRailProps:e});return r&&l.Children.only(r)}}]),n}(l.Component),Ci=function(e){Qr(n,e);var t=ai(n);function n(){var e;Yr(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(e=t.call.apply(t,[this].concat(a))).autofocus=function(e){e.target instanceof HTMLElement&&e.target.focus()},e.getHandleProps=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.props,a=o.emitKeyboard,l=o.emitMouse,r=o.emitTouch;return qr(qr({},n),{},{onKeyDown:ki(n&&n.onKeyDown,(function(e){return a&&a(e,t)})),onMouseDown:ki(n&&n.onMouseDown,e.autofocus,(function(e){return l&&l(e,t)})),onTouchStart:ki(n&&n.onTouchStart,(function(e){return r&&r(e,t)}))})},e}return Xr(n,[{key:"render",value:function(){var e=this.getHandleProps,t=this.props,n=t.activeHandleID,o=void 0===n?"":n,a=t.children,r=t.handles,i=a({handles:void 0===r?[]:r,activeHandleID:o,getHandleProps:e});return i&&l.Children.only(i)}}]),n}(l.Component),wi=function(){function e(){Yr(this,e),this.interpolator=void 0,this.domain=[0,1],this.range=[0,1],this.domain=[0,1],this.range=[0,1],this.interpolator=null}return Xr(e,[{key:"createInterpolator",value:function(e,t){var n=this,o=e[0],a=e[1],l=t[0],r=t[1];return a<o?function(e){return n.interpolateValue(r,l)(n.deinterpolateValue(a,o)(e))}:function(e){return n.interpolateValue(l,r)(n.deinterpolateValue(o,a)(e))}}},{key:"interpolateValue",value:function(e,t){return t-=e=+e,function(n){return e+t*n}}},{key:"deinterpolateValue",value:function(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(){return t}}},{key:"rescale",value:function(){return this.interpolator=null,this}},{key:"getValue",value:function(e){var t=this.domain,n=this.range;return(this.interpolator||(this.interpolator=this.createInterpolator(t,n)))(+e)}},{key:"setDomain",value:function(e){return this.domain=[e[0],e[1]],this.rescale(),this}},{key:"getDomain",value:function(){return this.domain}},{key:"setRange",value:function(e){return this.range=[e[0],e[1]],this}},{key:"getRange",value:function(){return this.range}},{key:"getTicks",value:function(e){var t=this.domain;return function(e,t,n){var o,a,l,r,i=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((o=t<e)&&(a=e,e=t,t=a),0===(r=function(e,t,n){var o=(t-e)/Math.max(0,n),a=Math.floor(Math.log(o)/Math.LN10),l=o/Math.pow(10,a);return a>=0?(l>=Vr?10:l>=Gr?5:l>=jr?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(l>=Vr?10:l>=Gr?5:l>=jr?2:1)}(e,t,n))||!isFinite(r))return[];if(r>0){let n=Math.round(e/r),o=Math.round(t/r);for(n*r<e&&++n,o*r>t&&--o,l=new Array(a=o-n+1);++i<a;)l[i]=(n+i)*r}else{r=-r;let n=Math.round(e*r),o=Math.round(t*r);for(n/r<e&&++n,o/r>t&&--o,l=new Array(a=o-n+1);++i<a;)l[i]=(n+i)/r}return o&&l.reverse(),l}(t[0],t[t.length-1],e||10)}}]),e}(),Si=function(){return{value:0,percent:0}},Ei=function(e){Qr(n,e);var t=ai(n);function n(){return Yr(this,n),t.apply(this,arguments)}return Xr(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.values,o=e.scale,a=void 0===o?new wi:o,r=e.count,i=void 0===r?10:r,s=e.getEventData,c=void 0===s?Si:s,d=e.activeHandleID,u=t({getEventData:c,activeHandleID:void 0===d?"":d,ticks:(n||a.getTicks(i)).map((function(e){return{id:"$$-".concat(e),value:e,percent:a.getValue(e)}}))});return u&&l.Children.only(u)}}]),n}(l.Component),xi=function(){return{value:0,percent:0}},Ti=function(e){Qr(n,e);var t=ai(n);function n(){var e;Yr(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(e=t.call.apply(t,[this].concat(a))).getTrackProps=function(t){var n=e.props,o=n.emitMouse,a=n.emitTouch;return qr(qr({},t||{}),{},{onMouseDown:ki(t&&t.onMouseDown,o),onTouchStart:ki(t&&t.onTouchStart,a)})},e}return Xr(n,[{key:"render",value:function(){for(var e=this.getTrackProps,t=this.props,n=t.children,o=t.left,a=void 0===o||o,r=t.right,i=void 0===r||r,s=t.scale,c=void 0===s?new wi:s,d=t.handles,u=void 0===d?[]:d,p=t.getEventData,h=void 0===p?xi:p,g=t.activeHandleID,m=void 0===g?"":g,v=c.getDomain(),b=[],f=0;f<u.length+1;f++){var k=u[f-1],y=u[f];0===f&&!0===a?k={id:"$",value:v[0],percent:0}:f===u.length&&!0===i&&(y={id:"$",value:v[1],percent:100}),k&&y&&b.push({id:"".concat(k.id,"-").concat(y.id),source:k,target:y})}var _=n({getEventData:h,activeHandleID:m,tracks:b,getTrackProps:e});return _&&l.Children.only(_)}}]),n}(l.Component);function Bi(e,t,n){return Math.min(Math.max(e,t),n)}var Mi=Xr((function e(){var t=this;Yr(this,e),this.step=1,this.domain=[0,1],this.range=[0,1],this.setDomain=function(e){return t.domain=[e[0],e[1]],t},this.setRange=function(e){return t.range=[e[0],e[1]],t},this.setStep=function(e){return t.step=e,t},this.getValue=function(e){var n=li(t.domain,2),o=n[0],a=n[1],l=li(t.range,2),r=l[0],i=l[1],s=t.step,c=(Bi(e,o,a)-o)/(a-o);return Bi(s*Math.round(c*(i-r)/s)+r,r<i?r:i,i>r?i:r)}})),Ai="undefined"!=typeof window&&"undefined"!=typeof document,Ni=function(){},Ii=function(e,t,n,o){var a=o?e-t:e+t;return o?Math.max(n[0],a):Math.min(n[1],a)},Ri=function(e,t,n,o){var a=o?e+t:e-t;return o?Math.min(n[1],a):Math.max(n[0],a)},Pi=[0,100],Oi=function(e){Qr(n,e);var t=ai(n);function n(){var e;Yr(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return(e=t.call.apply(t,[this].concat(a))).state={step:.1,values:[],domain:Pi,handles:[],reversed:!1,activeHandleID:"",valueToPerc:null,valueToStep:null,pixelToStep:null},e.slider=l.createRef(),e.onKeyDown=function(t,n){var o=["ArrowRight","ArrowUp"],a=["ArrowDown","ArrowLeft"],l=ni(e),r=l.state.handles,i=l.props,s=i.step,c=void 0===s?.1:s,d=i.reversed,u=void 0!==d&&d,p=i.vertical,h=void 0!==p&&p,g=i.domain,m=void 0===g?[0,100]:g,v=t.key||"".concat(t.keyCode);if(o.concat(a).includes(v)){if(h){var b=[a,o];o=b[0],a=b[1]}t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault();var f=r.find((function(e){return e.key===n}));if(f){var k=f.val,y=k;o.includes(v)?y=Ii(k,c,m,u):a.includes(v)&&(y=Ri(k,c,m,u));var _=r.map((function(e){return e.key===n?{key:e.key,val:y}:e}));e.submitUpdate(_,!0)}}},e.onMouseDown=function(t,n){e.onStart(t,n,!1)},e.onTouchStart=function(t,n){hi(t)||e.onStart(t,n,!0)},e.getEventData=function(t,n){var o,a=ni(e),l=a.state,r=l.pixelToStep,i=l.valueToPerc,s=a.props.vertical;return r.setDomain(pi(e.slider.current,s)),n&&t instanceof TouchEvent?o=r.getValue(gi(s,t)):t instanceof MouseEvent&&(o=r.getValue(s?t.clientY:t.pageX)),{value:o,percent:i.getValue(o)}},e.onMouseMove=function(t){var n=ni(e),o=n.state,a=o.handles,l=o.pixelToStep,r=o.activeHandleID,i=void 0===r?"":r,s=n.props,c=s.vertical,d=s.reversed,u=void 0!==d&&d;l.setDomain(pi(e.slider.current,c));var p=ui(a,i,l.getValue(c?t.clientY:t.pageX),u);e.submitUpdate(p)},e.onTouchMove=function(t){var n=ni(e),o=n.state,a=o.handles,l=o.pixelToStep,r=o.activeHandleID,i=n.props,s=i.vertical,c=i.reversed;if(null!==l&&!hi(t)){l.setDomain(pi(e.slider.current,s));var d=ui(a,r,l.getValue(gi(s,t)),c);e.submitUpdate(d)}},e.onMouseUp=function(){var t=ni(e),n=t.state,o=n.handles,a=void 0===o?[]:o,l=n.activeHandleID,r=t.props,i=r.onChange,s=void 0===i?Ni:i,c=r.onSlideEnd,d=void 0===c?Ni:c;s(a.map((function(e){return e.val}))),d(a.map((function(e){return e.val})),{activeHandleID:l}),e.setState({activeHandleID:""}),Ai&&(document.removeEventListener("mousemove",e.onMouseMove),document.removeEventListener("mouseup",e.onMouseUp))},e.onTouchEnd=function(){var t=ni(e),n=t.state,o=n.handles,a=n.activeHandleID,l=t.props,r=l.onChange,i=void 0===r?Ni:r,s=l.onSlideEnd,c=void 0===s?Ni:s;i(o.map((function(e){return e.val}))),c(o.map((function(e){return e.val})),{activeHandleID:a}),e.setState({activeHandleID:""}),Ai&&(document.removeEventListener("touchmove",e.onTouchMove),document.removeEventListener("touchend",e.onTouchEnd))},e}return Xr(n,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(pi(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){Ai&&(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"onStart",value:function(e,t,n){var o=this.state.handles,a=this.props.onSlideStart,l=void 0===a?Ni:a;n||e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),o.find((function(e){return e.key===t}))?(this.setState({activeHandleID:t}),l(o.map((function(e){return e.val})),{activeHandleID:t}),n?this.addTouchEvents():this.addMouseEvents()):(this.setState({activeHandleID:""}),this.handleRailAndTrackClicks(e,n))}},{key:"handleRailAndTrackClicks",value:function(e,t){var n,o=this,a=this.state,l=a.handles,r=a.pixelToStep,i=this.props,s=i.vertical,c=i.reversed,d=void 0!==c&&c,u=this.slider;r.setDomain(pi(u.current,s)),n=t?r.getValue(gi(s,e)):r.getValue(s?e.clientY:e.pageX);for(var p="",h=1/0,g=0;g<l.length;g++){var m=l[g],v=m.key,b=m.val,f=Math.abs(b-n);f<h&&(p=v,h=f)}var k=ui(l,p,n,d);this.setState({activeHandleID:p},(function(){o.submitUpdate(k,!0),t?o.addTouchEvents():o.addMouseEvents()}))}},{key:"addMouseEvents",value:function(){Ai&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){Ai&&(document.addEventListener("touchmove",this.onTouchMove),document.addEventListener("touchend",this.onTouchEnd))}},{key:"submitUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.props,o=n.mode,a=void 0===o?1:o,l=n.step,r=void 0===l?.1:l,i=n.onUpdate,s=void 0===i?Ni:i,c=n.onChange,d=void 0===c?Ni:c,u=n.reversed,p=void 0!==u&&u,h=this.state.valueToStep.getValue;this.setState((function(n){var o=n.handles,l=[];if("function"==typeof a)l=a(o,e,r,p,h),Wr()(Array.isArray(l),"Custom mode function did not return an array.");else switch(a){case 1:l=vi(0,e);break;case 2:l=bi(o,e);break;case 3:l=fi(o,e,r,p,h);break;default:l=e,Wr()(!1,"".concat(ci," Invalid mode value."))}return s(l.map((function(e){return e.val}))),t&&d(l.map((function(e){return e.val}))),{handles:l}}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.handles,o=t.valueToPerc,a=t.activeHandleID,r=this.props,i=r.className,s=r.rootStyle,c=void 0===s?{}:s,d=r.rootProps,u=void 0===d?{}:d,p=r.component,h=void 0===p?"div":p,g=r.disabled,m=void 0!==g&&g,v=r.flatten,b=void 0!==v&&v,f=n.map((function(e){var t=e.key,n=e.val;return{id:t,value:n,percent:o.getValue(n)}})),k=l.Children.map(this.props.children,(function(t){return!0===function(e){if(!(0,l.isValidElement)(e))return!1;var t=e.type,n=t?t.name:"";return n===Ci.name||n===_i.name||n===Ei.name||n===Ti.name}(t)?l.cloneElement(t,{scale:o,handles:f,activeHandleID:a,getEventData:e.getEventData,emitKeyboard:m?Ni:e.onKeyDown,emitMouse:m?Ni:e.onMouseDown,emitTouch:m?Ni:e.onTouchStart}):t}));return b?l.createElement(l.Fragment,null,l.createElement(h,qr(qr({},u),{},{style:c,className:i,ref:this.slider})),k):l.createElement(l.Fragment,null,l.createElement(h,qr(qr({},u),{},{style:c,className:i,ref:this.slider}),k))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,a=e.step,l=void 0===a?.1:a,r=e.values,i=e.domain,s=void 0===i?Pi:i,c=e.reversed,d=void 0!==c&&c,u=e.onUpdate,p=void 0===u?Ni:u,h=e.onChange,g=void 0===h?Ni:h,m=e.warnOnChanges,v=void 0!==m&&m,b=t.valueToPerc,f=t.valueToStep,k=t.pixelToStep,y={};if(b&&f&&k||(b=new wi,f=new Mi,k=new Mi,y.valueToPerc=b,y.valueToStep=f,y.pixelToStep=k),t.domain===Pi||null===t.step||null===t.domain||null===t.reversed||l!==t.step||s[0]!==t.domain[0]||s[1]!==t.domain[1]||d!==t.reversed){var _=li(s,2),C=_[0],w=_[1];f.setStep(l).setRange([C,w]).setDomain([C,w]),!0===d?(b.setDomain([C,w]).setRange([100,0]),k.setStep(l).setRange([w,C])):(b.setDomain([C,w]).setRange([0,100]),k.setStep(l).setRange([C,w])),Wr()(w>C,"".concat(ci," Max must be greater than min (even if reversed). Max is ").concat(w,". Min is ").concat(C,"."));var S=mi(r||t.values,d,f,v),E=S.handles;(S.changes||void 0===r||r===t.values)&&(p(E.map((function(e){return e.val}))),g(E.map((function(e){return e.val})))),y.step=l,y.values=r,y.domain=s===Pi?ri(s):s,y.handles=E,y.reversed=d}else if(!((n=r)===(o=t.values)||n.length===o.length&&n.reduce(function(e){return function(t,n,o){return t&&e[o]===n}}(o),!0))){var x=mi(r,d,f,v),T=x.handles;x.changes&&(p(T.map((function(e){return e.val}))),g(T.map((function(e){return e.val})))),y.values=r,y.handles=T}return Object.keys(y).length?y:null}}]),n}(l.PureComponent);const Hi={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},zi={position:"absolute",width:"100%",height:4,backgroundColor:"rgb(221, 221, 221)",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},Li={backgroundColor:"var(--wp-admin-theme-color)",height:12,width:12},Di=e=>{let{getRailProps:t}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",(0,a.Z)({style:Hi},t())),(0,o.createElement)("div",{style:zi}))},Fi=e=>{const{domain:[t,n],handle:{value:l,percent:r},disabled:i=!1,handleProps:s}=e;return(0,o.createElement)("button",(0,a.Z)({role:"slider","aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":l,disabled:i,style:{left:`${r}%`,...Li}},s))},$i=10,Ui=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";if("left"===t)for(let t=e.length-1;t>=1;t--)if(e[t]<$i){const n=$i-e[t];e[t]=$i,e[t-1]-=n}for(let t=0;t<e.length-1;t++)if(e[t]<$i){const n=$i-e[t];e[t]=$i,e[t+1]-=n}if("right"===t)for(let t=e.length-1;t>=1;t--)if(e[t]<$i){const n=$i-e[t];e[t]=$i,e[t-1]-=n}return e},Wi={position:"relative",width:"100%"},Vi=[0,100],Gi=e=>{let t=0;return[...e,100].map((e=>{const n=e-t;return t+=n,n}))},ji=e=>{let t=0;return[...e].pop(),e.reduce(((n,o,a)=>{if(a===e.length-1)return n;const l=o+t;return t+=o,n.push(l),n}),[])},Zi=(0,o.memo)((e=>{const t=(0,o.useRef)(null),n=(0,o.useRef)(0),a=(0,o.useRef)(null),l=(0,o.useRef)(!1);return(0,o.createElement)(Oi,{className:"stk-column-widths-control__columns-slider",rootStyle:Wi,onSlideStart:e=>t.current=e,mode:(e,o)=>{l.current=!0,t.current&&t.current.length===o.length||(t.current=e.map((e=>e.val)));let a=o.map((e=>e.val));if((0,m.isEqual)(t.current,a))return o;const r=((e,t)=>{let n;return t.some(((t,o)=>t!==e[o]&&(n=t>e[o]?"right":"left",!0))),n})(t.current,a),i=((e,t)=>{let n=-1;return t.some((t=>!e.includes(t)&&(n=t,!0))),-1===n&&t.some(((t,o)=>t!==e[o]&&(n=t,!0))),-1===n?0:n})(t.current,a);a=[...t.current],a[n.current]=i;const s=((e,t,n)=>{const o=Gi(e),a=Ui(o,n);return ji(a)})(a,n.current,r);return t.current=s,s.forEach(((e,t)=>{o[t].val=e})),o},step:1,onChange:()=>{l.current=!1},onUpdate:t=>{l.current&&((0,m.isEqual)(a.current,t)||(a.current=t,e.onChange(Gi(t))))},domain:Vi,values:ji(e.value)},(0,o.createElement)(_i,null,(e=>{let{getRailProps:t}=e;return(0,o.createElement)(Di,{getRailProps:t})})),(0,o.createElement)(Ci,null,(e=>{let{handles:t,getHandleProps:a}=e;return(0,o.createElement)("div",{className:"slider-handles"},t.map(((e,t)=>{const l=a(e.id),r={...l,onMouseDown:e=>(n.current=t,l.onMouseDown(e)),onTouchStart:e=>(n.current=t,l.onTouchStart(e)),onKeyDown:e=>(n.current=t,l.onKeyDown(e))};return(0,o.createElement)(Fi,{key:e.id,handle:e,domain:Vi,handleProps:r})})))})))}),m.isEqual);Zi.defaultProps={onChange:()=>{},value:[]};const qi=Zi,Yi=e=>e.every((e=>!e)),Ki=e=>{var t;const n={gridTemplateColumns:(a=e.value,a.map((e=>(e/100*a.length).toFixed(2)+"fr")).join(" ")),gridAutoFlow:Yi(e.value)?"column":void 0,justifyContent:Yi(e.value)?"space-around":void 0};var a;const l=s()("stk-column-widths-control__columns-input",{"stk-column-widths--many":(null===(t=e.value)||void 0===t?void 0:t.length)&&e.value.length>4});return(0,o.createElement)("div",{className:l,style:n},e.value.map(((t,n)=>(0,o.createElement)("input",{key:n,className:"components-column-widths-control__number",type:"number",step:"any",value:t||"",onChange:t=>{const o=t.target.value,a=o.includes(".")?parseFloat(parseFloat(o).toFixed(3)):parseInt(o,10),l=[...e.value];l[n]=isNaN(a)?"":a,e.onChange(l)},onBlur:()=>{const t=Ui(e.value),o=100-t.reduce(((e,t)=>e+t),0);n<e.value.length-1?t[n+1]+=o:t[n-1]+=o,e.onChange(Ui(t))}}))))};Ki.defaultProps={onChange:()=>{},value:[]};const Xi=Ki,Ji={"2-1":[50,50],"2-2":[66.666,33.333],"2-3":[33.333,66.666],"3-1":[33.333,33.333,33.333],"3-2":[25,50,25],"3-3":[50,25,25],"3-4":[25,25,50],"4-1":[25,25,25,25],"4-2":[40,20,20,20],"4-3":[20,20,20,40],"5-1":[20,20,20,20,20],"6-1":[16.666,16.666,16.666,16.666,16.666,16.666]},Qi={2:[{value:"2-1",image:"dist/images/components-columns-width-control-2-1.00780d9.png"},{value:"2-2",image:"dist/images/components-columns-width-control-2-2.0388d6b.png"},{value:"2-3",image:"dist/images/components-columns-width-control-2-3.dd648a4.png"}],3:[{value:"3-1",image:"dist/images/components-columns-width-control-3-1.b0d994b.png"},{value:"3-2",image:"dist/images/components-columns-width-control-3-2.d0cd0a1.png"},{value:"3-3",image:"dist/images/components-columns-width-control-3-3.8b9a3da.png"},{value:"3-4",image:"dist/images/components-columns-width-control-3-4.05211d4.png"}],4:[{value:"4-1",image:"dist/images/components-columns-width-control-4-1.ba54e2f.png"},{value:"4-2",image:"dist/images/components-columns-width-control-4-2.96599c1.png"},{value:"4-3",image:"dist/images/components-columns-width-control-4-3.5c76fd1.png"}]},es=e=>e.every((e=>!e)),ts=e=>{const t=es(e.values)&&Ji[`${e.columns}-1`]?Ji[`${e.columns}-1`]:(e.values||[]).every((e=>""!==e))?e.values:Array(e.columns).fill(100/e.columns);return(0,o.createElement)(E.Xp,{label:e.label,help:e.help,responsive:e.responsive,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue,className:s()(["ugb-columns-width-control",e.className]),helpTooltip:{description:(0,h.__)("Adjust the individual widths of each column",g.i18n)}},Qi[e.columns]&&(0,o.createElement)(Xn,{options:Qi[e.columns],onChange:t=>{e.onChange(Ji[t])}}),e.columns<=7&&(0,o.createElement)(qi,{value:t,onChange:e.onChange}),(0,o.createElement)(Xi,{value:es(e.values)?e.forceBlank?e.values:Ji[`${e.columns}-1`]:e.values,onChange:e.onChange}))};ts.defaultProps={columns:2,values:["",""],onChange:()=>{},help:"",label:(0,h.__)("Column Widths",g.i18n),className:"",responsive:!1,attribute:"",hasTabletValue:void 0,hasMobileValue:void 0};const ns=ts,os=e=>(0,o.createElement)(E.Xp,{label:e.label,help:e.help,className:s()(["ugb-columns-width-multi-control",e.className]),responsive:e.responsive,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue},(0,m.range)(e.columns).map((t=>(0,o.createElement)("div",{key:t,className:"stk-columns-width-multi-control__range"},(0,o.createElement)("span",{className:"stk-columns-width-multi-control__range__icon"},t+1),(0,o.createElement)("div",{className:"stk-columns-width-multi-control__range__range-control"},(0,o.createElement)(ce,{className:"stk--no-padding",value:e.values[t],max:100,min:0,onChange:n=>{const o=[...e.values];o[t]=n,e.onChange(o)},allowReset:!1,placeholder:e.placeholders?e.placeholders[t]:"",forcePlaceholder:!0}),e.allowReset&&(0,o.createElement)(x.J,{allowReset:e.allowReset,value:e.values[t],default:"",onChange:n=>{const o=[...e.values];o[t]=n,e.onChange(o)}})),(0,o.createElement)("span",{className:"stk-columns-width-multi-control__range__suffix"},"%")))));os.defaultProps={columns:2,values:["",""],onChange:()=>{},help:"",label:(0,h.__)("Column Widths",g.i18n),className:"",responsive:!1,placeholders:null,hasTabletValue:void 0,hasMobileValue:void 0};const as=os;var ls=n(5980),rs=n(7408);const is=(0,o.memo)((0,o.forwardRef)(((e,t)=>{const{attrNameTemplate:n,...l}=e,{fontFamily:r}=(0,I.useBlockAttributesContext)((e=>({fontFamily:e[(0,L.getAttrNameFunction)(n)("fontFamily")]})));return(0,I.useFontLoader)(r),(0,o.createElement)(d.RichText,(0,a.Z)({ref:t},l))})));is.defaultProps={attrNameTemplate:"%s"},is.Content=e=>(0,o.createElement)(d.RichText.Content,e);const ss=is,cs={placement:"left-start",offset:236,shift:!0},ds={placement:"left-start",offset:36,shift:!0},us={lift:[32,13],drop:[32,13],cancel:[27],up:[38,37],down:[40,39]},ps=(0,o.forwardRef)(((e,t)=>{const{nonSortableItems:n=[],editableName:a=!0,items:l,dropdownOnAdd:r=!1,onChangeItem:i,onDeleteItem:d,handleAddItem:u,onSortEnd:p,AddItemPopover:h=null,enableAddItem:g=!0}=e,[m,v]=(0,o.useState)(!1),b=s()("ugb-global-settings-color-picker","components-circular-option-picker","editor-color-palette-control__color-palette",e.className);return(0,o.createElement)(c.BaseControl,{className:b,label:e.label,__nextHasNoMarginBottom:!0},g&&(0,o.createElement)(c.Dropdown,{popoverProps:cs,renderToggle:e=>{let{onToggle:t,isOpen:n}=e;return(0,o.createElement)(f.Z,{className:"ugb-global-settings-color-picker__add-button",onClick:r?t:u,icon:"plus-alt2","aria-expanded":n})},renderContent:e=>{let{onClose:t}=e;return(0,o.createElement)(h,{onClose:t,onChange:u})}}),(0,o.createElement)("div",{ref:t,className:s()("ugb-global-settings-color-picker__color-indicators",{"is-sorting":m})},(0,o.createElement)(ms,{items:l,onSortStart:()=>v(!0),onSortEnd:e=>{let{oldIndex:t,newIndex:n}=e;return p({oldIndex:t,newIndex:n,setIsSorting:v})},axis:"y",useDragHandle:!0,keyCodes:us},null==n?void 0:n.map(((t,n)=>(0,o.createElement)(bs,{key:n,item:t,onDelete:()=>d(t),onChange:e=>i(e),ItemPreview:e.ItemPreview,ItemPicker:e.ItemPicker,updateOnBlur:e.updateOnBlur,sortable:!1,editableName:a,className:e.buttonClassName,onItemClick:e.onItemClick,showReset:!e.showResetCallback||e.showResetCallback(t),showDelete:!!e.showDeleteCallback&&e.showDeleteCallback(t)}))),null==l?void 0:l.map(((t,n)=>(0,o.createElement)(gs,{key:n,index:n,item:t,onDelete:()=>d(t),onChange:e=>i(e),ItemPreview:e.ItemPreview,ItemPicker:e.ItemPicker,updateOnBlur:e.updateOnBlur,editableName:a,className:e.buttonClassName,onItemClick:e.onItemClick}))))))}));ps.defaultProps={className:"",label:"",onReset:()=>{}};const hs=ps,gs=Gt((e=>(0,o.createElement)(bs,e))),ms=Ut((e=>{let{children:t}=e;return(0,o.createElement)("div",null,t)})),vs=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Ze(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return Ge(Ke(Ke(t=Xe(this,(e=Je(n)).call.apply(e,[this].concat(a))))),"wrappedInstance",(0,l.createRef)()),t}return et(n,t),Ye(n,[{key:"componentDidMount",value:function(){(0,o.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return nt()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,l.createElement)(e,(0,a.Z)({ref:t},this.props))}}]),n}(l.Component),Ge(t,"displayName",bt("sortableHandle",e)),n}((()=>(0,o.createElement)(c.Dashicon,{icon:"menu",size:"16",tabIndex:"0"}))),bs=e=>{const{item:t,onDelete:n,onChange:a,ItemPreview:l=null,ItemPicker:r=null,updateOnBlur:i=!1,sortable:d=!0,editableName:u=!0,showReset:p=!0,showDelete:h=!0}=e,[g,m]=(0,o.useState)(!1),[v,b]=(0,o.useState)(t.name);(0,o.useEffect)((()=>{t.name!==v&&b(t.name)}),[t.name]);const k=s()("block-editor-panel-color-gradient-settings__dropdown",e.className);return(0,o.createElement)(c.__experimentalHStack,{justify:"space-between",className:"stk-global-settings-color-picker__color-indicator-wrapper"},(0,o.createElement)(c.Dropdown,{popoverProps:ds,focusOnMount:!g&&"firstElement",renderToggle:n=>{let{onToggle:s,isOpen:p}=n;return(0,o.createElement)(f.Z,{className:k,onClick:()=>{e.onItemClick?e.onItemClick(t):r&&!g&&s()},isPressed:p},(0,o.createElement)(c.__experimentalHStack,{justify:"flex-start"},(0,o.createElement)(l,{item:t}),u?(0,o.createElement)("input",{className:"components-input-control__input",value:g?v:t.name,onChange:e=>{b(e.target.value),i||a({...t,name:e.target.value})},onFocus:()=>m(!0),onBlur:e=>{var n;i&&a({...t,name:v}),setTimeout((()=>{m(!1)}),100),!r||!p||null!==(n=e.relatedTarget)&&void 0!==n&&n.closest(".components-popover")||s()},onClick:()=>{r&&!p&&s()},onKeyDown:e=>{13===e.keyCode&&e.target.blur()}}):(0,o.createElement)("p",{className:"stk-sortable-picker__item-name"},t.name),d&&(0,o.createElement)(vs,null)))},renderContent:e=>{let{onClose:n}=e;return(0,o.createElement)(o.Fragment,null," ",r&&(0,o.createElement)(r,{item:t,onChange:a,onClose:n})," ")}}),h&&(0,o.createElement)(f.Z,{"aria-label":"Delete",className:"stk-global-settings-color-picker__delete-button",icon:"trash",isSmall:!0,isTertiary:!0,onClick:n}),!h&&(0,o.createElement)(x.J,{showReset:p,onChange:n}))},fs=()=>{},ks=e=>{const{onBack:t=fs,onTrash:n=fs,onReset:a=fs,onDuplicate:l=fs,title:r="",showTrash:i=!0,showReset:s=!1,showDuplicate:d=!1}=e;return(0,o.createElement)("div",{className:"stk-inspector-sub-header"},(0,o.createElement)(c.Button,{icon:"arrow-left-alt2",alt:(0,h.__)("Back",g.i18n),onClick:t}),(0,o.createElement)("h2",{className:"components-base-control__label"},r),d&&(0,o.createElement)(c.Button,{className:"stk-inspector-sub-header__duplicate",size:"small",icon:"admin-page",alt:(0,h.__)("Duplicate",g.i18n),onClick:l}),i&&(0,o.createElement)(c.Button,{className:"stk-inspector-sub-header__trash",size:"small",icon:"trash",alt:(0,h.__)("Delete",g.i18n),onClick:n}),s&&(0,o.createElement)(c.Button,{className:"stk-inspector-sub-header__reset",size:"small",icon:"image-rotate",alt:(0,h.__)("Reset",g.i18n),onClick:a}))},ys=e=>{var t,n,a,l,r,i;const c=(null===(t=e.fontPair)||void 0===t||null===(n=t.typography)||void 0===n?void 0:n.h1)||{},d=(null===(a=e.fontPair)||void 0===a||null===(l=a.typography)||void 0===l?void 0:l.p)||{};c.fontFamily&&(0,L.loadGoogleFont)(c.fontFamily),null!=d&&d.fontFamily&&(0,L.loadGoogleFont)(d.fontFamily);const u=(null===(r=(0,L.getFontFamily)(c.fontFamily))||void 0===r?void 0:r.replaceAll('"',""))||"",p=(null===(i=(0,L.getFontFamily)(d.fontFamily))||void 0===i?void 0:i.replaceAll('"',""))||"",v=(0,o.createElement)("div",null,(0,o.createElement)("span",{style:(0,m.omit)({...c,fontFamily:u},["fontSize","lineHeight"]),className:"ugb-global-settings-font-pair__label"},(0,L.getFontFamilyLabel)(null==c?void 0:c.fontFamily,(0,h.__)("Default Heading",g.i18n))),(0,o.createElement)("span",{style:(0,m.omit)({...d,fontFamily:p},["fontSize","lineHeight"]),className:"ugb-global-settings-font-pair__sub-label"},(0,L.getFontFamilyLabel)(null==d?void 0:d.fontFamily,(0,h.__)("Default Body",g.i18n)))),b=s()(["ugb-button-icon-control","ugb-global-settings-font-pair-control",{"ugb-global-settings-font-pair__selected":null==e?void 0:e.isSelected}]);return(0,o.createElement)("div",{onClick:e.onClick,ref:null==e?void 0:e.ref,role:"button",tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&"Space"!==t.key||(e.onClick(),t.preventDefault())}},(0,o.createElement)(ll,{key:e.key,label:v,className:b},(null==e?void 0:e.isCustom)&&(0,o.createElement)("div",{className:"ugb-button-icon-control__wrapper"},(0,o.createElement)(f.Z,{className:"ugb-button-icon-control__edit",label:(0,h.__)("Edit",g.i18n),icon:"edit",isSmall:!0,onClick:t=>{e.onEdit(),t.stopPropagation()}}))))};ys.defaultProps={key:"",fontPair:{},isSelected:!1,onClick:()=>{},onEdit:()=>{}};const _s=ys,Cs=e=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"ugb-global-settings__section-settings"},(0,o.createElement)("p",{className:"ugb-global-settings__section-title"},e.title),e.description&&(0,o.createElement)("p",null,e.description),e.children))},7385:()=>{Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){let t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},5980:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(7462),a=n(2610),l=n(7537),r=n(4184),i=n.n(r);const s=e=>(0,a.createElement)(l.Popover,(0,o.Z)({},e,{className:i()("stk-popover",e.className),onKeyDown:t=>{if(27===t.keyCode)return t.preventDefault(),t.stopPropagation(),void e.onEscape();e.onKeyDown&&e.onKeyDown(t)}}));s.defaultProps={className:"",onEscape:()=>{}};const c=s},4685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(2610),a=n(7462);n(7294);const l=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),(0,o.createElement)("path",{d:"M289 445l-33 35-33-35L0 208 112 32h288l112 176-223 237zm142-221H81l175 186 175-186zm3.7-48L385 97.9 311.5 176h123.2zM336 80H176l80 85 80-85zM127 97.9L77.3 176h123.2L127 97.9z"}))};var r=n(2440),i=n(8003),s=n(910),c=n(4184),d=n.n(c);const u={image:{title:(0,i.__)("Get More Image Shapes",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Mask images with a variety of blob-like shapes",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Choose from over 50 different shapes",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Enhances the overall aesthetic of images",s.i18n)))},"dynamic-attributes":{title:(0,i.__)("Use Dynamic Content",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Add dynamic content from posts or post meta",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Use third-party plugins as dynamic sources such as ACF, Meta Box, Toolset, and more",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Build custom loop design with the Native Query Loop",s.i18n)))},separator:{title:(0,i.__)("Separator Layers",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Add a second and third layer to separators",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Change layer color, size and opacity",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Greater creativity in designing separators",s.i18n)))},"icon-colors":{title:(0,i.__)("Elevate Your Icons",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Liven up icons with gradient fills, multiple colors and background shapes",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("More design options and customization for icons",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Choose from over 50 background shapes",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Greater visual interest and variety for your icons",s.i18n)))},"icon-background-shape":{description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Liven up icons with background shapes",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Choose from over 50 background shapes",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Greater visual interest and variety for your icons",s.i18n)))},transforms:{description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Adjust timing of CSS transitions",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Change X and Y position of blocks",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Scale or rotate blocks",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Perfect for hover animations",s.i18n)))},"motion-effects":{description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Entrance fade-ins and animations when scrolling to blocks",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Smooth scroll animations based on scrolling position",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Create a more visually engaging and interactive experience",s.i18n)))},"conditional-display":{description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Show or hide blocks based on conditions",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Display blocks based on time, role, meta, custom PHP, option, taxonomy and more",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Use multiple conditions",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Show targeted content and personalization",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Greater control over the visibility of content",s.i18n)))},"custom-css":{description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Add custom CSS rules specific for each block",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Support for media queries",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Fine-tune styling on a per block basis",s.i18n)))},"column-arrangement":{title:(0,i.__)("Adjust Column Arrangement",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Adjust the arrangement of columns when collapsed on tablet and mobile",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Ensure that content remains organized and easily readable on mobile",s.i18n)))},"design-library":{title:(0,i.__)("This is a Premium Design",s.i18n),description:(0,i.__)("Unlock access to the entire design library and set your website apart from the rest.",s.i18n)},posts:{title:(0,i.__)("Get More Post Options",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("New Custom Post Type option",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Offset, exclude, include specific posts",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Hide the current post - great for synced patterns",s.i18n)))},"icon-library":{title:(0,i.__)("Unlock Your Icon Library",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Add your custom SVG icons",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Easily access your custom icons in the icon picker",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Organize your custom icons in your library",s.i18n)))},"font-pairs":{title:(0,i.__)("Premium Typography",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Apply beautiful typography combinations instantly",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Access to 90+ curated font pairs for professional designs",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Create custom font combinations for your brand",s.i18n)))},"color-schemes":{title:(0,i.__)("Premium Color Schemes",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Define site-wide colors that apply to all blocks automatically",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Access to 50+ curated color scheme presets",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Create custom color schemes for backgrounds, containers, and buttons",s.i18n)))},"preset-controls":{title:(0,i.__)("Premium Preset Controls",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Customize your own presets like small, medium, large & x-large",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Maintain structured, well-balanced designs effortlessly",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Use Global Typography sizes as presets",s.i18n)))},"global-block-styles":{title:(0,i.__)("Global Block Styles",s.i18n),description:(0,o.createElement)("ul",null,(0,o.createElement)("li",null,(0,i.__)("Design once, apply everywhere - no more copy-paste",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Class-based styling for leaner, faster websites",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Sync changes across all blocks instantly",s.i18n)),(0,o.createElement)("li",null,(0,i.__)("Override styles while keeping them synced",s.i18n)))}},p=e=>{var t,n,a;const c=d()(["ugb-design-control-pro-note",e.className]),p=e.description||(null===(t=u[e.type])||void 0===t?void 0:t.description);return(0,o.createElement)("div",{className:c},e.isDismissible&&(0,o.createElement)(r.Z,{className:"ugb-design-control-pro-note__close",icon:"no-alt",isTertiary:!0,onClick:e.onClose}),e.showImage&&(0,o.createElement)("img",{src:("dist/images/components-pro-control-pro-icon.05ae547.png",`${s.srcUrl}/dist/images/components-pro-control-pro-icon.05ae547.png`),className:"ugb-design-control-pro-note__logo",alt:""}),(0,o.createElement)("h4",null,e.title||(null===(n=u[e.type])||void 0===n?void 0:n.title)||(0,i.__)("This Is a Premium Feature",s.i18n)),p&&(0,o.createElement)("div",{className:"ugb-design-control-pro-note__description"},p),e.showButton&&(0,o.createElement)("div",null,(0,o.createElement)("a",{href:"https://wpstackable.com/premium/?utm_source=editor-learn-more&utm_campaign=learnmore&utm_medium=gutenberg",target:"_premium",className:"button button-secondary"},(0,o.createElement)(l,null),e.button||(null===(a=u[e.type])||void 0===a?void 0:a.button)||(0,i.__)("Learn More",s.i18n))),e.demoUrl&&(0,o.createElement)("p",{className:"ugb-design-control-pro-note__demo-link"},(0,o.createElement)("a",{href:e.demoUrl,target:"_premium",className:"button button-secondary"},(0,i.__)("View Demo",s.i18n))),e.showHideNote&&(0,o.createElement)("p",{className:"ugb-design-control-pro-note__notice"},(0,i.__)("You can hide premium hints in the settings",s.i18n)))};p.defaultProps={className:"",type:"",title:"",description:"",button:"",showImage:!0,showButton:!0,showHideNote:!0,demoUrl:"",buttonUtmSource:void 0,isDismissible:!1,onClose:()=>{}};const h=p},2046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var o=n(2610),a=n(7462);n(7294);var l=n(6500),r=n(3796),i=n(910),s=n(8003),c=n(3284),d=n(1205),u=n(8085);const p={desktop:"Desktop",tablet:"Tablet",mobile:"Mobile"},h=[{label:(0,s.__)("Desktop",i.i18n),value:"desktop",icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M14.5 2.4h-13c-.4 0-.8.3-.8.8v7c0 .4.3.8.8.8h5.8v1.3H5.6c-.4 0-.8.3-.8.8s.3.8.8.8h4.8c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H8.8V11h5.8c.4 0 .8-.3.8-.8v-7c-.2-.5-.5-.8-.9-.8zm-.7 7H2.2V3.9h11.5v5.5z"}))}),null)},{label:(0,s.__)("Tablet",i.i18n),value:"tablet",icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M13 14.8H3c-.4 0-.8-.3-.8-.8V2c0-.4.3-.8.8-.8h10c.4 0 .8.3.8.8v12c0 .4-.4.8-.8.8zm-9.2-2.6h8.5V2.8H3.8v9.4z"}))}),null)},{label:(0,s.__)("Mobile",i.i18n),value:"mobile",icon:(0,o.createElement)((function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M11 14.2H5c-.4 0-.8-.3-.8-.8v-11c0-.4.3-.8.8-.8h6c.4 0 .8.3.8.8v11c0 .5-.4.8-.8.8zm-5.2-2h4.5v-9H5.8v9z"}))}),null)}],g=["normal","hover","parent-hover","collapsed"].filter((e=>"normal"!==e)).map((e=>(0,u.upperFirst)((0,u.camelCase)(e)))),m=e=>{const t=(0,r.useDeviceType)(),n=h.filter((t=>{var n;let{value:o}=t;return null===(n=e.screens)||void 0===n?void 0:n.includes(o)})),a=(0,r.useBlockAttributesContext)((t=>{const n=e.valueCheckAttribute||e.attribute;if(!n)return{};const o=[t[`${n}Tablet`]];g.forEach((e=>{o.push(t[`${n}Tablet${e}`])}));const a=[t[`${n}Mobile`]];return g.forEach((e=>{a.push(t[`${n}Mobile${e}`])})),{tablet:o,mobile:a}})),i=n.map((t=>{if("desktop"===t.value)return t;let n=!1;e.attribute&&(n=!(0,d.isEmptyAttributes)(a[t.value]));const o="desktop"!==t.value&&("tablet"===t.value?e.hasTabletValue:e.hasMobileValue);return{...t,hasValue:o||n}}));return i<=1?null:t?(0,o.createElement)(l.Z,{className:"stk-control-responsive-toggle",value:t.toLowerCase(),options:i,onChange:e=>{(0,c.dispatch)("core/edit-site")&&(0,c.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType?(0,c.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType(p[e]):(0,c.dispatch)("core/edit-post")&&(0,c.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType?(0,c.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType(p[e]):(0,c.dispatch)("stackable/device-type").setDeviceType(p[e])}}):null};m.defaultProps={screens:["desktop"],attribute:"",suffix:"",hasTabletValue:void 0,hasMobileValue:void 0};const v=(0,o.memo)(m)},7044:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p,A:()=>h});var o=n(2610),a=n(4247),l=n.n(a),r=n(2286),i=n(9755),s=n(1205),c=n(78),d=n(3796);const u=(0,o.memo)((e=>{var t;const{version:n,versionAdded:a,versionDeprecated:u,styles:p,breakTablet:g,breakMobile:m}=e,v=(0,d.useDeviceType)(),b=(0,d.useBlockAttributesContext)((e=>e.uniqueId)),f=(0,s.getUniqueBlockClass)(b),{clientId:k}=(0,c.useBlockEditContext)();let y=f;if(!f){const e=(0,s.createUniqueClass)(k);y=(0,s.getUniqueBlockClass)(e)}const _=(null===(t=y)||void 0===t?void 0:t.replace("stk-",""))||"",C=(0,s.useQueryLoopInstanceId)(_),w=C&&!y.match(/-[\d]$/g)?y+`-${C}`:y,S=(0,o.useMemo)((()=>n?l()(n,a)>=0&&(!u||-1===l()(n,u)):!!u),[n,a,u]),E=(0,d.useRafMemo)((()=>{if(!S)return"";const e=(0,r.Yf)(p,v);return(0,r.KL)(h(e),w,g,m).join("")}),[S,p,v,w,g,m]),x=(0,i.wt)(E);return S&&E&&w&&x?(0,o.createElement)("style",null,x):null}));u.defaultProps={styles:null,blockUniqueClassName:"",breakTablet:1024,breakMobile:768,doImportant:!0,deviceType:"",version:"",versionAdded:"",versionDeprecated:!1},u.Content=e=>{const{version:t,versionAdded:n,versionDeprecated:a,styles:i,blockUniqueClassName:c,breakTablet:d,breakMobile:u}=e;if(!e.blockUniqueClassName)return null;if(!(t?l()(t,n)>=0&&(!a||-1===l()(t,a)):a))return null;const p=(0,r.KL)(h(i),c,d,u);return p?(0,o.createElement)(o.Fragment,null,(0,s.minifyCSS)(p.join(""))):null},u.Content.defaultProps={styles:null,blockUniqueClassName:"",breakTablet:1024,breakMobile:768,doImportant:!0,version:"",versionAdded:"",versionDeprecated:!1};const p=u,h=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"object"!=typeof e?(0,s.appendImportant)(e,t):Object.keys(e).reduce(((n,o)=>({...n,[o]:h(e[o],t)})),{})}},8324:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getBlockName:()=>d,fetchDesignLibrary:()=>u,fetchDesign:()=>p,setDevModeDesignLibrary:()=>h,getDesigns:()=>g,filterDesigns:()=>m,getDesign:()=>v});var o=n(6179),a=n.n(o),l=n(3882);const r="v4";let i={},s={},c={};const d=e=>e.replace(/^[\w-]+\//,""),u=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"patterns";if(e&&((0,l.doAction)("stackable.design-library.reset-cache"),i={},s={},c={}),"patterns"===n&&!Object.keys(s).length||"pages"===n&&!Object.keys(c).length){const t=await a()({path:`/stackable/v2/design_library/${n}${e?"/reset":""}`,method:"GET"});i[n]=t,"patterns"===n?s=t.v4:c=t.v4}return i[n][t||r]},p=async e=>(s[e]||await u(),s[e]||{}),h=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=await a()({path:"/stackable/v2/design_library_dev_mode/",method:"POST",data:{devmode:e}});return await t},g=async e=>{let{reset:t=!1,type:n="patterns"}=e;const o=await u(t,r,n);return"pages"===n&&await u(),Object.values(o)},m=async e=>{let{library:t=[],plan:n="",category:o=""}=e;return n&&(t=t.filter((e=>{let{plan:t}=e;return t===n}))),o&&(t=t.filter((e=>{let{category:t}=e;return t===o}))),t},v=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=await u(!1,t),o=n[e];let a=await(0,l.applyFilters)("stackable.design-library.get-design",null,e,o,t);return!a&&o.template&&(a=await p(e,t)),a}},5185:(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryLoopContext:()=>B.v,withBlockAttributeContext:()=>m,withBlockStyleContext:()=>M,withBlockWrapper:()=>y,withBlockWrapperIsHovered:()=>T,withIsHovered:()=>u,withQueryLoopContext:()=>B.Z,withVersion:()=>h,withVisualGuideContext:()=>v.Z});var o=n(7462),a=n(2610),l=n(8085);const{clearTimeout:r,setTimeout:i}=window,s=250;function c(e){let{ref:t,isFocused:n,debounceTimeout:o=s,onChange:c=l.noop}=e;const[d,u]=(0,a.useState)(!1),p=(0,a.useRef)(),h=e=>{u(e),c(e)},g=()=>{const e=p.current;e&&r&&r(e)};return(0,a.useEffect)((()=>()=>g()),[]),{showMovers:d,debouncedShowMovers:e=>{g(),d||h(!0)},debouncedHideMovers:e=>{g(),p.current=i((()=>{(()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e})()&&h(!1)}),o)}}}var d=n(3749);const u=(0,d.createHigherOrderComponent)((e=>t=>{const n=(0,a.useRef)(),{showMovers:r,gestures:i}=function(e){let{ref:t,debounceTimeout:n=s,onChange:o=l.noop}=e;const[r,i]=(0,a.useState)(!1),{showMovers:d,debouncedShowMovers:u,debouncedHideMovers:p}=c({ref:t,debounceTimeout:n,isFocused:r,onChange:o}),h=(0,a.useRef)(!1),g=()=>(null==t?void 0:t.current)&&t.current.contains(document.activeElement);return(0,a.useEffect)((()=>{const e=t.current,n=()=>{g()&&(i(!0),u())},o=()=>{g()||(i(!1),p())};return e&&!h.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",o,!0),h.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",o))}}),[t,h,i,u,p]),{showMovers:d,gestures:{onMouseMove:u,onMouseLeave:p}}}({ref:n});return(0,a.createElement)("div",(0,o.Z)({},i,{ref:n}),(0,a.createElement)(e,(0,o.Z)({},t,{isHovered:r})))}),"withIsHovered");var p=n(910);const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.version;return(0,d.createHigherOrderComponent)((t=>n=>(0,a.createElement)(t,(0,o.Z)({},n,{version:e}))),"withVersion")};var g=n(3796);const m=(0,d.createHigherOrderComponent)((e=>t=>(0,a.createElement)(g.BlockAttributesProvider,t,(0,a.createElement)(e,t))),"withBlockAttributeContext");var v=n(8667),b=n(3566),f=n(3284);const k={},y=(0,d.createHigherOrderComponent)((e=>t=>{const{wrapperProps:n=k}=t,l=w(t),[r,i]=(0,g.useBlockHoverState)();return(0,a.createElement)(b.BlockWrapper,(0,o.Z)({align:t.attributes.align,className:t.attributes.className,blockHoverClass:i},n),l&&(0,a.createElement)(e,(0,o.Z)({},t,{blockState:r,blockHoverClass:i})))}),"withBlockWrapper");let _=!0,C=null;const w=e=>{const{clientId:t,isSelected:n}=e,{rootBlockClientId:o}=(0,f.useSelect)((e=>{const{getBlockRootClientId:n}=e("core/block-editor");return{rootBlockClientId:n(t)}}),[t]);n&&(C=o);const l=o===t;_&&setTimeout((()=>{_=!1}),1e3);const r=!l||C===t||_,[i,s]=(0,a.useState)(r);return(0,a.useEffect)((()=>{if(!i){const e=setTimeout((()=>{s(!0)}),300);return()=>clearTimeout(e)}}),[i]),i},{clearTimeout:S,setTimeout:E}=window;const x={},T=(0,d.createHigherOrderComponent)((e=>t=>{const{wrapperProps:n=x}=t,l=(0,a.useRef)(),{showMovers:r,gestures:i}=function(e){let{ref:t}=e;const[n,o]=(0,a.useState)(!1),{showMovers:l,debouncedShowMovers:r,debouncedHideMovers:i}=function(e){let{ref:t,isFocused:n}=e;const[o,l]=(0,a.useState)(!1),r=(0,a.useRef)(),i=(0,a.useCallback)((()=>{r.current&&S&&S(r.current),l(!0)}),[]),s=(0,a.useCallback)((()=>{r.current&&S&&S(r.current),r.current=E((()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");n||e||l(!1)}),100)}),[n]);return(0,a.useEffect)((()=>()=>{l(!1),r.current&&S&&S(r.current)}),[]),{showMovers:o,debouncedShowMovers:i,debouncedHideMovers:s}}({ref:t,isFocused:n}),s=(0,a.useRef)(!1),c=()=>(null==t?void 0:t.current)&&t.current.contains(document.activeElement);return(0,a.useEffect)((()=>{const e=t.current,n=()=>{c()&&(o(!0),r())},a=()=>{c()||(o(!1),i())};return e&&!s.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",a,!0),s.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",a))}}),[t,s,o,r,i]),{showMovers:l,gestures:{onMouseMove:r,onMouseLeave:i}}}({ref:l}),[s,c]=(0,g.useBlockHoverState)(),d=w(t);return(0,a.createElement)(b.BlockWrapper,(0,o.Z)({align:t.attributes.align,className:t.attributes.className,blockStyle:t.attributes.blockStyle,blockHoverClass:c,hoverRef:l},d?i:{},n),d&&(0,a.createElement)(e,(0,o.Z)({},t,{isHovered:r,blockState:s,blockHoverClass:c})))}),"withBlockWrapperIsHovered");var B=n(6071);const M=e=>(0,d.createHigherOrderComponent)((t=>n=>(0,a.createElement)(g.BlockStyleProvider,{blockStyles:e,clientId:n.clientId,context:n.context},(0,a.createElement)(t,n))),"withBlockStyleContext")},6071:(e,t,n)=>{"use strict";n.d(t,{v:()=>l,Z:()=>r});var o=n(2610),a=n(3749);const l=(0,o.createContext)(null),r=(0,a.createHigherOrderComponent)((e=>t=>(0,o.createElement)(l.Provider,{value:t.context},(0,o.createElement)(e,t))),"withQueryLoopContext")},8667:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k,F:()=>f});var o=n(7462),a=n(2610),l=n(3284),r=n(3796),i=n(8085);const s=e=>{const{uniqueId:t,selector:n="",highlight:o="",value:i="",defaultValue:s="",responsive:c="all"}=e||{},d=`.editor-styles-wrapper.editor-styles-wrapper .stk-${t} ${n.replace(/%s/g,t)}`.trim(),{getEditorDom:u}=(0,l.useSelect)("stackable/editor-dom"),p=(0,r.useDeviceType)(),[g,m]=(0,a.useState)(0),v=(0,a.useMemo)((()=>{var e;const t=d.split(",")[0],n=null===(e=u())||void 0===e?void 0:e.querySelector(t);return n||setTimeout((()=>{m&&m(g+1)}),50),n?window.getComputedStyle(n):{}}),[d,g])||{};if("all"!==c&&!c.includes(p.toLowerCase()))return null;const b=h(o,d,i,s,v);return(0,a.createElement)("style",null,b)};s.defaultProps={uniqueId:"",highlightStyles:{}};const c=s,d="var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba))",u="rgba(220, 158, 93, 0.5)",p="rgba(220, 158, 93, 0.25)",h=(e,t,n,o,a)=>{switch(e){case"row-gap":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t} > [data-type]:not(:nth-last-child(2))::before {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tz-index: 2;\n\t\t\t\ttop: 100%;\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: max(${parseInt(a.rowGap,10)||0}px, 1px);\n\t\t\t\tbackground: ${u};\n\t\t\t\tpointer-events: none;\n\t\t\t}`;case"column-gap":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t} > [data-type]:not(:nth-last-child(2))::before {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tz-index: 2;\n\t\t\t\tleft: 100%;\n\t\t\t\ttop: 0;\n\t\t\t\twidth: max(${parseInt(a.columnGap,10)||0}px, 1px);\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: ${u};\n\t\t\t\tpointer-events: none;\n\t\t\t}`;case"columns:column-gap":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t} > [data-type="stackable/column"]:not(:last-child)::before {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\tz-index: 2;\n\t\t\t\tleft: 100%;\n\t\t\t\ttop: 0;\n\t\t\t\twidth: max(${parseInt(a.columnGap,10)||0}px, 1px);\n\t\t\t\theight: 100%;\n\t\t\t\tbackground: ${u};\n\t\t\t\tpointer-events: none;\n\t\t\t}`;case"padding":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t}::after {\n\t\t\t\tall: unset;\n\t\t\t\tcontent: '' !important;\n\t\t\t\tz-index: 2;\n\t\t\t\tposition: absolute;\n\t\t\t\tinset: 0;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: rgba(162, 201, 68, 0.5);\n\t\t\t\tborder-top-width: max(${a.paddingTop}, 1px);\n\t\t\t\tborder-right-width: max(${a.paddingRight}, 1px);\n\t\t\t\tborder-bottom-width: max(${a.paddingBottom}, 1px);\n\t\t\t\tborder-left-width: max(${a.paddingLeft}, 1px);\n\t\t\t\tbackground-color: transparent !important;\n\t\t\t}`;case"margin":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t\toverflow: visible !important;\n\t\t\t}\n\t\t\t${t}::after {\n\t\t\t\tall: unset;\n\t\t\t\tcontent: '' !important;\n\t\t\t\tz-index: 2;\n\t\t\t\tposition: absolute;\n\t\t\t\tinset: 0;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-top-color: ${parseInt(a.marginTop,10)<0?p:u};\n\t\t\t\tborder-right-color: ${parseInt(a.marginRight,10)<0?p:u};\n\t\t\t\tborder-bottom-color: ${parseInt(a.marginBottom,10)<0?p:u};\n\t\t\t\tborder-left-color: ${parseInt(a.marginLeft,10)<0?p:u};\n\t\t\t\tborder-top-width: max(${a.marginTop}, calc(${a.marginTop} * -1), 1px);\n\t\t\t\tborder-right-width: max(${a.marginRight}, calc(${a.marginRight} * -1), 1px);\n\t\t\t\tborder-bottom-width: max(${a.marginBottom}, calc(${a.marginBottom} * -1), 1px);\n\t\t\t\tborder-left-width: max(${a.marginLeft}, calc(${a.marginLeft} * -1), 1px);\n\t\t\t\ttop: calc(max(${a.marginTop}, 1px) * -1);\n\t\t\t\tright: calc(max(${a.marginRight}, 1px) * -1);\n\t\t\t\tbottom: calc(max(${a.marginBottom}, 1px) * -1);\n\t\t\t\tleft: calc(max(${a.marginLeft}, 1px) * -1);\n\t\t\t\tbackground-color: transparent !important;\n\t\t\t}`;case"column-spacing":return`${t} {\n\t\t\t\tposition: relative;\n\t\t\t}\n\t\t\t${t}::after {\n\t\t\t\tall: unset;\n\t\t\t\tcontent: '';\n\t\t\t\tz-index: 2;\n\t\t\t\tposition: absolute;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: ${u};\n\t\t\t\ttop: calc(max(var(--column-spacing-top, var(--stk-columns-spacing, ${o})), 1px) * -1);\n\t\t\t\tborder-top-width: max(var(--column-spacing-top, var(--stk-columns-spacing, ${o})), 1px);\n\t\t\t\tright: calc(max(var(--column-spacing-right, var(--stk-columns-spacing, ${o})), 1px) * -1);\n\t\t\t\tborder-right-width: max(var(--column-spacing-right, var(--stk-columns-spacing, ${o})), 1px);\n\t\t\t\tbottom: calc(max(var(--column-spacing-bottom, var(--stk-columns-spacing, ${o})), 1px) * -1);\n\t\t\t\tborder-bottom-width: max(var(--column-spacing-bottom, var(--stk-columns-spacing, ${o})), 1px);\n\t\t\t\tleft: calc(max(var(--column-spacing-left, var(--stk-columns-spacing, ${o})), 1px) * -1);\n\t\t\t\tborder-left-width: max(var(--column-spacing-left, var(--stk-columns-spacing, ${o})), 1px);\n\t\t\t\tbackground-color: transparent !important;\n\t\t\t}`;case"outline-first-offset":return`${t} {\n\t\t\t\toutline: 1px dashed ${d};\n\t\t\t}\n\t\t\t${(0,i.first)(t.split(","))} {\n\t\t\t\toutline-offset: 8px;\n\t\t\t}`;case"outline-second-offset":return`${t} {\n\t\t\t\toutline: 1px dashed ${d};\n\t\t\t}\n\t\t\t${(0,i.last)(t.split(","))} {\n\t\t\t\toutline-offset: 8px;\n\t\t\t}`;default:return`${t} {\n\t\t\t\toutline: 1px dashed ${d};\n\t\t\t}`}};var g=n(3749),m=n(4184),v=n.n(m);const b=(0,a.createContext)(null),f=()=>(0,a.useContext)(b),k=(0,g.createHigherOrderComponent)((e=>t=>{const n=t.attributes.uniqueId,[l,i]=(0,r.useRafState)(null);return(0,a.useEffect)((()=>{t.isSelected||i(null)}),[t.isSelected]),(0,a.createElement)(b.Provider,{value:i},l&&(0,a.createElement)(c,(0,o.Z)({uniqueId:n},l||{})),(0,a.createElement)(e,(0,o.Z)({className:v()(t.className,{"stk-has-visual-guide":!!l})},t)))}),"withVisualGuideContext")},3796:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BlockAttributesProvider:()=>M,BlockStyleProvider:()=>ye,DEFAULT_BLOCK_ATTRIBUTES_CONTEXT:()=>f,DEFAULT_BLOCK_CONTEXT_CONTEXT:()=>y,DEFAULT_SET_ATTRIBUTES_CONTEXT:()=>k,createContext:()=>m,getBlockStyle:()=>O,getDefinedBlockStyles:()=>H,isBlockLinked:()=>K,useAttributeEditHandlers:()=>F,useAttributeName:()=>G,useBlockAttributes:()=>d,useBlockAttributesContext:()=>x,useBlockColorSchemes:()=>ue.k,useBlockContextContext:()=>B,useBlockHoverClass:()=>V,useBlockHoverState:()=>W,useBlockLayoutDefaults:()=>de.V,useBlockSetAttributesContext:()=>T,useBlockStyle:()=>P,useBlockStyleContext:()=>ke,useContextSelector:()=>b,useDeviceType:()=>c,useDidAttributesChange:()=>s,useFontLoader:()=>D,useInternalValue:()=>j,useIsLinked:()=>Y,useLinking:()=>q,useOnScreen:()=>X,useOnScreenOnce:()=>J,usePostsQuery:()=>ne,usePresetControls:()=>be,useRafEffect:()=>ce,useRafMemo:()=>se,useRafState:()=>ie,useVariationPicker:()=>le,useWithShift:()=>a});var o=n(2610);const a=()=>{const[e,t]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{var e;const n=e=>{t(!!e.shiftKey)};window.addEventListener("keydown",n),window.addEventListener("keyup",n);const o=null===(e=document)||void 0===e?void 0:e.querySelector('iframe[name="editor-canvas"]');return o&&(o.contentDocument||o.contentWindow.document).addEventListener("keyup",n),()=>{var e;window.removeEventListener("keydown",n),window.removeEventListener("keyup",n);const t=null===(e=document)||void 0===e?void 0:e.querySelector('iframe[name="editor-canvas"]');t&&(t.contentDocument||t.contentWindow.document).removeEventListener("keyup",n)}}),[]),e};var l=n(8085),r=n(3284);const i={},s=function(e,t,n){let a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const[s,c]=(0,o.useState)(n);if(t&&!i[t]){const e=(0,r.select)("core/blocks").getBlockType(t).attributes;i[t]=Object.keys(e).reduce(((t,n)=>(t[n]=e[n].default||"",t)),{})}(0,o.useEffect)((()=>{if(!t)return;const o=Object.keys(n).filter((e=>n[e]!==s[e])),r=[];a?o.forEach((e=>{const o=i[t][e];n[e]!==o&&r.push(e)})):r.push(...o),r.length&&e((0,l.pick)(n,r),(0,l.pick)(s,r)),c(n)}),[JSON.stringify(n||{})])},c=()=>{const{deviceType:e}=(0,r.useSelect)((e=>{var t,n,o,a,l,r;let i="Desktop";return i=(null===(t=e("core/editor"))||void 0===t||null===(n=t.getDeviceType)||void 0===n?void 0:n.call(t))||(null===(o=e("core/edit-site"))||void 0===o||null===(a=o.__experimentalGetPreviewDeviceType)||void 0===a?void 0:a.call(o))||(null===(l=e("core/edit-post"))||void 0===l||null===(r=l.__experimentalGetPreviewDeviceType)||void 0===r?void 0:r.call(l))||e("stackable/device-type").getDeviceType(),{deviceType:i}}),[]);return e||""};(0,r.register)((0,r.createReduxStore)("stackable/device-type",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;return"UPDATE_DEVICE_TYPE"===t.type?t.deviceType:e},actions:{setDeviceType:e=>({type:"UPDATE_DEVICE_TYPE",deviceType:e})},selectors:{getDeviceType:e=>e}}));const d=e=>(0,r.useSelect)((t=>t("core/block-editor").getBlockAttributes(e)||{}),[e]);var u=n(4063),p=n.n(u);const h=Symbol(),g=Symbol();function m(e){const t=(0,o.createContext)({[h]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});var n;return t[g]=t.Provider,t.Provider=(n=t.Provider,e=>{let{value:t,children:a}=e;const l=(0,o.useRef)(t),r=(0,o.useRef)(0),[i,s]=(0,o.useState)(null);i&&(i(t),s(null));const c=(0,o.useRef)();if(!c.current){const e=new Set,t=(t,n)=>{r.current+=1;const o={n:r.current};null!=n&&n.suspense&&(o.n*=-1,o.p=new Promise((e=>{s((()=>t=>{o.v=t,delete o.p,e(t)}))}))),e.forEach((e=>e(o))),t()};c.current={[h]:{v:l,n:r,l:e,u:t}}}return(0,o.useLayoutEffect)((()=>{l.current=t,r.current+=1,c.current[h].l.forEach((e=>{e({n:r.current,v:t})}))}),[t]),(0,o.createElement)(n,{value:c.current},a)}),delete t.Consumer,t}const v=(e,t)=>(e=>!Array.isArray(e)&&"object"==typeof e)(e)?p()(e,t):Object.is(e,t);function b(e,t){const n=(0,o.useContext)(e)[h],{v:{current:a},n:{current:l},l:r}=n,i=t(a),[s,c]=(0,o.useReducer)(((e,n)=>{if(!n)return[a,i];if("p"in n)throw n.p;if(n.n===l)return v(e[1],i)?e:[a,i];try{if("v"in n){if(v(e[0],n.v))return e;const o=t(n.v);return v(e[1],o)?e:[n.v,o]}}catch(e){}return[...e]}),[a,i]);return v(s[1],i)||c(),(0,o.useLayoutEffect)((()=>(r.add(c),()=>{r.delete(c)})),[r]),s[1]}const f={},k=()=>{},y={},_=m(f),C=(0,o.createContext)(k),w=m(y),S=e=>e,E={},x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S;return b(_,(t=>e(t)))},T=()=>(0,o.useContext)(C),B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S;return b(w,(t=>e(t)))},M=e=>(0,o.createElement)(_.Provider,{value:e.attributes},(0,o.createElement)(C.Provider,{value:e.setAttributes},(0,o.createElement)(w.Provider,{value:e.context||E},e.children)));var A=n(3420),N=n.n(A),I=n(78);const R={},P=e=>{const{name:t}=(0,I.useBlockEditContext)(),n=x((e=>e.className));if(R[t]=e,!n)return"default";for(const t of new(N())(n).values()){if(-1===t.indexOf("is-style-"))continue;const n=t.substring(9),o=(0,l.find)(e,{name:n});if(o)return o.name}const o=(0,l.find)(e,"isDefault");return(null==o?void 0:o.name)||"default"},O=(e,t)=>{if(t)for(const n of new(N())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=(0,l.find)(e,{name:t});if(o)return o}return(0,l.find)(e,"isDefault")},H=e=>R[e]||[];var z=n(3882),L=n(1205);const D=e=>{const{loadingThemeFont:t,themeFonts:n}=(0,r.select)("stackable/theme-fonts").getThemeFonts();(0,o.useEffect)((()=>{n.includes(e)||((0,L.loadGoogleFont)(e),(0,z.doAction)("stackable.font-loader.load",e))}),[t,e])},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s";const t=T(),n=x(),o=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";return(0,L.getAttributeName)((0,L.getAttrNameFunction)(e)(t),n,o)},a=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";const l=(0,L.getAttrNameFunction)(e);return n[(0,L.getAttributeName)(l(t),o,a)]},l=()=>n,r=function(n,o){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"normal";const r=(0,L.getAttrNameFunction)(e);return t({[(0,L.getAttributeName)(r(n),a,l)]:o})},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";return o=>r(e,o,t,n)},s=e=>{const n=Object.keys(e).reduce(((t,n)=>(t[o(n)]=e[n],t)),{});t(n)};return{getAttrName:o,getAttribute:a,getAttributes:l,updateAttributeHandler:i,updateAttributes:s,updateAttribute:r}},$={selectedBlock:null,hoverState:"normal",hasParentHoverState:!1,selectedParentHoverBlock:null,selectedParentHoverChildren:[],selectedHoverChildren:[],hasCollapsedState:!1,selectedCollapsedBlock:null,selectedCollapsedChildren:[]},U={updateSelectedBlock:(e,t)=>{var n,o;const a=null==t?void 0:t.querySelector(`[data-block="${e}"]`),l=null==a||null===(n=a.closest(".stk-hover-parent"))||void 0===n?void 0:n.closest("[data-block]"),r=(null==l?void 0:l.getAttribute("data-block"))||null,i=Array.from((null==l?void 0:l.querySelectorAll("[data-block]"))||[]).map((e=>e.getAttribute("data-block")))||[],s=Array.from((null==a?void 0:a.querySelectorAll("[data-block]"))||[]).map((e=>e.getAttribute("data-block")))||[],c=(null==a||null===(o=a.closest(".stk-block-accordion"))||void 0===o?void 0:o.closest("[data-block]"))||("stackable/accordion"===(null==a?void 0:a.getAttribute("data-type"))?a:null),d=(null==c?void 0:c.getAttribute("data-block"))||null;return{type:"UPDATE_SELECTED_BLOCK",clientId:e,parentHoverClientId:r,hasParentHoverState:!!r,parentHoverChildrenClientIds:i,hoverChildrenClientIds:s,collapsedClientId:d,collapsedChildrenClientIds:Array.from((null==c?void 0:c.querySelectorAll("[data-block]"))||[]).map((e=>e.getAttribute("data-block")))||[],hasCollapsedState:!!d}},clearSelectedBlock:()=>({type:"CLEAR_SELECTED_BLOCK"}),updateHoverState:e=>({type:"UPDATE_HOVER_STATE",value:e})};(0,r.register)((0,r.createReduxStore)("stackable/hover-state",{reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SELECTED_BLOCK":return{...e,selectedBlock:t.clientId,selectedParentHoverBlock:t.parentHoverClientId,hasParentHoverState:t.hasParentHoverState,selectedParentHoverChildren:t.parentHoverChildrenClientIds,selectedHoverChildren:t.hoverChildrenClientIds,hasCollapsedState:t.hasCollapsedState,selectedCollapsedBlock:t.collapsedClientId,selectedCollapsedChildren:t.collapsedChildrenClientIds};case"CLEAR_SELECTED_BLOCK":return{...$};case"UPDATE_HOVER_STATE":return{...e,hoverState:t.value}}return e},actions:U,selectors:{getSelectedBlock:e=>e.selectedBlock,getHoverState:e=>e.hoverState,getHasParentHoverState:e=>e.hasParentHoverState,getSelectedParentHoverBlock:e=>e.selectedParentHoverBlock,getSelectedParentHoverBlockChildren:e=>e.selectedParentHoverChildren,getSelectedHoverChildren:e=>e.selectedHoverChildren,getHasCollapsedState:e=>e.hasCollapsedState,getSelectedCollapsedBlock:e=>e.selectedCollapsedBlock,getSelectedCollapsedBlockChildren:e=>e.selectedCollapsedChildren}}));const W=function(){let{forceUpdateHoverState:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId:t}=(0,I.useBlockEditContext)(),n=(0,r.useSelect)((e=>e("core/block-editor").getMultiSelectedBlockClientIds())),{currentHoverState:o,blockHoverClass:a,hasParentHoverState:l,hasCollapsedState:i,isCollapsedBlock:s}=(0,r.useSelect)((o=>{const a=o("stackable/hover-state").getHoverState(),l=o("stackable/hover-state").getSelectedBlock(),{getSelectedParentHoverBlock:r,getSelectedParentHoverBlockChildren:i,getSelectedHoverChildren:s,getHasParentHoverState:c,getHasCollapsedState:d,getSelectedCollapsedBlock:u,getSelectedCollapsedBlockChildren:p}=o("stackable/hover-state"),h=c(),g=r(),m=d(),v=u(),b=t===l||n.includes(t),f=t===v;let k="",y="normal";if(b)"hover"!==a&&"parent-hover"!==a||(k="stk--is-hovered"),y=a,h||"parent-hover"!==a||(y="hover");else if(t===g)"hover"!==a&&"parent-hover"!==a||(k="stk--is-hovered",y="hover");else{const e=i(),n=s(),o=p(),l=e.includes(t),r=n.includes(t),c=o.includes(t);l||r?"hover"!==a&&"parent-hover"!==a||(k="stk--is-hovered",y="parent-hover"):(c||f)&&(y="collapsed")}return e&&(y=a),{currentHoverState:y,blockHoverClass:k,hasParentHoverState:h,hasCollapsedState:m,isCollapsedBlock:f}}),[t,n]);return[o,a,l,i,s]},V=()=>{const{clientId:e}=(0,I.useBlockEditContext)(),t=(0,r.useSelect)((e=>e("core/block-editor").getMultiSelectedBlockClientIds())),{hoverState:n,parentHoverChildrenClientIds:o}=(0,r.useSelect)((e=>({hoverState:e("stackable/hover-state").getHoverState(),parentHoverChildrenClientIds:e("stackable/hover-state").getSelectedParentHoverBlockChildren()})),[]),{getSelectedBlock:a,getSelectedParentHoverBlock:l,getSelectedParentHoverBlockChildren:i,getSelectedHoverChildren:s}=(0,r.useSelect)("stackable/hover-state"),c=a(),d=l();let u="";if(e===c||t.includes(e))"hover"!==n&&"parent-hover"!==n||(u="stk--is-hovered");else if(e===d)"hover"!==n&&"parent-hover"!==n||(u="stk--is-hovered");else{const t=s(),a=o.includes(e),l=t.includes(e);(a||l)&&("hover"!==n&&"parent-hover"!==n||(u="stk--is-hovered"))}return u},G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all";const o=c(),[a]=W();let l="desktop";("all"===t||Array.isArray(t)&&t.includes(o))&&(l=o);let r="normal";return("all"===n||Array.isArray(n)&&n.includes(a))&&(r=a),(0,L.getAttributeName)(e,l,r)},j=e=>{const[t,n]=(0,o.useState)(e),[a,l]=(0,o.useState)(e);return p()(e,a)||(l(e),n(e)),[t,n]},Z=()=>JSON.parse(window.localStorage.getItem("stackable-linking"))||[],q=()=>{const e=x((e=>e.uniqueId)),[t,n]=(0,o.useState)(Z());return(0,o.useEffect)((()=>{const e=()=>{n(Z())};return window.addEventListener("stackable-linked-storage",e),()=>window.removeEventListener("stackable-linked-storage",e)}),[]),[(0,o.useMemo)((()=>t.includes(e)),[t,e]),t=>{const n=Z(),o=t?[...n,e]:n.filter((t=>t!==e));window.localStorage.setItem("stackable-linking",JSON.stringify(o.slice(0,50))),window.dispatchEvent(new window.CustomEvent("stackable-linked-storage"))}]},Y=e=>{const t=d(e);return null!=t&&t.uniqueId?Z().includes(t.uniqueId):null},K=e=>{if(!e)return null;const t=(0,r.select)("core/block-editor").getBlockAttributes(e);return null!=t&&t.uniqueId?Z().includes(t.uniqueId):null},X=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";const[n,a]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const n=new IntersectionObserver((e=>{let[t]=e;a(t.isIntersecting)}),{rootMargin:t});return e.current&&n.observe(e.current),()=>{e.current&&n.unobserve(e.current)}})),n},J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0px";const[n,a]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const n=new IntersectionObserver((t=>{let[o]=t;o.isIntersecting&&(a(o.isIntersecting),n.unobserve(e.current))}),{rootMargin:t});return e.current&&n.observe(e.current),()=>{e.current&&n.unobserve(e.current)}})),n};var Q=n(1368),ee=n(6179),te=n.n(ee);const ne=e=>{const{type:t,orderBy:n,order:a,taxonomyType:r,taxonomy:i,taxonomyFilterType:s,postOffset:c,postExclude:d,postInclude:u,numberOfItems:p=6,excludeCurrentPost:h,excerptLength:g}=e,[m,v]=(0,o.useState)(!0),[b,f]=(0,o.useState)(null),k=(0,o.useMemo)((()=>{v(!0);const t=(0,l.pickBy)({...(0,z.applyFilters)("stackable.posts.postQuery",{order:a,orderby:[n,"ID"].join(" "),posts_per_page:p,max_excerpt:g},e)},(e=>Array.isArray(e)?!(0,l.isEmpty)(e):!(0,l.isUndefined)(e)&&""!==e));if(i&&r){const e=i.split(",").map((e=>parseInt(e,10))).filter((e=>!isNaN(e)));"category"===r?t["__in"===s?"category__in":"category__not_in"]=e:"post_tag"===r?t["__in"===s?"tag__in":"tag__not_in"]=e:t.tax_query=[{taxonomy:r,terms:e,operator:"__in"===s?"IN":"NOT IN"}]}return t}),[t,n,a,r,i,s,c,d,u,p,h]);return(0,o.useEffect)((()=>{te()({path:(0,Q.addQueryArgs)("/stackable/v3/get_posts",{post_type:t,...k}),method:"GET"}).then((e=>{f(e),v(!1)}))}),[k]),{posts:b,hasPosts:Array.isArray(b)&&!!b.length,isRequesting:m}};var oe=n(3566),ae=n(378);const le=(e,t)=>{const{blockType:n,defaultVariation:a,variations:i}=(0,r.useSelect)((t=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:a}=t("core/blocks"),{getBlock:l}=t("core/block-editor");if(!e)return{};if(!l(e))return{};const{name:r}=l(e);return{blockType:o(r),defaultVariation:a(r,"block"),variations:n(r,"block")}}),[e,t]),{getActiveBlockVariation:s}=(0,r.useSelect)("core/blocks");return t?null:(0,o.createElement)(oe.VariationPicker,{icon:(0,l.get)(n,["icon","src"]),label:(0,l.get)(n,["title"]),variations:i||[],onSelect:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;const n=(0,r.select)("core/block-editor").getBlock(e),o=(0,z.applyFilters)("stackable.variation-picker.variation-selected",t,n.name),i=s(n.name,n.attributes),c=(0,z.applyFilters)("stackable.variation-picker.variation-selected",i,n.name);let d={};if(c&&(d={...c.attributes},Object.keys(d).forEach((e=>d[e]=void 0))),d={...d,...o.attributes||{},uniqueId:(0,L.createUniqueClass)(e)},(0,r.dispatch)("core/block-editor").updateBlockAttributes(e,d),o.innerBlocks){const t=(0,ae.createBlocksFromInnerBlocksTemplate)(o.innerBlocks);if((0,L.recursivelyAddUniqueIdToInnerBlocks)(t),n.innerBlocks.length){const e=re(t),o=re(n.innerBlocks);Object.keys(o).forEach((n=>{o[n].forEach(((o,a)=>{if(e[n])if(a<e[n].length){const t=e[n][a];t.attributes={...t.attributes,...(0,l.pick)(o.attributes,L.CONTENT_ATTRIBUTES)}}else if("stackable/button"===n||"stackable/icon-button"===n){const t=e[n][a-1];if(null!=t&&t.parent){const a=(0,ae.cloneBlock)(t);a.attributes={...a.attributes,...(0,l.pick)(o.attributes,L.CONTENT_ATTRIBUTES)},t.parent.innerBlocks.push(a),e[n].push(t)}}else if("stackable/text"===n){const r=e[n][a-1],i=(0,ae.cloneBlock)(r);if(i.attributes={...i.attributes,...(0,l.pick)(o.attributes,L.CONTENT_ATTRIBUTES)},r.parent){const e=r.parent.innerBlocks.indexOf(r);-1!==e&&r.parent.innerBlocks.splice(e+1,0,i)}else{const e=t.indexOf(r);-1!==e&&t.splice(e+1,0,i)}e[n].push(r)}}))}))}(0,r.dispatch)("core/block-editor").replaceInnerBlocks(e,t,!c)}},allowSkip:!0})},re=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let n=0;n<e.length;n++){const o=e[n].name;t[o]?t[o].push(e[n]):t[o]=[e[n]],e[n].innerBlocks.forEach((t=>{t.parent=e[n]})),re(e[n].innerBlocks,t)}return t},ie=e=>{const t=(0,o.useRef)(0),[n,a]=(0,o.useState)(e),l=(0,o.useCallback)((e=>{cancelAnimationFrame(t.current),t.current=requestAnimationFrame((()=>{a(e)}))}),[]);return(0,o.useEffect)((()=>()=>{cancelAnimationFrame(t.current)}),[]),[n,l]},se=(e,t)=>{const n=(0,o.useRef)(0),[a,l]=(0,o.useState)("");return(0,o.useEffect)((()=>(cancelAnimationFrame(n.current),n.current=requestAnimationFrame((()=>{l(e)})),()=>cancelAnimationFrame(n.current))),t),a},ce=(e,t)=>{const n=(0,o.useRef)(0);(0,o.useEffect)((()=>(cancelAnimationFrame(n.current),n.current=requestAnimationFrame(e),()=>cancelAnimationFrame(n.current))),t)};var de=n(2490),ue=n(3652),pe=n(910);const he=JSON.parse('{"X":{"spacing":{"spacingSizes":[{"name":"XS","size":"0.25rem","slug":"x-small"},{"name":"S","size":"0.5rem","slug":"small"},{"name":"M","size":"1rem","slug":"medium"},{"name":"L","size":"1.5rem","slug":"large"},{"name":"XL","size":"2rem","slug":"x-large"},{"name":"2XL","size":"3rem","slug":"xx-large"},{"name":"3XL","size":"4rem","slug":"xxx-large"},{"name":"4XL","size":"6rem","slug":"xxxx-large"}]},"typography":{"fontSizes":[{"name":"XS","size":"0.75rem","slug":"x-small"},{"name":"S","size":"0.875rem","slug":"small"},{"name":"M","size":"1rem","slug":"medium"},{"name":"L","size":"1.125rem","slug":"large"},{"name":"XL","size":"1.5rem","slug":"x-large"},{"name":"2XL","size":"2rem","slug":"xx-large"},{"name":"3XL","size":"2.5rem","slug":"xxx-large"},{"name":"4XL","size":"3rem","slug":"xxxx-large"},{"name":"5XL","size":"4rem","slug":"xxxxx-large"}]},"blockHeights":[{"name":"XS","size":"4rem","slug":"x-small"},{"name":"S","size":"8rem","slug":"small"},{"name":"M","size":"12rem","slug":"medium"},{"name":"L","size":"16rem","slug":"large"},{"name":"XL","size":"24rem","slug":"x-large"},{"name":"2XL","size":"32rem","slug":"xx-large"},{"name":"3XL","size":"40rem","slug":"xxx-large"},{"name":"Full","size":"100vh","slug":"full"}],"borderRadius":[{"name":"XS","size":"2px","slug":"x-small"},{"name":"S","size":"4px","slug":"small"},{"name":"M","size":"8px","slug":"medium"},{"name":"L","size":"16px","slug":"large"},{"name":"XL","size":"24px","slug":"x-large"},{"name":"2XL","size":"32px","slug":"xx-large"},{"name":"Full","size":"9999px","slug":"full"}]}}');var ge=n(8003);const me={fontSizes:{settings:["typography","fontSizes"],defaultSizes:"typography.fontSizes.default",defaultEnabled:"typography.defaultFontSizes",prefix:"font-size"},spacingSizes:{settings:["spacing","spacingSizes"],defaultSizes:"spacing.spacingSizes.default",defaultEnabled:"spacing.defaultSpacingSizes",prefix:"spacing"},blockHeights:{settings:["blockHeights"],defaultSizes:"",defaultEnabled:"",prefix:"block-height"},borderRadius:{settings:["borderRadius"],defaultSizes:"",defaultEnabled:"",prefix:"border-radius"}},ve={name:(0,ge.__)("None",pe.i18n),size:"0px",slug:"none"},be=e=>{const[t,n,o]=(0,I.useSettings)(me[e].settings.join("."),me[e].defaultSizes,me[e].defaultEnabled),{allCustomPresets:a}=(0,r.useSelect)((e=>{var t;return{allCustomPresets:{...null===(t=e("stackable/global-preset-controls.custom"))||void 0===t?void 0:t.getCustomPresetControls()}}}),[]);let l=t;const i=Array.isArray(l)&&l.length>0;if(i&&n&&!1!==o){const e=new Set;t.forEach((t=>{t&&"string"==typeof t.slug&&e.add(t.slug)})),l=[...t,...n.filter((t=>!e.has(t.slug)))]}const s=i?l:me[e].settings.reduce(((e,t)=>null==e?void 0:e[t]),he.X),c=()=>{var t;const n=(null!==(t=a[e])&&void 0!==t?t:[]).reduce(((e,t)=>(e[t.slug]=t,e)),{});return s.map((e=>n[e.slug]?{...e,...n[e.slug]}:e))};return{hasThemePresets:i,basePresets:s,allCustomPresets:a,getMergedPresets:c,getPresetMarks:function(){var t;let{customOnly:n=!1,addNonePreset:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=me[e].prefix;let r=n?null!==(t=a[e])&&void 0!==t?t:[]:c();return r=[...o?[ve]:[],...r],r.filter((e=>!(null!=e&&e.isDiscarded))).map((e=>({...e,value:`var(--stk--preset--${l}--${e.slug}, ${e.size})`})))}}},fe=(0,o.createContext)(null),ke=()=>(0,o.useContext)(fe),ye=e=>(0,o.createElement)(fe.Provider,{value:[e.blockStyles,{clientId:e.clientId,context:e.context}]},e.children)},3652:(e,t,n)=>{"use strict";n.d(t,{k:()=>d});var o=n(910),a=n(8085),l=n(3284),r=n(3882),i=n(8003),s=n(1205);const c=e=>Object.values(e).some((e=>Object.values(e).some((e=>""!==e)))),d=()=>{const{getScheme:e,getColorGroups:t,allColorSchemes:n,colorSchemesCollection:d,getSortedColorSchemes:u,COLOR_SCHEME_OPTIONS:p,baseColorScheme:h,backgroundModeColorScheme:g,containerModeColorScheme:m}=(0,l.useSelect)((e=>{const{colorSchemes:t,hideColorSchemeColors:n,baseColorScheme:l,backgroundModeColorScheme:d,containerModeColorScheme:u}=e("stackable/global-color-schemes").getSettings(),p=(0,r.applyFilters)("stackable.global-settings.global-color-schemes.custom-color-schemes",t,!0),h=[{label:(0,i.__)("Scheme unavailable",o.i18n),value:"scheme-unavailable",hidden:!0,disabled:!0},...null==p?void 0:p.map((e=>({label:e.name,value:e.key,disabled:!c(e.colorScheme)})))],g=p.reduce(((e,t)=>{const n=(0,a.cloneDeep)(t);if(!c(n.colorScheme))return e;const o={},l={},r={};return Object.entries(n.colorScheme).forEach((e=>{let[t,n]=e;"desktop"in n&&(o[t]=n.desktop),"desktopHover"in n&&(l[t]=n.desktopHover),"desktopParentHover"in n&&(r[t]=n.desktopParentHover)})),e[n.key]=n,e[n.key].normal=o,e[n.key].hover=l,e[n.key].parentHover=r,e}),{}),m=function(e){var t;let{mode:n="",returnFallback:o=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a="background"===n?"scheme-default-2":"scheme-default-1";return(null===(t=h.find((t=>t.value===e)))||void 0===t?void 0:t.value)||(o?a:"scheme-unavailable")},v=(e,t)=>"--stk-"+t+"-"+(0,a.kebabCase)(e);return{getScheme:m,getColorGroups:()=>{if(n)return{colorSchemeColors:[],colorSchemeGradients:[]};const e=[],t=[];return p.forEach((n=>{if(n.hideInPicker)return;const o=[],a=[];Object.entries(n.colorScheme).forEach((e=>{let[t,l]=e;if(null==l||!l.desktop)return o;null!=l&&l.desktop.startsWith("linear-")||null!=l&&l.desktop.startsWith("radial-")?a.push({gradient:null==l?void 0:l.desktop,name:(0,s.getPropertyLabel)(t),slug:v(t,n.key)}):o.push({color:null==l?void 0:l.desktop,name:(0,s.getPropertyLabel)(t),slug:v(t,n.key)})})),0!==o.length&&e.push({name:n.name,id:n.key,colors:o}),0!==a.length&&t.push({name:n.name,id:n.key,gradients:a})})),{colorSchemeColors:e,colorSchemeGradients:t}},allColorSchemes:p,colorSchemesCollection:g,getSortedColorSchemes:()=>{const e=m(l),t=m(d,{mode:"background"}),n=m(u),a=[];if(e in g){const t=g[e];t.schemeType=(0,i.__)("Base Color Scheme",o.i18n),a.push(t)}if(t in g){const e=g[t];e.schemeType=(0,i.__)("Background Color Scheme",o.i18n),a.push(e)}if(e!==n&&n in g){const e=g[n];e.schemeType=(0,i.__)("Container Color Scheme",o.i18n),a.push(e)}else e in g&&(a[0].schemeType=(0,i.__)("Base/Container Color Scheme",o.i18n));const r=Object.values(g).filter((o=>o.key!==e&&o.key!==t&&o.key!==n));return a.concat(r)},COLOR_SCHEME_OPTIONS:h,baseColorScheme:m(l),backgroundModeColorScheme:m(d,{mode:"background"}),containerModeColorScheme:m(u)}}),[]);return{getScheme:e,getColorGroups:t,allColorSchemes:n,colorSchemesCollection:d,getSortedColorSchemes:u,COLOR_SCHEME_OPTIONS:p,baseColorScheme:h,backgroundModeColorScheme:g,containerModeColorScheme:m}}},2490:(e,t,n)=>{"use strict";n.d(t,{V:()=>l});var o=n(3284);const a=JSON.parse('{"Block":{"block-margin-bottom":{"desktop":24,"mobile":16}},"Columns":{"column-margin":{"desktop":12,"mobile":8},"columns-column-gap":{"desktop":0},"columns-row-gap":{"desktop":0}},"Containers":{"container-padding":{"desktop":{"top":32,"right":32,"bottom":32,"left":32},"mobile":{"top":24,"right":24,"bottom":24,"left":24}},"container-padding-large":{"desktop":{"top":64,"right":80,"bottom":64,"left":80},"mobile":{"top":32,"right":24,"bottom":32,"left":24}},"container-padding-small":{"desktop":{"top":16,"right":32,"bottom":16,"left":32},"mobile":{"top":8,"right":24,"bottom":8,"left":24}},"container-border-style":{"desktop":""},"container-border-width":{"desktop":1},"container-border-radius":{"desktop":0},"container-box-shadow":{"desktop":"0px 4px 24px rgba(0, 0, 0, 0.04)"},"container-background-color":{"desktop":"#fff"},"default-container-background-color":{"desktop":"#fff"},"container-color":{"desktop":"#1e1e1e"}},"Block Backgrounds":{"block-background-padding":{"desktop":{"top":24,"right":24,"bottom":24,"left":24},"mobile":{"top":16,"right":16,"bottom":16,"left":16}},"block-background-border-style":{"desktop":""},"block-background-border-width":{"desktop":1},"block-background-border-radius":{"desktop":0},"block-background-box-shadow":{"desktop":""},"block-background-color":{"desktop":"#f1f1f1"}},"Images":{"image-border-radius":{"desktop":0},"image-drop-shadow":{"desktop":""}},"Buttons":{"button-min-height":{"desktop":0},"button-padding":{"desktop":{"top":12,"right":16,"bottom":12,"left":16}},"button-border-style":{"desktop":""},"button-border-width":{"desktop":1},"button-ghost-border-width":{"desktop":2},"button-border-radius":{"desktop":0},"button-box-shadow":{"desktop":""},"button-icon-size":{"desktop":24},"button-icon-gap":{"desktop":8},"button-column-gap":{"desktop":12},"button-row-gap":{"desktop":12},"button-background-color":{"desktop":"#008de4"},"button-text-color":{"desktop":"#fff"},"default-button-background-color":{"desktop":"#008de4"},"default-button-text-color":{"desktop":"#fff"},"icon-button-padding":{"desktop":{"top":12,"right":12,"bottom":12,"left":12}}},"Icon Lists":{"icon-list-row-gap":{"desktop":0},"icon-list-icon-gap":{"desktop":8},"icon-list-indentation":{"desktop":0}},"Icons":{"icon-size":{"desktop":36},"icon-color":{"desktop":"#a6a6a6"},"icon-shape-color":{"desktop":"#ddd"}},"Typography":{"subtitle-size":{"desktop":16},"subtitle-color":{"desktop":"#39414d"}},"Tabs":{"tab-accent-color":{"desktop":"#008de4"}}}'),l=()=>{const{blockLayouts:e}=(0,o.useSelect)((e=>({blockLayouts:{...e("stackable/global-spacing-and-borders").getBlockLayouts(),...e("stackable/global-buttons-and-icons").getBlockLayouts()}})),[]),t={...a},n=Object.values(t).reduce(((e,t)=>(Object.entries(t).forEach((t=>{let[n,o]=t;"object"==typeof o&&"hoverStates"in o&&delete o.hoverStates,e[n]=o})),e)),{}),l=(e,t,n)=>{var o;let a=null===(o=e[t])||void 0===o?void 0:o[n];var l,r;return a||"mobile"!==n||(a=null===(l=e[t])||void 0===l?void 0:l.tablet),a||"mobile"!==n&&"tablet"!==n||(a=null===(r=e[t])||void 0===r?void 0:r.desktop),a};return{blockLayouts:e,defaults:n,getPlaceholder:function(t){let{device:o="desktop",single:a=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=`${o}`,i=l(n,t,r);let s=l(e,t,r)||i;return"object"==typeof s&&a?s=s.top||s.right||s.bottom||s.left:"object"==typeof s&&(s={top:s.top||i.top,right:s.right||i.right,bottom:s.bottom||i.bottom,left:s.left||i.left}),s}}}},6556:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AccordionIcon:()=>ie,BlockquoteIcon:()=>se,BlogPostsIcon:()=>ce,ButtonGroupIcon:()=>ue,ButtonIcon:()=>de,CTAIcon:()=>ke,CardIcon:()=>he,CarouselIcon:()=>pe,ColumnIcon:()=>me,ColumnsIcon:()=>ge,ContainerIcon:()=>ve,CountUpIcon:()=>fe,CountdownIcon:()=>be,DividerIcon:()=>ye,ExpandIcon:()=>_e,FeatureGridIcon:()=>Ce,FeatureIcon:()=>we,GhostButtonIcon:()=>at,GroupContainerIcon:()=>Te,HeadingIcon:()=>Ee,HeroIcon:()=>Se,HorizontalScrollerIcon:()=>xe,IconBoxIcon:()=>Ne,IconButtonIcon:()=>Me,IconButtonsIcon:()=>Ae,IconIcon:()=>Be,IconLabelIcon:()=>Pe,IconListIcon:()=>Ie,IconListItemIcon:()=>Re,ImageBoxIcon:()=>He,ImageIcon:()=>Oe,LoadMoreIcon:()=>ze,MapIcon:()=>Le,NotificationIcon:()=>De,NumberBoxIcon:()=>Fe,PaginationIcon:()=>$e,PricingBoxIcon:()=>Ue,ProgressBarIcon:()=>Ve,ProgressCircleIcon:()=>We,SVGStackableCategoryIcon:()=>ae,SVGStackableIcon:()=>le,SeparatorIcon:()=>Ge,SocialButtonsIcon:()=>je,SpacerIcon:()=>Ze,StackableIcon:()=>re,TableOfContentsIcon:()=>qe,TabsContentIcon:()=>Ke,TabsIcon:()=>Ye,TabsLabelIcon:()=>Xe,TeamMemberIcon:()=>Je,TestimonialIcon:()=>Qe,TextIcon:()=>et,TimelineIcon:()=>tt,UngroupContainerIcon:()=>ot,VideoPopupIcon:()=>nt,colorizeIcon:()=>oe});var o=n(2610),a=n(7462);n(7294);const l=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M177.8 21.9c-.5-1.8-2.3-3.1-4.2-2.9H70.5L30.1 61.4c-2.8 2.8-.9 6.6 3 6.6H120l56.3-41.9c1.3-1 1.9-2.7 1.5-4.2zM168.5 116.2l-39.6-39.1.1-.1H32.2c-1.9 0-3.4 1.5-3.4 3.4 0 .9.4 1.8 1 2.4l39.5 39.1-.1.1h97.1c1.9-.1 3.3-1.6 3.3-3.5-.1-.9-.4-1.7-1.1-2.3zM168.5 132c-.7-.7-1.6-1-2.6-1H78.4l-56.3 42c-1.8 1.3-2.2 3.8-.9 5.5.8 1.1 2.1 1.7 3.5 1.6h103.1l40.7-42.8c1.5-1.5 1.4-3.8 0-5.3z"}))},r=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M17 9.4H3c-.4 0-.8-.3-.8-.8s.4-.7.8-.7h14c.4 0 .8.3.8.8s-.4.7-.8.7zm.8 1.9c0-.4-.3-.8-.8-.8H3c-.4 0-.8.3-.8.8s.3.8.8.8h14c.4 0 .8-.4.8-.8zm.4-9.8H1.8c-.2 0-.3.1-.3.3v2.3c0 .2.1.3.3.3h16.3c.2 0 .3-.1.3-.3V1.8c.1-.2 0-.3-.2-.3m0-1.5c1 0 1.8.8 1.8 1.8v2.3c0 1-.8 1.8-1.8 1.8H1.8C.8 6 0 5.2 0 4.2V1.8C0 .8.8 0 1.8 0h16.4zm-5 3c0-.3-.3-.6-.6-.6H3c-.3 0-.6.3-.6.6s.3.6.6.6h9.6c.3 0 .6-.3.6-.6zm4.4 0c0-.3-.3-.6-.6-.6h-1c-.3 0-.6.3-.6.6s.3.6.6.6h1c.4 0 .6-.3.6-.6zm.6 12.5H1.8c-.2 0-.3.1-.3.3v2.3c0 .2.1.3.3.3h16.3c.2 0 .3-.1.3-.3v-2.3c.1-.2 0-.3-.2-.3m0-1.5c1 0 1.8.8 1.8 1.8v2.3c0 1-.8 1.8-1.8 1.8H1.8c-1 0-1.8-.8-1.8-1.8v-2.3c0-1 .8-1.8 1.8-1.8h16.4zm-5 3c0-.3-.3-.6-.6-.6H3c-.3 0-.6.3-.6.6s.3.6.6.6h9.6c.3 0 .6-.3.6-.6zm4.4 0c0-.3-.3-.6-.6-.6h-1c-.3 0-.6.3-.6.6s.3.6.6.6h1c.4 0 .6-.3.6-.6z"}))},i=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M0 2.7C0 1.6.3 0 2.4 0c.3 0 .6.3.6.6s-.3.6-.6.6c-.6-.1-1.1.3-1.1.8H2c.6 0 1 .5 1 1v.9c0 .6-.5 1-1 1H1c-.6 0-1-.4-1-1V2.7zm4.4 0c0-1.1.3-2.7 2.4-2.7.3 0 .6.3.6.6s-.3.6-.6.6c-.7-.1-1.2.3-1.2.8h.7c.6 0 1 .5 1 1v.9c0 .6-.5 1-1 1h-1c-.6 0-1-.4-1-1V2.7zm11.2 14.6c0 1.1-.3 2.7-2.4 2.7-.3 0-.6-.3-.6-.6s.3-.6.6-.6c.6 0 1.1-.4 1.1-.9h-.7c-.6 0-1-.5-1-1v-1c0-.6.5-1 1-1h1c.6 0 1 .4 1 1v1.4zm4.4 0c0 1.1-.3 2.7-2.4 2.7-.3 0-.6-.3-.6-.6s.3-.6.6-.6c.6 0 1.1-.4 1.1-.9H18c-.6 0-1-.5-1-1v-1c0-.6.5-1 1-1h1c.6 0 1 .4 1 1v1.4zm0-10c0-.4-.3-.8-.8-.8H.8c-.4.1-.8.4-.8.8s.3.8.8.8h18.5c.4 0 .7-.3.7-.8zm0 2.7c0-.4-.3-.8-.8-.8H.8c-.4 0-.8.4-.8.8s.3.8.8.8h18.5c.4-.1.7-.4.7-.8zm0 2.6c0-.4-.3-.8-.8-.8H.8c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h18.5c.4 0 .7-.4.7-.8z"}))},s=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M4.4 1.5v2.9H1.5V1.5h2.9M5 0H.9C.4 0 0 .4 0 .9V5c0 .5.4.9.9.9H5c.5 0 .9-.4.9-.9V.9C5.9.4 5.5 0 5 0zm3.3 4.8h11c.4 0 .7-.4.7-.8s-.3-.8-.8-.8h-11c-.3.1-.7.4-.7.8s.4.8.8.8m0-2.2h7.5c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8H8.3c-.4 0-.8.3-.8.8 0 .4.4.8.8.8m-3.9 6v2.9H1.5V8.6h2.9M5 7.1H.9c-.5 0-.9.4-.9.9v4c0 .5.4.9.9.9H5c.5 0 .9-.4.9-.9V8c0-.5-.4-.9-.9-.9zm3.3 4.8h11c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8h-11c-.4 0-.8.3-.8.8 0 .4.4.8.8.8m0-2.3h7.5c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8H8.3c-.4 0-.8.3-.8.8s.4.8.8.8m-3.9 6v2.9H1.5v-2.9h2.9m.6-1.5H.9c-.5 0-.9.4-.9.9v4.1c0 .5.4.9.9.9H5c.5 0 .9-.4.9-.9V15c0-.5-.4-.9-.9-.9zm3.3 4.8h11c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8h-11c-.4 0-.8.3-.8.8s.4.8.8.8m0-2.2h7.5c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H8.3c-.4 0-.8.3-.8.8s.4.8.8.8"}))},c=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M13.5 0h-11c-.6 0-1 .5-1 1v5c0 .6.5 1 1 1h11c.6 0 1-.5 1-1V1c0-.5-.5-1-1-1zm0 5.5c0 .3-.2.5-.5.5H3c-.3 0-.5-.2-.5-.5v-4c0-.2.2-.5.5-.5h10c.3 0 .5.2.5.5v4zM13.5 9h-11c-.6 0-1 .5-1 1v5c0 .6.5 1 1 1h11c.6 0 1-.5 1-1v-5c0-.5-.5-1-1-1zm0 5.5c0 .3-.2.5-.5.5H3c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4z"}),(0,o.createElement)("path",{d:"M5.5 3h5v1h-5zM5.5 12h5v1h-5z"}))},d=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M13.5 0h-11c-.6 0-1 .5-1 1v5c0 .6.5 1 1 1H6v3c-.1-.2-.2-.3-.3-.4-.2-.4-.5-.7-1-.8-.3-.2-.7-.1-1.1.1-.8.4-1.1 1.4-.7 2.1l1 1.8c.1.1.1.2.1.2.7 1.2 1.7 3 4.8 3 3 0 4.4-2.7 4.4-5.2V8.6c0-.3-.1-.5-.1-.7l-.6-.5s-.7-.1-.7-.2l-.6.2-.3-.4h2.6c.6 0 1-.5 1-1V1c0-.5-.5-1-1-1zm-2.1 9.7V8.5c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v2.1c0 1.5-1 4.1-3.5 4.1-2.4 0-3.2-1.3-3.8-2.4-.1-.1-.1-.1-.1-.2l-1-1.8c-.1-.1-.1-.2 0-.4s.1-.3.2-.3c.1-.1.2-.1.4 0 .1.1.2.1.3.2.1.1.2.5.4.7.3.4.7.6 1.2.4.4-.1.7-.6.7-1.1v-5c0-.3.2-.5.5-.5s.5.2.5.5v4.2c0 .3.2.6.6.6s.6-.2.6-.6V7.7c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v1.7c0 .3.2.6.6.6s.6-.2.6-.6zm2.1-4.2c0 .3-.2.5-.5.5H9.2v-.8c0-.5-.2-.9-.4-1.2h1.7V3h-5v1h.9c-.3.3-.4.7-.4 1.1V6H3c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v4z"}))},u=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M8.5 9.8c-.3 0-.6.3-.6.6s.3.6.6.6.6-.3.6-.6-.2-.6-.6-.6zM10.5 9.8c-.3 0-.6.3-.6.6s.3.6.6.6.6-.3.6-.6-.3-.6-.6-.6zM1.8 9.7c-.1 0-.2 0-.3-.1L.2 8.3c-.1-.1-.1-.4 0-.5l1.3-1.3c.1-.1.4-.1.5 0s.1.4 0 .5L1 8l1.1 1.1c.1.1.1.4 0 .5s-.2.1-.3.1z"}),(0,o.createElement)("path",{d:"M11.9 3.4v9.2H4.1V3.4zm.6-1.2h-9c-.3 0-.5.2-.5.5v10.5c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V2.7c.1-.3-.2-.5-.5-.5z"}),(0,o.createElement)("path",{d:"M10.5 6.2h-5c-.3 0-.6-.3-.6-.6s.3-.6.6-.6h4.9c.3 0 .6.3.6.6s-.2.6-.5.6zM10.5 8.2h-5c-.3 0-.6-.3-.6-.6s.3-.6.6-.6h4.9c.3 0 .6.3.6.6s-.2.6-.5.6zM6.6 9.8H5.5c-.3 0-.6.3-.6.6s.3.6.6.6h1.1c.3 0 .6-.3.6-.6s-.3-.6-.6-.6zM13.9 10.1c-.1 0-.3 0-.4-.1-.2-.2-.2-.5 0-.7L14.8 8l-1.2-1.2c-.2-.2-.2-.5 0-.7s.5-.2.7 0l1.6 1.6c.2.2.2.5 0 .7L14.2 10c-.1.1-.2.1-.3.1zM2.2 10.1c-.1 0-.3 0-.4-.1L.2 8.4c-.2-.2-.2-.6 0-.8L1.8 6c.2-.2.5-.2.7 0s.2.5 0 .7L1.3 8l1.3 1.3c.2.2.2.5 0 .7-.2.1-.3.1-.4.1z"}))},p=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zm.3 18.2c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v16.4zm-1.6-5c0 .4-.3.8-.8.8H3.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h12.3c.3 0 .7.4.7.8zm0 2.6c0 .4-.3.8-.8.8H3.9c-.4 0-.8-.3-.8-.8s.4-.8.8-.8h12.3c.3 0 .7.4.7.8zM5 10h10c.2 0 .4-.1.5-.2s.2-.3.2-.5v-5c0-.2-.1-.4-.2-.5s-.3-.3-.5-.3H5c-.2 0-.4.1-.5.2s-.2.3-.2.5v5c0 .2.1.4.2.5s.3.3.5.3zm.8-5h8.5v3.5H5.8V5z"}))},h=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M18.3 0H1.8C.8 0 0 .8 0 1.8v16.4c0 1 .8 1.8 1.8 1.8h16.4c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM6.1 18.6H1.8c-.2 0-.3-.1-.3-.3V1.8c0-.2.1-.3.3-.3h4.3v17.1zm6.1 0H7.7V1.5h4.5v17.1zm6.1 0h-4.5V1.5h4.4c.2 0 .3.1.3.3l.1 16.5c0 .2-.1.3-.3.3z"}))},g=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M18.3 0H1.8C.8 0 0 .8 0 1.8v16.4c0 1 .8 1.8 1.8 1.8h16.4c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM6.1 18.6H1.8c-.2 0-.3-.1-.3-.3V1.8c0-.2.1-.3.3-.3h4.3v17.1zm12.2 0h-4.5V1.5h4.4c.2 0 .3.1.3.3l.1 16.5c0 .2-.1.3-.3.3z"}))},m=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.5c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM4.5 10.6h1.8l-1.8 1.8v-1.8zm3.1-1.2H4.5V7.7h4.8L7.6 9.4zm2.9-2.9h-6V5H12l-1.5 1.5zM3.3 15H1.5V5h1.7v10zm1.2-.8L13.7 5h1.8v.8L6.3 15H4.5v-.8zm11-4.8h-1.8l1.8-1.8v1.8zm-3.1 1.2h3.1v1.7h-4.8l1.7-1.7zm-2.9 2.9h6V15H8l1.5-1.5zM16.8 5h1.7v10h-1.7V5zM1.5 1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8zm17 16.4c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3v-1.3c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v1.3zm-14.9-.7c0 .3-.2.5-.5.5s-.5-.2-.5-.5.3-.5.5-.5.5.2.5.5zm13.8 0c0 .3-.2.5-.5.5s-.5-.2-.5-.5.2-.5.5-.5.5.2.5.5zM2.6 2.5c0-.3.3-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm13.8 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5z"}))},v=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M10.5 0c-.3 0-.5.2-.5.5v1.3c0 .2.2.4.4.5 4.3.2 7.6 3.9 7.3 8.4-.3 3.8-3.4 6.9-7.1 7.1-4.4.3-8.1-3-8.4-7.3 0-.3-.2-.5-.4-.5H.5c-.3 0-.5.2-.5.5.3 5.4 4.9 9.8 10.5 9.5 5.1-.2 9.3-4.4 9.5-9.5C20.2 4.9 15.9.3 10.5 0zM3.7 4.7c.2.2.5.2.7 0l.4-.4c.2-.2.2-.5 0-.7l-1-.8c-.2-.2-.5-.2-.7 0l-.3.3c-.2.2-.2.5 0 .7l.9.9z"}),(0,o.createElement)("path",{d:"M6.2 2.6c.1.3.4.4.7.3l.5-.2c.3-.1.4-.4.3-.6L7.1.9C7 .7 6.7.5 6.5.6L6 .8c-.2.1-.3.4-.2.7l.4 1.1zM.9 7l1.2.5c.2.1.5 0 .6-.3l.2-.5c.1-.2 0-.5-.3-.6l-1.1-.4c-.2-.1-.5 0-.6.2l-.2.5c-.1.2 0 .5.2.6zM4.8 9.3c-.3 0-.5.2-.5.5v.4c0 .3.2.5.5.5H8c.3.8 1.1 1.4 2 1.4 1.1 0 2.1-.9 2.1-2.1 0-1.1-.9-2.1-2.1-2.1-.9 0-1.7.6-2 1.4H4.8zm5.2-.1c.4 0 .7.3.7.7 0 .4-.3.7-.7.7s-.8-.2-.8-.6c0-.4.4-.8.8-.8z"}))},b=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.5 2.9h-17C.7 2.9 0 3.6 0 4.4v11.1c0 .9.7 1.5 1.5 1.5h16.9c.9 0 1.5-.7 1.5-1.5V4.4c.1-.8-.6-1.5-1.4-1.5zm0 12.7h-7.1c.2-.3.3-.7.4-1.2 0-.3-.1-.6-.2-.9-.3-.5-.8-.9-1.4-1.1.3-.3.7-.8 1-1.2.2-.2.3-.4.4-.6.2-.5.1-.8-.3-1.1-.1-.1-.2-.1-.4-.1h-3c-.1 0-.3.1-.4.1-.2.3-.3.5-.3.7 0 .3.3.6.6.6h2c-.5.6-1.2 1.3-1.4 1.5-.3.3-.4.7-.1 1l.2.2c.1.1.3.1.4.1 1 .1 1.4.3 1.5 1-.1.8-.7.9-1.2 1-.8 0-1-.5-1.1-.8-.1-.3-.4-.5-.7-.5-.3.1-.5.4-.5.7 0 .1.1.4.3.7H1.5V4.4h8.6c-.3.4-.7.8-1 1.1H9c-.6.6-1.2 1.2-1.7 1.6-.2.1-.3.3-.4.4V8c.1.2.2.4.4.5.2.1.4.2.6.2h3.2c.3 0 .6-.3.6-.6s-.3-.6-.6-.6H8.9c.4-.3.7-.7 1.1-1 .5-.5 1.1-1.1 1.4-1.6.1-.1.1-.3.2-.4H16c.1.1.1.3.2.5-.1.8-.7.9-1.2 1-.8 0-1-.5-1.1-.8-.1-.3-.4-.5-.7-.5-.3.1-.5.4-.5.7.1.2.5 1.7 2.3 1.7 1.5 0 2.4-.9 2.5-2.2v-.5h1.1v11.2zM5.9 13c0 .3-.3.6-.6.6H3.6c-.4 0-.6-.3-.6-.6s.3-.6.6-.6h.2V8.2l-.3.1c-.1.1-.3.1-.5.1s-.3-.1-.4-.3v-.5c0-.2.1-.3.3-.4l1.2-.7c.3-.1.7 0 .9.3v5.6h.2c.4-.1.7.2.7.6zm11.2-1h-.3V8.4c0-.3-.3-.6-.6-.6-.2 0-.4.1-.5.3l-3.3 4.2c-.1.1-.2.3-.1.5 0 .2.1.3.2.4.1.1.2.1.4.1h2.7v1.1c0 .3.3.6.6.6s.6-.3.6-.6v-1.1h.3c.3 0 .6-.3.6-.6.1-.4-.2-.7-.6-.7zm-1.5 0h-1.4l1.4-1.8V12z"}))},f=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M16.1 8.5c0-1.4-1-2.5-2.2-2.9V1.5c0-.3-.1-.5-.3-.6-.2-.1-.5-.2-.7-.1L4.5 4.6H.8c-.5 0-.8.3-.8.8v6.3c0 .4.3.8.8.8h1.1v5.7c0 .4.3.8.8.8h2.1c.4 0 .8-.3.8-.8V13l7.4 3.4c.1 0 .2.1.3.1.1 0 .3 0 .4-.1.2-.1.3-.4.3-.6v-4.2c1.2-.5 2.1-1.7 2.1-3.1zM1.5 6.1h2.4v4.8H1.5V6.1zm1.8 11.3v-4.9h.6v4.9h-.6zm9.1-3l-6.9-3.2V5.8l6.9-3.2v11.8zm1.5-4.3V7c.6.3 1 .9 1 1.5 0 .7-.4 1.3-1 1.6zM20 8.5c0 .3-.3.6-.6.6h-1.5c-.3 0-.6-.3-.6-.6s.3-.6.6-.6h1.5c.3 0 .6.3.6.6zm-2.2 4.4c.2.2.2.6 0 .9-.1.1-.3.2-.4.2-.2 0-.3-.1-.4-.2l-1.1-1.1c-.2-.2-.2-.6 0-.9.2-.2.6-.2.9 0l1 1.1zm-2-7.7c-.2-.2-.2-.6 0-.9l1.1-1.1c.2-.2.6-.2.9 0 .2.2.2.6 0 .9l-1.1 1.1c-.1.1-.3.2-.4.2-.2 0-.4 0-.5-.2z"}))},k=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M.8 10.8c-.5 0-.8-.4-.8-.8s.3-.8.8-.8h18.5c.4 0 .8.3.8.8s-.3.8-.8.8H.8"}))},y=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M2.5 9c.6 0 1 .5 1 1 0 .6-.5 1-1 1s-1-.5-1-1c0-.6.5-1 1-1m0-1.5C1.1 7.5 0 8.6 0 10s1.1 2.5 2.5 2.5S5 11.4 5 10c.1-1.4-1.1-2.5-2.5-2.5zM10 9c.6 0 1 .5 1 1 0 .6-.5 1-1 1-.6 0-1-.5-1-1 0-.6.4-1 1-1m0-1.5c-1.4 0-2.5 1.1-2.5 2.5s1.1 2.5 2.5 2.5 2.5-1.1 2.5-2.5-1.1-2.5-2.5-2.5zM17.5 9c.6 0 1 .5 1 1 0 .6-.5 1-1 1-.6 0-1-.5-1-1-.1-.6.4-1 1-1m0-1.5C16.1 7.5 15 8.6 15 10s1.1 2.5 2.5 2.5S20 11.4 20 10s-1.1-2.5-2.5-2.5z"}))},_=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.6 0H12c-.8 0-1.4.6-1.4 1.4v8.3c0 .8.6 1.4 1.4 1.4h6.6c.8 0 1.4-.6 1.4-1.4V1.4c0-.8-.6-1.4-1.4-1.4zm-.1 1.5V7c-.9-.7-2-1-3.2-1-1.2 0-2.4.4-3.2 1V1.5h6.4zm0 8.2h-6.4c0-.2.1-.5.2-.7.5-.9 1.7-1.5 3-1.5s2.4.6 2.9 1.4c.2.2.3.5.3.8zm-5.3-6.1c0-.5.4-1 1-1 .5 0 1 .4 1 1 0 .5-.4 1-1 1-.6-.1-1-.5-1-1zm5.8 13c0 .4-.3.8-.8.8h-6c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h6c.5.1.8.4.8.8zm0 2.6c0 .4-.3.8-.8.8h-6c-.4 0-.8-.3-.8-.8 0-.4.3-.8.8-.8h6c.5.1.8.4.8.8zm0-5.2c0 .4-.3.8-.8.8h-6c-.4 0-.8-.3-.8-.8 0-.4.3-.8.8-.8h6c.5.1.8.4.8.8zM8 0H1.4C.6 0 0 .6 0 1.4v8.3c0 .8.6 1.4 1.4 1.4H8c.8 0 1.4-.6 1.4-1.4V1.4C9.4.6 8.8 0 8 0zm-.1 1.5V7c-.9-.7-2-1-3.2-1-1.2 0-2.4.4-3.2 1V1.5h6.4zm0 8.2H1.5c0-.2.1-.5.2-.7.5-.9 1.7-1.5 3-1.5 1.3-.1 2.5.5 3 1.4.1.2.2.5.2.8zM2.6 3.6c0-.5.4-1 1-1 .5 0 1 .4 1 1 0 .5-.4 1-1 1-.6-.1-1-.5-1-1zm5.8 13c0 .4-.3.8-.8.8h-6c-.3 0-.6-.4-.6-.8s.3-.8.8-.8h6c.3.1.6.4.6.8zm0 2.6c0 .4-.3.8-.8.8h-6c-.3 0-.6-.3-.6-.8 0-.4.3-.8.8-.8h6c.3.1.6.4.6.8zm0-5.2c0 .4-.3.8-.8.8h-6c-.3 0-.6-.4-.6-.8s.3-.8.8-.8h6c.3.1.6.4.6.8z"}))},C=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.8 1.5h6.1v9.6c-.8-.8-2-1.3-3.2-1.3-1.2 0-2.4.5-3.2 1.3V1.8c0-.2.1-.3.3-.3zm-.3 16.7v-3.6c0-.9.4-1.7.9-2.3.6-.6 1.4-.9 2.3-.9.9 0 1.7.4 2.3.9.6.6.9 1.4.9 2.3v4H1.8c-.2-.1-.3-.2-.3-.4zm17 0c0 .2-.1.3-.3.3H9.4v-17h8.7c.2 0 .3.1.3.3v16.4zM2.6 6.8c0-.6.5-1 1-1s1 .5 1 1-.5 1-1 1-1-.5-1-1zM17 8.7c0 .4-.3.8-.8.8h-4.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h4.9c.5 0 .8.4.8.8zm0 2.6c0 .4-.3.8-.8.8h-4.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h4.9c.5 0 .8.4.8.8zm0-5.2c0 .4-.3.8-.8.8h-4.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h4.9c.5 0 .8.4.8.8zm0 7.7c0 .4-.3.8-.8.8h-4.9c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h4.9c.5.1.8.4.8.8z"}))},w=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.8 1.5h16.3c.1 0 .2.1.2.1s.1.1.1.2v1.7h-17V1.8c.1-.2.2-.3.4-.3zm16.4 17H1.8c-.2 0-.3-.1-.3-.3V4.5h17v13.6c0 .3-.1.4-.3.4zM16.3 5.8H3.7c-.2 0-.4 0-.5.2-.1.1-.2.3-.2.5v5c0 .2.1.4.2.5.1.1.3.2.5.2h12.5c.2 0 .4-.1.5-.2.1-.1.2-.3.2-.5v-5c0-.2-.1-.4-.2-.5 0-.2-.2-.2-.4-.2zM4.5 10.7V7.3h11v3.5h-11zM14 9c0 .4-.3.7-.7.7H6.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7h6.5c.5-.1.8.3.8.7zM2.7 2.5c0-.3.3-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm1.7 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5zm1.7 0c0-.3.2-.5.5-.5s.5.2.5.5-.2.5-.5.5-.5-.2-.5-.5z"}))},S=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M15.3 1.1c-.7 0-1.4.5-1.4 1.4v6.3H6.1V2.5c0-.7-.5-1.4-1.4-1.4-.7 0-1.4.5-1.4 1.4v14.9c0 .9.7 1.4 1.4 1.4s1.4-.5 1.4-1.4v-6.3h7.7v6.3c0 .9.7 1.4 1.4 1.4s1.4-.5 1.4-1.4V2.5c.1-.7-.4-1.4-1.3-1.4z"}))},E=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M17.1 5.7l-2-1.2c-.1-.1-.3 0-.3.2v2.4c0 .2.2.3.3.2l2-1.2c.1-.1.1-.3 0-.4zM4.9 4.5l-2 1.2c-.2.1-.2.3-.1.4l2 1.2c.1.1.3 0 .3-.2V4.7c.1-.2-.1-.3-.2-.2z"}),(0,o.createElement)("path",{d:"M18.1 0H1.9C1.1 0 .6.6.6 1.3v9.3c0 .8.6 1.4 1.3 1.4h6.4v2c-.1-.1-.1-.3-.2-.4-.2-.4-.5-.7-1-.8-.4-.1-.8-.1-1.2.1-.8.4-1.1 1.4-.7 2.1l1 1.8c.1.1.1.1.1.2.7 1.2 1.7 3 4.8 3 3 0 4.4-2.6 4.4-5.1v-2.2c0-.3-.1-.5-.1-.7h2.8c.7 0 1.3-.6 1.3-1.3V1.3C19.4.6 18.9 0 18.1 0zm-3.5 14.9c0 1.5-1 4-3.5 4-2.4 0-3.1-1.2-3.8-2.4-.1-.1-.1-.1-.1-.2l-1-1.8c-.1-.1-.1-.2 0-.4.1-.1.1-.2.2-.3.1-.1.2-.1.4 0 .1.2.2.3.3.3.1.1.2.5.4.7.3.4.7.6 1.2.4.4-.1.7-.6.7-1.1v-5c0-.3.2-.5.5-.5s.5.2.5.5v4.2c0 .3.2.6.6.6.4 0 .6-.2.6-.6v-1.5c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v1.7c0 .3.2.6.6.6.4 0 .6-.2.6-.6v-1.2c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v2zm3.7-4.2c0 .1-.1.2-.2.2h-5c-.3-.3-.7-.4-1.1-.4-.1 0-.3 0-.4.1V9.2c0-.9-.7-1.6-1.6-1.6-1-.1-1.7.7-1.7 1.6V11H1.9c-.1 0-.2-.1-.2-.2V1.3c0-.1.1-.2.2-.2H18c.1 0 .2.1.2.2v9.4z"}))},x=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M19.6 8.9c.7-.7.4-1.9-.6-2.1l-4.9-.7c-.3-.1-.6-.3-.8-.6l-2.2-4.4C10.7.2 9.4.2 9 1.1L6.7 5.5c-.1.4-.4.6-.8.6L1 6.8C0 7-.3 8.2.4 8.9l3.5 3.5c.3.2.4.6.3.9l-.8 4.9c-.2 1 .9 1.7 1.7 1.3l4.4-2.3c.3-.2.7-.2 1 0l4.4 2.3c.9.5 1.9-.3 1.7-1.3l-.8-4.9c-.1-.3.1-.7.3-.9zm-5.4 3.8l.8 4.7c0 .2-.2.4-.4.3l-4.2-2.2c-.3-.1-.6-.1-.9 0l-4.2 2.2c-.1.1-.3-.1-.3-.3l.8-4.6c.1-.3 0-.6-.3-.8L2.1 8.7c-.1-.2 0-.5.2-.5L7 7.5c.3 0 .6-.2.7-.5l2.1-4.2c.1-.2.4-.2.5 0l2 4.2c.1.3.4.5.7.5l4.6.7c.2 0 .3.3.2.5L14.4 12c-.2.2-.2.4-.2.7z"}))},T=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M13.1 7.9l-.6-.5s-.7-.1-.7-.2l-.6.2-.4-.6c-.3-.3-.7-.4-1.1-.4h-.3c1-.6 1.7-1.7 1.7-3C11.1 1.5 9.5 0 7.6 0S4.1 1.5 4.1 3.5c0 1.3.7 2.5 1.9 3V10c-.1-.2-.2-.3-.3-.4-.2-.4-.5-.7-1-.8-.3-.2-.7-.1-1.1.1-.8.4-1.1 1.4-.7 2.1l1 1.8c.1.1.1.2.1.2.7 1.2 1.7 3 4.8 3 3 0 4.4-2.7 4.4-5.2V8.6c.1-.3 0-.5-.1-.7zm-8-4.4C5.1 2.1 6.2 1 7.6 1s2.5 1.1 2.5 2.5c0 .7-.3 1.4-.9 1.9v-.2c0-.7-.5-1.4-1.2-1.6-1-.4-2 .4-2 1.5v.3c-.6-.5-.9-1.2-.9-1.9zm7.3 7.4c0 1.5-1 4.1-3.5 4.1-2.4 0-3.2-1.3-3.8-2.4-.1-.1-.1-.1-.1-.2l-1-1.8c-.1-.1-.1-.2 0-.4 0-.2 0-.3.1-.3.1-.1.2-.1.4 0 .1.1.2.1.3.2.1.1.2.5.4.7.3.4.7.6 1.2.4.4-.1.7-.6.7-1.1v-5c0-.3.2-.5.5-.5s.5.2.5.5v4.2c0 .3.2.6.6.6s.6-.2.6-.6V7.7c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v1.7c0 .3.2.6.6.6s.6-.2.6-.6V8.5c.1-.1.2-.2.4-.2.3 0 .5.2.5.5v2.1z"}))},B=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M8 1.1C4.2 1.1 1.1 4.2 1.1 8s3.1 6.9 6.9 6.9 6.9-3.1 6.9-6.9S11.8 1.1 8 1.1zm0 12.8c-3.3 0-5.9-2.5-5.9-5.9S4.7 2.1 8 2.1s5.9 2.5 5.9 5.9-2.6 5.9-5.9 5.9z"}),(0,o.createElement)("path",{d:"M11 7.5c.2-.2.1-.6-.2-.7l-1.5-.2c-.1 0-.2-.1-.3-.1l-.7-1.4c-.1-.3-.5-.3-.7 0L7 6.5c0 .1-.1.2-.2.2l-1.6.2c-.3 0-.4.4-.2.6l1.1 1.1c.1.1.1.2.1.3L6 10.4c-.1.3.3.5.5.4l1.4-.7c.1-.1.2-.1.3 0l1.4.7c.3.2.6-.1.5-.4l-.3-1.5c0-.1 0-.2.1-.3L11 7.5z"}))},M=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M7.1 6.6c.3-.3.1-.7-.2-.8l-1.8-.2c-.1-.1-.2-.1-.3-.2L4 3.8c-.1-.3-.6-.3-.8 0l-.8 1.6c0 .1-.1.2-.3.2l-1.7.2c-.4.1-.5.5-.3.8l1.3 1.3c.1.1.1.2.1.3L1.2 10c-.1.4.3.6.6.5l1.6-.8c.1-.1.3-.1.4 0l1.6.8c.3.1.6-.2.6-.6l-.3-1.7c0-.1 0-.3.1-.3l1.3-1.3zM4.6 7.7l.2 1.2c0 .1-.1.1-.1.1l-1-.6h-.2l-1.1.5s-.1 0-.1-.1l.2-1.2c0-.1 0-.2-.1-.2l-.8-.7c0-.1 0-.1.1-.1l1.2-.2.1-.1.5-1.1c0-.1.1-.1.1 0l.5 1.1c0 .1.1.1.2.1l1.2.2c.1 0 .1.1.1.1l-.9.8c-.1.1-.1.1-.1.2zM15.4 6.9H8.8c-.3 0-.6-.2-.6-.6s.2-.6.6-.6h6.6c.3 0 .6.2.6.6 0 .4-.2.6-.6.6zM15.4 9.6H8.8c-.3 0-.6-.2-.6-.6s.2-.6.6-.6h6.6c.3 0 .6.2.6.6 0 .4-.2.6-.6.6zM15.4 12.4H8.8c-.3 0-.6-.2-.6-.6s.2-.6.6-.6h6.6c.3 0 .6.2.6.6 0 .4-.2.6-.6.6z"}))},A=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M19.3 4.3H8.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h10.4c.4 0 .8.3.8.8s-.3.8-.7.8zM2.9 5.7l3.2-3.2c.3-.3.3-.8 0-1.1s-.8-.3-1.1 0L2.4 4.1 1.3 3C1 2.7.5 2.7.2 3c-.3.3-.3.8 0 1.1l1.6 1.6c.2.1.4.2.6.2.2 0 .4-.1.5-.2zM20 9.9c0-.4-.3-.8-.8-.8H8.8c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h10.4c.5 0 .8-.4.8-.8zM2.9 12l3.2-3.2c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0l-2.7 2.7-1-1C1 9.1.5 9.1.2 9.4c-.3.3-.3.8 0 1.1L1.8 12c.1.1.3.2.5.2.3.1.5 0 .6-.2zM20 16.3c0-.4-.3-.8-.8-.8H8.8c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h10.4c.5-.1.8-.4.8-.8zM2.9 18.4l3.2-3.2c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0l-2.7 2.7-1.1-1.1c-.3-.3-.8-.3-1.1 0-.3.3-.3.8 0 1.1l1.6 1.6c.1.1.3.2.5.2.4 0 .6 0 .7-.2z"}))},N=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M20 9.9c0-.4-.3-.8-.8-.8H8.8c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h10.4c.5 0 .8-.4.8-.8zM2.9 12l3.2-3.2c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0l-2.7 2.7-1-1C1 9.1.5 9.1.2 9.4c-.3.3-.3.8 0 1.1L1.8 12c.1.1.3.2.5.2.3.1.5 0 .6-.2z"}))},I=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M7.1 7.6c.3-.3.1-.7-.2-.8l-1.8-.2c-.1-.1-.2-.1-.3-.2L4 4.8c-.1-.3-.6-.3-.8 0l-.8 1.6c0 .1-.1.2-.3.2l-1.7.2c-.4.1-.5.5-.3.8l1.3 1.3c.1.1.1.2.1.3L1.2 11c-.1.4.3.6.6.5l1.6-.8c.1-.1.3-.1.4 0l1.6.8c.3.1.6-.2.6-.6l-.3-1.7c0-.1 0-.3.1-.3l1.3-1.3zM4.6 8.7l.2 1.2c0 .1-.1.1-.1.1l-1-.6h-.2l-1.1.5s-.1 0-.1-.1l.2-1.2c0-.1 0-.2-.1-.2l-.8-.7c0-.1 0-.1.1-.1l1.2-.2.1-.1.5-1.1c0-.1.1-.1.1 0l.5 1.1c0 .1.1.1.2.1l1.2.2c.1 0 .1.1.1.1l-.9.8c-.1.1-.1.1-.1.2zM15.4 8.6H8.8c-.3 0-.6-.2-.6-.6s.2-.6.6-.6h6.6c.3 0 .6.2.6.6 0 .4-.2.6-.6.6z"}))},R=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.8 1.5h16.3c.2 0 .3.1.3.3V11l-3.3-4.4c-.2-.3-.6-.5-.9-.5-.4 0-.7.2-.9.5l-4.7 6.1-1.9-2.6c-.3-.3-.6-.4-1-.4s-.7.2-.9.5l-3.3 4.3V1.8c0-.2.1-.3.3-.3zm16.4 17H1.8c-.2 0-.3-.1-.3-.3v-1.3c.1 0 .1-.1.2-.2l4.1-5.4 2.1 2.8c.2.2.5.4.7.4.3 0 .6-.1.7-.4l4.9-6.4 4.1 5.4c0 .1.1.1.2.2v4.8c0 .3-.2.4-.3.4zM7.2 7.8c1.3 0 2.3-1 2.3-2.3s-1-2.3-2.3-2.3-2.3 1-2.3 2.3 1 2.3 2.3 2.3zm0-3.2c.4 0 .8.4.8.8 0 .5-.4.8-.8.8-.5 0-.8-.4-.8-.8-.1-.4.3-.8.8-.8z"}))},P=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M12.7 12.3c0 .4-.3.8-.8.8H4.1c-.4 0-.8-.3-.8-.8s.3-.8.8-.8H12c.3 0 .7.4.7.8zM9.9 15.7c0 .4-.3.8-.8.8h-5c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h5.1c.3 0 .7.4.7.8z"}),(0,o.createElement)("path",{d:"M18.3 0H1.8C.8 0 0 .8 0 1.8v16.4c0 1 .8 1.8 1.8 1.8h16.4c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zm.3 18.2c0 .3-.2.4-.3.4H1.8c-.2 0-.3-.1-.3-.3V17c.1 0 .1-.1.2-.2l.7-1v-2.5l-.9 1.2V1.8c0-.2.1-.3.3-.3h16.4c.2 0 .3.1.3.3V11l-3.3-4.4c-.2-.3-.6-.5-.9-.5-.4 0-.7.2-.9.5l-2.2 2.9H13l1.3-1.8 4.1 5.4c0 .1.1.1.2.2z"}),(0,o.createElement)("path",{d:"M7.2 7.8c1.3 0 2.3-1 2.3-2.3s-1-2.3-2.3-2.3-2.3 1-2.3 2.3 1 2.3 2.3 2.3zm0-3.2c.4 0 .8.4.8.8 0 .5-.4.8-.8.8-.5 0-.8-.4-.8-.8-.1-.4.3-.8.8-.8z"}))},O=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M13.5 4.5h-11c-.6 0-1 .5-1 1v5c0 .6.5 1 1 1h11c.6 0 1-.5 1-1v-5c0-.5-.5-1-1-1zm0 5.5c0 .3-.2.5-.5.5H3c-.3 0-.5-.2-.5-.5V6c0-.2.2-.5.5-.5h10c.3 0 .5.2.5.5v4z"}),(0,o.createElement)("path",{d:"M4.2 7.5h3.5v1H4.2zM10.8 7.5h1v1h-1zM8.8 7.5h1v1h-1z"}))},H=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M10 3.9c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 4.7c-1 0-1.8-.8-1.8-1.8S9 5 10 5s1.8.8 1.8 1.8S11 8.6 10 8.6z"}),(0,o.createElement)("path",{d:"M10 0C6.1 0 3 3.1 3 7c0 6.8 7 13 7 13s7-6.2 7-13c0-3.9-3.1-7-7-7zm0 18.1S4.7 13.2 4.3 7.5v-.7-.6c.3-2.9 2.8-5.1 5.7-5.1 3.1 0 5.6 2.5 5.7 5.6V7.5c-.4 5.7-5.7 10.6-5.7 10.6z"}))},z=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M10 2.2l8.3 15.7H1.7L10 2.2m0-1.8c-.4 0-.8.2-1.1.6L.1 17.7c-.4.8.2 1.7 1.1 1.7h17.6c.9 0 1.5-.9 1.1-1.7L11.1 1c-.2-.4-.7-.6-1.1-.6zm-.7 7.2v4.6c0 .4.3.7.7.7s.7-.3.7-.7V7.6c0-.4-.3-.7-.7-.7s-.7.3-.7.7m.7 6.8c-.5 0-.9.4-.9.9s.4.9.9.9.9-.4.9-.9-.4-.9-.9-.9z"}))},L=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.2 1.5c.2 0 .3.1.3.3v16.3c0 .2-.1.3-.3.3H1.8c-.2 0-.3-.1-.3-.3V1.8c0-.2.1-.3.3-.3h16.4m0-1.5H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM4.4 6.7l1-.6v8.3h-.7c-.4 0-.7.3-.7.8s.3.7.7.7h2.9c.4 0 .8-.3.8-.7s-.4-.8-.8-.8h-.7V4.8c0-.1 0-.3-.1-.4-.2-.3-.7-.4-1-.2L3.6 5.4c-.4.2-.5.7-.3 1 .3.4.7.5 1.1.3zm5.6.1h5.7c.4 0 .8-.3.8-.8 0-.4-.3-.8-.8-.8H10c-.4.1-.7.4-.7.8s.3.8.7.8m0 2.6h5.7c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H10c-.4 0-.8.3-.8.8s.4.8.8.8m0 2.7h5.7c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H10c-.4 0-.8.3-.8.8s.4.8.8.8m0 2.6h5.7c.4 0 .8-.3.8-.8s-.3-.8-.8-.8H10c-.4 0-.8.3-.8.8s.4.8.8.8"}))},D=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M1.5 7h5v2h-5zM8.5 7h2v2h-2zM12.5 7h2v2h-2z"}))},F=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M19.8.2c-.3-.3-.7-.3-1 0l-1.1 1.1c-.2-.1-.4-.1-.6-.1l-5-.1H12c-.7 0-1.4.3-1.9.8L.7 11.3c-.9.9-.9 2.4 0 3.3l4.8 4.8c.5.4 1.1.6 1.7.6.6 0 1.2-.2 1.7-.7l9.4-9.4c.5-.5.8-1.3.8-2l-.1-5c0-.2 0-.4-.1-.6L20 1.2c.1-.2.1-.7-.2-1zm-4.6 5.9c0 .3-.1.6-.4.9-.2.2-.6.4-.9.4-.3 0-.6-.1-.9-.4-.2-.2-.4-.6-.4-.9 0-.3.1-.6.4-.9.2-.2.6-.4.9-.4h.2l-.5.5c-.3.3-.3.7 0 1 .3.3.7.3 1 0l.5-.5c.1.1.1.2.1.3zM17.6 8c0 .3-.1.7-.4.9l-9.4 9.4c-.2.2-.4.3-.6.3-.2 0-.5-.1-.6-.3l-4.8-4.8c-.2-.2-.3-.4-.3-.6 0-.2.1-.5.3-.6l9.4-9.4c.2-.2.6-.4.9-.4l4.4.1-1.1 1.1c-.4-.2-.9-.3-1.3-.3a2.732 2.732 0 00-2.7 2.7 2.732 2.732 0 002.7 2.7 2.732 2.732 0 002.7-2.7c0-.5-.1-.9-.3-1.3l1.1-1.1V8zm-6.1 1.4l-.5.5c.5.7.6 1.5.6 1.6.1.4-.2.8-.6.8-.4.1-.8-.2-.8-.6 0-.2-.2-.8-.5-1.1-.3-.3-.8-.5-1.1-.2-.2.2 0 .8.2 1.3 0 .1.1.2.1.2.3.6.9 1.8-.3 2.9-.3.3-.7.4-1.2.4-.4 0-.7-.1-1.1-.3-.1-.1-.2-.1-.3-.2l-.5.5c-.1.1-.2.1-.3.1-.1 0-.2 0-.3-.1-.2-.2-.2-.5 0-.7l.5-.5c-.4-.5-.8-1.3-.7-2.2 0-.4.4-.7.8-.7s.7.4.7.8c-.1.9.5 1.5.9 1.7.3.1.5.2.7.1.3-.2.3-.4 0-1.1 0-.1-.1-.2-.1-.3-.3-.6-.9-2 .1-3 .8-.8 1.9-.7 2.7-.1l.5-.5c.2-.2.5-.2.7 0 0 .2 0 .5-.2.7z"}))},$=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M8 1.1c-.4 0-.8.3-.8.8s.4.7.8.7c3 0 5.4 2.4 5.4 5.4S11 13.4 8 13.4c-2.2 0-4.1-1.4-5-3.3-.1-.2-.4-.4-.7-.4-.4 0-.8.3-.8.8 0 .1 0 .3.1.4C2.7 13.3 5.1 15 7.9 15c3.8 0 6.9-3.1 6.9-6.9s-3-7-6.8-7z"}))},U=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M14.3 6.5c.2 0 .3.1.3.3v2.4c0 .2-.1.3-.3.3H5.1c-.2 0-.3-.1-.3-.3V6.8c0-.2.1-.3.3-.3h9.2m0-1.5H1.8C.8 5 0 5.8 0 6.8v2.4c0 1 .8 1.8 1.8 1.8h12.4c1 0 1.8-.8 1.8-1.8V6.8c.1-1-.7-1.8-1.7-1.8z"}))},W=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.5 1.8c0-.2.1-.3.3-.3h16.3c.2 0 .3.1.3.3v7.1c-.8.7-2.2 2.1-4.1 2.1-3.1 0-4.8-3.6-8.1-3.6-1.9 0-3.7 1.3-4.6 2.1V1.8zm17 16.3c0 .3-.2.4-.3.4H1.8c-.2 0-.3-.1-.3-.3V12c.9-.9 2.7-2.7 4.5-2.7 2.7 0 4.3 3.4 8.3 3.4 1.9 0 3.4-1 4.1-1.6v7z"}))},V=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,o.createElement)("path",{d:"M9.4 8.9c-.4 0-.5.1-.9.3l-1.4-.9v-.5L8.5 7c.2.1.5.3.9.3.7 0 1.4-.5 1.4-1.4 0-.9-.7-1.4-1.4-1.4-.7.1-1.4.6-1.4 1.3v.3L6.6 7c-.1-.2-.5-.4-.8-.4-.7 0-1.2.7-1.2 1.4S5.1 9.4 6 9.4c.3 0 .5-.2.9-.3l1.1.8v.3c0 .7.7 1.2 1.4 1.2s1.4-.5 1.4-1.4c0-.5-.7-1.1-1.4-1.1z"}),(0,o.createElement)("path",{d:"M8 1.1C4.2 1.1 1.1 4.2 1.1 8s3.1 6.9 6.9 6.9 6.9-3.1 6.9-6.9S11.8 1.1 8 1.1zm0 12.8c-3.3 0-5.9-2.5-5.9-5.9S4.7 2.1 8 2.1s5.9 2.5 5.9 5.9-2.6 5.9-5.9 5.9z"}))},G=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M1.6.8c0-.5.3-.8.7-.8h16c.4 0 .8.3.8.8s-.3.8-.8.8h-16c-.4-.1-.7-.4-.7-.8zm16.7 17.7h-16c-.4 0-.8.3-.8.8 0 .4.3.8.8.8h16c.4 0 .8-.3.8-.8s-.4-.8-.8-.8zM13.2 6.7c.3.3.8.3 1.1 0 .3-.3.3-.8 0-1.1l-3.4-3.4c-.3-.3-.8-.3-1.1 0L6.4 5.6c-.3.3-.3.8 0 1.1.1.1.3.2.5.2s.4-.1.5-.2l2.1-2.1v11l-2.1-2.1c-.3-.3-.8-.3-1.1 0-.3.3-.3.8 0 1.1L9.7 18c.1.1.3.2.5.2s.4-.1.5-.2l3.4-3.4c.3-.3.3-.8 0-1.1-.3-.3-.8-.3-1.1 0l-2.1 2.1v-11l2.3 2.1z"}))},j=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M17.6 14.7H6.5c-.5 0-.9.4-.9 1 0 .5.3 1 .9 1h11.1c.6-.1.9-.5.9-1s-.3-1-.9-1zM6.4 5.2h11.4c.4 0 .8-.4.8-1s-.4-1-.9-1H6.4c-.5 0-.9.4-.9 1s.4 1 .9 1zM17.6 10.9H9.4c-.4 0-.9.4-.9 1 0 .5.3 1 .9 1h8.2c.5-.1.9-.5.9-1s-.3-1-.9-1zM17.6 7.1H9.4c-.4 0-.9.4-.9 1 0 .5.3 1 .9 1h8.2c.5 0 .9-.5.9-1s-.3-1-.9-1zM2.5 3.2c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}),(0,o.createElement)("circle",{cx:5.5,cy:8.1,r:1}),(0,o.createElement)("circle",{cx:5.5,cy:11.9,r:1}),(0,o.createElement)("path",{d:"M2.5 14.8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}))},Z=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M4.3 1.1V5.4H15V15H1.1V1.1zM4.6 0H.7C.3 0 0 .3 0 .7v14.6c0 .4.3.7.7.7h14.6c.4 0 .7-.3.7-.7V5c0-.4-.3-.7-.7-.7h-10V.7C5.3.3 5 0 4.6 0z"}),(0,o.createElement)("path",{d:"M9.6 1.1v1.1H7.4V1.1zM10 0H7.1c-.4 0-.7.3-.7.7v1.8c0 .4.3.7.7.7H10c.4 0 .7-.3.7-.7V.7c0-.4-.3-.7-.7-.7zM14.9 1.1v1.1h-2.2V1.1zm.4-1.1h-2.9c-.4 0-.7.3-.7.7v1.8c0 .4.3.7.7.7h2.9c.4 0 .7-.3.7-.7V.7c0-.4-.3-.7-.7-.7z"}))},q=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M4.3 1.1V5.4H15V15H1.1V1.1zM4.6 0H.7C.3 0 0 .3 0 .7v14.6c0 .4.3.7.7.7h14.6c.4 0 .7-.3.7-.7V5c0-.4-.3-.7-.7-.7h-10V.7C5.3.3 5 0 4.6 0z"}))},Y=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M4.3 5v4.3H15v2.3c0 .3.2.5.5.5s.5-.2.5-.5V8.9c0-.4-.3-.7-.7-.7h-10V4.6c0-.4-.3-.7-.7-.7H.7c-.4 0-.7.3-.7.7v6.9c0 .3.2.5.5.5s.5-.2.5-.5V5z"}),(0,o.createElement)("path",{d:"M9.6 5v1.1H7.4V5zm.4-1.1H7.1c-.4 0-.7.3-.7.7v1.8c0 .4.3.7.7.7H10c.4 0 .7-.3.7-.7V4.6c0-.4-.3-.7-.7-.7zM14.9 5v1.1h-2.2V5zm.4-1.1h-2.9c-.4 0-.7.3-.7.7v1.8c0 .4.3.7.7.7h2.9c.4 0 .7-.3.7-.7V4.6c0-.4-.3-.7-.7-.7z"}))},K=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M8.6 12.1c.4-.5.6-1.2.6-1.9V8c0-1.9-1.5-3.4-3.4-3.4S2.4 6.1 2.4 8v2.1c0 .7.2 1.4.6 1.9-1.7.3-3 1.9-3 3.7V17c0 1.2.9 2.1 2.1 2.1h7.4c1.2 0 2.1-.9 2.1-2.1v-1.2c.1-1.9-1.3-3.4-3-3.7zm-2.8-6c1 0 1.8.7 1.9 1.7-.8.6-1.3.4-1.8-.1-.2-.2-.5-.5-.9-.5s-.8.3-1 .5c.1-.8.9-1.6 1.8-1.6zM4 8.9c.2-.1.5-.2.8-.5.1-.1.2-.1.2-.1s.1 0 .2.2c.6.5 1.1.7 1.6.7.3 0 .6-.1.9-.2v1.1c0 1-.8 1.9-1.9 1.9-1 0-1.9-.8-1.9-1.9V8.9zm2.8 4.6c-.2.9-.6 1.4-1 1.4-.3 0-.7-.5-1-1.4h2zm3.3 3.5c0 .3-.3.6-.6.6H2.1c-.3 0-.6-.3-.6-.6v-1.2c0-1.2 1-2.2 2.2-2.2h.1c.3 1.4 1.1 2.4 2 2.4s1.7-1 2-2.4h.1c1.2 0 2.2 1 2.2 2.2V17zM17 8.3c.4-.5.6-1.2.6-1.9V4.3c0-1.9-1.5-3.4-3.4-3.4s-3.4 1.5-3.4 3.4v2.1c0 .7.2 1.4.6 1.9-.4.1-.8.2-1.1.4v1.4c0 .3 0 .5-.1.8.4-.7 1.1-1.1 1.9-1.1h.1c.3 1.4 1.1 2.4 2 2.4.9 0 1.7-1 2-2.4h.1c1.2 0 2.2 1 2.2 2.2v1.2c0 .3-.3.6-.6.6h-5.4c.2.5.3 1 .4 1.5h5c1.2 0 2.1-.9 2.1-2.1V12c0-1.8-1.3-3.3-3-3.7zm-2.8-5.9c1 0 1.8.7 1.9 1.7-.8.6-1.3.4-1.8-.1-.7-.7-1.3-.6-1.9 0 0-.9.8-1.6 1.8-1.6zm0 8.8c-.3 0-.7-.5-1-1.4h1.9c-.2.8-.6 1.4-.9 1.4zM16 6.4c0 1-.8 1.9-1.9 1.9-1 0-1.9-.8-1.9-1.9V5.2c.3-.1.6-.2.8-.5.2-.2.3-.2.3-.2s.1 0 .2.2c.6.6 1.1.8 1.6.8.3 0 .6-.1.9-.2v1.1z"}))},X=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M4 20c-.1 0-.2 0-.3-.1-.3-.1-.5-.4-.5-.7v-2.9H1.9c-1 0-1.9-.8-1.9-1.9V1.9C0 .8.8 0 1.9 0h16.2c1 0 1.9.8 1.9 1.9v12.6c0 1-.8 1.9-1.9 1.9H7.9l-3.4 3.4c-.1.1-.3.2-.5.2zM1.9 1.5c-.2 0-.4.2-.4.4v12.6c0 .2.2.4.4.4H4c.4 0 .8.3.8.8v1.8l2.3-2.3c.1-.1.3-.2.5-.2h10.5c.2 0 .4-.2.4-.4V1.9c0-.2-.2-.4-.4-.4H1.9zM7.2 13c-.1 0-.3 0-.4-.1-.2-.1-.3-.4-.2-.6L7 9.5l-2-2c-.2-.2-.2-.4-.2-.7.1-.2.3-.4.5-.4L8.1 6l1.3-2.5c.1-.3.3-.4.6-.4.2 0 .5.1.6.3L11.8 6l2.8.4c.2 0 .4.2.5.4.1.2 0 .5-.2.6l-2 2 .5 2.8c0 .2-.1.5-.2.6-.2.1-.4.2-.7 0L10 11.6l-2.5 1.3c-.1.1-.2.1-.3.1zm2.8-2.7c.1 0 .2 0 .3.1l1.7.9-.3-1.9c0-.2 0-.4.2-.6l1.4-1.3-1.9-.3c-.2 0-.4-.2-.5-.3L10 5.1l-.9 1.7c-.1.2-.2.4-.5.4l-1.8.3 1.4 1.3c.1.1.2.4.2.6L8 11.2l1.7-.9h.3z"}))},J=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M17.1 1.1H7.4C4.4 1.1 2 3.5 2 6.5c0 3 2.4 5.4 5.4 5.4.4 0 .7 0 .9-.1v6.3c0 .5.5.8.9.8s.9-.3.9-.8V2.7h2.4v15.4c0 .5.5.8.9.8s.9-.3.9-.8V2.7h2.6c.5 0 .8-.4.8-.8.2-.4-.1-.8-.6-.8zM8.4 10c-.2.1-.5.2-.9.2-2.1 0-3.8-1.7-3.8-3.8s1.7-3.8 3.8-3.8c.4 0 .7.1.9.2V10z"}))},Q=function(e){return(0,o.createElement)("svg",(0,a.Z)({viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M13.7 5.5c-1.1 0-2 .8-2.3 1.8H8.5V.5C8.5.2 8.3 0 8 0s-.5.2-.5.5v3.4H4.6c-.2-1-1.2-1.8-2.3-1.8C1 2.1 0 3.1 0 4.4s1 2.3 2.3 2.3c1.1 0 2-.8 2.3-1.8h2.9v5.9H4.6C4.4 9.7 3.5 9 2.3 9 1 9 0 10 0 11.3s1 2.3 2.3 2.3c1.1 0 2-.8 2.3-1.8h2.9v3.7c0 .3.2.5.5.5s.5-.2.5-.5V8.4h2.8c.2 1 1.2 1.8 2.3 1.8 1.3 0 2.3-1 2.3-2.3s-.9-2.4-2.2-2.4zm-11.4.2C1.6 5.7 1 5.1 1 4.4s.6-1.3 1.3-1.3 1.3.6 1.3 1.3-.5 1.3-1.3 1.3zm0 6.9c-.7 0-1.3-.6-1.3-1.3S1.6 10 2.3 10s1.3.6 1.3 1.3-.5 1.3-1.3 1.3zm11.4-3.4c-.7 0-1.3-.6-1.3-1.3s.6-1.3 1.3-1.3 1.3.5 1.3 1.3c0 .7-.6 1.3-1.3 1.3z"}))},ee=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg"},e),(0,o.createElement)("path",{d:"M18.2 0H1.8C.8 0 0 .8 0 1.8v16.3c0 1 .8 1.8 1.8 1.8h16.3c1 0 1.8-.8 1.8-1.8V1.8c.1-1-.7-1.8-1.7-1.8zM1.8 1.5h16.3c.2 0 .3.1.3.3V13h-17V1.8c.1-.2.3-.3.4-.3zm16.4 17H1.8c-.2 0-.3-.1-.3-.3v-3.7h17v3.7c0 .2-.1.3-.3.3zm-11-7.2c.2.1.5.1.8 0L13.5 8c.2-.1.4-.4.4-.6 0-.3-.1-.5-.4-.6L7.9 3.4c-.2-.1-.5-.1-.8 0-.2.1-.3.3-.3.6v6.6c0 .3.1.5.4.7zm1.1-6l3.4 2-3.4 2v-4zm9 11.2c0 .4-.3.8-.8.8H3.4c-.4 0-.8-.3-.8-.8 0-.4.3-.8.8-.8h13.2c.4 0 .7.3.7.8z"}))},te=function(e){return(0,o.createElement)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),(0,o.createElement)("path",{d:"M10.9 20h-9c-1 0-1.8-.8-1.8-1.8v-5.1c0-1 .8-1.8 1.8-1.8h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zm-9.1-7.4c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5v-5.1c0-.3-.2-.5-.5-.5h-9zM18.2 8.7h-9c-1 0-1.8-.8-1.8-1.8V1.8C7.4.8 8.2 0 9.2 0h9c1 0 1.8.8 1.8 1.8v5.1c0 1-.8 1.8-1.8 1.8zM9.1 1.3c-.3 0-.5.2-.5.5v5.1c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V1.8c0-.3-.2-.5-.5-.5h-9z"}))};var ne=n(1205);function oe(e){return(0,o.cloneElement)(e,{fill:"url(#stackable-gradient)",className:`stk-stackable-icon-gradient ${e.props.className||""}`})}function ae(){return oe((0,o.createElement)(l,{width:"20",height:"20",className:"components-panel__icon"}))}function le(e){let{className:t}=e;return(0,o.createElement)(l,{className:t,width:"20",height:"20"})}function re(){return oe((0,o.createElement)(l,{width:"20",height:"20"}))}function ie(){return oe((0,o.createElement)(r,{width:"20",height:"20"}))}function se(){return oe((0,o.createElement)(i,{width:"20",height:"20"}))}function ce(){return oe((0,o.createElement)(s,{width:"20",height:"20"}))}function de(){return oe((0,o.createElement)(d,{width:"16",height:"16"}))}function ue(){return oe((0,o.createElement)(c,{width:"16",height:"16"}))}function pe(){return oe((0,o.createElement)(u,{width:"16",height:"16"}))}function he(){return oe((0,o.createElement)(p,{width:"20",height:"20"}))}function ge(){return oe((0,o.createElement)(h,{width:"20",height:"20"}))}function me(){return oe((0,o.createElement)(g,{width:"20",height:"20"}))}function ve(){return oe((0,o.createElement)(m,{width:"20",height:"20"}))}function be(){return oe((0,o.createElement)(v,{width:"20",height:"20"}))}function fe(){return oe((0,o.createElement)(b,{width:"20",height:"20"}))}function ke(){return oe((0,o.createElement)(f,{width:"20",height:"20"}))}function ye(){return oe((0,o.createElement)(k,{width:"20",height:"20"}))}function _e(){return oe((0,o.createElement)(y,{width:"20",height:"20"}))}function Ce(){return oe((0,o.createElement)(_,{width:"20",height:"20"}))}function we(){return oe((0,o.createElement)(C,{width:"20",height:"20"}))}function Se(){return oe((0,o.createElement)(w,{width:"20",height:"20"}))}function Ee(){return oe((0,o.createElement)(S,{width:"20",height:"20"}))}function xe(){return oe((0,o.createElement)(E,{width:"20",height:"20"}))}function Te(){return oe((0,o.createElement)(m,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}function Be(){return oe((0,o.createElement)(x,{width:"20",height:"20"}))}function Me(){return oe((0,o.createElement)(T,{width:"16",height:"16"}))}function Ae(){return oe((0,o.createElement)(B,{width:"16",height:"16"}))}function Ne(){return oe((0,o.createElement)(M,{width:"16",height:"16"}))}function Ie(){return oe((0,o.createElement)(A,{width:"20",height:"20"}))}function Re(){return oe((0,o.createElement)(N,{width:"20",height:"20"}))}function Pe(){return oe((0,o.createElement)(I,{width:"16",height:"16"}))}function Oe(){return oe((0,o.createElement)(R,{width:"20",height:"20"}))}function He(){return oe((0,o.createElement)(P,{width:"20",height:"20"}))}function ze(){return oe((0,o.createElement)(O,{width:"16",height:"16"}))}function Le(){return oe((0,o.createElement)(H,{width:"20",height:"20"}))}function De(){return oe((0,o.createElement)(z,{width:"20",height:"20"}))}function Fe(){return oe((0,o.createElement)(L,{width:"20",height:"20"}))}function $e(){return oe((0,o.createElement)(D,{width:"16",height:"16"}))}function Ue(){return oe((0,o.createElement)(F,{width:"20",height:"20"}))}function We(){return oe((0,o.createElement)($,{width:"16",height:"16"}))}function Ve(){return oe((0,o.createElement)(U,{width:"16",height:"16"}))}function Ge(){return oe((0,o.createElement)(W,{width:"20",height:"20"}))}function je(){return oe((0,o.createElement)(V,{width:"16",height:"16"}))}function Ze(){return oe((0,o.createElement)(G,{width:"20",height:"20"}))}function qe(){return oe((0,o.createElement)(j,{width:"20",height:"20"}))}function Ye(){return oe((0,o.createElement)(Z,{width:"16",height:"16"}))}function Ke(){return oe((0,o.createElement)(q,{width:"16",height:"16"}))}function Xe(){return oe((0,o.createElement)(Y,{width:"16",height:"16"}))}function Je(){return oe((0,o.createElement)(K,{width:"20",height:"20"}))}function Qe(){return oe((0,o.createElement)(X,{width:"20",height:"20"}))}function et(){return oe((0,o.createElement)(J,{width:"20",height:"20"}))}function tt(){return oe((0,o.createElement)(Q,{width:"16",height:"16"}))}function nt(){return oe((0,o.createElement)(ee,{width:"20",height:"20"}))}function ot(){return oe((0,o.createElement)(te,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}function at(){return(0,o.createElement)(de,null)}(0,n(2527).Z)((()=>{if(document.querySelector("svg.ugb-stackable-gradient"))return;const e=document.createElement("DIV");e.setAttribute("style","height: 0; width: 0; overflow: hidden;"),e.setAttribute("aria-hidden","true"),document.querySelector("body").appendChild(e),(0,ne.createRoot)(e).render((0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"ugb-stackable-gradient",height:"0",width:"0",style:{opacity:0}},(0,o.createElement)("defs",null,(0,o.createElement)("linearGradient",{id:"stackable-gradient"},(0,o.createElement)("stop",{offset:"0%",stopColor:"#8c33da",stopOpacity:"1"}),(0,o.createElement)("stop",{offset:"100%",stopColor:"#f34957",stopOpacity:"1"})))))}))},6916:(e,t,n)=>{"use strict";n.d(t,{B:()=>i,w:()=>c});var o=n(8085),a=n(2814),l=n(6179),r=n.n(l);const i=e=>{const t={},n={};return e.keys().forEach((o=>{const a=e(o),l=a["stk-type"];l&&(t[l]||(t[l]=[]),t[l].push(a)),(a["stk-variants"]||[]).forEach((e=>{const n=e["stk-type"];n&&(t[n]||(t[n]=[]),t[n].push({...e,name:`${a.name}|${e.name}`}))})),a["stk-block-dependency"]&&(n[a.name]=a["stk-block-dependency"])})),Object.keys(t).forEach((e=>{t[e]=(0,o.sortBy)(t[e],"name")})),[t,n]};let s=null;const c=()=>(s||(s=a.loadPromise.then((async()=>{const e=await r()({path:"/stackable/v3/settings/",method:"GET"});return s=null,e}))),s)},6963:(e,t,n)=>{"use strict";n.d(t,{DC:()=>s,rj:()=>S,LT:()=>h,FV:()=>b,AI:()=>g,io:()=>k,WC:()=>u,CR:()=>p,UX:()=>y,u1:()=>_,h3:()=>C,wS:()=>w,Zm:()=>m,po:()=>v});var o=n(4247),a=n.n(o),l=n(4863),r=n.n(l),i=n(8085);class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.attributes=e,this.defaultValues=[]}add(e){let{attributes:t,versionAdded:n,versionDeprecated:o,attrNameTemplate:a="%s"}=e;this.attributes.push({attributeObject:this.applyAttrNameTemplate(t,a),versionAdded:n||"",versionDeprecated:o||!1})}addDefaultValues(e){let{attributes:t,versionAdded:n,versionDeprecated:o,attrNameTemplate:a="%s"}=e;this.defaultValues.push({defaultValuesObject:this.applyAttrNameTemplate(t,a),versionAdded:n||"",versionDeprecated:o||!1})}applyAttrNameTemplate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s";return"%s"!==t&&t?Object.keys(e).reduce(((n,o)=>(n[u(t,(0,i.upperFirst)(o))]={...e[o]},n)),{}):e}getDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.defaultValues.filter((t=>{let{versionAdded:n,versionDeprecated:o}=t;return e?a()(e,n)>=0&&(!o||-1===a()(e,o)):!!o})).map((e=>{let{defaultValuesObject:t}=e;return t}))}getAttributes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.attributes.filter((t=>{let{versionAdded:n,versionDeprecated:o}=t;return e?a()(e,n)>=0&&(!o||-1===a()(e,o)):!!o})).map((e=>{let{attributeObject:t}=e;return t}))}getMerged(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=k(r().all(this.getAttributes(e)));if(this.defaultValues.length){const n=r().all(this.getDefaultValues(e));Object.keys(n).forEach((e=>{const o=n[e];void 0!==t[e]&&(t[e].default=o)}))}return t}}var c=n(4934),d=n(8003);const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,i.camelCase)((0,d.sprintf)(e,(0,i.upperFirst)(t),(0,i.upperFirst)(n)))},p=e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return u(e,t,n)},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return o.length?n.reduce(((n,a)=>({...n,...o.reduce(((n,o,l)=>{const r={...t};return void 0!==r.selector&&(r.selector=(0,d.sprintf)(r.selector,l+1)),n[(0,i.camelCase)((0,d.sprintf)(e,a,o))]=r,n}),{})})),{}):n.reduce(((n,o,a)=>{const l={...t};return void 0!==l.selector&&(l.selector=(0,d.sprintf)(l.selector,a+1)),n[(0,i.camelCase)((0,d.sprintf)(e,o))]=l,n}),{})},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(e,t,["","Tablet","Mobile"])},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,i.omit)(e,t.map((e=>(0,i.camelCase)((0,d.sprintf)(n,e)))))},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.length?(0,i.pick)(e,t.map((e=>(0,i.camelCase)((0,d.sprintf)(n,e))))):e},b=e=>Object.keys(g(e)),f=["stkResponsive","stkHover","stkUnits"],k=e=>Object.keys(e).reduce(((t,n)=>{const o=[[n]];let a="px";return t[n].stkUnits&&(o.push(["","Unit"]),a=t[n].stkUnits),t[n].stkResponsive&&o.push(["","Tablet","Mobile"]),t[n].stkHover&&o.push(["","Hover","ParentHover","Collapsed"]),(0,c.u)(o).forEach((o=>{const l=(0,i.omit)({...e[n]},f);o!==n&&(l.default=""),o.startsWith(`${n}Unit`)&&(l.type="string",l.default=a),t[o]=l})),t}),e),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";const o="desktop"===t.toLowerCase()?"":(0,i.upperFirst)(t),a="normal"===n?"":"hover"===n?"Hover":"collapsed"===n?"Collapsed":"ParentHover";return null!=e&&e.includes("%s")?(0,d.sprintf)(e,`${o}${a}`):`${e}${o}${a}`},_=e=>function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";return y(p(e)(t),n,o)},C=e=>"object"==typeof e?Object.values(e).every((e=>C(e))):void 0===e||!e&&""===e,w=e=>e.every((e=>C(e))),S=["imageUrl","imageId","imageAlt","text","linkHasLink","linkUrl","linkNewTab","linkRel","linkHasTitle","linkTitle","blockLinkHasLink","blockLinkUrl","blockLinkNewTab","blockLinkRel","blockLinkHasTitle","blockLinkTitle"]},4934:(e,t,n)=>{"use strict";n.d(t,{u:()=>o});const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.length?e[0].reduce(((n,a)=>n.concat(o(e.slice(1),t+a))),[]):t}},1539:(e,t,n)=>{"use strict";n.d(t,{ZM:()=>g,PC:()=>m,bd:()=>v,pe:()=>k,zx:()=>y,V9:()=>_,g7:()=>C,Z4:()=>w,I5:()=>S,AN:()=>x,uW:()=>T,Um:()=>B,dd:()=>M,kd:()=>A,YK:()=>N,YZ:()=>I});var o=n(2610),a=n(7741),l=n(1205),r=n(6556),i=n(8085),s=n(910),c=n(3882),d=n(378),u=n(3284),p=n(78),h=n(8003);const g={"stackable/card-group":[],"stackable/card":["imageUrl","imageId","imageAlt"],"stackable/button-group":[],"stackable/button":["text","icon","linkHasLink","linkUrl","linkNewTab","linkRel","linkHasTitle","linkTitle"],"stackable/text":["text"],"stackable/subtitle":["text"],"stackable/heading":["text"],"stackable/number-box":["text"],"stackable/image":["imageUrl","imageId","imageAlt"],"stackable/icon":["icon"],"stackable/icon-button":["icon","linkHasLink","linkUrl","linkNewTab","linkRel","linkHasTitle","linkTitle"],"stackable/icon-list":["icon","text"],"stackable/icon-list-item":["text"],"stackable/progress-bar":["text","progressValue","progressValuePrefix","progressValueSuffix","progressInnerText","progressMax"],"stackable/progress-circle":["progressValue","progressValuePrefix","progressValueSuffix","progressMax"],"stackable/countdown":["countdownType","date","restartInterval","actionOnExpiration","timezone","dayText","hourText","minuteText","secondText","daysLeft","hoursLeft","minutesLeft","secondsLeft","messageText"],"stackable/tab-labels":["tabLabels"],"stackable/timeline":["text"]},m=Object.freeze({ENABLED:1,HIDDEN:2,DISABLED:3}),v=e=>e.replace(/\//g,"-"),b=["uniqueClass"],f={};function k(e){return f[e.name]||(f[e.name]=(0,d.createBlock)(e.name).attributes),Object.keys(f[e.name]).every((t=>!!b.includes(t)||f[e.name][t]===e.attributes[t]))}const y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{getBlockName:n,getSelectedBlockClientId:o,getBlockAttributes:l,hasMultiSelection:r,getMultiSelectedBlockClientIds:s}=(0,u.select)("core/block-editor"),{updateBlockAttributes:d}=(0,u.dispatch)("core/block-editor"),{getBlockType:p}=(0,u.select)("core/blocks");if(!t&&r())return void s().forEach((t=>{y(e,t)}));const h=t||o();if(!h)return;const g=l(h),m=n(h).replace(/^\w+\//g,""),v=p(n(h)).attributes,b=Object.keys(v).reduce(((e,t)=>({...e,[t]:v[t]?v[t].default:""})),{}),f=(0,c.applyFilters)(`stackable.${m}.design.filtered-block-attributes`,{...b,...e},g),k=(0,c.applyFilters)(`stackable.${m}.design.no-text-attributes`,f,g);(0,a.TL)(k),d(h,(0,i.omit)(k,["uniqueClass"]))},_=(e,t,n)=>{const{getBlock:o}=(0,u.select)("core/block-editor"),{replaceInnerBlocks:a}=(0,u.dispatch)("core/block-editor"),r=o(e);a(e,(0,l.moveArrayIndex)(r.innerBlocks,t,n),!1)},C=()=>({name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n}=(0,u.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockInsertionPoint:o}=e("core/block-editor"),a=t();return{selectedBlockName:a?n(a):null,rootClientId:o().rootClientId}}),[]),{categories:a,collections:l,items:r}=(0,u.useSelect)((e=>{const{getInserterItems:n}=e("core/block-editor"),{getCategories:o,getCollections:a}=e("core/blocks");return{categories:o(),collections:a(),items:n(t)}}),[t]),s=(0,o.useMemo)((()=>{let t=(0,i.orderBy)(r,["frecency"],["desc"]);return t=t.filter((t=>t.name.toLowerCase().includes(null==e?void 0:e.toLowerCase())||t.title.toLowerCase().includes(null==e?void 0:e.toLowerCase()))),t.slice(0,9)}),[e,n,r,a,l]);return[(0,o.useMemo)((()=>s.map((e=>{const{title:t,icon:n,isDisabled:a}=e;return{key:`block-${e.id}`,value:e,label:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(p.BlockIcon,{key:"icon",icon:n,showColors:!0}),t),isDisabled:a}}))),[s])]},allowContext:(e,t)=>!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:(0,d.createBlock)(t,n,(0,d.createBlocksFromInnerBlocksTemplate)(o))}}}),w=(e,t)=>{let n=e;const o=[];for(;null!==n;){const{getBlock:e,getBlockParents:a}=(0,u.select)("core/block-editor"),l=e(n),r=l.name,s=(0,i.last)(a(n));if(!s||s===n){o.unshift({type:l.name,nthOfType:1,numOfType:1});break}const c=e(s).innerBlocks,{nthOfType:d,numOfType:p}=c.reduce(((e,t)=>{let{name:o,clientId:a}=t;return o===r&&(e.numOfType++,e.foundClientId||(e.nthOfType++,a===n&&(e.foundClientId=!0))),e}),{nthOfType:0,numOfType:0,foundClientId:!1});o.unshift({type:l.name,nthOfType:d,numOfType:p}),n=n===t?null:(0,i.last)((0,u.select)("core/block-editor").getBlockParents(n))}return o},S=(e,t)=>{const n=[];if(!t.length)return n;t[0].nthOfType=1,t[0].numOfType=1;let o=[(0,u.select)("core/block-editor").getBlock(e)];return t.forEach(((e,t)=>{const a=o.filter((n=>{if(e.type!==n.name)return!1;if(0===t)return!0;const o=E(n.clientId);return o===e.nthOfType||!!(e.nthOfType===e.numOfType&&o>e.nthOfType&&o>=e.numOfType)}));e.attributes&&a.forEach((e=>{let{clientId:t}=e;n.push(t)})),o=a.reduce(((e,t)=>[...e,...t.innerBlocks]),[])})),n},E=e=>{const{getBlock:t,getBlockParents:n}=(0,u.select)("core/block-editor"),o=t(e).name,a=(0,i.last)(n(e));if(!a||a===e)return 1;const l=t(a).innerBlocks;let r=0;return l.some((t=>{let{name:n,clientId:a}=t;return n===o&&(r++,a===e)})),r},x=()=>{if(!(0,d.getCategories)().some((e=>"stackable"===e.slug))){const e={slug:"stackable",title:(0,h.__)("Stackable",s.i18n),icon:r.SVGStackableCategoryIcon},t=s.blockCategoryIndex||0,n=[...(0,d.getCategories)()];n.splice(t,0,e),(0,d.setCategories)(n)}},T=(e,t)=>{let n=(0,c.applyFilters)("stackable.block.metadata",t||{});n.variations&&n.variations.forEach((e=>{e.title||(e.title=n.title)})),n.getEditWrapperProps=()=>({"data-align":void 0}),n.edit=(0,c.applyFilters)("stackable.registerBlockType.edit",n.edit),n=(0,c.applyFilters)(`stackable.${e.replace("stackable/","")}.settings`,n),(0,d.registerBlockType)(e,n)},B=(e,t,n,o)=>{const a=s.settings.stackable_block_states||{};if(o&&e in o){const l=o[e];if("variants"in l)return l.transform(t,n,a);if(e in a&&a[e]===m.DISABLED)return l.transform(t,n)}return n?[e,t,n]:[e,t,[]]},M=(e,t)=>{const{getBlockType:n}=(0,u.select)("core/blocks"),o=n(t).attributes;return Object.keys(e).reduce(((t,n)=>{const a=o[n]?o[n].default:"";return(0,i.isEqual)(e[n],a)||(t[n]=e[n]),t}),{})},A=(e,t)=>{const n={},o=(0,i.cloneDeep)(e);return t.forEach((e=>{e in o&&delete o[e]})),Object.entries(o).forEach((e=>{let[t,o]=e;n[t]="default"in o?o.default:void 0})),n},N=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.replace(/<!--[\s\S]*?-->/g,"");return t&&(o=t(o,n)),o},I={dot:"·",space:" ",comma:",",dash:"—",pipe:"|"}},375:(e,t,n)=>{"use strict";n.d(t,{a7:()=>l,dh:()=>r,BT:()=>i,lM:()=>s,UE:()=>c});var o=n(3882),a=n(4898);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";const n=(0,o.applyFilters)("stackable.util.hex-to-rgba",null,e,t);if(n)return n;let l=(0,o.applyFilters)("stackable.util.hex-to-rgba.hex",e,t);if(l.indexOf("var(")>-1){const e=l.match(/--(.*?(?=,))/g);l=e?window.getComputedStyle(document.documentElement).getPropertyValue(e[0])||"#fff":window.getComputedStyle(document.documentElement).getPropertyValue(l.replace("var(","").replace(")",""))||"#fff"}if(l=l.replace(/#/,""),l.match(/rgb(a?)\(/g))return l;l.length<=4&&(l=l.replace(/#?(.)(.)(.)/,"$1$1$2$2$3$3"));const r=(0,a.Z)(`#${l}ff`);return r[3]=null!==t?t:1,`rgba(${r.join(", ")})`},r=e=>null!=e&&e.startsWith("var(--")&&e.match(/(#[^\)]*)/g)?e.match(/(#[^\)]*)/g)[0]:e,i=(e,t)=>e?e.startsWith("#")?e.slice(0,7)+Math.ceil(255*t).toString(16).padStart(2,"0"):e.includes("var(")?`color-mix(in srgb, ${e} ${100*t}%, transparent)`:e:"",s=e=>{let t=e,n="";return t=t.replace(/rgba\(.*\)$/g,(e=>(n=e,""))).trim(),{options:t,color:n}},c=e=>"#"+e.substring(5,e.length-1).split(",").map(((e,t)=>{if(3===t){const t=parseFloat(e);return Math.ceil(255*t).toString(16).padStart(2,"0")}const n=parseInt(e).toString(16);return 1===n.length?"0"+n:n})).join("")},6753:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var o=n(2610);const a=e=>o.createRoot?(0,o.createRoot)(e):{render:t=>wp.element.render(t,e),unmount:()=>wp.element.unmountComponentAtNode(e)}},7741:(e,t,n)=>{"use strict";n.d(t,{E:()=>r,r9:()=>i,rs:()=>s,PU:()=>c,u$:()=>d,NK:()=>u,mX:()=>p,jh:()=>h,BN:()=>g,TL:()=>m});var o=n(910),a=n(8003);const l={ru_RU:"cyrillic",bg_BG:"cyrillic",he_IL:"hebrew",el:"greek",vi:"vietnamese",uk:"cyrillic",cs_CZ:"latin-ext",ro_RO:"latin-ext",pl_PL:"latin-ext"},r={"Sans-Serif":{value:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',label:(0,a.__)("Sans-Serif",o.i18n)},Serif:{value:'"Palatino Linotype", Palatino, Palladio, "URW Palladio L", "Book Antiqua", Baskerville, "Bookman Old Style", "Bitstream Charter", "Nimbus Roman No9 L", Garamond, "Apple Garamond", "ITC Garamond Narrow", "New Century Schoolbook", "Century Schoolbook", "Century Schoolbook L", Georgia, serif',label:(0,a.__)("Serif",o.i18n)},"Serif-Alt":{value:'Constantia, Lucida Bright, Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif',label:(0,a.__)("Serif Alternative",o.i18n)},Monospace:{value:'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',label:(0,a.__)("Monospace",o.i18n)}},i={"modern-stack-system-ui":{value:"system-ui, sans-serif",label:(0,a.__)("System UI",o.i18n)},"modern-stack-transitional":{value:"Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif",label:(0,a.__)("Transitional",o.i18n)},"modern-stack-old-style":{value:"'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif",label:(0,a.__)("Old Style",o.i18n)},"modern-stack-humanist":{value:"Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif",label:(0,a.__)("Humanist",o.i18n)},"modern-stack-geometric-humanist":{value:"Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif",label:(0,a.__)("Geometric Humanist",o.i18n)},"modern-stack-classical-humanist":{value:"Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif",label:(0,a.__)("Classical Humanist",o.i18n)},"modern-stack-neo-grotesque":{value:"Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif",label:(0,a.__)("Neo Grotesque",o.i18n)},"modern-stack-monospace-slab-serif":{value:"'Nimbus Mono PS', 'Courier New', monospace",label:(0,a.__)("Monospace Slab Serif",o.i18n)},"modern-stack-monospace-code":{value:"ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace",label:(0,a.__)("Monospace Code",o.i18n)},"modern-stack-industrial":{value:"Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif",label:(0,a.__)("Industrial",o.i18n)},"modern-stack-rounded-sans":{value:"ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif",label:(0,a.__)("Rounded Sans",o.i18n)},"modern-stack-slab-serif":{value:"Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif",label:(0,a.__)("Slab Serif",o.i18n)},"modern-stack-antique":{value:"Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif",label:(0,a.__)("Antique",o.i18n)},"modern-stack-didone":{value:"Didot, 'Bodoni MT', 'Noto Serif Display', 'URW Palladio L', P052, Sylfaen, serif",label:(0,a.__)("Didone",o.i18n)},"modern-stack-handwritten":{value:"'Segoe Print', 'Bradley Hand', Chilanka, TSCu_Comic, casual, cursive",label:(0,a.__)("Handwritten",o.i18n)}},s=e=>`https://fonts.googleapis.com/css?family=${e.replace(/ /g,"+")}:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic${l[o.locale]?`&subset=${l[o.locale]}`:""}`,c=e=>!!e&&!Object.keys(r).includes(e)&&!Object.keys(i).includes(e),d=e=>{const t=t=>{if(t&&c(e)){if(p(e,t))return;const n=u(e);t.appendChild(n)}};let n=0;const o=setInterval((()=>{n++,8===n&&clearInterval(o);const e=document.querySelector('iframe[name="editor-canvas"]')?document.querySelector('iframe[name="editor-canvas"]').contentWindow.document.querySelector("head"):document.querySelector("head");t(e),e!==document.querySelector("head")&&t(document.querySelector("head"))}),250)},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=document.createElement("link");return t.classList.add("ugb-google-fonts"),t.setAttribute("data-font-name",e),t.setAttribute("href",s(e)),t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.querySelector("head");return t.querySelector(`[data-font-name="${e}"]`)},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return i[e]?i[e].label:r[e]?r[e].label:e||t||(0,a.__)("Default",o.i18n)},g=e=>{const t='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return e?e.match(/^\s*var\(--/)?e:i[e]?i[e].value:c(e)?`"${e}", Sans-serif`:r[e]?r[e].value:t:t},m=e=>{Object.keys(e).filter((e=>e.match(/fontfamily/i))).forEach((t=>{const n=e[t];n&&d(n)}))}},1205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AttributeObject:()=>l.DC,BLOCK_STATE:()=>ie.PC,CONTENT_ATTRIBUTES:()=>l.rj,META_SEPARATORS:()=>ie.YZ,MODERN_FONT_STACKS:()=>a.r9,SOCIAL_SITES:()=>re,STACKABLE_FILTERS:()=>ie.ZM,SYSTEM_FONT_STACKS:()=>a.E,StyleObject:()=>y.IQ,__getValue:()=>y.CA,addStackableBlockCategory:()=>ie.AN,appendImportant:()=>y.db,appendImportantAll:()=>y.ge,applyBlockDesign:()=>ie.zx,cacheImageData:()=>U,clampInheritedStyle:()=>y.ES,cleanSerializedBlock:()=>ie.YK,colorOpacityToHexAplha:()=>we.BT,compileCSS:()=>Fe,convertToPxIfUnsupported:()=>Xe,createAllCombinationAttributes:()=>l.LT,createBlockCompleter:()=>ie.g7,createBorderAttributeNames:()=>k,createBorderAttributes:()=>f,createBorderStyleSet:()=>E,createButtonAttributeNames:()=>ee,createButtonAttributes:()=>Q,createButtonStyleSet:()=>te,createElementFromHTMLString:()=>ge,createIconAttributeNames:()=>ue,createIconAttributes:()=>de,createIconStyleSet:()=>pe,createImageAttributeNames:()=>B,createImageAttributes:()=>T,createImageBackgroundAttributeNames:()=>Z,createImageBackgroundAttributes:()=>j,createImageBackgroundStyleSet:()=>K,createImageBackgroundStyles:()=>Y,createImageMask:()=>H,createImageStyleSet:()=>L,createImageStyles:()=>z,createLinkTagWithGoogleFont:()=>a.NK,createResponsiveAttributeNames:()=>l.FV,createResponsiveAttributes:()=>l.AI,createResponsiveEditorStyles:()=>y.OB,createResponsiveMarginAlign:()=>y.jA,createResponsiveStyles:()=>y.X8,createRoot:()=>Se.s,createSocialButtonAttributeNames:()=>ae,createSocialButtonAttributes:()=>oe,createSocialButtonStyleSet:()=>le,createTypographyAttributeNames:()=>s,createTypographyAttributes:()=>i,createTypographyDescription:()=>v.c,createTypographyStyles:()=>c.Z,createUniqueClass:()=>Ze,currentUserHasCapability:()=>Ce,descriptionPlaceholder:()=>He,expandAttributes:()=>l.io,extractBlockStyleStructure:()=>ie.Z4,extractColor:()=>we.dh,extractNumbersAndUnits:()=>Ye,extractRgba:()=>we.lM,faFetchIcon:()=>fe,faGetIcon:()=>be,fetchSettings:()=>o.w,getAttrName:()=>l.WC,getAttrNameFunction:()=>l.CR,getAttributeName:()=>l.UX,getAttributeNameFunc:()=>l.u1,getBlockName:()=>ie.bd,getBlockStyleAttributesFilter:()=>xe,getBlocksToStyle:()=>ie.I5,getCSSVarName:()=>Ke,getCleanAttributes:()=>ie.dd,getDefaultFontSize:()=>m,getFilteredAttributes:()=>ie.kd,getFontFamily:()=>a.BN,getFontFamilyLabel:()=>a.jh,getGoogleFontURL:()=>a.rs,getImageDataFromCache:()=>V,getImageSize:()=>$,getImageUrlFromCache:()=>W,getPropertyLabel:()=>y.tf,getShapeSVG:()=>R,getStyles:()=>y.Wi,getUniqueBlockClass:()=>Ie,getVideoProviderFromURL:()=>Oe,hexToRgba:()=>we.a7,importBlocks:()=>o.B,isBlockStyleAttributesModified:()=>Te,isDarkColor:()=>y.jn,isEditor:()=>ze,isElementDescendant:()=>Ge,isEmptyAttribute:()=>l.h3,isEmptyAttributes:()=>l.wS,isGoogleFontEnqueued:()=>a.mX,isUnmodifiedBlock:()=>ie.pe,isWebFont:()=>a.PU,leftRightToFlex:()=>y.xs,loadGoogleFont:()=>a.u$,loadGoogleFontInAttributes:()=>a.TL,marginLeftAlign:()=>y.BI,marginRightAlign:()=>y.$b,minifyCSS:()=>Le,moveArrayIndex:()=>We,moveInnerBlock:()=>ie.V9,numShapesInSvg:()=>he,omitAttributes:()=>l.Zm,pickAttributes:()=>l.po,prependCSSClass:()=>Ue,range:()=>Re,recursivelyAddUniqueIdToInnerBlocks:()=>Ve,registerBlockType:()=>ie.uW,rgbaToHexAlpha:()=>we.UE,sanitizeIdAttr:()=>je,semverCompare:()=>qe,substituteCoreIfDisabled:()=>ie.Um,svgRenderToString:()=>N,urlIsVideo:()=>Pe,useLocalStorage:()=>se,useQueryLoopInstanceId:()=>y.wB,useStyles:()=>y.yK,whiteIfDark:()=>y.gE,whiteIfDarkBlackIfLight:()=>y.SZ});var o=n(6916),a=n(7741),l=n(6963);const r=e=>({...(0,l.LT)(e,{type:"string",default:""},["FontFamily","FontWeight","TextTransform"]),...(0,l.LT)(e,{type:"number",default:""},["LetterSpacing","TabletLetterSpacing","MobileLetterSpacing","FontSize","TabletFontSize","MobileFontSize","LineHeight","TabletLineHeight","MobileLineHeight"]),...(0,l.LT)(e,{type:"string",default:"px"},["FontSizeUnit","TabletFontSizeUnit","MobileFontSizeUnit"]),...(0,l.LT)(e,{type:"string",default:"em"},["LineHeightUnit","TabletLineHeightUnit","MobileLineHeightUnit"])}),i=r,s=e=>Object.keys(r(e));var c=n(9741),d=n(2527),u=n(3882);const p=e=>{const t=document.createElement("div");if(t.classList.add("editor-styles-wrapper"),t.classList.add("ugb-default-font-size"),t.innerHTML=`<div class="wp-block">${e.map((e=>e.startsWith(".")?`<p class="${e.substring(1)}"></p>`:`<${e}></${e}>`)).join()}</div>`,!document||!document.body)return{};document.body.appendChild(t);const n={};return e.forEach((e=>{const o=window.getComputedStyle(t.querySelector(e)).getPropertyValue("font-size");n[e]=Math.round(parseFloat(o))})),document.body.removeChild(t),n};let h={};const g=()=>{h={...p(["h1","h2","h3","h4","h5","h6","p",".stk-subtitle",".stk-button__inner-text"])}};(0,u.addFilter)("stackable.global-settings.typography.editor-styles","stackable/default-font-sizes",((e,t,n,o)=>(e[`.ugb-default-font-size .wp-block ${t}`]=(0,c.Z)("%s","desktop",o,{important:!0}),h={},e)));const m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"p",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(h).length&&!t||g(),h[e]||h.p||21};(0,d.Z)((()=>{g()}));var v=n(6750);const b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{exclude:n=[],include:o=[]}=t;return(0,l.po)((0,l.Zm)({...(0,l.LT)(e,{type:"string",default:""},["BorderType","BorderColor"]),...(0,l.LT)(e,{type:"number",default:""},["BorderWidthTop","BorderWidthRight","BorderWidthBottom","BorderWidthLeft","TabletBorderWidthTop","TabletBorderWidthRight","TabletBorderWidthBottom","TabletBorderWidthLeft","MobileBorderWidthTop","MobileBorderWidthRight","MobileBorderWidthBottom","MobileBorderWidthLeft"])},n,e),o,e)},f=b,k=e=>Object.keys(b(e));var y=n(9719),_=n(8085),C=n(4863),w=n.n(C),S=n(8003);const E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,_.camelCase)((0,S.sprintf)(e,t)),a=(0,y.CA)(n,o),l=[];return a("BorderType")?(l.push({[t]:(0,y.ge)({borderStyle:a("BorderType"),borderColor:a("BorderColor")||"#000000",borderTopWidth:a("BorderWidthTop","%spx")||"1px",borderRightWidth:a("BorderWidthRight","%spx")||"1px",borderBottomWidth:a("BorderWidthBottom","%spx")||"1px",borderLeftWidth:a("BorderWidthLeft","%spx")||"1px"}),tablet:{[t]:(0,y.ge)({borderTopWidth:a("TabletBorderWidthTop","%spx"),borderRightWidth:a("TabletBorderWidthRight","%spx"),borderBottomWidth:a("TabletBorderWidthBottom","%spx"),borderLeftWidth:a("TabletBorderWidthLeft","%spx")})},mobile:{[t]:(0,y.ge)({borderTopWidth:a("MobileBorderWidthTop","%spx"),borderRightWidth:a("MobileBorderWidthRight","%spx"),borderBottomWidth:a("MobileBorderWidthBottom","%spx"),borderLeftWidth:a("MobileBorderWidthLeft","%spx")})}}),w().all(l)):l},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n=".ugb-img",exclude:o=[]}=t;return(0,l.Zm)({...(0,l.LT)(e,{type:"string",default:"",source:"attribute",selector:n,attribute:"src"},["Url"]),...(0,l.LT)(e,{type:"string",default:"",source:"attribute",selector:n,attribute:"alt"},["Alt"]),...(0,l.LT)(e,{type:"string",default:""},["Shape","Size","BlendMode","BackgroundPosition"]),...(0,l.LT)(e,{type:"number",default:""},["Id","Width","Height","TabletWidth","MobileWidth","BorderRadius","Shadow"]),...(0,l.LT)(e,{type:"boolean",default:""},["ShapeStretch","ShapeFlipX","ShapeFlipY","Square","TabletSquare","MobileSquare"]),...(0,l.LT)(e,{type:"string",default:"large"},["Size"])},o,e)},T=x,B=e=>Object.keys(x(e));var M=n(2610),A=n(7462);n(7294);const N=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=(0,M.renderToString)(e).replace(/viewbox/,"viewBox").replace(/preserveaspectratio/,"preserveAspectRatio");return t?n.replace(/#/g,"%23"):n},I={circle:function(e){return(0,M.createElement)("svg",(0,A.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},e),(0,M.createElement)("circle",{cx:50,cy:50,r:50}))},square:function(e){return(0,M.createElement)("svg",(0,A.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,M.createElement)("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}))},blob1:function(e){return(0,M.createElement)("svg",(0,A.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,M.createElement)("path",{d:"M188.5 31.9c12.9 15.9 12.5 43.3 10.3 77.1s-6.2 74.2-26.2 86.5-56.1-3.3-89.4-21.2-63.7-38.1-76.4-69.8C-5.9 73-.8 29.9 21.6 11.7 44-6.4 83.8.5 116.7 6.1s59 10 71.8 25.8z"}))}},R=e=>{const t=(0,u.applyFilters)("stackable.image.shape.svgs",I);return t[e]?t[e]:null},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t=>(0,_.camelCase)((0,S.sprintf)(e,t)),o=(0,y.CA)(t,n),a=o("Shape");return{borderRadius:a?void 0:o("BorderRadius","%spx")}},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,_.camelCase)((0,S.sprintf)(e,t)),a=(0,y.CA)(n,o),l=a("Shape"),r=(e,t)=>a(t)&&a(e)?a(e,"%spx"):"auto";return"tablet"!==t&&"mobile"!==t?{borderRadius:l?void 0:a("BorderRadius","%spx"),width:a("Width","%spx"),height:a("Width")?(0,y.db)(r("Width","Square")):void 0}:"tablet"===t?{width:a("TabletWidth","%spx"),height:a("TabletWidth")?(0,y.db)(r("TabletWidth","TabletSquare")):void 0}:{width:a("MobileWidth","%spx"),height:a("MobileWidth")?(0,y.db)(r("MobileWidth","MobileSquare")):void 0}},H=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parentAttrNameTemplate:o}=n,a=t=>(0,_.camelCase)((0,S.sprintf)(e,t)),l=(0,y.CA)(t,a),r=e=>{if(o){const n=e=>(0,_.camelCase)((0,S.sprintf)(o,e)),a=(0,y.CA)(t,n);return void 0!==l(e)?l(e):a(e)}return l(e)},i=r("Shape");if(!i)return{};const s=r("ShapeStretch"),c=r("ShapeFlipX"),d=r("ShapeFlipY"),u=R(i),p=(0,M.createElement)(u,{preserveAspectRatio:!["","square"].includes(i)&&s?"none":void 0,transform:c||d?`scale(${c?-1:1},${d?-1:1})`:void 0}),h=btoa(N(p));return{"-webkit-mask-image":`url('data:image/svg+xml;base64,${h}')`,"mask-image":`url('data:image/svg+xml;base64,${h}')`}},z=O,L=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{inherit:a=!0}=o,l={[`.${t}`]:{...H(e,n,o)},tabletOnly:{[`.${t}`]:{...O(e,"tablet",n,o)}},mobile:{[`.${t}`]:{...O(e,"mobile",n,o)}}};return a?l[`.${t}`]={...l[`.${t}`],...O(e,"desktop",n,o)}:(l[`.${t}`]={...l[`.${t}`],...P(e,n)},l.desktopTablet={[`.${t}`]:{...O(e,"desktop",n,o)}}),l};var D=n(3284);const F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{width:e.media_details?e.media_details.width:"",height:e.media_details?e.media_details.height:"",source_url:e.source_url||""}},$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.media_details&&e.media_details.sizes&&e.media_details.sizes[t]||F(e):null};window._stackableCachedImageData={};const U=(e,t)=>{const{getMedia:n}=t("core"),o=e?n(e):null;return o&&void 0!==o.id&&(window._stackableCachedImageData[o.id]=o),o},W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full";const n=V(e)||U(e,D.select);return n?n.media_details.sizes[t]?n.media_details.sizes[t].source_url:n.source_url:""},V=e=>window._stackableCachedImageData[e]||null,G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{exclude:n=[]}=t;return(0,l.Zm)({...(0,l.LT)(e,{type:"string",default:""},["Url","BackgroundPosition","BackgroundRepeat","BackgroundSize","Alt","Title"]),...(0,l.LT)(e,{type:"number",default:""},["Id","BackgroundCustomSize"]),...(0,l.LT)(e,{type:"string",default:"large"},["Size"]),...(0,l.LT)(e,{type:"string",default:"px"},["BackgroundCustomSizeUnit"])},n,e)},j=G,Z=e=>Object.keys(G(e)),q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,_.camelCase)((0,S.sprintf)(e,t)),a=(0,y.CA)(n,o);return"tablet"!==t&&"mobile"!==t?{backgroundImage:a("Url","url(%s)"),backgroundPosition:(0,y.db)(a("BackgroundPosition")),backgroundRepeat:(0,y.db)(a("BackgroundRepeat")),backgroundSize:(0,y.db)("custom"!==a("BackgroundSize")?a("BackgroundSize"):a("BackgroundCustomSize")?a("BackgroundCustomSize")+a("BackgroundCustomSizeUnit","%s","px"):void 0)}:{}},Y=q,K=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return{[`.${t}`]:{...q(e,"desktop",n,o)},tablet:{[`.${t}`]:{...q(e,"tablet",n,o)}},mobile:{[`.${t}`]:{...q(e,"mobile",n,o)}}}};var X=n(910);const J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n=".ugb-button",defaultText:o=(0,S.__)("Button text",X.i18n),exclude:a=[],include:r=[]}=t;return(0,l.po)((0,l.Zm)({...i(e),...(0,l.LT)(e,{type:"string",source:"html",selector:`${n} span`,default:o},["Text"]),...(0,l.LT)(e,{type:"string",source:"attribute",selector:n,attribute:"href",default:""},["Url"]),...(0,l.LT)(e,{type:"boolean",source:"attribute",selector:n,attribute:"target",default:""},["NewTab"]),...(0,l.LT)(e,{type:"string",default:""},["Design","Size","Icon","IconPosition","TextColor","BackgroundColorType","BackgroundColor","BackgroundColor2","HoverEffect","HoverTextColor","HoverBackgroundColor","HoverBackgroundColor2"]),...(0,l.LT)(e,{type:"number",default:""},["Opacity","HoverOpacity","PaddingTop","PaddingRight","PaddingBottom","PaddingLeft","BorderRadius","BorderWidth","Shadow","IconSize","IconSpacing","BackgroundGradientDirection","HoverBackgroundGradientDirection"]),...(0,l.LT)(e,{type:"boolean",default:""},["HoverGhostToNormal","NoFollow","Sponsored","Ugc"])},a,e),r,e)},Q=J,ee=e=>Object.keys(J(e)),te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const{hasIcon:a=!1,hasActiveStyles:l=!1}=o,r=t=>(0,_.camelCase)((0,S.sprintf)(e,t)),i=(0,y.CA)(n,r,""),s=[];s.push({[`.${t} .ugb-button--inner`]:{...(0,c.Z)(e,"desktop",n)},tablet:{[`.${t} .ugb-button--inner`]:{...(0,c.Z)(e,"tablet",n)}},mobile:{[`.${t} .ugb-button--inner`]:{...(0,c.Z)(e,"mobile",n)}}});const d=i("BackgroundColor2"),u=i("BackgroundColor");let p=!1;const h="gradient"===i("BackgroundColorType")&&(i("HoverBackgroundColor")||i("HoverBackgroundColor2")||i("HoverBackgroundGradientDirection"));if(""!==i("Design")&&"basic"!==i("Design")||(s.push({[`.${t}`]:{backgroundColor:""!==i("BackgroundColor")?i("BackgroundColor"):void 0,backgroundImage:"gradient"===i("BackgroundColorType")?`linear-gradient(${""!==n[r("BackgroundGradientDirection")]?i("BackgroundGradientDirection","%sdeg","90deg"):"90deg"}, ${i("BackgroundColor")||d}, ${i("BackgroundColor2")||u})`:void 0,paddingTop:""!==i("PaddingTop")?`${i("PaddingTop")}px`:void 0,paddingRight:""!==i("PaddingRight")?`${i("PaddingRight")}px`:void 0,paddingBottom:""!==i("PaddingBottom")?`${i("PaddingBottom")}px`:void 0,paddingLeft:""!==i("PaddingLeft")?`${i("PaddingLeft")}px`:void 0},[`.${t} .ugb-button--inner, .${t} svg:not(.ugb-custom-icon)`]:{color:(0,y.db)((0,y.SZ)(i("TextColor"),i("BackgroundColor")))},[`.${t}:hover .ugb-button--inner, .${t}:hover svg:not(.ugb-custom-icon)`]:{color:(0,y.db)((0,y.SZ)(i("HoverTextColor"),i("HoverBackgroundColor")))},[`.${t}:hover`]:{backgroundColor:""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):void 0},...l?{[`.${t}.is-active`]:{...h?{backgroundImage:`linear-gradient(${i("HoverBackgroundGradientDirection","%sdeg")||i("BackgroundGradientDirection","%sdeg","90deg")}, ${i("HoverBackgroundColor")||i("BackgroundColor")||d}, ${i("HoverBackgroundColor2")||i("BackgroundColor2")||u})`}:{backgroundColor:""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):void 0}},[`.${t}.is-active .ugb-button--inner, .${t}.is-active svg:not(.ugb-custom-icon)`]:{color:(0,y.db)((0,y.SZ)(i("HoverTextColor"),i("HoverBackgroundColor")))},[`.${t}:focus`]:{backgroundColor:(0,y.db)(""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):void 0)}}:{}}),p=""!==i("HoverBackgroundColor"),s.push({[`.${t}:before`]:{content:h?'""':void 0,backgroundImage:h?`linear-gradient(${i("HoverBackgroundGradientDirection","%sdeg")||i("BackgroundGradientDirection","%sdeg","90deg")}, ${i("HoverBackgroundColor")||i("BackgroundColor")||d}, ${i("HoverBackgroundColor2")||i("BackgroundColor2")||u})`:void 0}}),p=p||h||""!==i("HoverTextColor")),"ghost"===i("Design")&&(s.push({[`.${t}`]:{borderColor:""!==i("BackgroundColor")?(0,y.db)(i("BackgroundColor")):void 0,borderWidth:""!==i("BorderWidth")?`${i("BorderWidth")}px`:void 0,paddingTop:""!==i("PaddingTop")?`${i("PaddingTop")}px`:void 0,paddingRight:""!==i("PaddingRight")?`${i("PaddingRight")}px`:void 0,paddingBottom:""!==i("PaddingBottom")?`${i("PaddingBottom")}px`:void 0,paddingLeft:""!==i("PaddingLeft")?`${i("PaddingLeft")}px`:void 0},[`.${t} .ugb-button--inner`]:{color:""!==i("BackgroundColor")?(0,y.db)(i("BackgroundColor")):void 0},[`.${t}:hover`]:{borderColor:""!==i("HoverBackgroundColor")?(0,y.db)(i("HoverBackgroundColor")):void 0},[`.${t}:hover .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?(0,y.db)(i("HoverBackgroundColor")):""!==i("BackgroundColor")?(0,y.db)(i("BackgroundColor")):void 0},...l?{[`.${t}:focus`]:{borderColor:""!==i("HoverBackgroundColor")?(0,y.db)(i("HoverBackgroundColor")):void 0},[`.${t}:focus .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?(0,y.db)(i("HoverBackgroundColor")):""!==i("BackgroundColor")?(0,y.db)(i("BackgroundColor")):void 0},[`.${t}.is-active`]:{borderColor:""!==i("HoverBackgroundColor")?(0,y.db)(i("HoverBackgroundColor")):void 0},[`.${t}.is-active .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?(0,y.db)(i("HoverBackgroundColor")):""!==i("BackgroundColor")?(0,y.db)(i("BackgroundColor")):void 0}}:{}}),(""!==i("Icon")||a)&&s.push({[`.${t}.ugb-button--has-icon.ugb-button--has-icon svg:not(.ugb-custom-icon)`]:{color:""!==i("BackgroundColor")?i("BackgroundColor"):void 0},[`.${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)`]:{color:""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):""!==i("BackgroundColor")?i("BackgroundColor"):void 0}}),p=""!==i("HoverBackgroundColor"),i("HoverGhostToNormal")&&(s.push({[`.${t}:before`]:{content:'""',backgroundImage:`linear-gradient(${i("HoverBackgroundGradientDirection","%sdeg","90deg")}, ${i("HoverBackgroundColor")||i("BackgroundColor")}, ${i("HoverBackgroundColor2")||i("HoverBackgroundColor")||i("BackgroundColor")})`,top:""!==i("BorderWidth")?`-${i("BorderWidth")}px`:void 0,right:""!==i("BorderWidth")?`-${i("BorderWidth")}px`:void 0,bottom:""!==i("BorderWidth")?`-${i("BorderWidth")}px`:void 0,left:""!==i("BorderWidth")?`-${i("BorderWidth")}px`:void 0},[`.${t}:hover`]:{backgroundColor:(0,y.db)(""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):i("BackgroundColor"))},[`.${t}:hover .ugb-button--inner`]:{color:(0,y.db)((0,y.SZ)(i("HoverTextColor"),i("HoverBackgroundColor")||i("BackgroundColor")))},...l?{[`.${t}.is-active`]:{backgroundColor:(0,y.db)(""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):i("BackgroundColor"))},[`.${t}.is-active .ugb-button--inner`]:{color:(0,y.db)((0,y.SZ)(i("HoverTextColor"),i("HoverBackgroundColor")||i("BackgroundColor")))}}:{}}),(""!==i("Icon")||a)&&s.push({[`.${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)`]:{color:(0,y.db)((0,y.SZ)(i("HoverTextColor"),i("HoverBackgroundColor")||i("BackgroundColor")))}}),p=!0)),"plain"===i("Design")&&(s.push({[`.${t} .ugb-button--inner`]:{color:""!==i("BackgroundColor")?(0,y.db)(i("BackgroundColor")):void 0},[`.${t}:hover .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?(0,y.db)(i("HoverBackgroundColor")):void 0},...l?{[`.${t}.is-active .ugb-button--inner`]:{color:""!==i("HoverBackgroundColor")?(0,y.db)(i("HoverBackgroundColor")):void 0}}:{}}),(""!==i("Icon")||a)&&s.push({[`.${t}.ugb-button--has-icon.ugb-button--has-icon svg:not(.ugb-custom-icon)`]:{color:""!==i("BackgroundColor")?i("BackgroundColor"):void 0},[`.${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg:not(.ugb-custom-icon)`]:{color:""!==i("HoverBackgroundColor")?i("HoverBackgroundColor"):void 0}}),p=""!==i("HoverBackgroundColor")),"link"!==i("Design")){const e=""!==n[r("IconSpacing")]&&void 0!==n[r("IconSpacing")]?`${i("IconSpacing","%spx",16)}`:void 0,o=n[r("BorderRadius")];s.push({[`.${t}`]:{opacity:""!==i("Opacity")?i("Opacity"):void 0,borderRadius:""!==o&&void 0!==o?(0,y.db)(`${o}px`):void 0},[`.${t}:before`]:{borderRadius:""!==o&&void 0!==o?(0,y.db)(`${o}px`):void 0},[`.${t}:hover`]:{opacity:""!==i("HoverOpacity")?i("HoverOpacity"):p?1:void 0},...l?{[`.${t}.is-active`]:{opacity:""!==i("HoverOpacity")?i("HoverOpacity"):p?1:void 0}}:{},[`.${t}.ugb-button--has-icon.ugb-button--has-icon svg`]:{marginLeft:""===i("Icon")&&!a||"right"!==i("IconPosition")?void 0:e,marginRight:""===i("Icon")&&!a||"right"===i("IconPosition")?void 0:e,width:""!==i("IconSize")||a?`${i("IconSize")}px`:void 0,height:""!==i("IconSize")||a?`${i("IconSize")}px`:void 0}})}return w().all(s)},ne=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n=".ugb-button-%s",exclude:o=[],include:a=[]}=t,r=Object.keys(re).reduce(((o,a)=>({...o,...(0,l.LT)(e,{type:"string",source:"attribute",selector:(0,S.sprintf)(n,a),attribute:"href",default:t[`${a}Default`]?t[`${a}Default`]:""},[`${(0,_.upperFirst)(a)}Url`])})),{});return(0,l.po)((0,l.Zm)({...Q(e,{exclude:["Text","Url","NoFollow","Sponsored","Ugc","Icon","IconPosition","NewTab"]}),...(0,l.LT)(e,{type:"boolean",default:""},["NewTab"]),...(0,l.LT)(e,{type:"boolean",default:!0},["UseSocialColors"]),...r},o,e),a,e)},oe=ne,ae=e=>Object.keys(ne(e)),le=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,_.camelCase)((0,S.sprintf)(e,t)),a=(0,y.CA)(n,o,""),l=[];return l.push({...te(e,t,n,{hasIcon:!0})}),a("UseSocialColors")?(""!==a("Design")&&"basic"!==a("Design")||l.push({[`.${t}`]:{backgroundColor:void 0,backgroundImage:void 0},[`.${t} .ugb-button--inner, .${t} svg`]:{color:void 0},[`.${t}:hover .ugb-button--inner, .${t}:hover svg`]:{color:void 0},[`.${t}:hover`]:{backgroundColor:void 0},[`.${t}:before`]:{content:void 0,backgroundImage:void 0}}),"ghost"===a("Design")&&(l.push({[`.${t}`]:{borderColor:void 0},[`.${t} .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon svg`]:{color:void 0},[`.${t}:hover`]:{borderColor:void 0},[`.${t}:hover .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg`]:{color:void 0}}),a("HoverGhostToNormal")&&l.push({[`.${t}:before`]:{content:void 0,backgroundImage:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},[`.${t}:hover .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg`]:{color:void 0}})),"plain"===a("Design")&&l.push({[`.${t} .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon svg`]:{color:void 0},[`.${t}:hover .ugb-button--inner, .${t}.ugb-button--has-icon.ugb-button--has-icon:hover svg`]:{color:void 0}}),w().all(l)):w().all(l)},re={facebook:{label:(0,S.__)("Facebook",X.i18n),icon:'<svg aria-hidden="true" focusable="false" 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>'},twitter:{label:(0,S.__)("Twitter",X.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="twitter" class="svg-inline--fa fa-twitter fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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>'},instagram:{label:(0,S.__)("Instagram",X.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="instagram" class="svg-inline--fa fa-instagram fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><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>'},pinterest:{label:(0,S.__)("Pinterest",X.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="pinterest-p" class="svg-inline--fa fa-pinterest-p fa-w-12" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"></path></svg>'},linkedin:{label:(0,S.__)("LinkedIn",X.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="linkedin-in" class="svg-inline--fa fa-linkedin-in fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><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>'},youtube:{label:(0,S.__)("YouTube",X.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="fab" data-icon="youtube" class="svg-inline--fa fa-youtube fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><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>'},email:{label:(0,S.__)("Email",X.i18n),icon:'<svg aria-hidden="true" focusable="false" data-prefix="far" data-icon="envelope" class="svg-inline--fa fa-envelope fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"></path></svg>'}};var ie=n(1539);const se=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const[n,o]=(0,M.useState)((()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}})),a=t=>{try{const a=t instanceof Function?t(n):t;o(a),window.localStorage.setItem(e,JSON.stringify(a))}catch(e){}};return[n,a]},ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{selector:n=".ugb-icon",defaultIcon:o="fas-cogs",exclude:a=[],include:r=[]}=t;return(0,l.po)((0,l.Zm)({...(0,l.LT)(e,{type:"string",source:"html",selector:`${n}`,default:o},["Icon"]),...(0,l.LT)(e,{type:"string",default:""},["Design","ColorType","Color","Color2","BackgroundColorType","BackgroundColor","BackgroundColor2","BackgroundShape","BackgroundShapeColor","Color3","Color4","Color5","Color5","Color6","Color7","Color8","Color9","Color10"]),...(0,l.LT)(e,{type:"number",default:""},["ColorGradientDirection","OutlineWidth","BackgroundColorGradientDirection","Size","TabletSize","MobileSize","BorderRadius","Shadow","Opacity","Padding","Rotation","BackgroundShapeOpacity","BackgroundShapeSize","BackgroundShapeOffsetHorizontal","BackgroundShapeOffsetVertical","MultiOpacity1","MultiOpacity2","MultiOpacity3","MultiOpacity4","MultiOpacity5","MultiOpacity6","MultiOpacity7","MultiOpacity8","MultiOpacity9","MultiOpacity10"]),...(0,l.LT)(e,{type:"boolean",default:""},["ShowBackgroundShape"])},a,e),r,e)},de=ce,ue=e=>Object.keys(ce(e)),pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t=>(0,_.camelCase)((0,S.sprintf)(e,t)),a=(0,y.CA)(n,o),l=[],r=(0,y.ES)(a("Size"),{max:200}),i=(0,y.ES)(a("Size"),{max:200});return l.push({[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg`]:{width:(0,y.db)(a("Size","%spx")),height:(0,y.db)(a("Size","%spx"))},tabletOnly:{[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg`]:{width:(0,y.db)(a("TabletSize","%spx")||r&&`${r}px`),height:(0,y.db)(a("TabletSize","%spx")||i&&`${i}px`)}},mobile:{[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg`]:{width:(0,y.db)(a("MobileSize","%spx")||r&&`${r}px`),height:(0,y.db)(a("MobileSize","%spx")||i&&`${i}px`)}},[`.${t} .ugb-icon-inner-svg`]:{color:(0,y.db)(a("Color")),transform:(0,y.db)(a("Rotation","rotate(%sdeg)"))},saveOnly:{[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg *`]:{color:(0,y.db)(a("Color")),fill:(0,y.db)(a("Color"))}},editor:{[`.${t} .ugb-icon-inner-svg, .${t} .ugb-icon-inner-svg svg path, .${t} .ugb-icon-inner-svg svg g, .${t} .ugb-icon-inner-svg svg shape, .${t} .ugb-icon-inner-svg svg circle, .${t} .ugb-icon-inner-svg svg path, .${t} .ugb-icon-inner-svg svg rect, .${t} .ugb-icon-inner-svg svg polygon, .${t} .ugb-icon-inner-svg svg ellipse`]:{color:(0,y.db)(a("Color")),fill:(0,y.db)(a("Color"))}},[`.${t}`]:{opacity:(0,y.db)(a("Opacity"))}}),"shaped"!==a("Design")&&"outlined"!==a("Design")||l.push({[`.${t} .ugb-icon__design-wrapper`]:{borderRadius:(0,y.db)(a("BorderRadius","%s%","100%")),padding:(0,y.db)(a("Padding","%spx"))}}),"shaped"===a("Design")&&l.push({[`.${t} .ugb-icon__design-wrapper`]:{background:(0,y.db)(a("BackgroundColor"))}}),"outlined"===a("Design")&&l.push({[`.${t} .ugb-icon__design-wrapper`]:{borderColor:(0,y.db)(a("BackgroundColor")),borderWidth:(0,y.db)(a("OutlineWidth","%spx"))}}),w().all((0,u.applyFilters)("stackable.icon-style-set.styles",l,a,t,n))},he=e=>"string"!=typeof e?0:(0,_.range)(10).reduce(((t,n)=>{const o=n+1;return new RegExp(`(<(circle|ellipse|line|polygon|polyline|rect|shape|path)[^>]*(/>|>[sS]*?</\\w+>)[ \t\r\n\v\f]*){${o}}`,"gm").test(e)?o:t}),0),ge=e=>{const t=document.createElement("div");return t.innerHTML=e,t.firstElementChild},me=(X.iconsFaKit?X.iconsFaProKitVersion:X.iconsFaFreeKitVersion||"6.5.1")||"5.15.4",ve={fas:"solid",far:"regular",fal:"light",fat:"thin",fad:"duotone",fab:"brands",fass:"sharp-solid",fasr:"sharp-regular",fasl:"sharp-light"},be=(e,t)=>window.StkFontAwesome&&window.StkFontAwesome[`${e}-${t}`]?window.StkFontAwesome[`${e}-${t}`]:"",fe=(e,t)=>{const n=X.iconsFaKit?X.iconsFaKit:"5.15.4"===X.iconsFaFreeKitVersion?"d2a8ea0b89":"8f4ebede24",o=(e=>ve[e]||"solid")(e);let a;return a=X.iconsFaKit?`https://ka-p.fontawesome.com/releases/v${me}/svgs/${o}/${t}.svg?token=${n}`:`https://ka-f.fontawesome.com/releases/v${me}/svgs/${o}/${t}.svg?token=${n}`,new Promise((async(n,o)=>{const l=await fetch(a).then((e=>e.text())).catch((()=>o(!1)));window.StkFontAwesome||(window.StkFontAwesome={}),window.StkFontAwesome[`${e}-${t}`]=l,n(!0)}))};var ke=n(6179),ye=n.n(ke),_e=n(1368);const Ce=async e=>{const t=(0,D.select)("core").getCurrentUser().id;return t&&(await ye()({path:(0,_e.addQueryArgs)(`/wp/v2/users/${t}`,{context:"edit"})})).capabilities[e]||!1};var we=n(375),Se=n(6753);const Ee={"stackable/column":["columnWidth","columnAdjacentCount"],"stackable/table-of-contents":["text","headings"],"stackable/icon-list-item":["parentUniqueId"]},xe=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return["uniqueId","anchor",...ie.ZM[e]||[],...Ee[e]||[],...t]},Te=(e,t,n)=>{var o,a;const l=(null===(o=(0,D.select)("stackable/global-block-styles").getBlockStyles(e))||void 0===o||null===(a=o.find((e=>e.slug===t)))||void 0===a?void 0:a.nonCssAttributes)||{},r=(0,ie.dd)(n,e),i=xe(e,["generatedCss","blockStyle","modifiedBlockStyle"]);return new Set([...i,...Object.keys(l)]).forEach((e=>{r[e]&&delete r[e]})),Object.keys(r).length};var Be=n(3726),Me=n.n(Be),Ae=n(378),Ne=n(4247);const Ie=e=>e?`stk-${e}`:"",Re=(e,t)=>Array.from({length:t-e},((t,n)=>n+e)),Pe=e=>(null==e?void 0:e.endsWith("mp4"))||(null==e?void 0:e.endsWith("webm"))||(null==e?void 0:e.endsWith("ogg")),Oe=e=>{let t="";return t=(e.match(/youtube\.com\/watch\?v=([^\&\?\/]+)/i)||[])[1],t||(t=(e.match(/youtube\.com\/embed\/([^\&\?\/]+)/i)||[])[1]),t||(t=(e.match(/youtube\.com\/v\/([^\&\?\/]+)/i)||[])[1]),t||(t=(e.match(/youtu\.be\/([^\&\?\/]+)/i)||[])[1]),t||(t=(e.match(/youtube\.com\/shorts\/([^\&\?\/]+)/i)||[])[1]),t?{type:"youtube",id:t}:(t=(e.match(/vimeo\.com\/(\d+)/i)||[])[1],t||(t=(e.match(/vimeo\.com\/(\w*\/)*(\d+)/i)||[])[2]),t||(t=(e.match(/^\d+$/i)||[])[0]),t?{type:"vimeo",id:t}:{type:"youtube",id:e})},He=e=>"short"===e?(0,S.__)("Description for this block. You can use this space for describing your block.",X.i18n):"medium"===e?`${He()} ${He("short")}`:"long"===e?`${He("medium")} ${He()} ${He("short")}`:(0,S.__)("Description for this block. Use this space for describing your block. Any text will do.",X.i18n),ze=()=>void 0!==window.wp&&void 0!==window.wp.editor,Le=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;const n=e.replace(/\/\*.*?\*\//g,"").replace(/\n\s*\n/g,"").replace(/[\n\r \t]/g," ").replace(/ +/g," ").replace(/:is/g," :is").replace(/ ?([,:;{}]) ?/g,"$1").replace(/[^\}\{]+\{\}/g,"").replace(/[^\}\{]+\{\}/g,"").replace(/;}/g,"}").trim();return t?n.replace(/\s?\!important/g,"").replace(/([;\}])/g," !important$1").replace(/\} !important\}/g,"}}").trim():n},De={Tablet:1023,Mobile:767},Fe=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Desktop";return(e||"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/(.*)?\n/g,"").replace(/([^}]+)({)/g,((e,l,r)=>{if(l.match(/@\w+/))return l.replace(/(@\w+[^{]+{\s*)([^{]+)/g,((e,l,i)=>{const s=Ue(i,t,n);if(o&&"Desktop"!==a){var c,d;let e=null==l||null===(c=l.match(/min-width:\s*(\d+)px/))||void 0===c?void 0:c[1],t=null==l||null===(d=l.match(/max-width:\s*(\d+)px/))||void 0===d?void 0:d[1];if("string"!=typeof e&&(e=0),"string"!=typeof t&&(t=9999),(0,_.inRange)(De[a],parseInt(e),parseInt(t)))return`@media screen { ${s} ${r}`}return`${l} ${s} ${r}`}));const i=Ue(l,t,n);return(o?".editor-styles-wrapper ":"")+`${i} ${r}`})).trim()},$e={},Ue=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";const l=`${e}-${t}-${n}-${o}`;if($e[l])return $e[l];const r=e.trim().replace(/[\n\s\t]+/g," ").replace(/:(is|where|matches)\([^\)]*\)/g,(e=>e.replace(/,/g,"|||"))).split(",").map((e=>{let l="",r=!1;return e.includes("%h")&&(r=!0,e=e.replaceAll("%h","").trim()),l=e.includes("[data-block=")||"html"===e||"body"===e?e:e.includes("%s")?e.replaceAll("%s",n):n&&t?e.includes(n)?e:n&&!t?`.${n} ${e.trim()}`:`.${n} ${e.trim()}`.replace(new RegExp(`(.${n}) (.${t}(#|:|\\[|\\.|\\s|$))`,"g"),"$1$2").replace(/\s:(?!(is|where))/,":"):e,r&&a&&o?`${o}:where(${a}) ${l}`:o?`${o} ${l}`:l})).join(", ").replace(/\|\|\|/g,", ");return $e[l]=r,r},We=(e,t,n)=>(e.splice(t<n?n+1:n,0,e[t]),e.splice(t<n?t:t+1,1),e),Ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.length)return null;e.forEach((e=>{e.name.startsWith("stackable/")&&(0,Ae.getBlockVariations)(e.name).length>0&&(e.attributes={...e.attributes,uniqueId:Ze(e.clientId)}),Ve(e.innerBlocks)}))},Ge=function(e,t){let n=t.parentNode;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},je=e=>Me()(e.replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/&[\w\d]+;/g,"-")).replace(/<[^>]*>/g,"").replace(/[^\w\d\s-_]/g,"").replace(/[^\w\d]/g,"-").replace(/[-]+/g,"-").trim().toLowerCase(),Ze=e=>`${e.substring(0,7)}`,qe=(e,t,n)=>(0,Ne.compare)(e,n,t),Ye=e=>{if("number"==typeof e)return[[e.toString(),"px"]];if("string"!=typeof e)return[["0","px"]];if(e.startsWith("var"))return[[e,""]];const t=[...e.matchAll(/(-?\d*\.?\d+)([a-zA-Z%]*)/g)];return t.length?t.map((e=>[e[1],e[2]||"px"])):/^-?\d*\.?\d+$/.test(e)?[[e,"px"]]:[["0","px"]]},Ke=e=>{if("string"!=typeof e)return null;const t=null==e?void 0:e.match(/var\(\s*([^,)\s]+)/);return t?t[1]:null};function Xe(e,t,n){const o={rem:16,em:16},a=null==t?void 0:t.toLowerCase();return null!=e&&e.length&&e.includes(a)||!o[a]?{value:n,unit:t}:{value:""+parseFloat(n)*o[a],unit:"px"}}},9719:(e,t,n)=>{"use strict";n.d(t,{IQ:()=>b,CA:()=>R,db:()=>I,ge:()=>N,ES:()=>P,OB:()=>z,jA:()=>H,X8:()=>O,tf:()=>L,Wi:()=>S,jn:()=>E,xs:()=>B,BI:()=>x,$b:()=>T,wB:()=>k,yK:()=>w,gE:()=>M,SZ:()=>A});var o=n(6537),a=n.n(o),l=n(8085),r=n(4898),i=n(375),s=n(8003),c=n(3882),d=n(6963),u=n(3796),p=n(5185),h=n(78),g=n(2610),m=n(3284);class v{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.styleParams=e,this.initStyles(),this.queryLoopInstance=null}setStyleParams(e){this.styleParams=e}initStyles(){this.styles={editor:{},saveOnly:{}}}setQueryLoopInstance(e){this.queryLoopInstance=e}getQueryLoopInstance(){return this.queryLoopInstance}appendToSelector(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"desktop",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];this.queryLoopInstance&&(e=e.replace(/[^^?](.%s)([^-])/g,`$1-${this.queryLoopInstance}$2`));const r="edit"!==a?o:o.match(/^(desktop|tablet|mobile)/g),i=""===a?this.styles:this.styles[a];"desktop"!==r&&r?(void 0===i[r]&&(i[r]={}),void 0===i[r][e]&&(i[r][e]={}),i[r][e][t]=n,l.forEach((o=>{i[r][e][`${o}${t}`]=n}))):(void 0===i[e]&&(i[e]={}),i[e][t]=n,l.forEach((o=>{i[e][`${o}${t}`]=n})))}generateStyles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";return this.initStyles(),this.styleParams.forEach((n=>{n.styles?Object.keys(n.styles).forEach((o=>{this.add(e,{...n,styleRule:o,attrName:n.styles[o]},t)})):this.add(e,n,t)})),this.styles}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";const{selector:o="",styleRule:a="",attrName:r="",format:i="%s",hasUnits:c=!1,responsive:u=!1,hover:p=!1,attrNameTemplate:h="",selectorCallback:g=null,hoverSelector:m="",hoverSelectorCallback:v=null,hoverCallback:b=null,styleRuleCallback:f=null,renderIn:k="",valuePreCallback:y=null,valueCallback:_=null,enabledCallback:C=null,vendorPrefixes:w=[],clampCallback:S=null,unitCallback:E=null}=t,x=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=h?(0,d.WC)(h,t):t;let r=e[(0,d.UX)(l,n,o)];if(!a)return r;const i="mobile"===n?["mobile","tablet","desktop"]:"tablet"===n?["tablet","desktop"]:["desktop"];return i.some((t=>{const n=e[(0,d.UX)(l,t)];return""!==n&&void 0!==n&&(r=n,!0)})),r},T=h?(0,d.WC)(h,r):r,B=k.replace("save","saveOnly").replace("edit","editor");if(C&&!C(x,e))return;let M=a;f&&(M=f(x,e));let A=g?g(x,e):o,N=v?v(x,e):m;const I=b?b(x,e):p,R=(t,n,o)=>{const a=(0,d.UX)(`${t}Unit`,n,o),l=(0,d.UX)(t,n,o);let r=c?e[a]||c:"",p=e[l];if(""===p&&("tablet"===n||"mobile"===n)){const a=e[(0,d.UX)(`${t}Unit`,"desktop",o)],l=e[(0,d.UX)(`${t}Unit`,"tablet",o)];"tablet"===n?r=a:"mobile"===n&&(r=""!==e[(0,d.UX)(t,"tablet",o)]?l:a)}if(E&&(r=E(r,n,o)),S&&u){const a=e[(0,d.UX)(t,"desktop",o)],l=e[(0,d.UX)(t,"tablet",o)];""!==p&&void 0!==p||("tablet"===n?p=S(a,x,n,o,r,e):"mobile"===n&&(p=S(""!==l?l:a,x,n,o,r,e)))}if(y&&(p=y(p,x,n,o,e)),""!==p&&void 0!==p)return r&&("auto"===p||"string"==typeof p&&p.startsWith("var")||(p=`${p}${r}`)),"%s"!==i&&""!==i&&(p=(0,s.sprintf)(i.replace(/%([sd])%/,"%$1%%"),p)),_&&(p=_(p,x,n,o,e)),p},P="all"===u||Array.isArray(u)&&u.find((e=>e.startsWith("tablet"))),O="all"===u||Array.isArray(u)&&u.find((e=>e.startsWith("mobile"))),H=(Array.isArray(u)?u.find((e=>e.startsWith("desktop"))):"desktop")||"desktop",z=(Array.isArray(u)?u.find((e=>e.startsWith("tablet"))):"tablet")||"tablet",L=(Array.isArray(u)?u.find((e=>e.startsWith("mobile"))):"mobile")||"mobile",D="all"===I||Array.isArray(I)&&I.includes("hover"),F="all"===I||Array.isArray(I)&&I.includes("parent-hover"),$="all"===I||Array.isArray(I)&&I.includes("collapsed"),U=(e,t,o,a)=>{const r=e=>{const r=[];return r.push(n===a?o:t),r.push(e),(0,l.compact)(r).join(e.startsWith(":")?"":" ")};return Array.isArray(e)?e.map(r).join(", "):r(e)},W=(e,t,o,a)=>{const l=e=>`${e}${n===a?o:t}`;return Array.isArray(e)?e.map(l).join(", "):l(e)},V=U(A,":where(.stk-block-accordion.stk--is-open) .%s, .%s.stk--is-open",":where(.stk-block-accordion.stk--is-open) .%s, .%s.stk--is-open","collapsed"),G=U(A,":where(.stk-hover-parent:hover, .stk-hover-parent.stk--is-hovered) .%s",".%s.stk--is-hovered","parent-hover");N=(N||A).includes("[data-block=")&&(N||A).endsWith("]")?N?W("hover"===n?A:N||A,null,".stk--is-hovered","hover"):W(A,":hover",".stk--is-hovered","hover"):N?U("hover"===n?A:N||A,null,".%s.stk--is-hovered","hover"):U(A,".%s:hover",".%s.stk--is-hovered","hover"),A=U(A),this.appendToSelector(A,M,R(T,"desktop","normal"),H,B,w),D&&this.appendToSelector(N,M,R(T,"desktop","hover"),H,B,w),F&&this.appendToSelector(G,M,R(T,"desktop","parent-hover"),H,B,w),$&&this.appendToSelector(V,M,R(T,"desktop","collapsed"),H,B,w),P&&(this.appendToSelector(A,M,R(T,"tablet","normal"),z,B,w),D&&this.appendToSelector(N,M,R(T,"tablet","hover"),z,B,w),F&&this.appendToSelector(G,M,R(T,"tablet","parent-hover"),z,B,w),$&&this.appendToSelector(V,M,R(T,"tablet","collapsed"),H,B,w)),O&&(this.appendToSelector(A,M,R(T,"mobile","normal"),L,B,w),D&&this.appendToSelector(N,M,R(T,"mobile","hover"),L,B,w),F&&this.appendToSelector(G,M,R(T,"mobile","parent-hover"),L,B,w),$&&this.appendToSelector(V,M,R(T,"mobile","collapsed"),H,B,w))}}const b=v,f={},k=e=>{const t=(0,g.useContext)(p.QueryLoopContext),n=(0,m.useSelect)((e=>{var t;return null===(t=e("core/editor"))||void 0===t?void 0:t.getCurrentPostId()})),[o,a]=(0,g.useState)(0);return(0,g.useEffect)((()=>{if(((e,t)=>(null==e?void 0:e.postId)&&t&&(null==e?void 0:e.postId)!==t)(t,n)&&e){const n=f[e]||[];n.includes(null==t?void 0:t.postId)||n.push(null==t?void 0:t.postId),f[e]=n,a(n.findIndex((e=>e===(null==t?void 0:t.postId)))+1)}}),[null==t?void 0:t.id,n,e]),o},y=[["","Unit"],["","Tablet","Mobile"],["","Hover","ParentHover","Collapsed"]],_=e=>e.reduce(((e,t)=>(y[0].forEach((n=>{y[1].forEach((o=>{y[2].forEach((a=>{e.push(`${t}${n}${o}${a}`)}))}))})),e)),[]);function C(e){const t=[];return e.forEach((e=>{const{attrName:n="",dependencies:o=[],attrNameTemplate:a="",styles:l={}}=e,r=a?(0,d.WC)(a,n):n;r&&!t.includes(r)&&t.push(r),Object.values(l).forEach((e=>{const n=a?(0,d.WC)(a,e):e;n&&!t.includes(n)&&t.push(n)})),o.forEach((e=>{const n=a?(0,d.WC)(a,e):e;n&&!t.includes(n)&&t.push(n)}))})),[..._(t),"uniqueId"]}function w(e){const t=2===arguments.length?arguments[1]:e,[n]=(0,u.useBlockHoverState)(),{clientId:o}=(0,h.useBlockEditContext)(),a=(0,u.useBlockAttributesContext)((e=>({...(0,l.pick)(e,C(t)),clientId:o}))),r=k(a.uniqueId),i=(0,g.useRef)(new v);return i.current.setStyleParams(t),(0,g.useEffect)((()=>{i.current.getQueryLoopInstance()||i.current.setQueryLoopInstance(r)}),[i.current,r]),(0,g.useMemo)((()=>i.current.generateStyles(a,n)),[i.current,a,n])}const S=(e,t)=>new v(t).generateStyles(e),E=e=>{try{let t=(0,c.applyFilters)("stackable.util.is-dark-color",e);if(!t.match(/^#/)){if(!(t.indexOf("var(")>-1))return a()(t);t=(0,i.dh)(t)}if(t.match(/^rgb/)){const e=(e,t,n)=>"#"+[e,t,n].map((e=>{const t=e.toString(16);return 1===t.length?"0"+t:t})).join(""),n=(0,r.Z)(t);n.splice(3,1),t=e(...n)}return t=t.replace(/#/g,""),3===t.length&&(t=t.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")),a()(`#${t}`.trim())}catch(e){return!1}},x=e=>"left"===e||"flex-start"===e?0:"auto",T=e=>"right"===e||"flex-end"===e?0:"auto",B=e=>"left"===e?"flex-start":"right"===e?"flex-end":e,M=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=""!==e?e:void 0;return!n&&t&&E(t)?"#ffffff":n},A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#ffffff",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#222222";const a=""!==e?e:void 0;return!a&&t?E(t)?n:o:a},N=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(((n,o)=>({...n,[o]:I(e[o],t)})),{})},I=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""!==e&&void 0!==e&&t&&!String(e).match(/!important/i)?`${e} !important`:e},R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;const i=null!==t?t:e=>(0,l.lowerFirst)(e),c=void 0===e[i(o)]?"":e[i(o)];return""!==c?a?(0,s.sprintf)(a.replace(/%([sd])%/,"%$1%%"),c):c:r}},P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{min:n=Number.NEGATIVE_INFINITY,max:o=Number.POSITIVE_INFINITY}=t;if(""!==e){const t=(0,l.clamp)(e,parseFloat(n),parseFloat(o));if(!isNaN(t))return parseFloat(t)!==parseFloat(e)?t:void 0}},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"marginBottom",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"%spx",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const r="boolean"==typeof l?{important:l}:l,{important:i=!1,inherit:c=!0,inheritTabletMax:d,inheritTabletMin:u,inheritMobileMax:p,inheritMobileMin:h}=r,g=R(a);if(c){const a=g((0,s.sprintf)(t,""),o),l=g((0,s.sprintf)(t,"Tablet"),o),r=g((0,s.sprintf)(t,"Mobile"),o),c=P(g((0,s.sprintf)(t,"")),{min:u,max:d}),m=P(g((0,s.sprintf)(t,"")),{min:h,max:p});return[{[e]:{[n]:I(a,i)},tabletOnly:{[e]:{[n]:I(l||c&&(0,s.sprintf)(o,c),i)}},mobile:{[e]:{[n]:I(r||m&&(0,s.sprintf)(o,m),i)}}}]}return[{desktopOnly:{[e]:{[n]:I(g((0,s.sprintf)(t,""),o),i)}},tabletOnly:{[e]:{[n]:I(g((0,s.sprintf)(t,"Tablet"),o),i)}},mobile:{[e]:{[n]:I(g((0,s.sprintf)(t,"Mobile"),o),i)}}}]},H=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=R(n),a=o("contentAlign"),l=o("TabletContentAlign"),r=o("MobileContentAlign"),i=o((0,s.sprintf)(t,"")),c=o((0,s.sprintf)(t,"Tablet")),d=o((0,s.sprintf)(t,"Mobile"));return[{[e]:N({marginLeft:i||a?x(i||a):void 0,marginRight:i||a?T(i||a):void 0}),tablet:{[e]:N({marginLeft:c||l?x(c||l):void 0,marginRight:c||l?T(c||l):void 0})},mobile:{[e]:N({marginLeft:d||r?x(d||r):void 0,marginRight:d||r?T(d||r):void 0})}}]},z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%s",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"marginBottom",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"%spx",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return[{editor:O(e,t,n,o,a,l)[0]}]},L=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^([a-z])/,(e=>e.toUpperCase()))},6750:(e,t,n)=>{"use strict";n.d(t,{c:()=>l});var o=n(7741),a=n(8085);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:", ";const l=[];return e.fontFamily&&l.push((0,o.jh)(e.fontFamily)),e.fontSize&&l.push(`${e.fontSize}${e.fontSizeUnit||"px"}`),"tablet"===t&&e.tabletFontSize?(e.fontSize&&l.pop(),l.push(`${e.tabletFontSize}${e.tabletFontSizeUnit||"px"}`)):"mobile"===t&&(e.tabletFontSize||e.mobileFontSize)&&(e.fontSize&&l.pop(),e.mobileFontSize?l.push(`${e.mobileFontSize}${e.mobileFontSizeUnit||"px"}`):l.push(`${e.tabletFontSize}${e.tabletFontSizeUnit||"px"}`)),e.fontWeight&&l.push(e.fontWeight),e.textTransform&&l.push((0,a.upperFirst)(e.textTransform)),l.map((e=>{if(e.includes("var(")){var t;const n=null===(t=e.match(/var\(([^\),]*)/))||void 0===t?void 0:t[1];return(0,a.startCase)((0,a.last)(n.split("--")))}return e})).join(n)}},9741:(e,t,n)=>{"use strict";n.d(t,{k:()=>s,Z:()=>c});var o=n(1205),a=n(9719),l=n(8085),r=n(8003);const i=e=>"string"==typeof e&&e.startsWith("var"),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"desktop",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c=t=>(0,l.camelCase)((0,r.sprintf)(e,t)),d=(0,a.CA)(n,c,""),{importantSize:u=!1,important:p=!0,inherit:h=!0,inheritMax:g=50,inheritMin:m}=s;let v={};const b=d("FontSize"),f=d("TabletFontSize"),k=d("MobileFontSize"),y=i(b)?"":d("FontSizeUnit")||"px",_=i(f)?"":d("TabletFontSizeUnit")||"px",C=i(k)?"":d("MobileFontSizeUnit")||"px";if("tablet"!==t&&"mobile"!==t)v={fontFamily:""!==d("FontFamily")?(0,o.getFontFamily)(d("FontFamily")):void 0,fontSize:""!==b?(0,o.appendImportant)(`${b}${y}`,u):void 0,fontWeight:""!==d("FontWeight")?d("FontWeight"):void 0,textTransform:""!==d("TextTransform")?d("TextTransform"):void 0,letterSpacing:""!==d("LetterSpacing")?`${d("LetterSpacing")}px`:void 0,lineHeight:""!==d("LineHeight")?`${d("LineHeight")}${d("LineHeightUnit")||"em"}`:void 0};else if("tablet"===t){if(v={lineHeight:""!==d("TabletLineHeight")?`${d("TabletLineHeight")}${d("TabletLineHeightUnit")||"em"}`:void 0,letterSpacing:""!==d("TabletLetterSpacing")?`${d("TabletLetterSpacing")}px`:void 0},h){const e=(0,a.ES)(b,{min:m,max:g});e&&(v.fontSize=`${e}${d("FontSizeUnit")||"px"}`)}f&&(v.fontSize=d("TabletFontSize",`%s${_}`))}else{if(v={lineHeight:""!==d("MobileLineHeight")?`${d("MobileLineHeight")}${d("MobileLineHeightUnit")||"em"}`:void 0,letterSpacing:""!==d("MobileLetterSpacing")?`${d("MobileLetterSpacing")}px`:void 0},h){const e=(0,a.ES)(b,{min:m,max:g});e&&(v.fontSize=`${e}${d("FontSizeUnit")||"px"}`);const t=(0,a.ES)(f,{min:m,max:g});t?v.fontSize=`${t}${d("TabletFontSizeUnit")||"px"}`:(e||f)&&(v.fontSize=void 0)}k&&(v.fontSize=d("MobileFontSize",`%s${C}`))}return p?(0,o.appendImportantAll)(v):v},c=s},1991:(e,t)=>{var n;!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var n=t.length,o=0;o<n;++o)a(e,t[o])}e.prototype=Object.create(null);var n={}.hasOwnProperty,o=/\s+/;function a(e,a){if(a){var l=typeof a;"string"===l?function(e,t){for(var n=t.split(o),a=n.length,l=0;l<a;++l)e[n[l]]=!0}(e,a):Array.isArray(a)?t(e,a):"object"===l?function(e,t){if(t.toString===Object.prototype.toString)for(var o in t)n.call(t,o)&&(e[o]=!!t[o]);else e[t.toString()]=!0}(e,a):"number"===l&&function(e,t){e[t]=!0}(e,a)}}return function(){for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];var l=new e;t(l,o);var r=[];for(var i in l)l[i]&&r.push(i);return r.join(" ")}}();e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},4184:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var r=a.apply(null,n);r&&e.push(r)}}else if("object"===l)if(n.toString===Object.prototype.toString)for(var i in n)o.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},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,n)=>{"use strict";var o=n(2409);e.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,o,a,l,r=e[0]/360,i=e[1]/100,s=e[2]/100;if(0===i)return[l=255*s,l,l];t=2*s-(n=s<.5?s*(1+i):s+i-s*i),a=[0,0,0];for(var c=0;c<3;c++)(o=r+1/3*-(c-1))<0?o++:o>1&&o--,l=6*o<1?t+6*(n-t)*o:2*o<1?n:3*o<2?t+(n-t)*(2/3-o)*6:t,a[c]=255*l;return a}},o.hsl=function(e){var t,n,o=e[0]/255,a=e[1]/255,l=e[2]/255,r=Math.min(o,a,l),i=Math.max(o,a,l),s=i-r;return i===r?t=0:o===i?t=(a-l)/s:a===i?t=2+(l-o)/s:l===i&&(t=4+(o-a)/s),(t=Math.min(60*t,360))<0&&(t+=360),n=(r+i)/2,[t,100*(i===r?0:n<=.5?s/(i+r):s/(2-i-r)),100*n]}},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 n,o;void 0===(o="function"==typeof(n=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,n,o=e.replace(/^v/,"").replace(/\+.*$/,""),a=(n="-",-1===(t=o).indexOf(n)?t.length:t.indexOf(n)),l=o.substring(0,a).split(".");return l.push(o.substring(a+1)),l}function n(e){return isNaN(Number(e))?e:Number(e)}function o(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 a(e,a){[e,a].forEach(o);for(var l=t(e),r=t(a),i=0;i<Math.max(l.length-1,r.length-1);i++){var s=parseInt(l[i]||0,10),c=parseInt(r[i]||0,10);if(s>c)return 1;if(c>s)return-1}var d=l[l.length-1],u=r[r.length-1];if(d&&u){var p=d.split(".").map(n),h=u.split(".").map(n);for(i=0;i<Math.max(p.length,h.length);i++){if(void 0===p[i]||"string"==typeof h[i]&&"number"==typeof p[i])return-1;if(void 0===h[i]||"string"==typeof p[i]&&"number"==typeof h[i])return 1;if(p[i]>h[i])return 1;if(h[i]>p[i])return-1}}else if(d||u)return d?-1:1;return 0}var l=[">",">=","=","<","<="],r={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return a.validate=function(t){return"string"==typeof t&&e.test(t)},a.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===l.indexOf(e))throw new TypeError("Invalid operator, expected one of "+l.join("|"))}(n);var o=a(e,t);return r[n].indexOf(o)>-1},a})?n.apply(t,[]):n)||(e.exports=o)},4863:function(e){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)};var t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?r((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,o){return e.concat(t).map((function(e){return n(e,o)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function l(e,t,o){var l={};return o.isMergeableObject(e)&&a(e).forEach((function(t){l[t]=n(e[t],o)})),a(t).forEach((function(a){o.isMergeableObject(t[a])&&e[a]?l[a]=function(e,t){if(!t.customMerge)return r;var n=t.customMerge(e);return"function"==typeof n?n:r}(a,o)(e[a],t[a],o):l[a]=n(t[a],o)})),l}function r(t,a,r){(r=r||{}).arrayMerge=r.arrayMerge||o,r.isMergeableObject=r.isMergeableObject||e;var i=Array.isArray(a);return i===Array.isArray(t)?i?r.arrayMerge(t,a,r):l(t,a,r):n(a,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,n){return r(e,n,t)}),{})},r}()},4063:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,a,l;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(a=o;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(l=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=o;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,l[a]))return!1;for(a=o;0!=a--;){var r=l[a];if(!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}},1143:e=>{"use strict";e.exports=function(e,t,n,o,a,l,r,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,l,r,i],d=0;(s=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},4017:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}},6537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(7193);t.default=o.isDarkColor,e.exports=t.default},7193:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDarkColor=void 0;var o=n(4017);t.isDarkColor=function(e,t){if(t&&t.override){var n=Object.keys(t.override).find((function(t){return t.toLowerCase()===e.toLowerCase()}));if(void 0!==n)return t.override[n]}var a=(0,o.hexToRgb)(e),l=[a.r/255,a.g/255,a.b/255].map((function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*l[0]+.7152*l[1]+.0722*l[2]<=.179}},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,l){for(var r,i,s=a(e),c=1;c<arguments.length;c++){for(var d in r=Object(arguments[c]))n.call(r,d)&&(s[d]=r[d]);if(t){i=t(r);for(var u=0;u<i.length;u++)o.call(r,i[u])&&(s[i[u]]=r[i[u]])}}return s}},2703:(e,t,n)=>{"use strict";var o=n(414);function a(){}function l(){}l.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,l,r){if(r!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:a};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8394:(e,t,n)=>{"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(7294),r=u(l),i=u(n(5697)),s=u(n(1444)),c=u(n(8497)),d=n(7581);function u(e){return e&&e.__esModule?e:{default:e}}var p=function(){return!0},h=function(e){function t(e){var n=e.alwaysRenderSuggestions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return g.call(o),o.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},o.justPressedUpDown=!1,o.justMouseEntered=!1,o.pressedSuggestion=null,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"componentWillReceiveProps",value:function(e){(0,s.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.suggestions,a=n.onSuggestionHighlighted,l=n.highlightFirstSuggestion;if(!(0,s.default)(o,e.suggestions)&&o.length>0&&l)this.highlightFirstSuggestion();else if(a){var r=this.getHighlightedSuggestion();r!=t.highlightedSuggestion&&a({suggestion:r})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var o=this;this.setState((function(a){var l=a.valueBeforeUpDown;return null===t?l=null:null===l&&void 0!==n&&(l=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:o.getSuggestion(e,t),valueBeforeUpDown:l}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,o=n.suggestions,a=n.multiSection,l=n.getSectionSuggestions;return a?l(o[e])[t]:o[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var o=this.props.inputProps,a=o.value,l=o.onChange;t!==a&&l(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,o=e.shouldRenderSuggestions,a=n.value;return t.length>0&&o(a)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,a=t.renderInputComponent,l=t.onSuggestionsFetchRequested,i=t.renderSuggestion,s=t.inputProps,u=t.multiSection,h=t.renderSectionTitle,g=t.id,m=t.getSectionSuggestions,v=t.theme,b=t.getSuggestionValue,f=t.alwaysRenderSuggestions,k=t.highlightFirstSuggestion,y=this.state,_=y.isFocused,C=y.isCollapsed,w=y.highlightedSectionIndex,S=y.highlightedSuggestionIndex,E=y.valueBeforeUpDown,x=f?p:this.props.shouldRenderSuggestions,T=s.value,B=s.onFocus,M=s.onKeyDown,A=this.willRenderSuggestions(this.props),N=f||_&&!C&&A,I=N?n:[],R=o({},s,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=x(T);e.setState({isFocused:!0,isCollapsed:!n}),B&&B(t),n&&l({value:T,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,a=x(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(o({},k?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!a})),a?l({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,o){var a=t.keyCode;switch(a){case 40:case 38:if(C)x(T)&&(l({value:T,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var r,i=o.newHighlightedSectionIndex,s=o.newHighlightedItemIndex;r=null===s?null===E?T:E:e.getSuggestionValueByIndex(i,s),e.updateHighlightedSuggestion(i,s,T),e.maybeCallOnChange(t,r,40===a?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var c=e.getHighlightedSuggestion();if(N&&!f&&e.closeSuggestions(),null!=c){var d=b(c);e.maybeCallOnChange(t,d,"enter"),e.onSuggestionSelected(t,{suggestion:c,suggestionValue:d,suggestionIndex:S,sectionIndex:w,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:N&&t.preventDefault();var u=N&&!f;null===E?u||(e.maybeCallOnChange(t,"","escape"),x("")?l({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,E,"escape"),u?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}M&&M(t)}}),P={query:this.getQuery()};return r.default.createElement(c.default,{multiSection:u,items:I,renderInputComponent:a,renderItemsContainer:this.renderSuggestionsContainer,renderItem:i,renderItemData:P,renderSectionTitle:h,getSectionItems:m,highlightedSectionIndex:w,highlightedItemIndex:S,inputProps:R,itemProps:this.itemProps,theme:(0,d.mapToAutowhateverTheme)(v),id:g,ref:this.storeAutowhateverRef})}}]),t}(l.Component);h.propTypes={suggestions:i.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if("function"!=typeof e[t])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:i.default.func,onSuggestionHighlighted:i.default.func,renderInputComponent:i.default.func,renderSuggestionsContainer:i.default.func,getSuggestionValue:i.default.func.isRequired,renderSuggestion:i.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n.hasOwnProperty("value"))throw new Error("'inputProps' must have 'value'.");if(!n.hasOwnProperty("onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:i.default.func,alwaysRenderSuggestions:i.default.bool,multiSection:i.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:i.default.bool,highlightFirstSuggestion:i.default.bool,theme:i.default.object,id:i.default.string},h.defaultProps={renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:d.defaultTheme,id:"1"};var g=function(){var e=this;this.onDocumentMouseDown=function(t){e.justClickedOnSuggestionsContainer=!1;for(var n=t.detail&&t.detail.target||t.target;null!==n&&n!==document;){if(null!==n.getAttribute("data-suggestion-index"))return;if(n===e.suggestionsContainer)return void(e.justClickedOnSuggestionsContainer=!0);n=n.parentNode}},this.storeAutowhateverRef=function(t){null!==t&&(e.autowhatever=t)},this.onSuggestionMouseEnter=function(t,n){var o=n.sectionIndex,a=n.itemIndex;e.updateHighlightedSuggestion(o,a),t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!0),e.justMouseEntered=!0,setTimeout((function(){e.justMouseEntered=!1}))},this.highlightFirstSuggestion=function(){e.updateHighlightedSuggestion(e.props.multiSection?0:null,0)},this.onDocumentMouseUp=function(){e.pressedSuggestion&&!e.justSelectedSuggestion&&e.input.focus(),e.pressedSuggestion=null},this.onSuggestionMouseDown=function(t){e.justSelectedSuggestion||(e.justSelectedSuggestion=!0,e.pressedSuggestion=t.target)},this.onSuggestionsClearRequested=function(){var t=e.props.onSuggestionsClearRequested;t&&t()},this.onSuggestionSelected=function(t,n){var o=e.props,a=o.alwaysRenderSuggestions,l=o.onSuggestionSelected,r=o.onSuggestionsFetchRequested;l&&l(t,n),a?r({value:n.suggestionValue,reason:"suggestion-selected"}):e.onSuggestionsClearRequested(),e.resetHighlightedSuggestion()},this.onSuggestionClick=function(t){var n=e.props,o=n.alwaysRenderSuggestions,a=n.focusInputOnSuggestionClick,l=e.getSuggestionIndices(e.findSuggestionElement(t.target)),r=l.sectionIndex,i=l.suggestionIndex,s=e.getSuggestion(r,i),c=e.props.getSuggestionValue(s);e.maybeCallOnChange(t,c,"click"),e.onSuggestionSelected(t,{suggestion:s,suggestionValue:c,suggestionIndex:i,sectionIndex:r,method:"click"}),o||e.closeSuggestions(),!0===a?e.input.focus():e.onBlur(),setTimeout((function(){e.justSelectedSuggestion=!1}))},this.onBlur=function(){var t=e.props,n=t.inputProps,o=t.shouldRenderSuggestions,a=n.value,l=n.onBlur,r=e.getHighlightedSuggestion(),i=o(a);e.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!i}),l&&l(e.blurEvent,{highlightedSuggestion:r})},this.onSuggestionMouseLeave=function(t){e.resetHighlightedSuggestion(!1),e.justSelectedSuggestion&&t.target===e.pressedSuggestion&&(e.justSelectedSuggestion=!1)},this.onSuggestionTouchStart=function(){e.justSelectedSuggestion=!0},this.onSuggestionTouchMove=function(){e.justSelectedSuggestion=!1,e.pressedSuggestion=null,e.input.focus()},this.itemProps=function(t){return{"data-section-index":t.sectionIndex,"data-suggestion-index":t.itemIndex,onMouseEnter:e.onSuggestionMouseEnter,onMouseLeave:e.onSuggestionMouseLeave,onMouseDown:e.onSuggestionMouseDown,onTouchStart:e.onSuggestionTouchStart,onTouchMove:e.onSuggestionTouchMove,onClick:e.onSuggestionClick}},this.renderSuggestionsContainer=function(t){var n=t.containerProps,o=t.children;return(0,e.props.renderSuggestionsContainer)({containerProps:n,children:o,query:e.getQuery()})}};t.default=h},8808:(e,t,n)=>{"use strict";e.exports=n(8394).default},7581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},6514:(e,t,n)=>{"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(7294),r=p(l),i=p(n(5697)),s=p(n(2383)),c=p(n(8379)),d=p(n(1560)),u=p(n(7489));function p(e){return e&&e.__esModule?e:{default:e}}var h={},g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.storeInputReference=function(e){null!==e&&(n.input=e)},n.storeItemsContainerReference=function(e){null!==e&&(n.itemsContainer=e)},n.onHighlightedItemChange=function(e){n.highlightedItem=e},n.getItemId=function(e,t){return null===t?null:"react-autowhatever-"+n.props.id+"-"+(null===e?"":"section-"+e)+"-item-"+t},n.onFocus=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!0}),t.onFocus&&t.onFocus(e)},n.onBlur=function(e){var t=n.props.inputProps;n.setState({isInputFocused:!1}),t.onBlur&&t.onBlur(e)},n.onKeyDown=function(e){var t=n.props,o=t.inputProps,a=t.highlightedSectionIndex,l=t.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var r="ArrowDown"===e.key?"next":"prev",i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{!o&&i.return&&i.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(n.sectionIterator[r]([a,l]),2),s=i[0],c=i[1];o.onKeyDown(e,{newHighlightedSectionIndex:s,newHighlightedItemIndex:c});break;default:o.onKeyDown(e,{highlightedSectionIndex:a,highlightedItemIndex:l})}},n.highlightedItem=null,n.state={isInputFocused:!1},n.setSectionsItems(e),n.setSectionIterator(e),n.setTheme(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,s.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,c.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,o=n.id,a=n.items,l=n.renderItem,i=n.renderItemData,s=n.renderSectionTitle,c=n.highlightedSectionIndex,p=n.highlightedItemIndex,h=n.itemProps;return a.map((function(n,a){var g="react-autowhatever-"+o+"-",m=g+"section-"+a+"-",v=0===a;return r.default.createElement("div",t(m+"container","sectionContainer",v&&"sectionContainerFirst"),r.default.createElement(d.default,{section:n,renderSectionTitle:s,theme:t,sectionKeyPrefix:m}),r.default.createElement(u.default,{items:e.sectionsItems[a],itemProps:h,renderItem:l,renderItemData:i,sectionIndex:a,highlightedItemIndex:c===a?p:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:g,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,o=n.id,a=n.renderItem,l=n.renderItemData,i=n.highlightedSectionIndex,s=n.highlightedItemIndex,c=n.itemProps;return r.default.createElement(u.default,{items:e,itemProps:c,renderItem:a,renderItemData:l,highlightedItemIndex:null===i?s:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-"+o+"-"})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,o=t.scrollTop;n<o?o=n:n+e.offsetHeight>o+t.offsetHeight&&(o=n+e.offsetHeight-t.offsetHeight),o!==t.scrollTop&&(t.scrollTop=o)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,a=t.multiSection,l=t.renderInputComponent,i=t.renderItemsContainer,s=t.highlightedSectionIndex,c=t.highlightedItemIndex,d=this.state.isInputFocused,u=a?this.renderSections():this.renderItems(),p=null!==u,h=this.getItemId(s,c),g="react-autowhatever-"+n,m=o({role:"combobox","aria-haspopup":"listbox","aria-owns":g,"aria-expanded":p},e("react-autowhatever-"+n+"-container","container",p&&"containerOpen"),this.props.containerProps),v=l(o({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":g,"aria-activedescendant":h},e("react-autowhatever-"+n+"-input","input",p&&"inputOpen",d&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),b=i({containerProps:o({id:g,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:u});return r.default.createElement("div",m,v,b)}}]),t}(l.Component);g.propTypes={id:i.default.string,multiSection:i.default.bool,renderInputComponent:i.default.func,renderItemsContainer:i.default.func,items:i.default.array.isRequired,renderItem:i.default.func,renderItemData:i.default.object,renderSectionTitle:i.default.func,getSectionItems:i.default.func,containerProps:i.default.object,inputProps:i.default.object,itemProps:i.default.oneOfType([i.default.object,i.default.func]),highlightedSectionIndex:i.default.number,highlightedItemIndex:i.default.number,theme:i.default.oneOfType([i.default.object,i.default.array])},g.defaultProps={id:"1",multiSection:!1,renderInputComponent:function(e){return r.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:h,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:h,inputProps:h,itemProps:h,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}},t.default=g},6844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(7294),r=c(l),i=c(n(5697)),s=c(n(3130));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=function(e){function t(){var e,n,o;d(this,t);for(var a=arguments.length,l=Array(a),r=0;r<a;r++)l[r]=arguments[r];return n=o=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.storeItemReference=function(e){null!==e&&(o.item=e)},o.onMouseEnter=function(e){var t=o.props,n=t.sectionIndex,a=t.itemIndex;o.props.onMouseEnter(e,{sectionIndex:n,itemIndex:a})},o.onMouseLeave=function(e){var t=o.props,n=t.sectionIndex,a=t.itemIndex;o.props.onMouseLeave(e,{sectionIndex:n,itemIndex:a})},o.onMouseDown=function(e){var t=o.props,n=t.sectionIndex,a=t.itemIndex;o.props.onMouseDown(e,{sectionIndex:n,itemIndex:a})},o.onClick=function(e){var t=o.props,n=t.sectionIndex,a=t.itemIndex;o.props.onClick(e,{sectionIndex:n,itemIndex:a})},u(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,a=e.renderItem,l=e.renderItemData,i=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete i.sectionIndex,delete i.itemIndex,"function"==typeof i.onMouseEnter&&(i.onMouseEnter=this.onMouseEnter),"function"==typeof i.onMouseLeave&&(i.onMouseLeave=this.onMouseLeave),"function"==typeof i.onMouseDown&&(i.onMouseDown=this.onMouseDown),"function"==typeof i.onClick&&(i.onClick=this.onClick),r.default.createElement("li",o({role:"option"},i,{ref:this.storeItemReference}),a(n,o({isHighlighted:t},l)))}}]),t}(l.Component);p.propTypes={sectionIndex:i.default.number,isHighlighted:i.default.bool.isRequired,itemIndex:i.default.number.isRequired,item:i.default.any.isRequired,renderItem:i.default.func.isRequired,renderItemData:i.default.object.isRequired,onMouseEnter:i.default.func,onMouseLeave:i.default.func,onMouseDown:i.default.func,onClick:i.default.func},t.default=p},7489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),l=n(7294),r=d(l),i=d(n(5697)),s=d(n(6844)),c=d(n(3130));function d(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){var e,n,o;u(this,t);for(var a=arguments.length,l=Array(a),r=0;r<a;r++)l[r]=arguments[r];return n=o=p(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.storeHighlightedItemReference=function(e){o.props.onHighlightedItemChange(null===e?null:e.item)},p(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"shouldComponentUpdate",value:function(e){return(0,c.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,a=t.itemProps,l=t.renderItem,i=t.renderItemData,c=t.sectionIndex,d=t.highlightedItemIndex,u=t.getItemId,p=t.theme,h=t.keyPrefix,g=null===c?h:h+"section-"+c+"-",m="function"==typeof a;return r.default.createElement("ul",o({role:"listbox"},p(g+"items-list","itemsList")),n.map((function(t,n){var h=0===n,v=n===d,b=g+"item-"+n,f=m?a({sectionIndex:c,itemIndex:n}):a,k=o({id:u(c,n),"aria-selected":v},p(b,"item",h&&"itemFirst",v&&"itemHighlighted"),f);return v&&(k.ref=e.storeHighlightedItemReference),r.default.createElement(s.default,o({},k,{sectionIndex:c,isHighlighted:v,itemIndex:n,item:t,renderItem:l,renderItemData:i}))})))}}]),t}(l.Component);h.propTypes={items:i.default.array.isRequired,itemProps:i.default.oneOfType([i.default.object,i.default.func]),renderItem:i.default.func.isRequired,renderItemData:i.default.object.isRequired,sectionIndex:i.default.number,highlightedItemIndex:i.default.number,onHighlightedItemChange:i.default.func.isRequired,getItemId:i.default.func.isRequired,theme:i.default.func.isRequired,keyPrefix:i.default.string.isRequired},h.defaultProps={sectionIndex:null},t.default=h},1560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(7294),l=s(a),r=s(n(5697)),i=s(n(3130));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return c(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,a=e.sectionKeyPrefix,r=n(t);return r?l.default.createElement("div",o(a+"title","sectionTitle"),r):null}}]),t}(a.Component);u.propTypes={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},t.default=u},3130:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!0;var r={},i=void 0,s=void 0;for(i=0,s=o.length;i<s;i++)r[o[i]]=!0;for(i=0,s=a.length;i<s;i++){var c=a[i],d=e[c],u=t[c];if(d!==u){if(!r[c]||null===d||null===u||"object"!==(void 0===d?"undefined":n(d))||"object"!==(void 0===u?"undefined":n(u)))return!0;var p=Object.keys(d),h=Object.keys(u);if(p.length!==h.length)return!0;for(var g=0,m=p.length;g<m;g++){var v=p[g];if(d[v]!==u[v])return!0}}}return!1}},8497:(e,t,n)=>{"use strict";e.exports=n(6514).default},5112:function(e,t,n){"use strict";var o,a=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(5697)),i=l(n(7294)),s=function(e){function t(n){var o=e.call(this,n)||this;return o.resetDragging=function(){o.frameDragCounter=0,o.setState({draggingOverFrame:!1,draggingOverTarget:!1})},o.handleWindowDragOverOrDrop=function(e){e.preventDefault()},o.handleFrameDrag=function(e){if(t.eventHasFiles(e))return o.frameDragCounter+="dragenter"===e.type?1:-1,1===o.frameDragCounter?(o.setState({draggingOverFrame:!0}),void(o.props.onFrameDragEnter&&o.props.onFrameDragEnter(e))):0===o.frameDragCounter?(o.setState({draggingOverFrame:!1}),void(o.props.onFrameDragLeave&&o.props.onFrameDragLeave(e))):void 0},o.handleFrameDrop=function(e){o.state.draggingOverTarget||(o.resetDragging(),o.props.onFrameDrop&&o.props.onFrameDrop(e))},o.handleDragOver=function(e){t.eventHasFiles(e)&&(o.setState({draggingOverTarget:!0}),!t.isIE()&&o.props.dropEffect&&(e.dataTransfer.dropEffect=o.props.dropEffect),o.props.onDragOver&&o.props.onDragOver(e))},o.handleDragLeave=function(e){o.setState({draggingOverTarget:!1}),o.props.onDragLeave&&o.props.onDragLeave(e)},o.handleDrop=function(e){if(o.props.onDrop&&t.eventHasFiles(e)){var n=e.dataTransfer?e.dataTransfer.files:null;o.props.onDrop(n,e)}o.resetDragging()},o.handleTargetClick=function(e){o.props.onTargetClick&&o.props.onTargetClick(e),o.resetDragging()},o.stopFrameListeners=function(e){e&&(e.removeEventListener("dragenter",o.handleFrameDrag),e.removeEventListener("dragleave",o.handleFrameDrag),e.removeEventListener("drop",o.handleFrameDrop))},o.startFrameListeners=function(e){e&&(e.addEventListener("dragenter",o.handleFrameDrag),e.addEventListener("dragleave",o.handleFrameDrag),e.addEventListener("drop",o.handleFrameDrop))},o.frameDragCounter=0,o.state={draggingOverFrame:!1,draggingOverTarget:!1},o}return a(t,e),t.prototype.componentDidMount=function(){this.startFrameListeners(this.props.frame),this.resetDragging(),window.addEventListener("dragover",this.handleWindowDragOverOrDrop),window.addEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.componentDidUpdate=function(e){e.frame!==this.props.frame&&(this.resetDragging(),this.stopFrameListeners(e.frame),this.startFrameListeners(this.props.frame))},t.prototype.componentWillUnmount=function(){this.stopFrameListeners(this.props.frame),window.removeEventListener("dragover",this.handleWindowDragOverOrDrop),window.removeEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,o=e.targetClassName,a=e.draggingOverFrameClassName,l=e.draggingOverTargetClassName,r=this.state,s=r.draggingOverTarget,c=o;return r.draggingOverFrame&&(c+=" "+a),s&&(c+=" "+l),i.default.createElement("div",{className:n,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},i.default.createElement("div",{className:c,onClick:this.handleTargetClick},t))},t.isIE=function(){return"undefined"!=typeof window&&(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>0)},t.eventHasFiles=function(e){var t=!1;if(e.dataTransfer){var n=e.dataTransfer.types;for(var o in n)if("Files"===n[o]){t=!0;break}}return t},t.propTypes={className:r.default.string,targetClassName:r.default.string,draggingOverFrameClassName:r.default.string,draggingOverTargetClassName:r.default.string,onDragOver:r.default.func,onDragLeave:r.default.func,onDrop:r.default.func,onTargetClick:r.default.func,dropEffect:r.default.oneOf(["copy","move","link","none"]),frame:function(e,t,n){var o=e[t];return null==o?new Error("Warning: Required prop `"+t+"` was not specified in `"+n+"`"):o===document||o instanceof HTMLElement?void 0:new Error("Warning: Prop `"+t+"` must be one of the following: document, HTMLElement!")},onFrameDragEnter:r.default.func,onFrameDragLeave:r.default.func,onFrameDrop:r.default.func},t.defaultProps={dropEffect:"copy",frame:"undefined"==typeof window?void 0:window.document,className:"file-drop",targetClassName:"file-drop-target",draggingOverFrameClassName:"file-drop-dragging-over-frame",draggingOverTargetClassName:"file-drop-dragging-over-target"},t}(i.default.PureComponent);t.FileDrop=s},8379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a,l=(a=n(1894))&&a.__esModule?a:{default:a},r=function(e){return e};t.default=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{!o&&i.return&&i.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(Array.isArray(e)&&2===e.length?e:[e,null],2),n=t[0],a=t[1];return function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];var c=i.map((function(e){return n[e]})).filter(r);return"string"==typeof c[0]||"function"==typeof a?{key:e,className:a?a.apply(void 0,o(c)):c.join(" ")}:{key:e,style:l.default.apply(void 0,[{}].concat(o(c)))}}},e.exports=t.default},1894:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var a,l,r=n(e),i=1;i<arguments.length;i++){a=arguments[i],l=o(Object(a));for(var s=0;s<l.length;s++)r[l[s]]=a[l[s]]}return r}},2408:(e,t,n)=>{"use strict";var o=n(7418),a=60103,l=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var r=60109,i=60110,s=60112;t.Suspense=60113;var c=60115,d=60116;if("function"==typeof Symbol&&Symbol.for){var u=Symbol.for;a=u("react.element"),l=u("react.portal"),t.Fragment=u("react.fragment"),t.StrictMode=u("react.strict_mode"),t.Profiler=u("react.profiler"),r=u("react.provider"),i=u("react.context"),s=u("react.forward_ref"),t.Suspense=u("react.suspense"),c=u("react.memo"),d=u("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}function b(){}function f(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var k=f.prototype=new b;k.constructor=f,o(k,v.prototype),k.isPureReactComponent=!0;var y={current:null},_=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,n){var o,l={},r=null,i=null;if(null!=t)for(o in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(r=""+t.key),t)_.call(t,o)&&!C.hasOwnProperty(o)&&(l[o]=t[o]);var s=arguments.length-2;if(1===s)l.children=n;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];l.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===l[o]&&(l[o]=s[o]);return{$$typeof:a,type:e,key:r,ref:i,props:l,_owner:y.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var E=/\/+/g;function x(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 T(e,t,n,o,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 a:case l:s=!0}}if(s)return r=r(s=e),e=""===o?"."+x(s,0):o,Array.isArray(r)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),T(r,t,n,"",(function(e){return e}))):null!=r&&(S(r)&&(r=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(E,"$&/")+"/")+e)),t.push(r)),1;if(s=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var d=o+x(i=e[c],c);s+=T(i,t,n,d,r)}else if(d=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof d)for(e=d.call(e),c=0;!(i=e.next()).done;)s+=T(i=i.value,t,n,d=o+x(i,c++),r);else if("object"===i)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function B(e,t,n){if(null==e)return e;var o=[],a=0;return T(e,o,"","",(function(e){return t.call(n,e,a++)})),o}function M(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var A={current:null};function N(){var e=A.current;if(null===e)throw Error(h(321));return e}var I={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:B,forEach:function(e,t,n){B(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return B(e,(function(){t++})),t},toArray:function(e){return B(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var l=o({},e.props),r=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=y.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)_.call(t,d)&&!C.hasOwnProperty(d)&&(l[d]=void 0===t[d]&&void 0!==c?c[d]:t[d])}var d=arguments.length-2;if(1===d)l.children=n;else if(1<d){c=Array(d);for(var u=0;u<d;u++)c[u]=arguments[u+2];l.children=c}return{$$typeof:a,type:e.type,key:r,ref:i,props:l,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},7294:(e,t,n)=>{"use strict";e.exports=n(2408)},2383:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,a=!1,l=void 0;try{for(var r,i=e[Symbol.iterator]();!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){a=!0,l=e}finally{try{!o&&i.return&&i.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,o=e.multiSection;function a(e){var a=t(e,2),l=a[0],r=a[1];return o?null===r||r===n[l]-1?null===(l=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(l))?[null,null]:[l,0]:[l,r+1]:0===n||r===n-1?[null,null]:null===r?[null,0]:[null,r+1]}return{next:a,prev:function(e){var a=t(e,2),l=a[0],r=a[1];return o?null===r||0===r?null===(l=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(l))?[null,null]:[l,n[l]-1]:[l,r-1]:0===n||0===r?[null,null]:null===r?[null,n-1]:[null,r-1]},isLast:function(e){return null===a(e)[1]}}}},1444:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},3726:function(e,t,n){"use strict";var o;!function(a){if("function"!=typeof l){var l=function(e){return e};l.nonNative=!0}const r=l("plaintext"),i=l("html"),s=l("comment"),c=/<(\w*)>/g,d=/<\/?([^\s\/>]+)/;function u(e,t,n){return h(e=e||"",p(t=t||[],n=n||""))}function p(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let n;for(;n=c.exec(e);)t.add(n[1])}else l.nonNative||"function"!=typeof e[l.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function h(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let n=t.allowable_tags,o=t.tag_replacement,a=t.state,l=t.tag_buffer,c=t.depth,d=t.in_quote_char,u="";for(let t=0,p=e.length;t<p;t++){let p=e[t];if(a===r)"<"===p?(a=i,l+=p):u+=p;else if(a===i)switch(p){case"<":if(d)break;c++;break;case">":if(d)break;if(c){c--;break}d="",a=r,l+=">",n.has(g(l))?u+=l:u+=o,l="";break;case'"':case"'":d=p===d?"":d||p,l+=p;break;case"-":"<!-"===l&&(a=s),l+=p;break;case" ":case"\n":if("<"===l){a=r,u+="< ",l="";break}l+=p;break;default:l+=p}else a===s&&(">"===p?("--"==l.slice(-2)&&(a=r),l=""):l+=p)}return t.state=a,t.tag_buffer=l,t.depth=c,t.in_quote_char=d,u}function g(e){let t=d.exec(e);return t?t[1].toLowerCase():null}u.init_streaming_mode=function(e,t){let n=p(e=e||[],t=t||"");return function(e){return h(e||"",n)}},void 0===(o=function(){return u}.call(t,n,t,e))||(e.exports=o)}()},2473:e=>{"use strict";e.exports=function(){}},8085:e=>{"use strict";e.exports=lodash},910:e=>{"use strict";e.exports=stackable},2814:e=>{"use strict";e.exports=wp.api},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},2610:e=>{"use strict";e.exports=wp.element},7811:e=>{"use strict";e.exports=wp.escapeHtml},3882:e=>{"use strict";e.exports=wp.hooks},8003:e=>{"use strict";e.exports=wp.i18n},1398:e=>{"use strict";e.exports=wp.plugins},3420:e=>{"use strict";e.exports=wp.tokenList},1368:e=>{"use strict";e.exports=wp.url},7462:(e,t,n)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(null,arguments)}n.d(t,{Z:()=>o})},4898:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(8874);const a=function(e){var t,n,a=[],r=1;if("string"==typeof e)if(o[e])a=o[e].slice(),n="rgb";else if("transparent"===e)r=0,n="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=(d=e.slice(1)).length;r=1,i<=4?(a=[parseInt(d[0]+d[0],16),parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16)],4===i&&(r=parseInt(d[3]+d[3],16)/255)):(a=[parseInt(d[0]+d[1],16),parseInt(d[2]+d[3],16),parseInt(d[4]+d[5],16)],8===i&&(r=parseInt(d[6]+d[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),n="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],c="rgb"===s,d=s.replace(/a$/,"");n=d,i="cmyk"===d?4:"gray"===d?1:3,a=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===i?parseFloat(e)/100:"rgb"===d?255*parseFloat(e)/100:parseFloat(e);if("h"===d[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==l[e])return l[e]}return parseFloat(e)})),s===d&&a.push(1),r=c||void 0===a[i]?1:a[i],a=a.slice(0,i)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(a=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),n=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(a=[e[0],e[1],e[2]],n="rgb",r=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(n="rgb",a=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="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]),r=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(r/=100)):(n="rgb",a=[e>>>16,(65280&e)>>>8,255&e]);return{space:n,values:a,alpha:r}};var l={red:0,orange:60,yellow:120,green:180,blue:240,purple:300},r=n(2409),i=n(5985);function s(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var n=a(e);if(!n.space)return[];const o="h"===n.space[0]?i.min:r.min,l="h"===n.space[0]?i.max:r.max;return(t=Array(3))[0]=Math.min(Math.max(n.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(n.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(n.values[2],o[2]),l[2]),"h"===n.space[0]&&(t=i.rgb(t)),t.push(Math.min(Math.max(n.alpha,0),1)),t}},424:e=>{"use strict";e.exports=JSON.parse('{"call-to-action":{"heading_placeholder":"Transform Your Business Today","description_placeholder":"Unlock your full potential with our cutting-edge solutions. We empower businesses of all sizes to achieve their goals through innovative technology and unparalleled support.","kicker_placeholder":"Seize the Opportunity","btn-1_placeholder":"Get Started Now","btn-2_placeholder":"Learn More","item-1_placeholder":"Streamline your operations and boost efficiency.","item-2_placeholder":"Gain actionable insights with advanced analytics."},"card":{"heading_placeholder":"Unlock Your Full Potential","long-description_placeholder":"At XYZ Company, we partner for your growth. Our solutions leverage cutting-edge technology, provide expert guidance, and ensure seamless integration for measurable results. We empower you with the tools and support to confidently navigate challenges, building your success on innovation and reliability.","description_placeholder":"Discover how our comprehensive solutions empower your journey.","subtitle_placeholder":"Your Path to Innovation and Growth","title_placeholder":"Solutions Designed to Propel You Forward","c-btn_placeholder":"Learn More","c-title-1_placeholder":"Innovative Solutions","c-subtitle-1_placeholder":"Cutting-Edge Technology","c-description-1_placeholder":"Discover how our advanced solutions can revolutionize your approach, providing efficiency and unprecedented growth.","c-title-2_placeholder":"Expert Guidance","c-subtitle-2_placeholder":"Personalized Support","c-description-2_placeholder":"Benefit from our team\'s extensive knowledge and receive tailored advice to meet your unique challenges.","c-title-3_placeholder":"Seamless Integration","c-subtitle-3_placeholder":"Effortless Setup","c-description-3_placeholder":"Our products are designed for easy integration, ensuring a smooth transition and immediate productivity.","c-title-4_placeholder":"Measurable Results","c-subtitle-4_placeholder":"Data-Driven Outcomes","c-description-4_placeholder":"Track your progress with comprehensive analytics and see the tangible impact of our services on your goals.","c-title-5_placeholder":"Community & Support","c-subtitle-5_placeholder":"Connect and Collaborate","c-description-5_placeholder":"Join a thriving community of users and access dedicated support to help you every step of the way.","c-title-6_placeholder":"Future-Proof Design","c-subtitle-6_placeholder":"Scalable and Adaptable","c-description-6_placeholder":"Invest in solutions built for tomorrow, with the flexibility to grow and evolve with your needs."},"carousel":{"subheading_placeholder":"Learn and Grow","heading_placeholder":"Explore Our Featured Resources","description_placeholder":"Get inspired, sharpen your skills, and stay ahead with curated content from our team and industry experts.","kicker_placeholder":"Learn and Grow","btn_placeholder":"View All Resources","title-1_placeholder":"The Beginner\'s Guide to UX Design","text-1_placeholder":"A friendly introduction to core UX principles and design thinking.","title-2_placeholder":"Scaling Your App Without the Stress","text-2_placeholder":"Best practices for growing your platform while keeping performance sharp.","title-3_placeholder":"Building a Brand That Connects","text-3_placeholder":"Learn how to craft a brand identity that resonates with real people.","title-4_placeholder":"Marketing Trends You Can\'t Ignore","text-4_placeholder":"Stay updated with actionable insights from today\'s digital landscape."},"contact":{"heading_placeholder":"Get in Touch With Us","kicker_placeholder":"Contact Us","description_placeholder":"Whether you have questions, need support, or want to explore opportunities—our team is just a message away.","btn_placeholder":"Learn More","title-1_placeholder":"Job Opportunities","text-1_placeholder":"Join our growing team and help us build the future—one line of code at a time.","title-2_placeholder":"Support","text-2_placeholder":"Reach out to our friendly support team for quick assistance with any technical or service-related concerns.","title-3_placeholder":"Sales","text-3_placeholder":"Discuss your goals with our sales team and discover how our solutions can meet your business needs.","cta_placeholder":"Contact Us"},"faq":{"heading_placeholder":"Frequently Asked Questions (FAQs)","description_placeholder":"Find answers to the most common questions about [Your Product/Service]. If you can\'t find what you\'re looking for here, please contact us.","kicker_placeholder":"Quick Answers to Your Top Questions","question-1_placeholder":"What features does your service offer?","answer-1_placeholder":"Our service offers a comprehensive set of features designed to help you manage your tasks. Key features include Feature A, Feature B, and Feature C. You can find a full list and details on our Features Page.","question-2_placeholder":"Is our Service integrated with other products?","answer-2_placeholder":"Yes, our Service offers integrations with various popular products and services to streamline your workflow. We currently integrate with Product A, Product B, and Product C. You can find more information about our current integrations and how to set them up on our [Integrations Page Link]. We are continuously working on adding more integrations.","question-3_placeholder":"What are the pricing options involved?","answer-3_placeholder":"We offer several pricing options to suit different needs. You can view a detailed breakdown of our plans and features on our Pricing Page. We have a free tier, monthly subscriptions, and annual plans.","question-4_placeholder":"What payment methods do you accept?","answer-4_placeholder":"We accept various convenient payment methods, including major credit cards (Visa, MasterCard, American Express), and in some cases, bank transfers. You can select your preferred payment method during the checkout or subscription process.","question-5_placeholder":"What is your cancellation/refund policy?","answer-5_placeholder":"Our cancellation policy allows you to cancel your subscription at any time through your account settings. Regarding refunds, our policy is we offer a 30-day money-back guarantee. Please refer to our Terms of Service Page for complete details.","question-6_placeholder":"What are your hours of operation?","answer-6_placeholder":"Our standard hours of operation are Monday to Friday, 9:00 AM to 5:00 PM in Pacific Standard Time (PST).","question-7_placeholder":"How can I contact customer support?","answer-7_placeholder":"You can contact our customer support team through several channels: Submit a request via our Support Contact Form. Email us directly at support@email.com. Use our live chat feature available on our website during business hours. Our support hours are Monday-Friday, 9 AM - 5 PM Pacific Standard Time (PST).","question-8_placeholder":"How can I provide feedback?","answer-8_placeholder":"We highly value your feedback as it helps us improve. You can provide feedback through several methods: Use the feedback form on our website, or email your suggestions or comments to feedback@email.com. You can also participate in surveys. We review all feedback submitted."},"featured-product":{"kicker_placeholder":"Discover Innovation","product-name-1_placeholder":"Smart Lamp","product-description-1_placeholder":"An intelligent lamp that adapts to your mood and environment with customizable ambiance and smart home integration.","feature-1_placeholder":"Adaptive Lighting","feature-description-1_placeholder":"Adjusts brightness and color automatically.","feature-2_placeholder":"Voice Control","feature-description-2_placeholder":"Hands-free operation with smart assistants.","feature-3_placeholder":"Personalized Scenes","feature-description-3_placeholder":"Create and save custom lighting presets.","feature-4_placeholder":"Energy Efficient","feature-description-4_placeholder":"Low power consumption with LED technology.","feature-5_placeholder":"Sleek Design","feature-description-5_placeholder":"Modern aesthetic to complement any decor.","feature-6_placeholder":"Smart Connectivity","feature-description-6_placeholder":"Connects to Wi-Fi for remote control.","product-name-2_placeholder":"Ergonomic Chair","product-description-2_placeholder":"A chair designed for ultimate comfort and posture support, enhancing productivity.","product-name-3_placeholder":"Portable Projector","product-description-3_placeholder":"A compact and powerful projector for cinematic quality anywhere.","btn-1_placeholder":"Buy now","btn-2_placeholder":"Add to Favorites"},"footer":{"heading_placeholder":"Contact us","kicker_placeholder":"Stay connected","company-description_placeholder":"InnovateCo creates cutting-edge solutions for modern living.","company_placeholder":"InnovateCo","tagline_placeholder":"Innovation for a Better Tomorrow","cta_placeholder":"Join our Community","cta-btn_placeholder":"Sign up now","btn-1_placeholder":"Subscribe","btn-2_placeholder":"Watch Demo","menu-1_placeholder":"Main","menu-2_placeholder":"About","link-1_placeholder":"Our Story","link-2_placeholder":"Team","link-3_placeholder":"Careers","menu-3_placeholder":"Products","link-4_placeholder":"Shop All","link-5_placeholder":"Bestsellers","link-6_placeholder":"New Releases","menu-4_placeholder":"Blog","link-7_placeholder":"Latest Articles","link-8_placeholder":"Categories","link-9_placeholder":"Archives","menu-5_placeholder":"Support","link-10_placeholder":"FAQs","link-11_placeholder":"Contact Us","link-12_placeholder":"Shipping & Returns"},"gallery":{"heading_placeholder":"Nature\'s Grand Canvas","description_placeholder":"Explore breathtaking landscapes and the serene beauty of our planet. Each image unveils a unique story from the heart of nature.","kicker_placeholder":"Earth\'s Masterpieces","btn_placeholder":"Explore More","img-subtitle-1_placeholder":"Dolomite Majesty","img-title-1_placeholder":"Peaks of Tre Cime di Lavaredo","img-description-1_placeholder":"Towering rock formations of the Dolomites, including the formidable Tre Cime di Lavaredo, emerge through a misty sky, showcasing raw geological power.","img-subtitle-2_placeholder":"Alpine Valleys","img-title-2_placeholder":"South Tyrol\'s Autumn Embrace","img-description-2_placeholder":"A tranquil scene in South Tyrol, Italy, where golden larch trees dot verdant hillsides, backed by snow-dusted mountains under a soft light.","img-subtitle-3_placeholder":"Winter Wonderland","img-title-3_placeholder":"Phelps Lake Winter Reflection","img-description-3_placeholder":"A serene winter landscape featuring Phelps Lake, perfectly mirroring snow-covered mountains and frost-dusted pine trees under a clear, crisp sky.","img-subtitle-4_placeholder":"Twilight Glow","img-title-4_placeholder":"Valley Lights at Dusk","img-description-4_placeholder":"As twilight settles, a valley below glows with the golden lights of a town, nestled against dark, silhouetted mountains under a streaked sky.","img-subtitle-5_placeholder":"Ethereal Forest","img-title-5_placeholder":"Misty Woodland Pathways","img-description-5_placeholder":"A hauntingly beautiful forest shrouded in mist, where tall, bare trees stand solemnly above a carpet of rust-colored ferns, creating a sense of deep mystery.","img-subtitle-6_placeholder":"Autumn Slopes","img-title-6_placeholder":"Golden Larches of the Alps","img-description-6_placeholder":"A stunning view across a mountain valley where vibrant golden larch trees cascade down slopes, contrasting with darker evergreens and distant peaks.","img-subtitle-7_placeholder":"Dolomite Grandeur","img-title-7_placeholder":"Pale di San Martino\'s Fiery Peaks","img-description-7_placeholder":"The dramatic, sun-kissed peaks of the Pale di San Martino in the Dolomites catch the warm light, revealing their rugged textures and imposing scale.","img-subtitle-8_placeholder":"Reflective Waters","img-title-8_placeholder":"Lago di Limides Mirror","img-description-8_placeholder":"The still, clear waters of Lago di Limides flawlessly reflect the cloudy sky and distant, mist-shrouded Dolomites, framed by pine trees along the shore."},"header":{"company_placeholder":"InnovateCo","link-1_placeholder":"About","link-2_placeholder":"Products","link-3_placeholder":"Blog","link-4_placeholder":"Support","btn_placeholder":"Login"},"hero":{"heading_placeholder":"Elevate Your Digital Future","long-description_placeholder":"At XYZ Company, we don\'t just build products; we forge partnerships. Our dedicated team works tirelessly to understand your unique challenges, crafting tailored strategies for sustainable growth. From concept to execution, we ensure a seamless and transformative experience.","description_placeholder":"Driving global business growth through innovative solutions and unparalleled expertise.","kicker_placeholder":"Future-Ready Solutions","btn-1_placeholder":"Get Started Today","btn-2_placeholder":"Learn More","item-1_placeholder":"Scalable Solutions","item-2_placeholder":"Expert Guidance","item-3_placeholder":"Proven Impact","metric-1_placeholder":"10M","metric-label-1_placeholder":"Users Engaged","metric-2_placeholder":"250","metric-label-2_placeholder":"Solutions","metric-3_placeholder":"20","metric-label-3_placeholder":"Years of Expertise"},"list":{"heading_placeholder":"Solutions for Your Growth","long-description_placeholder":"We offer tailored solutions designed to meet your unique needs, from initial consultation to ongoing support. Our team of experts is dedicated to delivering high-quality results and ensuring your satisfaction.","description_placeholder":"Here\'s a glimpse into the comprehensive services we provide to help you succeed. ","kicker_placeholder":"Our Offerings","btn_placeholder":"Learn More","group-title-1_placeholder":"Core Services","group-title-2_placeholder":"Specialized Solutions","title-1_placeholder":"Strategic Planning","item-1_placeholder":"Develop a clear roadmap for your business with our expert strategic planning services.","title-2_placeholder":"Market Research","item-2_placeholder":"Gain valuable insights into your target audience and industry trends through our in-depth market research.","title-3_placeholder":"Brand Development","item-3_placeholder":"Build a strong and recognizable brand identity that resonates with your customers.","title-4_placeholder":"Digital Marketing","item-4_placeholder":"Expand your online reach and engage with your audience through our comprehensive digital marketing strategies.","title-5_placeholder":"Financial Consulting","item-5_placeholder":"Optimize your financial performance and make informed decisions with our expert financial guidance.","title-6_placeholder":"Operational Efficiency","item-6_placeholder":"Streamline your processes and boost productivity with our operational efficiency consulting."},"logo-farm":{"heading_placeholder":"Trusted by Industry Leaders","description_placeholder":"We\'re proud to collaborate with a diverse range of companies that trust us to deliver exceptional results. Our partnerships are built on mutual success and shared innovation, driving progress across various sectors.","kicker_placeholder":"Our Valued Partners","btn_placeholder":"Learn More"},"map":{"heading_placeholder":"Find us","description_placeholder":"Our main office is conveniently located and easily accessible for all your inquiries.","location-1_placeholder":"Main Office","location-2_placeholder":"Downtown Location","location-3_placeholder":"Headquarters Annex","location-4_placeholder":"Northside Hub"},"media-and-text":{"long-subheading_placeholder":"Revolutionizing how we interact with the world.","heading_placeholder":"Future of Connectivity","long-description_placeholder":"Discover seamless integration and enhanced experiences designed to elevate your daily life. Our innovations transcend traditional boundaries, creating a more interconnected and intuitive world for everyone.","description_placeholder":"Explore groundbreaking advancements that are shaping tomorrow\'s digital landscape.","kicker_placeholder":"Tech Spotlight","btn_placeholder":"Learn More","title-1_placeholder":"Seamless Integration","text-1_placeholder":"Experience unparalleled ease as our technology effortlessly blends into your existing systems, enhancing productivity without disruption.","title-2_placeholder":"Intuitive Design","text-2_placeholder":"Crafted with the user in mind, our interfaces are simple, elegant, and exceptionally easy to navigate, ensuring a smooth experience for everyone.","title-3_placeholder":"Robust Security","text-3_placeholder":"Your data\'s safety is our top priority. Benefit from multi-layered security protocols and advanced encryption that keep your information protected around the clock.","title-4_placeholder":"Scalable Solutions","text-4_placeholder":"Whether you\'re a small startup or a large enterprise, our flexible solutions are designed to grow with your needs, adapting to future demands seamlessly.","title-5_placeholder":"Global Reach","text-5_placeholder":"Connect with confidence. Our services extend worldwide, providing reliable and high-performance access no matter where you are.","title-6_placeholder":"Dedicated Support","text-6_placeholder":"Our expert team is always ready to assist you. Enjoy comprehensive support and resources designed to ensure your success."},"post-loop":{"heading_placeholder":"Our Latest Insights","post-btn_placeholder":"Read more","btn_placeholder":"View all","tag_placeholder":"Editor\'s Picks","posts_placeholder":[{"title_placeholder":"Future of AI in Everyday Life","text_placeholder":"Explore how AI is transforming daily routines and what\'s next."},{"title_placeholder":"Sustainable Living","text_placeholder":"Discover easy ways to adopt eco-friendly habits."},{"title_placeholder":"Mastering Remote Work: Tips for Productivity","text_placeholder":"Boost your efficiency with these essential remote work strategies."},{"title_placeholder":"Rise of Wearable Technology","text_placeholder":"Learn about the latest advancements in wearable devices."},{"title_placeholder":"Cybersecurity Essentials","text_placeholder":"Protect your digital life with these crucial security tips."},{"title_placeholder":"Mindful Photography","text_placeholder":"Enhance your photography skills through a mindful approach."},{"title_placeholder":"Storytelling in Brand Building","text_placeholder":"Learn how compelling narratives can elevate your brand."}]},"pricing-table":{"heading_placeholder":"Our Pricing Plans","description_placeholder":"Choose the perfect plan to fit your needs, from individuals to large organizations. All plans include dedicated support and a commitment to your success.","btn-1_placeholder":"Get Started","btn-2_placeholder":"Buy Now","tag_placeholder":"Best Value","title-1_placeholder":"Flexible Scaling","text-1_placeholder":"Easily upgrade or downgrade as your needs evolve.","title-2_placeholder":"24/7 Customer Support","text-2_placeholder":"Our team is always ready to assist you.","title-3_placeholder":"Secure and Reliable Platform","text-3_placeholder":"We prioritize your data\'s security and stability.","title-4_placeholder":"Regular Feature Updates","text-4_placeholder":"Benefit from continuous improvements and new functionalities.","plan-1_placeholder":"Free","plan-description-1_placeholder":"Perfect for individuals.","plan-1-item-1_placeholder":"Limited Storage (e.g., 500MB)","plan-1-item-2_placeholder":"Basic Analytics","plan-1-item-3_placeholder":"Email Support","plan-1-item-4_placeholder":"1 User Account","plan-2_placeholder":"Basic","plan-description-2_placeholder":"Ideal for small teams.","plan-2-item-1_placeholder":"2GB Storage","plan-2-item-2_placeholder":"Standard Analytics","plan-2-item-3_placeholder":"Priority Email Support","plan-2-item-4_placeholder":"Up to 3 User Accounts","plan-3_placeholder":"Pro","plan-description-3_placeholder":"Great for growing businesses.","plan-3-item-1_placeholder":"10GB Storage","plan-3-item-2_placeholder":"Advanced Analytics","plan-3-item-3_placeholder":"Chat & Phone Support","plan-3-item-4_placeholder":"Up to 10 User Accounts","plan-4_placeholder":"Premium","plan-description-4_placeholder":"Designed for established businesses.","plan-4-item-1_placeholder":"Unlimited Storage","plan-4-item-2_placeholder":"Real-time Advanced Analytics","plan-4-item-3_placeholder":"Dedicated Account Manager","plan-4-item-4_placeholder":"Unlimited User Accounts","plan-5_placeholder":"Enterprise","plan-description-5_placeholder":"Tailored for large organizations with unique demands.","plan-5-details_placeholder":"For customized solutions including specialized features, dedicated infrastructure, and personalized support, please contact us to discuss an Enterprise plan."},"quote":{"text-1_placeholder":"The journey of a thousand miles begins with a single step.","name-1_placeholder":"A. B. Johnson","position-1_placeholder":"Thought Leader","text-2_placeholder":"Innovation distinguishes between a leader and a follower.","name-2_placeholder":"C. D. Williams","position-2_placeholder":"Forward Thinker"},"service-menu":{"heading_placeholder":"Our Signature Menu","description_placeholder":"Crafted with fresh ingredients and bold flavors—perfect for any time of day.","category-1_placeholder":"Customer Favorites","category-2_placeholder":"Brunch & Bowls","category-3_placeholder":"Add-ons & Sides","title-1_placeholder":"Grilled Herb Chicken","text-1_placeholder":"Tender chicken breast marinated in herbs, served with charred vegetables.","title-2_placeholder":"Smoked Salmon Bowl","text-2_placeholder":"Cured salmon, quinoa, avocado, and lemon-dill dressing in one refreshing bowl.","title-3_placeholder":"Creamy Mushroom Pasta","text-3_placeholder":"Fresh pasta tossed in a garlic parmesan cream with sautéed mushrooms.","title-4_placeholder":"Avocado Toast Stack","text-4_placeholder":"Crispy sourdough topped with smashed avocado, egg, and house seasoning.","title-5_placeholder":"Spiced Beef Rice Bowl","text-5_placeholder":"Slow-braised beef, jasmine rice, and tangy slaw with a touch of heat.","title-6_placeholder":"Breakfast Burrito","text-6_placeholder":"Fluffy eggs, chorizo, potatoes, and cheese wrapped in a warm tortilla."},"stats":{"heading_placeholder":"Trusted by Teams, Loved by Customers","description_placeholder":"Our impact speaks for itself—from satisfied clients to successful projects delivered across industries.","kicker_placeholder":"By the Numbers","btn_placeholder":"See Our Impact","stat-title-1_placeholder":"Active Users","stat-title-2_placeholder":"Installs","stat-title-3_placeholder":"Websites","stat-title-4_placeholder":"New Users"},"table-of-contents":{"heading_placeholder":"Table of Contents","subtitle-1_placeholder":"Setting Up Your Account","subtitle-2_placeholder":"Navigating the Interface","subtitle-3_placeholder":"Personalizing Your Profile","subtitle-4_placeholder":"Discovering New Tools","subtitle-5_placeholder":"Customizing Your Workspace","subtitle-6_placeholder":"Collaborating with Others","subtitle-7_placeholder":"Maximizing Productivity","subtitle-8_placeholder":"Saving Time with Shortcuts","title-1_placeholder":"Getting Started","title-2_placeholder":"Exploring Features","title-3_placeholder":"Tips and Tricks","title-4_placeholder":"Our Community","title-5_placeholder":"Frequently Asked Questions","title-6_placeholder":"Glossary of Terms"},"tabs":{"tab-1_placeholder":"All","tab-2_placeholder":"News","tab-3_placeholder":"Trending","tab-4_placeholder":"For You","tab-5_placeholder":"Favorites","title-1_placeholder":"Our Vision for the Future","text-1_placeholder":"We envision a world where innovation drives progress, and technology empowers individuals. Our commitment lies in fostering solutions that are not only groundbreaking but also accessible and sustainable, contributing to a brighter tomorrow for everyone.","title-2_placeholder":"Unlocking Your Potential","text-2_placeholder":"Discover the tools and resources designed to help you achieve your goals. We believe in providing comprehensive support and personalized guidance, enabling you to navigate challenges and seize opportunities with confidence."},"team-members":{"heading_placeholder":"Meet Our Team","description_placeholder":"We\'re a passionate group dedicated to innovation and excellence. Get to know the individuals who drive our success.","name-1_placeholder":"Eleanor Vance","position-1_placeholder":"CEO","text-1_placeholder":"leads our vision and strategy, guiding the company toward new horizons","name-2_placeholder":"Marcus Thorne","position-2_placeholder":"Chief Technology Officer","text-2_placeholder":"oversees all technological advancements and product development","name-3_placeholder":"Sophia Chen","position-3_placeholder":"Head of Marketing","text-3_placeholder":"crafts our brand story and connects us with our audience","name-4_placeholder":"David Miller","position-4_placeholder":"Lead Product Designer","text-4_placeholder":"responsible for the intuitive and user-friendly design of our products","name-5_placeholder":"Alexander Gray","position-5_placeholder":"Director of Operations","text-5_placeholder":"ensures our daily operations run smoothly and efficiently","name-6_placeholder":"Samuel Green","position-6_placeholder":"Senior Software Engineer","text-6_placeholder":" a key architect behind our robust software solutions"},"text":{"heading_placeholder":"Innovating for a Sustainable Future","long-subtitle_placeholder":"Pioneering Global Solutions for a Greener Tomorrow\'s Challenges","long-description-1_placeholder":"We invest in cutting-edge research to create tangible solutions for environmental challenges, integrating sustainable practices across our operations. Our holistic approach aims for long-term benefits for the planet and its inhabitants. True innovation stems from understanding ecological principles and technological advancement.","long-description-2_placeholder":"By fostering collaborations globally, we build a robust framework for environmental stewardship. Our efforts empower communities to embrace sustainability and thrive in harmony with nature. This ensures solutions are groundbreaking, scalable, and adaptable.","description_placeholder":"We are dedicated to creating a sustainable future through innovative solutions and responsible practices.","kicker_placeholder":"Driving Global Change","btn_placeholder":"Learn More","title-1_placeholder":"Renewable Energy","text-1_placeholder":"Developing advanced solar, wind, and hydro technologies to reduce reliance on fossil fuels.","title-2_placeholder":"Circular Economy","text-2_placeholder":"Implementing waste reduction, resource recovery, and product lifecycle optimization strategies.","title-3_placeholder":"Sustainable Agriculture","text-3_placeholder":"Promoting eco-friendly farming methods and resilient food systems.","title-4_placeholder":"Biodiversity Conservation","text-4_placeholder":"Protecting habitats, supporting endangered species, and promoting ecological balance.","title-5_placeholder":"Smart Cities","text-5_placeholder":"Designing urban environments with green spaces and efficient infrastructure.","title-6_placeholder":"Environmental Education","text-6_placeholder":"Empowering communities with knowledge to adopt sustainable lifestyles."},"testimonial":{"heading_placeholder":"What Our Clients Say","description_placeholder":"Here\'s a look at what people are saying about working with us. We\'re proud to have helped so many achieve their goals.","kicker_placeholder":"Testimonials","name-1_placeholder":"Emily Johnson","position-1_placeholder":"Marketing Manager","text-1_placeholder":"XYZ Company has been a game-changer. Our online engagement and conversions significantly increased, leading to a 30% rise in leads in three months!","name-2_placeholder":"David Smith","position-2_placeholder":"Small Business Owner","text-2_placeholder":"Struggling to grow online, XYZ Company provided the perfect solution. Their tailored approach made a huge difference; my sales have doubled.","name-3_placeholder":"Sophia Miller","position-3_placeholder":"E-commerce Specialist","text-3_placeholder":"XYZ Company transformed our platform. Their expertise boosted traffic and improved satisfaction, consistently giving us higher average order values.","name-4_placeholder":"William Brown","position-4_placeholder":"Tech Startup Founder","text-4_placeholder":"XYZ Company delivered exceptional value. They helped us develop a strong brand and launch our product effectively. We\'ve gained valuable traction.","name-5_placeholder":"James Wilson","position-5_placeholder":"Non-profit Director","text-5_placeholder":"XYZ Company exceeded our expectations. Their dedication significantly increased our donations and volunteer sign-ups by improving our online presence.","name-6_placeholder":"Olivia Davis","position-6_placeholder":"Real Estate Broker","text-6_placeholder":"XYZ Company gave me the edge. Their innovative digital advertising brought consistent, qualified leads, directly leading to more property sales."},"timeline":{"heading_placeholder":"Our Journey Through Time","kicker_placeholder":"A Legacy of Progress","description_placeholder":"Explore the key milestones that have shaped our story, from our humble beginnings to our latest achievements.","btn_placeholder":"Discover more","title-1_placeholder":"Founding Vision","text-1_placeholder":"Our journey began with a bold idea to revolutionize the industry.","title-2_placeholder":"First Product Launch","text-2_placeholder":"We introduced our inaugural product to critical acclaim.","title-3_placeholder":"Global Expansion","text-3_placeholder":"Our reach extended to new international markets.","title-4_placeholder":"Innovation Award Received","text-4_placeholder":"Recognized for our groundbreaking technological advancements.","title-5_placeholder":"Community Initiative Launched","text-5_placeholder":"A new program dedicated to giving back to society.","title-6_placeholder":"Future Forward Summit","text-6_placeholder":"Hosting an event to discuss the next era of innovation."},"video":{"heading_placeholder":"Our Story","kicker_placeholder":"See Us in Action","description_placeholder":"Dive deep into the heart of InnovateCo, exploring our origins, values, and the future we\'re building.","btn-1_placeholder":"Watch Later","btn-2_placeholder":"Find Related Videos","title-1_placeholder":"Our Story","title-2_placeholder":"Lamp Features","title-3_placeholder":"Behind the Scenes","title-4_placeholder":"Customer Success","title-5_placeholder":"Expert Interview","title-6_placeholder":"Sustainability Efforts","title-7_placeholder":"Future Innovations"}}')}},l={};function r(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return a[e].call(n.exports,n,n.exports,r),n.exports}r.m=a,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"==typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var l={};e=e||[null,t({}),t([]),t(t)];for(var i=2&o&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((e=>l[e]=()=>n[e]));return l.default=()=>n,r.d(a,l),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+({641:"style-guide",732:"google-fonts",923:"html-to-image",985:"modal-tour"}[e]||e)+"."+{641:"5b2187693afb3d90beeb",732:"7ad26cf48fec914aaf43",865:"33e395e7b3cae1c5dc60",923:"ed052e3a1c03afea65db",985:"63d67b53f4c170ad3152"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o="stackable:",r.l=(e,t,a,l)=>{if(n[e])n[e].push(t);else{var i,s;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==o+a){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,r.nc&&i.setAttribute("nonce",r.nc),i.setAttribute("data-webpack",o+a),i.src=e),n[e]=[t];var p=(t,o)=>{i.onerror=i.onload=null,clearTimeout(h);var a=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(o))),t)return t(o)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={959:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var a=new Promise(((n,a)=>o=e[t]=[n,a]));n.push(o[2]=a);var l=r.p+r.u(t),i=new Error;r.l(l,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),l=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+l+")",i.name="ChunkLoadError",i.type=a,i.request=l,o[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,a,[l,i,s]=n,c=0;if(l.some((t=>0!==e[t]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);s&&s(r)}for(t&&t(n);c<l.length;c++)a=l[c],r.o(e,a)&&e[a]&&e[a][0](),e[l[c]]=0},n=globalThis.webpackChunkstackable=globalThis.webpackChunkstackable||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i={};(()=>{"use strict";r.r(i),r.d(i,{util:()=>e,hooks:()=>t,higherOrder:()=>n,components:()=>o,blockComponents:()=>a,icons:()=>l,designLibrary:()=>s});var e=r(1205),t=r(3796),n=r(5185),o=r(3566),a=r(3363),l=r(6556),s=r(8324)})(),window.stk=i})();
/home/batcwwjx/./public_html/wp-content/plugins/./stackable-ultimate-gutenberg-blocks/dist/stk.js