uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
.
/
www
/
wp-content
/
plugins
/
stackable-ultimate-gutenberg-blocks
/
dist
/
admin_welcome.js
/
/
/*! For license information please see admin_welcome.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})))},7887:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(7823),a=n(3891);const l=(0,a.jsx)(o.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(o.y$,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"})})},8797:(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$,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm9 1V8h-1.5v3.5h-2V13H13Z"})})},544:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(7823),a=n(3891);const l=(0,a.jsx)(o.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(o.y$,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.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,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=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:u,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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,b={};function v(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}function f(){}function k(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||h}v.prototype.isReactComponent={},v.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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},f.prototype=v.prototype;var _=k.prototype=new f;_.constructor=k,g(_,v.prototype),_.isPureReactComponent=!0;var y=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(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)w.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),u=0;u<s;u++)c[u]=arguments[u+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:E.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function N(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?"."+N(s,0):l,y(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+":",y(e))for(var c=0;c<e.length;c++){var u=l+N(i=e[c],c);s+=M(i,t,a,u,r)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=m&&e[m]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(i=e.next()).done;)s+=M(i=i.value,t,a,u=l+N(i,c++),r);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function I(e,t,n){if(null==e)return e;var o=[],a=0;return M(e,o,"","",(function(e){return t.call(n,e,a++)})),o}function B(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 O={current:null},P={transition:null},A={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:P,ReactCurrentOwner:E};function D(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=a,t.Profiler=r,t.PureComponent=k,t.StrictMode=l,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.act=D,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=g({},e.props),l=e.key,r=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(r=t.ref,i=E.current),void 0!==t.key&&(l=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.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 u=0;u<c;u++)s[u]=arguments[u+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=C,t.createFactory=function(e){var t=C.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:B}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},t.unstable_act=D,t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.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}},2286:(e,t,n)=>{"use strict";n.d(t,{KL:()=>h,Yf:()=>g});var o=n(2610),a=n(1205),l=n(7044),r=n(8085),i=n(4863),s=n.n(i),c=n(78),u=n(3796);const d=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}),[]),m=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},h=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=d(s,t,a);Array.prototype.push.apply(i,p(e))}if(void 0!==e.desktopTablet){const l=d(e.desktopTablet,t,a),r=p(l);r&&(a?r.forEach((e=>{i.push("\n\n"+m(["desktop","tablet"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${m(["desktop","tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.desktopOnly){const l=d(e.desktopOnly,t,a),r=p(l);r&&(a?r.forEach((e=>{i.push("\n\n"+m(["desktop"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${m(["desktop"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.tablet){const l=d(e.tablet,t,a),r=p(l);r&&(a?r.forEach((e=>{i.push("\n\n"+m(["mobile","tablet"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${m(["mobile","tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.tabletOnly){const l=d(e.tabletOnly,t,a),r=p(l);r&&(a?r.forEach((e=>{i.push("\n\n"+m(["tablet"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${m(["tablet"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.mobile){const l=d(e.mobile,t,a),r=p(l);r&&(a?r.forEach((e=>{i.push("\n\n"+m(["mobile"],n,o)+" {\n"+e+" }")})):i.push(`\n\n${m(["mobile"],n,o)} {\n${r.join("")} }`))}if(void 0!==e.ie11){const n=d(e.ie11,t,a),o=p(n);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,h(e.editor,t,n,o,a,l++)),a||void 0===e.saveOnly||l||Array.prototype.push.apply(i,h(e.saveOnly,t,n,o,a,l++)),i},g=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)},b=(0,o.memo)((e=>{const{breakTablet:t=1024,breakMobile:n=768,styleFunc:l=(()=>{})}=e,r=(0,u.useDeviceType)(),{clientId:i}=(0,c.useBlockEditContext)(),s=(0,u.useBlockAttributesContext)(),d=(0,a.getUniqueBlockClass)(s.uniqueId),p=l({...s,clientId:i}).map((e=>{const o=g(e,r);return h(o,d,t,n,!0)}));return p?p.map(((e,t)=>(0,o.createElement)("style",{key:t},e))):null}));b.Content=e=>{const{breakTablet:t=1024,breakMobile:n=768,styleFunc:l=(()=>{}),attributes:r={}}=e,i=(0,a.getUniqueBlockClass)(r.uniqueId),s=h(v(l(r)),i,t,n,!1);return s&&s.length?(0,o.createElement)("style",null,(0,a.minifyCSS)(s.join(""))):null},b.displayName="Style";const v=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};b.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:()=>d});var o=n(7462),a=n(2610),l=n(910),r=n(1364),i=n(8003),s=n(4184),c=n.n(s);const u=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)))};u.defaultProps={label:"",value:!1,placeholder:"",onChange:()=>{},disabled:(0,i.__)("Disabled",l.i18n),enabled:(0,i.__)("Enabled",l.i18n),width:"",isDisabled:!1};const d=u},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 u=void 0!==s?s:"";a&&(u=a(u));const d=e=>{const t=l?l(e,c):e;r({[i]:t})};return[u,d]}},2622:(e,t,n)=>{"use strict";n.d(t,{Xp:()=>T,ZP:()=>M,ED:()=>I});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),u=n(8003),d=n(3284),p=n(8085),m=n(1205);const h=[{label:(0,u.__)("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,u.__)("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,u.__)("Parent Container Hovered State",c.i18n),value:"parent-hover",icon:(0,a.createElement)(i,null)},{label:(0,u.__)("Collapsed",c.i18n),value:"collapsed",icon:(0,a.createElement)(i,null)}],g=["normal","hover","parent-hover","collapsed"],b=g.map((e=>(0,p.upperFirst)((0,p.camelCase)(e)))),v=e=>{const[t,n,o,r,i]=(0,s.useBlockHoverState)({forceUpdateHoverState:e.forceUpdateHoverState}),p=(0,s.useDeviceType)(),v=(0,s.useBlockAttributesContext)((t=>e.attribute?g.reduce(((n,o,a)=>({...n,[o]:t[`${e.attribute}${e.hasResponsive&&"Desktop"!==p?p:""}${b[a]}`]})),{}):{})),f="all"===e.hover?g:e.hover,k=h.filter((e=>{let{value:t}=e;return!(!r&&"collapsed"===t&&!i)&&f.includes(t)})),_=!e.forceUpdateHoverState&&!o,y=k.map((t=>"parent-hover"===t.value?{disabled:!e.forceUpdateHoverState&&!o,tooltip:_?(0,a.createElement)("span",{className:"stk-tooltip__text"},(0,u.sprintf)("%s - %s",(0,u.__)("Parent Hovered",c.i18n),(0,u.__)("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,u.__)("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,m.isEmptyAttribute)(v[t.value])}:t}));return(0,a.createElement)(l.Z,{value:t,options:y,onChange:e=>(0,d.dispatch)("stackable/hover-state").updateHoverState(e)})};v.defaultProps={hover:!1,attribute:"",hasResponsive:!1,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const f=(0,a.memo)(v);var k=n(8667);const _=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 y=n(2122),w=n(4184),E=n.n(w),S=n(7537);n(5509);const C=["desktop","tablet","mobile"],x={},T=e=>{var t,n,i,d;const p=(0,s.useDeviceType)(),m=E()(["stk-control",e.className],{"stk-control--disabled":e.disableTablet&&"Tablet"===p||e.disableMobile&&"Mobile"===p}),h=!(null===(t=e.responsive)||void 0===t||!t.length),g=!(null===(n=e.hover)||void 0===n||!n.length),b=!(null===(i=e.units)||void 0===i||!i.length),v="all"===e.responsive?C:e.responsive,k=e.units&&(null===(d=e.units)||void 0===d?void 0:d.map((e=>({value:e}))))||[],w=E()(["stk-control-label"],{"stk-control-label--bold":e.boldLabel}),T=e.boldLabel?(0,a.createElement)("h3",null,e.label):e.label,N=e.visualGuide!==x?_:a.Fragment;return(0,a.createElement)(S.BaseControl,{help:e.help,className:m,__nextHasNoMarginBottom:!0},(0,a.createElement)(N,e.visualGuide,(0,a.createElement)("div",{className:w},(0,a.createElement)(y.Z,(0,o.Z)({label:T},e.helpTooltip)),(0,a.createElement)("div",{className:"stk-control-label__toggles"},h&&(0,a.createElement)(r.Z,{screens:v,attribute:e.attribute,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue,valueCheckAttribute:e.valueCheckAttribute}),g&&(0,a.createElement)(f,{hover:e.hover,attribute:e.attribute,hasResponsive:h,forceUpdateHoverState:e.forceUpdateHoverState,hasHoverStateValue:e.hasHoverStateValue})),(0,a.createElement)("div",{className:"stk-control-label__after"},b&&(0,a.createElement)(l.Z,{className:"stk-control-label__units",value:e.unit,options:k,onChange:t=>e.onChangeUnit(t),buttonLabel:(0,u.__)("Unit",c.i18n),hasLabels:!1,hasColors:!1,labelPosition:"left"}),e.after)),(0,a.createElement)("div",{className:"stk-control-content"},e.children)))};T.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:x,helpTooltip:x,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const N=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)(T,(0,o.Z)({},e,{unit:l,onChangeUnit:o=>{if(e.onChangeUnit)return e.onChangeUnit(o,t,n);r({[t]:o})}}))};N.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:x,helpTooltip:x,forceUpdateHoverState:!1,hasHoverStateValue:void 0};const M=N,I=e=>{const t=[...Object.keys(N.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,m]=function(){const[e,t]=(0,o.useState)(u);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=>{u=e,new r.models.Settings({stackable_help_tooltip_disabled:e?"":"1"}).save(),window.dispatchEvent(new CustomEvent("_stkHelpTooltipEnabledChanged",{detail:e}))}]}(),h=d(c),g=(0,o.useRef)(),b=(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(g.current),g.current=setTimeout((()=>{h(!0),setTimeout((()=>{document.querySelector(".stk-control-help-tooltip").focus()}),100)}),800)},onMouseLeave:()=>{clearTimeout(g.current)},onMouseDown:()=>{b.current=s},onClick:()=>{b.current||(clearTimeout(g.current),h((e=>!e)),s||setTimeout((()=>{document.querySelector(".stk-control-help-tooltip").focus()}),100))},onKeyDown:e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),h((e=>!e)))},role:"button",tabIndex:"0"},n),s&&(0,o.createElement)(a.Z,{title:t||n,description:i,video:l,onClose:()=>h(!1),tooltipsEnabled:p,onTooltipsEnabledChange:m})):(0,o.createElement)("div",{className:"components-base-control__label"},n)};s.defaultProps={label:"",description:"",video:""};const c=s;let u=!0;(0,i.Z)((()=>{(0,l.fetchSettings)().then((e=>{u="1"!==e.stackable_help_tooltip_disabled})).catch((()=>{}))}));const d=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:()=>d});var o=n(2610),a=n(2440),l=n(910),r=n(8003),i=n(7537),s=n(4184),c=n.n(s);const u=(0,o.createElement)(i.Dashicon,{icon:"image-rotate"}),d=(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:u})}));d.defaultProps={allowReset:!0,showReset:null,value:"",default:"",onChange:null,hasPanelModifiedIndicator:!0}},6691:(e,t,n)=>{"use strict";n.d(t,{Ow:()=>b,WS:()=>g,Gh:()=>d}),n(2610);var o=n(1205),a=n(4247),l=n.n(a);const r=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},i=(e,t)=>{const n=e=>`${t||""}${e.startsWith(":")?"":" "}${e||""}`.trim();return Array.isArray(e)?e.map(n).join(", "):n(e)},s=(e,t)=>{const n=e=>`${e}${t||""}`.trim();return Array.isArray(e)?e.map(n).join(", "):n(e)};var c=n(9755);const u=["desktop","desktopOnly","desktopTablet","tabletOnly","tablet","mobile"],d=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 u.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=r(t);o&&n&&(n=`${o}{${n}}`),e.push(n)})),e.join("")}};n(3796);var p=n(8085),m=n(8003),h=n(3882);class g{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,o.getAttrName)(t.attrNameTemplate,e):e;t.valuePreCallback&&this._blockStyleNamesWithValuePreCallbacks.push(n),this._orderedStyles.push(t);const a=this._orderedStyles.length-1;this._blockStyles[n]?this._blockStyles[n].push(a):this._blockStyles[n]=[a]}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,p.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 a=[];Object.values(t).forEach((t=>{if("function"==typeof t){const o=t=>{if(!this.styleShouldRender(t,e))return;const o=b({...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});o&&a.push(o)};return void t(e,o)}if(!this.styleShouldRender(t,e))return;const o=b({...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});o&&a.push(o)}));let l=a.join("");return l=(0,c.vY)(l,n.clientId,n.context),l=(0,h.applyFilters)("stackable.block-styles.edit",l,(0,o.getUniqueBlockClass)(e.uniqueId)),l}generateBlockStylesForSave(e,t,n,o){return Object.values(n).forEach((n=>{"function"!=typeof n?this.styleShouldRender(n,t)&&b({...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 b({...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 b=e=>{const{selector:t="",styleRule:n="",hoverStyleRule:a="",attrName:r="",format:c="%s",hasUnits:u=!1,responsive:d=!1,hover:p=!1,attrNameTemplate:g="",selectorCallback:b=null,hoverSelector:k="",hoverSelectorCallback:_=null,hoverCallback:y=null,styleRuleCallback:w=null,renderIn:E="",valuePreCallback:S=null,valueCallback:C=null,enabledCallback:x=null,vendorPrefixes:T=[],clampCallback:N=null,unitCallback:M=null,version:I="",versionAdded:B="",versionDeprecated:O="",compileCssTo:P=null,attributes:A={},editorMode:D=!0,clientId:L="",instanceId:R="",blockState:F="normal",generateForAllBlockStates:H=!1}=e;if(!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?l()(e,t)>=0&&(!n||-1===l()(e,n)):!!n}(I,B,O))return null;const z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=function(a){let l=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,o.getAttrName)(t,a):a,c=e[(0,o.getAttributeName)(s,l,r)];return i?""!==c&&void 0!==c||"desktop"===l?c:n(a,"mobile"===l?"tablet":"desktop",r,i):c};return n}(A,g),j=g?(0,o.getAttrName)(g,r):r;if(E){if(D&&"save"===E)return null;if(!D&&"edit"===E)return null}if(x&&!x(z,A))return null;const $=(e,t,n)=>{const a=(0,o.getAttributeName)(`${e}Unit`,t,n),l=(0,o.getAttributeName)(e,t,n);let r=u?A[a]||u:"",i=A[l];if(""===i&&("tablet"===t||"mobile"===t)){const a=A[(0,o.getAttributeName)(`${e}Unit`,"desktop",n)],l=A[(0,o.getAttributeName)(`${e}Unit`,"tablet",n)];"tablet"===t?r=a:"mobile"===t&&(r=""!==A[(0,o.getAttributeName)(e,"tablet",n)]?l:a)}if(M&&(r=M(r,t,n,z)),N&&d){const a=A[(0,o.getAttributeName)(e,"desktop",n)],l=A[(0,o.getAttributeName)(e,"tablet",n)];""!==i&&void 0!==i||("tablet"===t?i=N(a,z,t,n,r,A):"mobile"===t&&(i=N(""!==l?l:a,z,t,n,r,A)))}if(S&&(i=S(i,z,t,n,A)),""!==i&&void 0!==i)return r&&("auto"===i||"string"==typeof i&&i.startsWith("var")||(i=`${i}${r}`)),"%s"!==c&&""!==c&&(i=(0,m.sprintf)(c.replace(/%([sd])%/,"%$1%%"),i)),C&&(i=C(i,z,t,n,A)),i},V=y?y(z,A):p,U="all"===d||!1===d||Array.isArray(d)&&d.find((e=>e.startsWith("desktop"))),Z="all"===d||Array.isArray(d)&&d.find((e=>e.startsWith("tablet"))),q="all"===d||Array.isArray(d)&&d.find((e=>e.startsWith("mobile"))),W="all"===V||Array.isArray(V)&&V.includes("hover"),G="all"===V||Array.isArray(V)&&V.includes("parent-hover"),J="all"===V||Array.isArray(V)&&V.includes("collapsed");let Y,K,X,Q,ee,te,ne,oe,ae,le,re,ie;if(U&&(Y=$(j,"desktop","normal"),W&&(X=$(j,"desktop","hover")),G&&(Q=$(j,"desktop","parent-hover")),J&&(K=$(j,"desktop","collapsed"))),Z&&(ae=$(j,"tablet","normal"),W&&(re=$(j,"tablet","hover")),G&&(ie=$(j,"tablet","parent-hover")),J&&(le=$(j,"tablet","collapsed"))),q&&(ee=$(j,"mobile","normal"),W&&(ne=$(j,"mobile","hover")),G&&(oe=$(j,"mobile","parent-hover")),J&&(te=$(j,"mobile","collapsed"))),void 0===Y&&void 0===X&&void 0===Q&&void 0===K&&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;w&&(se=w(z,A));const ce=a||se;let ue=b?b(z,A,L,e):t,de=_?_(z,A,L):k;const pe=(Array.isArray(d)?d.find((e=>e.startsWith("desktop"))):"desktop")||"desktop",me=(Array.isArray(d)?d.find((e=>e.startsWith("tablet"))):"tablet")||"tablet",he=(Array.isArray(d)?d.find((e=>e.startsWith("mobile"))):"mobile")||"mobile";let ge="",be="";J&&(ge=i(ue,H?"%h :where(.stk-block-accordion.stk--is-open) .%s":":where(.stk-block-accordion.stk--is-open) .%s")),G&&(be=H?[i(ue,"%h.%s.stk--is-hovered"),i(ue,":where(.stk-hover-parent:hover, .stk-hover-parent.stk--is-hovered) .%s")]:i(ue,"parent-hover"===F?".%s.stk--is-hovered":":where(.stk-hover-parent:hover, .stk-hover-parent.stk--is-hovered) .%s")),W&&((de||ue).includes("[data-block=")&&(de||ue).endsWith("]")?de=H?[s(ue,"%h.stk--is-hovered"),de||s(ue,":hover")]:"hover"===F?s(ue,".stk--is-hovered"):de||s(ue,":hover"):(H&&(de=[i(ue,"%h.%s.stk--is-hovered"),de||i(ue,".%s:hover")]),de="hover"===F?i(ue,".%s.stk--is-hovered"):de||i(ue,".%s:hover")));let ve=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=(0,o.getUniqueBlockClass)(e);let a=n;if(!n&&t){const e=(0,o.createUniqueClass)(t);a=(0,o.getUniqueBlockClass)(e)}return a}(A.uniqueId,L);R&&(ve.match(/-[\d]$/g)||(ve+=`-${R}`),"string"==typeof ue&&(ue=ue.replace(/[^^?](.%s)([^-])/g,`$1-${R}$2`),de="string"==typeof de?de.replace(/[^^?](.%s)([^-])/g,`$1-${R}$2`):de.map((e=>e.replace(/[^^?](.%s)([^-])/g,`$1-${R}$2`))),be="string"==typeof be?be.replace(/[^^?](.%s)([^-])/g,`$1-${R}$2`):be.map((e=>e.replace(/[^^?](.%s)([^-])/g,`$1-${R}$2`))),ge=ge.replace(/[^^?](.%s)([^-])/g,`$1-${R}$2`))),ve=e.editorMode?(0,h.applyFilters)("stackable.block-css.uniqueClass.edit",ve):(0,h.applyFilters)("stackable.block-css.uniqueClass.save",ve,A),Array.isArray(ue)&&(ue=ue.join(", ")),Array.isArray(de)&&(de=de.join(", ")),Array.isArray(be)&&(be=be.join(", "));const fe=D?".editor-styles-wrapper":"";ue=(0,o.prependCSSClass)(ue,ve,ve,fe),W&&(de=(0,o.prependCSSClass)(de,ve,ve,fe,H?".stk-preview-state--hover":"")),G&&(be=(0,o.prependCSSClass)(be,ve,ve,fe,H?".stk-preview-state--parent-hover":"")),J&&(ge=(0,o.prependCSSClass)(ge,ve,ve,fe,H?".stk-preview-state--collapsed":""));let ke="";const _e=D?v:f;return ke+=_e(ue,se,Y,pe,T,P),W&&(ke+=_e(de,ce,X,pe,T,P)),G&&(ke+=_e(be,ce,Q,pe,T,P)),J&&(ke+=_e(ge,se,K,pe,T,P)),Z&&(ke+=_e(ue,se,ae,me,T,P),W&&(ke+=_e(de,ce,re,me,T,P)),G&&(ke+=_e(be,ce,ie,me,T,P)),J&&(ke+=_e(ge,se,le,pe,T,P))),q&&(ke+=_e(ue,se,ee,he,T,P),W&&(ke+=_e(de,ce,ne,he,T,P)),G&&(ke+=_e(be,ce,oe,he,T,P)),J&&(ke+=_e(ge,se,te,pe,T,P))),e.editorMode||(ke=(0,h.applyFilters)("stackable.block-styles.save",ke,ve,A)),ke||null};function v(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,p.kebabCase)(n)}`));let i=`${l}: ${n} !important`;a.length&&a.forEach((e=>{i+=`;${e}${l}: ${n} !important`})),i=`\n${e} {\n\t${i}\n}`;const s=781,c=361,u=r(o,s,c);return u&&(i=`\n${u} {${i}\n}`),i}function f(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,p.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$:()=>u,ZP:()=>p});var o=n(7462),a=n(2610),l=n(910),r=n(7537),i=n(8003),s=n(4184),c=n.n(s);const u={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)},d=()=>{},p=e=>{let{colors:t,withWrapper:n=!1,onClick:l=d,isDisabled:i=!1,isCollapsed:s=!1}=e;const u=l===d?"div":r.Button,p=l===d?{}:{onClick:l},m=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)(u,(0,o.Z)({className:m,style:n?{}:{background:null==t?void 0:t.backgroundColor}},p),(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)"}`}}))))}},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 u=r()([e.className,"stk-label-unit-toggle"],{"stk-label-unit-toggle__colored":e.hasColors,"is-open":l});return(0,o.createElement)("div",{className:u,"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,u=t===n.value,d=r()({"is-active":u,"has-value":n.hasValue});return(0,o.createElement)(a.Z,{key:s,className:d,"data-index":s,"data-value":n.value,disabled:n.disabled,tabIndex:u?"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:()=>u,R6:()=>d,Nl:()=>p,W$:()=>m,wT:()=>h,_w:()=>g,i5:()=>v,wr:()=>f,un:()=>k,yU:()=>_});var o=n(424),a=n(910),l=n(1205),r=n(378),i=n(3284);const s={...o},c=new DOMParser,u=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},d=(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},m=(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}}`)},h=(e,t,n)=>{const o=s[t];return o&&!n&&Object.keys(o).forEach((t=>{e=e.replaceAll(t,o[t])})),e},g=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]},b=a.cdnUrl.replace(/\/$/,"")+"/library-v4/images/",v=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,u;let d;try{d=JSON.parse(r)}catch{return e}const p=null!==(s=d.numberOfItems)&&void 0!==s?s:6,m=d.imageWidth?d.imageWidth+(null!==(c=d.imageWidthUnit)&&void 0!==c?c:"px"):"auto",h=l.META_SEPARATORS[null!==(u=d.metaSeparator)&&void 0!==u?u:"dot"],g=i.match(/<!--\s*\/stk-start:posts\/template\s*-->([\s\S]*?)<!--\s*\/stk-end:post\/template\s*-->/);if(!g)return e;const v=g[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:`${b}stk-design-library-image-${t+1}.jpeg`;return v.replace(/!#title!#/g,e.title_placeholder).replace(/!#excerpt!#/g,e.text_placeholder).replace(/!#authorName!#/g,"John Doe").replaceAll(/!#metaSeparator!#/g,h).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="${m}" style="width: ${m} !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(b.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+$/,""),_=()=>{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:()=>C,vY:()=>_,wt:()=>k,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),u=n(78),d=n(7537),p=n(3882),m=n(3284),h=n(4685),g=n(5980),b=n(7462);n(7294);var v=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 u,d;null!=i&&null!==(t=i.includes)&&void 0!==t&&t.call(i,"!#stk_dynamic")&&(null===(u=i.match(/\!#stk_dynamic\/(.*)\!#/g))||void 0===u||u.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===(d=i.match(/data-stk-dynamic="[^"]*"/g))||void 0===d||d.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=k(i),m=y(i),h=a||c.length,g=(0,l.first)(c)||"";return{onClick:()=>{r(!a)},isPressed:h,isPopoverOpen:a,value:p,placeholder:m,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:g}},k=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const{clientId:t}=(0,u.useBlockEditContext)(),n=(0,m.select)("core/block-editor").getBlock(t),a=(0,o.useContext)(s.v);return(0,m.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 u,d;-1!==r&&(c=null===(u=c)||void 0===u?void 0:u.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===(d=c)||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,r):2===n.length&&n.push(r),"!#stk_dynamic/"+n.join("/")+"!#"):e})));let p=t("stackable/dynamic-content").parseDynamicContents(c,n);var m,h;return-1!==r&&(p=null===(m=p)||void 0===m?void 0:m.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===(h=p)||void 0===h?void 0:h.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,m.select)("stackable/dynamic-content"))return e;let a=(null===(o=(0,m.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,m.select)("core/edit-site")&&(a=(null===(i=(0,m.select)("core/edit-site").getEditedPostContext())||void 0===i?void 0:i.postId)||-1);let s=e;var c,u;-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===(u=s)||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,a):2===n.length&&n.push(a),"!#stk_dynamic/"+n.join("/")+"!#"):e})));const d=(0,m.select)("core/block-editor").getBlock(t);let p=(0,m.select)("stackable/dynamic-content").parseDynamicContents(s,d);var h,g;return-1!==a&&(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},y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,m.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,b.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),E=(0,o.memo)((e=>{if((0,m.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)(d.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)(g.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)(h.Z,{type:"dynamic-attributes"}),a.isPro&&(0,o.createElement)(t,{onClose:e.onClose,onChange:e.onChange,activeAttribute:e.activeAttribute,type:e.type})))})),S=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)(d.TextControl,{value:a.placeholder,disabled:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}):t,(0,o.createElement)(E,a)),(0,o.createElement)(v.J,{allowReset:!0,value:a.activeAttribute,default:"",hasPanelModifiedIndicator:a.hasPanelModifiedIndicator,onChange:a.onReset}))};S.defaultProps={enable:!1,controlHasTooltip:!1,children:null,activeAttribute:"",onReset:()=>{}};const C=S},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 u=()=>{},d=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:u,onEscape:e.closeOnEscape?e.onClose:u},(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})));d.defaultProps={title:"",video:"",description:"",closeOnEscape:!0,onClose:u,showTooltipCheckbox:!0,tooltipsEnabled:!0,onTooltipsEnabledChange:u};const p=d},3566:(e,t,n)=>{"use strict";n.d(t,{AdvancedFocalPointControl:()=>xa,AdvancedRangeControl:()=>K,AdvancedSelectControl:()=>Q,AdvancedTextControl:()=>O,AdvancedToggleControl:()=>Ea,AdvancedTokenField:()=>Na,AdvancedToolbarControl:()=>Ee,AlignButtonsControl:()=>Do,BaseControl:()=>fa,BaseControlMultiLabel:()=>so,BlendModeControl:()=>F,BlockStyleGenerator:()=>Hl.WS,BlockStyles:()=>Qo,BlockWrapper:()=>Fl,BorderControls:()=>eo,Button:()=>m.Z,ButtonIconPopoverControl:()=>Xn,CodeTextarea:()=>zo,ColorPaletteControl:()=>x,ColorSchemesHelp:()=>gn,ColumnsWidthControl:()=>ei,ColumnsWidthMultiControl:()=>ni,ControlSeparator:()=>ca,CustomAttributesControl:()=>D,DesignControl:()=>Dn,DesignPanelItem:()=>On,Div:()=>Il,FontAwesomeIcon:()=>ma,FontFamilyControl:()=>Te,FontSizeControl:()=>Ce,FourRangeControl:()=>Co,GuidedModalTour:()=>oa,HeadingButtonsControl:()=>Bo,IconControl:()=>zn,IconSearchPopover:()=>Yn,ImageAltControl:()=>z,ImageControl2:()=>ya,ImageFilterControl:()=>Ba,ImageShapeControl:()=>$,ImageSizeControl:()=>Z,InspectorAdvancedControls:()=>Cl,InspectorBlockControls:()=>El,InspectorLayoutControls:()=>wl,InspectorStyleControls:()=>Sl,Link:()=>Va,LinkControl:()=>Ra,PanelAdvancedSettings:()=>Yt,PanelTabs:()=>Bn,Popover:()=>oi.Z,ProControl:()=>Kt.Z,ProControlButton:()=>ao,ResizableBottomMargin:()=>vl,ResizableColumn:()=>al,ResizerTooltip:()=>cl,Separator2:()=>Al,ShadowControl:()=>Da,SortControl:()=>Ft,SpacingControl:()=>no,StyleControl:()=>ja,SvgIcon:()=>ba,Tooltip:()=>vn,VariationPicker:()=>Ll,WhenResponsiveScreen:()=>To});var o=n(2610),a=n(7462),l=n(7294);var r=n(4184),i=n.n(r),s=n(7537),c=n(78);var u=n(8003),d=n(910),p=n(8085);(0,u.__)("URL",d.i18n);var m=n(2440),h=n(7823),g=n(3891);h.Wj,h.y$,(0,u.__)("Opens in new tab",d.i18n),(0,u.__)("Nofollow link",d.i18n),(0,u.__)("Sponsored",d.i18n),(0,u.__)("UGC",d.i18n);var b=n(2622),v=n(5917),f=n(5509),k=n(3882);const _=[{value:"",title:(0,u.__)("Single",d.i18n)},{value:"gradient",title:(0,u.__)("Gradient",d.i18n)}],y=(0,o.memo)((e=>{const{onChange:t,preOnChange:n,value:a,colors:l,gradients:r,isGradient:i}=e,[u,d]=(0,o.useState)(a.startsWith("linear-")||a.startsWith("radial-")?"gradient":""),p=l.reduce(((e,t)=>[...e,...t.colors||t.gradients]),[]);let m,h=a;return p.some((e=>(e.color===a||e.gradient===a)&&(h=e.name,m=e.name,!0))),m=h||("transparent"===a?"Transparent":a),(0,o.createElement)(o.Fragment,null,e.hasGradientPicker&&(0,o.createElement)(Ee,{className:"stk-color-palette-popup-control__tabs",controls:_,fullwidth:!1,allowReset:!1,value:u,onChange:e=>d(e),disabled:e.enableGradient?[]:["gradient"]}),(e.hasGradientPicker?u:i)&&(0,o.createElement)(s.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?!u:!i)&&(0,o.createElement)(s.ColorPicker,{onChange:e=>{t(n(e,a))},color:a,enableAlpha:!0}),(e.hasGradientPicker?!u:!i)&&(0,o.createElement)(s.ColorPalette,{value:a,onChange:e=>{const o=(0,c.getColorObjectByColorValue)(p,e);t(n((0,k.applyFilters)("stackable.color-palette-control.change",e,o),a))},disableCustomColors:!0,label:m,clearable:!1,colors:l,__experimentalHasMultipleOrigins:!0}))}));y.defaultProps={value:"",onChange:()=>{},preOnChange:e=>e,colors:[],gradients:[],isGradient:!1,hasGradientPicker:!1,enableGradient:!1};var w=n(3284),E=n(3796);const S={placement:"left-start",offset:36,shift:!0};(0,k.addFilter)("stackable.color-palette-control.colors","stackable/global-color-schemes-color-palette-control",(e=>{let{colors:t,gradients:n}=e;const{getColorGroups:o}=(0,E.useBlockColorSchemes)(),{colorSchemeColors:a,colorSchemeGradients:l}=o();let r=(0,p.cloneDeep)(t),i=(0,p.cloneDeep)(n);return i=[...l,...i],r=[...a,...t],{colors:r,gradients:i}})),(0,k.addFilter)("stackable.color-palette-control.colors","stackable/color-palette-control",(e=>{let{colors:t,gradients:n}=e;const{stackableColors:o,stackableGradients:a}=(0,w.select)("stackable/global-colors").getSettings();let l=(0,p.cloneDeep)(t),r=(0,p.cloneDeep)(n);return a&&a.length&&(r=[{name:(0,u.__)("Global Gradients",d.i18n),gradients:(0,p.cloneDeep)(a),id:"stk-global-gradients"},...r]),o&&o.length&&(l=[{name:(0,u.__)("Global Colors",d.i18n),colors:(0,p.cloneDeep)(o),id:"stk-global-colors"},...l]),{colors:l,gradients:r}})),(0,k.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 C=(0,o.memo)((e=>{const{label:t,className:n=""}=e,[l,r]=(0,f.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[d,p]=(0,b.ED)(e),{hideThemeColors:m,hideDefaultColors:h,hideSiteEditorColors:g}=(0,w.useSelect)("stackable/global-colors").getSettings();let{colors:_,gradients:E}=(0,k.applyFilters)("stackable.color-palette-control.colors",(0,c.__experimentalUseMultipleOriginColorsAndGradients)());_=_.filter((e=>!(m&&e.name===(0,u._x)("Theme","Indicates this palette comes from the theme.")||h&&e.name===(0,u._x)("Default","Indicates this palette comes from WordPress.")||g&&e.name===(0,u._x)("Custom","Indicates this palette comes from the theme.")))),E=E.filter((e=>!(m&&e.name===(0,u._x)("Theme","Indicates this palette comes from the theme.")||h&&e.name===(0,u._x)("Default","Indicates this palette comes from WordPress.")||g&&e.name===(0,u._x)("Custom","Indicates this palette comes from the theme."))));const C=[..._,...E].reduce(((e,t)=>[...e,...t.colors||t.gradients]),[]);let x=void 0===e.value?l:e.value;const N=void 0===e.onChange?r:e.onChange;x=(0,k.applyFilters)("stackable.color-palette-control.color-value",x);let M,I=x,B=x;C.some((e=>e.color===x||e.gradient===x?(I=e.name,M=e.name,!0):!(!e.slug||`var(--${e.slug})`!==x||(I=e.name,M=e.name,B=e.color,0)))),M=I||("transparent"===x?"Transparent":x);const O={colorValue:x,label:e.colorLabel||M,additionalToggleProps:e.additionalToggleProps},P=(0,o.createElement)(y,{value:B,onChange:N,preOnChange:e.preOnChange,colors:e.isGradient?E:_,isGradient:e.isGradient,hasGradientPicker:e.hasGradientPicker,enableGradient:e.hasGradientPicker&&e.enableGradient,gradients:E});return(0,o.createElement)(b.ZP,(0,a.Z)({},p,{className:i()([n,"editor-color-palette-control","stk-color-palette-control"]),label:t}),e.isExpanded&&P,!e.isExpanded&&(0,o.createElement)(s.Dropdown,{popoverProps:S,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:T(O),renderContent:()=>(0,o.createElement)("div",{className:"stk-color-palette-control__popover-content"},P)}),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:x,default:e.default,onChange:N}))}));C.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 x=C,T=e=>t=>{let{onToggle:n,isOpen:a}=t;const{colorValue:l,label:r,additionalToggleProps:c}=e,u={onClick:n,className:i()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":a}),"aria-expanded":a,...c};return(0,o.createElement)(s.Button,u,(0,o.createElement)(N,{colorValue:l,label:r}))},N=e=>{let{colorValue:t,label:n}=e;return(0,o.createElement)(s.__experimentalHStack,{justify:"flex-start"},(0,o.createElement)(s.ColorIndicator,{className:"stk-color-indicator block-editor-panel-color-gradient-settings__color-indicator",colorValue:t}),(0,o.createElement)(s.FlexItem,{className:"stk-color-name block-editor-panel-color-gradient-settings__color-name",title:n},n))};var M=n(1205),I=n(9755);const B=(0,o.memo)((e=>{const[t,n]=(0,f.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=(0,b.ED)(e),{isDynamic:c,isMultiline:u,changeDynamicContent:d,isFormatType:p,...m}=l,h=void 0!==d?d:void 0===e.onChange?n:e.onChange,g=(0,I.WA)({value:void 0===e.value?t:e.value,onChange:h,isFormatType:p}),[k,_]=(0,E.useInternalValue)(void 0===e.value?t:e.value),y=void 0===e.onChange?n:e.onChange,w=e=>{_(e),y(e)},S=u?s.TextareaControl:s.TextControl;return(0,o.createElement)(b.ZP,(0,a.Z)({className:e.className},r),(0,o.createElement)(I.ZP,(0,a.Z)({enable:c,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator},g),(0,o.createElement)(S,(0,a.Z)({},m,{value:k,onChange:w,className:i()(l.className,"ugb-advanced-text-control"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}))),(0,o.createElement)(v.J,{allowReset:r.allowReset&&!e.isDynamic,value:k,default:e.default,onChange:w,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator}))}),p.isEqual);B.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 O=B,P=e=>Array.isArray(e)?e.map((e=>{const[t,n]=e;var o;return[t,`"${o=n,(0,p.escape)(unescape(o))}"`].join("=")})).join(" "):"",A=e=>{const t=(0,o.useRef)(),[n,a]=(0,o.useState)(!1),[l,r]=(0,o.useState)(P(e.value));return(0,o.createElement)(O,{ref:t,"data-testid":"custom-attributes",className:"ugb-custom-attributes-control",label:(0,u.__)("Custom Attributes",d.i18n),value:l,onBlur:()=>{Array.isArray(e.value)&&e.value.length>0&&r(P(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,M.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,u.__)("You can type in custom HTML attributes for this block in the field above.",d.i18n)," ",(0,u.__)("Example:",d.i18n),(0,o.createElement)("br",null),(0,o.createElement)("code",null,'data-id="my-title"'),(0,o.createElement)("br",null),(0,o.createElement)(s.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,u.__)("Learn more about Custom Attributes",d.i18n)),n&&(0,o.createElement)("span",{className:"ugb-custom-attributes-control__error"},(0,u.__)("There is an error in your custom attribute",d.i18n)))})};A.defaultProps={label:"",value:[],invalidHtmlAttributes:[],onChange:()=>{}};const D=A,L=[{value:"",label:(0,u.__)("None",d.i18n)},{value:"normal",label:(0,u.__)("Normal",d.i18n)},{value:"multiply",label:(0,u.__)("Multiply",d.i18n)},{value:"screen",label:(0,u.__)("Screen",d.i18n)},{value:"overlay",label:(0,u.__)("Overlay",d.i18n)},{value:"darken",label:(0,u.__)("Darken",d.i18n)},{value:"lighten",label:(0,u.__)("Lighten",d.i18n)},{value:"color-dodge",label:(0,u.__)("Color Dodge",d.i18n)},{value:"color-burn",label:(0,u.__)("Color Burn",d.i18n)},{value:"hard-light",label:(0,u.__)("Hard Light",d.i18n)},{value:"soft-light",label:(0,u.__)("Soft Light",d.i18n)},{value:"difference",label:(0,u.__)("Difference",d.i18n)},{value:"exclusion",label:(0,u.__)("Exclusion",d.i18n)},{value:"hue",label:(0,u.__)("Hue",d.i18n)},{value:"saturation",label:(0,u.__)("Saturation",d.i18n)},{value:"color",label:(0,u.__)("Color",d.i18n)},{value:"luminosity",label:(0,u.__)("Luminosity",d.i18n)},{value:"initial",label:(0,u.__)("Initial",d.i18n)},{value:"inherit",label:(0,u.__)("Inherit",d.i18n)},{value:"unset",label:(0,u.__)("Unset",d.i18n)}],R=e=>(0,o.createElement)(Q,(0,a.Z)({},e,{className:e.className,options:L}));R.defaultProps={className:"",label:(0,u.__)("Mix Blend Mode",d.i18n),help:""};const F=R,H=e=>{const[t,n]=(0,E.useInternalValue)(e.value);return(0,o.createElement)(s.TextareaControl,(0,a.Z)({},e,{value:t,onChange:t=>{n(t),e.onChange(t)},help:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,u.__)("Describe the purpose of the image",d.i18n)),(0,u.__)("Leave empty if the image is purely decorative.",d.i18n)),__nextHasNoMarginBottom:!0}))};H.defaultProps={label:(0,u.__)("Alt Text (Alternative Text)",d.i18n)};const z=H,j=e=>{const{className:t,hasDefault:n,...l}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Dn,(0,a.Z)({},l,{className:i()(t,["ugb-image-shape-control"]),options:[...n?[{label:(0,u.__)("Default",d.i18n),value:"",image:"dist/images/components-image-shape-control-default.5e465f6.png"}]:[],{label:(0,u.__)("Square",d.i18n),value:"square",image:"dist/images/components-image-shape-control-square.d8d54ee.png"},{label:(0,u.__)("Circle",d.i18n),value:"circle",image:"dist/images/components-image-shape-control-circle.ddaef4e.png"},{label:(0,u.sprintf)((0,u.__)("Blob %s",d.i18n),1),value:"blob1",image:"dist/images/components-image-shape-control-blob1.3c54e8e.png"},...(0,k.applyFilters)("stackable.image.control.shapes",[])]})),d.showProNotice&&(0,o.createElement)(ao,{type:"image"}))};j.defaultProps={className:"",label:(0,u.__)("Shape",d.i18n),selected:"",hasDefault:!0};const $=j;var V=n(3749);const U=e=>{let{imageSizes:t,value:n,className:l,defaultValue:r,...i}=e;const s=(e=>(0,p.map)(e,(e=>{let{name:t,slug:n}=e;return{value:n,label:t}})))(t);return(0,p.isEmpty)(s)?null:(0,o.createElement)(Q,(0,a.Z)({},i,{value:n||"large",options:s,className:l,defaultValue:r||"large",default:r||"large"}))};U.defaultProps={className:"",label:(0,u.__)("Image Size",d.i18n),value:"large",defaultValue:"",imageSizes:[],onChange:()=>{}};const Z=(0,V.compose)([(0,w.withSelect)((e=>({imageSizes:e("core/block-editor").getSettings().imageSizes})))])(U),q=!!s.__experimentalNumberControl,W=(0,o.memo)((e=>{const{allowReset:t,withInputField:n,isShiftStepEnabled:l,placeholderRender:r,defaultValue:c,children:h,...g}=e,b=()=>""===e.value||isNaN(e.value)&&"auto"!==e.value?"":e.value,[v,f]=(0,o.useState)(""===e.value||isNaN(e.value)&&"auto"!==e.value?"":e.value),[k,_]=(0,o.useState)(b());b()!==k&&(_(b()),""===e.value||isNaN(e.value)&&"auto"!==e.value?f(""):f(e.value));const y=t=>{if(f(t),"string"!=typeof t||"auto"!==t.toLowerCase()){if(!isNaN(t)){const n=parseFloat(t);if(!isNaN(n)){const t=(0,p.clamp)(n,e.min,e.max);return f(t),void e.onChange(t)}}e.onChange(e.resetFallbackValue)}else e.onChange(t)},w=i()(["ugb-range-control",e.className],{"ugb-range-control--blank":""===v}),E=""===v,S=null!==e.placeholder?e.placeholder:e.sliderMin||e.min,C=null!==e.initialPosition?e.initialPosition:S,x=((e,t,n)=>{const o=(e-t)/(n-t)*100;return`${(0,p.clamp)(o,0,100)}%`})(E?C: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=C):T=r(v),(0,o.createElement)("div",{className:w,style:{"--ugb-advanced-range-control--width":x}},(0,o.createElement)(s.RangeControl,(0,a.Z)({},g,{value:v,initialPosition:"",onChange:y,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&&q&&(0,o.createElement)(s.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:l,max:e.max,min:e.min,onChange:y,onBlur:()=>{if("string"!=typeof v||"auto"!==v.toLowerCase()){if(!isNaN(v)){const t=parseFloat(v);if(!isNaN(t))return void f((0,p.clamp)(t,e.min,e.max))}f(e.resetFallbackValue)}else f(v)},shiftStep:e.shiftStep,step:e.step,value:v,placeholder:T,type:"text",__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),h,t&&(0,o.createElement)(m.Z,{className:"components-range-control__reset",disabled:e.disabled,isSecondary:!0,isSmall:!0,onClick:()=>{f(e.resetFallbackValue),e.onChange(e.resetFallbackValue)}},(0,u.__)("Reset",d.i18n)))}));W.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 G=W,J=(0,g.jsxs)(h.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,g.jsx)(h.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,g.jsx)(h.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"})]}),Y=e=>{var t,n,l;const[r,i]=(0,f.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[c,u]=(0,b.ED)(e),p=(0,E.useDeviceType)(),[m]=(0,E.useBlockHoverState)(),h=!(null===(t=e.units)||void 0===t||!t.length),g=(0,E.useBlockSetAttributesContext)(),k=(0,E.useAttributeName)(`${e.attribute}Unit`,e.responsive,e.hover),{unitAttribute:_,_valueDesktop:y,_valueTablet:S,_unitDesktop:C,_unitTablet:x}=(0,E.useBlockAttributesContext)((t=>({unitAttribute:t[k],_valueDesktop:t[`${e.attribute}`],_valueTablet:t[`${e.attribute}Tablet`],_unitDesktop:t[`${e.attribute}Unit`],_unitTablet:t[`${e.attribute}UnitTablet`]}))),T="string"==typeof e.unit?e.unit||(null===(n=e.units)||void 0===n?void 0:n[0])||"px":_||"",N=!(null!==(l=null===d.settings||void 0===d.settings?void 0:d.settings.stackable_use_size_presets_by_default)&&void 0!==l&&!l);if(h){const t=e.units.indexOf(T)<0?0:e.units.indexOf(T);Array.isArray(e.min)&&(c.min=e.min[t]),Array.isArray(e.max)&&(c.max=e.max[t]),Array.isArray(e.sliderMin)&&(c.sliderMin=e.sliderMin[t]),Array.isArray(e.sliderMax)&&(c.sliderMax=e.sliderMax[t]),Array.isArray(e.step)&&(c.step=e.step[t]),c.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,0!==t&&(c.initialPosition="",c.placeholder="")}"Mobile"===p&&S&&""!==S?(c.initialPosition=_===x?S:"",c.placeholder=_===x?S:""):"Mobile"!==p&&"Tablet"!==p||!y||""===y||(c.initialPosition=_===C?y:"",c.placeholder=_===C?y:""),e.forcePlaceholder||"normal"===m||(c.initialPosition="",c.placeholder="");let B=e.placeholderRender;("normal"!==m||h&&T!==e.units[0])&&(B=null);let O=void 0===e.value?r:e.value;const P=(0,o.useRef)(!1);let A=!!e.marks&&N;if(e.marks&&O){const t=(0,M.getCSSVarName)(O),n=e.marks.find((e=>(0,M.getCSSVarName)(e.value)===t));A=!!n,n&&(O=n.value)}const[D,L]=(0,o.useState)(A);(0,o.useEffect)((()=>{L(A)}),[p]);const R=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)},F=(0,I.WA)({value:O,onChange:R});e.marks&&D?(c.min=0,c.max=e.marks.length-1,c.sliderMax=e.marks.length-1,c.step=1,c.marks=e.marks.reduce(((e,t,n)=>[{value:n,name:void 0},...e]),[]),c.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)||""},c.withInputField=!1,u.units=!1,c.initialPosition="",c.placeholder=""):c.marks=void 0,e.marks&&(u.className=u.className||"",u.className+="stk-range-control--with-marks",u.className+=D?" stk-range-control--mark-mode":""),e.isCustomPreset&&(u.className=u.className||"",u.className+="stk-preset-controls");let H=c.isDynamic||e.marks?parseFloat(O):O,z=R;if(D)H=e.marks.findIndex((e=>{let t,n;return"string"==typeof O&&O.startsWith("var")?[n,t]=(0,M.extractNumbersAndUnits)(e.value)[0]:[n,t]=(0,M.extractNumbersAndUnits)(e.size)[0],n===O&&(""===t||t===T)})),H=-1===H?"":H,z=function(t){var n;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";if(""===t)return R(t);const a=(null===(n=e.marks[t])||void 0===n?void 0:n[o])||"0";let[l,r]=(0,M.extractNumbersAndUnits)(a)[0];const i=(0,M.convertToPxIfUnsupported)(e.units,r,l);l=i.value,r=i.unit,r&&((0,w.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),g({[k]:r}),e.onChangeUnit&&e.onChangeUnit(r)),R(l),P.current=!1};else if("string"==typeof O&&O.startsWith("var")){var j;const t=null===(j=e.marks.find((e=>O===e.value)))||void 0===j?void 0:j.size;let[n,o]=(0,M.extractNumbersAndUnits)(t)[0];const a=(0,M.convertToPxIfUnsupported)(e.units,o,n);n=a.value,o=a.unit,H=parseFloat(n),o&&!P.current&&((0,w.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),g({[k]:o}),e.onChangeUnit&&e.onChangeUnit(o),P.current=!0),u.onChangeUnit=(t,o)=>{(0,w.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),g({[o]:t}),e.onChangeUnit&&e.onChangeUnit(t),R(n)}}return(0,o.createElement)(b.ZP,u,(0,o.createElement)(I.ZP,(0,a.Z)({enable:c.isDynamic,controlHasTooltip:!0},F),(0,o.createElement)(G,(0,a.Z)({},c,{value:H,onChange:z,allowReset:!1,placeholderRender:B,__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(s.Button,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{L(!D)},icon:J}))),(0,o.createElement)(v.J,{allowReset:e.allowReset,showReset:e.showReset,value:O,default:e.default,onChange:e.onReset?e.onReset:R}))};Y.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 K=(0,o.memo)(Y,p.isEqual),X=(0,o.memo)((e=>{const[t,n]=(0,f.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=(0,b.ED)(e),{defaultValue:c,...u}=l;return(0,o.createElement)(b.ZP,(0,a.Z)({},r,{className:i()("ugb-advanced-select-control",e.className)}),(0,o.createElement)(s.SelectControl,(0,a.Z)({},u,{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)(v.J,{allowReset:e.allowReset,value:void 0===e.value?t:e.value,default:e.default,onChange:void 0===e.onChange?n:e.onChange}))}),p.isEqual);X.defaultProps={className:"",url:"",allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const Q=X;var ee=n(8808),te=n.n(ee);const ne=(e,t)=>{const n=e.trim().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!n)return t;const o=new RegExp(n,"i");return oe(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)))},oe=e=>!(!e.length||"object"!=typeof e[0].options),ae=(e,t)=>{if(!t.length)return e;if(!oe(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},le=e=>e.value,re=e=>(0,o.createElement)("div",{className:"ugb--autosuggest-group"},e.title),ie=e=>e.options,se=()=>!0;class ce 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:ae(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:ne("",this.props.options)});if("input-focused"===n||"suggestion-selected"===n)return void this.setState({suggestions:this.props.options,isEmpty:!1});const o=ne(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?ae(this.props.value,this.props.options):this.props.value,suggestions:ne(this.props.disableAutoIndex?"":this.props.value,this.props.options)})}componentWillReceiveProps(e){this.setState({value:e.value,label:e.value?ae(e.value,e.options):e.value,suggestions:ne(this.props.disableAutoIndex?"":e.value,e.options)})}onSuggestionsClearRequested(){this.setState({suggestions:[]})}render(){var e,t,n,l;const{label:r,suggestions:s}=this.state,c={placeholder:this.props.placeholder,value:r,onChange:this.onChange,onFocus:this.onFocus,type:"search",...this.props.inputProps};return(0,o.createElement)(fa,{help:this.props.help,className:i()("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)(te(),{multiSection:oe(this.props.options),suggestions:s,focusInputOnSuggestionClick:!1,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.props.onSuggestionSelected,getSuggestionValue:this.props.getSuggestionValue||le,renderSuggestion:e=>(0,o.createElement)("div",{className:"ugb-autosuggest-option","data-value":e.value,id:`ugb-autosuggest-option--${e.id||(0,p.kebabCase)(e.value)}`},this.props.renderOption?this.props.renderOption(e):e.label),renderSectionTitle:re,getSectionSuggestions:ie,shouldRenderSuggestions:se,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:i()(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))}}ce.defaultProps={onChange:()=>{},help:"",className:"",screens:["desktop"],options:[],value:"",noMatchesLabel:(0,u.__)("No matches found",d.i18n),renderOption:null,highlightValueOnFocus:!1,allowReset:!0,placeholder:"",getSuggestionValue:null,disableAutoIndex:!1,onSuggestionSelected:()=>{},renderInputComponent:null,inputProps:{},helpTooltip:{}};const ue=ce,de=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"}))},pe=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"}))},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:"M2 1H1v18h1V1zM6 5H3v10h3V5zM10 5H7v10h3V5z"}))},he=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"}))},ge=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"}))},ve=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"}))},fe=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"}))},ke=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"}))},_e={"flex-horizontal":[{value:"flex-start",title:(0,u.__)("Start",d.i18n),icon:(0,o.createElement)(me,{width:"24",height:"24"})},{value:"center",title:(0,u.__)("Center",d.i18n),icon:(0,o.createElement)(pe,{width:"24",height:"24"})},{value:"flex-end",title:(0,u.__)("End",d.i18n),icon:(0,o.createElement)(he,{width:"24",height:"24"})},{value:"space-between",title:(0,u.__)("Space Between",d.i18n),icon:(0,o.createElement)(ge,{width:"24",height:"24"})},{value:"space-around",title:(0,u.__)("Space Around",d.i18n),icon:(0,o.createElement)(be,{width:"24",height:"24"})},{value:"space-evenly",title:(0,u.__)("Space Evenly",d.i18n),icon:(0,o.createElement)(ve,{width:"24",height:"24"})}],"flex-horizontal-alt":[{value:"flex-start",title:(0,u.__)("Start",d.i18n),icon:(0,o.createElement)(me,{width:"24",height:"24"})},{value:"center",title:(0,u.__)("Center",d.i18n),icon:(0,o.createElement)(pe,{width:"24",height:"24"})},{value:"flex-end",title:(0,u.__)("End",d.i18n),icon:(0,o.createElement)(he,{width:"24",height:"24"})},{value:"space-between",title:(0,u.__)("Space Between",d.i18n),icon:(0,o.createElement)(ge,{width:"24",height:"24"})}],"flex-vertical":[{value:"flex-start",title:(0,u.__)("Start",d.i18n),icon:(0,o.createElement)(fe,{width:"24",height:"24"})},{value:"center",title:(0,u.__)("Center",d.i18n),icon:(0,o.createElement)(ke,{width:"24",height:"24"})},{value:"flex-end",title:(0,u.__)("End",d.i18n),icon:(0,o.createElement)(de,{width:"24",height:"24"})},{value:"stretch",title:(0,u.__)("Stretch",d.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,u.__)("Baseline",d.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,u.__)("Start",d.i18n),icon:(0,o.createElement)(fe,{width:"24",height:"24"})},{value:"center",title:(0,u.__)("Center",d.i18n),icon:(0,o.createElement)(ke,{width:"24",height:"24"})},{value:"flex-end",title:(0,u.__)("End",d.i18n),icon:(0,o.createElement)(de,{width:"24",height:"24"})},{value:"space-between",title:(0,u.__)("Space Between",d.i18n),icon:(0,o.createElement)(ge,{style:{transform:"rotate(90deg)"},width:"24",height:"24"})},{value:"space-around",title:(0,u.__)("Space Around",d.i18n),icon:(0,o.createElement)(be,{style:{transform:"rotate(90deg)"},width:"24",height:"24"})},{value:"space-evenly",title:(0,u.__)("Space Evenly",d.i18n),icon:(0,o.createElement)(ve,{style:{transform:"rotate(90deg)"},width:"24",height:"24"})}],horizontal:[{value:"flex-start",title:(0,u.__)("Left",d.i18n),icon:(0,o.createElement)(me,null)},{value:"center",title:(0,u.__)("Center",d.i18n),icon:(0,o.createElement)(pe,{width:"24",height:"24"})},{value:"flex-end",title:(0,u.__)("Right",d.i18n),icon:(0,o.createElement)(he,{width:"24",height:"24"})}],vertical:[{value:"flex-start",title:(0,u.__)("Top",d.i18n),icon:(0,o.createElement)(fe,{width:"24",height:"24"})},{value:"center",title:(0,u.__)("Center",d.i18n),icon:(0,o.createElement)(ke,{width:"24",height:"24"})},{value:"flex-end",title:(0,u.__)("Bottom",d.i18n),icon:(0,o.createElement)(de,{width:"24",height:"24"})}]},ye=e=>{const[t,n]=(0,f.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=(0,b.ED)(e),{className:c="",controls:u,fullwidth:d,multiline:h,isToggleOnly:g,omit:_}=l,y=(0,k.applyFilters)("stackable.toolbar-control.controls",_e),w="string"==typeof u?y[u]:u,E=i()({"ugb-toolbar--full-width":d,"ugb-toolbar--multiline":h,"ugb-toolbar--small":e.isSmall}),S=void 0===e.value?t:e.value,C=void 0===e.onChange?n:e.onChange,x=w.every((t=>!(S?S===t.value:e.placeholder===t.value)));return(0,o.createElement)(b.ZP,(0,a.Z)({},r,{className:i()("ugb-advanced-toolbar-control",c,r.className)}),(0,o.createElement)(s.ButtonGroup,{children:w.map(((t,n)=>{if(_.includes(t.value))return null;const l=e.default||"",r=S?S===t.value:e.placeholder===t.value,i=r?"0":"-1",s={...(0,p.omit)(t,"controls","show"),onClick:()=>{g&&t.value===S||C(t.value!==S?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)(m.Z,(0,a.Z)({key:t.value},s,{label:t.title||e.label,tabIndex:x&&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:E}),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:S,default:e.default,onChange:C}))},we=[];ye.defaultProps={controls:we,multiline:!1,fullwidth:!0,isSmall:!1,isToggleOnly:!1,allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0,placeholder:"",disabled:we,omit:we};const Ee=(0,o.memo)(ye,p.isEqual),Se=e=>{const t=e.placeholder;return(0,o.createElement)(K,(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)}}))};Se.defaultProps={label:(0,u.__)("Font Size",d.i18n),value:"",onChange:()=>{},unit:"px",onChangeUnit:()=>{},min:[0,0],max:[150,7],step:[1,.05],units:["px","em"],placeholder:""};const Ce=Se,xe=e=>{const{loadingThemeFont:t,themeFonts:l,themeFontOptions:r}=(0,w.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,u.__)("System Fonts",d.i18n),options:Object.keys(M.SYSTEM_FONT_STACKS).map((e=>({label:M.SYSTEM_FONT_STACKS[e].label,value:e})))},{id:"modern-font-stacks",title:(0,u.__)("Modern Font Stacks",d.i18n),options:Object.keys(M.MODERN_FONT_STACKS).map((e=>({label:M.MODERN_FONT_STACKS[e].label,value:e})))},{id:"google-fonts",title:(0,u.__)("Google Fonts",d.i18n),options:i}];return l.length&&e.unshift({id:"theme-fonts",title:(0,u.__)("Theme Fonts",d.i18n),options:r}),(0,k.applyFilters)("stackable.font-family-control.options",e)}),[t,i]);return(0,o.createElement)(ue,(0,a.Z)({options:c,highlightValueOnFocus:!0},e,{onChange:t=>{l.includes(t)||i.some((e=>e.value===t&&((0,M.loadGoogleFont)(t),!0))),e.onChange(t)}}))};xe.defaultProps={onChange:()=>{},label:(0,u.__)("Font Family",d.i18n),value:""};const Te=xe;function Ne(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 Me(e,t){if(e){if("string"==typeof e)return Ne(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)?Ne(e,t):void 0}}function Ie(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)||Me(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 Be(e){return Be="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},Be(e)}function Oe(e){var t=function(e,t){if("object"!=Be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=Be(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Be(t)?t:t+""}function Pe(e,t,n){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(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){Pe(e,t,n[t])}))}return e}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Le(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,Oe(o.key),o)}}function Re(e,t,n){return t&&Le(e.prototype,t),n&&Le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function He(e,t){if(t&&("object"==Be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}function je(e,t){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},je(e,t)}function $e(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&&je(e,t)}var Ve=n(1143),Ue=n.n(Ve);var Ze=n(5697),qe=n.n(Ze),We=function(){function e(){De(this,e),Pe(this,"refs",{})}return Re(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(Ge)}}]),e}();function Ge(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Je(e,t){return Object.keys(e).reduce((function(n,o){return-1===t.indexOf(o)&&(n[o]=e[o]),n}),{})}var Ye={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Ke=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 Xe(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function Qe(e,t){e.style["".concat(Ke,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function et(e,t){e.style["".concat(Ke,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function tt(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function nt(e,t,n){return Math.max(e,Math.min(n,t))}function ot(e){return"px"===e.substr(-2)?parseFloat(e):0}function at(e){var t=window.getComputedStyle(e);return{bottom:ot(t.marginBottom),left:ot(t.marginLeft),right:ot(t.marginRight),top:ot(t.marginTop)}}function lt(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function rt(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function it(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 st(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function ct(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:ct(e.parentNode,t,o)}}function ut(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function dt(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);Ue()(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 Ue()(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 pt(e){var t=e.height,n=e.width,o=e.lockOffset,a=Array.isArray(o)?o:[o,o];Ue()(2===a.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",o);var l=Ie(a,2),r=l[0],i=l[1];return[dt({height:t,lockOffset:r,width:n}),dt({height:t,lockOffset:i,width:n})]}function mt(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:mt(e.parentNode):null}function ht(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:ot(t.gridColumnGap),y:ot(t.gridRowGap)}:{x:0,y:0}}var gt="BUTTON",bt="INPUT",vt="OPTION",ft="TEXTAREA",kt="SELECT";function _t(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 Ne(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Me(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 yt(e){return null!=e.sortableHandle}var wt=function(){function e(t,n){De(this,e),this.container=t,this.onScrollCallback=n}return Re(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,u=c.scrollTop,d=c.scrollLeft,p=c.scrollHeight,m=c.scrollWidth,h=0===u,g=p-u-c.clientHeight==0,b=0===d,v=m-d-c.clientWidth==0;n.y>=a.y-r/2&&!g?(i.y=1,s.y=10*Math.abs((a.y-r/2-n.y)/r)):n.x>=a.x-l/2&&!v?(i.x=1,s.x=10*Math.abs((a.x-l/2-n.x)/l)):n.y<=o.y+r/2&&!h?(i.y=-1,s.y=10*Math.abs((n.y-r/2-o.y)/r)):n.x<=o.x+l/2&&!b&&(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}(),Et={axis:qe().oneOf(["x","y","xy"]),contentWindow:qe().any,disableAutoscroll:qe().bool,distance:qe().number,getContainer:qe().func,getHelperDimensions:qe().func,helperClass:qe().string,helperContainer:qe().oneOfType([qe().func,"undefined"==typeof HTMLElement?qe().any:qe().instanceOf(HTMLElement)]),hideSortableGhost:qe().bool,keyboardSortingTransitionDuration:qe().number,lockAxis:qe().string,lockOffset:qe().oneOfType([qe().number,qe().string,qe().arrayOf(qe().oneOfType([qe().number,qe().string]))]),lockToContainerEdges:qe().bool,onSortEnd:qe().func,onSortMove:qe().func,onSortOver:qe().func,onSortStart:qe().func,pressDelay:qe().number,pressThreshold:qe().number,keyCodes:qe().shape({lift:qe().arrayOf(qe().number),drop:qe().arrayOf(qe().number),cancel:qe().arrayOf(qe().number),up:qe().arrayOf(qe().number),down:qe().arrayOf(qe().number)}),shouldCancelStart:qe().func,transitionDuration:qe().number,updateBeforeSortStart:qe().func,useDragHandle:qe().bool,useWindowAsScrollContainer:qe().bool},St={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},Ct={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:St,shouldCancelStart:function(e){return-1!==[bt,ft,kt,vt,gt].indexOf(e.target.tagName)||!!tt(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},xt=Object.keys(Et);function Tt(e){Ue()(!(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 Nt(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 Mt=(0,l.createContext)({manager:{}});function It(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;De(this,n),Pe(Fe(Fe(t=He(this,ze(n).call(this,e)))),"state",{}),Pe(Fe(Fe(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=it(e);var l=tt(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&&!tt(e.target,yt))return;t.manager.active={collection:c,index:s},st(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))}}})),Pe(Fe(Fe(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Pe(Fe(Fe(t)),"handleMove",(function(e){var n=t.props,o=n.distance,a=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var l=it(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))}})),Pe(Fe(Fe(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Pe(Fe(Fe(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Pe(Fe(Fe(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),o=function(){if(n){var o=function(){var n=p.sortableInfo.index,o=at(p),a=ht(t.container),c=t.scrollContainer.getBoundingClientRect(),g=r({index:n,node:p,collection:m});if(t.node=p,t.margin=o,t.gridGap=a,t.width=g.width,t.height=g.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=ct(p,t.container),t.initialOffset=it(h?Ae({},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(_t(p)),Xe(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")}),h&&t.helper.focus(),s&&(t.sortableGhost=p,Xe(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},h){var b=d?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,v=b.top,f=b.left,k=b.width,_=v+b.height,y=f+k;t.axis.x&&(t.minTranslate.x=f-t.boundingClientRect.left,t.maxTranslate.x=y-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=v-t.boundingClientRect.top,t.maxTranslate.y=_-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(d?0:c.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(d?t.contentWindow.innerWidth:c.left+c.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(d?0:c.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(d?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,h?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(Ye.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),Ye.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),u&&u({node:p,index:n,collection:m,isKeySorting:h,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),h&&t.keyMove(0)},a=t.props,l=a.axis,r=a.getHelperDimensions,i=a.helperClass,s=a.hideSortableGhost,c=a.updateBeforeSortStart,u=a.onSortStart,d=a.useWindowAsScrollContainer,p=n.node,m=n.collection,h=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=Nt((function(){var t=p.sortableInfo.index;return Promise.resolve(c({collection:m,index:t,node:p,isKeySorting:h},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(o):o()}}();return Promise.resolve(o&&o.then?o.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),Pe(Fe(Fe(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)})),Pe(Fe(Fe(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)):(Ye.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),Ye.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),o&&t.sortableGhost&&Xe(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=s.length;c<u;c++){var d=s[c],p=d.node;d.edgeOffset=null,d.boundingClientRect=null,Qe(p,null),et(p,null),d.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})),Pe(Fe(Fe(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var o=Ae({},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,Qe(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})}})),Pe(Fe(Fe(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),Pe(Fe(Fe(t)),"handleKeyDown",(function(e){var n=e.keyCode,o=t.props,a=o.shouldCancelStart,l=o.keyCodes,r=Ae({},St,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))})),Pe(Fe(Fe(t)),"keyLift",(function(e){var n=e.target,o=tt(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)})),Pe(Fe(Fe(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=ut(t.newIndex,t.prevIndex,t.index),i=n.find((function(e){return e.node.sortableInfo.index===r})),s=i.node,c=t.containerScrollDelta,u=i.boundingClientRect||rt(s,c),d=i.translate||{x:0,y:0},p=u.top+d.y-c.top,m=u.left+d.x-c.left,h=l<a,g=h&&t.axis.x?s.offsetWidth-t.width:0,b=h&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:m+g,pageY:p+b,ignoreTransition:0===e})}})),Pe(Fe(Fe(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),Pe(Fe(Fe(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),Pe(Fe(Fe(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,o=e.target,a=tt(o,(function(e){return null!=e.sortableInfo}));return a&&a.sortableInfo&&!a.sortableInfo.disabled&&(n?yt(o):o.sortableInfo)}));var o=new We;return Tt(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 $e(n,t),Re(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:mt(e.container)||e.container,e.autoScroller=new wt(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return Ye[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 Ye[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,u=it(e),d={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(d.y-=window.pageYOffset-this.initialWindowScroll.top,d.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=d,a){var p=Ie(pt({height:this.height,lockOffset:o,width:this.width}),2),m=p[0],h=p[1],g={x:this.width/2-m.x,y:this.height/2-m.y},b={x:this.width/2-h.x,y:this.height/2-h.y};d.x=nt(this.minTranslate.x+g.x,this.maxTranslate.x-b.x,d.x),d.y=nt(this.minTranslate.y+g.y,this.maxTranslate.y-b.y,d.y)}"x"===n?d.y=0:"y"===n&&(d.x=0),s&&i&&!c&&et(this.helper,i),Qe(this.helper,d)}},{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,u=this.newIndex;this.newIndex=null;for(var d=0,p=r.length;d<p;d++){var m=r[d].node,h=m.sortableInfo.index,g=m.offsetWidth,b=m.offsetHeight,v={height:this.height>b?b/2:this.height/2,width:this.width>g?g/2:this.width/2},f=c&&h>this.index&&h<=u,k=c&&h<this.index&&h>=u,_={x:0,y:0},y=r[d].edgeOffset;y||(y=ct(m,this.container),r[d].edgeOffset=y,c&&(r[d].boundingClientRect=rt(m,a)));var w=d<r.length-1&&r[d+1],E=d>0&&r[d-1];w&&!w.edgeOffset&&(w.edgeOffset=ct(w.node,this.container),c&&(w.boundingClientRect=rt(w.node,a))),h!==this.index?(t&&et(m,t),this.axis.x?this.axis.y?k||h<this.index&&(i+l.left-v.width<=y.left&&s+l.top<=y.top+v.height||s+l.top+v.height<=y.top)?(_.x=this.width+this.marginOffset.x,y.left+_.x>this.containerBoundingRect.width-v.width&&w&&(_.x=w.edgeOffset.left-y.left,_.y=w.edgeOffset.top-y.top),null===this.newIndex&&(this.newIndex=h)):(f||h>this.index&&(i+l.left+v.width>=y.left&&s+l.top+v.height>=y.top||s+l.top+v.height>=y.top+b))&&(_.x=-(this.width+this.marginOffset.x),y.left+_.x<this.containerBoundingRect.left+v.width&&E&&(_.x=E.edgeOffset.left-y.left,_.y=E.edgeOffset.top-y.top),this.newIndex=h):f||h>this.index&&i+l.left+v.width>=y.left?(_.x=-(this.width+this.marginOffset.x),this.newIndex=h):(k||h<this.index&&i+l.left<=y.left+v.width)&&(_.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=h)):this.axis.y&&(f||h>this.index&&s+l.top+v.height>=y.top?(_.y=-(this.height+this.marginOffset.y),this.newIndex=h):(k||h<this.index&&s+l.top<=y.top+v.height)&&(_.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=h))),Qe(m,_),r[d].translate=_):n&&(this.sortableGhost=m,Xe(m,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var S=c?this.prevIndex:u;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 Ue()(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)(Mt.Provider,{value:this.sortableContextValue},(0,l.createElement)(e,(0,a.Z)({ref:t},Je(this.props,xt))))}},{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),Pe(t,"displayName",lt("sortableList",e)),Pe(t,"defaultProps",Ct),Pe(t,"propTypes",Et),n}var Bt={index:qe().number.isRequired,collection:qe().oneOfType([qe().number,qe().string]),disabled:qe().bool},Ot=Object.keys(Bt);function Pt(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;De(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return Pe(Fe(Fe(t=He(this,(e=ze(n)).call.apply(e,[this].concat(a))))),"wrappedInstance",(0,l.createRef)()),t}return $e(n,t),Re(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 Ue()(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},Je(this.props,Ot)))}}]),n}(l.Component),Pe(t,"displayName",lt("sortableElement",e)),Pe(t,"contextType",Mt),Pe(t,"propTypes",Bt),Pe(t,"defaultProps",{collection:0}),n}const At=It((e=>{let{children:t}=e;return(0,o.createElement)("div",{className:"ugb-sort-control__container"},t)})),Dt=Pt((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 Lt=!1;const Rt=(0,o.memo)((e=>{const[t,n]=(0,f.G)(e.attribute,e.responsive,e.hover),[l,r]=(0,b.ED)(e);let s=void 0===e.values?t:Array.isArray(e.values)?[...e.values]:"string"==typeof e.values?e.values.split(","):t;for(s=s?s.splice(0,e.num):(0,p.range)(e.num).map((e=>e+1));s.length<e.num;)s.push(s.length+1);const c=void 0===e.onChange?n:e.onChange,u=(0,p.range)(e.num).map((e=>(e+1).toString())),d=s.map((e=>e.toString()));return(0,o.createElement)(b.Xp,(0,a.Z)({},r,{className:i()(["ugb-sort-control",e.className,`ugb-sort-control--axis-${e.axis}`])}),(0,o.createElement)(At,(0,a.Z)({},l,{onSortStart:()=>Lt=!0,onSortOver:t=>{let{newIndex:n}=t;e.onHover(n)},onSortEnd:e=>{let{oldIndex:t,newIndex:n}=e;Lt=!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))(s,t,n);(0,p.isEqual)(o.map((e=>e.toString())),u)?c("",{oldIndex:0,newIndex:0}):c([...o],{oldIndex:t,newIndex:n})},axis:e.axis}),s.map(((t,n)=>(0,o.createElement)(Dt,{key:n,index:n,value:t,onMouseEnter:()=>{Lt||e.onHover(n)},onMouseLeave:()=>{Lt||e.onHover(null)}})))),(0,o.createElement)(v.J,{allowReset:e.allowReset,showReset:!(0,p.isEqual)(d,u),value:s,default:e.default,onChange:()=>c("",{oldIndex:0,newIndex:0})}))}));Rt.defaultProps={className:"",help:"",label:(0,u.__)("Column Arrangement",d.i18n),num:2,axis:"x",values:null,onChange:()=>{},onHover:()=>{},hasReset:!1};const Ft=Rt;function Ht(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 zt(e,t){void 0===t&&(t=null);const[,n]=(0,o.useState)(),a=jt.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 jt=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 Ht(t)}},$t=(0,g.jsx)(h.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)(h.y$,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),Vt=(0,g.jsx)(h.Wj,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)(h.y$,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),Ut=()=>{},Zt=(0,p.debounce)((e=>{e&&e.getBoundingClientRect().top<200&&e.scrollIntoView({inline:"start",block:"start",behavior:"instant"})}),0,{leading:!1,trailing:!0}),qt=(0,o.forwardRef)(((e,t)=>{let{isOpened:n,icon:l,title:r,isPremiumPanel:c,showModifiedIndicator:u,checked:d,hasToggle:p,onChange:m,setIsOpened:h,...g}=e;return r?(0,o.createElement)("h2",{className:"components-panel__body-title"},(0,o.createElement)(s.Button,(0,a.Z)({className:"components-panel__body-toggle stk-panel","aria-expanded":n,ref:t},g),(0,o.createElement)("span",{"aria-hidden":"true"},(0,o.createElement)(s.Icon,{className:"components-panel__arrow",icon:n?$t:Vt})),p&&(0,o.createElement)(s.FormToggle,{className:"ugb-toggle-panel-form-toggle",checked:d,onClick:e=>{e.stopPropagation(),e.preventDefault(),d&&n||d||n||h((e=>!e)),m&&m(!d)},"aria-describedby":r}),r,(0,o.createElement)("span",{className:i()(["stk-panel-modified-indicator",{"stk--visible":u}])}),c&&(0,o.createElement)("div",{className:"stk-pulsating-circle"}),l&&(0,o.createElement)(s.Icon,{icon:l,className:"components-panel__icon",size:20}))):null})),Wt=(0,o.forwardRef)(((e,t)=>{let{buttonProps:n={},children:l,className:r,icon:s,initialOpen:u,onToggle:d=Ut,isOpen:p=null,title:m,id:h="",checked:g,hasToggle:b,onChange:v=Ut,isPremiumPanel:f=!1,showModifiedIndicator:k=!1}=e;const{name:_}=(0,c.useBlockEditContext)(),[y,w]=zt(`panelCache-${_}-${h}-${m}`,void 0!==u&&u),E=null===p?y:p,S=(0,o.useRef)(),C=i()("components-panel__body","ugb-toggle-panel-body",r,{"is-opened":E,[`ugb-panel--${h}`]:h,"stk--premium-panel":f});return(0,o.createElement)("div",{className:C,ref:(0,V.useMergeRefs)([S,t])},(0,o.createElement)(qt,(0,a.Z)({icon:s,isOpened:E,onClick:e=>{e.preventDefault();const t=!E;w(t),d(t),t?setTimeout((()=>{Zt(S.current)}),0):Zt(S.current)},title:m,checked:g,hasToggle:void 0===b?!!v:b,onChange:v,setIsOpened:w,isPremiumPanel:f,showModifiedIndicator:k},n)),"function"==typeof l?l({opened:!0}):l)}));Wt.displayName="PanelBody";const Gt=Wt,Jt=(0,o.memo)((e=>(0,o.createElement)(Gt,e)));Jt.defaultProps={id:"",className:"",title:(0,u.__)("Settings",d.i18n),checked:!1,onChange:null,initialOpen:!1,hasToggle:!1,onToggle:()=>{},isOpen:null};const Yt=Jt;var Kt=n(4685);const Xt=wp.dom,Qt=()=>{},en=e=>{let{blocks:t="",shadowRoot:n,selectedTab:a,designIndex:l,onMouseDown:r=Qt,updateShadowBodySize:s=Qt,setIsLoading:c}=e;const u=(0,o.useRef)(null),d=(0,o.useRef)(null),p=(0,o.useRef)(!1),m=(0,o.useRef)(0),h=(0,o.useRef)(0),g=e=>{r(),p.current=!0,m.current=e.clientY;const t=u.current;t&&(h.current=t.scrollTop)},b=e=>{if(!p.current)return;const t=u.current;if(t){const n=e.clientY-m.current;t.scrollTop=h.current-4*n}},v=()=>{p.current=!1};(0,o.useEffect)((()=>{const e=u.current;if(e&&"patterns"!==a)return e.addEventListener("mousedown",g),window.addEventListener("mousemove",b),window.addEventListener("mouseup",v),()=>{e.removeEventListener("mousedown",g),window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",v)}}),[a]);const f=i()((0,k.applyFilters)("stackable.global-styles.classnames",["entry-content"]),{"preview-pages":"pages"===a});return(0,o.useEffect)((()=>{const e=d.current;if(!e||!t)return;c(!0);const n=window.requestIdleCallback?e=>window.requestIdleCallback(e,{timeout:5e3}):e=>setTimeout(e,20*l),o=(0,Xt.safeHTML)(t);if("pages"!==a||l<9)return e.innerHTML=o,void requestAnimationFrame((()=>{n((()=>c(!1)))}));requestAnimationFrame((()=>{n((()=>{e.innerHTML=o,s(),requestAnimationFrame((()=>{n((()=>c(!1)))}))}))}))}),[t,n]),(0,o.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)("body",{ref:u,className:f},(0,o.createElement)("div",{ref:d,style:{pointerEvents:"none"}}))),n)};var tn=n(9305),nn=n(424);const on="dist/images/components-design-library-list-maps.0f15487.webp";var an=n(8324),ln=n(378);const rn={...nn},sn=()=>{},cn=(0,o.memo)((e=>{const{shouldRender:t,presetMarks:n,previewProps:a,isMultiSelectBusy:l}=e,{selectedTab:r,selectedNum:c,selectedData:h,plan:g,label:b}=a,v=Array.isArray(n)&&n.length>=2?n[n.length-2].value:120,[f,_]=(0,o.useState)(!0),[y,E]=(0,o.useState)(!1),{hostRef:S,shadowRoot:C,stylesLoaded:x}=(e=>{const t=(0,o.useRef)(null),[n,a]=(0,o.useState)(null),[l,r]=(0,o.useState)(0),{getEditorDom:i}=(0,w.useSelect)("stackable/editor-dom"),s=i(),c=(0,k.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=d.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,tn.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),T=(0,o.useRef)(null),{blocks:N,enableBackground:I,shadowBodySizeRef:B,blocksForSubstitutionRef:O,previewSize:P,onClickDesign:A,updateShadowBodySize:D}=((e,t,n,a,l,r,i,s)=>{const{designId:c,template:u,category:m,plan:h,containerScheme:g,backgroundScheme:b,enableBackground:v,selectedTab:f,selectedNum:k,selectedData:_,onClick:y}=e,[E,S]=(0,o.useState)({parsed:null,serialized:""}),[C,x]=(0,o.useState)(""),[T,N]=(0,o.useState)(null),[I,B]=(0,o.useState)({}),O=(0,o.useRef)([]),P=(0,o.useRef)(!1),A=(0,o.useRef)(!1),D=(0,o.useRef)(null),L=(0,o.useRef)(null),R=(0,o.useRef)(f),F=(0,o.useRef)(null),H=(0,o.useRef)(!1),z=(0,w.useSelect)((e=>{var t;return(null===(t=e("core").getEntityRecord("root","site"))||void 0===t?void 0:t.title)||"InnovateCo"}),[]),j=d.devMode&&"1"===localStorage.getItem("stk__design_library__dev_mode"),$="patterns"===f,V=e=>{const t=e||(null==r?void 0:r.querySelector("body"));t&&(D.current={clientHeight:t.clientHeight,scrollHeight:t.scrollHeight,maxScrollTop:t.scrollHeight-t.clientHeight})},U=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||R.current!==f))||!t||n>3)return;const i=a.current.getBoundingClientRect(),s=l.current.getBoundingClientRect(),c=o.getBoundingClientRect(),u=i.width,d=s.width,p=Math.abs(c.height-s.height)<1;let m=!0;Math.abs(u-d)<1&&p&&(t-=1,m=!1);const h=r.querySelector("body");if(h&&m){const e=u>0?u/1300:1;let t=1200;"patterns"===f&&(t=h.offsetHeight);const n=parseFloat(t)*e;B((t=>{const o={...t,scale:e};return 0===Object.keys(t).length?(o.heightBackground=n,o.heightNoBackground=n):o[v?"heightBackground":"heightNoBackground"]=n,o})),V(h)}null!==F.current&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame((()=>U(t,++n)))};return(0,o.useEffect)((()=>{if(!t||H.current===u)return;i(!0),O.current=[],A.current=!1;let e=[],o=null;(async()=>{const t=u;if("patterns"===f){const n=(0,tn.un)(c),a=(0,tn.wT)(t,n,!1),l=j?(0,tn.wT)(t,n,!0):a;O.current.push(n),a.includes('stk-design-library__bg-target="true"')&&(A.current=!0),e=(0,tn.aj)(a),o=j?(0,tn.aj)(l):null}else{const a=t.map((e=>e.designId||e.id)),l=await Promise.all(a.map((e=>(0,an.fetchDesign)(e)))),r=a.map((e=>(0,tn.un)(e))),i=l.map(((e,t)=>(0,tn.wT)(e.template||e.content,r[t],!1))).join("\n"),s=j?l.map(((e,t)=>(0,tn.wT)(e.template||e.content,r[t],!0))).join("\n"):i;O.current.push(...r);const c=(0,tn.aj)(i),u=j?(0,tn.aj)(s):null;for(let a=0;a<t.length;a++){let l=c[a],i=j&&u?u[a]:null;t[a].bg&&(l=(0,tn.Nl)([l],!0,"")[0],i&&(i=(0,tn.Nl)([i],!0,"")[0])),(0,tn.W$)(l.attributes,r[a],n,!1),i&&(0,tn.W$)(i.attributes,r[a],n,!0),e.push(l),i&&(o=o||[],o.push(i))}}})().then((()=>{const[t,n]=(0,tn._w)(e),a=o?(0,tn._w)(o)[0]:null;P.current=n,x(t),N(a),i(!1),H.current=u}))}),[u,t]),(0,o.useEffect)((()=>{R.current=f}),[f]),(0,o.useEffect)((()=>{t&&C&&r&&(k&&R.current===f||(C&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C,t=(0,p.cloneDeep)((null==_?void 0:_.designData)||e);if(!t)return;""===g||k||(t=(0,tn.R6)(t,g)),v&&!k&&(t=(0,tn.Nl)(t,v,b,$)),"patterns"===f&&(0,tn.W$)(t[0].attributes,O.current[0],n,!1);let o=(0,ln.serialize)(t);if(O.current.includes("header")&&(o=o.replace(/<!--\s*wp:site-title(?:\s+[^\/]*?)?\/-->/g,(0,p.escape)(z))),O.current.includes("tabs")&&(o=o.replace('"stk-block-tabs__tab"','"stk-block-tabs__tab stk-block-tabs__tab--active"')),O.current.includes("post-loop")){const e=rn["post-loop"];o=(0,tn.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="'+d.srcUrl+"/"+on+'" />')+o))),o=(0,tn.wr)(o);const a=(0,M.cleanSerializedBlock)(o);S({parsed:t,serialized:a})}(),null!==F.current&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame((()=>U()))))}),[C,g,b,v,k,t,r]),(0,o.useEffect)((()=>{E.parsed&&E.serialized&&t&&L.current!==v&&(L.current=v,null!==F.current&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame((()=>U())))}),[E,v]),(0,o.useEffect)((()=>{E.parsed&&E.serialized&&t&&(null!==F.current&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame((()=>U())))}),[s]),(0,o.useEffect)((()=>()=>{cancelAnimationFrame(F.current),F.current=null}),[]),{blocks:E.serialized,enableBackground:v,shadowBodySizeRef:D,blocksForSubstitutionRef:P,previewSize:I,onClickDesign:()=>{if(!d.isPro&&"free"!==h)return;const e=a.current.getBoundingClientRect(),t={preview:v?I.heightBackground:I.heightNoBackground,card:e.height,scale:I.scale};y(c,m,T||E.parsed,P.current,t)},updateShadowBodySize:V}})(a,t,v,T,S,C,_,x),{onMouseOut:L,onMouseOver:R,onMouseDown:F}=((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 u=8*c*(1-c),d=Math.max(20*u,5);e.scrollTop=o+d,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?sn:()=>{var n,o,c;const u=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");u&&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(u,e),i.current=null}),1e3))},onMouseOut:"patterns"===n?sn:()=>{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?sn:c}})(S,B,r),H=(0,o.useMemo)((()=>{const e="pages"===r?345:100,t=c&&h?h.selectedPreviewSize.preview:I?P.heightBackground:P.heightNoBackground;return N&&t?t:e}),[r,c,h,P,N,I]),z=i()(["ugb-design-library-item","ugb-design-library-item--toggle"],{[`ugb--is-${g}`]:!d.isPro&&"free"!==g,"ugb--is-toggled":c,"ugb--is-hidden":!t});return(0,o.createElement)("button",{className:z,ref:T,onClick:e=>{e.stopPropagation(),"pages"!==r&&A()},onMouseOut:L,onMouseOver:R},!d.isPro&&"free"!==g&&(0,o.createElement)("span",{className:"stk-pulsating-circle",role:"presentation"}),(0,o.createElement)("div",{style:{position:"relative"},className:"stk-block-design__design-container "+(H>100?"stk--design-preview-large":"stk--design-preview-small")},!d.isPro&&"free"!==g&&(0,o.createElement)(Kt.Z,{type:"design-library",showImage:!1,showHideNote:!1}),(0,o.createElement)("div",{className:"stk-spinner-container "+(f||!t?"":"stk-hide-spinner")},(0,o.createElement)(s.Spinner,null)),(0,o.createElement)("div",{className:"stk-block-design__host-container",style:{transform:`scale(${c&&h?h.selectedPreviewSize.scale:null==P?void 0:P.scale})`,transformOrigin:"top left",height:H}},(0,o.createElement)("div",{className:"stk-block-design__host",ref:S},t&&C&&(0,o.createElement)(en,{blocks:N,shadowRoot:C,selectedTab:r,designIndex:e.designIndex,onMouseDown:F,updateShadowBodySize:D,setIsLoading:_})))),(0,o.createElement)("footer",{"data-selected-num":c},(0,o.createElement)("div",null,(0,o.createElement)("h4",null," ",b," "),!1!==O.current&&0!==O.current.size&&(0,o.createElement)(vn,{text:(0,u.__)("This design contains disabled blocks. You can still insert this design with blocks substituted with other enabled blocks.",d.i18n)},(0,o.createElement)(s.Dashicon,{icon:"warning",size:16}))),(0,o.createElement)("div",null,0!==c&&(0,o.createElement)(vn,{text:(0,u.__)("Style options are locked for this design because it is selected.",d.i18n)},(0,o.createElement)(s.Dashicon,{icon:"editor-help",size:16})),"patterns"===r?(0,o.createElement)("span",{className:"stk-block-design__selected-num"},0===c?"":c):(0,o.createElement)("div",null,(0,o.createElement)(m.Z,{label:(0,u.__)("Insert",d.i18n),className:"ugb-modal-design-library__add-multi "+(y?"stk--is-selected":""),disabled:l,onClick:()=>{E(!0),A()}},(0,u.__)("Insert",d.i18n),l&&(0,o.createElement)(s.Spinner,null))))))}));cn.defaultProps={designId:"",image:"",label:"",onClick:()=>{},plan:"free",premiumLabel:(0,u.__)("Go Premium",d.i18n)};const un=cn,dn=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"}))},pn=e=>{const[t,n]=(0,o.useState)([]),{viewBy:a,designs:l,plan:r,selected:c,onSelect:m}=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,p.sortBy)(Object.values(t),"label");o[0].label=(0,u.__)("All",d.i18n),n(o)}),[l,a,r]),e.isBusy?(0,o.createElement)(s.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=i()(["stk-design-library__sidebar-item"],{"is-active":c===n});return e.push((0,o.createElement)("li",{key:n},(0,o.createElement)("div",{className:r,"data-count":l,onClick:()=>m(n),onKeyPress:e=>{13===e.keyCode&&(void 0).click()},role:"button",tabIndex:0,"aria-pressed":c===n?"true":"false"},a,(0,o.createElement)("span",{className:"ugb-block-list__count","data-testid":`${n}-count`},l)))),e}),[]))};pn.defaultProps={select:"",onSelect:()=>{},apiVersion:"",designs:[]};const mn=pn;var hn=n(1959);const gn=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,u.__)("Change the color scheme.",d.i18n)),""!==t&&(0,o.createElement)(o.Fragment,null," "),(0,o.createElement)(Va,{className:a,onClick:()=>{var e,t;let o=!1;n&&(o=n()),o||(null===(e=(0,w.dispatch)("core/edit-post"))||void 0===e||e.openGeneralSidebar("stackable-global-settings/sidebar"),null===(t=(0,w.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,u.__)("Manage your color schemes.",d.i18n)," "))},bn=e=>(0,o.createElement)(s.Tooltip,(0,a.Z)({},e,{className:i()([e.className,"stk-tooltip"]),text:(0,o.createElement)("span",{className:"stk-tooltip__text"},e.text)}));bn.defaultProps={className:""};const vn=bn,fn=[{key:"",label:(0,u.__)("All",d.i18n)},{key:"free",label:(0,u.__)("Free",d.i18n)},{key:"premium",label:(0,u.__)("Premium",d.i18n)}],kn=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)(Ee,{className:"stk-design-library-tabs",fullwidth:!1,controls:[{value:"patterns",title:(0,u.__)("Patterns",d.i18n)},{value:"pages",title:(0,u.__)("Pages",d.i18n)}],value:t,onChange:n,isToggleOnly:!0,allowReset:!1}),(0,o.createElement)("div",{className:"stk-design-library__header-settings"},d.devMode&&(0,o.createElement)(s.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)(m.Z,{icon:"image-rotate",iconSize:14,label:(0,u.__)("Refresh Library",d.i18n),className:"ugb-modal-design-library__refresh",onClick:()=>r(!0)}),!d.isPro&&(0,o.createElement)(s.Dropdown,{focusOnMount:"container",renderToggle:e=>{let{onToggle:t}=e;return(0,o.createElement)(m.Z,{onClick:t,style:{height:"auto"},icon:"arrow-down-alt2",iconSize:12,iconPosition:"right",variant:"secondary"},(0,o.createElement)(s.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"},fn.map(((e,n)=>(0,o.createElement)(m.Z,{key:n,onClick:()=>{l(e),t()}},e.label))))}})))};var _n;const yn={className:"ugb-design-library__color-scheme-popover",placement:"right-start",shift:!0};null===(_n=localStorage)||void 0===_n||_n.setItem("stk__design_library__block-list__selected","");const wn=(0,o.createContext)(null),En=e=>{const{backgroundModeColorScheme:t,containerModeColorScheme:n,colorSchemesCollection:a}=(0,E.useBlockColorSchemes)(),[l,r]=(0,o.useState)(!0),[c,p]=(0,o.useState)(!1),[h,g]=(0,o.useState)([]),[b,v]=(0,o.useState)([]),[f,k]=(0,o.useState)(!1),[_,y]=(0,M.useLocalStorage)("stk__design_library__block-list__view_by","patterns"),[w,S]=(0,M.useLocalStorage)("stk__design_library__block-list__selected",""),[C,x]=(0,M.useLocalStorage)("stk__design_library__view-plan",fn[0]),[T,N]=(0,o.useState)([]),[I,B]=(0,o.useState)([]),[O,P]=(0,o.useState)(!1),[A,D]=(0,o.useState)(""),[L,R]=(0,o.useState)("");(0,o.useEffect)((()=>{window.localStorage.getItem("stk__design_library__version")||(window.localStorage.setItem("stk__design_library__version","v4"),y("patterns"),S(""))}),[]),(0,o.useEffect)((()=>{r(!0),N([]),(0,an.getDesigns)({reset:c,type:_}).then((e=>{N(e),S("")})).finally((()=>{p(!1),r(!1)}))}),[c,_]),(0,o.useEffect)((()=>{(0,an.filterDesigns)({library:T,category:w,plan:C.key}).then((e=>{B(e)}))}),[T,C,w]);const F=()=>!(!h.length||window.confirm((0,u.sprintf)((0,u.__)("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?",d.i18n),(0,u.__)("Color Schemes",d.i18n))))||(e.onClose(),!1),H=t=>{k(!0),e.onSelect(t,(()=>k(!1)),_)},z=(0,o.useCallback)(((e,t,n,o,a)=>{"pages"!==_?(g((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}))):H([{designId:e,category:t,designData:n,blocksForSubstitution:o,selectedPreviewSize:a}])}),[_]),j=(0,o.useMemo)((()=>(0,o.createElement)(kn,{selectedTab:_,setSelectedTab:y,selectedPlan:C,setSelectedPlan:x,setDoReset:p,onClose:e.onClose})),[_,C,y,x,p,e.onClose]),$=(0,o.useMemo)((()=>[_,h,b,z,f,A,L,O]),[_,h,b,z,f,A,L,O]);return(0,o.createElement)(s.Modal,{title:(0,u.__)("Stackable Design Library",d.i18n),headerActions:j,className:i()("ugb-modal-design-library","ugb-modal-design-library--is-multiselect"),onRequestClose:e.onClose},(0,o.createElement)(wn.Provider,{value:$},(0,o.createElement)("div",{className:i()("ugb-modal-design-library__wrapper",{"ugb-modal-design-library__full-pages":"pages"===_})},(0,o.createElement)(oa,{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)(mn,{designs:T,viewBy:_,plan:C.key,selected:w,onSelect:e=>S(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,u.__)("Style Options",d.i18n)),(0,o.createElement)(vn,{className:"ugb-modal-design-library__style-options-tooltip",placement:"top",text:(0,o.createElement)(o.Fragment,null,(0,u.__)("Customize patterns using the options below.",d.i18n)," ",(0,o.createElement)("a",{href:"https://docs.wpstackable.com/article/343-using-the-design-library#Design-Library-Style-Options-Pswi5",target:"_docs"},(0,u.__)("Learn how to use style options.",d.i18n)))},(0,o.createElement)(dn,{height:"14px",width:"14px"}))),"patterns"===_&&(0,o.createElement)(s.ToggleControl,{className:"ugb-modal-design-library__enable-background",label:(0,u.__)("Section Background",d.i18n),checked:O,onChange:e=>{P(e)},__nextHasNoMarginBottom:!0}),(0,o.createElement)(s.BaseControl,{label:(0,u.__)("Background Scheme",d.i18n),className:"ugb-modal-design-library__color-scheme-label ugb-modal-design-library__background-scheme",__nextHasNoMarginBottom:!0},(0,o.createElement)(s.Dropdown,{className:"ugb-modal-design-library__color-scheme-dropdown",popoverProps:yn,focusOnMount:"container",renderToggle:e=>{let{onToggle:n}=e;return(0,o.createElement)(m.Z,{onClick:n,className:"ugb-modal-design-library__stk-color-scheme stk-color-scheme__toggle"},""!==L?(0,o.createElement)(hn.ZP,{isCollapsed:!0,colors:a[L||t].normal}):(0,o.createElement)(Sn,{label:(0,u.__)("Default",d.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,u.__)("Background Scheme",d.i18n)),(0,o.createElement)(m.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)(m.Z,{className:"ugb-modal-design-library__stk-color-scheme"+(""===L?" stk-color-scheme__selected":""),onClick:()=>{O||P(!0),R("")}},(0,o.createElement)("span",{className:"stk-color-scheme-name stk-color-scheme__none"}," ",(0,u.__)("Default",d.i18n)," ")),Object.entries(a).map(((e,t)=>{let[n,a]=e;return(0,o.createElement)(m.Z,{key:t,className:"ugb-modal-design-library__stk-color-scheme"+(L===n?" stk-color-scheme__selected":""),onClick:()=>{O||P(!0),R(n)}},(0,o.createElement)(hn.ZP,{colors:a.normal,isCollapsed:!0}),(0,o.createElement)("span",{className:"stk-color-scheme-name"}," ",a.name))})),Object.keys(a).length?(0,o.createElement)(gn,{customText:"",callback:F,className:"ugb-design-library__manage-scheme"}):(0,o.createElement)(gn,{customText:(0,u.__)("You do not have any color schemes.",d.i18n),callback:F})))}})),(0,o.createElement)(s.BaseControl,{label:(0,u.__)("Container Scheme",d.i18n),className:"ugb-modal-design-library__color-scheme-label",__nextHasNoMarginBottom:!0},(0,o.createElement)(s.Dropdown,{popoverProps:yn,focusOnMount:"container",renderToggle:e=>{let{onToggle:t}=e;return(0,o.createElement)(m.Z,{onClick:t,className:"ugb-modal-design-library__stk-color-scheme stk-color-scheme__toggle"},""!==A?(0,o.createElement)(hn.ZP,{isCollapsed:!0,colors:a[A||n].normal}):(0,o.createElement)(Sn,{label:(0,u.__)("Default",d.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,u.__)("Container Scheme",d.i18n)),(0,o.createElement)(m.Z,{icon:"no",onClick:()=>{t()}})),(0,o.createElement)("div",{className:"ugb-modal-design-library__stk-color-scheme-list"},(0,o.createElement)(m.Z,{className:"ugb-modal-design-library__stk-color-scheme"+(""===A?" stk-color-scheme__selected":""),onClick:()=>{D("")}},(0,o.createElement)("span",{className:"stk-color-scheme-name stk-color-scheme__none"}," ",(0,u.__)("Default",d.i18n)," ")),Object.entries(a).map(((e,t)=>{let[n,a]=e;return(0,o.createElement)(m.Z,{key:t,className:"ugb-modal-design-library__stk-color-scheme"+(A===n?" stk-color-scheme__selected":""),onClick:()=>{D(n)}},(0,o.createElement)(hn.ZP,{colors:a.normal,isCollapsed:!0}),(0,o.createElement)("span",{className:"stk-color-scheme-name"}," ",a.name," "))})),Object.keys(a).length?(0,o.createElement)(gn,{customText:"",callback:F,className:"ugb-design-library__manage-scheme"}):(0,o.createElement)(gn,{customText:(0,u.__)("You do not have any color schemes.",d.i18n),callback:F})))}})))),(0,o.createElement)(xn,{className:`stk-design-library__item-${_}`,isBusy:l,designs:I}),"patterns"===_&&(0,o.createElement)("aside",{className:"ugb-modal-design-library__footer"},(0,o.createElement)("div",null,(0,u.sprintf)((0,u.__)("(%d) Selected",d.i18n),h.length)),(0,o.createElement)(m.Z,{label:(0,u.__)("Add Designs",d.i18n),className:"ugb-modal-design-library__add-multi",disabled:!h.length||f,onClick:()=>H(b)},(0,u.__)("Add Designs",d.i18n),f&&(0,o.createElement)(s.Spinner,null))))))};En.defaultProps={search:"",onClose:()=>{},onSelect:()=>{},hasVersionSwitcher:!1,apiVersion:"",onChangeApiVersion:()=>{}};const Sn=e=>(0,o.createElement)("div",{style:{position:"relative"}},(0,o.createElement)("div",{style:{opacity:"0"}},(0,o.createElement)(hn.ZP,{isCollapsed:!0})),(0,o.createElement)("span",{className:"stk-color-scheme-name stk-color-scheme__none"}," ",e.label," ")),Cn=(0,o.memo)((e=>{const{className:t="",designs:n,isBusy:a}=e,l=(0,o.useRef)(null),r=i()(["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)(s.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)(Tn,{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,u.__)("No designs found",d.i18n)))))}));Cn.defaultProps={designs:[],columns:3,onSelect:()=>{},isBusy:!1};const xn=Cn,Tn=(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,u,d,p,m,h]=(0,o.useContext)(wn),{selectedNum:g,selectedData:b}=(0,o.useMemo)((()=>{const e=s.indexOf(t.id||t.designId)+1;return{selectedNum:e,selectedData:e?c[e-1]:null}}),[s,c]),v=(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:m,enableBackground:"pages"===i||h,selectedTab:i,selectedNum:g,selectedData:b,onClick:u})),[t.id||t.designId,p,m,h,i,g,u]),{getPresetMarks:f}=(0,E.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)(un,{previewProps:v,isMultiSelectBusy:d,shouldRender:l,presetMarks:k}))}));n(7385);const Nn=[{value:"layout",title:(0,u.__)("Layout",d.i18n),label:(0,u.__)("Layout Tab",d.i18n),icon:"align-left"},{value:"style",title:(0,u.__)("Style",d.i18n),label:(0,u.__)("Style Tab",d.i18n),icon:"admin-appearance"},{value:"advanced",title:(0,u.__)("Advanced",d.i18n),label:(0,u.__)("Advanced Tab",d.i18n),icon:"admin-generic"}],Mn=["layout","style","advanced"];class In extends o.Component{constructor(){super(...arguments),this.tabsToUse=this.props.tabs||Mn,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&&d.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&&d.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,k.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,k.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=i()([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,k.applyFilters)("stackable.inspector.tabs",Nn).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:i()(["edit-post-sidebar__panel-tab",`ugb-tab--${n}`],{"is-active":this.state.activeTab===n}),"aria-label":l,"data-label":l},(0,o.createElement)(s.Icon,{icon:r}),a):null}))))}}In.defaultProps={className:"",style:{},closeOtherPanels:!0,initialTab:"",onClickPanel:()=>{},onClick:()=>{},tabs:null,onTabFirstOpen:()=>{}};const Bn=In,On=function(e){let{imageFile:t,imageHoverFile:n,imageWidth:a="",imageHeight:l="",label:r,isActive:s=!1}=e;const c=t?t.match(/https?:/i)?t:d.srcUrl?`${d.srcUrl}/${t}`:t:"",u=n?n.match(/https?:/i)?n:d.srcUrl?`${d.srcUrl}/${n}`:n:null;return(0,o.createElement)("span",{className:i()("ugb-design-panel-item",{"is-active":s})},u&&(0,o.createElement)("img",{className:"ugb-design-panel-item__hover-image",src:u,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 Pn=n(2122);const An=e=>{const t=e.options.filter((e=>!e.premium||d.isPro)).map((t=>({...t,label:(0,o.createElement)(On,{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=i()([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)(Pn.Z,(0,a.Z)({label:e.label},e.helpTooltip)),(0,o.createElement)(s.RadioControl,(0,a.Z)({},(0,p.omit)(e,["label"]),{className:"ugb-design-control",selected:e.selected,options:t,onChange:e.onChange})))};An.defaultProps={className:"",columns:2,selected:"",options:[],onChange:()=>{}};const Dn=An,Ln=[{image:"dist/images/components-design-separator-control-wave-1.fe7d2e5.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Wave",d.i18n),1),value:"wave-1"},{image:"dist/images/components-design-separator-control-straight-1.fba0f99.png",label:(0,u.__)("Straight",d.i18n),value:"straight-1"},{image:"dist/images/components-design-separator-control-wave-2.bc3ff78.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Wave",d.i18n),2),value:"wave-2"},{image:"dist/images/components-design-separator-control-wave-3.9e204d5.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Wave",d.i18n),3),value:"wave-3"},{image:"dist/images/components-design-separator-control-wave-4.b82e3aa.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Wave",d.i18n),4),value:"wave-4"},{image:"dist/images/components-design-separator-control-slant-1.645f0b9.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Slant",d.i18n),1),value:"slant-1"},{image:"dist/images/components-design-separator-control-slant-2.50e3178.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Slant",d.i18n),2),value:"slant-2"},{image:"dist/images/components-design-separator-control-curve-1.277a020.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Curve",d.i18n),1),value:"curve-1"},{image:"dist/images/components-design-separator-control-curve-2.4b8c7da.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Curve",d.i18n),2),value:"curve-2"},{image:"dist/images/components-design-separator-control-curve-3.da5eb6d.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Curve",d.i18n),3),value:"curve-3"},{image:"dist/images/components-design-separator-control-rounded-1.85d0e25.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Rounded",d.i18n),1),value:"rounded-1"},{image:"dist/images/components-design-separator-control-rounded-2.6e57ec5.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Rounded",d.i18n),2),value:"rounded-2"},{image:"dist/images/components-design-separator-control-rounded-3.78cb6da.png",label:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Rounded",d.i18n),3),value:"rounded-3"}];(0,k.addFilter)("stackable.separator.edit.layouts","default",(e=>(0,p.uniqBy)([...e,...Ln],"value")));const Rn=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"}))},Fn={placement:"left-start",offset:36,shift:!0},Hn=e=>(0,o.createElement)(fa,(0,a.Z)({className:"ugb-icon-control stk-control"},(0,p.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)(s.Dropdown,{popoverProps:Fn,renderToggle:t=>{let{onToggle:n,isOpen:a}=t;return(0,o.createElement)(m.Z,{isSecondary:!0,onClick:n,className:"ugb-icon-control__icon-button","aria-expanded":a},e.value&&(0,o.createElement)(ba,{value:e.value}),!e.value&&(0,o.createElement)(Rn,{style:{opacity:.3}}))},renderContent:t=>{let{onClose:n}=t;return(0,o.createElement)(Yn,{onClose:n,returnSVGValue:e.returnSVGValue,onChange:e.onChange,defaultValue:e.defaultValue})}}))));Hn.defaultProps={label:(0,u.__)("Icon",d.i18n),value:"",returnSVGValue:!0,onChange:()=>{},defaultValue:"",hasPanelModifiedIndicator:!0};const zn=Hn,jn=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"}))},$n=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 Vn=n(5112);let Un=null,Zn=null;const qn=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},Wn=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},Gn=e=>{const[t,n]=(0,o.useState)(""),[a,l]=(0,o.useState)({faIcons:[],iconLibrary:[]}),[r,c]=(0,o.useState)(!1),[p,h]=(0,o.useState)(!1),g=e.returnSVGValue;(0,o.useEffect)((()=>{let e=!0;return clearTimeout(Un),Un=setTimeout((()=>{e&&(c(!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]:d.fontAwesomeSearchProIcons;const n=`{ search(version: "${(d.iconsFaKit?d.iconsFaProKitVersion:d.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)=>($n(n,t).forEach((t=>{e.push(t)})),e)),[]),a=(0,k.applyFilters)("stackable.global-settings.inspector.icon-library.search-icons",null,e);return{faIcons:o,iconLibrary:a}}(t).then((t=>{e&&l(t)})).finally((()=>{e&&c(!1)})))}),500),()=>{e=!1,clearTimeout(Un)}}),[t]),(0,o.useEffect)((()=>{Zn||(Zn=wp.data.select("core/block-editor").getSettings().mediaUpload),p?wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:null}):wp.data.select("core/block-editor").getSettings().mediaUpload!==Zn&&wp.data.dispatch("core/block-editor").updateSettings({mediaUpload:Zn})}),[p]);const b=i()(["ugb-icon-popover__label-container"],{"ugb-icon--has-settings":d.isPro,"ugb-icon--has-upload":g,"ugb-icon--has-reset":e.allowReset}),v=(0,k.applyFilters)("stackable.global-settings.inspector.icon-library.icons",o.Fragment),f=(0,o.createElement)("div",{className:"stk-icon-search-popover-container"},(0,o.createElement)(Vn.FileDrop,{onFrameDragEnter:()=>h(!0),onFrameDragLeave:()=>h(!1),onFrameDrop:()=>h(!1),onDrop:t=>{if(!g||!t.length)return void h(!1);if("image/svg+xml"!==t[0].type)return void h(!1);const n=new FileReader;n.onload=function(t){h(!1);const n=Wn(qn(t.target.result));(0,k.doAction)("stackable.icon-search-popover.svg-upload",n),e.onChange(n),e.onClose()},n.readAsText(t[0])}},(0,o.createElement)("div",{className:b},(0,o.createElement)(s.TextControl,{className:"ugb-icon-popover__input",value:t,onChange:n,placeholder:(0,u.__)("Type to search icon",d.i18n),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),d.isPro&&(0,o.createElement)(m.Z,{className:"ugb-icon-popover__settings-button",icon:"admin-generic",href:d.settingsUrl+"#icon-settings",target:"_settings",iconSize:"16",label:(0,u.__)("Icon Settings",d.i18n),showTooltip:!0,isSmall:!0,isSecondary:!0}),g&&(0,o.createElement)(m.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 h(!1);const o=new FileReader;o.onload=function(t){h(!1);const n=Wn(qn(t.target.result));(0,k.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,u.__)("Upload SVG",d.i18n)),e.allowReset&&(0,o.createElement)(m.Z,{onClick:()=>{e.onChange(e.defaultValue||""),e.onClose()},isSmall:!0,isSecondary:!0,className:"components-range-control__reset"},(0,u.__)("Clear icon",d.i18n))),(0,o.createElement)("div",{className:"ugb-icon-popover__iconlist"},r&&(0,o.createElement)(s.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,M.faGetIcon)(a,l);t||(await(0,M.faFetchIcon)(a,l),t=(0,M.faGetIcon)(a,l)),e.onChange(Wn(t),a,l)}else if(e.returnSVGValue){let t=(0,M.faGetIcon)(a,l);t||(await(0,M.faFetchIcon)(a,l),t=(0,M.faGetIcon)(a,l)),e.onChange(Wn(t))}else e.onChange(r,a,l);e.onClose()}},(0,o.createElement)(ma,{prefix:a,iconName:l}))})),!r&&!a.faIcons.length&&!a.iconLibrary.length&&(0,o.createElement)("p",{className:"components-base-control__help"},(0,u.__)("No matches found",d.i18n))),g&&p&&(0,o.createElement)("div",{className:"ugb-icon-popover__drop-indicator"},(0,o.createElement)(jn,{height:"40",width:"40"}),(0,u.__)("Drop your SVG here",d.i18n))));return e.__hasPopover?(0,o.createElement)(oi.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)(s.PanelBody,null,f)):f},Jn=()=>{};Gn.defaultProps={onChange:Jn,onClose:Jn,returnSVGValue:!0,allowReset:!0,__deprecatedAnchorRef:void 0,__deprecatedPosition:"center",__deprecatedOnClickOutside:Jn,__hasPopover:!1};const Yn=Gn,Kn=(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)(fa,{help:e.help,label:e.label,id:"ugb-button-icon-control",className:i()("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)(s.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)(m.Z,{onClick:()=>n((e=>!e)),className:"ugb-button-icon-control__edit",label:(0,u.__)("Edit",d.i18n),isSecondary:!0,icon:"edit",ref:a}),t&&(0,o.createElement)(oi.Z,{className:"ugb-button-icon-control__popover",focusOnMount:"container",onEscape:()=>n(!1)},(0,o.createElement)(s.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))))}));Kn.defaultProps={help:"",label:"",popoverLabel:void 0,className:"",allowReset:!1,onReset:()=>{},checked:!1,onToggle:void 0};const Xn=Kn;(0,u.__)("Typography",d.i18n);const Qn=e=>(0,o.createElement)(o.Fragment,null,e.onChangeBorderType&&(0,o.createElement)(Ee,{label:(0,u.__)("Borders",d.i18n),controls:[{value:"",title:(0,u.__)("None",d.i18n)},{value:"solid",title:(0,u.__)("Solid",d.i18n)},{value:"dashed",title:(0,u.__)("Dashed",d.i18n)},{value:"dotted",title:(0,u.__)("Dotted",d.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)(no,{label:(0,u.__)("Border Width",d.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)(x,{value:e.borderColor,onChange:t=>{e.onChangeBorderColor({color:t,borderType:e.borderType?void 0:"solid"})},label:(0,u.__)("Border Color",d.i18n)}));Qn.defaultProps={onResetBorder:()=>{},borderType:"",onChangeBorderType:()=>{},borderWidthTop:"",borderWidthRight:"",borderWidthBottom:"",borderWidthLeft:"",tabletBorderWidthTop:"",tabletBorderWidthRight:"",tabletBorderWidthBottom:"",tabletBorderWidthLeft:"",mobileBorderWidthTop:"",mobileBorderWidthRight:"",mobileBorderWidthBottom:"",mobileBorderWidthLeft:"",onChangeBorderWidth:()=>{},onChangeTabletBorderWidth:()=>{},onChangeMobileBorderWidth:()=>{},borderColor:"",onChangeBorderColor:()=>{}};const eo=Qn,to=e=>{const t=(0,p.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)(To,{screen:"desktop"},(0,o.createElement)(Co,(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)(To,{screen:"tablet"},(0,o.createElement)(Co,(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)(To,{screen:"mobile"},(0,o.createElement)(Co,(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)}))))};to.defaultProps={label:(0,u.__)("Spacing",d.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 no=to,oo=e=>{const{initialOpen:t,...n}=e,[a,l]=(0,o.useState)(t),r=i()(["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)(Kt.Z,n)))};oo.defaultProps={initialOpen:!1};const ao=oo;var lo=n(6500),ro=n(2046);const io=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)(Pn.Z,(0,a.Z)({label:e.label},e.helpTooltip)),(0,o.createElement)(ro.Z,{screens:n}),(0,o.createElement)("div",{className:"ugb-base-control-multi-label__units"},(0,o.createElement)(lo.Z,{className:"stk-control-unit-toggle",value:e.unit,options:l,onChange:t=>e.onChangeUnit(t),labelPosition:"left",buttonLabel:(0,u.__)("Unit",d.i18n),hasLabels:!1,hasColors:!1}),e.afterButton))};io.defaultProps={label:"",units:["px"],unit:"px",onChangeUnit:()=>{},screens:["desktop"],afterButton:null};const so=io;class co 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,p.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)(s.BaseControl,{help:this.props.help,className:i()("ugb-four-number-control",this.props.className),__nextHasNoMarginBottom:!0},(0,o.createElement)(so,{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,u.__)("Top",d.i18n),value:this.props.top,placeholder:this.props.enableTop?"":(0,u.__)("auto",d.i18n),disabled:!this.props.enableTop}),(0,o.createElement)("span",null,(0,u.__)("Top",d.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,u.__)("auto",d.i18n),disabled:!this.props.enableRight}),(0,o.createElement)("span",null,(0,u.__)("Right",d.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,u.__)("auto",d.i18n),disabled:!this.props.enableBottom}),(0,o.createElement)("span",null,(0,u.__)("Bottom",d.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,u.__)("auto",d.i18n),disabled:!this.props.enableLeft}),(0,o.createElement)("span",null,(0,u.__)("Left",d.i18n))),(0,o.createElement)(m.Z,{className:this.state.locked?"ugb--is-locked":"",onClick:this.onToggleLock,icon:(0,o.createElement)(s.Dashicon,{icon:this.state.locked?"admin-links":"editor-unlink",size:"16"})})))}}co.defaultProps={onChange:()=>{},defaultLocked:!0,top:"",right:"",bottom:"",left:"",units:["px"],unit:"px",onChangeUnit:()=>{},screens:["desktop"],enableTop:!0,enableRight:!0,enableBottom:!0,enableLeft:!0},(0,V.withInstanceId)(co);const uo=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"}))},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:"M16 10v6h-6v-2l1-1h2v-2l1-1h2z",fill:"#555D63"}))},mo=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"}))},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:"M10 0h6v6h-2l-1-1V3h-2l-1-1V0z",fill:"#555D63"}))},go=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"}))},bo=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"}))},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",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"}))},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 3.8v8.4L.7 14.3c-.3.3-.7.2-.7-.1V1.9c0-.4.4-.5.7-.3L3 3.8z",fill:"#555d63"}))},ko=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"}))},_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:"M1.6.7c-.2-.3-.1-.7.2-.7h12.4c.3 0 .4.3.2.7L12.2 3H3.8L1.6.7z",fill:"#555d63"}))},yo=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"}))},wo=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"}))},Eo=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"}))},So=(0,o.memo)((e=>{var t,n;const[l,r]=(0,f.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[c,p]=(0,b.ED)(e),[h]=(0,E.useBlockHoverState)();let g=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)&&(g={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 k=void 0===e.onChange?r:e.onChange,_=e.enableTop&&""===g.top&&e.enableRight&&""===g.right&&e.enableBottom&&""===g.bottom&&e.enableLeft&&""===g.left;let y=e.enableTop?g.top:e.enableRight?g.right:e.enableBottom?g.bottom:g.left;const[S,C]=(0,o.useState)(_?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,g,y)),x=i()(["ugb-four-range-control__lock"],{"ugb--is-locked":e.hasLock&&S});p.after=e.hasLock&&(0,o.createElement)(m.Z,{className:x,onClick:()=>C(!S),variation:"tertiary",icon:S?e.isCorner?(0,o.createElement)(uo,null):(0,o.createElement)(bo,null):(0,o.createElement)(yo,null),label:S?(0,u.__)("Individual sides",d.i18n):(0,u.__)("All sides",d.i18n)});const T=(0,E.useBlockSetAttributesContext)(),N=!(null===(t=e.units)||void 0===t||!t.length),I=(0,E.useAttributeName)(`${e.attribute}Unit`,e.responsive,e.hover),{unit:B,_valueDesktop:O,_valueTablet:P,_unitDesktop:A,_unitTablet:D}=(0,E.useBlockAttributesContext)((t=>({unit:t[I],_valueDesktop:t[`${e.attribute}`],_valueTablet:t[`${e.attribute}Tablet`],_unitDesktop:t[`${e.attribute}Unit`],_unitTablet:t[`${e.attribute}UnitTablet`]}))),L=!(null!==(n=null===d.settings||void 0===d.settings?void 0:d.settings.stackable_use_size_presets_by_default)&&void 0!==n&&!n);if(N){const t=e.units.indexOf(B)<0?0:e.units.indexOf(B);Array.isArray(e.min)&&(c.min=e.min[t]),Array.isArray(e.max)&&(c.max=e.max[t]),Array.isArray(e.sliderMin)&&(c.sliderMin=e.sliderMin[t]),Array.isArray(e.sliderMax)&&(c.sliderMax=e.sliderMax[t]),Array.isArray(e.step)&&(c.step=e.step[t]),Array.isArray(e.placeholder)&&(c.placeholder=e.placeholder[t]),c.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder,0!==t&&(c.initialPosition="",c.placeholder=e.placeholder)}else c.initialPosition=""!==e.initialPosition?e.initialPosition:e.placeholder;const R=(0,E.useDeviceType)(),F=P&&""!==P&&P.top&&""!==P.top,H=P&&""!==P&&P.right&&""!==P.right,z=P&&""!==P&&P.bottom&&""!==P.bottom,j=P&&""!==P&&P.left&&""!==P.left,$=e.enableTop?P&&""!==P&&P.top&&""!==P.top:e.enableRight?P&&""!==P&&P.right&&""!==P.right:e.enableBottom?P&&""!==P&&P.bottom&&""!==P.bottom:P&&""!==P&&P.left&&""!==P.left,V=O&&""!==O&&O.top&&""!==O.top,U=O&&""!==O&&O.right&&""!==O.right,Z=O&&""!==O&&O.bottom&&""!==O.bottom,q=O&&""!==O&&O.left&&""!==O.left,W=e.enableTop?O&&""!==O&&O.top&&""!==O.top:e.enableRight?O&&""!==O&&O.right&&""!==O.right:e.enableBottom?O&&""!==O&&O.bottom&&""!==O.bottom:O&&""!==O&&O.left&&""!==O.left,{desktop:Y,tablet:K}=e.enableTop?{desktop:null==O?void 0:O.top,tablet:null==P?void 0:P.top}:e.enableRight?{desktop:null==O?void 0:O.right,tablet:null==P?void 0:P.right}:e.enableBottom?{desktop:null==O?void 0:O.bottom,tablet:null==P?void 0:P.bottom}:{desktop:null==O?void 0:O.left,tablet:null==P?void 0:P.left},X=(0,o.useRef)({first:!1,top:!1,right:!1,bottom:!1,left:!1,vertical:!1,horizontal:!1}),Q={first:!!e.marks&&L,top:!!e.marks&&L,right:!!e.marks&&L,bottom:!!e.marks&&L,left:!!e.marks&&L};if(e.marks&&y){const t=(0,M.getCSSVarName)(y),n=e.marks.find((e=>(0,M.getCSSVarName)(e.value)===t));Q.first=!!n,n&&(y=n.value),["top","right","bottom","left"].forEach((t=>{const n=(0,M.getCSSVarName)(g[t]),o=e.marks.find((e=>(0,M.getCSSVarName)(e.value)===n));Q[t]=!!o,o&&(g[t]=o.value)}))}const[ee,te]=(0,o.useState)(Q);(0,o.useEffect)((()=>{te(Q)}),[R]);const ne=t=>{const n=e.marks?String(t):t;k({top:e.enableTop?n:g.top,right:e.enableRight?n:g.right,bottom:e.enableBottom?n:g.bottom,left:e.enableLeft?n:g.left}),te((e=>({...e,top:e.first,right:e.first,bottom:e.first,left:e.first})))},oe=t=>{const n=e.marks?String(t):t;k({top:n,right:g.right,bottom:g.bottom,left:g.left}),te((e=>({...e,first:e.top})))},ae=t=>{const n=e.marks?String(t):t;k({top:g.top,right:n,bottom:g.bottom,left:g.left}),te((e=>({...e,first:e.right})))},le=t=>{const n=e.marks?String(t):t;k({top:g.top,right:g.right,bottom:n,left:g.left}),te((e=>({...e,first:e.bottom})))},re=t=>{const n=e.marks?String(t):t;k({top:g.top,right:g.right,bottom:g.bottom,left:n}),te((e=>({...e,first:e.left})))},ie=t=>{const n=e.marks?String(t):t;k({top:n,right:g.right,bottom:n,left:g.left}),te((e=>({...e,top:e.top,bottom:e.top})))},se=t=>{const n=e.marks?String(t):t;k({top:g.top,right:n,bottom:g.bottom,left:n}),te((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={...c};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&&(p.className=p.className||"",p.className+="stk-range-control--with-marks",p.className+=t?" stk-range-control--mark-mode":"");let r=e.marks?parseFloat(n):n,i=o;if(e.marks&&t)r=e.marks.findIndex((e=>{let t,o;return"string"==typeof n&&n.startsWith("var")?[o,t]=(0,M.extractNumbersAndUnits)(e.value)[0]:[o,t]=(0,M.extractNumbersAndUnits)(e.size)[0],o===n&&(""===t||t===B)})),r=-1===r?"":r,i=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,M.extractNumbersAndUnits)(r)[0];const c=(0,M.convertToPxIfUnsupported)(e.units,s,i);i=c.value,s=c.unit,s&&((0,w.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),T({[I]:s}),e.onChangeUnit&&e.onChangeUnit(s)),o(i),X.current[a]=!1};else if("string"==typeof n&&n.startsWith("var")&&(S&&"first"===a||!S&&["top","right","left","bottom"].includes(a)||S&&e.vhMode&&["vertical","horizontal"].includes(a))){var s;const t=null===(s=e.marks.find((e=>n===e.value)))||void 0===s?void 0:s.size;let[l,i]=(0,M.extractNumbersAndUnits)(t)[0];const c=(0,M.convertToPxIfUnsupported)(e.units,i,l);l=c.value,i=c.unit,r=parseFloat(l),i&&a&&!X.current[a]&&(X.current[a]=!0,(0,w.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),T({[I]:i}),e.onChangeUnit&&e.onChangeUnit(i)),p.onChangeUnit=(t,n)=>{(0,w.dispatch)("core/block-editor").__unstableMarkNextChangeAsNotPersistent(),T({[n]:t}),e.onChangeUnit&&e.onChangeUnit(t),o(l)}}return[l,parseFloat(r),i]};S&&!e.vhMode?p.units=!ee.first&&p.units:S&&e.vhMode?p.units=(!ee.top||!ee.right)&&p.units:p.units=!(ee.top&&ee.right&&ee.bottom&&ee.left)&&p.units;const[ue,de,pe]=ce(ee.first,y,ne,"first"),[me,he,ge]=ce(ee.top,g.top,oe,"top"),[be,ve,fe]=ce(ee.right,g.right,ae,"right"),[ke,_e,ye]=ce(ee.bottom,g.bottom,le,"bottom"),[we,Ee,Se]=ce(ee.left,g.left,re,"left"),[Ce,xe,Te]=ce(ee.top,g.top,ie,"vertical"),[Ne,Me,Ie]=ce(ee.left,g.left,se,"horizontal");return(0,o.createElement)(b.ZP,p,S&&!e.vhMode&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)(G,(0,a.Z)({},ue,{value:de,onChange:pe,allowReset:!1,initialPosition:ee.first||"normal"!==h?"":"Mobile"===R&&$?B===D?K:"":"Mobile"!==R&&"Tablet"!==R||!W?c.initialPosition:B===A?Y:"",placeholder:ee.first||"normal"!==h?"":"Mobile"===R&&$?B===D?K:"":"Mobile"!==R&&"Tablet"!==R||!W?c.placeholder:B===A?Y:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(m.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{te((e=>({...e,first:!e.first})))},icon:J})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:y,default:e.defaultTop,onChange:ne})),S&&e.vhMode&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(s.Tooltip,{text:(0,u.__)("Top and Bottom",d.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},(0,o.createElement)(wo,null))),(0,o.createElement)(G,(0,a.Z)({},Ce,{value:xe,onChange:Te,allowReset:!1,initialPosition:ee.top||"normal"!==h?"":"Mobile"===R&&F?B===D?P.top:"":"Mobile"!==R&&"Tablet"!==R||!V?c.initialPosition:B===A?O.top:"",placeholder:ee.top||"normal"!==h?"":"Mobile"===R&&F?B===D?P.top:"":"Mobile"!==R&&"Tablet"!==R||!V?void 0===e.placeholderTop?c.placeholder:e.placeholderTop:B===A?O.top:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(m.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{te((e=>({...e,top:!e.top})))},icon:J})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:g.top,default:e.defaultTop,onChange:ie})),(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(s.Tooltip,{text:(0,u.__)("Left and Right",d.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},(0,o.createElement)(Eo,null))),(0,o.createElement)(G,(0,a.Z)({},Ne,{value:Me,onChange:Ie,allowReset:!1,initialPosition:ee.left||"normal"!==h?"":"Mobile"===R&&j?B===D?P.left:"":"Mobile"!==R&&"Tablet"!==R||!q?c.initialPosition:B===A?O.left:"",placeholder:ee.left||"normal"!==h?"":"Mobile"===R&&j?B===D?P.left:"":"Mobile"!==R&&"Tablet"!==R||!q?void 0===e.placeholderLeft?c.placeholder:e.placeholderLeft:B===A?O.left:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(m.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{te((e=>({...e,left:!e.left})))},icon:J})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:g.left,default:e.defaultLeft,onChange:se}))),!S&&(0,o.createElement)(o.Fragment,null,e.enableTop&&(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(s.Tooltip,{text:e.isCorner?(0,u.__)("Top Left",d.i18n):(0,u.__)("Top",d.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,o.createElement)(go,null):(0,o.createElement)(_o,null))),(0,o.createElement)(G,(0,a.Z)({},me,{value:he,onChange:ge,allowReset:!1,initialPosition:ee.top||"normal"!==h?"":"Mobile"===R&&F?B===D?P.top:"":"Mobile"!==R&&"Tablet"!==R||!V?c.initialPosition:B===A?O.top:"",placeholder:ee.top||"normal"!==h?"":"Mobile"===R&&F?B===D?P.top:"":"Mobile"!==R&&"Tablet"!==R||!V?void 0===e.placeholderTop?c.placeholder:e.placeholderTop:B===A?O.top:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(m.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{te((e=>({...e,top:!e.top})))},icon:J})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:g.top,default:e.defaultTop,onChange:oe})),e.enableRight&&(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(s.Tooltip,{text:e.isCorner?(0,u.__)("Top Right",d.i18n):(0,u.__)("Right",d.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,o.createElement)(ho,null):(0,o.createElement)(ko,null))),(0,o.createElement)(G,(0,a.Z)({},be,{value:ve,onChange:fe,allowReset:!1,initialPosition:ee.right||"normal"!==h?"":"Mobile"===R&&H?B===D?P.right:"":"Mobile"!==R&&"Tablet"!==R||!U?c.initialPosition:B===A?O.right:"",placeholder:ee.right||"normal"!==h?"":"Mobile"===R&&H?B===D?P.right:"":"Mobile"!==R&&"Tablet"!==R||!U?void 0===e.placeholderRight?c.placeholder:e.placeholderRight:B===A?O.right:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(m.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{te((e=>({...e,right:!e.right})))},icon:J})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:g.right,default:e.defaultRight,onChange:ae})),e.enableBottom&&(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(s.Tooltip,{text:e.isCorner?(0,u.__)("Bottom Left",d.i18n):(0,u.__)("Bottom",d.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,o.createElement)(mo,null):(0,o.createElement)(vo,null))),(0,o.createElement)(G,(0,a.Z)({},ke,{value:_e,onChange:ye,allowReset:!1,initialPosition:ee.bottom||"normal"!==h?"":"Mobile"===R&&z?B===D?P.bottom:"":"Mobile"!==R&&"Tablet"!==R||!Z?c.initialPosition:B===A?O.bottom:"",placeholder:ee.bottom||"normal"!==h?"":"Mobile"===R&&z?B===D?P.bottom:"":"Mobile"!==R&&"Tablet"!==R||!Z?void 0===e.placeholderBottom?c.placeholder:e.placeholderBottom:B===A?O.bottom:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(m.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{te((e=>({...e,bottom:!e.bottom})))},icon:J})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:g.bottom,default:e.defaultBottom,onChange:le})),e.enableLeft&&(0,o.createElement)("div",{className:"ugb-four-range-control__range"},(0,o.createElement)(s.Tooltip,{text:e.isCorner?(0,u.__)("Bottom Right",d.i18n):(0,u.__)("Left",d.i18n)},(0,o.createElement)("span",{className:"ugb-four-range-control__icon"},e.isCorner?(0,o.createElement)(po,null):(0,o.createElement)(fo,null))),(0,o.createElement)(G,(0,a.Z)({},we,{value:Ee,onChange:Se,allowReset:!1,initialPosition:ee.left||"normal"!==h?"":"Mobile"===R&&j?B===D?P.left:"":"Mobile"!==R&&"Tablet"!==R||!q?c.initialPosition:B===A?O.left:"",placeholder:ee.left||"normal"!==h?"":"Mobile"===R&&j?B===D?P.left:"":"Mobile"!==R&&"Tablet"!==R||!q?void 0===e.placeholderLeft?c.placeholder:e.placeholderLeft:B===A?O.left:"",__nextHasNoMarginBottom:!0}),e.allowCustom&&e.marks&&(0,o.createElement)(m.Z,{className:"stk-range-control__custom-button",size:"small",variant:"tertiary",onClick:()=>{te((e=>({...e,left:!e.left})))},icon:J})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:g.left,default:e.defaultLeft,onChange:re}))))}),p.isEqual);So.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 Co=(0,o.memo)(So),xo=e=>{const t=(0,E.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)};xo.defaultProps={screen:"desktop",screens:["desktop","tablet","mobile"]};const To=xo,No=[{value:"h1",title:(0,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Heading",d.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,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Heading",d.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,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Heading",d.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,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Heading",d.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,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Heading",d.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,u.sprintf)((0,u._x)("%s %d","Nth Title",d.i18n),(0,u.__)("Heading",d.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,u.__)("Paragraph",d.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)}],Mo=No.filter((e=>{let{value:t}=e;return"p"!==t})),Io=(0,o.memo)((e=>(0,o.createElement)(Ee,(0,a.Z)({},e,{className:"ugb-heading-buttons-control",controls:e.hasP?No:Mo,placeholder:No[1].value,default:No[1].value}))));Io.defaultProps={label:(0,u.sprintf)((0,u._x)("%s HTML Tag","component",d.i18n),(0,u.__)("Title",d.i18n)),value:void 0,hasP:!0};const Bo=Io,Oo=[{value:"left",title:(0,u.__)("Align Left",d.i18n),icon:"editor-alignleft"},{value:"center",title:(0,u.__)("Align Center",d.i18n),icon:"editor-aligncenter"},{value:"right",title:(0,u.__)("Align Right",d.i18n),icon:"editor-alignright"},{value:"justify",title:(0,u.__)("Justified",d.i18n),icon:"editor-justify"}],Po=Oo.filter((e=>"justify"!==e.value)),Ao=e=>{const{justified:t,className:n,controls:l,...r}=e;let s=l;return s||(s=t?Oo:Po),(0,o.createElement)(Ee,(0,a.Z)({},r,{controls:s,className:i()([n,"ugb-align-buttons-control"])}))};Ao.defaultProps={className:"",label:(0,u.__)("Align",d.i18n),justified:!1,controls:null};const Do=Ao,Lo=wp.codeEditor;var Ro=n(4863),Fo=n.n(Ro);const Ho=e=>{const[t,n]=(0,o.useState)(e.value),[a,l]=(0,o.useState)(null),r=(0,o.useRef)(),i=(0,E.useOnScreenOnce)(r),s=(0,o.useMemo)((()=>(0,p.uniqueId)("ugb-code-textarea-")),[]),c=(0,o.useRef)((0,p.debounce)((t=>{e.onChange(t)}),500,{leading:!0})),u=(0,o.useCallback)((e=>{const t=e.getValue?e.getValue():e;n(t),c.current(t)}),[]);return(0,o.useEffect)((()=>{if(Lo.initialize&&i){const t=(0,Lo.initialize)(s,Fo()(Lo.defaultSettings,e.editorSettings));l(t),t.codemirror.on("change",u)}return()=>{var e;null==c||null===(e=c.current)||void 0===e||e.cancel(),null==a||a.codemirror.off("change",u)}}),[i]),(0,o.createElement)("textarea",{ref:r,className:"ugb-code-textarea",id:s,value:t,onChange:u})};Ho.defaultProps={value:"",onChange:()=>{},editorSettings:{}};const zo=Ho;var jo=n(6556);const $o=(0,o.createElement)(s.Icon,{icon:jo.GroupContainerIcon}),Vo=(0,o.createElement)(s.Icon,{icon:jo.UngroupContainerIcon}),Uo=(0,V.compose)([(0,w.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,w.withDispatch)(((e,t)=>{let{clientIds:n,onToggle:o=p.noop,blocksSelection:a=[]}=t;const{replaceBlocks:l}=e("core/block-editor");return{onConvertToGroup(){if(!a.length)return;const e=a.map((e=>(0,ln.cloneBlock)(e))),t=(0,ln.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,w.select)("core/block-editor").getSelectedBlockClientIds?(0,o.createElement)(o.Fragment,null,a&&(0,o.createElement)(c.BlockSettingsMenuControls,null,(e=>{let{onClose:n}=e;return(0,o.createElement)(s.MenuItem,{icon:$o,onClick:()=>{t(),n()}},(0,u.__)("Group into Container",d.i18n))})),l&&(0,o.createElement)(c.BlockSettingsMenuControls,null,(e=>{let{onClose:t}=e;return(0,o.createElement)(s.MenuItem,{icon:Vo,onClick:()=>{n(),t()}},(0,u.__)("Ungroup from Container",d.i18n))}))):null})),Zo=((0,w.withSelect)((e=>{const{getSelectedBlockClientIds:t}=e("core/block-editor");return t?{clientIds:t()}:{}}))(Uo),e=>{let{clientId:t}=e;const[n,a]=(0,o.useState)(!1),[l,r]=(0,o.useState)(!1),{blockName:i,getJSONBlockAttributes:u}=(0,w.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,M.getCleanAttributes)(o,n(t));return l.uniqueClass=void 0,JSON.stringify((0,k.applyFilters)(`stackable.${a}.design.filtered-block-attributes`,l),null,4)}}}));return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockSettingsMenuControls,null,(e=>{let{onClose:t}=e;return(0,o.createElement)(s.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)(s.Modal,{title:`${(0,p.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,M.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)},u())))});((0,w.withSelect)((e=>{const{getSelectedBlockClientId:t}=e("core/block-editor");return t?{clientId:t()}:{}}))(Zo),e=>{const[t,n]=(0,M.useLocalStorage)("stk__design_library_api_version",""),l=(0,o.useMemo)((()=>(0,k.applyFilters)("stackable.design-library.versions",[""])),[]),r=l.includes(t)?t:l[0],i=(0,o.useMemo)((()=>(0,k.applyFilters)("stackable.design-library.modal-component",En,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))}).defaultProps={},n(1364),n(1114),n(8255),n(3260);var qo=n(1368),Wo=n(6179),Go=n.n(Wo);let Jo=[];class Yo extends o.Component{constructor(){super(...arguments),this.state={isLoading:0===Jo.length,termList:Jo}}componentWillMount(){this.state.termList.length||(this.isStillMounted=!0,this.fetchRequest=Go()({path:(0,qo.addQueryArgs)(`/stackable/${"v"+(this.props.stkVersion||"2")}/terms`,{per_page:-1})}).then((e=>{this.isStillMounted&&(Jo=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 c=""!==l?l.split(",").map((e=>{const{name:t}=(0,p.find)(n,(t=>t.value===parseInt(e)))||{};return t})).filter((e=>e)):void 0;if((0,p.compact)(c).length||(c=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)(s.Spinner,null)):(0,o.createElement)("div",{className:"stk-taxonomy-control"},d.isPro&&(0,o.createElement)(Q,{label:(0,u.__)("Post Type",d.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)(Q,{label:(0,u.__)("Filter by Taxonomy",d.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)(Q,{label:(0,u.__)("Taxonomy Filter Type",d.i18n),allowReset:r,options:[{label:(0,u.__)("Included In",d.i18n),value:"__in"},{label:(0,u.__)("Not In",d.i18n),value:"__not_in"}],value:this.props.taxonomyFilterType,onChange:this.props.onChangeTaxonomyFilterType,default:"__in"}),(0,o.createElement)(Na,{label:a,suggestions:i,value:c,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,p.find)(n||[],(t=>t.name===e))||{};return t}));this.props.onChangeTaxonomy((0,p.compact)(o||[]).join(","))}})))}}Yo.defaultProps={postType:"post",onChangePostType:()=>{},taxonomyType:"category",onChangeTaxonomyType:()=>{},taxonomy:"",onChangeTaxonomy:()=>{},allowReset:!1};var Ko=n(3420),Xo=n.n(Ko);const Qo=e=>{const{styles:t}=e,n=(0,E.useBlockAttributesContext)(),a=(0,E.useBlockSetAttributesContext)(),l=(null==n?void 0:n.className)||"",r=(0,E.getBlockStyle)(t,l);return(0,o.createElement)(ja,{options:t,onSelect:t=>{const o=function(e,t,n){const o=new(Xo())(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"})},ea={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="))&&!d.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 ta=n(8903),na=n(2814);const oa=(0,o.memo)((e=>{const{tourId:t=""}=e,[a,l]=(0,o.useState)(d.guidedTourStates.includes(t)),[r,i]=(0,o.useState)(!1),[s,c]=(0,o.useState)((0,ta.yY)()&&(0,ta.Ax)()!==t);if((0,o.useEffect)((()=>(0,ta.aQ)((e=>{c(null!==e&&e!==t)}))),[t]),r)return null;if(s)return null;const u=ea[t],p=u?u():null;if(!1===p)return null;if(null===p&&a)return null;const m=(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)(m,{tourId:t,onClose:()=>{l(!0),i(!0),(0,ta.tk)(),d.guidedTourStates.includes(t)||new na.models.Settings({stackable_guided_tour_states:[...d.guidedTourStates,t]}).save(),d.guidedTourStates.push(t);const e=new URL(window.location.href);e.searchParams.delete("tour"),window.history.replaceState(null,"",e.toString())}}))})),aa={Edit:e=>{const{blockProps:t,render:n,mainClass:l,blockTag:r,...s}=e,{blockName:c}=t,{anchor:u="",design:d,blockTag:p="div"}=t.attributes,m=i()([e.className],(0,k.applyFilters)(`stackable.${c}.main-block.classes`,{"ugb-main-block":l},t)),h=i()(["ugb-inner-block"],(0,k.applyFilters)(`stackable.${c}.main-block.inner-classes`,{},t)),g=(0,k.applyFilters)(`stackable.${c}.main-block.extraProps`,s,t),b=""!==u?u:void 0,v=p||r||"div";return(0,o.createElement)(v,(0,a.Z)({},g,{id:b,className:m}),t.styles,(0,k.applyFilters)(`stackable.${c}.edit.output.outer`,null,d,t),n&&(0,o.createElement)("div",{className:h},(0,k.applyFilters)(`stackable.${c}.edit.output.before`,null,d,t),(0,o.createElement)("div",{className:"ugb-block-content"},n(t)),(0,k.applyFilters)(`stackable.${c}.edit.output.after`,null,d,t)))}};aa.Edit.defaultProps={styles:null,mainClass:!0},aa.Save=e=>{const{blockProps:t,render:n,mainClass:l,blockTag:r,...s}=e,{blockName:c}=t,{anchor:u="",design:d,blockTag:p="div"}=t.attributes,m=i()([e.className],(0,k.applyFilters)(`stackable.${c}.main-block.classes`,{"ugb-main-block":l},t)),h=i()(["ugb-inner-block"],(0,k.applyFilters)(`stackable.${c}.main-block.inner-classes`,{},t)),g=(0,k.applyFilters)(`stackable.${c}.main-block.extraProps`,s,t),b=""!==u?u:void 0,v=p||r||"div";return(0,o.createElement)(v,(0,a.Z)({},g,{id:b,className:m}),t.styles,(0,k.applyFilters)(`stackable.${c}.save.output.outer`,null,d,t),n&&(0,o.createElement)("div",{className:h},(0,k.applyFilters)(`stackable.${c}.save.output.before`,null,d,t),(0,o.createElement)("div",{className:"ugb-block-content"},n(t)),(0,k.applyFilters)(`stackable.${c}.save.output.after`,null,d,t)))},aa.Save.defaultProps={styles:null,mainClass:!0};const la=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"}))},ra=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"}))},ia={"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:la,shadow:ra},inverted:{shape:la,shadow:ra}},"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"}))}}}},sa=e=>{const{shape:t,shadow:n}=ia[e.design||"wave-1"][e.inverted?"inverted":"default"],a=i()([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)};sa.defaultProps={className:"",design:"wave-1",shadow:!1,inverted:!1},sa.Save=e=>(0,o.createElement)(sa,e);const ca=()=>(0,o.createElement)("hr",{className:"ugb-control-separator"}),ua=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";return n=t?da(e,{"aria-label":t,role:"img"},["aria-hidden"]):da(e,{"aria-hidden":"true"},["aria-label","role"]),n},da=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,M.createElementFromHTMLString)(e);return o?(Object.keys(t).forEach((e=>{o.setAttribute(e,t[e])})),n.forEach((e=>{o.removeAttribute(e)})),o.outerHTML):""},pa=(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,p.pick)(e,["className","color","fill","style"]);if("string"==typeof e.value&&e.value.match(/^<svg/)){let a=ua(e.value,e.ariaLabel);return a=da(a,t,n),(0,o.createElement)(o.RawHTML,i,e.prependRenderString+a)}const c=e.value?e.value.replace(/-.*$/,""):e.prefix,u=e.value?e.value.replace(/^.*?-/,""):e.iconName;if(c&&u){const a=(0,M.faGetIcon)(c,u);if(!a)return(0,M.faFetchIcon)(c,u).then(r),(0,o.createElement)(s.Spinner,null);let l=ua(a,e.ariaLabel);return l=da(l,t,n),(0,o.createElement)(o.RawHTML,i,e.prependRenderString+l)}const d=(0,M.faGetIcon)("far","smile");if(!d)return(0,M.faFetchIcon)("far","smile").then(r),(0,o.createElement)(s.Spinner,null);let m=ua(d,e.ariaLabel);return m=da(m,t,n),(0,o.createElement)(o.RawHTML,i,e.prependRenderString+m)}));pa.Content=e=>{const t=(0,p.pick)(e,["className","color","fill","style"]),{prependRenderString:n=""}=e;if("string"==typeof e.value&&e.value.match(/^<svg/)){let a=ua(e.value,e.ariaLabel);return a=da(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,M.faGetIcon)(a,l);let i=ua(r,e.ariaLabel);return i=da(i,{width:"32",height:"32"}),(0,o.createElement)(o.RawHTML,t,n+i)},pa.defaultProps={ariaLabel:"",prefix:"",iconName:"",value:"",prependRenderString:""};const ma=pa,ha=e=>e.match(/^<svg(.*?)<\/svg>$/g)?e:e.match(/<svg/)?(e.match(/<svg.*?<\/svg>/g)||[e])[0]:e,ga=e=>{const{...t}=e;return t.value=(0,o.useMemo)((()=>"string"===e.value?ha(e.value):e.value),[e.value]),(0,o.createElement)(ma,t)};ga.Content=e=>{const{...t}=e;return t.value="string"===e.value?ha(e.value):e.value,(0,o.createElement)(ma.Content,t)};const ba=ga,va=e=>{const t=i()(["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)(s.BaseControl,{help:e.help,className:t,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0},e.hasLabel&&(0,o.createElement)(so,{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)(m.Z,{className:i()("stk-inspector-control__reset-button",{"stk-control__reset-button--no-modified":!e.hasPanelModifiedIndicator}),isSmall:!0,isTertiary:!0,"aria-label":(0,u.__)("Reset",d.i18n),onClick:()=>{e.onReset?e.onReset():e.onChange(e.defaultValue)},icon:(0,o.createElement)(s.Dashicon,{icon:"image-rotate"})}))};va.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 fa=va,ka=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"}))},_a=(0,o.memo)((e=>{const t=(0,E.useAttributeName)(`${e.attribute}Id`,e.responsive,e.hover),n=(0,E.useAttributeName)(`${e.attribute}Url`,e.responsive,e.hover),l=(0,E.useAttributeName)(`${e.attribute}HeightAttribute`,e.responsive,e.hover),r=(0,E.useAttributeName)(`${e.attribute}WidthAttribute`,e.responsive,e.hover),s=(0,E.useAttributeName)(`${e.attribute}Alt`,e.responsive,e.hover),p=(0,E.useBlockAttributesContext)((e=>({[t]:e[t],[n]:e[n]}))),h=(0,E.useBlockSetAttributesContext)(),g=void 0!==e.onChange?e.onChange:e=>{h({[t]:e.id,[n]:e.url,[l]:e.width||"",[r]:e.height||"",[s]:e.alt||""})},[f,k]=(0,b.ED)(e),_=(0,I.WA)({onChange:e=>g({url:e,id:"",width:"",height:"",alt:""}),value:p[n]}),y=void 0!==e.imageId?e.imageId:p[t],w=void 0!==e.imageURL?e.imageURL:_.value||p[n],S=w&&w.match(/(mp4|webm|ogg)$/i)?"video":"image";return(0,o.createElement)(b.ZP,(0,a.Z)({},k,{valueCheckAttribute:e.attribute+"Url",className:i()("ugb-image-control",e.className)}),w&&(0,o.createElement)(c.MediaUpload,{onSelect:g,allowedTypes:e.allowedTypes,value:y,render:e=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"ugb-image-preview-wrapper"},"video"===S&&(0,o.createElement)("video",{className:"ugb-image-preview",autoPlay:!0,muted:!0,loop:!0,src:w,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()}}),"image"===S&&(0,o.createElement)("img",{className:"ugb-image-preview",draggable:"false",src:w,onClick:e.open,onKeyDown:t=>{13===t.keyCode&&e.open()},alt:(0,u.__)("preview",d.i18n)})))}),(0,o.createElement)(I.ZP,(0,a.Z)({enable:e.isDynamic,hasPanelModifiedIndicator:e.hasPanelModifiedIndicator,type:"image-url"},_),(0,o.createElement)(c.MediaUpload,{onSelect:g,allowedTypes:e.allowedTypes,value:y,render:e=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(m.Z,{className:"ugb-image-upload",onClick:e.open,icon:(0,o.createElement)(ka,{viewBox:"0 0 20 20"}),isSecondary:!0,onKeyDown:t=>{13===t.keyCode&&e.open()}},(0,o.createElement)("span",{className:"ugb-image-upload__label"},w?(0,u.__)("Replace",d.i18n):(0,u.__)("Upload",d.i18n)," ")))})),(0,o.createElement)(v.J,{allowReset:e.allowReset&&!e.dynamic,value:w,default:e.default,onChange:()=>{g({url:"",id:"",height:"",width:"",alt:""})},hasPanelModifiedIndicator:e.hasPanelModifiedIndicator}))}));_a.defaultProps={label:"",attribute:"",allowedTypes:["image"],responsive:!1,hover:!1,isDynamic:!0,value:void 0,onChange:void 0,allowReset:!0,hasPanelModifiedIndicator:!0};const ya=_a,wa=(0,o.memo)((e=>{const{help:t}=e,n=`inspector-toggle-control-${(0,V.useInstanceId)(wa)}`,[l,r]=(0,f.G)(e.attribute,e.responsive,e.hover,e.changeCallback),c=void 0===e.checked?l:e.checked,u=void 0===e.onChange?r:e.onChange;let d,m;t&&(d=n+"__help",m=(0,p.isFunction)(t)?t(c):t);const h=i()(["components-toggle-control","stk-toggle-control","stk-control",e.className]);return(0,o.createElement)(fa,{id:n,help:m,className:h,allowReset:e.allowReset,value:c,showReset:e.defaultValue?c!==e.defaultValue:c,onChange:u,hasLabel:!1,defaultValue:e.defaultValue},(0,o.createElement)(s.FormToggle,{id:n,checked:c,onChange:e=>u(e.target.checked),"aria-describedby":d}),(0,o.createElement)("label",{htmlFor:n,className:"components-toggle-control__label"},(0,o.createElement)(Pn.Z,(0,a.Z)({label:e.label},e.helpTooltip))))}));wa.defaultProps={className:"",allowReset:!0,showReset:null,defaultValue:"",attribute:"",responsive:!1,hover:!1,checked:void 0,onChange:void 0};const Ea=wa,Sa={x:.5,y:.5},Ca=e=>{var t;const[n,l]=(0,f.G)(e.attribute,e.responsive,e.hover),[r,c]=(0,b.ED)(e);r.url=(0,I.wt)(r.url),null!==(t=r.url)&&void 0!==t&&t.includes("http")||(r.url=void 0);const u=void 0===e.value?n:e.value;return(0,o.createElement)(b.ZP,(0,a.Z)({},c,{className:i()("stk-advanced-focal-point-control",e.className)}),(0,o.createElement)(s.FocalPointPicker,(0,a.Z)({},r,{value:u||Sa,onChange:void 0===e.onChange?l:e.onChange,__nextHasNoMarginBottom:!0})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:u,default:e.default,onChange:void 0===e.onChange?l:e.onChange}))};Ca.defaultProps={className:"",url:"",allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const xa=(0,o.memo)(Ca),Ta=e=>{const[t,n]=(0,f.G)(e.attribute,e.responsive,e.hover),[l,r]=(0,b.ED)(e),{...c}=l,u=void 0===e.value?t:e.value,d=void 0===e.onChange?n:e.onChange;return(0,o.createElement)(b.ZP,(0,a.Z)({},r,{className:i()("stk-advanced-token-field",e.className)}),(0,o.createElement)(s.FormTokenField,(0,a.Z)({},c,{value:u||[],onChange:d})),(0,o.createElement)(v.J,{allowReset:e.allowReset,value:u,default:e.default,onChange:d}))};Ta.defaultProps={className:"",allowReset:!0,default:"",attribute:"",value:void 0,onChange:void 0};const Na=Ta,Ma={blur:{label:(0,u.__)("Blur",d.i18n),min:0,sliderMax:10,step:.1,placeholder:0,format:"%spx"},brightness:{label:(0,u.__)("Brightness",d.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},contrast:{label:(0,u.__)("Contrast",d.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},grayscale:{label:(0,u.__)("Grayscale",d.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"},"hue-rotate":{label:(0,u.__)("Hue Rotate",d.i18n),min:0,sliderMax:360,step:1,placeholder:0,format:"%sdeg"},invert:{label:(0,u.__)("Invert",d.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"},opacity:{label:(0,u.__)("Opacity",d.i18n),min:0,sliderMax:1,step:.01,placeholder:1,format:"%s"},saturate:{label:(0,u.__)("Saturate",d.i18n),min:0,sliderMax:3,step:.1,placeholder:1,format:"%s"},sepia:{label:(0,u.__)("Sepia",d.i18n),min:0,sliderMax:1,step:.01,placeholder:0,format:"%s"}},Ia=e=>{const[t,n]=(0,f.G)(e.attribute,e.responsive,e.hover),[l,r]=(0,b.ED)(e),[s,c]=(0,o.useState)({}),d=void 0===e.value?t:e.value,m=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)(b.ZP,(0,a.Z)({},r,{boldLabel:!0,className:i()("stk-image-filter-control","stk--no-padding",e.className)}),Object.keys(Ma).map(((e,t)=>{const n=Ma[e];return(0,o.createElement)(K,(0,a.Z)({key:t,allowReset:!0},(0,p.omit)(n,["format"]),{value:s[e],onChange:t=>{s[e]=t,c(s),m((e=>{const t=Object.keys(e).map((t=>{const n=e[t],{format:o,placeholder:a}=Ma[t];return isNaN(n)||""===n?"":`${t}(${(0,u.sprintf)(o,n||a)})`}));return(0,p.compact)(t).join(" ")})(s))}}))})))};Ia.defaultProps={allowReset:!0,default:"",attribute:"",responsive:!1,hover:!1,value:void 0,onChange:void 0};const Ba=Ia;h.Wj,h.y$;(0,u.__)("Add Column",d.i18n);const Oa=[{component:Ea,key:"inset",props:{label:(0,u.__)("Inset",d.i18n)},default:!1},{component:K,key:"horizontalOffset",props:{label:(0,u.__)("Horizontal Offset",d.i18n),placeholder:0,sliderMin:-100,sliderMax:100},format:"%spx",default:"0px"},{component:K,key:"verticalOffset",props:{label:(0,u.__)("Vertical Offset",d.i18n),placeholder:0,sliderMin:-100,sliderMax:100},format:"%spx",default:"0px"},{component:K,key:"blur",props:{label:(0,u.__)("Blur",d.i18n),placeholder:0,sliderMin:0,sliderMax:100},format:"%spx",default:"0px"},{component:K,key:"shadowSpread",props:{label:(0,u.__)("Shadow Spread",d.i18n),placeholder:0,sliderMin:0,sliderMax:100},format:"%spx",default:"0px",show:e=>!e.isFilter},{component:x,key:"shadowColor",props:{label:(0,u.__)("Shadow Color",d.i18n)},default:"#000000"}],Pa=e=>{const[t,n]=(0,o.useState)({}),[l,r]=(0,o.useState)({}),[i,s]=(0,f.G)(e.attribute,e.responsive,e.hover),[c,m]=(0,b.ED)(e),h=void 0===e.value?i:e.value,g=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(h,t,n,e.isFilter)}),[h,e.isFilter]),(0,o.useEffect)((()=>{v(e.placeholder,l,r,e.isFilter)}),[e.placeholder,e.isFilter]),(0,o.createElement)(oi.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)(b.ZP,(0,a.Z)({},m,{label:(0,u.__)("Advanced Shadow Options",d.i18n),boldLabel:!0}),Oa.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}),g(((e,t)=>(0,p.compact)(Oa.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,u.sprintf)(n.format,t[o]):t[o]||n.default||"":void 0}))).join(" "))(e.parentProps,t))}})))})))))};Pa.defaultProps={hasInset:!0,isFilter:!1};const Aa=(0,o.memo)((e=>{var t;const{options:n,label:l,...r}=e,i=n||(0,k.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"]),c=(0,o.useRef)(null),[p,m]=(0,o.useState)(!1),h=e=>e?-1===i.indexOf(e)?"custom":i.indexOf(e):"",[g,v]=(0,f.G)(e.attribute,e.responsive,e.hover,h,(e=>""!==e?i[e]:e)),_=void 0===e.value?g:e.value,[y,w]=(0,b.ED)(r);return(0,o.useEffect)((()=>{const e=e=>{p&&(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")||m(!1))};return document.body.addEventListener("mousedown",e),()=>document.body.removeEventListener("mousedown",e)}),[p]),(0,o.useEffect)((()=>{}),[_,p]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(K,(0,a.Z)({},y,w,{attribute:e.attribute,label:l,value:_,onChange:void 0===e.onChange?v:e.onChange,min:0,max:i.length-1,allowReset:!0,helpTooltip:e.helpTooltip,hover:e.hover,placeholder:"custom"===_?(0,u.__)("Custom",d.i18n):h(e.placeholder),after:(0,o.createElement)(s.Button,{className:"stk-shadow-control__more-button",ref:c,isSmall:!0,isTertiary:!0,isPressed:p||"custom"===_,label:(0,u.__)("Shadow Settings",d.i18n),onClick:()=>m(!p),icon:(0,o.createElement)(s.Dashicon,{icon:"admin-generic"})})})),p&&(0,o.createElement)(Pa,(0,a.Z)({},w,{anchorRect:null===(t=c.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:()=>m(!1),value:e.shadowFilterValue,onChange:e.shadowFilterOnChange})))}),p.isEqual);Aa.defaultProps={attribute:"",label:(0,u.__)("Shadow / Outline",d.i18n),placeholder:"",options:null,valueCallback:null,changeCallback:null,isFilter:!1,hasInset:!0,helpTooltip:{video:"general-shadow",title:(0,u.__)("Shadow/Outline",d.i18n),description:(0,u.__)("Adjusts the intensity of the shadow/outline of the block and the appearance of the block border",d.i18n)}};const Da=Aa,La=e=>{const[t,n]=(0,f.G)(e.attribute,e.responsive,e.hover,e.valueCallback,e.changeCallback),[l,r]=(0,b.ED)(e),{isDynamic:s,...u}=l,d=void 0===e.value?t:e.value,p=void 0===e.onChange?n:e.onChange,m=(0,I.WA)({value:d,onChange:p}),h=i()(["stk-link-control",e.className],{"stk--has-value":d});return(0,o.createElement)(b.ZP,(0,a.Z)({},r,{className:h}),(0,o.createElement)(I.ZP,(0,a.Z)({type:["link","image-url"],enable:s},m),(0,o.createElement)("div",{className:"stk-link-control__input"},(0,o.createElement)(c.__experimentalLinkControl,(0,a.Z)({},u,{value:{url:d},onChange:e=>{let{url:t}=e;return p(t)},settings:[],forceIsEditingLink:!d})))),(0,o.createElement)(v.J,{allowReset:e.allowReset&&!e.dynamic,value:d,onChange:()=>p("")}))};La.defaultProps={className:"",label:"",screens:["desktop"],help:"",value:void 0,onChange:void 0,showSuggestions:!0,isDynamic:!0,allowReset:!0};const Ra=La,Fa=wp.keycodes,Ha=e=>{const{options:t,value:n}=e;return(0,o.createElement)("div",{className:i()(e.className,"stk-block-editor-block-styles")},t.map(((t,a)=>(0,o.createElement)(za,{key:a,isActive:n===t[e.activeProperty],onSelect:e.onSelect,option:t}))))};Ha.defaultProps={className:"",onSelect:()=>{},options:[],value:"",activeProperty:"value"};const za=(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:i()("stk-style-control__option","stk-block-editor-block-styles__item",{"is-active":n,"is-disabled":t.disabled}),onClick:()=>l(t),onKeyDown:e=>{Fa.ENTER!==e.keyCode&&Fa.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))}));za.defaultProps={option:{},isActive:!1,onSelect:()=>{}};const ja=Ha;n(7044);const $a=(0,o.forwardRef)(((e,t)=>{const{children:n,className:l,tagName:r,...s}=e,c=i()(["stk-link",l]),u=r||"a";return(0,o.createElement)(u,(0,a.Z)({ref:t,className:c,href:"a"===r?"javascript:void(0)":void 0},s),n)}));$a.defaultProps={className:"",tagName:"a"},$a.Content=e=>{const t=i()(["stk-link",e.className]),n=(0,p.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}))},$a.Content.defaultProps={className:"",target:"",rel:"",href:"",tagName:"a"};const Va=$a,Ua=[.25,.33333,.5,.66666,.75,1],Za=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1],qa=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?Za:Ua;return i.map((e=>{const t=n*e;return"right"===o?t-l:r-t}))},Wa=Ua.map((e=>100*e)),Ga=Za.map((e=>100*e)),Ja=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t?Ga:Wa;return e.map((e=>{let t=e;return n.some((n=>Math.abs(e-n)<.2&&(t=n,!0))),t}))},Ya=(0,o.createContext)({showColumnTooltip:!1,setShowColumnTooltip:()=>{}}),Ka=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 Xa=n(376);const Qa={Desktop:5,Tablet:10,Mobile:10},el=e=>(Math.trunc(10*e)/10).toFixed(1),tl=e=>{const{clientId:t}=(0,c.useBlockEditContext)(),{getEditorDom:n}=(0,w.useSelect)("stackable/editor-dom"),{isFirstBlock:a,isLastBlock:l,isOnlyBlock:r,adjacentBlocks:u,blockIndex:d,parentBlock:m}=(0,w.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"],b=(0,E.useDeviceType)(),[v,f]=(0,o.useState)([]),[k,_]=(0,o.useState)(""),[y,S]=(0,o.useState)([]),[C,x]=(0,o.useState)(2e3),[T,N]=(0,o.useState)(""),[M,I]=(0,o.useState)(null),B="Desktop"===b,O="Tablet"===b,[P,A]=(0,o.useState)(null==u?void 0:u.length);(0,o.useEffect)((()=>{P&&null!=u&&u.length?(P!==(null==u?void 0:u.length)&&(e.onResetDesktop(),A(u.length)),(null==u?void 0:u.length)<P&&1===(null==u?void 0:u.length)&&e.onResetTabletMobile()):A(null==u?void 0:u.length)}),[u]),(0,o.useEffect)((()=>{m&&B&&!g&&$()}),[g]);const[D,L]=(0,o.useState)(!1);(0,o.useEffect)((()=>(L(!0),()=>{L(!1)})),[]);const R=(0,E.useWithShift)();(0,o.useEffect)((()=>{I(null)}),[R]);const F=i()(["stk-column-resizeable",e.className]),H={top:!1,right:"Desktop"===b?!r&&(!l||g):!r,bottom:!1,left:"Desktop"===b&&!r&&!a&&!g,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},z=null==m?void 0:m.clientId,j=(0,o.useRef)(void 0),$=()=>{const t=(0,w.select)("core/block-editor").getBlock(z);if(!t)return;const n=j.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,p.isEqual)(a.map((e=>0|e)),[33,33,33])?e.onChangeDesktop([33.33,33.33,33.33]):e.onChangeDesktop(a))},[V,U]=(0,o.useState)(!1),[Z,q]=(0,o.useState)(!1),{showColumnTooltip:W,setShowColumnTooltip:G}=(0,o.useContext)(Ya);return(0,o.useEffect)((()=>{V||(Z&&!W?G(t):Z||W!==t||G(!1))}),[W,G,Z,V,t]),(0,o.createElement)(s.ResizableBox,{enable:!!e.isHovered&&H,minWidth:"30",minHeight:"30",maxWidth:C,className:F,showHandle:!(!h||!e.isHovered)&&e.showHandle,snap:M,snapGap:20,onResizeStart:(e,o)=>{const a=(0,w.select)("core/block-editor").getBlock(z),{columnGap:l,columnGapTablet:r,columnGapMobile:i}=(null==a?void 0:a.attributes)||{},s=l||0,c=n(),u=j.current=a.innerBlocks;if(B&&!g){const e=s*(u.length-1),t=c.querySelector(`[data-block="${z}"] .stk-inner-blocks`).clientWidth-e,n=u.every((e=>{let{attributes:t}=e;return!t.columnWidth})),a=u.map((e=>{let{clientId:o,attributes:a}=e;if(n)return 1*t/u.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?d+1:d-1,r=a[d]+(a[l]-30);x(r)}else{const e=u.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/u.length}));f(e);const n=c.querySelector(`[data-block="${t}"]`),o=(null==n?void 0:n.clientWidth)||0;_(o);const a=c.querySelector(`[data-block="${z}"]`),l=(null==a?void 0:a.clientWidth)||0;x(l)}q(!0)},onResize:(e,n,o,a)=>{let l=[];const r=j.current;if(B&&!g){const e=[...v],t=v.reduce(((e,t)=>e+t),0),o="right"===n?d+1:d-1;e[o]-=a.width,e[d]+=a.width,l=(e||[]).map((e=>parseFloat(el(e/t*100)))),l=Ja(l,R);let i=l.reduce(((e,t)=>e+t),0);100!==i&&(l[o]=parseFloat(el(l[o]+100-i))),i=l.reduce(((e,t)=>e+t),0),100!==i&&(l[o]=l[o]+100-i),S(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: '${el(e)}%' !important;\n\t\t\t\t}`)).join("");N(s),M||I({x:qa(e,d,t,n,R)})}else{const e=k+a.width;l=(0,p.clamp)(parseFloat(el(e/C*100)),0,100),l=Ja([l],R)[0],S(l);const o=[...v];o[d]=l;const r=(0,Xa.w)(o),i=r.filter((e=>e===r[d])).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: '${el(l)}%' !important;\n\t\t\t\t}`;N(s),M||I({x:qa([100],0,C,n,R)})}},onResizeStop:(t,n,o,a)=>{const l=j.current;if(a.width)if(B&&!g)(0,p.isEqual)(y.map((e=>0|e)),[33,33,33])?e.onChangeDesktop([33.33,33.33,33.33]):e.onChangeDesktop(y);else if(B){const t=l.map((e=>{let{attributes:t}=e;return t.columnWidth||100/l.length}));t[d]=y,e.onChangeDesktopWrap(y,t,d)}else if(O){const t=l.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/l.length}));t[d]=y,e.onChangeTablet(y,t,d)}else{const t=l.map((e=>{let{attributes:t}=e;return t.columnWidthMobile||100}));t[d]=y,e.onChangeMobile(y,t,d)}T&&setTimeout((()=>{D&&N("")}),400),I(null),q(!1),j.current=void 0}},h&&(0,o.createElement)(nl,{isVisible:!r,adjacentBlocks:u,isOnlyBlock:r,blockIndex:d,isLastBlock:l,isFirstBlock:a,value:B?e.columnWidth:O?e.columnWidthTablet||e.columnWidth:e.columnWidthMobile,onChange:t=>{if(""!==t&&t<Qa[b])return;const n=(0,w.select)("core/block-editor").getBlock(z).innerBlocks;if(B&&!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!==d?d+1:d-1,r=a[d]+(a[l]-5),i=(0,p.clamp)(t,Qa.Desktop,r),s=i-a[d];a[l]-=s,a[d]=i,e.onChangeDesktop(a)}else if(B){const o=n.map((e=>{let{attributes:t}=e;return t.columnWidth||100/n.length})),a=t?(0,p.clamp)(t,Qa[b],100):"";o[d]=a,e.onChangeDesktopWrap(a,o,d)}else if(O){const o=n.map((e=>{let{attributes:t}=e;return t.columnWidthTablet||t.columnWidth||100/n.length})),a=t?(0,p.clamp)(t,Qa[b],100):"";o[d]=a,e.onChangeTablet(a,o,d)}else{const o=n.map((e=>{let{attributes:t}=e;return t.columnWidthMobile||100})),a=t?(0,p.clamp)(t,Qa[b],100):"";o[d]=a,e.onChangeMobile(a,o,d)}},onTogglePopup:e=>{U(e),e?G(t):Z||W!==t||G(!1)},tooltipProps:{onMouseEnter:()=>q(!0),onMouseLeave:()=>q(!1)}}),T&&(0,o.createElement)("style",null,T),e.children)},nl=(0,o.memo)((e=>{const{adjacentBlocks:t,isOnlyBlock:n,blockIndex:l,isLastBlock:r,isFirstBlock:i}=e,s=(0,E.useDeviceType)(),[c,m]=(0,o.useState)(!1),[h,g]=(0,o.useState)(""),[b,v]=(0,o.useState)(""),f=(0,o.useRef)(),k=(0,o.useRef)();let _="";if(void 0!==t&&!e.value&&!h)if("Desktop"===s||"Tablet"===s){const e=el(100/t.length);_="33.3"===e.toString()?33.33:e}else _=100;const y=(e.value?el(parseFloat(e.value)):"")||h||_,w=y!==(0,u.__)("Auto",d.i18n)?`'${y}%'`:`'${y}'`;return(0,o.useEffect)((()=>{e.onTogglePopup&&e.onTogglePopup(c),c&&(g(e.value),v(e.value||(_!==(0,u.__)("Auto",d.i18n)?_:"")),setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.querySelector("input").select()}),1))}),[c]),(0,o.useEffect)((()=>{var e;const t=()=>{m(!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)(oi.Z,{className:"stk-resizable-column__popup",anchorRef:k.current,position:"bottom right",onFocusOutside:e=>{e.relatedTarget!==k.current&&m(!1)},onEscape:()=>m(!1)},(0,o.createElement)("div",{ref:f},(0,o.createElement)(O,{label:(0,u.__)("Column",d.i18n),className:"stk-resizable-column__input",value:b,allowReset:!1,onChange:t=>{const n="Desktop"===s?h:"",o=(0,p.clamp)(t,0,100)||n;""===o&&g(""),e.onChange(o),v(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:h||_||e.value}))),!n&&(0,o.createElement)("div",(0,a.Z)({},e.tooltipProps,{className:"stk-resizable-column__size-tooltip",ref:k,style:{"--width":w},onMouseDown:e=>{m(!c),e.preventDefault()},onKeyDown:e=>{13===e.keyCode&&m(!c)},role:"button",tabIndex:"0"}),(0,o.createElement)(Ka,{fill:"currentColor",width:"10"})))})),ol=()=>{};nl.defaultProps={isVisible:!0,value:"",onChange:ol,tooltipProps:{},onTogglePopup:null},tl.defaultProps={className:"",context:null,showHandle:!0,columnWidth:"",columnWidthTablet:"",columnWidthMobile:"",isHovered:!1,onChangeDesktop:ol,onChangeTablet:ol,onChangeMobile:ol,onResetDesktop:ol};const al=(0,o.memo)(tl),ll=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"}))},rl=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"%";return"%"===n&&(t=(0,p.clamp)(e,5,100)),t=Math.max(e,5),isNaN(t)?"":t},il=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,p.clamp)(10*Math.round(e/r*10),10,100)},sl=e=>{const[t,n]=(0,o.useState)(!1),[a,l]=(0,o.useState)(""),[r,c]=(0,o.useState)(""),[p,m]=(0,o.useState)(null),[h,g]=(0,o.useState)(null),b=(0,o.useRef)(),v=(0,o.useRef)(),f=()=>{setTimeout((()=>{var e;null===(e=v.current)||void 0===e||e.querySelector("input").select()}),1)};(0,o.useEffect)((()=>{m(null),g(null),t?(l(e.width),c(e.height),f()):(l(""),c(""))}),[t]);const k=i()(["stk-resizer-tooltip"],{"stk--is-editing":t}),_=i()(["stk-resizer-popup"],{"stk--is-wide":e.enableWidth&&e.enableHeight}),y=(0,o.createElement)(O,{placeholder:e.widthPlaceholder,default:"auto"===e.defaultWidth?"":e.defaultWidth,type:"number",label:e.enableWidth&&e.enableHeight?(0,u.__)("Width",d.i18n):(0,u.sprintf)((0,u.__)("%s Width",d.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===p){var o;m(e.width);const a=null===(o=b.current)||void 0===o?void 0:o.parentElement.querySelector(".stk-img"),r=il(e.width,t,"width",a);l(r),n=rl(r,t)}else l(p),n=p,m(null);e.onChangeWidth({value:n,unit:t}),f()},onChange:t=>{const n="auto"===t?"":t;m(null),l(n),n>=5?e.onChangeWidth({value:rl(n,e.widthUnit),unit:e.widthUnit}):""===n&&(m(null),l(""),e.enableWidth&&e.onChangeWidth({value:"",unit:""}))}}),w=(0,o.createElement)(O,{placeholder:e.heightPlaceholder,default:"auto"===e.defaultHeight?"":e.defaultHeight,type:"number",label:e.enableWidth&&e.enableHeight?(0,u.__)("Height",d.i18n):(0,u.sprintf)((0,u.__)("%s Height",d.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===h){var o;g(e.height);const a=null===(o=b.current)||void 0===o?void 0:o.parentElement.querySelector(".stk-img"),l=il(e.height,t,"height",a);c(l),n=rl(l,t)}else c(h),n=h,g(null);e.onChangeHeight({value:n,unit:t}),f()},onChange:t=>{const n="auto"===t?"":t;g(null),c(n),n>=5?e.onChangeHeight({value:rl(n,e.heightUnit),unit:e.heightUnit}):""===n&&(g(null),c(""),e.enableHeight&&e.onChangeHeight({value:"",unit:""}))}});let E=a||0===a?a:e.width||0===e.width?e.width:e.widthPlaceholder;E="auto"===E?"auto":`${E}${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)(oi.Z,{className:_,anchorRef:b.current,position:"bottom right",onFocusOutside:e=>{e.relatedTarget!==b.current&&n(!1)},onEscape:()=>n(!1)},(0,o.createElement)("div",{ref:v},e.enableWidth&&e.enableHeight&&(0,o.createElement)(s.BaseControl,{help:e.help,className:i()("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,u.sprintf)((0,u.__)("%s Size",d.i18n),e.label)))),(0,o.createElement)("div",{className:"stk-resizer-popup__control-wrapper"},y,(0,o.createElement)("span",{className:"stk-resizer-popup__x"},"×"),w)),!(e.enableWidth&&e.enableHeight)&&(0,o.createElement)("div",{className:"stk-resizer-popup__control-wrapper"},e.enableWidth&&!e.enableHeight&&y,!e.enableWidth&&e.enableHeight&&w))),(0,o.createElement)("div",{className:k,role:"button",tabIndex:"0",onMouseDown:()=>{n(!t)},onKeyDown:e=>{13===e.keyCode&&n(!t)},ref:b},e.enableWidth?E:null,e.enableWidth&&e.enableHeight?" × ":null,e.enableHeight?S:null,(0,o.createElement)(ll,{fill:"currentColor",width:"10"})))};sl.defaultProps={width:"",height:"",widthUnit:"%",heightUnit:"px",widthUnits:["px","%"],heightUnits:["px","%"],enableWidth:!0,enableHeight:!0,allowReset:!0,onChangeWidth:()=>{},onChangeHeight:()=>{},label:(0,u.__)("Image",d.i18n),defaultWidth:"",defaultHeight:""};const cl=sl,ul={Desktop:24,Tablet:24,Mobile:16},dl=(0,p.range)(50,1001,50),pl=(0,p.range)(8,1001,8),ml={bottom:{height:"100%"}},hl={top:!1,right:!1,bottom:!0,left:!1},gl=e=>{const{deviceType:t}=e,{name:n}=(0,c.useBlockEditContext)(),[a,l]=(0,o.useState)(null),[r,u]=(0,o.useState)(null),[d,p]=(0,o.useState)(!1),m=(0,o.useRef)(null),[h,g]=(0,o.useState)(dl),b=(0,E.useWithShift)();(0,o.useEffect)((()=>{g(null)}),[b]);const v=(0,k.applyFilters)("stackable.resizable-bottom-margin.default",ul[t],n),f=i()(["stk-resizable-bottom-margin"],{"stk--is-resizing":null!==a,"stk--is-tiny":(""!==e.value?e.value:v)<5}),_=e.value||0===e.value?e.unit:"px",y=e.value||0===e.value?e.value:v,w=e=>{if("%"===_&&m.current){const t=m.current.getParentSize().width;return{height:y/100*t+e,delta:e/t*100}}return{height:y,delta:e}};return(0,o.createElement)(s.ResizableBox,{ref:m,className:f,minHeight:"0",handleStyles:ml,enable:hl,size:{height:w(0).height},snap:h,snapGap:5,onResizeStart:()=>{m.current&&m.current.resizable&&m.current.resizable.closest(".wp-block")?u(m.current.resizable.getBoundingClientRect().top-m.current.resizable.closest(".wp-block").getBoundingClientRect().top):u(null),l(y),p(!0)},onResize:(e,t,n,o)=>{let a=o.height;if("%"===_){const{height:e,delta:t}=w(a);a=t,n.style.height=`${e}px`}null!==r&&(n.style.top=`${r}px`),l(y+a),h||g(function(){return{y:arguments.length>0&&void 0!==arguments[0]&&arguments[0]?pl:dl}}(b))},onResizeStop:(t,n,o)=>{o.style.top="",e.onChange(parseInt(a,10)===parseInt(v,10)&&"px"===_?"":parseInt(a,10)),l(null),p(!1)}},e.previewSelector&&d&&(0,o.createElement)("style",null,`.editor-styles-wrapper ${e.previewSelector} { margin-bottom: ${a}${_} !important; }`),(0,o.createElement)("span",{className:"stk-resizable-bottom-margin__label"},`${d?parseInt(a,10):y}${_}`))};gl.defaultProps={previewSelector:"",value:"",onChange:()=>{}};const bl=e=>{var t;const n=(0,E.useBlockSetAttributesContext)(),a=(0,E.useDeviceType)(),l=(0,M.getAttributeName)(e.attribute,a),r=(0,M.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,M.getAttributeName)(e.attribute,"Tablet"),n=(0,M.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 u;const t=(0,M.getAttributeName)(e.attribute,"Desktop"),n=(0,M.getAttributeName)(`${e.attribute}Unit`,"Desktop");i=null===(u=e[t])||void 0===u?void 0:u.bottom,s=e[n]}return(0,o.createElement)(gl,{deviceType:a,previewSelector:e.previewSelector,value:i,unit:s,onChange:t=>{n({[l]:{...e[l],bottom:t}})}})};bl.defaultProps={previewSelector:"",attribute:"",responsive:!1};const vl=bl,fl=e=>{const{blockName:t}=e,n=(0,ln.getBlockType)(t),a=(0,M.getBlockStyleAttributesFilter)(t),l=(0,o.useMemo)((()=>(0,M.getFilteredAttributes)(n.attributes,a)),[]),[r,c]=(0,o.useState)(!1),[p,h]=(0,o.useState)(!1),[g,b]=(0,o.useState)(!1),[f,_]=(0,o.useState)(!1),[y,S]=(0,o.useState)(0),C=(0,o.useRef)(null),x=(0,o.useRef)(null),T=(0,o.useRef)(null),N=(0,o.useRef)([]),I=(0,w.useSelect)((e=>{var t;return null===(t=e("core").getCurrentUser())||void 0===t?void 0:t.id}),[]),B=(0,E.useBlockAttributesContext)(),O=(0,E.useBlockSetAttributesContext)(),{blockStyle:P,modifiedBlockStyle:A,uniqueId:D,generatedCss:L,...R}=B,F=i()(["components-panel__body","ugb-block-styles-controls"]),H=i()(["ugb-pro-control-button__wrapper"],{"ugb-pro-control-button--hidden":!p}),z=e=>{N.current.includes(document.activeElement)&&("ArrowDown"===e.key?(e.preventDefault(),S((e=>(e+1)%N.current.length))):"ArrowUp"===e.key&&(e.preventDefault(),S((e=>(e-1+N.current.length)%N.current.length))))};(0,o.useEffect)((()=>{N.current[y]&&N.current[y].focus()}),[y]),(0,o.useEffect)((()=>{if(!f)return h(!1),S(-1),void(N.current=[]);const e=T.current;if(!e)return;N.current.length||(N.current=Array.from(e.querySelectorAll("button")));const t=e.querySelector(".ugb-block-styles-controls__selected");if(t&&N.current.length){const e=N.current.indexOf(t);S(e)}return e.addEventListener("keydown",z),()=>{e&&e.removeEventListener("keydown",z)}}),[f]),(0,o.useEffect)((()=>{(async()=>{const e=await(0,M.currentUserHasCapability)("manage_options");c(e)})()}),[I]),(0,o.useEffect)((()=>{null!==C.current&&C.current===P?!A&&P&&(0,M.isBlockStyleAttributesModified)(t,P,R)&&O({modifiedBlockStyle:!0}):C.current=P}),[B]);const j=(0,w.useSelect)((e=>e("stackable/global-block-styles").getBlockStyles(t)),[A]),{inBlockStyleOptions:$,blockStyleLabel:V,blockStyleAttributes:U}=(0,o.useMemo)((()=>{const e=j.findIndex((e=>e.slug===P));return-1===e?{inBlockStyleOptions:!1,blockStyleLabel:(0,u.__)("Default",d.i18n)}:{inBlockStyleOptions:!0,blockStyleLabel:j[e].name,blockStyleAttributes:j[e].nonCssAttributes}}),[P]),Z=(0,k.applyFilters)("stackable.global-settings.global-block-styles.save-update-modal",o.Fragment);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:F},(0,o.createElement)("div",{className:"ugb-block-styles-controls__wrapper "+(A&&$?"has-modified":"")},(0,o.createElement)(m.Z,{variant:"tertiary",className:"ugb-block-styles-controls__block-style-button",size:"small",icon:"edit",iconSize:12,onMouseDown:()=>_((e=>!e)),ref:x},`${(0,u.__)("Block Style",d.i18n)}:`," ",(0,o.createElement)("wbr",null)," ",V,A&&$?(0,o.createElement)("span",{className:"stk-panel-modified-indicator stk--visible"}):""),(0,o.createElement)(v.J,{allowReset:!0,value:A&&$,default:!1,onChange:()=>{O(P&&$?{...l,...U,blockStyle:P}:l)}}))),f&&(0,o.createElement)(s.Popover,{className:"ugb-button-icon-control__popover ugb-block-styles-controls__popover",anchor:x.current,onEscape:()=>_(!1),onClose:()=>_(!1),focusOnMount:!1,placement:"left-start",resize:!1,offset:8},(0,o.createElement)(s.PanelBody,null,(0,o.createElement)("h2",{className:"components-panel__body-title"},(0,u.__)("Block Styles",d.i18n)),(0,o.createElement)("p",{className:"components-panel__body-description"},(0,u.__)("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.",d.i18n)," ",(0,o.createElement)("a",{href:"https://docs.wpstackable.com/article/737-how-to-use-block-styles",target:"_docs",rel:"noreferrer"},(0,u.__)("Learn more",d.i18n))),(0,o.createElement)("ul",{className:"ugb-block-styles-controls__list",ref:T},(0,o.createElement)("li",null,(0,o.createElement)(m.Z,{onClick:()=>(S(0),void(P&&(O({...l,modifiedBlockStyle:!1}),(0,w.dispatch)("stackable/hover-state").updateHoverState("normal")))),className:P?"":"ugb-block-styles-controls__selected",tabIndex:0},!P&&(0,o.createElement)("span",{className:"ugb-block-styles-controls__selected-icon"}," ",(0,o.createElement)(s.Dashicon,{icon:"saved"})," "),(0,o.createElement)("span",{className:"ugb-block-styles-controls__label"},(0,u.__)("Default",d.i18n)))),j.map(((e,t)=>(0,o.createElement)("li",{key:t},(0,o.createElement)(m.Z,{onClick:()=>((e,t)=>{S(t),d.isPro?(0,k.doAction)("stackable.global-settings.global-block-styles.select-block-style",e,P,j,l,O):h((e=>!e))})(e.slug,t+1),className:P===e.slug?"ugb-block-styles-controls__selected":"",tabIndex:0},P===e.slug&&(0,o.createElement)("span",{className:"ugb-block-styles-controls__selected-icon"}," ",(0,o.createElement)(s.Dashicon,{icon:"saved"})," "),(0,o.createElement)("span",{className:"ugb-block-styles-controls__label"},e.name," ",P===e.slug&&$&&A?`(${(0,u.__)("Modified",d.i18n)})`:""),!d.isPro&&(0,o.createElement)(s.Dashicon,{icon:"lock",size:12})))))),r&&(0,o.createElement)(kl,{blockName:t,blockStyle:P,inOptions:$,isModified:A,setOpenSaveModal:b,onAddBlockStyle:()=>{d.isPro?(0,k.doAction)("stackable.global-settings.global-block-styles.add-block-style",b):h((e=>!e))}}),(0,o.createElement)("div",{className:H},(0,o.createElement)(Kt.Z,{type:"global-block-styles"})))),(0,o.createElement)(Z,{openSaveModal:g,setOpenSaveModal:b,blockName:t,blockStyleLabel:V,defaultBlockAttributes:l}))},kl=e=>{const{onAddBlockStyle:t,...n}=e,a=(0,k.applyFilters)("stackable.global-settings.global-block-styles.action-buttons",o.Fragment);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.Flex,{style:{marginTop:"24px",justifyContent:"flex-end"}},(0,o.createElement)(a,n),(0,o.createElement)(s.FlexItem,{style:e.blockStyle&&e.inOptions?{}:{marginLeft:"auto"}},(0,o.createElement)(m.Z,{variant:"primary",onClick:()=>t(),size:"small"},(0,u.__)("Save New Block Style",d.i18n),!d.isPro&&(0,o.createElement)("span",{className:"stk-pulsating-circle",role:"presentation"})))))},{Slot:_l,Fill:yl}=(0,s.createSlotFill)("StackableLayoutPanel"),wl=e=>{let{children:t}=e;return(0,o.createElement)(c.InspectorControls,null,(0,o.createElement)(yl,null,t))},El=e=>{let{children:t}=e;const{name:n}=(0,c.useBlockEditContext)(),[a]=zt(`tabCache-${n}`,"layout");return"layout"!==a?null:(0,o.createElement)(c.InspectorControls,null,t)},Sl=e=>{let{children:t}=e;const{name:n}=(0,c.useBlockEditContext)(),[a]=zt(`tabCache-${n}`,"layout");return"style"!==a?null:(0,o.createElement)(c.InspectorControls,null,t)},Cl=e=>{let{children:t}=e;const{name:n}=(0,c.useBlockEditContext)(),[a]=zt(`tabCache-${n}`,"layout");return"advanced"!==a?null:(0,o.createElement)(c.InspectorControls,null,t)},xl=e=>{const{name:t,clientId:n}=(0,c.useBlockEditContext)(),a=(0,ln.getBlockSupport)(t,"stkDefaultTab")||"style",[l,r]=zt(`tabCache-${t}`,e.tabs.includes(a)?a:"style");return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.InspectorControls,null,(d.isPro||d.showProNotice)&&(0,o.createElement)(fl,{blockName:t,clientId:n}),(0,o.createElement)(Bn,{tabs:e.tabs,initialTab:l,onClick:r})),(0,o.createElement)(El,null,e.hasLayoutPanel&&(0,o.createElement)(Yt,{title:(0,u.__)("Layout",d.i18n),id:"layout",initialOpen:!0},(0,o.createElement)(_l,null))))};xl.defaultProps={tabs:["layout","style","advanced"],hasLayoutPanel:!0},(0,o.memo)(xl);const Tl=e=>{let t=e.videoUrl,n=e.videoThumbnailUrl;const a=(0,E.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,M.urlIsVideo)(t)?(0,o.createElement)("video",{className:"stk-video-background",autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:t,poster:n}):null};Tl.defaultProps={videoUrl:"",videoUrlTablet:"",videoUrlMobile:"",videoThumbnailUrl:"",videoThumbnailUrlTablet:"",videoThumbnailUrlMobile:""},(Tl.Content=e=>{const t=i()(["stk-video-background"],{"stk--hide-tablet":e.videoUrlTablet,"stk--hide-mobile":e.videoUrlTablet||e.videoUrlMobile}),n=i()(["stk-video-background"],{"stk--hide-desktop":!0,"stk--hide-mobile":e.videoUrlMobile}),a=i()(["stk-video-background"],{"stk--hide-desktop":!0,"stk--hide-tablet":!0});return(0,o.createElement)(o.Fragment,null,(0,M.urlIsVideo)(e.videoUrl)&&(0,o.createElement)("video",{className:t,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:e.videoUrl,poster:e.videoThumbnailUrl}),(0,M.urlIsVideo)(e.videoUrlTablet)&&(0,o.createElement)("video",{className:n,autoPlay:!0,muted:!0,loop:!0,playsinline:!0,src:e.videoUrlTablet,poster:e.videoThumbnailUrlTablet}),(0,M.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 Nl=Tl,Ml=e=>{const{blockTag:t,className:n,hasBackground:l,backgroundUrl:r,backgroundUrlTablet:s,backgroundUrlMobile:c,backgroundThumbnailUrl:u,backgroundThumbnailUrlTablet:d,backgroundThumbnailUrlMobile:p,backgroundColorType:m,...h}=e,g=i()([n],{"stk--has-background-overlay":l&&("gradient"===m||r||s||c)});return(0,o.createElement)(t,(0,a.Z)({className:g},h),e.children,(0,o.createElement)(Nl,{videoUrl:r,videoUrlTablet:s,videoUrlMobile:c,videoThumbnailUrl:u,videoThumbnailUrlTablet:d,videoThumbnailUrlMobile:p}))};Ml.defaultProps={blockTag:"div",className:"",hasBackground:!0,backgroundUrl:"",backgroundUrlTablet:"",backgroundUrlMobile:"",backgroundColorType:""},(Ml.Content=e=>{const{blockTag:t,className:n,hasBackground:l,backgroundUrl:r,backgroundUrlTablet:s,backgroundUrlMobile:c,backgroundThumbnailUrl:u,backgroundThumbnailUrlTablet:d,backgroundThumbnailUrlMobile:p,backgroundColorType:m,...h}=e,g=i()([n],{"stk--has-background-overlay":l&&("gradient"===m||r||s||c)});return(0,o.createElement)(t,(0,a.Z)({className:g},h),e.children,(0,o.createElement)(Nl.Content,{videoUrl:r,videoUrlTablet:s,videoUrlMobile:c,videoThumbnailUrl:u,videoThumbnailUrlTablet:d,videoThumbnailUrlMobile:p}))}).defaultProps={...Ml.defaultProps};const Il=Ml,Bl=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"}))},Ol={"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:Bl},inverted:{shape:Bl}},"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"}))}}}},Pl=e=>{const{design:t,inverted:n,layer:a}=e,{shape:l}=Ol[t||"wave-1"][n?"inverted":"default"];return(0,o.createElement)(l,{className:`stk-separator__layer-${a}`,preserveAspectRatio:"none","aria-hidden":!0})};Pl.defaultProps={className:"",design:"wave-1",inverted:!1,layer:1},Pl.Content=e=>(0,o.createElement)(Pl,e);const Al=Pl,Dl=(0,g.jsx)(h.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(h.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"})}),Ll=e=>{const{icon:t=Dl,label:n=(0,u.__)("Choose variation"),instructions:a=(0,u.__)("Select a variation to start with.",d.i18n),variations:l,onSelect:r,allowSkip:c}=e,p=i()("block-editor-block-variation-picker",{"has-many-variations":l.length>4}),m=l.some((e=>e.isPremium));return(0,o.createElement)("div",{className:"stk-variation-picker"},(0,o.createElement)(s.Placeholder,{icon:t,label:n,instructions:a,className:p},(0,o.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,u.__)("Block variations")},l.map((e=>(0,o.createElement)("li",{key:e.name},(0,o.createElement)(s.Button,{variant:"tertiary",icon:e.pickerIcon||e.icon,iconSize:48,onClick:()=>r(e),className:i()("block-editor-block-variation-picker__variation",{"is-premium":e.isPremium}),label:e.description||e.pickerTitle||e.title,disabled:!d.isPro&&e.isPremium}),(0,o.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.pickerTitle||e.title))))),!d.isPro&&d.showProNotice&&m&&(0,o.createElement)("p",{className:"block-editor-block-variation-picker__notice"},(0,u.__)("Upgrade to Premium to get more design variations.",d.i18n)," ",(0,o.createElement)("a",{href:"https://wpstackable.com/premium/?utm_source=variation-picker&utm_campaign=learnmore&utm_medium=gutenberg",target:"_premium"},(0,u.__)("Learn more",d.i18n))),c&&(0,o.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,o.createElement)(s.Button,{variant:"link",onClick:()=>r()},(0,u.__)("Skip")))))},Rl=(0,o.memo)((e=>{const{align:t,className:n="",blockStyle:a,blockHoverClass:l="",children:r,hoverRef:s,...u}=e,d=i()(l,{[`align${t}`]:t}),p=(0,c.useBlockProps)({...u||{},ref:s,className:d,"data-align":t,...a?{"data-block-style":a}:{}});return p.className=p.className.replace(n,"").trim(),(0,o.createElement)("div",p,r)}));Rl.displayName="BlockWrapper";const Fl=Rl;var Hl=n(6691),zl=n(2473),jl=n.n(zl),$l=Math.sqrt(50),Vl=Math.sqrt(10),Ul=Math.sqrt(2);function Zl(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 ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach((function(t){Yl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gl(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 Jl(e,t,n){return t&&Gl(e.prototype,t),n&&Gl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kl(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&&Ql(e,t)}function Xl(e){return Xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xl(e)}function Ql(e,t){return Ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ql(e,t)}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(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 er(e)}function nr(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=Xl(e);if(t){var a=Xl(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return tr(this,n)}}function or(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)||lr(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 ar(e){return function(e){if(Array.isArray(e))return rr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lr(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 lr(e,t){if(e){if("string"==typeof e)return rr(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)?rr(e,t):void 0}}function rr(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 ir="react-compound-slider:";function sr(){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 cr(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(ar(e.slice(0,a)),[{key:r,val:n}],ar(e.slice(a+1))).sort(sr(o))}return e}function ur(e,t){if(!e)return[0,0];var n=e.getBoundingClientRect();return[t?n.top:n.left,t?n.bottom:n.right]}function dr(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 pr(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function mr(){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,jl()(!o,"".concat(ir," Invalid value encountered. Changing ").concat(e," to ").concat(t,"."))),t})).map((function(e,t){return{key:"$$-".concat(t),val:e}})).sort(sr(t));return{handles:l,changes:a}}function hr(e,t){return t}function gr(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 br(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 u=r?n:-n,d=0;d<t.length;d++){var p=t[d],m=t[d+1];if(m&&p.val===m.val){if(d===l){var h=m.val+u;if(a(h)===h){var g=br(t,cr(t,m.key,m.val+u,o),n,o,a);return g===t?e:g}return e}var b=p.val+u;if(a(b)===b){var v=br(t,cr(t,p.key,p.val+u,o),n,o,a);return v===t?e:v}return e}}return t}function vr(){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 fr=function(){return{value:0,percent:0}},kr=function(e){Kl(n,e);var t=nr(n);function n(){var e;Wl(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 ql(ql({},t),{},{onMouseDown:vr(t&&t.onMouseDown,o),onTouchStart:vr(t&&t.onTouchStart,a)})},e}return Jl(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||fr,activeHandleID:a,getRailProps:e});return r&&l.Children.only(r)}}]),n}(l.Component),_r=function(e){Kl(n,e);var t=nr(n);function n(){var e;Wl(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 ql(ql({},n),{},{onKeyDown:vr(n&&n.onKeyDown,(function(e){return a&&a(e,t)})),onMouseDown:vr(n&&n.onMouseDown,e.autofocus,(function(e){return l&&l(e,t)})),onTouchStart:vr(n&&n.onTouchStart,(function(e){return r&&r(e,t)}))})},e}return Jl(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),yr=function(){function e(){Wl(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 Jl(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>=$l?10:l>=Vl?5:l>=Ul?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(l>=$l?10:l>=Vl?5:l>=Ul?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}(),wr=function(){return{value:0,percent:0}},Er=function(e){Kl(n,e);var t=nr(n);function n(){return Wl(this,n),t.apply(this,arguments)}return Jl(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.values,o=e.scale,a=void 0===o?new yr:o,r=e.count,i=void 0===r?10:r,s=e.getEventData,c=void 0===s?wr:s,u=e.activeHandleID,d=t({getEventData:c,activeHandleID:void 0===u?"":u,ticks:(n||a.getTicks(i)).map((function(e){return{id:"$$-".concat(e),value:e,percent:a.getValue(e)}}))});return d&&l.Children.only(d)}}]),n}(l.Component),Sr=function(){return{value:0,percent:0}},Cr=function(e){Kl(n,e);var t=nr(n);function n(){var e;Wl(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 ql(ql({},t||{}),{},{onMouseDown:vr(t&&t.onMouseDown,o),onTouchStart:vr(t&&t.onTouchStart,a)})},e}return Jl(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 yr:s,u=t.handles,d=void 0===u?[]:u,p=t.getEventData,m=void 0===p?Sr:p,h=t.activeHandleID,g=void 0===h?"":h,b=c.getDomain(),v=[],f=0;f<d.length+1;f++){var k=d[f-1],_=d[f];0===f&&!0===a?k={id:"$",value:b[0],percent:0}:f===d.length&&!0===i&&(_={id:"$",value:b[1],percent:100}),k&&_&&v.push({id:"".concat(k.id,"-").concat(_.id),source:k,target:_})}var y=n({getEventData:m,activeHandleID:g,tracks:v,getTrackProps:e});return y&&l.Children.only(y)}}]),n}(l.Component);function xr(e,t,n){return Math.min(Math.max(e,t),n)}var Tr=Jl((function e(){var t=this;Wl(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=or(t.domain,2),o=n[0],a=n[1],l=or(t.range,2),r=l[0],i=l[1],s=t.step,c=(xr(e,o,a)-o)/(a-o);return xr(s*Math.round(c*(i-r)/s)+r,r<i?r:i,i>r?i:r)}})),Nr="undefined"!=typeof window&&"undefined"!=typeof document,Mr=function(){},Ir=function(e,t,n,o){var a=o?e-t:e+t;return o?Math.max(n[0],a):Math.min(n[1],a)},Br=function(e,t,n,o){var a=o?e+t:e-t;return o?Math.min(n[1],a):Math.max(n[0],a)},Or=[0,100],Pr=function(e){Kl(n,e);var t=nr(n);function n(){var e;Wl(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:Or,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=er(e),r=l.state.handles,i=l.props,s=i.step,c=void 0===s?.1:s,u=i.reversed,d=void 0!==u&&u,p=i.vertical,m=void 0!==p&&p,h=i.domain,g=void 0===h?[0,100]:h,b=t.key||"".concat(t.keyCode);if(o.concat(a).includes(b)){if(m){var v=[a,o];o=v[0],a=v[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,_=k;o.includes(b)?_=Ir(k,c,g,d):a.includes(b)&&(_=Br(k,c,g,d));var y=r.map((function(e){return e.key===n?{key:e.key,val:_}:e}));e.submitUpdate(y,!0)}}},e.onMouseDown=function(t,n){e.onStart(t,n,!1)},e.onTouchStart=function(t,n){dr(t)||e.onStart(t,n,!0)},e.getEventData=function(t,n){var o,a=er(e),l=a.state,r=l.pixelToStep,i=l.valueToPerc,s=a.props.vertical;return r.setDomain(ur(e.slider.current,s)),n&&t instanceof TouchEvent?o=r.getValue(pr(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=er(e),o=n.state,a=o.handles,l=o.pixelToStep,r=o.activeHandleID,i=void 0===r?"":r,s=n.props,c=s.vertical,u=s.reversed,d=void 0!==u&&u;l.setDomain(ur(e.slider.current,c));var p=cr(a,i,l.getValue(c?t.clientY:t.pageX),d);e.submitUpdate(p)},e.onTouchMove=function(t){var n=er(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&&!dr(t)){l.setDomain(ur(e.slider.current,s));var u=cr(a,r,l.getValue(pr(s,t)),c);e.submitUpdate(u)}},e.onMouseUp=function(){var t=er(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?Mr:i,c=r.onSlideEnd,u=void 0===c?Mr:c;s(a.map((function(e){return e.val}))),u(a.map((function(e){return e.val})),{activeHandleID:l}),e.setState({activeHandleID:""}),Nr&&(document.removeEventListener("mousemove",e.onMouseMove),document.removeEventListener("mouseup",e.onMouseUp))},e.onTouchEnd=function(){var t=er(e),n=t.state,o=n.handles,a=n.activeHandleID,l=t.props,r=l.onChange,i=void 0===r?Mr:r,s=l.onSlideEnd,c=void 0===s?Mr:s;i(o.map((function(e){return e.val}))),c(o.map((function(e){return e.val})),{activeHandleID:a}),e.setState({activeHandleID:""}),Nr&&(document.removeEventListener("touchmove",e.onTouchMove),document.removeEventListener("touchend",e.onTouchEnd))},e}return Jl(n,[{key:"componentDidMount",value:function(){var e=this.state.pixelToStep,t=this.props.vertical;e.setDomain(ur(this.slider.current,t))}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"removeListeners",value:function(){Nr&&(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?Mr: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,u=void 0!==c&&c,d=this.slider;r.setDomain(ur(d.current,s)),n=t?r.getValue(pr(s,e)):r.getValue(s?e.clientY:e.pageX);for(var p="",m=1/0,h=0;h<l.length;h++){var g=l[h],b=g.key,v=g.val,f=Math.abs(v-n);f<m&&(p=b,m=f)}var k=cr(l,p,n,u);this.setState({activeHandleID:p},(function(){o.submitUpdate(k,!0),t?o.addTouchEvents():o.addMouseEvents()}))}},{key:"addMouseEvents",value:function(){Nr&&(document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp))}},{key:"addTouchEvents",value:function(){Nr&&(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?Mr:i,c=n.onChange,u=void 0===c?Mr:c,d=n.reversed,p=void 0!==d&&d,m=this.state.valueToStep.getValue;this.setState((function(n){var o=n.handles,l=[];if("function"==typeof a)l=a(o,e,r,p,m),jl()(Array.isArray(l),"Custom mode function did not return an array.");else switch(a){case 1:l=hr(0,e);break;case 2:l=gr(o,e);break;case 3:l=br(o,e,r,p,m);break;default:l=e,jl()(!1,"".concat(ir," Invalid mode value."))}return s(l.map((function(e){return e.val}))),t&&u(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,u=r.rootProps,d=void 0===u?{}:u,p=r.component,m=void 0===p?"div":p,h=r.disabled,g=void 0!==h&&h,b=r.flatten,v=void 0!==b&&b,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===_r.name||n===kr.name||n===Er.name||n===Cr.name}(t)?l.cloneElement(t,{scale:o,handles:f,activeHandleID:a,getEventData:e.getEventData,emitKeyboard:g?Mr:e.onKeyDown,emitMouse:g?Mr:e.onMouseDown,emitTouch:g?Mr:e.onTouchStart}):t}));return v?l.createElement(l.Fragment,null,l.createElement(m,ql(ql({},d),{},{style:c,className:i,ref:this.slider})),k):l.createElement(l.Fragment,null,l.createElement(m,ql(ql({},d),{},{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?Or:i,c=e.reversed,u=void 0!==c&&c,d=e.onUpdate,p=void 0===d?Mr:d,m=e.onChange,h=void 0===m?Mr:m,g=e.warnOnChanges,b=void 0!==g&&g,v=t.valueToPerc,f=t.valueToStep,k=t.pixelToStep,_={};if(v&&f&&k||(v=new yr,f=new Tr,k=new Tr,_.valueToPerc=v,_.valueToStep=f,_.pixelToStep=k),t.domain===Or||null===t.step||null===t.domain||null===t.reversed||l!==t.step||s[0]!==t.domain[0]||s[1]!==t.domain[1]||u!==t.reversed){var y=or(s,2),w=y[0],E=y[1];f.setStep(l).setRange([w,E]).setDomain([w,E]),!0===u?(v.setDomain([w,E]).setRange([100,0]),k.setStep(l).setRange([E,w])):(v.setDomain([w,E]).setRange([0,100]),k.setStep(l).setRange([w,E])),jl()(E>w,"".concat(ir," Max must be greater than min (even if reversed). Max is ").concat(E,". Min is ").concat(w,"."));var S=mr(r||t.values,u,f,b),C=S.handles;(S.changes||void 0===r||r===t.values)&&(p(C.map((function(e){return e.val}))),h(C.map((function(e){return e.val})))),_.step=l,_.values=r,_.domain=s===Or?ar(s):s,_.handles=C,_.reversed=u}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=mr(r,u,f,b),T=x.handles;x.changes&&(p(T.map((function(e){return e.val}))),h(T.map((function(e){return e.val})))),_.values=r,_.handles=T}return Object.keys(_).length?_:null}}]),n}(l.PureComponent);const Ar={position:"absolute",width:"100%",height:42,transform:"translate(0%, -50%)",borderRadius:7,cursor:"pointer"},Dr={position:"absolute",width:"100%",height:4,backgroundColor:"rgb(221, 221, 221)",transform:"translate(0%, -50%)",borderRadius:7,pointerEvents:"none"},Lr={backgroundColor:"var(--wp-admin-theme-color)",height:12,width:12},Rr=e=>{let{getRailProps:t}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",(0,a.Z)({style:Ar},t())),(0,o.createElement)("div",{style:Dr}))},Fr=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}%`,...Lr}},s))},Hr=10,zr=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]<Hr){const n=Hr-e[t];e[t]=Hr,e[t-1]-=n}for(let t=0;t<e.length-1;t++)if(e[t]<Hr){const n=Hr-e[t];e[t]=Hr,e[t+1]-=n}if("right"===t)for(let t=e.length-1;t>=1;t--)if(e[t]<Hr){const n=Hr-e[t];e[t]=Hr,e[t-1]-=n}return e},jr={position:"relative",width:"100%"},$r=[0,100],Vr=e=>{let t=0;return[...e,100].map((e=>{const n=e-t;return t+=n,n}))},Ur=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}),[])},Zr=(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)(Pr,{className:"stk-column-widths-control__columns-slider",rootStyle:jr,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,p.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=Vr(e),a=zr(o,n);return Ur(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,p.isEqual)(a.current,t)||(a.current=t,e.onChange(Vr(t))))},domain:$r,values:Ur(e.value)},(0,o.createElement)(kr,null,(e=>{let{getRailProps:t}=e;return(0,o.createElement)(Rr,{getRailProps:t})})),(0,o.createElement)(_r,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)(Fr,{key:e.id,handle:e,domain:$r,handleProps:r})})))})))}),p.isEqual);Zr.defaultProps={onChange:()=>{},value:[]};const qr=Zr,Wr=e=>e.every((e=>!e)),Gr=e=>{var t;const n={gridTemplateColumns:(a=e.value,a.map((e=>(e/100*a.length).toFixed(2)+"fr")).join(" ")),gridAutoFlow:Wr(e.value)?"column":void 0,justifyContent:Wr(e.value)?"space-around":void 0};var a;const l=i()("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=zr(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(zr(t))}}))))};Gr.defaultProps={onChange:()=>{},value:[]};const Jr=Gr,Yr={"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]},Kr={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"}]},Xr=e=>e.every((e=>!e)),Qr=e=>{const t=Xr(e.values)&&Yr[`${e.columns}-1`]?Yr[`${e.columns}-1`]:(e.values||[]).every((e=>""!==e))?e.values:Array(e.columns).fill(100/e.columns);return(0,o.createElement)(b.Xp,{label:e.label,help:e.help,responsive:e.responsive,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue,className:i()(["ugb-columns-width-control",e.className]),helpTooltip:{description:(0,u.__)("Adjust the individual widths of each column",d.i18n)}},Kr[e.columns]&&(0,o.createElement)(Dn,{options:Kr[e.columns],onChange:t=>{e.onChange(Yr[t])}}),e.columns<=7&&(0,o.createElement)(qr,{value:t,onChange:e.onChange}),(0,o.createElement)(Jr,{value:Xr(e.values)?e.forceBlank?e.values:Yr[`${e.columns}-1`]:e.values,onChange:e.onChange}))};Qr.defaultProps={columns:2,values:["",""],onChange:()=>{},help:"",label:(0,u.__)("Column Widths",d.i18n),className:"",responsive:!1,attribute:"",hasTabletValue:void 0,hasMobileValue:void 0};const ei=Qr,ti=e=>(0,o.createElement)(b.Xp,{label:e.label,help:e.help,className:i()(["ugb-columns-width-multi-control",e.className]),responsive:e.responsive,hasTabletValue:e.hasTabletValue,hasMobileValue:e.hasMobileValue},(0,p.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)(K,{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)(v.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"},"%")))));ti.defaultProps={columns:2,values:["",""],onChange:()=>{},help:"",label:(0,u.__)("Column Widths",d.i18n),className:"",responsive:!1,placeholders:null,hasTabletValue:void 0,hasMobileValue:void 0};const ni=ti;var oi=n(5980);n(7408);const ai=(0,o.memo)((0,o.forwardRef)(((e,t)=>{const{attrNameTemplate:n,...l}=e,{fontFamily:r}=(0,E.useBlockAttributesContext)((e=>({fontFamily:e[(0,M.getAttrNameFunction)(n)("fontFamily")]})));return(0,E.useFontLoader)(r),(0,o.createElement)(c.RichText,(0,a.Z)({ref:t},l))})));ai.defaultProps={attrNameTemplate:"%s"},ai.Content=e=>(0,o.createElement)(c.RichText.Content,e);const li={placement:"left-start",offset:236,shift:!0},ri={placement:"left-start",offset:36,shift:!0},ii={lift:[32,13],drop:[32,13],cancel:[27],up:[38,37],down:[40,39]},si=(0,o.forwardRef)(((e,t)=>{const{nonSortableItems:n=[],editableName:a=!0,items:l,dropdownOnAdd:r=!1,onChangeItem:c,onDeleteItem:u,handleAddItem:d,onSortEnd:p,AddItemPopover:h=null,enableAddItem:g=!0}=e,[b,v]=(0,o.useState)(!1),f=i()("ugb-global-settings-color-picker","components-circular-option-picker","editor-color-palette-control__color-palette",e.className);return(0,o.createElement)(s.BaseControl,{className:f,label:e.label,__nextHasNoMarginBottom:!0},g&&(0,o.createElement)(s.Dropdown,{popoverProps:li,renderToggle:e=>{let{onToggle:t,isOpen:n}=e;return(0,o.createElement)(m.Z,{className:"ugb-global-settings-color-picker__add-button",onClick:r?t:d,icon:"plus-alt2","aria-expanded":n})},renderContent:e=>{let{onClose:t}=e;return(0,o.createElement)(h,{onClose:t,onChange:d})}}),(0,o.createElement)("div",{ref:t,className:i()("ugb-global-settings-color-picker__color-indicators",{"is-sorting":b})},(0,o.createElement)(ui,{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:ii},null==n?void 0:n.map(((t,n)=>(0,o.createElement)(pi,{key:n,item:t,onDelete:()=>u(t),onChange:e=>c(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)(ci,{key:n,index:n,item:t,onDelete:()=>u(t),onChange:e=>c(e),ItemPreview:e.ItemPreview,ItemPicker:e.ItemPicker,updateOnBlur:e.updateOnBlur,editableName:a,className:e.buttonClassName,onItemClick:e.onItemClick}))))))}));si.defaultProps={className:"",label:"",onReset:()=>{}};const ci=Pt((e=>(0,o.createElement)(pi,e))),ui=It((e=>{let{children:t}=e;return(0,o.createElement)("div",null,t)})),di=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;De(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return Pe(Fe(Fe(t=He(this,(e=ze(n)).call.apply(e,[this].concat(a))))),"wrappedInstance",(0,l.createRef)()),t}return $e(n,t),Re(n,[{key:"componentDidMount",value:function(){(0,o.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Ue()(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),Pe(t,"displayName",lt("sortableHandle",e)),n}((()=>(0,o.createElement)(s.Dashicon,{icon:"menu",size:"16",tabIndex:"0"}))),pi=e=>{const{item:t,onDelete:n,onChange:a,ItemPreview:l=null,ItemPicker:r=null,updateOnBlur:c=!1,sortable:u=!0,editableName:d=!0,showReset:p=!0,showDelete:h=!0}=e,[g,b]=(0,o.useState)(!1),[f,k]=(0,o.useState)(t.name);(0,o.useEffect)((()=>{t.name!==f&&k(t.name)}),[t.name]);const _=i()("block-editor-panel-color-gradient-settings__dropdown",e.className);return(0,o.createElement)(s.__experimentalHStack,{justify:"space-between",className:"stk-global-settings-color-picker__color-indicator-wrapper"},(0,o.createElement)(s.Dropdown,{popoverProps:ri,focusOnMount:!g&&"firstElement",renderToggle:n=>{let{onToggle:i,isOpen:p}=n;return(0,o.createElement)(m.Z,{className:_,onClick:()=>{e.onItemClick?e.onItemClick(t):r&&!g&&i()},isPressed:p},(0,o.createElement)(s.__experimentalHStack,{justify:"flex-start"},(0,o.createElement)(l,{item:t}),d?(0,o.createElement)("input",{className:"components-input-control__input",value:g?f:t.name,onChange:e=>{k(e.target.value),c||a({...t,name:e.target.value})},onFocus:()=>b(!0),onBlur:e=>{var n;c&&a({...t,name:f}),setTimeout((()=>{b(!1)}),100),!r||!p||null!==(n=e.relatedTarget)&&void 0!==n&&n.closest(".components-popover")||i()},onClick:()=>{r&&!p&&i()},onKeyDown:e=>{13===e.keyCode&&e.target.blur()}}):(0,o.createElement)("p",{className:"stk-sortable-picker__item-name"},t.name),u&&(0,o.createElement)(di,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)(m.Z,{"aria-label":"Delete",className:"stk-global-settings-color-picker__delete-button",icon:"trash",isSmall:!0,isTertiary:!0,onClick:n}),!h&&(0,o.createElement)(v.J,{showReset:p,onChange:n}))}},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:()=>m});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),u=n.n(c);const d={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=u()(["ugb-design-control-pro-note",e.className]),p=e.description||(null===(t=d[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=d[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=d[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 m=p},2046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});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),u=n(1205),d=n(8085);const p={desktop:"Desktop",tablet:"Tablet",mobile:"Mobile"},m=[{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)}],h=["normal","hover","parent-hover","collapsed"].filter((e=>"normal"!==e)).map((e=>(0,d.upperFirst)((0,d.camelCase)(e)))),g=e=>{const t=(0,r.useDeviceType)(),n=m.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`]];h.forEach((e=>{o.push(t[`${n}Tablet${e}`])}));const a=[t[`${n}Mobile`]];return h.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,u.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};g.defaultProps={screens:["desktop"],attribute:"",suffix:"",hasTabletValue:void 0,hasMobileValue:void 0};const b=(0,o.memo)(g)},7044:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n(2610),a=n(4247),l=n.n(a),r=n(2286),i=n(9755),s=n(1205),c=n(78),u=n(3796);const d=(0,o.memo)((e=>{var t;const{version:n,versionAdded:a,versionDeprecated:d,styles:m,breakTablet:h,breakMobile:g}=e,b=(0,u.useDeviceType)(),v=(0,u.useBlockAttributesContext)((e=>e.uniqueId)),f=(0,s.getUniqueBlockClass)(v),{clientId:k}=(0,c.useBlockEditContext)();let _=f;if(!f){const e=(0,s.createUniqueClass)(k);_=(0,s.getUniqueBlockClass)(e)}const y=(null===(t=_)||void 0===t?void 0:t.replace("stk-",""))||"",w=(0,s.useQueryLoopInstanceId)(y),E=w&&!_.match(/-[\d]$/g)?_+`-${w}`:_,S=(0,o.useMemo)((()=>n?l()(n,a)>=0&&(!d||-1===l()(n,d)):!!d),[n,a,d]),C=(0,u.useRafMemo)((()=>{if(!S)return"";const e=(0,r.Yf)(m,b);return(0,r.KL)(p(e),E,h,g).join("")}),[S,m,b,E,h,g]),x=(0,i.wt)(C);return S&&C&&E&&x?(0,o.createElement)("style",null,x):null}));d.defaultProps={styles:null,blockUniqueClassName:"",breakTablet:1024,breakMobile:768,doImportant:!0,deviceType:"",version:"",versionAdded:"",versionDeprecated:!1},d.Content=e=>{const{version:t,versionAdded:n,versionDeprecated:a,styles:i,blockUniqueClassName:c,breakTablet:u,breakMobile:d}=e;if(!e.blockUniqueClassName)return null;if(!(t?l()(t,n)>=0&&(!a||-1===l()(t,a)):a))return null;const m=(0,r.KL)(p(i),c,u,d);return m?(0,o.createElement)(o.Fragment,null,(0,s.minifyCSS)(m.join(""))):null},d.Content.defaultProps={styles:null,blockUniqueClassName:"",breakTablet:1024,breakMobile:768,doImportant:!0,version:"",versionAdded:"",versionDeprecated:!1};const p=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]:p(e[o],t)})),{})}},8324:(e,t,n)=>{"use strict";n.d(t,{fetchDesign:()=>d,getDesigns:()=>p,filterDesigns:()=>m});var o=n(6179),a=n.n(o),l=n(3882);const r="v4";let i={},s={},c={};const 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]},d=async e=>(s[e]||await u(),s[e]||{}),p=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}},5185:(e,t,n)=>{"use strict";n.d(t,{QueryLoopContext:()=>y.v});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[u,d]=(0,a.useState)(!1),p=(0,a.useRef)(),m=e=>{d(e),c(e)},h=()=>{const e=p.current;e&&r&&r(e)};return(0,a.useEffect)((()=>()=>h()),[]),{showMovers:u,debouncedShowMovers:e=>{h(),u||m(!0)},debouncedHideMovers:e=>{h(),p.current=i((()=>{(()=>{const e=(null==t?void 0:t.current)&&t.current.matches(":hover");return!n&&!e})()&&m(!1)}),o)}}}var u=n(3749);(0,u.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:u,debouncedShowMovers:d,debouncedHideMovers:p}=c({ref:t,debounceTimeout:n,isFocused:r,onChange:o}),m=(0,a.useRef)(!1),h=()=>(null==t?void 0:t.current)&&t.current.contains(document.activeElement);return(0,a.useEffect)((()=>{const e=t.current,n=()=>{h()&&(i(!0),d())},o=()=>{h()||(i(!1),p())};return e&&!m.current&&(e.addEventListener("focus",n,!0),e.addEventListener("blur",o,!0),m.current=!0),()=>{e&&(e.removeEventListener("focus",n),e.removeEventListener("blur",o))}}),[t,m,i,d,p]),{showMovers:u,gestures:{onMouseMove:d,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"),n(910);var d=n(3796);(0,u.createHigherOrderComponent)((e=>t=>(0,a.createElement)(d.BlockAttributesProvider,t,(0,a.createElement)(e,t))),"withBlockAttributeContext"),n(8667);var p=n(3566),m=n(3284);const h={};(0,u.createHigherOrderComponent)((e=>t=>{const{wrapperProps:n=h}=t,l=v(t),[r,i]=(0,d.useBlockHoverState)();return(0,a.createElement)(p.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 g=!0,b=null;const v=e=>{const{clientId:t,isSelected:n}=e,{rootBlockClientId:o}=(0,m.useSelect)((e=>{const{getBlockRootClientId:n}=e("core/block-editor");return{rootBlockClientId:n(t)}}),[t]);n&&(b=o);const l=o===t;g&&setTimeout((()=>{g=!1}),1e3);const r=!l||b===t||g,[i,s]=(0,a.useState)(r);return(0,a.useEffect)((()=>{if(!i){const e=setTimeout((()=>{s(!0)}),300);return()=>clearTimeout(e)}}),[i]),i},{clearTimeout:f,setTimeout:k}=window;const _={};(0,u.createHigherOrderComponent)((e=>t=>{const{wrapperProps:n=_}=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&&f&&f(r.current),l(!0)}),[]),s=(0,a.useCallback)((()=>{r.current&&f&&f(r.current),r.current=k((()=>{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&&f&&f(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,d.useBlockHoverState)(),u=v(t);return(0,a.createElement)(p.BlockWrapper,(0,o.Z)({align:t.attributes.align,className:t.attributes.className,blockStyle:t.attributes.blockStyle,blockHoverClass:c,hoverRef:l},u?i:{},n),u&&(0,a.createElement)(e,(0,o.Z)({},t,{isHovered:r,blockState:s,blockHoverClass:c})))}),"withBlockWrapperIsHovered");var y=n(6071)},6071:(e,t,n)=>{"use strict";n.d(t,{v:()=>l});var o=n(2610),a=n(3749);const l=(0,o.createContext)(null);(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,{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||{},u=`.editor-styles-wrapper.editor-styles-wrapper .stk-${t} ${n.replace(/%s/g,t)}`.trim(),{getEditorDom:d}=(0,l.useSelect)("stackable/editor-dom"),p=(0,r.useDeviceType)(),[h,g]=(0,a.useState)(0),b=(0,a.useMemo)((()=>{var e;const t=u.split(",")[0],n=null===(e=d())||void 0===e?void 0:e.querySelector(t);return n||setTimeout((()=>{g&&g(h+1)}),50),n?window.getComputedStyle(n):{}}),[u,h])||{};if("all"!==c&&!c.includes(p.toLowerCase()))return null;const v=m(o,u,i,s,b);return(0,a.createElement)("style",null,v)};s.defaultProps={uniqueId:"",highlightStyles:{}};const c=s,u="var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba))",d="rgba(220, 158, 93, 0.5)",p="rgba(220, 158, 93, 0.25)",m=(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: ${d};\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: ${d};\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: ${d};\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:d};\n\t\t\t\tborder-right-color: ${parseInt(a.marginRight,10)<0?p:d};\n\t\t\t\tborder-bottom-color: ${parseInt(a.marginBottom,10)<0?p:d};\n\t\t\t\tborder-left-color: ${parseInt(a.marginLeft,10)<0?p:d};\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: ${d};\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 ${u};\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 ${u};\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 ${u};\n\t\t\t}`}};var h=n(3749),g=n(4184),b=n.n(g);const v=(0,a.createContext)(null),f=()=>(0,a.useContext)(v);(0,h.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)(v.Provider,{value:i},l&&(0,a.createElement)(c,(0,o.Z)({uniqueId:n},l||{})),(0,a.createElement)(e,(0,o.Z)({className:b()(t.className,{"stk-has-visual-guide":!!l})},t)))}),"withVisualGuideContext")},3796:(e,t,n)=>{"use strict";n.d(t,{BlockAttributesProvider:()=>E,getBlockStyle:()=>T,useAttributeEditHandlers:()=>B,useAttributeName:()=>D,useBlockAttributesContext:()=>_,useBlockColorSchemes:()=>W.k,useBlockContextContext:()=>w,useBlockHoverState:()=>A,useBlockLayoutDefaults:()=>q.V,useBlockSetAttributesContext:()=>y,useDeviceType:()=>i,useFontLoader:()=>I,useInternalValue:()=>L,useLinking:()=>F,useOnScreenOnce:()=>H,usePresetControls:()=>Q,useRafMemo:()=>Z,useRafState:()=>U,useVariationPicker:()=>$,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=()=>{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}}));var s=n(4063),c=n.n(s);const u=Symbol(),d=Symbol();function p(e){const t=(0,o.createContext)({[u]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});var n;return t[d]=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={[u]:{v:l,n:r,l:e,u:t}}}return(0,o.useLayoutEffect)((()=>{l.current=t,r.current+=1,c.current[u].l.forEach((e=>{e({n:r.current,v:t})}))}),[t]),(0,o.createElement)(n,{value:c.current},a)}),delete t.Consumer,t}const m=(e,t)=>(e=>!Array.isArray(e)&&"object"==typeof e)(e)?c()(e,t):Object.is(e,t);function h(e,t){const n=(0,o.useContext)(e)[u],{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 m(e[1],i)?e:[a,i];try{if("v"in n){if(m(e[0],n.v))return e;const o=t(n.v);return m(e[1],o)?e:[n.v,o]}}catch(e){}return[...e]}),[a,i]);return m(s[1],i)||c(),(0,o.useLayoutEffect)((()=>(r.add(c),()=>{r.delete(c)})),[r]),s[1]}const g=p({}),b=(0,o.createContext)((()=>{})),v=p({}),f=e=>e,k={},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return h(g,(t=>e(t)))},y=()=>(0,o.useContext)(b),w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return h(v,(t=>e(t)))},E=e=>(0,o.createElement)(g.Provider,{value:e.attributes},(0,o.createElement)(b.Provider,{value:e.setAttributes},(0,o.createElement)(v.Provider,{value:e.context||k},e.children)));var S=n(3420),C=n.n(S),x=n(78);const T=(e,t)=>{if(t)for(const n of new(C())(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")};var N=n(3882),M=n(1205);const I=e=>{const{loadingThemeFont:t,themeFonts:n}=(0,r.select)("stackable/theme-fonts").getThemeFonts();(0,o.useEffect)((()=>{n.includes(e)||((0,M.loadGoogleFont)(e),(0,N.doAction)("stackable.font-loader.load",e))}),[t,e])},B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"%s";const t=y(),n=_(),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,M.getAttributeName)((0,M.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,M.getAttrNameFunction)(e);return n[(0,M.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,M.getAttrNameFunction)(e);return t({[(0,M.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}},O={selectedBlock:null,hoverState:"normal",hasParentHoverState:!1,selectedParentHoverBlock:null,selectedParentHoverChildren:[],selectedHoverChildren:[],hasCollapsedState:!1,selectedCollapsedBlock:null,selectedCollapsedChildren:[]},P={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),u=(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:u,collapsedChildrenClientIds:Array.from((null==c?void 0:c.querySelectorAll("[data-block]"))||[]).map((e=>e.getAttribute("data-block")))||[],hasCollapsedState:!!u}},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]:O,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{...O};case"UPDATE_HOVER_STATE":return{...e,hoverState:t.value}}return e},actions:P,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 A=function(){let{forceUpdateHoverState:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{clientId:t}=(0,x.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:u,getSelectedCollapsedBlock:d,getSelectedCollapsedBlockChildren:p}=o("stackable/hover-state"),m=c(),h=r(),g=u(),b=d(),v=t===l||n.includes(t),f=t===b;let k="",_="normal";if(v)"hover"!==a&&"parent-hover"!==a||(k="stk--is-hovered"),_=a,m||"parent-hover"!==a||(_="hover");else if(t===h)"hover"!==a&&"parent-hover"!==a||(k="stk--is-hovered",_="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",_="parent-hover"):(c||f)&&(_="collapsed")}return e&&(_=a),{currentHoverState:_,blockHoverClass:k,hasParentHoverState:m,hasCollapsedState:g,isCollapsedBlock:f}}),[t,n]);return[o,a,l,i,s]},D=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=i(),[a]=A();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,M.getAttributeName)(e,l,r)},L=e=>{const[t,n]=(0,o.useState)(e),[a,l]=(0,o.useState)(e);return c()(e,a)||(l(e),n(e)),[t,n]},R=()=>JSON.parse(window.localStorage.getItem("stackable-linking"))||[],F=()=>{const e=_((e=>e.uniqueId)),[t,n]=(0,o.useState)(R());return(0,o.useEffect)((()=>{const e=()=>{n(R())};return window.addEventListener("stackable-linked-storage",e),()=>window.removeEventListener("stackable-linked-storage",e)}),[]),[(0,o.useMemo)((()=>t.includes(e)),[t,e]),t=>{const n=R(),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"))}]},H=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};n(1368),n(6179);var z=n(3566),j=n(378);const $=(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)(z.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,N.applyFilters)("stackable.variation-picker.variation-selected",t,n.name),i=s(n.name,n.attributes),c=(0,N.applyFilters)("stackable.variation-picker.variation-selected",i,n.name);let u={};if(c&&(u={...c.attributes},Object.keys(u).forEach((e=>u[e]=void 0))),u={...u,...o.attributes||{},uniqueId:(0,M.createUniqueClass)(e)},(0,r.dispatch)("core/block-editor").updateBlockAttributes(e,u),o.innerBlocks){const t=(0,j.createBlocksFromInnerBlocksTemplate)(o.innerBlocks);if((0,M.recursivelyAddUniqueIdToInnerBlocks)(t),n.innerBlocks.length){const e=V(t),o=V(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,M.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,j.cloneBlock)(t);a.attributes={...a.attributes,...(0,l.pick)(o.attributes,M.CONTENT_ATTRIBUTES)},t.parent.innerBlocks.push(a),e[n].push(t)}}else if("stackable/text"===n){const r=e[n][a-1],i=(0,j.cloneBlock)(r);if(i.attributes={...i.attributes,...(0,l.pick)(o.attributes,M.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})},V=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]})),V(e[n].innerBlocks,t)}return t},U=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]},Z=(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};var q=n(2490),W=n(3652),G=n(910);const J=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 Y=n(8003);const K={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"}},X={name:(0,Y.__)("None",G.i18n),size:"0px",slug:"none"},Q=e=>{const[t,n,o]=(0,x.useSettings)(K[e].settings.join("."),K[e].defaultSizes,K[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:K[e].settings.reduce(((e,t)=>null==e?void 0:e[t]),J.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=K[e].prefix;let r=n?null!==(t=a[e])&&void 0!==t?t:[]:c();return r=[...o?[X]:[],...r],r.filter((e=>!(null!=e&&e.isDiscarded))).map((e=>({...e,value:`var(--stk--preset--${l}--${e.slug}, ${e.size})`})))}}};(0,o.createContext)(null)},3652:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});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)))),u=()=>{const{getScheme:e,getColorGroups:t,allColorSchemes:n,colorSchemesCollection:u,getSortedColorSchemes:d,COLOR_SCHEME_OPTIONS:p,baseColorScheme:m,backgroundModeColorScheme:h,containerModeColorScheme:g}=(0,l.useSelect)((e=>{const{colorSchemes:t,hideColorSchemeColors:n,baseColorScheme:l,backgroundModeColorScheme:u,containerModeColorScheme:d}=e("stackable/global-color-schemes").getSettings(),p=(0,r.applyFilters)("stackable.global-settings.global-color-schemes.custom-color-schemes",t,!0),m=[{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)})))],h=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}),{}),g=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=m.find((t=>t.value===e)))||void 0===t?void 0:t.value)||(o?a:"scheme-unavailable")},b=(e,t)=>"--stk-"+t+"-"+(0,a.kebabCase)(e);return{getScheme:g,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:b(t,n.key)}):o.push({color:null==l?void 0:l.desktop,name:(0,s.getPropertyLabel)(t),slug:b(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:h,getSortedColorSchemes:()=>{const e=g(l),t=g(u,{mode:"background"}),n=g(d),a=[];if(e in h){const t=h[e];t.schemeType=(0,i.__)("Base Color Scheme",o.i18n),a.push(t)}if(t in h){const e=h[t];e.schemeType=(0,i.__)("Background Color Scheme",o.i18n),a.push(e)}if(e!==n&&n in h){const e=h[n];e.schemeType=(0,i.__)("Container Color Scheme",o.i18n),a.push(e)}else e in h&&(a[0].schemeType=(0,i.__)("Base/Container Color Scheme",o.i18n));const r=Object.values(h).filter((o=>o.key!==e&&o.key!==t&&o.key!==n));return a.concat(r)},COLOR_SCHEME_OPTIONS:m,baseColorScheme:g(l),backgroundModeColorScheme:g(u,{mode:"background"}),containerModeColorScheme:g(d)}}),[]);return{getScheme:e,getColorGroups:t,allColorSchemes:n,colorSchemesCollection:u,getSortedColorSchemes:d,COLOR_SCHEME_OPTIONS:p,baseColorScheme:m,backgroundModeColorScheme:h,containerModeColorScheme:g}}},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.d(t,{GroupContainerIcon:()=>c,UngroupContainerIcon:()=>u});var o=n(2610);n(7294);var a=n(7462);const 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 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"}))},r=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 i=n(1205);function s(e){return(0,o.cloneElement)(e,{fill:"url(#stackable-gradient)",className:`stk-stackable-icon-gradient ${e.props.className||""}`})}function c(){return s((0,o.createElement)(l,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}function u(){return s((0,o.createElement)(r,{width:"20",height:"20",className:"components-menu-items__item-icon"}))}(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,i.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,{rj:()=>d,WC:()=>l,CR:()=>r,UX:()=>i,u1:()=>s,h3:()=>c,wS:()=>u}),n(4247),n(4863);var o=n(8085),a=n(8003);const 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]:"";return(0,o.camelCase)((0,a.sprintf)(e,(0,o.upperFirst)(t),(0,o.upperFirst)(n)))},r=e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return l(e,t,n)},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";const l="desktop"===t.toLowerCase()?"":(0,o.upperFirst)(t),r="normal"===n?"":"hover"===n?"Hover":"collapsed"===n?"Collapsed":"ParentHover";return null!=e&&e.includes("%s")?(0,a.sprintf)(e,`${l}${r}`):`${e}${l}${r}`},s=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 i(r(e)(t),n,o)},c=e=>"object"==typeof e?Object.values(e).every((e=>c(e))):void 0===e||!e&&""===e,u=e=>e.every((e=>c(e))),d=["imageUrl","imageId","imageAlt","text","linkHasLink","linkUrl","linkNewTab","linkRel","linkHasTitle","linkTitle","blockLinkHasLink","blockLinkUrl","blockLinkNewTab","blockLinkRel","blockLinkHasTitle","blockLinkTitle"]},1539:(e,t,n)=>{"use strict";n.d(t,{ZM:()=>i,PC:()=>s,zx:()=>c,dd:()=>u,kd:()=>d,YK:()=>p,YZ:()=>m}),n(2610);var o=n(7741),a=(n(1205),n(6556),n(8085)),l=(n(910),n(3882)),r=(n(378),n(3284));n(78),n(8003);const i={"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"]},s=Object.freeze({ENABLED:1,HIDDEN:2,DISABLED:3}),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{getBlockName:n,getSelectedBlockClientId:i,getBlockAttributes:s,hasMultiSelection:u,getMultiSelectedBlockClientIds:d}=(0,r.select)("core/block-editor"),{updateBlockAttributes:p}=(0,r.dispatch)("core/block-editor"),{getBlockType:m}=(0,r.select)("core/blocks");if(!t&&u())return void d().forEach((t=>{c(e,t)}));const h=t||i();if(!h)return;const g=s(h),b=n(h).replace(/^\w+\//g,""),v=m(n(h)).attributes,f=Object.keys(v).reduce(((e,t)=>({...e,[t]:v[t]?v[t].default:""})),{}),k=(0,l.applyFilters)(`stackable.${b}.design.filtered-block-attributes`,{...f,...e},g),_=(0,l.applyFilters)(`stackable.${b}.design.no-text-attributes`,k,g);(0,o.TL)(_),p(h,(0,a.omit)(_,["uniqueClass"]))},u=(e,t)=>{const{getBlockType:n}=(0,r.select)("core/blocks"),o=n(t).attributes;return Object.keys(e).reduce(((t,n)=>{const l=o[n]?o[n].default:"";return(0,a.isEqual)(e[n],l)||(t[n]=e[n]),t}),{})},d=(e,t)=>{const n={},o=(0,a.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},p=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},m={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,u$:()=>u,jh:()=>m,BN:()=>h,TL:()=>g});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),u=e=>{const t=t=>{if(t&&c(e)){if(p(e,t))return;const n=d(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)},d=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}"]`)},m=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)},h=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},g=e=>{Object.keys(e).filter((e=>e.match(/fontfamily/i))).forEach((t=>{const n=e[t];n&&u(n)}))}},1205:(e,t,n)=>{"use strict";n.d(t,{CONTENT_ATTRIBUTES:()=>l.rj,META_SEPARATORS:()=>w.YZ,MODERN_FONT_STACKS:()=>a.r9,SYSTEM_FONT_STACKS:()=>a.E,__getValue:()=>m.CA,appendImportant:()=>m.db,appendImportantAll:()=>m.ge,applyBlockDesign:()=>w.zx,clampInheritedStyle:()=>m.ES,cleanSerializedBlock:()=>w.YK,colorOpacityToHexAplha:()=>P.BT,convertToPxIfUnsupported:()=>K,createElementFromHTMLString:()=>S,createRoot:()=>A.s,createUniqueClass:()=>W,currentUserHasCapability:()=>O,extractNumbersAndUnits:()=>J,extractRgba:()=>P.lM,faFetchIcon:()=>N,faGetIcon:()=>T,fetchSettings:()=>o.w,getAttrName:()=>l.WC,getAttrNameFunction:()=>l.CR,getAttributeName:()=>l.UX,getAttributeNameFunc:()=>l.u1,getBlockStyleAttributesFilter:()=>L,getCSSVarName:()=>Y,getCleanAttributes:()=>w.dd,getDefaultFontSize:()=>p,getFilteredAttributes:()=>w.kd,getFontFamily:()=>a.BN,getFontFamilyLabel:()=>a.jh,getPropertyLabel:()=>m.tf,getShapeSVG:()=>k,getUniqueBlockClass:()=>z,hexToRgba:()=>P.a7,isBlockStyleAttributesModified:()=>R,isDarkColor:()=>m.jn,isElementDescendant:()=>q,isEmptyAttribute:()=>l.h3,isEmptyAttributes:()=>l.wS,loadGoogleFont:()=>a.u$,minifyCSS:()=>$,prependCSSClass:()=>U,recursivelyAddUniqueIdToInnerBlocks:()=>Z,rgbaToHexAlpha:()=>P.UE,semverCompare:()=>G,svgRenderToString:()=>v,urlIsVideo:()=>j,useLocalStorage:()=>E,useQueryLoopInstanceId:()=>m.wB});var o=n(6916),a=n(7741),l=n(6963),r=n(9741),i=n(2527),s=n(3882);const c=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 u={};const d=()=>{u={...c(["h1","h2","h3","h4","h5","h6","p",".stk-subtitle",".stk-button__inner-text"])}};(0,s.addFilter)("stackable.global-settings.typography.editor-styles","stackable/default-font-sizes",((e,t,n,o)=>(e[`.ugb-default-font-size .wp-block ${t}`]=(0,r.Z)("%s","desktop",o,{important:!0}),u={},e)));const p=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(u).length&&!t||d(),u[e]||u.p||21};(0,i.Z)((()=>{d()})),n(6750);var m=n(9719),h=(n(8085),n(4863),n(8003)),g=n(2610),b=n(7462);n(7294);const v=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=(0,g.renderToString)(e).replace(/viewbox/,"viewBox").replace(/preserveaspectratio/,"preserveAspectRatio");return t?n.replace(/#/g,"%23"):n},f={circle:function(e){return(0,g.createElement)("svg",(0,b.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},e),(0,g.createElement)("circle",{cx:50,cy:50,r:50}))},square:function(e){return(0,g.createElement)("svg",(0,b.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,g.createElement)("path",{className:"square_svg__st0",d:"M0 0h200v200H0z"}))},blob1:function(e){return(0,g.createElement)("svg",(0,b.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 200 200"},e),(0,g.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"}))}},k=e=>{const t=(0,s.applyFilters)("stackable.image.shape.svgs",f);return t[e]?t[e]:null};var _=n(3284);window._stackableCachedImageData={};var y=n(910);(0,h.__)("Facebook",y.i18n),(0,h.__)("Twitter",y.i18n),(0,h.__)("Instagram",y.i18n),(0,h.__)("Pinterest",y.i18n),(0,h.__)("LinkedIn",y.i18n),(0,h.__)("YouTube",y.i18n),(0,h.__)("Email",y.i18n);var w=n(1539);const E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const[n,o]=(0,g.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]},S=e=>{const t=document.createElement("div");return t.innerHTML=e,t.firstElementChild},C=(y.iconsFaKit?y.iconsFaProKitVersion:y.iconsFaFreeKitVersion||"6.5.1")||"5.15.4",x={fas:"solid",far:"regular",fal:"light",fat:"thin",fad:"duotone",fab:"brands",fass:"sharp-solid",fasr:"sharp-regular",fasl:"sharp-light"},T=(e,t)=>window.StkFontAwesome&&window.StkFontAwesome[`${e}-${t}`]?window.StkFontAwesome[`${e}-${t}`]:"",N=(e,t)=>{const n=y.iconsFaKit?y.iconsFaKit:"5.15.4"===y.iconsFaFreeKitVersion?"d2a8ea0b89":"8f4ebede24",o=(e=>x[e]||"solid")(e);let a;return a=y.iconsFaKit?`https://ka-p.fontawesome.com/releases/v${C}/svgs/${o}/${t}.svg?token=${n}`:`https://ka-f.fontawesome.com/releases/v${C}/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 M=n(6179),I=n.n(M),B=n(1368);const O=async e=>{const t=(0,_.select)("core").getCurrentUser().id;return t&&(await I()({path:(0,B.addQueryArgs)(`/wp/v2/users/${t}`,{context:"edit"})})).capabilities[e]||!1};var P=n(375),A=n(6753);const D={"stackable/column":["columnWidth","columnAdjacentCount"],"stackable/table-of-contents":["text","headings"],"stackable/icon-list-item":["parentUniqueId"]},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return["uniqueId","anchor",...w.ZM[e]||[],...D[e]||[],...t]},R=(e,t,n)=>{var o,a;const l=(null===(o=(0,_.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,w.dd)(n,e),i=L(e,["generatedCss","blockStyle","modifiedBlockStyle"]);return new Set([...i,...Object.keys(l)]).forEach((e=>{r[e]&&delete r[e]})),Object.keys(r).length};n(3726);var F=n(378),H=n(4247);const z=e=>e?`stk-${e}`:"",j=e=>(null==e?void 0:e.endsWith("mp4"))||(null==e?void 0:e.endsWith("webm"))||(null==e?void 0:e.endsWith("ogg")),$=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},V={},U=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(V[l])return V[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 V[l]=r,r},Z=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,F.getBlockVariations)(e.name).length>0&&(e.attributes={...e.attributes,uniqueId:W(e.clientId)}),Z(e.innerBlocks)}))},q=function(e,t){let n=t.parentNode;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},W=e=>`${e.substring(0,7)}`,G=(e,t,n)=>(0,H.compare)(e,n,t),J=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"]]},Y=e=>{if("string"!=typeof e)return null;const t=null==e?void 0:e.match(/var\(\s*([^,)\s]+)/);return t?t[1]:null};function K(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,{CA:()=>f,db:()=>v,ge:()=>b,ES:()=>k,tf:()=>_,jn:()=>g,wB:()=>h});var o=n(6537),a=n.n(o),l=n(8085),r=n(4898),i=n(375),s=n(8003),c=n(3882),u=(n(6963),n(3796),n(5185)),d=(n(78),n(2610)),p=n(3284);const m={},h=e=>{const t=(0,d.useContext)(u.QueryLoopContext),n=(0,p.useSelect)((e=>{var t;return null===(t=e("core/editor"))||void 0===t?void 0:t.getCurrentPostId()})),[o,a]=(0,d.useState)(0);return(0,d.useEffect)((()=>{if(((e,t)=>(null==e?void 0:e.postId)&&t&&(null==e?void 0:e.postId)!==t)(t,n)&&e){const n=m[e]||[];n.includes(null==t?void 0:t.postId)||n.push(null==t?void 0:t.postId),m[e]=n,a(n.findIndex((e=>e===(null==t?void 0:t.postId)))+1)}}),[null==t?void 0:t.id,n,e]),o},g=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}},b=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Object.keys(e).reduce(((n,o)=>({...n,[o]:v(e[o],t)})),{})},v=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},f=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}},k=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}},_=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)),u=(0,a.CA)(n,c,""),{importantSize:d=!1,important:p=!0,inherit:m=!0,inheritMax:h=50,inheritMin:g}=s;let b={};const v=u("FontSize"),f=u("TabletFontSize"),k=u("MobileFontSize"),_=i(v)?"":u("FontSizeUnit")||"px",y=i(f)?"":u("TabletFontSizeUnit")||"px",w=i(k)?"":u("MobileFontSizeUnit")||"px";if("tablet"!==t&&"mobile"!==t)b={fontFamily:""!==u("FontFamily")?(0,o.getFontFamily)(u("FontFamily")):void 0,fontSize:""!==v?(0,o.appendImportant)(`${v}${_}`,d):void 0,fontWeight:""!==u("FontWeight")?u("FontWeight"):void 0,textTransform:""!==u("TextTransform")?u("TextTransform"):void 0,letterSpacing:""!==u("LetterSpacing")?`${u("LetterSpacing")}px`:void 0,lineHeight:""!==u("LineHeight")?`${u("LineHeight")}${u("LineHeightUnit")||"em"}`:void 0};else if("tablet"===t){if(b={lineHeight:""!==u("TabletLineHeight")?`${u("TabletLineHeight")}${u("TabletLineHeightUnit")||"em"}`:void 0,letterSpacing:""!==u("TabletLetterSpacing")?`${u("TabletLetterSpacing")}px`:void 0},m){const e=(0,a.ES)(v,{min:g,max:h});e&&(b.fontSize=`${e}${u("FontSizeUnit")||"px"}`)}f&&(b.fontSize=u("TabletFontSize",`%s${y}`))}else{if(b={lineHeight:""!==u("MobileLineHeight")?`${u("MobileLineHeight")}${u("MobileLineHeightUnit")||"em"}`:void 0,letterSpacing:""!==u("MobileLetterSpacing")?`${u("MobileLetterSpacing")}px`:void 0},m){const e=(0,a.ES)(v,{min:g,max:h});e&&(b.fontSize=`${e}${u("FontSizeUnit")||"px"}`);const t=(0,a.ES)(f,{min:g,max:h});t?b.fontSize=`${t}${u("TabletFontSizeUnit")||"px"}`:(e||f)&&(b.fontSize=void 0)}k&&(b.fontSize=u("MobileFontSize",`%s${w}`))}return p?(0,o.appendImportantAll)(b):b},c=s},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 u=l[l.length-1],d=r[r.length-1];if(u&&d){var p=u.split(".").map(n),m=d.split(".").map(n);for(i=0;i<Math.max(p.length,m.length);i++){if(void 0===p[i]||"string"==typeof m[i]&&"number"==typeof p[i])return-1;if(void 0===m[i]||"string"==typeof p[i]&&"number"==typeof m[i])return 1;if(p[i]>m[i])return 1;if(m[i]>p[i])return-1}}else if(u||d)return u?-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],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).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 u in r=Object(arguments[c]))n.call(r,u)&&(s[u]=r[u]);if(t){i=t(r);for(var d=0;d<i.length;d++)o.call(r,i[d])&&(s[i[d]]=r[i[d]])}}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=d(l),i=d(n(5697)),s=d(n(1444)),c=d(n(8497)),u=n(7581);function d(e){return e&&e.__esModule?e:{default:e}}var p=function(){return!0},m=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 h.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,d=t.multiSection,m=t.renderSectionTitle,h=t.id,g=t.getSectionSuggestions,b=t.theme,v=t.getSuggestionValue,f=t.alwaysRenderSuggestions,k=t.highlightFirstSuggestion,_=this.state,y=_.isFocused,w=_.isCollapsed,E=_.highlightedSectionIndex,S=_.highlightedSuggestionIndex,C=_.valueBeforeUpDown,x=f?p:this.props.shouldRenderSuggestions,T=s.value,N=s.onFocus,M=s.onKeyDown,I=this.willRenderSuggestions(this.props),B=f||y&&!w&&I,O=B?n:[],P=o({},s,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=x(T);e.setState({isFocused:!0,isCollapsed:!n}),N&&N(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(w)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===C?T:C: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(B&&!f&&e.closeSuggestions(),null!=c){var u=v(c);e.maybeCallOnChange(t,u,"enter"),e.onSuggestionSelected(t,{suggestion:c,suggestionValue:u,suggestionIndex:S,sectionIndex:E,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:B&&t.preventDefault();var d=B&&!f;null===C?d||(e.maybeCallOnChange(t,"","escape"),x("")?l({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,C,"escape"),d?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}M&&M(t)}}),A={query:this.getQuery()};return r.default.createElement(c.default,{multiSection:d,items:O,renderInputComponent:a,renderItemsContainer:this.renderSuggestionsContainer,renderItem:i,renderItemData:A,renderSectionTitle:m,getSectionItems:g,highlightedSectionIndex:E,highlightedItemIndex:S,inputProps:P,itemProps:this.itemProps,theme:(0,u.mapToAutowhateverTheme)(b),id:h,ref:this.storeAutowhateverRef})}}]),t}(l.Component);m.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},m.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:u.defaultTheme,id:"1"};var h=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=m},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)),u=p(n(1560)),d=p(n(7489));function p(e){return e&&e.__esModule?e:{default:e}}var m={},h=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,m=n.itemProps;return a.map((function(n,a){var h="react-autowhatever-"+o+"-",g=h+"section-"+a+"-",b=0===a;return r.default.createElement("div",t(g+"container","sectionContainer",b&&"sectionContainerFirst"),r.default.createElement(u.default,{section:n,renderSectionTitle:s,theme:t,sectionKeyPrefix:g}),r.default.createElement(d.default,{items:e.sectionsItems[a],itemProps:m,renderItem:l,renderItemData:i,sectionIndex:a,highlightedItemIndex:c===a?p:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:h,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(d.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,u=this.state.isInputFocused,d=a?this.renderSections():this.renderItems(),p=null!==d,m=this.getItemId(s,c),h="react-autowhatever-"+n,g=o({role:"combobox","aria-haspopup":"listbox","aria-owns":h,"aria-expanded":p},e("react-autowhatever-"+n+"-container","container",p&&"containerOpen"),this.props.containerProps),b=l(o({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":h,"aria-activedescendant":m},e("react-autowhatever-"+n+"-input","input",p&&"inputOpen",u&&"inputFocused"),this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=i({containerProps:o({id:h,role:"listbox"},e("react-autowhatever-"+n+"-items-container","itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:d});return r.default.createElement("div",g,b,v)}}]),t}(l.Component);h.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])},h.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:m,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:m,inputProps:m,itemProps:m,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=h},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 u(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 p=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=d(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})},d(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=u(l),i=u(n(5697)),s=u(n(6844)),c=u(n(3130));function u(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 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 m=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=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,u=t.highlightedItemIndex,d=t.getItemId,p=t.theme,m=t.keyPrefix,h=null===c?m:m+"section-"+c+"-",g="function"==typeof a;return r.default.createElement("ul",o({role:"listbox"},p(h+"items-list","itemsList")),n.map((function(t,n){var m=0===n,b=n===u,v=h+"item-"+n,f=g?a({sectionIndex:c,itemIndex:n}):a,k=o({id:d(c,n),"aria-selected":b},p(v,"item",m&&"itemFirst",b&&"itemHighlighted"),f);return b&&(k.ref=e.storeHighlightedItemReference),r.default.createElement(s.default,o({},k,{sectionIndex:c,isHighlighted:b,itemIndex:n,item:t,renderItem:l,renderItemData:i}))})))}}]),t}(l.Component);m.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},m.defaultProps={sectionIndex:null},t.default=m},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 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 d=function(e){function t(){return c(this,t),u(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);d.propTypes={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},t.default=d},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],u=e[c],d=t[c];if(u!==d){if(!r[c]||null===u||null===d||"object"!==(void 0===u?"undefined":n(u))||"object"!==(void 0===d?"undefined":n(d)))return!0;var p=Object.keys(u),m=Object.keys(d);if(p.length!==m.length)return!0;for(var h=0,g=p.length;h<g;h++){var b=p[h];if(u[b]!==d[b])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,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;a=d("react.element"),l=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),r=d("react.provider"),i=d("react.context"),s=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function m(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 h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function f(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var k=f.prototype=new v;k.constructor=f,o(k,b.prototype),k.isPureReactComponent=!0;var _={current:null},y=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function E(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)y.call(t,o)&&!w.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),u=0;u<s;u++)c[u]=arguments[u+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:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var C=/\/+/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(C,"$&/")+"/"),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(C,"$&/")+"/")+e)),t.push(r)),1;if(s=0,o=""===o?".":o+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=o+x(i=e[c],c);s+=T(i,t,n,u,r)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(i=e.next()).done;)s+=T(i=i.value,t,n,u=o+x(i,c++),r);else if("object"===i)throw t=""+e,Error(m(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function N(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 I={current:null};function B(){var e=I.current;if(null===e)throw Error(m(321));return e}var O={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:N,forEach:function(e,t,n){N(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return N(e,(function(){t++})),t},toArray:function(e){return N(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(m(143));return e}},t.Component=b,t.PureComponent=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,n){if(null==e)throw Error(m(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=_.current),void 0!==t.key&&(r=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)y.call(t,u)&&!w.hasOwnProperty(u)&&(l[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)l.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+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=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:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:u,_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 B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().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,u=/<\/?([^\s\/>]+)/;function d(e,t,n){return m(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 m(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,u=t.in_quote_char,d="";for(let t=0,p=e.length;t<p;t++){let p=e[t];if(a===r)"<"===p?(a=i,l+=p):d+=p;else if(a===i)switch(p){case"<":if(u)break;c++;break;case">":if(u)break;if(c){c--;break}u="",a=r,l+=">",n.has(h(l))?d+=l:d+=o,l="";break;case'"':case"'":u=p===u?"":u||p,l+=p;break;case"-":"<!-"===l&&(a=s),l+=p;break;case" ":case"\n":if("<"===l){a=r,d+="< ",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=u,d}function h(e){let t=u.exec(e);return t?t[1].toLowerCase():null}d.init_streaming_mode=function(e,t){let n=p(e=e||[],t=t||"");return function(e){return m(e||"",n)}},void 0===(o=function(){return d}.call(t,n,t,e))||(e.exports=o)}()},2473:e=>{"use strict";e.exports=function(){}},9737:(e,t,n)=>{var o={"./accordion/block.json":2103,"./blockquote/block.json":8317,"./button-group/block.json":2405,"./button/block.json":4379,"./call-to-action/block.json":1578,"./card/block.json":8598,"./carousel/block.json":8744,"./column/block.json":8325,"./columns/block.json":7317,"./count-up/block.json":9730,"./countdown/block.json":8501,"./design-library/block.json":6914,"./divider/block.json":3695,"./expand/block.json":6705,"./feature-grid/block.json":3705,"./feature/block.json":4859,"./heading/block.json":1642,"./hero/block.json":7125,"./horizontal-scroller/block.json":1433,"./icon-box/block.json":285,"./icon-button/block.json":1897,"./icon-label/block.json":5983,"./icon-list-item/block.json":2646,"./icon-list/block.json":2413,"./icon/block.json":8293,"./image-box/block.json":782,"./image/block.json":4639,"./map/block.json":6324,"./notification/block.json":1705,"./number-box/block.json":9222,"./posts/block.json":7327,"./price/block.json":6386,"./pricing-box/block.json":3345,"./progress-bar/block.json":9890,"./progress-circle/block.json":4259,"./separator/block.json":7388,"./spacer/block.json":9206,"./subtitle/block.json":8381,"./tab-content/block.json":2283,"./tab-labels/block.json":7990,"./table-of-contents/block.json":3590,"./tabs/block.json":3573,"./team-member/block.json":8511,"./testimonial/block.json":8227,"./text/block.json":7921,"./timeline/block.json":6836,"./video-popup/block.json":7562};function a(e){var t=l(e);return n(t)}function l(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}a.keys=function(){return Object.keys(o)},a.resolve=l,e.exports=a,a.id=9737},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=(u=e.slice(1)).length;r=1,i<=4?(a=[parseInt(u[0]+u[0],16),parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16)],4===i&&(r=parseInt(u[3]+u[3],16)/255)):(a=[parseInt(u[0]+u[1],16),parseInt(u[2]+u[3],16),parseInt(u[4]+u[5],16)],8===i&&(r=parseInt(u[6]+u[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,u=s.replace(/a$/,"");n=u,i="cmyk"===u?4:"gray"===u?1:3,a=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===i?parseFloat(e)/100:"rgb"===u?255*parseFloat(e)/100:parseFloat(e);if("h"===u[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==l[e])return l[e]}return parseFloat(e)})),s===u&&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}},2103:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/accordion","title":"Accordion","description":"A title that your visitors can toggle to view more text. Use as FAQs or multiple ones for an Accordion.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Toggle","Faq"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/accordion-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon-label","stackable/heading","stackable/icon"],"stk-substitution-blocks":["stackable/text"]}')},8317:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/blockquote","title":"Blockquote","description":"Display a quote in style","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/blockquote-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon"],"stk-substitution-blocks":["stackable/text"]}')},2405:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/button-group","title":"Button Group","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Link"],"stk-variants":[{"name":"icon-button","title":"Icon Button","description":"Add a customizable button.","category":"stackable","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},{"name":"button","title":"Button","description":"Add a customizable button.","category":"stackable","stk-type":"essential","stk-demo":"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"},{"name":"social-buttons","title":"Social Buttons","description":"Add social buttons.","category":"stackable","stk-type":"special","stk-demo":"https://wpstackable.com/social-buttons-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/button-group|icon-button"]}],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},4379:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/button","title":"Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"parent":["stackable/button-group"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-demo":"https://wpstackable.com/button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-block-dependency":"stackable/button-group|button"}')},1578:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/call-to-action","title":"Call to Action","description":"A small section you can use to call the attention of your visitors. Great for calling attention to your products or deals.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["CTA"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/call-to-action-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/heading","stackable/text","stackable/button-group","stackable/button"]}')},8598:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/card","title":"Card","description":"Describe a single subject in a small card. You can use this to describe your product, service or a person.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/card-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/heading","stackable/text","stackable/subtitle","stackable/button-group","stackable/button"]}')},8744:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/carousel","title":"Carousel","description":"A carousel slider.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Slider"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/carousel-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8325:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/column","title":"Inner Column","description":"A single column with advanced layout options.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/columnWrapDesktop"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Section rows"],"parent":["stackable/columns","stackable/carousel","stackable/feature","stackable/feature-grid","stackable/horizontal-scroller","stackable/tab-content"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-available-states":["enabled","hidden"]}')},7317:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/columns","title":"Columns","description":"Multiple columns with advanced layout options.","category":"stackable","usesContext":["postId","postType","queryId"],"keywords":["Section rows","Container"],"providesContext":{"stackable/innerBlockOrientation":"columnJustify","stackable/columnWrapDesktop":"columnWrapDesktop"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/columns-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-available-states":["enabled","hidden"]}')},9730:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/count-up","title":"Count Up","description":"Showcase your stats. Display how many customers you have or the number of downloads of your app.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Number"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/count-up-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8501:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/countdown","title":"Countdown","description":"Display a countdown timer on your website.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Timer"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/countdown-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6914:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/design-library","title":"Design Library","description":"Choose a layout or block from the Stackable Design Library.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Template"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/designs/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-available-states":["enabled","hidden"]}')},3695:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/divider","title":"Divider","description":"Add a pause between your content.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Horizontal Rule","HR"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}')},6705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/expand","title":"Expand / Show More","description":"Display a small snippet of text. Your readers can toggle it to show more information.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Hide","Less"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/expand-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/text","stackable/button-group|button"]}')},3705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/feature-grid","title":"Feature Grid","description":"Display multiple product features or services. You can use Feature Grids one after another.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/columnWrapDesktop":"columnWrapDesktop"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/feature-grid-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/image","stackable/heading","stackable/text","stackable/button-group","stackable/button"]}')},4859:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/feature","title":"Feature","description":"Display a product feature or a service in a large area.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/columnWrapDesktop":"columnWrapDesktop"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/feature-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/image"],"stk-substitution-blocks":["stackable/heading","stackable/text","stackable/button-group","stackable/button"]}')},1642:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/heading","title":"Heading","description":"Introduce new sections of your content in style.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Title"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-heading-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7125:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/hero","title":"Hero","description":"A large hero area. Typically used at the very top of a page.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Header"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/hero-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/heading","stackable/text","stackable/button-group","stackable/button"]}')},1433:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/horizontal-scroller","title":"Horizontal Scroller","description":"A slider that scrolls horizontally.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Slider","Carousel"],"providesContext":{"stackable/columnFit":"columnFit"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/horizontal-scroller-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},285:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/icon-box","title":"Icon Box","description":"A small text area with an icon that can be used to summarize features or services","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/icon-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon-label","stackable/icon","stackable/heading"]}')},1897:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/icon-button","title":"Icon Button","description":"Add a customizable button.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"parent":["stackable/button-group"],"keywords":["Link"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-demo":"https://wpstackable.com/icon-button-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-block-dependency":"stackable/button-group|icon-button"}')},5983:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/icon-label","title":"Icon Label","description":"An Icon and Heading paired together.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/icon-label-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon","stackable/heading"]}')},2646:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/icon-list-item","title":"Icon List Item","description":"A single list entry in the Icon List block","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/ordered","stackable/uniqueId"],"keywords":[],"parent":["stackable/icon-list"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden","stk-demo":"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},2413:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/icon-list","title":"Icon List","description":"An unordered list with icons. You can use this as a list of features or benefits.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Checklist","Bullets","Number list"],"providesContext":{"stackable/ordered":"ordered","stackable/uniqueId":"uniqueId"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-list-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8293:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/icon","title":"Icon","description":"Pick an icon or upload your own SVG icon to decorate your content.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["SVG"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/icon-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},782:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/image-box","title":"Image Box","description":"Display an image that shows more information when hovered on. Can be used as a fancy link to other pages.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/image-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/image","stackable/subtitle","stackable/icon"],"stk-substitution-blocks":["stackable/heading","stackable/text"]}')},4639:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/image","title":"Image","description":"An image with advanced controls to make a visual statement.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-image-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6324:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/map","title":"Map","description":"Embedded Google Map with advanced controls.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","keywords":["location","address"],"stk-type":"special","stk-demo":"https://wpstackable.com/map-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},1705:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/notification","title":"Notification","description":"Show a notice to your readers. People can dismiss the notice to permanently hide it.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Notice","Alert"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/notification-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon"],"stk-substitution-blocks":["stackable/heading","stackable/text","stackable/button-group","stackable/button"]}')},9222:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/number-box","title":"Number Box","description":"Display steps or methods that your users will do in your service.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Steps"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/number-box-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7327:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/posts","title":"Posts","description":"Your latest blog posts. Use this to showcase a few of your posts in your landing pages.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Blog Posts","Lastest Posts","Query Loop"],"providesContext":{"type":"type","orderBy":"orderBy","order":"order","taxonomyType":"taxonomyType","taxonomy":"taxonomy","taxonomyFilterType":"taxonomyFilterType","postOffset":"postOffset","postExclude":"postExclude","postInclude":"postInclude","numberOfItems":"numberOfItems","stkQueryId":"stkQueryId"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/blog-posts-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6386:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/price","title":"Price","description":"Show a price of a product or service with currency and a suffix styled with different weights","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Currency","Pricing","Number"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/price-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/text"]}')},3345:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/pricing-box","title":"Pricing Box","description":"Display the different pricing tiers of your business.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"keywords":["Currency","Price","Pricing Table"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/pricing-table-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/price","stackable/text","stackable/icon-list"],"stk-substitution-blocks":["stackable/heading","stackable/subtitle","stackable/button-group","stackable/button"]}')},9890:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/progress-bar","title":"Progress Bar","description":"Visualize a progress value or percentage in a bar.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["percentage status"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/progress-bar-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},4259:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/progress-circle","title":"Progress Circle","description":"Visualize a progress value or percentage in a circle.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["percentage status"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/progress-circle-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7388:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/separator","title":"Separator","description":"A fancy separator to be placed between content.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Svg Divider"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/separator-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},9206:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/spacer","title":"Spacer","description":"Sometimes you just need some space.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special"}')},8381:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/subtitle","title":"Subtitle","description":"Subtitle text that you can add custom styling to from the global settings.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/subtitle-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},2283:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/tab-content","title":"Tab Content","description":"A wrapper for tab panels.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/tabPanelEffect","stackable/equalTabHeight"],"keywords":[],"parent":["stackable/tabs"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},7990:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/tab-labels","title":"Tab Labels","description":"Create interactive navigation within tabs.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation","stackable/initialTabOpen","stackable/tabOrientation"],"keywords":[],"parent":["stackable/tabs"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"hidden"}')},3590:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/table-of-contents","title":"Table of Contents","description":"Automatically generated table of contents based on Heading blocks.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["ToC","Index","Outline"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/table-of-contents-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},3573:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/tabs","title":"Tabs","description":"Organize and display content in multiple tabs.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["toggle"],"providesContext":{"stackable/initialTabOpen":"initialTabOpen","stackable/tabOrientation":"tabOrientation","stackable/tabPanelEffect":"tabPanelEffect","stackable/equalTabHeight":"equalTabHeight"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/tabs-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},8511:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/team-member","title":"Team Member","description":"Display members of your team or your office. Use multiple Team Member blocks if you have a large team.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/team-member-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-substitution-blocks":["stackable/image","stackable/heading","stackable/subtitle","stackable/text","stackable/button-group","stackable/button"]}')},8227:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/testimonial","title":"Testimonial","description":"Showcase what your users say about your product or service.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"providesContext":{"stackable/innerBlockOrientation":"innerBlockOrientation"},"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"section","stk-demo":"https://wpstackable.com/testimonial-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/image-box"],"stk-substitution-blocks":["stackable/image","stackable/heading","stackable/subtitle","stackable/text"]}')},7921:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/text","title":"Text","description":"Start with the building block of all page layouts.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["Paragraph"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"essential","stk-demo":"https://wpstackable.com/advanced-text-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},6836:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/timeline","title":"Timeline","description":"Show events in chronological order","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["history","milestone"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/timeline-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink"}')},7562:e=>{"use strict";e.exports=JSON.parse('{"apiVersion":3,"name":"stackable/video-popup","title":"Video Popup","description":"Display a large thumbnail that your users can click to play a video full-screen. Great for introductory or tutorial videos.","category":"stackable","usesContext":["postId","postType","queryId","stackable/innerBlockOrientation"],"keywords":["YouTube","Vimeo","Embed Mp4"],"textdomain":"stackable-ultimate-gutenberg-blocks","stk-type":"special","stk-demo":"https://wpstackable.com/video-popup-block/?utm_source=welcome&utm_medium=settings&utm_campaign=view_demo&utm_content=demolink","stk-required-blocks":["stackable/icon","stackable/image"]}')},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"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+a){i=d;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(m);var a=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach((e=>e(o))),t)return t(o)},m=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={788: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))})(),(()=>{"use strict";var e=r(2610);const t=wp.ajax;var n=r(2527),o=r(7537),a=r(6753),l=r(910);(0,n.Z)((()=>{const n=document.querySelector(".s-news-box-content");n&&""===n.innerHTML&&((0,a.s)(n).render((0,e.createElement)("div",null,(0,e.createElement)(o.Spinner,null))),(0,t.send)("stackable_news_feed_ajax",{success:e=>{n.innerHTML=e},error:e=>{alert(e)},data:{nonce:l.nonceNews}}))}));var i=r(7462);r(7294);var s=r(8003),c=r(2814),u=r(3882),d=r(4184),p=r.n(d),m=r(6916),h=r(3260),g=r(8255),b=r(1114),v=r(1364),f=r(2440);const k=t=>(0,e.createElement)(v.Z,(0,i.Z)({},t,{showLabel:!1}),(0,e.createElement)("div",{className:"ugb-admin-toolbar-setting__wrapper"},(0,e.createElement)("h3",null,t.label),(0,e.createElement)("a",{href:t.demoLink,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation()},(0,s.__)("view demo",l.i18n)),(0,e.createElement)("div",{className:"ugb-admin-toolbar-setting__group-wrapper"},(0,e.createElement)(o.ButtonGroup,{children:t.controls.map((n=>{const o=t.value?t.value===n.value:t.placeholder===n.value,a=o?"0":"-1";return!t.availableStates||t.availableStates.includes(n.value)?(0,e.createElement)(f.Z,{style:n.selectedColor&&o?{color:n.selectedColor}:{},isPrimary:!n.selectedColor&&o,key:n.value,label:n.title||t.label,tabIndex:a,"aria-pressed":o,onClick:()=>{n.value!==t.value&&t.onChange(n.value)},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()}},children:(0,e.createElement)("span",{className:"ugb-admin-toolbar-setting__option"},n.title)}):null})),className:"ugb-admin-toolbar-setting"}))));k.defaultProps={controls:[],label:"",value:"",onChange:()=>{}};const _=k,y=function(t){return(0,e.createElement)("svg",(0,i.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M7 17L17 7",stroke:"url(#arrow-up-right_svg__paint0_linear_285_198)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M7 7h10v10",stroke:"url(#arrow-up-right_svg__paint1_linear_285_198)",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"arrow-up-right_svg__paint0_linear_285_198",x1:10.311,y1:3.071,x2:20.414,y2:11.96,gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#EE006B"}),(0,e.createElement)("stop",{offset:1,stopColor:"#B300BE"})),(0,e.createElement)("linearGradient",{id:"arrow-up-right_svg__paint1_linear_285_198",x1:10.311,y1:3.071,x2:20.414,y2:11.96,gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#EE006B"}),(0,e.createElement)("stop",{offset:1,stopColor:"#B300BE"}))))},w=function(t){return(0,e.createElement)("svg",(0,i.Z)({fill:"none",viewBox:"0 0 867 105",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("linearGradient",{id:"divider_svg__a",gradientUnits:"userSpaceOnUse",x1:17,x2:850.283,y1:52.276,y2:52.276},(0,e.createElement)("stop",{offset:0,stopColor:"#f00069"}),(0,e.createElement)("stop",{offset:1,stopColor:"#bd0088"})),(0,e.createElement)("path",{d:"M17 84.256c5.135-12.228 39.765-49.454 69.695-69.753 16.469-11.17 18.749 43.166 28.778 55.84 7.064 8.928 34.426-26.007 54.551-36.132 4.695-2.362 12.199-1.618 17.101-.03 20.093 6.513 21.704 31.976 25.89 33.594 21.51 8.315 50.017-41.616 59.754-44.242 9.698-2.615 14.835 18.672 27.431 30.648 3.07 2.918 7.402 3.565 10.658 3.905 14.311 1.49 36.742-24.098 49.115-30.997 11.736-6.543 18.09 28.06 27.76 36.79 5.516 4.98 13.585 2.297 31.529-4.747 15.514-6.09 43.525-18.555 62.177-24.814 26.244-8.807 37.449-5.62 41.955-3.053 21.838 12.446 44.464 52.875 66.498 59.774 8.149 2.552 16.181-4.825 28.709-12.848 23.158-14.83 47.468-32.634 66.508-40.395 7.214-2.94 10.726-.087 15.251 6.337 11.586 16.449 19.407 32.333 25.531 38.466 2.628 2.633 5.484 2.936 9.36-4.408s8.992-22.693 12.906-30.28c3.915-7.586 6.473-6.947 9.389-4.699 6.832 5.266 13.245 12.596 20.658 16.792 6.218 3.52 11.985 2.296 15.851.688 4.129-1.718 8.401-5.484 14.835-8.391 18.1.29 28.448 4.166 33.283 6.424 2.277.979 4.195 1.618 8.11 2.277",stroke:"url(#divider_svg__a)",strokeLinecap:"round",strokeWidth:8}))},E=function(t){return(0,e.createElement)("svg",(0,i.Z)({fill:"none",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M153 27.186C80 10.224 43 32.89 43 124.684",stroke:"url(#quick-buttons-arrow_svg__paint0_linear_747_20)",strokeWidth:8,strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M30 96.926c.29 2.615 8.408 24.679 13.884 35.399 6.863-6.709 15.912-13.432 24.087-18.105 3.83-2.067 7.017-3.515 11.177-5.007",stroke:"url(#quick-buttons-arrow_svg__paint1_linear_747_20)",strokeWidth:8,strokeLinecap:"round"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"quick-buttons-arrow_svg__paint0_linear_747_20",x1:43,y1:73.551,x2:210,y2:73.551,gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#F00069"}),(0,e.createElement)("stop",{offset:1,stopColor:"#BD0088"})),(0,e.createElement)("linearGradient",{id:"quick-buttons-arrow_svg__paint1_linear_747_20",x1:30,y1:114.625,x2:79.148,y2:114.625,gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#F00069"}),(0,e.createElement)("stop",{offset:1,stopColor:"#BD0088"}))))},S=function(t){return(0,e.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640"},t),(0,e.createElement)("path",{d:"M530.8 134.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1-9.4.8-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"}))};var C=r(1984),x=r(7887),T=r(7823),N=r(3891);const M=(0,N.jsx)(T.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N.jsx)(T.y$,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})});var I=r(544),B=r(8797);const O=(0,N.jsx)(T.Wj,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N.jsx)(T.y$,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})}),P=[{title:(0,s.__)("Tutorials",l.i18n),subtitle:(0,s.__)("Get to know the plugin and start your journey with our brand new Stackable Courses.",l.i18n),link:"https://wpstackable.com/learn/?utm_source=plugin&utm_medium=getting_started&utm_campaign=tutorial_button",icon:(0,e.createElement)((function(t){return(0,e.createElement)("svg",(0,i.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M2 3h6a4 4 0 014 4v14a3 3 0 00-3-3H2V3zM22 3h-6a4 4 0 00-4 4v14a3 3 0 013-3h7V3z",stroke:"#101828",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}),null)},{title:(0,s.__)("Documentation",l.i18n),subtitle:(0,s.__)("Visit our knowledge base for troubleshooting, guides, FAQs and updates.",l.i18n),link:"https://docs.wpstackable.com/",icon:(0,e.createElement)((function(t){return(0,e.createElement)("svg",(0,i.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z",stroke:"#101828",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M14 2v6h6",stroke:"#101828",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M16 13H8M16 17H8M10 9H8",stroke:"#000",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}),null)},{title:(0,s.__)("Community",l.i18n),subtitle:(0,s.__)("Join our very active Stackable Community on Facebook.",l.i18n),link:"https://www.facebook.com/groups/wpstackable/",icon:(0,e.createElement)((function(t){return(0,e.createElement)("svg",(0,i.Z)({fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,e.createElement)("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2M12 11a4 4 0 100-8 4 4 0 000 8z",stroke:"#101828",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}))}),null)}],A=[{title:(0,s.__)("The Basics of Stackable Blocks",l.i18n),subtitle:(0,s.__)("Learn how to personalize and tailor Stackable Blocks to match your website's unique style and design.",l.i18n),src:"https://www.youtube.com/embed/GsQxH_gDp1A",url:"#"},{title:(0,s.__)("Flexbox Controls",l.i18n),subtitle:(0,s.__)("Explore the powerful Flexbox controls in Stackable that allow you to effortlessly create dynamic and responsive layouts.",l.i18n),src:"https://www.youtube.com/embed/73N9uXnpUJE",url:"#"},{title:(0,s.__)("How to Use Responsive and Hover State Toggles",l.i18n),subtitle:(0,s.__)("Discover how to design responsively and style different hover styles in Stackable.",l.i18n),src:"https://www.youtube.com/embed/YPFWu8qwSS4",url:"#"},{title:(0,s.__)("How to Use Global Styling",l.i18n),subtitle:(0,s.__)("Master the art of optimizing your workflow for globally styling your website to maintain consistency across all pages.",l.i18n),src:"https://www.youtube.com/embed/sYnNWSlQawc",url:"#"},{title:(0,s.__)("How to Use Color Schemes",l.i18n),subtitle:(0,s.__)("Learn how to use Color Schemes to more easily manage your design colors and allow switching colors for entire sections.",l.i18n),src:"https://www.youtube.com/embed/b2U7E9X2yCk",url:"#"},{title:(0,s.__)("How to Use Global Typography",l.i18n),subtitle:(0,s.__)("Unlock the full potential of typography in Stackable and gain insights on how to create visually stunning and impactful text designs.",l.i18n),src:"https://www.youtube.com/embed/WhctpivVlh8",url:"#"}],D=t=>{let{title:n,subtitle:o,link:a,icon:l}=t;return(0,e.createElement)("a",{href:a,className:"s-card s-card-link",target:"_blank",rel:"noreferrer"},(0,e.createElement)("div",{className:"s-icon-wrapper"}," ",l," "),(0,e.createElement)("h3",{className:"s-card-title"}," ",n," "),(0,e.createElement)("p",{className:"s-card-subtitle"}," ",o," "),(0,e.createElement)("div",{className:"s-bottom-icon-wrapper"}," ",(0,e.createElement)(y,null)," "))},L=t=>{let{title:n,subtitle:o,src:a}=t;return(0,e.createElement)("div",{className:"s-card"},(0,e.createElement)("div",{className:"s-video-wrapper s-card-top"},(0,e.createElement)("iframe",{className:"s-video",src:a,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;",allowFullScreen:!0})),(0,e.createElement)("h3",{className:"s-card-title"}," ",n," "),(0,e.createElement)("p",{className:"s-card-subtitle"}," ",o," "))},R=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"s-body"},(0,e.createElement)("div",{className:"s-getting-started__centered"},(0,e.createElement)("div",{className:"tag"},(0,s.__)("Welcome to Stackable",l.i18n)),(0,e.createElement)("h2",{className:"title"},(0,s.__)("Welcome to Your New Block Editor Workflow!",l.i18n))),(0,e.createElement)("div",{className:"s-getting-started__quick-start-wrapper"},(0,e.createElement)("div",{className:"s-quick-buttons-wrapper"},(0,e.createElement)("div",{className:"s-quick-buttons-arrow"},(0,e.createElement)(E,null),(0,e.createElement)("span",null,(0,s.__)("Quick Start",l.i18n))),(0,e.createElement)("div",{className:"s-card"},(0,e.createElement)("div",{className:"s-quick-button-icon"},(0,e.createElement)(C.Z,{icon:x.Z})),(0,e.createElement)("div",{className:"s-quick-button-description"},(0,e.createElement)("h3",null,(0,s.__)("Build Pages in Seconds",l.i18n)),(0,e.createElement)("p",null,(0,s.__)("Jump straight into our Design Library and insert polished, pre-built sections; no more blank-page overwhelm.",l.i18n))),(0,e.createElement)("div",{className:"s-quick-button-button"},(0,e.createElement)("a",{href:`/wp-admin/post-new.php?post_type=page&content=${(0,s.__)("Welcome to Stackable",l.i18n)}&tour=design-library`,className:p()("s-button s-secondary-button uppercase",{"s-button--checked":null===l.guidedTourStates||void 0===l.guidedTourStates?void 0:l.guidedTourStates.includes("design-library")})},(0,e.createElement)("span",{className:"s-quick-button-toggle-indicator"},(0,e.createElement)(S,null)),(0,s.__)("Build Now",l.i18n)))),(0,e.createElement)("div",{className:"s-card"},(0,e.createElement)("div",{className:"s-quick-button-icon"},(0,e.createElement)(C.Z,{icon:M})),(0,e.createElement)("div",{className:"s-quick-button-description"},(0,e.createElement)("h3",null,(0,s.__)("Stackable Block Settings",l.i18n)),(0,e.createElement)("p",null,(0,s.__)("Learn how to use Stackable blocks and get more out of them.",l.i18n))),(0,e.createElement)("div",{className:"s-quick-button-button"},(0,e.createElement)("a",{href:`/wp-admin/post-new.php?post_type=page&content=${(0,s.__)("Welcome to Stackable",l.i18n)}&tour=blocks`,className:p()("s-button s-secondary-button uppercase",{"s-button--checked":null===l.guidedTourStates||void 0===l.guidedTourStates?void 0:l.guidedTourStates.includes("blocks")})},(0,e.createElement)("span",{className:"s-quick-button-toggle-indicator"},(0,e.createElement)(S,null)),(0,s.__)("Use Blocks",l.i18n)))),(0,e.createElement)("div",{className:"s-card"},(0,e.createElement)("div",{className:"s-quick-button-icon"},(0,e.createElement)(C.Z,{icon:I.Z})),(0,e.createElement)("div",{className:"s-quick-button-description"},(0,e.createElement)("h3",null,(0,s.__)("Apply Global Styles Instantly",l.i18n)),(0,e.createElement)("p",null,(0,s.__)("Set your brand's colors, fonts, and spacing once in the Design System; every Stackable block updates automatically.",l.i18n))),(0,e.createElement)("div",{className:"s-quick-button-button"},(0,e.createElement)("a",{href:`/wp-admin/post-new.php?post_type=page&content=${(0,s.__)("Welcome to Stackable",l.i18n)}&tour=design-system`,className:p()("s-button s-secondary-button uppercase",{"s-button--checked":null===l.guidedTourStates||void 0===l.guidedTourStates?void 0:l.guidedTourStates.includes("design-system")})},(0,e.createElement)("span",{className:"s-quick-button-toggle-indicator"},(0,e.createElement)(S,null)),(0,s.__)("Try Now",l.i18n)))),(0,e.createElement)("div",{className:"s-card",style:{display:"none"}},(0,e.createElement)("div",{className:"s-quick-button-icon"},(0,e.createElement)(C.Z,{icon:B.Z})),(0,e.createElement)("div",{className:"s-quick-button-description"},(0,e.createElement)("h3",null,(0,s.__)("Start with a Complete Site Kit",l.i18n)),(0,e.createElement)("p",null,(0,s.__)("Pick a ready-made website template to kickstart your project — fully built layouts and styles, just swap in your content.",l.i18n))),(0,e.createElement)("div",{className:"s-quick-button-button"},(0,e.createElement)("a",{href:"/wp-admin/post-new.php?post_type=page",className:p()("s-button s-secondary-button uppercase",{"s-button--checked":null===l.guidedTourStates||void 0===l.guidedTourStates?void 0:l.guidedTourStates.includes("site-kit")})},(0,s.__)("Select Kit",l.i18n)))),(0,e.createElement)("div",{className:"s-card",style:{display:"none"}},(0,e.createElement)("div",{className:"s-quick-button-icon"},(0,e.createElement)(C.Z,{icon:O})),(0,e.createElement)("div",{className:"s-quick-button-description"},(0,e.createElement)("h3",null,(0,s.__)("Pre-set Design Systems",l.i18n)),(0,e.createElement)("p",null,(0,s.__)("Browse curated Design System presets — apply a professional look instantly without building from scratch.",l.i18n))),(0,e.createElement)("div",{className:"s-quick-button-button"},(0,e.createElement)("a",{href:"/wp-admin/post-new.php?post_type=page",className:p()("s-button s-secondary-button uppercase",{"s-button--checked":null===l.guidedTourStates||void 0===l.guidedTourStates?void 0:l.guidedTourStates.includes("design-system-picker")})},(0,s.__)("Pick A System",l.i18n))))),(0,e.createElement)("div",{className:"s-getting-started-video s-card"},(0,e.createElement)("div",{className:"s-video-wrapper s-card-top"},(0,e.createElement)("iframe",{className:"s-video",src:"https://www.youtube.com/embed/WP2LHxGulps",title:(0,s.__)("Getting Started",l.i18n),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;",allowFullScreen:!0})),(0,e.createElement)("h3",null,(0,s.__)("Getting Started with Stackable",l.i18n)),(0,e.createElement)("p",null,(0,s.__)("Watch this video to get started with Stackable in within 5 minutes.",l.i18n)))),(0,e.createElement)(w,{className:"s-divider"}),(0,e.createElement)("div",{className:"s-getting-started__section"},(0,e.createElement)("div",{className:"s-card-header"},(0,e.createElement)("h2",null," ",(0,s.__)("Resources",l.i18n)," ")),(0,e.createElement)("div",{className:"s-card-container s-card-general"},P.map(((t,n)=>(0,e.createElement)(D,(0,i.Z)({},t,{key:n})))))),(0,e.createElement)("div",{className:"s-getting-started__section"},(0,e.createElement)("div",{className:"s-card-header"},(0,e.createElement)("h2",null," ",(0,s.__)("Learn the essentials",l.i18n)," ")),(0,e.createElement)("div",{className:"s-card-container s-card-essentials"},A.map(((t,n)=>(0,e.createElement)(L,(0,i.Z)({},t,{key:n}))))))));var F=r(1539);class H extends e.Component{constructor(){super(...arguments),this.toggleBlock=this.toggleBlock.bind(this),this.enableAllBlocks=this.enableAllBlocks.bind(this),this.disableAllBlocks=this.disableAllBlocks.bind(this),this.ajaxTimeout=null,this.state={disabledBlocks:this.props.disabledBlocks||[],isSaving:!1}}componentDidUpdate(e,n){this.state.disabledBlocks!==n.disabledBlocks&&(clearTimeout(this.ajaxTimeout),this.ajaxTimeout=setTimeout((()=>{(0,t.send)("stackable_update_disable_blocks_v2",{success:()=>{this.setState({isSaving:!1})},error:e=>{this.setState({isSaving:!1}),alert(e)},data:{nonce:l.v2nonce,disabledBlocks:this.state.disabledBlocks}}),this.setState({isSaving:!0})}),600))}toggleBlock(e){this.state.disabledBlocks.includes(e)?this.setState({disabledBlocks:this.state.disabledBlocks.filter((t=>t!==e))}):this.setState({disabledBlocks:[...this.state.disabledBlocks,e]})}enableAllBlocks(){this.setState({disabledBlocks:[]})}disableAllBlocks(){this.setState({disabledBlocks:Object.keys(this.props.blocks)})}render(){const{blocks:t,searchedSettings:n}=this.props;return(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"s-settings-header"},this.state.isSaving&&(0,e.createElement)(o.Spinner,null),(0,e.createElement)("button",{onClick:this.enableAllBlocks,className:"button button-large button-link"},(0,s.__)("Enable All",l.i18n)),(0,e.createElement)("button",{onClick:this.disableAllBlocks,className:"button button-large button-link"},(0,s.__)("Disable All",l.i18n))),(0,e.createElement)("div",{className:"s-settings-grid",style:{rowGap:0}},Object.keys(t).map(((o,a)=>{const r=t[o];if(r.sDeprecated)return null;const i=this.state.disabledBlocks.includes(o);return(0,e.createElement)(g.Z,{key:a,label:(0,s.__)(r.title,l.i18n),searchedSettings:n,value:!i,onChange:()=>this.toggleBlock(o),size:"small",disabled:(0,s.__)("Disabled",l.i18n),enabled:(0,s.__)("Enabled",l.i18n)})}))))}}const z=t=>{let{searchSettings:n}=t;const[o,a]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{(0,m.w)().then((e=>{a(!!e.stackable_optimize_script_load)}))}),[]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(g.Z,{label:(0,s.__)("Frontend JS & CSS Files",l.i18n),searchSettings:n,value:o,onChange:e=>{new c.models.Settings({stackable_optimize_script_load:e}).save(),a(e)},disabled:(0,s.__)("Load across entire site",l.i18n),enabled:(0,s.__)("Load only in posts with Stackable blocks",l.i18n)}))},j={"ugb/accordion":{title:(0,s._x)("Accordion","block title",l.i18n)},"ugb/text":{title:(0,s._x)("Advanced Text","block title",l.i18n)},"ugb/heading":{title:(0,s._x)("Advanced Heading","block title",l.i18n)},"ugb/blockquote":{title:(0,s._x)("Blockquote","block title",l.i18n)},"ugb/blog-posts":{title:(0,s._x)("Blog Posts","block title",l.i18n)},"ugb/button":{title:(0,s._x)("Button","block title",l.i18n)},"ugb/cta":{title:(0,s._x)("Call to Action","block title",l.i18n)},"ugb/card":{title:(0,s._x)("Card","block title",l.i18n)},"ugb/columns":{title:(0,s._x)("Columns","block title",l.i18n)},"ugb/container":{title:(0,s._x)("Container","block title",l.i18n)},"ugb/count-up":{title:(0,s._x)("Count Up","block title",l.i18n)},"ugb/divider":{title:(0,s._x)("Divider","block title",l.i18n)},"ugb/expand":{title:(0,s._x)("Expand / Show More","block title",l.i18n)},"ugb/feature-grid":{title:(0,s._x)("Feature Grid","block title",l.i18n)},"ugb/feature":{title:(0,s._x)("Feature","block title",l.i18n)},"ugb/header":{title:(0,s._x)("Header","block title",l.i18n)},"ugb/icon":{title:(0,s._x)("Icon","block title",l.i18n)},"ugb/icon-list":{title:(0,s._x)("Icon List","block title",l.i18n)},"ugb/image-box":{title:(0,s._x)("Image Box","block title",l.i18n)},"ugb/notification":{title:(0,s._x)("Notification","block title",l.i18n)},"ugb/number-box":{title:(0,s._x)("Number Box","block title",l.i18n)},"ugb/pricing-box":{title:(0,s._x)("Pricing Box","block title",l.i18n)},"ugb/separator":{title:(0,s._x)("Separator","block title",l.i18n)},"ugb/spacer":{title:(0,s._x)("Spacer","block title",l.i18n)},"ugb/team-member":{title:(0,s._x)("Team Member","block title",l.i18n)},"ugb/testimonial":{title:(0,s._x)("Testimonial","block title",l.i18n)},"ugb/video-popup":{title:(0,s._x)("Video Popup","block title",l.i18n)}},[$,V]=(0,m.B)(r(9737)),U=()=>(0,u.applyFilters)("stackable.settings.blocks",$),Z=[{id:"essential",label:(0,s.__)("Essential Blocks",l.i18n),Icon:function(t){return(0,e.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#47a0dd",strokeWidth:2.5,strokeLinejoin:"round"},t),(0,e.createElement)("path",{d:"M25.333 4H6.667A2.667 2.667 0 004 6.667v18.667A2.667 2.667 0 006.667 28h18.667A2.667 2.667 0 0028 25.333V6.667A2.667 2.667 0 0025.333 4z"}),(0,e.createElement)("path",{d:"M11.333 13.333a2 2 0 100-4 2 2 0 100 4z"}),(0,e.createElement)("path",{d:"M28 20l-6.667-6.667L6.667 28",strokeLinecap:"round"}))},description:(0,s.__)("All the necessary building blocks you need to design anything.",l.i18n)},{id:"special",label:(0,s.__)("Special Blocks",l.i18n),Icon:function(t){return(0,e.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#e2735d",strokeWidth:2.5,strokeLinejoin:"round"},t),(0,e.createElement)("path",{d:"M30.667 9.333L21.333 16l9.333 6.667V9.333z"}),(0,e.createElement)("path",{d:"M18.667 6.667H4a2.667 2.667 0 00-2.667 2.667v13.333A2.667 2.667 0 004 25.334h14.667a2.667 2.667 0 002.667-2.667V9.333a2.667 2.667 0 00-2.667-2.667z"}))},description:(0,s.__)("Blocks with special functionality that will allow you to create distinctive designs.",l.i18n)},{id:"section",label:(0,s.__)("Section Blocks",l.i18n),Icon:function(t){return(0,e.createElement)("svg",(0,i.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"none",stroke:"#eabd59",strokeWidth:2.5,strokeLinejoin:"round"},t),(0,e.createElement)("path",{d:"M25.333 4H6.667A2.667 2.667 0 004 6.667v18.667A2.667 2.667 0 006.667 28h18.667A2.667 2.667 0 0028 25.333V6.667A2.667 2.667 0 0025.333 4z"}),(0,e.createElement)("path",{d:"M4 12h24M12 28V12",strokeLinecap:"round"}))},description:(0,s.__)("Use these blocks act as templates to help you build sections effortlessly.",l.i18n)}],q=[{id:"editor-settings",label:(0,s.__)("Editor Settings",l.i18n),groups:[{id:"blocks",children:[(0,s.__)("Nested Block Width",l.i18n),(0,s.__)("Nested Wide Block Width",l.i18n)]},{id:"editor",children:[(0,s.__)("Stackable Text as Default Block",l.i18n),(0,s.__)("Design Library",l.i18n),(0,s.__)("Stackable Settings",l.i18n),(0,s.__)("Use Size Presets by Default",l.i18n),(0,s.__)("Block Linking (Beta)",l.i18n)]},{id:"toolbar",children:[(0,s.__)("Toolbar Text Highlight",l.i18n),(0,s.__)("Toolbar Dynamic Content",l.i18n),(0,s.__)("Copy & Paste Styles",l.i18n),(0,s.__)("Reset Layout",l.i18n),(0,s.__)("Save as Default Block",l.i18n)]},{id:"inspector",children:[(0,s.__)("Don't show help video tooltips",l.i18n),(0,s.__)("Auto-Collapse Panels",l.i18n)]}]},{id:"responsiveness",label:(0,s.__)("Responsiveness",l.i18n),groups:[{id:"dynamic-breakpoints",children:[(0,s.__)("Tablet Breakpoint",l.i18n),(0,s.__)("Mobile Breakpoint",l.i18n)]}]},{id:"blocks",label:(0,s.__)("Blocks",l.i18n),groups:Z.map((e=>{let{id:t}=e;return{id:t,children:U()[t].map((e=>e.title))}}))},{id:"optimizations",label:(0,s.__)("Optimization",l.i18n),groups:[{id:"optimizations",children:[(0,s.__)("Optimize Inline CSS",l.i18n),(0,s.__)("Lazy Load Images within Carousels",l.i18n)]}]},{id:"global-settings",label:(0,s.__)("Global Settings",l.i18n),groups:[{id:"global-settings",children:[(0,s.__)("Force Typography Styles",l.i18n)]}]},{id:"role-manager",label:(0,s.__)("Role Manager",l.i18n),groups:[{id:"role-manager",children:Object.values(l.editorRoles||{})}]},{id:"custom-fields-settings",label:(0,s.__)("Custom Fields",l.i18n),groups:[{id:"custom-fields-settings",children:[(0,s.__)("Custom Fields",l.i18n),...Object.values(l.editorRoles||{})]}]},{id:"integrations",label:(0,s.__)("Integration",l.i18n),groups:[{id:"integrations",children:[(0,s.__)("Google Maps API Key",l.i18n),(0,s.__)("FontAwesome Pro Kit",l.i18n),(0,s.__)("FontAwesome Icon Library Version",l.i18n)]}]},{id:"other-settings",label:(0,s.__)("Miscellaneous ",l.i18n),groups:[{id:"miscellaneous",children:[(0,s.__)("Show Go premium notices",l.i18n),(0,s.__)("Generate Global Colors for native blocks",l.i18n),(0,s.__)("Inherit Block Styles from theme.json",l.i18n),(0,s.__)("Use v3.16.0 Color Scheme Inheritance",l.i18n),(0,s.__)("Block Defaults (Sunsetted)",l.i18n)]},{id:"migration-settings",children:[(0,s.__)("Load version 2 blocks in the editor",l.i18n),(0,s.__)("Load version 2 blocks in the editor only when the page was using version 2 blocks",l.i18n),(0,s.__)("Load version 2 frontend block stylesheet and scripts for backward compatibility",l.i18n)]}]},{id:"v2-settings",label:(0,s.__)("V2 Settings",l.i18n),groups:[{id:"optimizations",children:[(0,s.__)("Frontend JS & CSS Files",l.i18n)]},{id:"blocks",children:Object.values(j).map((e=>e.title))}]}],W=U(),G=Z.reduce(((e,t)=>{let{id:n}=t;return W[n].forEach((t=>{var n;e[t.name]=null!==(n=t["stk-required-blocks"])&&void 0!==n?n:[]})),e}),{}),J=e=>{for(const t in W)for(const n of W[t])if(n.name===e)return n.title;return e},Y=()=>{const t=U();return(0,e.createElement)(e.Fragment,null,Z.map((n=>{let{id:o,label:a}=n;return(0,e.createElement)("div",{className:"s-getting-started-blocks-wrapper",key:o},(0,e.createElement)("h3",null,a),(0,e.createElement)("div",{className:"s-getting-started-blocks"},t[o].map(((t,n)=>(0,e.createElement)("div",{key:n,className:"s-box"},(0,e.createElement)("h4",null,(0,s.__)(t.title,l.i18n)),(0,e.createElement)("p",null,(0,s.__)(t.description,l.i18n)),t["stk-demo"]&&(0,e.createElement)("a",{href:t["stk-demo"],target:"_example"},(0,s.__)("See example",l.i18n)))))))})))},K=()=>{const[t,n]=(0,e.useState)(null);return(0,e.useEffect)((()=>{(0,m.w)().catch((e=>{n(e)}))}),[]),t?(0,e.createElement)("div",{className:"notice notice-error"},(0,e.createElement)("p",null,(0,s.__)("Error getting Stackable settings. We got the following error. Please contact your administrator.",l.i18n)),t.responseJSON&&(0,e.createElement)("p",null,(0,e.createElement)("strong",null,t.responseJSON.data.status," (",t.responseJSON.code,").")," ",t.responseJSON.message," ")):null},X=t=>{let{blockName:n="",blockList:a,isDisabled:r,onConfirm:i,onCancel:c,hideHeader:u=!1,customText:d=""}=t;const p=J(n);return(0,e.createElement)(o.Modal,{className:"s-confirm-modal",size:"medium",title:r?(0,s.sprintf)((0,s.__)("Disable %s block?",l.i18n),p):(0,s.sprintf)((0,s.__)("Enable %s block?",l.i18n),p),onRequestClose:c,__experimentalHideHeader:u},u?d:r?(0,e.createElement)("p",null,(0,s.__)("Disabling this block will also disable these blocks that require this block to function:",l.i18n)):(0,e.createElement)("p",null,(0,s.__)("Enabling this block will also enable these blocks that are needed for this block to function:",l.i18n)),(0,e.createElement)("ul",null,a.map(((t,n)=>(0,e.createElement)("li",{key:n},J(t))))),(0,e.createElement)(o.Flex,{justify:"flex-end",expanded:!1},(0,e.createElement)(o.FlexItem,null,(0,e.createElement)(o.Button,{variant:"secondary",onClick:c},(0,s.__)("Cancel",l.i18n))),(0,e.createElement)(o.FlexItem,null,(0,e.createElement)(o.Button,{variant:"primary",onClick:i},r?(0,s.__)("Disable",l.i18n):(0,s.__)("Enable",l.i18n)))))},Q=t=>{let{currentTab:n,handleTabChange:a,hasUnsavedChanges:r,handleSettingsSave:i,currentSearch:c,filteredSearchTree:u,isSaving:d,isRecentlySaved:m,hasV2Tab:h}=t;const g=p()(["s-save-changes",{"s-button-has-unsaved-changes":r&&!m}]);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("nav",{className:"s-sidenav"},(0,e.createElement)("div",null,u.map((t=>{let{id:o,label:l,groups:r}=t;const i=c&&r.some((e=>e.children.length>0)),s=p()(["s-sidenav-item",{"s-sidenav-item-highlight":i},{"s-active":n===o}]);return"v2-settings"!==o||h?(0,e.createElement)("button",{key:o,className:s,onClick:()=>a(o),onKeyDown:()=>a(o),role:"tab",tabIndex:0,id:`stk-tab__${o}`},l):null})),(0,e.createElement)("div",{className:"s-save-changes-wrapper"},"v2-settings"!==n&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"s-save-changes-inner-wrapper"},r&&(0,e.createElement)("span",{className:"s-save-changes-note"},(0,s.__)("There are unsaved changes",l.i18n)),(0,e.createElement)("button",{className:g,onClick:i,disabled:m},d?(0,e.createElement)(o.Spinner,null):m?(0,s.__)("Saved Succesfully!",l.i18n):(0,s.__)("Save Changes",l.i18n))))))))},ee=t=>{let{currentSearch:n,handleSearchChange:o}=t;return(0,e.createElement)("div",{className:"s-search-setting"},(0,e.createElement)("input",{className:"s-search-setting__input",type:"search",placeholder:(0,s.__)("Search settings",l.i18n),value:n,onChange:e=>{o(e.target.value.toLowerCase())}}))},te=()=>{const[t,n]=(0,e.useState)({}),[o,a]=(0,e.useState)({}),[l,r]=(0,e.useState)("editor-settings"),[i,s]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[p,h]=(0,e.useState)(!1),[g,b]=(0,e.useState)(!1),[v,f]=(0,e.useState)(!1),k=e=>"1"===e.stackable_v2_frontend_compatibility||"1"===e.stackable_v2_editor_compatibility||"1"===e.stackable_v2_editor_compatibility_usage,_=(0,e.useCallback)((e=>{n((t=>({...t,...e}))),a((t=>({...t,...e})))}),[]),y=(0,e.useCallback)((()=>{0!==Object.keys(o).length&&(d(!0),b(!0),new c.models.Settings(o).save().then((()=>{setTimeout((()=>{d(!1)}),500),setTimeout((()=>{b(!1)}),1500)})),a({}))}),[o,t]);(0,e.useEffect)((()=>{h(!0),(0,m.w)().then((e=>{n(e),f(k(e)),h(!1)}))}),[]),(0,e.useEffect)((()=>{k(t)||f(!1)}),[t]);const w=(0,e.useMemo)((()=>Object.keys(o).length>0),[o]);(0,e.useEffect)((()=>{const e=e=>{w&&(e.preventDefault(),e.returnValue=!0)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[w]);const E=(0,e.useMemo)((()=>{const e=i.toLowerCase();return q.map((t=>{const n=t.groups.map((t=>{if(!i)return{...t,children:null};const n=t.children.filter((t=>t.toLowerCase().includes(e.toLowerCase())));return{...t,children:n}}));return{...t,groups:n}}))}),[i]),S={settings:t,handleSettingsChange:_,currentSearch:i,filteredSearchTree:E,currentTab:l,isFetching:p};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Q,{currentTab:l,handleTabChange:r,hasUnsavedChanges:w,handleSettingsSave:y,currentSearch:i,filteredSearchTree:E,isSaving:u,isRecentlySaved:g,hasV2Tab:v}),(0,e.createElement)("article",{className:"s-box",id:l},(0,e.createElement)(ee,{currentSearch:i,handleSearchChange:s}),"editor-settings"===l&&(0,e.createElement)(ne,S),"responsiveness"===l&&(0,e.createElement)(oe,S),"blocks"===l&&(0,e.createElement)(ae,S),"optimizations"===l&&(0,e.createElement)(le,S),"global-settings"===l&&(0,e.createElement)(re,S),"role-manager"===l&&(0,e.createElement)(ie,S),"custom-fields-settings"===l&&(0,e.createElement)(se,S),"integrations"===l&&(0,e.createElement)(ce,S),"other-settings"===l&&(0,e.createElement)(ue,S),(0,e.createElement)(de,S)))},ne=t=>{const{settings:n,handleSettingsChange:o,filteredSearchTree:a}=t,r=a.find((e=>"editor-settings"===e.id)).groups,i=r.find((e=>"blocks"===e.id)),c=r.find((e=>"editor"===e.id)),u=r.find((e=>"toolbar"===e.id)),d=r.find((e=>"inspector"===e.id)),p=r.some((e=>null===e.children||e.children.length>0));return(0,e.createElement)("div",{className:"s-editor-settings"},p?(0,e.createElement)(e.Fragment,null,(null===i.children||i.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Block Widths",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Adjust the width of Stackable blocks here.",l.i18n)),(0,e.createElement)(b.Z,{label:(0,s.__)("Nested Block Width",l.i18n),searchedSettings:i.children,value:n.stackable_block_default_width,type:"text",onChange:e=>{o({stackable_block_default_width:e})},help:(0,s.__)("The width used when a Columns block has its Content Width set to center. This is automatically detected from your theme. You can adjust it if your blocks are not aligned correctly. In px, you can also use other units or use a calc() formula.",l.i18n)}),(0,e.createElement)(b.Z,{label:(0,s.__)("Nested Wide Block Width",l.i18n),searchedSettings:i.children,value:n.stackable_block_wide_width,type:"text",onChange:e=>{o({stackable_block_wide_width:e})},help:(0,s.__)("The width used when a Columns block has its Content Width set to wide. This is automatically detected from your theme. You can adjust it if your blocks are not aligned correctly. In px, you can also use other units or use a calc() formula.",l.i18n)})),(null===c.children||c.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Editor",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("You can customize some of the features and behavior of Stackable in the editor here.",l.i18n)," "),(0,e.createElement)(g.Z,{label:(0,s.__)("Stackable Text as Default Block",l.i18n),searchedSettings:c.children,value:n.stackable_enable_text_default_block,onChange:e=>{o({stackable_enable_text_default_block:e})},help:(0,s.__)("If enabled, Stackable Text blocks will be added by default instead of the native Paragraph Block.",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Design Library",l.i18n),searchedSettings:c.children,value:n.stackable_enable_design_library,onChange:e=>{o({stackable_enable_design_library:e})},help:(0,s.__)("Adds a button on the top of the editor which gives access to a collection of pre-made block designs. Note: You can still access the Design Library by adding the Design Library block.",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Stackable Settings",l.i18n),searchedSettings:c.children,value:n.stackable_enable_global_settings,onChange:e=>{o({stackable_enable_global_settings:e})},help:(0,s.__)("Adds a button on the top of the editor which gives access to Stackable settings. Note: You won't be able to access Stackable settings when this is disabled.",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Use Size Presets by Default",l.i18n),searchedSettings:c.children,value:t.settings.stackable_use_size_presets_by_default,onChange:e=>{t.handleSettingsChange({stackable_use_size_presets_by_default:e})},help:(0,s.__)("If enabled, range controls will be on preset mode by default.",l.i18n),disabled:(0,s.__)("Use custom values",l.i18n),enabled:(0,s.__)("Use presets",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Block Linking (Beta)",l.i18n),searchedSettings:c.children,value:n.stackable_enable_block_linking,onChange:e=>{o({stackable_enable_block_linking:e})},help:(0,e.createElement)(e.Fragment,null,(0,s.__)("Gives you the ability to link columns. Any changes you make on one column will automatically get applied on the other columns.",l.i18n)," ",(0,e.createElement)("a",{target:"_docs",href:"https://docs.wpstackable.com/article/452-how-to-use-block-linking"},(0,s.__)("Learn more",l.i18n)))})),(null===u.children||u.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Toolbar",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("You can disable some toolbar features here.",l.i18n)," "),(0,e.createElement)(g.Z,{label:(0,s.__)("Toolbar Text Highlight",l.i18n),searchedSettings:u.children,value:n.stackable_enable_text_highlight,onChange:e=>{o({stackable_enable_text_highlight:e})},help:(0,s.__)("Adds a toolbar button for highlighting text",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Toolbar Dynamic Content",l.i18n),searchedSettings:u.children,value:n.stackable_enable_dynamic_content,onChange:e=>{o({stackable_enable_dynamic_content:e})},help:(0,s.__)("Adds a toolbar button for inserting and modifying dynamic content",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Copy & Paste Styles",l.i18n),searchedSettings:u.children,value:n.stackable_enable_copy_paste_styles,onChange:e=>{o({stackable_enable_copy_paste_styles:e})},help:(0,s.__)("Adds a toolbar button for advanced copying and pasting block styles",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Reset Layout",l.i18n),searchedSettings:u.children,value:n.stackable_enable_reset_layout,onChange:e=>{o({stackable_enable_reset_layout:e})},help:(0,s.__)("Adds a toolbar button for resetting the layout of a stackble block back to the original",l.i18n)}),n.stackable_enable_block_defaults&&(0,e.createElement)(g.Z,{label:(0,s.__)("Save as Default Block",l.i18n),searchedSettings:u.children,value:n.stackable_enable_save_as_default_block,onChange:e=>{o({stackable_enable_save_as_default_block:e})},help:(0,s.__)("Adds a toolbar button for saving a block as the default block",l.i18n)})),(null===d.children||d.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Inspector",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("You can customize some of the features and behavior of Stackable in the inspector here.",l.i18n)),(0,e.createElement)(g.Z,{label:(0,s.__)("Don't show help video tooltips",l.i18n),searchedSettings:d.children,value:"1"===n.stackable_help_tooltip_disabled,onChange:e=>{o({stackable_help_tooltip_disabled:e?"1":""})},help:(0,s.__)("Disables the help video tooltips that appear in the inspector.",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Auto-Collapse Panels",l.i18n),searchedSettings:d.children,value:n.stackable_auto_collapse_panels,onChange:e=>{o({stackable_auto_collapse_panels:e})},help:(0,s.__)("Collapse other inspector panels when opening another, keeping only one open at a time.",l.i18n)}))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n)))},oe=t=>{var n,o;const{settings:a,handleSettingsChange:r,filteredSearchTree:i}=t,c=i.find((e=>"responsiveness"===e.id)).groups,u=c.find((e=>"dynamic-breakpoints"===e.id)),d=c.some((e=>null===e.children||e.children.length>0));return(0,e.createElement)("div",{className:"s-responsiveness"},d?(0,e.createElement)(e.Fragment,null,(null===u.children||u.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Dynamic Breakpoints",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Blocks can be styles differently for tablet and mobile screens, and some styles adjust to make them fit better in smaller screens. You can change the widths when tablet and mobile views are triggered. ",l.i18n),(0,e.createElement)("a",{href:"https://docs.wpstackable.com/article/464-how-to-use-dynamic-breakpoints?utm_source=wp-settings-global-settings&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,s.__)("Learn more",l.i18n))),(0,e.createElement)(b.Z,{label:(0,s.__)("Tablet Breakpoint",l.i18n),searchedSettings:u.children,type:"number",value:(null===(n=a.stackable_dynamic_breakpoints)||void 0===n?void 0:n.tablet)||"",onChange:e=>{var t;r({stackable_dynamic_breakpoints:{tablet:e,mobile:(null===(t=a.stackable_dynamic_breakpoints)||void 0===t?void 0:t.mobile)||""}})},placeholder:l.defaultBreakpoints.tablet||"1024"}," px"),(0,e.createElement)(b.Z,{label:(0,s.__)("Mobile Breakpoint",l.i18n),searchedSettings:u.children,type:"number",value:(null===(o=a.stackable_dynamic_breakpoints)||void 0===o?void 0:o.mobile)||"",onChange:e=>{var t;r({stackable_dynamic_breakpoints:{tablet:(null===(t=a.stackable_dynamic_breakpoints)||void 0===t?void 0:t.tablet)||"",mobile:e}})},placeholder:l.defaultBreakpoints.mobile||"768"}," px"))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n)))},ae=t=>{var n;const{settings:a,handleSettingsChange:r,filteredSearchTree:i,isFetching:c}=t,u=Object.freeze({enabled:F.PC.ENABLED,hidden:F.PC.HIDDEN,disabled:F.PC.DISABLED}),d=U(),m=i.find((e=>"blocks"===e.id)).groups,h=m.some((e=>null===e.children||e.children.length>0)),g=null!==(n=a.stackable_block_states)&&void 0!==n?n:{},[b,v]=(0,e.useState)(!1),[f,k]=(0,e.useState)(!1),[y,w]=(0,e.useState)(""),[E,S]=(0,e.useState)([]),[C,x]=(0,e.useState)([]);(0,e.useEffect)((()=>{window.addEventListener("message",(e=>{if("object"==typeof e.data&&"STK_DESIGN_LIBRARY"===e.data.source&&e.origin===window.location.origin&&"STK_ENABLE_BLOCKS"===e.data.type&&e.data.blocks instanceof Set&&e.data.blocks.size){const t=[...e.data.blocks].map((e=>e in V?V[e]:e));x(t)}}))}),[]),(0,e.useEffect)((()=>{!c&&C.length&&k(!0)}),[c,C]);const T=e=>null==e?void 0:e.map((e=>u[e.toLowerCase()])),N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E;k(!1);const t={...g};delete t[y],e.forEach((e=>{delete t[e]})),r({stackable_block_states:t})};return(0,e.createElement)(e.Fragment,null,b&&0!==E.length&&(0,e.createElement)(X,{blockName:y,blockList:E,isDisabled:!0,onConfirm:()=>(()=>{v(!1);const e={...g,[y]:F.PC.DISABLED};E.forEach((t=>{e[t]=F.PC.DISABLED})),r({stackable_block_states:e})})(),onCancel:()=>{v(!1)}}),f&&0!==E.length&&(0,e.createElement)(X,{blockName:y,blockList:E,isDisabled:!1,onConfirm:()=>N(),onCancel:()=>{k(!1)}}),f&&0!==C.length&&(0,e.createElement)(X,{blockList:C,isDisabled:!1,hideHeader:!0,customText:(0,s.__)("The following blocks will be enabled:",l.i18n),onConfirm:()=>{N(C),x([])},onCancel:()=>{k(!1),x([])}}),(0,e.createElement)("div",{className:"s-blocks"},h?(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Blocks",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Here you can enable, hide and disable Stackable blocks. Hiding blocks will hide the block from the list of available blocks. Disabling blocks will prevent them from being registered at all. When using block variations or design library patterns, disabled blocks will be substituted with the relevant core blocks.",l.i18n)),(0,e.createElement)("div",{className:"s-settings-header"},(0,e.createElement)(o.Button,{variation:"secondary",onClick:()=>{const e={};Z.forEach((t=>{let{id:n}=t;d[n].forEach((t=>{const n=T(t["stk-available-states"]);n&&!n.includes(F.PC.ENABLED)&&g[t.name]&&(e[t.name]=g[t.name])}))})),r({stackable_block_states:e})}},(0,s.__)("Enable All",l.i18n)),(0,e.createElement)(o.Button,{variation:"secondary",onClick:()=>{const e={};Z.forEach((t=>{let{id:n}=t;d[n].forEach((t=>{const n=T(t["stk-available-states"]);!n||n.includes(F.PC.HIDDEN)?e[t.name]=F.PC.HIDDEN:g[t.name]&&(e[t.name]=g[t.name])}))})),r({stackable_block_states:e})}},(0,s.__)("Hide All",l.i18n)),(0,e.createElement)(o.Button,{variation:"secondary",onClick:()=>{const e={};Z.forEach((t=>{let{id:n}=t;d[n].forEach((t=>{const n=T(t["stk-available-states"]);!n||n.includes(F.PC.DISABLED)?e[t.name]=F.PC.DISABLED:n.includes(F.PC.HIDDEN)?e[t.name]=F.PC.HIDDEN:g[t.name]&&(e[t.name]=g[t.name])}))})),r({stackable_block_states:e})}},(0,s.__)("Disable All",l.i18n))),Z.map((t=>{let{id:n,label:o,Icon:a}=t;const i=p()(["s-box-block__title",`s-box-block__title--${n}`]),c=m.find((e=>e.id===n));return(null===c.children||c.children.length>0)&&(0,e.createElement)("div",{className:"s-box s-box-block",key:n},(0,e.createElement)("h3",{className:i},a&&(0,e.createElement)(a,{height:"20",width:"20"}),(0,e.createElement)("span",null,o)),(0,e.createElement)("div",{className:"s-settings-grid"},d[n].map(((t,n)=>{var o;const a=null!==(o=g[t.name])&&void 0!==o?o:F.PC.ENABLED,i=T(t["stk-available-states"]);return i&&i.length<=1?null:(0,e.createElement)(_,{key:n,className:"s-block-setting",label:(0,s.__)(t.title,l.i18n),demoLink:t["stk-demo"],searchedSettings:c.children,value:a,default:F.PC.ENABLED,controls:[{value:F.PC.ENABLED,title:(0,s.__)("Enabled",l.i18n),selectedColor:"#009733"},{value:F.PC.HIDDEN,title:(0,s.__)("Hidden",l.i18n)},{value:F.PC.DISABLED,title:(0,s.__)("Disabled",l.i18n),selectedColor:"#de0000"}],availableStates:i,onChange:e=>{((e,t)=>{const n=Number(t);let o={...g};if(w(e),n===F.PC.ENABLED){const t=(a=e,G[a]||[]).filter((e=>e in g));t.length>0?(S(t),k(!0)):delete o[e]}else if(n===F.PC.DISABLED){const t=(e=>{const t=[];for(const n in G)G[n].includes(e)&&t.push(n);return t})(e).filter((e=>!(e in g)));t.length>0?(S(t),v(!0)):o={...g,[e]:n}}else o={...g,[e]:n};var a;r({stackable_block_states:o})})(t.name,e)},isSmall:!0})}))))}))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n))))},le=t=>{const{settings:n,handleSettingsChange:o,filteredSearchTree:a}=t,r=a.find((e=>"optimizations"===e.id)).groups,i=r.find((e=>"optimizations"===e.id)),c=r.some((e=>null===e.children||e.children.length>0));return(0,e.createElement)("div",{className:"s-optimizations"},c?(0,e.createElement)(e.Fragment,null,(null===i.children||i.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Optimizations",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Here you can adjust some optimization settings that are performed by Stackable.",l.i18n)),(0,e.createElement)(g.Z,{label:(0,s.__)("Optimize Inline CSS",l.i18n),searchedSettings:i.children,value:n.stackable_optimize_inline_css,onChange:e=>{o({stackable_optimize_inline_css:e})},help:(0,s.__)("Optimize inlined CSS styles. If this is enabled, similar selectors will be combined together, helpful if you changed Block Defaults.",l.i18n)}),(0,e.createElement)(g.Z,{label:(0,s.__)("Lazy Load Images within Carousels",l.i18n),searchedSettings:i.children,value:n.stackable_enable_carousel_lazy_loading,onChange:e=>{o({stackable_enable_carousel_lazy_loading:e})},help:(0,s.__)("Disable this if you encounter layout or spacing issues when using images inside carousel-type blocks because of image lazy loading.",l.i18n)}))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n)))},re=t=>{const n=t.filteredSearchTree.find((e=>"global-settings"===e.id)).groups,o=n.find((e=>"global-settings"===e.id)),a=n.some((e=>null===e.children||e.children.length>0));return(0,e.createElement)("div",{className:"s-global-settings"},a?(0,e.createElement)(e.Fragment,null,(null===o.children||o.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Global Settings",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Here you can tweak Global Settings that affect the styles across your entire site.",l.i18n)),(0,e.createElement)(g.Z,{label:(0,s.__)("Force Typography Styles",l.i18n),searchedSettings:o.children,value:t.settings.stackable_global_force_typography,onChange:e=>{t.handleSettingsChange({stackable_global_force_typography:e})},disabled:(0,s.__)("Not forced",l.i18n),enabled:(0,s.__)("Force styles",l.i18n)}))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n)))},ie=t=>{const n=t.filteredSearchTree.find((e=>"role-manager"===e.id)).groups,a=n.some((e=>null===e.children||e.children.length>0)),r={...t,roleManager:n.find((e=>"role-manager"===e.id))},i=(0,u.applyFilters)("stackable.admin.settings.editorModeSettings",e.Fragment);return(0,e.createElement)("div",{className:"s-role-manager"},a?(0,e.createElement)(e.Fragment,null,(null===r.roleManager.children||r.roleManager.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Role Manager",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Lock the Block Editor's inspector for different user roles, and give clients edit access to only images and content. Content Editing Mode affects all blocks. ",l.i18n),(0,e.createElement)("a",{target:"_docs",href:l.isPro?"https://docs.wpstackable.com/article/360-role-manager-and-content-editing-mode?utm_source=wp-settings-role-manager&utm_campaign=learnmore&utm_medium=wp-dashboard":"https://wpstackable.com/blog/introducing-role-manager-for-gutenberg/?utm_source=wp-settings-role-manager&utm_campaign=learnmore&utm_medium=wp-dashboard"},(0,s.__)("Learn more",l.i18n))),l.isPro?(0,e.createElement)(e.Suspense,{fallback:(0,e.createElement)(o.Spinner,null)},(0,e.createElement)("div",{className:"s-editing-mode-settings"},(0,e.createElement)(i,r))):(0,e.createElement)("p",{className:"s-settings-pro"},(0,s.__)("This is only available in Stackable Premium. ",l.i18n),(0,e.createElement)("a",{href:"https://wpstackable.com/premium/?utm_source=wp-settings-role-manager&utm_campaign=gopremium&utm_medium=wp-dashboard",target:"_premium"},(0,s.__)("Go Premium",l.i18n))))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n)))},se=t=>{const n=t.filteredSearchTree.find((e=>"custom-fields-settings"===e.id)).groups,a=n.some((e=>null===e.children||e.children.length>0)),r={...t,customFields:n.find((e=>"custom-fields-settings"===e.id))},i=(0,u.applyFilters)("stackable.admin.settings.customFieldsEnableSettings",e.Fragment),c=(0,u.applyFilters)("stackable.admin.settings.customFieldsManagerSettings",e.Fragment);return(0,e.createElement)("div",{className:"s-custom-fields"},a?(0,e.createElement)(e.Fragment,null,(null===r.customFields.children||r.customFields.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("div",{className:"s-custom-fields-settings-header"},(0,e.createElement)("h2",null,(0,s.__)("Custom Fields",l.i18n)),l.isPro&&(0,e.createElement)(e.Suspense,{fallback:(0,e.createElement)(o.Spinner,null)},(0,e.createElement)("div",{className:"s-custom-fields-enable"},(0,e.createElement)(i,r)))),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Create Custom Fields that you can reference across your entire site. You can assign which roles can manage your Custom Fields. ",l.i18n),(0,e.createElement)("a",{href:"https://docs.wpstackable.com/article/463-how-to-use-stackable-custom-fields/?utm_source=wp-settings-custom-fields&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,s.__)("Learn more",l.i18n))),l.isPro?(0,e.createElement)(e.Suspense,{fallback:(0,e.createElement)(o.Spinner,null)},(0,e.createElement)("div",{className:"s-custom-fields-manager"},(0,e.createElement)(c,r))):(0,e.createElement)("p",{className:"s-settings-pro"},(0,s.__)("This is only available in Stackable Premium. ",l.i18n),(0,e.createElement)("a",{href:"https://wpstackable.com/premium/?utm_source=wp-settings-custom-fields&utm_campaign=gopremium&utm_medium=wp-dashboard",target:"_premium"},(0,s.__)("Go Premium",l.i18n))))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n)))},ce=t=>{const{settings:n,handleSettingsChange:a,filteredSearchTree:r}=t,i=r.find((e=>"integrations"===e.id)).groups,c=i.some((e=>null===e.children||e.children.length>0)),d={...t,integrations:i.find((e=>"integrations"===e.id))},p=(0,u.applyFilters)("stackable.admin.settings.iconSettings",e.Fragment);return(0,e.createElement)("div",{className:"s-integrations"},c?(0,e.createElement)(e.Fragment,null,(null===d.integrations.children||d.integrations.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Integrations",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Here are settings for the different integrations available in Stackable.",l.i18n)),(0,e.createElement)(b.Z,{label:(0,s.__)("Google Maps API Key",l.i18n),searchedSettings:d.integrations.children,value:n.stackable_google_maps_api_key,type:"text",onChange:e=>{a({stackable_google_maps_api_key:e})},help:(0,e.createElement)(e.Fragment,null,(0,s.__)("Adding a Google API Key enables additional features of the Stackable Map Block.",l.i18n)," ",(0,e.createElement)("a",{href:"https://docs.wpstackable.com/article/483-how-to-use-stackable-map-block#api-key",target:"_blank",rel:"noreferrer"},(0,s.__)("Learn more",l.i18n)))}),l.isPro?(0,e.createElement)(e.Suspense,{fallback:(0,e.createElement)(o.Spinner,null)},(0,e.createElement)("div",{className:"ugb-admin-setting"},(0,e.createElement)(p,d))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"s-settings-field ugb-admin-setting"},(0,e.createElement)("label",{className:"s-text-field",htmlFor:"s-icon-kit-field"},(0,e.createElement)("span",{className:"s-settings-field__title ugb-admin-setting__label"},(0,s.__)("FontAwesome Pro Kit",l.i18n)),(0,e.createElement)("p",{className:"s-settings-pro"},(0,s.__)("This is only available in Stackable Premium. ",l.i18n),(0,e.createElement)("a",{href:"https://wpstackable.com/premium/?utm_source=wp-settings-integrations&utm_campaign=gopremium&utm_medium=wp-dashboard",target:"_premium"},(0,s.__)("Go Premium",l.i18n)))))),(0,e.createElement)("div",{className:"s-icon-settings-fa-version"},(0,e.createElement)("div",{className:"s-icon-settings-fa-pro-version"},(0,e.createElement)("label",{className:"ugb-admin-setting__label-wrapper",htmlFor:"s-icon-settings-fa-pro-version"},(0,e.createElement)("span",{className:"ugb-admin-setting__label"}," ",(0,s.__)("FontAwesome Icon Library Version",l.i18n)),(0,e.createElement)("div",{className:"ugb-admin-setting__field"},(0,e.createElement)("p",null,(0,s.__)("You are using the version set in your Font Awesome Pro Kit.",l.i18n))))),(0,e.createElement)("div",{className:"s-icon-settings-fa-free-version"},(0,e.createElement)(h.Z,{label:(0,s.__)("FontAwesome Icon Library Version",l.i18n),searchedSettings:d.integrations.children,value:n.stackable_icons_fa_free_version,options:[{name:"6.5.1",value:"6.5.1"},{name:"5.15.4",value:"5.15.4"}],onChange:e=>{a({stackable_icons_fa_free_version:e})}}))))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n)))},ue=t=>{const{settings:n,handleSettingsChange:a,filteredSearchTree:r}=t,i=r.find((e=>"other-settings"===e.id)).groups,c=i.find((e=>"miscellaneous"===e.id)),u=i.find((e=>"migration-settings"===e.id)),d=i.some((e=>null===e.children||e.children.length>0)),p=(e,t)=>null===t.children||t.children.includes(e)?"":"ugb-admin-setting--not-highlight";return(0,e.createElement)("div",{className:"s-other-options-wrapper"},d?(0,e.createElement)(e.Fragment,null,(null===c.children||c.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Miscellaneous",l.i18n)),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Below are other minor settings. Some may be useful when upgrading from older versions of Stackable.",l.i18n)),l.showProNoticesOption&&(0,e.createElement)(o.CheckboxControl,{label:(0,s.__)('Show "Go premium" notices',l.i18n),className:p((0,s.__)("Show Go premium notices",l.i18n),c),checked:"1"===n.stackable_show_pro_notices,onChange:e=>{a({stackable_show_pro_notices:e?"1":""})},__nextHasNoMarginBottom:!0}),(0,e.createElement)(o.CheckboxControl,{label:(0,s.__)("Generate Global Colors for native blocks",l.i18n),className:p((0,s.__)("Generate Global Colors for native blocks",l.i18n),c),help:(0,s.__)("When enabled, extra frontend CSS is generated to support Stackable global colors used in native blocks. If you don't use Stackable global colors in native blocks, simply toggle this OFF. Please note that Stackable global colors are no longer available for native blocks. To ensure your styles always look perfect, our auto-detect feature will activate this option whenever needed.",l.i18n),checked:!!n.stackable_global_colors_native_compatibility,onChange:e=>{a({stackable_global_colors_native_compatibility:e})},__nextHasNoMarginBottom:!0}),(0,e.createElement)(o.CheckboxControl,{label:(0,s.__)("Inherit Block Styles from theme.json",l.i18n),className:p((0,s.__)("Inherit Block Styles from theme.json",l.i18n),c),help:(0,s.__)("When enabled, Stackable blocks will inherit styles from the theme.json file of your Block Theme.",l.i18n),checked:!n.stackable_disable_block_style_inheritance,onChange:e=>{a({stackable_disable_block_style_inheritance:!e})},__nextHasNoMarginBottom:!0}),(0,e.createElement)(o.CheckboxControl,{label:(0,s.__)("Use v3.16.0 Color Scheme Inheritance",l.i18n),className:p((0,s.__)("Use v3.16.0 Color Scheme Inheritance",l.i18n),c),help:(0,s.__)("A bug in the color scheme inheritance was present in v3.16.0-v3.16.2. This has been fixed, but in order to preserve the state of affected sites, you may find this option turned on.",l.i18n),checked:!!n.stackable_use_v3_16_0_color_scheme_inheritance,onChange:e=>{a({stackable_use_v3_16_0_color_scheme_inheritance:e,stackable_global_color_scheme_generated_css:""})},__nextHasNoMarginBottom:!0}),(0,e.createElement)(o.CheckboxControl,{label:(0,s.__)("Block Defaults (Deprecated)",l.i18n),className:p((0,s.__)("Block Defaults (Sunsetted)",l.i18n),c),help:(0,s.__)("Default state of blocks were previously allowed to be saved. This functionality has since been sunsetted in lieu of the Stackable Design System. Use at your own risk as this feature is slated to be removed in a future version.",l.i18n),checked:n.stackable_enable_block_defaults,onChange:e=>{a({stackable_enable_block_defaults:e})},__nextHasNoMarginBottom:!0})),(null===u.children||u.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Migration Settings",l.i18n)),(0,e.createElement)("p",null,(0,s.__)("After enabling the version 2 blocks, please refresh the page to re-fetch the blocks from the server.",l.i18n)),(0,e.createElement)("p",null,(0,s.__)("Migrating from version 2 to version 3?",l.i18n)," ",(0,e.createElement)("a",{target:"_docs",href:"https://docs.wpstackable.com/article/462-migrating-from-version-2-to-version-3?utm_source=wp-settings-migrating&utm_campaign=learnmore&utm_medium=wp-dashboard"},(0,s.__)("Learn more about migration and the settings below",l.i18n))),(0,e.createElement)(o.CheckboxControl,{label:(0,s.__)("Load version 2 blocks in the editor",l.i18n),className:p((0,s.__)("Load version 2 blocks in the editor",l.i18n),u),checked:"1"===n.stackable_v2_editor_compatibility,onChange:e=>{e&&a({stackable_v2_editor_compatibility_usage:""}),a({stackable_v2_editor_compatibility:e?"1":""})},__nextHasNoMarginBottom:!0}),(0,e.createElement)(o.CheckboxControl,{label:(0,s.__)("Load version 2 blocks in the editor only when the page was using version 2 blocks",l.i18n),className:p((0,s.__)("Load version 2 blocks in the editor only when the page was using version 2 blocks",l.i18n),u),checked:"1"===n.stackable_v2_editor_compatibility_usage,onChange:e=>{e&&a({stackable_v2_editor_compatibility:""}),a({stackable_v2_editor_compatibility_usage:e?"1":""})},__nextHasNoMarginBottom:!0}),(0,e.createElement)(o.CheckboxControl,{disabled:"1"===n.stackable_v2_editor_compatibility||"1"===n.stackable_v2_editor_compatibility_usage,label:(0,s.__)("Load version 2 frontend block stylesheet and scripts for backward compatibility",l.i18n),className:p((0,s.__)("Load version 2 frontend block stylesheet and scripts for backward compatibility",l.i18n),u),checked:"1"===n.stackable_v2_editor_compatibility||"1"===n.stackable_v2_editor_compatibility_usage||"1"===n.stackable_v2_frontend_compatibility,onChange:e=>{a({stackable_v2_frontend_compatibility:e?"1":""})},__nextHasNoMarginBottom:!0}))):(0,e.createElement)("h3",null,(0,s.__)("No matching settings",l.i18n)))},de=t=>{const n=t.filteredSearchTree.find((e=>"v2-settings"===e.id)).groups,o=n.find((e=>"optimizations"===e.id)),a=n.find((e=>"blocks"===e.id)),r=p()(["s-v2-settings",{"s-settings-hide":"v2-settings"!==t.currentTab}]);return(0,e.createElement)("div",{className:r},(null===o.children||o.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("🏃♂️ Optimization Settings",l.i18n)," (V2)"),(0,e.createElement)("p",{className:"s-settings-subtitle"},(0,s.__)("Here are some settings that you can tweak to optimize Stackable.",l.i18n),(0,e.createElement)("a",{href:"https://docs.wpstackable.com/article/460-how-to-use-optimization-settings?utm_source=wp-settings-global-settings&utm_campaign=learnmore&utm_medium=wp-dashboard",target:"_docs"},(0,s.__)("Learn more.",l.i18n)," "),(0,e.createElement)("br",null),(0,e.createElement)("strong",null,(0,s.__)("This only works for version 2 blocks.",l.i18n))),(0,e.createElement)(z,{searchedSettings:o.children})),(null===a.children||a.children.length>0)&&(0,e.createElement)("div",{className:"s-setting-group"},(0,e.createElement)("h2",null,(0,s.__)("Enable & Disable Blocks",l.i18n)," (V2)"),(0,e.createElement)("strong",null,(0,s.__)("This only works for version 2 blocks.",l.i18n)),(0,e.createElement)(H,{blocks:j,disabledBlocks:l.v2disabledBlocks,searchedSettings:a.children})))};(0,n.Z)((()=>{document.querySelector(".s-getting-started__body")&&(0,a.s)(document.querySelector(".s-getting-started__body")).render((0,e.createElement)(R,null)),document.querySelector(".s-getting-started__block-list")&&(0,a.s)(document.querySelector(".s-getting-started__block-list")).render((0,e.createElement)(Y,null)),document.querySelector(".s-sidenav")&&(0,a.s)(document.querySelector(".s-sidenav")).render((0,e.createElement)(Q,null)),document.querySelector(".s-rest-settings-notice")&&(0,a.s)(document.querySelector(".s-rest-settings-notice")).render((0,e.createElement)(K,null)),document.querySelector(".s-content")&&(0,a.s)(document.querySelector(".s-content")).render((0,e.createElement)(te,null))}))})()})();
/home/batcwwjx/././www/wp-content/plugins/stackable-ultimate-gutenberg-blocks/dist/admin_welcome.js