b0y-101 Mini Shell


Current Path : E:/www2/risk/administrator/components/com_sppagebuilder/assets/editor/dist/js/
File Upload :
Current File : E:/www2/risk/administrator/components/com_sppagebuilder/assets/editor/dist/js/bundle.min.js

/*! For license information please see bundle.min.js.LICENSE.txt */
(()=>{var e,t,r,n,o,i={3871:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(824),o=r(4185),i=r(917),a=r(1921),l=r(7294),c=r(935),u=r(5944);function s(e){return s="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},s(e)}var d=["type","children","variant","icon","iconPosition","loading","disabled","tabIndex","onClick","buttonCss","buttonContentCss"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=l.forwardRef((function(e,t){var r=e.type,n=void 0===r?"button":r,o=e.children,i=e.variant,a=void 0===i?"primary":i,l=e.icon,s=e.iconPosition,p=void 0===s?"left":s,v=e.loading,h=void 0!==v&&v,b=e.disabled,y=void 0!==b&&b,g=e.tabIndex,E=e.onClick,_=e.buttonCss,O=e.buttonContentCss,w=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,d);return(0,u.BX)("button",f(f({type:n,ref:t,css:[m.button(a,h,y),_,";label:Button;"],onClick:E,tabIndex:g,disabled:y},w),{},{children:[h&&!y&&(0,u.tZ)("span",{css:m.spinner,children:(0,u.tZ)(c.ZP,{})}),(0,u.BX)("span",{css:[m.buttonContent(!!l,h,y),O,";label:Button;"],children:[l&&"left"===p&&l,o,l&&"right"===p&&l]})]}))}));var b={name:"1t5pu0q-buttonContent",styles:"color:transparent;label:buttonContent;"},y={name:"6t5tt6-button",styles:"pointer-events:none;label:button;"},m={button:function(e,t,r){return(0,i.iv)(a.iZ.resetButton,";display:inline-block;",o.c.body("medium"),";text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:0;padding:",n.W0[6]," ",n.W0[16],";border-radius:",n.E0[6],";z-index:",n.W5.level,";transition:all 150ms ease-in-out;position:relative;","primary"===e&&(0,i.iv)("background-color:",n.qo.action.primary.default,";color:",n.qo.base.white,";&:hover{background-color:",n.qo.action.primary.hover,";}&:active{background-color:",n.qo.action.primary.focus,";}",(r||t)&&(0,i.iv)("background-color:",n.qo.action.primary.disabled,";color:",n.qo.text.disabled,";svg{color:",n.qo.icon.disabled,";};label:button;"),";;label:button;")," ","secondary"===e&&(0,i.iv)("color:",n.qo.text.default,";font-weight:",n.Ue.regular,";line-height:",n.Nv[18],";border:1px solid ",n.qo.action.outline.default,";transition:border-color 0.2s ease;background-color:",n.qo.background.white,";svg{color:",n.qo.icon.default,";}&:hover{color:",n.qo.text.primary,";border-color:",n.qo.action.outline.hover,";background-color:",n.qo.background.white,";svg{color:",n.qo.icon.primary,";}}&:active{color:",n.qo.text.primary,";border-color:",n.qo.action.outline.focus,";}",(r||t)&&(0,i.iv)("color:",n.qo.text.disabled,";border-color:",n.qo.action.outline.disabled,";svg{color:inherit;};label:button;"),";;label:button;")," ","error"===e&&(0,i.iv)("background-color:",n.qo.action.error.default,";color:",n.qo.base.white,";&:hover{background-color:",n.qo.action.error.hover,";}&:active{background-color:",n.qo.action.error.focus,";}",(r||t)&&(0,i.iv)("background-color:",n.qo.action.error.disabled,";color:",n.qo.text.disabled,";;label:button;"),";;label:button;")," ","text"===e&&(0,i.iv)("color:",n.qo.text.default,";font-weight:",n.Ue.regular,";svg{color:",n.qo.icon.default,";}&:hover{color:",n.qo.text.primary,";svg{color:",n.qo.icon.primary,";}}&:active{color:",n.qo.text.primary,";}",(r||t)&&(0,i.iv)("color:",n.qo.text.disabled,";svg{color:",n.qo.icon.disabled,";};label:button;"),";;label:button;")," ",(r||t)&&y,";;label:button;")},buttonContent:function(e,t,r){return(0,i.iv)("display:flex;align-items:center;",e&&(0,i.iv)("gap:",n.W0[8],";;label:buttonContent;")," ",t&&!r&&b,";;label:buttonContent;")},spinner:{name:"k6liae-spinner",styles:"position:absolute;visibility:visible;display:flex;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);label:spinner;"}}},9085:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(824),o=r(917),i=r(230),a=r(7294),l=r(5944),c=a.forwardRef((function(e,t){var r=e.id,n=void 0===r?(0,i.x0)():r,o=e.name,a=e.labelCss,c=e.inputCss,u=e.label,s=void 0===u?"":u,p=e.value,f=e.onChange,v=e.onBlur,h=e.checked,b=e.disabled,y=void 0!==b&&b,m=e.isIndeterminate,g=void 0!==m&&m;return(0,l.BX)("label",{htmlFor:n,css:[d.container,a,";label:Checkbox;"],children:[(0,l.tZ)("input",{ref:t,id:n,name:o,type:"checkbox",value:p,checked:!!h,disabled:y,"aria-invalid":e["aria-invalid"],onChange:function(e){f&&f(!(!g||h)||e.target.checked,e)},onBlur:v,css:[c,d.checkbox({hasLabel:!!s,isIndeterminate:g,disabled:y,isChecked:!!h}),";label:Checkbox;"]}),(0,l.tZ)("span",{}),s]})})),u={name:"1h0moe-checkbox",styles:"background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='2' fill='none'%3E%3Crect width='10' height='1.5' y='.25' fill='%23fff' rx='.75'/%3E%3C/svg%3E\");background-size:10px;label:checkbox;"},s={name:"ogyiao-checkbox",styles:"background-image:url(\"data:image/svg+xml,%3Csvg width='10' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.99 9.241a.685.685 0 0 0 .6-.317l4.59-7.149a.793.793 0 0 0 .146-.43C9.326 1 9.082.76 8.73.76c-.239 0-.385.088-.532.317L3.965 7.791 1.792 5.003c-.146-.19-.298-.269-.513-.269-.351 0-.605.25-.605.591 0 .152.054.298.18.45l2.53 3.154c.17.215.351.312.605.312Z' fill='%23fff'/%3E%3C/svg%3E\");background-size:10px 10px;label:checkbox;"},d={container:{name:"av2t4k-container",styles:"display:flex;align-items:center;cursor:pointer;user-select:none;label:container;"},checkbox:function(e){var t=e.hasLabel,r=e.isIndeterminate,i=e.disabled,a=e.isChecked;return(0,o.iv)("position:absolute;opacity:0;height:0;width:0;&+span{position:relative;cursor:pointer;font-size:",n.JB[14],";display:inline-flex;align-items:center;",t&&(0,o.iv)("margin-right:",n.W0[8],";;label:checkbox;")," &:hover::before{border:1px solid ",n.qo.stroke.primary,";}}&+span::before{content:'';background-color:",n.qo.base.white,";border:1px solid ",n.qo.stroke.disabled,";border-radius:3px;box-shadow:",n.AF.button,";width:18px;height:18px;",i&&(0,o.iv)("background-color:",n.qo.icon.disabled,";;label:checkbox;")," ",(a||r)&&(0,o.iv)("background-repeat:no-repeat;background-position:center center;background-color:",n.qo.base.primary,";border:1px solid ",n.qo.stroke.primary,";;label:checkbox;")," ",a&&s," ",r&&!a&&u,";};label:checkbox;")}};const p=c},487:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(824),o=r(4185),i=r(917),a=(r(7294),r(9655)),l=r(935),c=r(5944);const u=function(e){var t=e.href,r=e.target,n=void 0===r?"_self":r,o=e.children,i=e.variant,u=void 0===i?"primary":i,s=e.icon,d=e.iconPosition,f=void 0===d?"left":d,v=e.loading,h=void 0!==v&&v,b=e.disabled,y=void 0!==b&&b,m=e.tabIndex,g=e.buttonCss,E=e.buttonContentCss,_=e.replace,O=void 0!==_&&_;return(0,c.BX)(a.rU,{css:[p.button(u,h,y),g,";label:LinkButton;"],tabIndex:m,to:t,target:n,rel:"_blank"===n?"noopener noreferrer nofollow":"",replace:O,relative:"path",children:[h&&!y&&(0,c.tZ)("span",{css:p.spinner,children:(0,c.tZ)(l.ZP,{})}),(0,c.BX)("span",{css:[p.buttonContent(!!s,h,y),E,";label:LinkButton;"],children:[s&&"left"===f&&s,o,s&&"right"===f&&s]})]})};var s={name:"1t5pu0q-buttonContent",styles:"color:transparent;label:buttonContent;"},d={name:"6t5tt6-button",styles:"pointer-events:none;label:button;"},p={button:function(e,t,r){return(0,i.iv)("all:unset;display:inline-block;",o.c.body("medium"),";text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:0;padding:",n.W0[6]," ",n.W0[16],";border-radius:",n.E0[6],";z-index:",n.W5.level,";transition:all 150ms ease-in-out;position:relative;&::before,&::after{content:''!important;all:unset!important;}","primary"===e&&(0,i.iv)("background-color:",n.qo.action.primary.default,";color:",n.qo.base.white,";&:hover{background-color:",n.qo.action.primary.hover,";color:",n.qo.text.white,";}&:active{background-color:",n.qo.action.primary.focus,";}",(r||t)&&(0,i.iv)("background-color:",n.qo.action.primary.disabled,";color:",n.qo.text.disabled,";;label:button;"),";;label:button;")," ","secondary"===e&&(0,i.iv)("color:",n.qo.text.default,";font-weight:",n.Ue.regular,";line-height:",n.Nv[18],";border:1px solid ",n.qo.action.outline.default,";transition:border-color 0.2s ease;svg{color:",n.qo.icon.primary,";}&:hover{color:",n.qo.text.primary,";border-color:",n.qo.action.outline.hover,";}&:active{color:",n.qo.text.primary,";border-color:",n.qo.action.outline.focus,";}",(r||t)&&(0,i.iv)("color:",n.qo.text.disabled,";border-color:",n.qo.action.outline.disabled,";svg{color:inherit;};label:button;"),";;label:button;")," ","text"===e&&(0,i.iv)("color:",n.qo.text.default,";font-weight:",n.Ue.regular,";&:hover{color:",n.qo.text.primary,";}&:active{color:",n.qo.text.primary,";}",(r||t)&&(0,i.iv)("color:",n.qo.text.disabled,";;label:button;"),";;label:button;")," ",(r||t)&&d,";;label:button;")},buttonContent:function(e,t,r){return(0,i.iv)("display:flex;align-items:center;",e&&(0,i.iv)("gap:",n.W0[4],";;label:buttonContent;")," ",t&&!r&&s,";;label:buttonContent;")},spinner:{name:"k6liae-spinner",styles:"position:absolute;visibility:visible;display:flex;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);label:spinner;"}}},935:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>h,fz:()=>f,g4:()=>v});var n,o,i=r(824),a=r(917),l=r(5944);function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var u=(0,a.F4)(n||(n=c(["\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n"]))),s=(0,a.F4)(o||(o=c(["\n  0% {\n    stroke-dashoffset: 180;\n    transform: rotate(0deg);\n  }\n  50% {\n    stroke-dashoffset: ",";\n    transform: rotate(135deg);\n  }\n  100% {\n    stroke-dashoffset: 180;\n    transform: rotate(360deg);\n  }\n"])),45),d={fullscreen:(0,a.iv)("display:flex;align-items:center;justify-content:center;height:100vh;width:100vw;background-color:",i.qo.background.white,";;label:fullscreen;"),loadingOverlay:(0,a.iv)("position:absolute;top:0;bottom:0;right:0;left:0;display:flex;align-items:center;justify-content:center;background-color:",i.qo.background.white,";;label:loadingOverlay;"),loadingSection:{name:"1bcp2kg-loadingSection",styles:"width:100%;height:100px;display:flex;justify-content:center;align-items:center;label:loadingSection;"},svg:(0,a.iv)("animation:",u," 1.4s linear infinite;;label:svg;"),spinnerPath:(0,a.iv)("stroke-dasharray:180;stroke-dashoffset:0;transform-origin:center;animation:",s," 1.4s linear infinite;;label:spinnerPath;")},p=function(e){var t=e.size,r=void 0===t?30:t,n=e.color,o=void 0===n?i.qo.icon.disabled:n;return(0,l.tZ)("svg",{width:r,height:r,css:d.svg,viewBox:"0 0 86 86",xmlns:"http://www.w3.org/2000/svg",children:(0,l.tZ)("circle",{css:d.spinnerPath,fill:"none",stroke:o,strokeWidth:"6",strokeLinecap:"round",cx:"43",cy:"43",r:"30"})})},f=function(){return(0,l.tZ)("div",{css:d.loadingOverlay,children:(0,l.tZ)(p,{})})},v=function(){return(0,l.tZ)("div",{css:d.loadingSection,children:(0,l.tZ)(p,{})})};const h=p},3579:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(824),o=r(4185),i=r(917),a=r(230),l=r(7294),c=r(5944),u=l.forwardRef((function(e,t){var r=e.name,n=e.checked,o=e.readOnly,i=e.disabled,l=void 0!==i&&i,u=e.showRadioIcon,d=void 0!==u&&u,p=e.labelCss,f=e.inputCss,v=e.iconWrapperCss,h=e.label,b=void 0===h?"":h,y=e.icon,m=e.value,g=e.onChange,E=e.onBlur,_=(0,a.x0)();return(0,c.BX)("label",{htmlFor:_,css:[s.container({disabled:l}),p,";label:Radio;"],children:[(0,c.tZ)("input",{ref:t,id:_,name:r,type:"radio",checked:n,readOnly:o,value:m,disabled:l,onChange:g,onBlur:E,css:[s.radio({label:b,showRadioIcon:d}),f,";label:Radio;"]}),d&&(0,c.tZ)("span",{}),(0,c.tZ)("span",{css:v,children:y}),b]})})),s={container:function(e){var t=e.disabled,r=void 0!==t&&t;return(0,i.iv)(o.c.body(),";display:flex;align-items:center;cursor:pointer;user-select:none;",r&&(0,i.iv)("color:",n.qo.text.disabled,";;label:container;"),";;label:container;")},radio:function(e){var t=e.label,r=void 0===t?"":t,o=e.showRadioIcon,a=void 0!==o&&o;return(0,i.iv)("position:absolute;opacity:0;height:0;width:0;cursor:pointer;",a&&(0,i.iv)("&+span{position:relative;cursor:pointer;height:15px;width:15px;background-color:",n.qo.background.white,";border:2px solid ",n.qo.icon.disabled,";border-radius:100%;",r&&(0,i.iv)("margin-right:",n.W0[10],";;label:radio;"),";}&+span::before{content:'';position:absolute;left:",n.W0[2],";top:",n.W0[2],";background-color:",n.qo.background.white,";width:7px;height:7px;border-radius:100%;}&:checked+span{border-color:",n.qo.base.primary,";}&:checked+span::before{background-color:",n.qo.base.primary,";};label:radio;"),";;label:radio;")}};const d=u},9371:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(824),o=r(917),i=r(667),a=(r(6597),r(5944));const l=function(e){var t=e.value,r=e.onChange,n=e.min,o=e.max,l=e.disabled,u=void 0!==l&&l,s=e.rangeStyle,d=e.step;return(0,a.tZ)(i.Z,{value:t,onChange:function(e){"number"==typeof e&&r&&r(e)},min:Number(n),max:Number(o),disabled:u,css:[c.slider(u),s,";label:Range;"],step:d})};var c={slider:function(e){return(0,o.iv)("padding:",n.W0[6]," 0;min-width:80px;&.rc-slider-disabled{background-color:transparent;}.rc-slider-rail{height:3px;background-color:",n.qo.stroke.disabled,";border-radius:",n.E0[4],";}.rc-slider-track{height:3px;background-color:",n.qo.base.primary,";border-radius:",n.E0[4],";",e&&(0,o.iv)("background-color:",n.qo.text.disabled,";;label:slider;"),";}.rc-slider-handle{height:8px;width:8px;background-color:",n.qo.base.primary,";border-radius:",n.E0.circle,";border:1px solid ",n.qo.stroke.white,";box-shadow:0px 1px 2px rgba(2, 11, 83, 0.3);margin-top:-3px;opacity:1;",e&&(0,o.iv)("background-color:",n.qo.text.disabled,";;label:slider;"),";}.rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging{box-shadow:0px 0px 2px 1px rgba(2, 11, 83, 0.3);border-color:#eff4fb;};label:slider;")}}},7264:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(917),o=r(230),i=r(5944);const a=function(e){var t=e.name,r=e.width,n=void 0===r?16:r,a=e.height,l=void 0===a?16:a,u=e.style,s=e.noFill,d=void 0!==s&&s,p=(0,o.q7)(t);return(0,o.$K)(p)?(0,i.tZ)("svg",{css:[{width:n,height:l},c.svg(d),u,";label:SVGIcon;"],xmlns:"http://www.w3.org/2000/svg",viewBox:p.viewBox,dangerouslySetInnerHTML:{__html:p.icon}}):null};var l={name:"p5egc1-svg",styles:"fill:none;label:svg;"},c={svg:function(e){return(0,n.iv)(e&&l,";;label:svg;")}}},7870:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n=r(824),o=r(4185),i=r(917),a=r(36),l=r(4411),c=r(1954),u=r(1234),s=r(1921),d=r(230),p=r(7294),f=r(3871),v=r(935),h=r(7264),b=r(5944);function y(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(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 m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||g(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 g(e,t){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _=function(e){var t=e.options,r=e.onChange,n=void 0===r?d.ZT:r,o=e.clearOption,i=void 0===o?d.ZT:o,s=e.label,g=e.placeholder,E=void 0===g?"":g,_=e.readOnly,O=e.isSearchable,w=void 0!==O&&O,S=e.isClearable,I=void 0===S||S,x=e.isInlineLabel,P=void 0!==x&&x,A=e.isFontWeight,L=void 0!==A&&A,T=e.value,D=e.caretSize,Z=void 0===D?20:D,j=e.infiniteScroll,R=void 0!==j&&j,B=e.wrapperStyle,M=e.inputCss,k=e.disabled,G=e.optionsStyleVariant,N=void 0===G?"regular":G,W=(0,u.$)(),U=(0,d.x0)(),H=m((0,p.useState)(""),2),F=H[0],V=H[1],q=m((0,p.useState)(""),2),z=q[0],K=q[1],$=m((0,p.useState)(!1),2),X=$[0],Y=$[1],Q=m((0,p.useState)([]),2),J=Q[0],ee=Q[1],te=(0,a.N)(z);(0,p.useEffect)((function(){var e,r,n=null!==(e=null===(r=t.find((function(e){return String(e.value)===String(null==T?void 0:T.value)})))||void 0===r?void 0:r.label)&&void 0!==e?e:"";V(n)}),[t,T]);var re=(0,p.useMemo)((function(){return ee([]),w?t.filter((function(e){return e.label.toLowerCase().startsWith(te.toLowerCase())})):t}),[te,w,t]),ne=(0,c.l)({isOpen:X,isDropdown:!0}),oe=ne.triggerRef,ie=ne.triggerWidth,ae=ne.position,le=ne.popoverRef,ce=(0,l.Z)(),ue=ce.intersectionEntry,se=ce.intersectionElementRef,de=re.length>J.length;return(0,p.useEffect)((function(){if(R){if(null!=ue&&ue.isIntersecting&&de){var e=J.length,t=e+20;ee((function(r){return[].concat(y(r),y(re.slice(e,t)))}))}}else ee(re)}),[re,null==ue?void 0:ue.isIntersecting]),(0,b.BX)("div",{css:[C.mainWrapper,B,";label:Select;"],children:[(0,b.BX)("div",{css:C.inputLabelWrapper(P),ref:oe,children:[!!s&&(0,b.tZ)("label",{htmlFor:U,css:C.label(P),children:s}),(0,b.BX)("div",{css:[C.inputWrapper,M,";label:Select;"],children:[(0,b.tZ)("input",{id:U,onClick:function(){return Y((function(e){return!e}))},onFocus:function(){return Y(!0)},css:C.input({isSearchable:w}),autoComplete:"off",readOnly:_||!w,placeholder:E,value:F,onChange:function(e){V(e.target.value),K(e.target.value)},disabled:k}),(0,b.tZ)("button",{type:"button",css:C.caretButton,onClick:function(){Y((function(e){return!e}))},disabled:k||_||0===t.length,children:(0,b.tZ)(h.Z,{name:"chevronDown",width:Z,height:Z,style:C.toggleIcon({isOpen:X})})})]})]}),(0,b.tZ)(c.h,{isOpen:X,onClickOutside:function(){return Y(!1)},children:(0,b.BX)("div",{css:[C.optionsWrapper,{left:ae.left,top:ae.top,maxWidth:ie},";label:Select;"],ref:le,children:[(0,b.BX)("ul",{css:C.options,children:[J.map((function(e){return(0,b.tZ)("li",{css:C.optionItem({isSelected:e.value===(null==T?void 0:T.value),optionsStyleVariant:N,isDisabled:!!e.disabled}),children:(0,b.tZ)(f.Z,{variant:"text",buttonCss:C.optionButton({fontWeight:L?e.value:"inherit"}),onClick:function(){V(e.label),K(""),n(e),Y(!1)},children:e.label})},String(e.value))})),(0,b.tZ)("div",{ref:se,css:C.spinnerWrapper({isVisible:de}),children:(0,b.tZ)(v.ZP,{})})]}),I&&(0,b.tZ)("div",{css:C.clearButton({isDisabled:""===F}),children:(0,b.tZ)(f.Z,{variant:"text",disabled:""===F,icon:(0,b.tZ)(h.Z,{name:"recycleAlt"}),onClick:function(){i(),V(""),K(""),Y(!1)},children:W("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})]})};var O={name:"9jddly-spinnerWrapper",styles:"display:none;label:spinnerWrapper;"},w={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},S={name:"zjfq51-input",styles:"cursor:pointer;label:input;"},I={name:"1je746r-label",styles:"flex:1;label:label;"},x={name:"1nbzsgk-inputLabelWrapper",styles:"display:flex;flex-direction:row;align-items:center;justify-content:space-between;>div{flex:1;};label:inputLabelWrapper;"},C={mainWrapper:{name:"e9i770-mainWrapper",styles:"width:100%;label:mainWrapper;"},inputLabelWrapper:function(e){return(0,i.iv)("width:100%;display:flex;flex-direction:column;gap:",n.W0[4],";",e&&x,";;label:inputLabelWrapper;")},label:function(e){return(0,i.iv)(o.c.caption()," ",e&&I,";;label:label;")},inputWrapper:{name:"pdux79-inputWrapper",styles:"width:100%;position:relative;label:inputWrapper;"},input:function(e){var t=e.isSearchable;return(0,i.iv)(o.c.body(),";width:100%;height:32px;border-radius:",n.E0[5],";border:1px solid ",n.qo.stroke.neutral,";box-shadow:",n.AF.input,";padding:0 ",n.W0[32]," 0 ",n.W0[12],";color:",n.qo.text.default,";appearance:textfield;",!t&&S," :focus{outline:none;box-shadow:",n.AF.outline,";}::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}::placeholder{color:",n.qo.text.hints,";};label:input;")},clearButton:function(e){var t=e.isDisabled,r=void 0!==t&&t;return(0,i.iv)("padding:",n.W0[4]," ",n.W0[8],";border-top:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:center;min-height:40px;&>button{padding:0;width:100%;font-size:",n.JB[12],";",!r&&(0,i.iv)("color:",n.qo.text.primary,";&:hover{text-decoration:underline;};label:clearButton;"),";>span{justify-content:center;}};label:clearButton;")},optionsWrapper:(0,i.iv)("position:absolute;width:100%;z-index:",n.W5.dropdown,";background-color:",n.qo.base.white,";box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:optionsWrapper;"),options:(0,i.iv)("list-style-type:none;max-height:500px;padding:",n.W0[4]," 0;margin:0;",s.iZ.overflowYAuto,";;label:options;"),optionItem:function(e){var t=e.isSelected,r=void 0!==t&&t,a=e.isDisabled,l=void 0!==a&&a,c=e.optionsStyleVariant,u=void 0===c?"regular":c;return(0,i.iv)(o.c.body(),";min-height:36px;height:100%;width:100%;display:flex;align-items:center;transition:background-color 0.3s ease-in-out;cursor:pointer;",l&&(0,i.iv)("pointer-events:none;>button{color:",n.qo.text.disabled,";};label:optionItem;")," &:hover{background-color:",n.qo.background.hover,";}","small"===u&&(0,i.iv)(">button{",o.c.caption(),";};label:optionItem;")," ",r&&(0,i.iv)("background-color:",n.qo.background.active,";position:relative;&::before{content:'';position:absolute;top:0;left:0;width:3px;height:100%;background-color:",n.qo.action.primary.default,";border-radius:0 ",n.E0[6]," ",n.E0[6]," 0;};label:optionItem;"),";;label:optionItem;")},optionButton:function(e){var t=e.fontWeight,r=void 0===t?"inherit":t;return(0,i.iv)("width:100%;padding:",n.W0[8]," ",n.W0[12],";font-weight:",r,";;label:optionButton;")},toggleIcon:function(e){var t=e.isOpen,r=void 0!==t&&t;return(0,i.iv)("color:",n.qo.icon.default,";transition:transform 0.3s ease-in-out;",r&&w,";;label:toggleIcon;")},optionsContainer:{name:"1fif7on-optionsContainer",styles:"position:absolute;overflow:hidden auto;min-width:16px;min-height:16px;max-width:calc(100% - 32px);max-height:calc(100% - 32px);label:optionsContainer;"},caretButton:(0,i.iv)(s.iZ.resetButton,";position:absolute;top:0;bottom:0;right:",n.W0[8],";margin:auto 0;;label:caretButton;"),spinnerWrapper:function(e){var t=e.isVisible,r=void 0!==t&&t;return(0,i.iv)("width:100%;display:flex;justify-content:center;align-items:center;",!r&&O,";;label:spinnerWrapper;")}}},9313:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n,o=r(824),i=r(917),a=r(230),l=r(5944);const c=function(e){var t=e.width,r=void 0===t?"100%":t,n=e.height,o=void 0===n?16:n,i=e.animation,a=void 0!==i&&i;return(0,l.tZ)("span",{css:p.skeleton(r,o,a)})};var u,s,d={wave:(0,i.F4)(n||(u=["\n    0% {\n      transform: translateX(-100%);\n    }\n    50% {\n      transform: translateX(0%);\n    }\n    100% {\n      transform: translateX(100%);\n    }\n  "],s||(s=u.slice(0)),n=Object.freeze(Object.defineProperties(u,{raw:{value:Object.freeze(s)}}))))},p={skeleton:function(e,t,r){return(0,i.iv)("display:block;width:",(0,a.hj)(e)?"".concat(e,"px"):e,";height:",(0,a.hj)(t)?"".concat(t,"px"):t,";border-radius:",o.E0[6],";background-color:rgba(0, 0, 0, 0.11);position:relative;-webkit-mask-image:-webkit-radial-gradient(center, white, black);overflow:hidden;",r&&(0,i.iv)(":after{content:'';background:linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);position:absolute;transform:translateX(-100%);inset:0;animation:1.6s linear 0.5s infinite normal none running ",d.wave,";};label:skeleton;"),";;label:skeleton;")}}},5791:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(824),o=r(917),i=r(7273),a=r(230),l=r(7294),c=r(5944),u=l.forwardRef((function(e,t){var r=e.id,n=void 0===r?(0,a.x0)():r,o=e.name,l=e.value,u=e.checked,d=e.disabled,p=e.onChange;return(0,c.tZ)("div",{css:s.wrapperStyle,children:(0,c.tZ)("input",{ref:t,value:(0,i.sw)(l)?String(l):void 0,type:"checkbox",name:o,id:n,checked:!!u,disabled:d,css:s.switchStyles,onChange:function(e){p&&p(e.target.checked,e)}})})})),s={wrapperStyle:(0,o.iv)("display:flex;align-items:center;justify-content:space-between;width:fit-content;column-gap:",n.W0[12],";;label:wrapperStyle;"),switchStyles:(0,o.iv)("appearance:none;border:0;width:28px;height:12px;background-color:",n.qo.icon.neutral,";box-shadow:",n.AF.switch,";border-radius:",n.E0[10],";position:relative;display:inline-block;vertical-align:middle;cursor:pointer;transition:background-color 0.15s cubic-bezier(0.785, 0.135, 0.15, 0.86);&:after{content:'';position:absolute;top:-",n.W0[2],";left:-",n.W0[2],";width:16px;height:16px;background-color:",n.qo.icon.disabled,";border-radius:",n.E0.circle,";transition:left 0.15s cubic-bezier(0.785, 0.135, 0.15, 0.86);filter:drop-shadow(",n.AF.switchKnob,");}&:checked{background:",n.qo.base.surface,";&:after{background:",n.qo.base.primary,";left:",n.W0[16],";}}&:disabled{pointer-events:none;filter:none;opacity:0.5;};label:switchStyles;")};const d=u},7025:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(3871),o=r(7264),i=r(824),a=r(4185),l=r(917),c=r(1234),u=r(7273),s=r(7294),d=r(627),p=r(5944);const f=function(e){var t=e.label,r=e.isInlineLabel,i=e.type,a=void 0===i?"text":i,l=e.value,f=e.disabled,h=e.readOnly,b=e.placeholder,y=e.onChange,m=e.onBlur,g=e.onKeyDown,E=e.onFocus,_=e.isClearable,O=e.handleMediaIconClick,w=e.variant,S=void 0===w?"regular":w,I=e.focusOnMount,x=void 0!==I&&I,C=e.inputCss,P=e.helperText,A=(0,s.useId)(),L=(0,c.$)(),T=(0,s.useRef)(null);return(0,s.useEffect)((function(){x&&T.current&&T.current.focus()}),[x]),(0,p.BX)("div",{css:v.inputContainer(r),children:[!!t&&(P?(0,p.tZ)(d.Z,{content:L(P),isVisibleOnClick:!0,children:(0,p.tZ)("label",{htmlFor:A,css:v.label(r),children:L(t)})}):(0,p.tZ)("label",{htmlFor:A,css:v.label(r),children:t})),(0,p.BX)("div",{css:v.inputWrapper,children:[(0,p.tZ)("input",{ref:T,id:A,type:"text",css:[v.input(S),C,";label:TextInput;"],value:l||"",onChange:function(e){var t=e.target.value,r="number"===a?(0,u.jv)(t):t;y(r)},onKeyDown:function(e){g&&g(e.key,e)},onBlur:function(e){var t=e.target.value,r="number"===a?(0,u.jv)(t):t;m&&m(r)},onFocus:function(e){E&&E(e)},placeholder:b,readOnly:h,disabled:f,autoComplete:"off"}),"search"===S&&(0,p.tZ)("span",{css:v.searchIcon,children:(0,p.tZ)(o.Z,{name:"search",width:20,height:20})}),_&&!!l&&(0,p.tZ)("div",{css:v.rightIconButton,children:(0,p.tZ)(n.Z,{variant:"text",onClick:function(){return y("")},children:(0,p.tZ)(o.Z,{name:"cross"})})}),!!O&&"search"!==S&&!l&&(0,p.tZ)("div",{css:v.rightIconButton,children:(0,p.tZ)(n.Z,{variant:"text",onClick:O,children:(0,p.tZ)(o.Z,{name:"upload"})})})]})]})};var v={inputContainer:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,l.iv)("display:flex;flex-direction:column;gap:",i.W0[4],";width:100%;",e&&(0,l.iv)("flex-direction:row;align-items:center;gap:",i.W0[12],";justify-content:space-between;height:32px;;label:inputContainer;"),";;label:inputContainer;")},label:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,l.iv)(a.c.caption()," ",e&&(0,l.iv)("color:",i.qo.text.default,";;label:label;"),";;label:label;")},inputWrapper:{name:"1rdjunr-inputWrapper",styles:"position:relative;label:inputWrapper;"},input:function(e){return(0,l.iv)(a.c.body()," width:100%;height:32px;border-radius:",i.E0[5],";border:1px solid ",i.qo.stroke.neutral,";box-shadow:",i.AF.input,";padding:0 ",i.W0[32]," 0 ",i.W0[12],";color:",i.qo.text.default,";appearance:textfield;:focus{outline:none;box-shadow:none;}::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}::placeholder{color:",i.qo.text.hints,";}","search"===e&&(0,l.iv)("padding-left:",i.W0[36],";;label:input;"),";;label:input;")},rightIconButton:(0,l.iv)("position:absolute;right:0;top:0;button{padding:",i.W0[8],";};label:rightIconButton;"),searchIcon:(0,l.iv)("position:absolute;top:50%;left:",i.W0[8],";transform:translateY(-50%);color:",i.qo.icon.default,";line-height:0;;label:searchIcon;")}},1731:(e,t,r)=>{"use strict";r.d(t,{Z:()=>O,p:()=>_});var n=r(824),o=r(4185),i=r(917),a=r(7038),l=r(8144),c=r(230),u=r(7294),s=r(3871),d=r(7264),p=r(5944);function f(e){return f="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},f(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g={type:"dark",message:"",autoCloseDelay:3500,position:"bottom-right"},E=u.createContext({showToast:c.ZT}),_=function(){return(0,u.useContext)(E)};const O=function(e){var t,r,n=e.children,o=e.position,i=void 0===o?"bottom-right":o,f=(t=(0,u.useState)([]),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||y(t,r)||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.")}()),v=f[0],b=f[1],_=(0,l.Yz)(v,{from:{opacity:0,y:-40},enter:{opacity:1,y:0},leave:{opacity:.5,y:100},config:{duration:300}}),O=(0,u.useCallback)((function(e){var t,r=h(h(h({},g),e),{},{id:(0,c.x0)()});return b((function(e){return[r].concat(function(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(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.")}()}(e))})),!(0,c.jn)(r.autoCloseDelay)&&r.autoCloseDelay&&(t=setTimeout((function(){b((function(e){return e.slice(0,-1)}))}),r.autoCloseDelay)),function(){clearTimeout(t)}}),[]);return(0,p.BX)(E.Provider,{value:{showToast:O},children:[n,(0,p.tZ)("div",{css:w.toastWrapper(i),children:_((function(e,t){return(0,p.BX)(a.XJ,{style:e,css:w.toastItem(t.type),children:[(0,p.tZ)("h5",{css:w.message,children:t.message}),(0,p.tZ)(s.Z,{variant:"text",buttonCss:w.closeButton,onClick:function(){b((function(e){return e.filter((function(e){return e.id!==t.id}))}))},children:(0,p.tZ)(d.Z,{name:"timesAlt",width:16,height:16})})]},t.id)}))})]})};var w={toastWrapper:function(e){return(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";max-width:400px;position:fixed;z-index:",n.W5.highest,";","top-left"===e&&(0,i.iv)("left:",n.W0[20],";top:calc(",n.W0[20]," + 60px);;label:toastWrapper;")," ","top-right"===e&&(0,i.iv)("right:",n.W0[20],";top:calc(",n.W0[20]," + 60px);;label:toastWrapper;")," ","top-center"===e&&(0,i.iv)("left:50%;top:calc(",n.W0[20]," + 60px);transform:translateX(-50%);;label:toastWrapper;")," ","bottom-left"===e&&(0,i.iv)("left:",n.W0[20],";bottom:",n.W0[20],";;label:toastWrapper;")," ","bottom-right"===e&&(0,i.iv)("right:",n.W0[20],";bottom:",n.W0[20],";;label:toastWrapper;")," ","bottom-center"===e&&(0,i.iv)("left:50%;bottom:",n.W0[20],";transform:translateX(-50%);;label:toastWrapper;"),";;label:toastWrapper;")},toastItem:function(e){return(0,i.iv)("width:100%;display:flex;align-items:center;justify-content:space-between;gap:",n.W0[4],";border-radius:",n.E0[6],";padding:",n.W0[8]," ",n.W0[4]," ",n.W0[8]," ",n.W0[16],";svg>path{color:",n.qo.base.white,";}","dark"===e&&(0,i.iv)("background:",n.qo.base.black,";;label:toastItem;")," ","danger"===e&&(0,i.iv)("background:",n.qo.base.error,";;label:toastItem;")," ","success"===e&&(0,i.iv)("background:",n.qo.base.success,";;label:toastItem;")," ","warning"===e&&(0,i.iv)("background:",n.qo.base.warning,";h5{color:",n.qo.text.default,";}svg>path{color:",n.qo.text.default,";};label:toastItem;"),";;label:toastItem;")},closeButton:(0,i.iv)("padding-inline:",n.W0[8],";;label:closeButton;"),message:(0,i.iv)(o.c.heading5(),";color:",n.qo.base.white,";width:100%;text-align:center;;label:message;"),timesIcon:(0,i.iv)("path{color:",n.qo.base.white,";};label:timesIcon;")}},627:(e,t,r)=>{"use strict";r.d(t,{Z:()=>_});var n=r(824),o=r(4185),i=r(917),a=r(7038),l=r(8144),c=r(3126),u=r(1921),s=r(7294),d=r(7264),p=r(5944);function f(e){return f="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},f(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g={opacity:0,transform:"scale(0.8)"},E={tension:300,friction:15};const _=function(e){var t=e.children,r=e.content,o=e.allowHTML,i=e.isVisibleOnClick,f=e.isInteractive,v=void 0===f||f,b=e.isVisibleOnHover,m=void 0!==b&&b,_=e.placement,O=void 0===_?"top-start":_,S=e.disabled,I=void 0!==S&&S,x=e.reference,C=void 0===x?null:x,P=y((0,l.q_)((function(){return g})),2),A=P[0],L=P[1],T=y((0,s.useState)(!1),2),D=T[0],Z=T[1],j=i||m;return(0,p.tZ)(c.ZP,{render:function(e){var t;return(0,p.tZ)(a.XJ,h(h({style:A},e),{},{css:w.contentBox,children:o?(0,p.tZ)("div",{dangerouslySetInnerHTML:{__html:null!==(t=null==r?void 0:r.toString())&&void 0!==t?t:""}}):r}))},visible:j?D:void 0,animation:!0,onMount:function(){L.start({opacity:1,transform:"scale(1)",config:E})},onHide:function(e){var t=e.unmount;L.start(h(h({},g),{},{onRest:t,config:h(h({},E),{},{clamp:!0})}))},allowHTML:o,delay:[0,100],placement:O,interactive:v,onClickOutside:function(){return Z(!1)},disabled:I,reference:C,zIndex:n.W5.highest,appendTo:document.body,children:(0,p.BX)("div",{css:w.button({isVisibleOnHover:m}),onMouseEnter:m?function(){return Z(!0)}:void 0,onMouseLeave:m?function(){return Z(!1)}:void 0,children:[t,i&&(0,p.tZ)("a",{href:"#",onClick:function(e){e.preventDefault(),Z((function(e){return!e}))},css:u.iZ.resetButton,"data-help-action":!0,children:(0,p.tZ)(d.Z,{name:"questionCircle"})})]})})};var O={name:"1u43s6l-button",styles:"width:100%;height:100%;justify-content:center;label:button;"},w={contentBox:(0,i.iv)(o.c.body(),";max-width:300px;width:100%;background-color:",n.qo.base.white,";box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";padding:",n.W0[8]," ",n.W0[10],";overflow-wrap:break-word;;label:contentBox;"),button:function(e){var t=e.isVisibleOnHover,r=void 0!==t&&t;return(0,i.iv)(u.iZ.resetButton,";line-height:1;display:flex;align-items:center;gap:",n.W0[8],";",r&&O," svg{color:",n.qo.icon.default,";}[data-help-action]{transition:opacity 0.3s ease;opacity:0;};label:button;")}}},9787:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(3871),o=r(3106),i=r(824),a=r(4185),l=r(917),c=r(1234),u=r(5944);const s=function(e){var t=e.buttonSize,r=void 0===t?"normal":t,i=(0,c.$)();return(0,u.tZ)(n.Z,{buttonCss:p.buttonCss({buttonSize:r}),children:(0,u.tZ)("a",{css:p.buyProCss,href:o._y,target:"_blank",rel:"noreferrer",children:i("COM_SPPAGEBUILDER_EDITOR_BUY_PRO")})})};var d={name:"1dys5au-buyProCss",styles:"color:white;label:buyProCss;"},p={buttonCss:function(e){var t=e.buttonSize;return(0,l.iv)("small"===t&&(0,l.iv)(a.c.caption()," padding:",i.W0[6],";color:",i.qo.text.white,";;label:buttonCss;"),";;label:buttonCss;")},buyProCss:function(){return d}}},4924:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(824),o=r(917),i=r(7264),a=r(5944);const l=function(e){var t=e.onlyIcon,r=void 0!==t&&t,n=e.position,o=void 0===n?"top-right":n,l=e.isInline,c=void 0!==l&&l,u=e.size,s=void 0===u?"small":u,d=function(){return(0,a.tZ)("div",{css:p.iconWrapper({size:s}),children:(0,a.tZ)(i.Z,{name:"star"})})};return r?(0,a.tZ)(d,{}):(0,a.BX)("div",{css:p.wrapper({position:o,isInline:c,size:s}),children:[(0,a.tZ)(d,{}),(0,a.tZ)("span",{css:p.label({size:s}),children:"Pro"})]})};var c={name:"taxkac-wrapper",styles:"top:2px;left:2px;label:wrapper;"},u={name:"yqbjdl-wrapper",styles:"top:6px;left:6px;label:wrapper;"},s={name:"1w7qix7-wrapper",styles:"top:2px;right:2px;label:wrapper;"},d={name:"116h786-wrapper",styles:"top:6px;right:6px;label:wrapper;"},p={wrapper:function(e){var t=e.position,r=e.isInline,i=e.size;return(0,o.iv)("display:flex;align-items:center;background:",n.qo.background.proBackground,";border-radius:",n.E0[14],";font-weight:",n.Ue.medium,";color:",n.qo.text.white,";font-size:",n.JB[12],";line-height:",n.Nv[16],";height:22px;","small"===i&&(0,o.iv)("height:16px;font-size:",n.JB[10],";line-height:",n.Nv[16],";;label:wrapper;")," ","tiny"===i&&(0,o.iv)("height:10px;font-size:",n.JB[10],";line-height:",n.Nv[12],";;label:wrapper;")," ",!r&&(0,o.iv)("position:absolute;top:12px;","top-right"===t&&(0,o.iv)("right:12px;","small"===i&&d," ","tiny"===i&&s,";;label:wrapper;")," ","top-left"===t&&(0,o.iv)("left:12px;","small"===i&&u," ","tiny"===i&&c,";;label:wrapper;"),";;label:wrapper;"),";;label:wrapper;")},iconWrapper:function(e){var t=e.size;return(0,o.iv)("display:flex;align-items:center;border-radius:",n.E0.circle,";text-align:center;color:",n.qo.icon.white,";background-color:",n.qo.background.proLabel,";padding:",n.W0[4],";height:100%;aspect-ratio:1/1;>svg,>svg:hover{color:",n.qo.icon.white,"!important;}","tiny"===t&&(0,o.iv)("padding:",n.W0[2],";;label:iconWrapper;"),";;label:iconWrapper;")},label:function(e){var t=e.size;return(0,o.iv)("color:",n.qo.text.white,"!important;display:inline-block;padding:",n.W0[6],";","small"===t&&(0,o.iv)("padding:",n.W0[4],";;label:label;")," ","tiny"===t&&(0,o.iv)("padding:",n.W0[2],";;label:label;"),";;label:label;")}}},3169:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(824),o=r(917),i=r(9787),a=r(5944);const l=function(e){var t=e.children,r=e.enabled,n=void 0===r||r,o=e.buttonSize;return n?(0,a.BX)("div",{css:c.wrapper,children:[t,(0,a.tZ)(i.Z,{buttonSize:o})]}):(0,a.tZ)(a.HY,{children:t})};var c={wrapper:(0,o.iv)("position:relative;&>button{display:none;transition:display 0.3s ease;}&:hover{&::before{content:'';background-color:rgba(0, 0, 0, 0.6);position:absolute;height:100%;width:100%;inset:0;-webkit-backdrop-filter:blur(13px);backdrop-filter:blur(13px);border-top-left-radius:",n.E0[5],";border-top-right-radius:",n.E0[5],";}&>button{display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);}};label:wrapper;")}},7498:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(3871),o=r(7264),i=r(3106),a=r(824),l=r(917),c=r(1234),u=r(5944);const s=function(){var e=(0,c.$)();return(0,u.tZ)(n.Z,{icon:(0,u.tZ)(o.Z,{name:"premium"}),buttonCss:d.buttonCss,children:(0,u.tZ)("a",{href:i._y,target:"_blank",rel:"noreferrer",children:e("COM_SPPAGEBUILDER_EDITOR_UPGRADE_TODAY")})})};var d={buttonCss:(0,l.iv)("background-color:transparent;background:",a.qo.background.proBackground,";border-radius:",a.E0[14],";a{color:",a.qo.text.white,";}:hover{box-shadow:",a.AF.proButton,";};label:buttonCss;")}},288:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(7264),o=r(824),i=r(4185),a=r(917),l=r(1921),c=r(7294),u=r(5944);const s=function(e){var t=e.routes,r=e.onFilterChange;return(0,u.tZ)("div",{css:d.wrapper,children:t.map((function(e,o){var i=o===t.length-1;return(0,u.BX)(c.Fragment,{children:[e.link?(0,u.tZ)("button",{css:d.button,onClick:function(){return!!e.link&&r&&r(e.link)},children:e.text}):(0,u.tZ)("span",{children:e.text}),!i&&(0,u.tZ)(n.Z,{name:"angleRight",width:9,height:10})]},o)}))})};var d={wrapper:(0,a.iv)("display:flex;align-items:center;gap:",o.W0[10],";color:",o.qo.text.neutral,";>button,>span{",i.c.body("medium"),";color:inherit;text-decoration:none;}& :last-child{font-weight:400;};label:wrapper;"),button:(0,a.iv)(l.iZ.resetButton,";;label:button;")}},3:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(2393),o=r(824),i=r(36),a=r(2200),l=r(2445),c=r(2423),u=r(8307),s=r(7294),d=r(5944);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=n.tk.theme({"&.cm-editor":{border:"1px solid ".concat(o.qo.stroke.neutral),borderRadius:o.E0[5],overflow:"hidden",fontSize:"12px",height:"200px",background:o.qo.background.white},"&.cm-editor.cm-focused":{outline:"none",boxShadow:"".concat(o.AF.outline)}});const v=function(e){var t,r,n=e.value,o=e.onChange,v=(t=(0,s.useState)(""),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(t,r)||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.")}()),h=v[0],b=v[1],y=(0,i.N)(h),m=(0,a.D)(n),g=(0,l.F)((function(e){return e.payload})),E=g.addonIndex,_=g.sectionIndex,O=g.columnIndex,w=g.tableItem,S=(0,c.s)((function(e){return e})).currentState;return(0,s.useEffect)((function(){n!==m&&y!==n&&b(n)}),[y,m,n]),(0,s.useEffect)((function(){b(n)}),[E,_,O,w,S]),(0,s.useEffect)((function(){o(y)}),[y]),(0,d.tZ)(u.ZP,{theme:f,value:h,onChange:b})}},2066:(e,t,r)=>{"use strict";r.d(t,{Z:()=>C});var n=r(7264),o=r(627),i=r(3871),a=r(935),l=r(3),c=r(824),u=r(917),s=r(1234),d=r(7294),p=r(9781),f=r(5944);function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const b=function(e){var t=e.closeModal,r=e.title,n=e.value,o=e.onChange,c=(0,s.$)(),u=v((0,d.useState)(n),2),h=u[0],b=u[1],m=v((0,d.useState)(!0),2),g=m[0],E=m[1];return(0,d.useEffect)((function(){var e=setTimeout((function(){return E(!1)}),300);return function(){return clearTimeout(e)}}),[]),(0,f.tZ)(p.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,wrapperCss:y.modalWrapperStyles,children:(0,f.tZ)("div",{css:y.modalWrapper,children:g?(0,f.tZ)("div",{css:y.loadingWrapper,children:(0,f.tZ)(a.g4,{})}):(0,f.BX)(f.HY,{children:[(0,f.tZ)("div",{css:y.codeEditor,children:(0,f.tZ)(l.Z,{value:h,onChange:function(e){return b(e)}})}),(0,f.BX)("div",{css:y.footerWrapper,children:[(0,f.tZ)(i.Z,{variant:"secondary",onClick:function(){return t({action:"CLOSE"})},children:c("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SYSTEM_EDITOR_CANCEL")}),(0,f.tZ)(i.Z,{onClick:function(){o(h),t({action:"CLOSE"})},disabled:h===n,children:c("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SYSTEM_EDITOR_APPLY")})]})]})})})};var y={modalWrapperStyles:{name:"167v7r0-modalWrapperStyles",styles:"max-width:2560px;label:modalWrapperStyles;"},modalWrapper:(0,u.iv)("width:100%;height:max(calc(100vh - 200px), 600px);max-height:2160px;",c.Uo.tablet,"{height:600px;};label:modalWrapper;"),loadingWrapper:(0,u.iv)("width:100%;height:max(calc(100vh - 200px), 600px);max-height:2160px;",c.Uo.tablet,"{height:600px;}display:flex;justify-content:center;align-items:center;;label:loadingWrapper;"),codeEditor:(0,u.iv)("padding:",c.W0[16],";.cm-editor{height:max(calc(100vh - 300px), 600px);max-height:2160px;",c.Uo.tablet,"{height:600px;}};label:codeEditor;"),footerWrapper:(0,u.iv)("display:flex;align-items:center;padding:",c.W0[16],";gap:",c.W0[8],";justify-content:flex-end;background-color:",c.qo.background.white,";border-top:1px solid ",c.qo.stroke.neutral,";;label:footerWrapper;")},m=r(1337),g=r(3106),E=r(4185),_=r(1954),O=r(1921),w=r(230);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var x=function(e){var t=e.device,r=e.onChangeResponsiveDevice,o=(0,s.$)(),i=S((0,d.useState)(!1),2),a=i[0],l=i[1],c=(0,_.l)({isOpen:a,isDropdown:!0}),u=c.triggerRef,p=c.position,v=c.popoverRef;return(0,f.BX)(f.HY,{children:[(0,f.BX)("button",{ref:u,onClick:function(){return l(!a)},css:L.selectedDevice,children:[(0,f.tZ)(n.Z,{name:g.Ak[t].icon}),(0,f.tZ)("span",{children:o(g.Ak[t].name)}),(0,f.tZ)("div",{css:L.arrowUpDownWrapper,children:(0,f.tZ)(n.Z,{name:"chevronDown",width:15,height:15,style:L.toggleIcon({isOpen:a})})})]}),(0,f.tZ)(_.h,{isOpen:a,onClickOutside:function(){l(!1)},children:(0,f.tZ)("div",{css:L.verticalDevicesContainer({left:p.left,top:p.top}),ref:v,children:(0,w.Zt)(g.Ak).map((function(e){return(0,f.BX)("button",{type:"button",css:L.deviceButton({isActive:e===t}),onClick:function(){r(e),l(!1)},children:[(0,f.tZ)(n.Z,{name:g.Ak[e].icon}),(0,f.tZ)("span",{children:o(g.Ak[e].name)})]},e)}))})})]})};const C=function(e){var t,r=e.field,i=e.fieldState,a=e.children,l=e.disabled,c=void 0!==l&&l,u=e.readOnly,p=void 0!==u&&u,v=e.label,h=e.isInlineLabel,y=void 0!==h&&h,E=e.variant,_=e.placeholder,O=e.responsive,I=void 0!==O&&O,C=e.helpText,P=e.isCombineType,A=void 0!==P&&P,T=e.adjustSpacing,D=void 0!==T&&T,Z=e.onCodeEditorChange,j=(0,s.$)(),R=(0,w.x0)(),B=S((0,d.useState)(g.zu),2),M=B[0],k=B[1],G=(0,m.d)().showModal;return(0,f.tZ)("div",{css:L.container(c,D),children:(0,f.BX)("div",{css:L.inputContainer(y),children:[(I||!!v)&&(0,f.BX)("div",{css:L.contentContainer({isCombineType:A}),children:[!!v&&(0,f.tZ)("label",{htmlFor:R,css:L.label(y),children:C?(0,f.tZ)(o.Z,{content:C,allowHTML:!0,isVisibleOnClick:!0,children:v}):v}),I?(0,f.tZ)(x,{device:M,onChangeResponsiveDevice:function(e){return k(e)}}):null,Z&&(0,f.tZ)("div",{css:L.codeEditorWrapper,children:(0,f.tZ)(o.Z,{content:j("COM_SPPAGEBUILDER_EDITOR_CODE_EDITOR_EXPAND"),placement:"top",isVisibleOnHover:!0,children:(0,f.tZ)("button",{type:"button",css:L.buttonCss(),onClick:function(){G({component:b,props:{title:v||j("COM_SPPAGEBUILDER_EDITOR_CODE_EDITOR"),value:String(r.value),onChange:Z}})},children:(0,f.tZ)(n.Z,{name:"editorExpand"})})})})]}),(0,f.tZ)("div",{css:L.inputAndHelpText,children:a({attributes:{id:R,name:r.name,css:[L.input({variant:E,hasFieldError:!!i.error,readOnly:p})],"aria-invalid":i.error?"true":"false",disabled:c,readOnly:p,placeholder:_},data:{responsive:I,device:M}})}),(null===(t=i.error)||void 0===t?void 0:t.message)&&(0,f.tZ)("p",{css:L.errorLabel(!!i.error),children:i.error.message})]})})};var P={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},A={name:"dkvrjs-container",styles:"opacity:0.5;label:container;"},L={container:function(e,t){return(0,u.iv)("display:flex;flex-direction:column;position:relative;background:inherit;",e&&A," ",t&&(0,u.iv)("margin-top:",c.W0[8],";;label:container;"),";;label:container;")},selectedDevice:(0,u.iv)(O.iZ.resetButton,";padding:",c.W0[4],";border-radius:",c.E0[3],";display:flex;align-items:center;gap:",c.W0[4],";background-color:inherit;border:1px solid ",c.qo.stroke.neutral,";span{",E.c.caption(),";};label:selectedDevice;"),deviceButton:function(e){var t=e.isActive;return(0,u.iv)(O.iZ.resetButton,";display:flex;align-items:center;gap:",c.W0[4],";padding:",c.W0[6]," ",c.W0[8],";span{",E.c.caption(),";}:hover{background-color:",c.qo.background.primary,";color:",c.qo.text.primary,";span{color:",c.qo.text.primary,";}}",t&&(0,u.iv)("background-color:",c.qo.background.primary,";color:",c.qo.text.primary,";span{color:",c.qo.text.primary,";};label:deviceButton;"),";;label:deviceButton;")},inputContainer:function(e){return(0,u.iv)("display:flex;flex-direction:column;gap:",c.W0[4],";width:100%;",e&&(0,u.iv)("flex-direction:row;align-items:center;gap:",c.W0[12],";justify-content:space-between;height:32px;;label:inputContainer;")," :hover{[data-help-action]{opacity:1;}};label:inputContainer;")},input:function(e){return(0,u.iv)("width:100%;height:32px;border-radius:",c.E0[5],";border:1px solid ",c.qo.stroke.neutral,";box-shadow:",c.AF.input,";padding:0 ",c.W0[12],";color:",c.qo.text.default,";appearance:textfield;:focus{outline:none;box-shadow:none;}::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}::placeholder{color:",c.qo.text.hints,";}",e.hasFieldError&&(0,u.iv)("border:1px solid ",c.qo.base.error,";background-color:",c.qo.background.error,";;label:input;")," ",e.readOnly&&(0,u.iv)("border:1px solid ",c.qo.background.hover,";background-color:",c.qo.background.hover,";;label:input;"),";;label:input;")},errorLabel:function(e){return(0,u.iv)(E.c.caption(),";display:flex;align-items:center;margin-top:",c.W0[4],";",e&&(0,u.iv)("color:",c.qo.base.error,";;label:errorLabel;")," & svg{margin-right:",c.W0[8],";};label:errorLabel;")},contentContainer:function(e){var t=e.isCombineType;return(0,u.iv)("display:flex;gap:",c.W0[8],";position:relative;align-items:center;",t&&(0,u.iv)("position:absolute;left:10px;top:-13px;background-color:",c.qo.background.white,";z-index:",c.W5.positive,";padding:0 ",c.W0[4],";height:26px;;label:contentContainer;"),";;label:contentContainer;")},label:function(e){return(0,u.iv)(E.c.caption()," color:",c.qo.text.default,";",e&&(0,u.iv)("color:",c.qo.text.default,";;label:label;"),";;label:label;")},characterCount:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,u.iv)(E.c.body(),";color:",c.qo.text.neutral,";text-transform:lowercase;margin-left:auto;",e&&(0,u.iv)("color:",c.qo.text.error,";;label:characterCount;"),";;label:characterCount;")},inputAndHelpText:{name:"75b851-inputAndHelpText",styles:"position:relative;label:inputAndHelpText;"},helpTextAndLoading:(0,u.iv)("position:absolute;top:50%;right:",c.W0[12],";transform:translateY(-50%);display:flex;gap:",c.W0[4],";align-items:center;;label:helpTextAndLoading;"),verticalDevicesContainer:function(e){var t=e.left,r=e.top;return(0,u.iv)("position:absolute;left:",Math.max(0,t-8),"px;top:",r,"px;display:flex;flex-direction:column;background:",c.qo.base.white,";box-shadow:",c.AF.popover,";border-radius:",c.E0[2],";padding-block:",c.W0[8],";;label:verticalDevicesContainer;")},arrowUpDownWrapper:(0,u.iv)("margin-left:",c.W0[6],";;label:arrowUpDownWrapper;"),toggleIcon:function(e){var t=e.isOpen,r=void 0!==t&&t;return(0,u.iv)("color:",c.qo.icon.default,";transition:transform 0.3s ease-in-out;",r&&P,";;label:toggleIcon;")},codeEditorWrapper:{name:"1fcubuj-codeEditorWrapper",styles:"margin-left:auto;label:codeEditorWrapper;"},buttonCss:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,u.iv)(O.iZ.resetButton," color:",c.qo.icon.default,";:hover{svg{color:",c.qo.icon.hover,";}}",e&&(0,u.iv)("svg{color:",c.qo.icon.primary,";};label:buttonCss;"),";;label:buttonCss;")}}},4353:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n=r(3871),o=r(9085),i=r(824),a=r(4185),l=r(917),c=r(1921),u=r(6486),s=r(7264),d=r(5944);const p=function(e){var t=e.label,r=e.onClick,n=void 0===r?u.noop:r,o=e.showIcon,i=void 0===o||o,a=e.icon,l=void 0===a?(0,d.tZ)(s.Z,{name:"cross",width:12,height:12}):a;return(0,d.BX)("button",{css:f.wrapper({hasIcon:i}),onClick:n,children:[(0,d.tZ)("div",{css:f.label,children:t}),i&&(0,d.tZ)("div",{css:f.iconWrapper,"data-icon-wrapper":!0,children:l})]})};var f={wrapper:function(e){var t=e.hasIcon,r=void 0!==t&&t;return(0,l.iv)(c.iZ.resetButton,";background-color:",i.qo.background.white,";border:1px solid ",i.qo.stroke.neutral,";border-radius:",i.E0[24],";padding:",i.W0[4]," ",i.W0[8],";min-height:24px;transition:background-color 0.3s ease;",r&&(0,l.iv)("display:flex;justify-content:center;align-items:center;gap:",i.W0[2],";padding:",i.W0[4]," ",i.W0[4]," ",i.W0[4]," ",i.W0[8],";;label:wrapper;")," :hover{background-color:",i.qo.background.hover,";[data-icon-wrapper]{background-color:",i.qo.background.white,";>svg{color:",i.qo.icon.hover,";}}};label:wrapper;")},label:(0,l.iv)(a.c.caption(),";;label:label;"),iconWrapper:(0,l.iv)("border-radius:",i.E0.circle,";transition:background-color 0.3s ease;height:16px;width:16px;text-align:center;display:flex;align-items:center;justify-content:center;svg{color:",i.qo.icon.default,";transition:color 0.3s ease;};label:iconWrapper;")},v=r(1954),h=r(1234),b=r(7273),y=r(230),m=r(7294),g=r(2066);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var _=["css"];function O(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(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 w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===E(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||C(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 C(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const A=function(e){var t=e.options,r=e.field,i=e.fieldState,a=e.onChange,l=void 0===a?y.ZT:a,c=e.label,u=e.placeholder,f=void 0===u?"":u,E=e.disabled,w=e.readOnly,I=e.loading,C=e.isSearchable,P=void 0!==C&&C,A=e.isInlineLabel,L=e.hideCaret,D=e.listLabel,Z=e.isClearable,j=void 0===Z||Z,R=e.responsive,B=e.responsiveOrientation,M=e.showArrowUpDown,k=void 0!==M&&M,G=e.helpText,N=e.showChips,W=void 0===N||N,U=e.hideSelectNumbers,H=void 0!==U&&U,F=e.hasAllCategory,V=void 0!==F&&F,q=e.isAccessLevelField,z=void 0!==q&&q,K=(0,h.$)(),$=(0,m.useMemo)((function(){return!(0,y.$K)(r.value)||z&&!(0,y.kJ)(r.value)&&!(0,b.sw)(r.value)?[]:(0,y.kJ)(r.value)?r.value:[r.value]}),[r.value,z]),X=(0,m.useMemo)((function(){return H||0===$.length?f:K("COM_SPPAGEBUILDER_EDITOR_N_OPTIONS_SELECTED",{count:$.length})}),[$,K,f,H]),Y=x((0,m.useState)(X),2),Q=Y[0],J=Y[1],ee=x((0,m.useState)(""),2),te=ee[0],re=ee[1],ne=x((0,m.useState)(!1),2),oe=ne[0],ie=ne[1],ae=V&&$.some((function(e){return""===(0,b.BB)(e)})),le=(0,m.useMemo)((function(){var e=$.map((function(e){return(0,b.BB)(e)}));return t.filter((function(t){return e.includes((0,b.BB)(t.value))}))}),[$,t]);(0,m.useEffect)((function(){J(X)}),[X]);var ce=(0,m.useMemo)((function(){return P?t.filter((function(e){return e.label.toLowerCase().startsWith(te.toLowerCase())})):t}),[te,P,t]),ue=(0,v.l)({isOpen:oe,isDropdown:!0}),se=ue.triggerRef,de=ue.triggerWidth,pe=ue.position,fe=ue.popoverRef;return(0,d.tZ)(g.Z,{fieldState:i,field:r,label:c,disabled:E||0===t.length,readOnly:w,loading:I,isInlineLabel:A,responsive:R,responsiveOrientation:B,helpText:G,children:function(e){var i=e.attributes,a=i.css,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(i,_);return(0,d.BX)("div",{css:T.mainWrapper,children:[(0,d.BX)("div",{css:T.inputWrapper,ref:se,children:[(0,d.tZ)("input",S(S({},c),{},{onClick:function(){return ie((function(e){return!e}))},css:[a,T.input,";label:MultiSelectField;"],autoComplete:"off",readOnly:w||!P,placeholder:f,value:Q,onChange:function(e){J(e.target.value),re(e.target.value)}})),!L&&(0,d.tZ)("button",{type:"button",css:T.caretButton,onClick:function(){ie((function(e){return!e}))},disabled:w||0===t.length,children:k?(0,d.tZ)(s.Z,{name:"arrowUpDown",width:20,height:20,style:T.arrowUpDown}):(0,d.tZ)(s.Z,{name:"chevronDown",width:20,height:20,style:T.toggleIcon({isOpen:oe})})})]}),W&&le.length>0&&(0,d.tZ)("div",{css:T.chipsWrapper,children:le.map((function(e,t){return(0,d.tZ)(p,{label:e.label,onClick:function(){var t=$.filter((function(t){return(0,b.BB)(t)!==(0,b.BB)(e.value)}));r.onChange(t)}},t)}))}),(0,d.tZ)(v.h,{isOpen:oe,onClickOutside:function(){return ie(!1)},children:(0,d.tZ)("div",{css:[T.optionsWrapper,{left:pe.left,top:pe.top,maxWidth:de},";label:MultiSelectField;"],ref:fe,children:(0,d.BX)("ul",{css:[T.options,";label:MultiSelectField;"],children:[!!D&&(0,d.tZ)("li",{css:T.listLabel,children:D}),ce.map((function(e){var i=$.some((function(t){return(0,b.BB)(t)===(0,b.BB)(e.value)})),a=(0,b.BB)(e.value);return(0,d.BX)("li",{css:T.optionItem,children:[(0,d.tZ)(o.Z,{checked:i,disabled:ae&&""!==(0,b.BB)(e.value),onChange:function(){if(V&&""===a)i?r.onChange([]):r.onChange([e.value]);else{var t=i?$.filter((function(t){return(0,b.BB)(t)!==(0,b.BB)(e.value)})):[].concat(O($),[e.value]);r.onChange(t)}}}),(0,d.tZ)(n.Z,{variant:"text",buttonCss:T.label,disabled:ae&&""!==e.value,onClick:function(){if(V&&""===a)return i?r.onChange([]):r.onChange([e.value]),re(""),void J(X);var n=i?$.filter((function(t){return(0,b.BB)(t)!==(0,b.BB)(e.value)})):[].concat(O($),[e.value]);r.onChange(n),J(X),re(""),l(t.filter((function(e){return n.includes(e.value)})))},children:e.label})]},String(e.value))})),j&&(0,d.tZ)("div",{css:T.clearButton({isDisabled:0===le.length}),children:(0,d.tZ)(n.Z,{variant:"text",disabled:0===le.length,icon:(0,d.tZ)(s.Z,{name:"recycleAlt"}),onClick:function(){r.onChange([]),re(""),ie(!1)},children:K("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var L={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},T={mainWrapper:{name:"e9i770-mainWrapper",styles:"width:100%;label:mainWrapper;"},inputWrapper:{name:"39rwmw-inputWrapper",styles:"width:100%;display:flex;justify-content:space-between;align-items:center;position:relative;label:inputWrapper;"},input:(0,l.iv)(a.c.body(),";width:100%;cursor:pointer;padding-right:",i.W0[32],";",c.iZ.textEllipsis,";:focus{outline:none;box-shadow:",i.AF.outline,";};label:input;"),listLabel:(0,l.iv)(a.c.body(),";color:",i.qo.text.neutral,";min-height:40px;display:flex;align-items:center;padding-left:",i.W0[16],";;label:listLabel;"),clearButton:function(e){var t=e.isDisabled,r=void 0!==t&&t;return(0,l.iv)("padding:",i.W0[4]," ",i.W0[8],";border-top:1px solid ",i.qo.stroke.neutral,";&>button{padding:0;width:100%;font-size:",i.JB[12],";",!r&&(0,l.iv)("color:",i.qo.text.primary,";&:hover{text-decoration:underline;};label:clearButton;"),";>span{justify-content:center;}};label:clearButton;")},chipsWrapper:(0,l.iv)("display:flex;justify-content:start;align-items:center;flex-wrap:wrap;gap:",i.W0[4],";margin:",i.W0[8]," 0;;label:chipsWrapper;"),optionsWrapper:{name:"1al3kic-optionsWrapper",styles:"position:absolute;width:100%;label:optionsWrapper;"},options:(0,l.iv)("z-index:",i.W5.dropdown,";background-color:",i.qo.base.white,";list-style-type:none;box-shadow:",i.AF.popover,";padding:",i.W0[4]," 0;margin:0;max-height:500px;border-radius:",i.E0[6],";",c.iZ.overflowYAuto,";min-width:200px;;label:options;"),optionItem:(0,l.iv)(a.c.body(),";min-height:36px;height:100%;width:100%;display:flex;align-items:center;transition:background-color 0.3s ease-in-out;cursor:pointer;padding-inline:",i.W0[8],";&:hover{background-color:",i.qo.background.hover,";};label:optionItem;"),label:(0,l.iv)("width:100%;height:100%;display:flex;gap:",i.W0[8],";margin:0 ",i.W0[12],";padding:0;text-align:left;line-height:",i.Nv[24],";;label:label;"),toggleIcon:function(e){var t=e.isOpen,r=void 0!==t&&t;return(0,l.iv)("color:",i.qo.icon.default,";transition:transform 0.3s ease-in-out;",r&&L,";;label:toggleIcon;")},arrowUpDown:(0,l.iv)("color:",i.qo.icon.default,";display:flex;justify-content:center;align-items:center;margin-top:",i.W0[2],";;label:arrowUpDown;"),optionsContainer:{name:"1fif7on-optionsContainer",styles:"position:absolute;overflow:hidden auto;min-width:16px;min-height:16px;max-width:calc(100% - 32px);max-height:calc(100% - 32px);label:optionsContainer;"},caretButton:(0,l.iv)(c.iZ.resetButton,";position:absolute;top:0;bottom:0;right:",i.W0[8],";margin:auto 0;display:flex;align-items:center;;label:caretButton;")}},7856:(e,t,r)=>{"use strict";r.d(t,{Z:()=>w});var n=r(9371),o=r(3106),i=r(824),a=r(917),l=r(36),c=r(3581),u=r(8710),s=r(2445),d=r(2423),p=r(7273),f=r(230),v=r(7294),h=r(2066),b=r(5944);function y(e){return y="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},y(e)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const w=function(e){var t,r,i,a,y=e.label,g=e.field,E=e.fieldState,w=e.disabled,I=e.loading,x=e.helpText,C=e.onChange,P=e.min,A=e.max,L=e.step,T=void 0===L?1:L,D=e.info,Z=e.hasUnit,j=void 0!==Z&&Z,R=e.responsive,B=e.responsiveOrientation,M=e.staticUnit,k=e.isInline,G=void 0!==k&&k,N=e.customUnitOptions,W=void 0===N?null:N,U=e.defaultUnit,H=void 0===U?"px":U,F=e.noRangeInput,V=void 0!==F&&F,q=e.inputCss,z=e.unitInputStyles,K=e.disableTextField,$=void 0!==K&&K,X=(0,v.useRef)("xl"),Y=g.value,Q={xl:"",lg:"",md:"",sm:"",xs:"",unit:H||"px"},J={value:null!==(t=g.value)&&void 0!==t&&t.value?null===(r=g.value)||void 0===r?void 0:r.value:"0",unit:null!==(i=g.value)&&void 0!==i&&i.unit?null===(a=g.value)||void 0===a?void 0:a.unit:"sec"};j&&(Y=(0,f.$K)(g.value)?_(_({},Q),g.value):Q);var ee=m((0,v.useState)(Y),2),te=ee[0],re=ee[1],ne=m((0,v.useState)(J),2),oe=ne[0],ie=ne[1],ae=(0,l.N)(te);(0,v.useEffect)((function(){re(Y)}),[(0,p.o5)(Y,X.current)]);var le=(0,s.F)((function(e){return e.payload})),ce=le.sectionIndex,ue=le.columnIndex,se=le.addonIndex,de=le.tableItem,pe=(0,d.s)((function(e){return e.currentState}));return(0,v.useEffect)((function(){re(Y)}),[ce,ue,se,de,pe]),(0,v.useEffect)((function(){V&&j||(g.onChange(ae),C&&C(ae))}),[ae]),(0,b.tZ)(h.Z,{label:y,field:g,fieldState:E,disabled:w,loading:I,helpText:x,responsive:R,responsiveOrientation:B,isInlineLabel:G,children:function(e){var t=e.attributes,r=e.data,i=r.device,a=r.responsive;X.current=i;var l=(0,p.jv)((0,p.o5)(te,i,!j)),s=(0,p.jv)((0,p.o5)(te,i,!j));if(V&&j)return(0,b.tZ)(u.Z,{fieldValue:{value:oe.value.toString(),unit:oe.unit},onChange:function(e){g.onChange(e),ie({value:Number(e.value),unit:e.unit})},staticUnit:M,customUnitOptions:W,inputCss:q,unitInputStyles:z,disableTextField:$});if(j){var d=te;return(0,b.BX)("div",{css:S.rangeWithUnitWrapper,children:[(0,b.tZ)(n.Z,{value:(0,p.He)(s),onChange:function(e){var t=_(_({},d),{},O({},i,M?"".concat(e).concat(M):e));re(t)},min:null!=P?P:o.a7.min,max:null!=A?A:o.a7.max,disabled:t.disabled,step:T}),(0,b.tZ)(u.Z,{fieldValue:{value:l.toString(),unit:d.unit},onChange:function(e){var t,r,n=_(_({},d),{},(O(r={},i,M?"".concat(null!==(t=e.value)&&void 0!==t?t:"").concat(M):e.value),O(r,"unit",e.unit),r));re(n)},staticUnit:M,customUnitOptions:W,inputCss:q,unitInputStyles:z,disableTextField:$})]})}return(0,b.tZ)(c.Z,{value:s,onChange:function(e){var t=(0,p.xU)({previous:te,value:(0,p.BB)(e),responsive:a,device:i});re(t)},min:P,max:A,step:T,disabled:t.disabled,inputContent:D,isInlineLabel:G})}})};var S={rangeWithUnitWrapper:(0,a.iv)("display:flex;justify-content:space-between;align-items:center;gap:",i.W0[32],";max-height:32px;;label:rangeWithUnitWrapper;")}},8122:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(3871),o=r(7264),i=r(3106),a=r(824),l=r(4185),c=r(917),u=r(1954),s=r(2200),d=r(1234),p=r(7273),f=r(1921),v=r(230),h=r(7294),b=r(2066),y=r(5944);function m(e){return m="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},m(e)}var g=["css"];function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}(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 S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e){var t=e.options,r=e.field,a=e.fieldState,l=e.onChange,c=void 0===l?v.ZT:l,f=e.label,m=e.placeholder,E=void 0===m?"":m,O=e.disabled,S=e.readOnly,I=e.loading,x=e.isSearchable,C=void 0!==x&&x,A=e.isInlineLabel,L=e.hideCaret,T=e.listLabel,D=e.isClearable,Z=void 0===D||D,j=e.responsive,R=e.responsiveOrientation,B=e.showArrowUpDown,M=void 0!==B&&B,k=e.helpText,G=e.removeOptionsMinWidth,N=void 0!==G&&G,W=e.defaultValue,U=void 0===W?null:W,H=(0,d.$)(),F=(0,h.useRef)(i.zu),V=(0,s.D)(F.current),q=(0,h.useCallback)((function(){var e,n,o=(0,p.o5)(null!==(e=r.value)&&void 0!==e?e:U,F.current);return(null===(n=t.find((function(e){return String(e.value)===o})))||void 0===n?void 0:n.label)||""}),[t,r.value,U]),z=w((0,h.useState)(q),2),K=z[0],$=z[1],X=w((0,h.useState)(""),2),Y=X[0],Q=X[1],J=w((0,h.useState)(!1),2),ee=J[0],te=J[1],re=(0,h.useMemo)((function(){return C?t.filter((function(e){return e.label.toLowerCase().startsWith(Y.toLowerCase())})):t}),[Y,C,t]),ne=(0,u.l)({isOpen:ee,isDropdown:!0}),oe=ne.triggerRef,ie=ne.triggerWidth,ae=ne.position,le=ne.popoverRef;return(0,h.useEffect)((function(){$(q)}),[r.value,q]),(0,h.useEffect)((function(){ee&&$(q)}),[q,ee]),(0,y.tZ)(b.Z,{fieldState:a,field:r,label:f,disabled:O||0===t.length,readOnly:S,loading:I,isInlineLabel:A,responsive:j,responsiveOrientation:R,helpText:k,children:function(e){var i=e.attributes,a=e.data,l=i.css,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(i,g),d=a.responsive,f=a.device;return F.current=f,(0,y.BX)("div",{css:P.mainWrapper,children:[(0,y.BX)("div",{css:P.inputWrapper,ref:oe,children:[(0,y.tZ)("input",_(_({},s),{},{onClick:function(){return te((function(e){return!e}))},css:[l,P.input,";label:SelectField;"],autoComplete:"off",readOnly:S||!C,placeholder:E,value:function(){if(V!==f){var e,n=(0,p.o5)(r.value,f);return(null===(e=t.find((function(e){return String(e.value)===String(n)})))||void 0===e?void 0:e.label)||""}return K}(),onChange:function(e){$(e.target.value),Q(e.target.value)}})),!L&&(0,y.tZ)("button",{type:"button",css:P.caretButton,onClick:function(){te((function(e){return!e}))},disabled:S||0===t.length,children:M?(0,y.tZ)(o.Z,{name:"arrowUpDown",width:20,height:20,style:P.arrowUpDown}):(0,y.tZ)(o.Z,{name:"chevronDown",width:20,height:20,style:P.toggleIcon({isOpen:ee})})})]}),(0,y.tZ)(u.h,{isOpen:ee,onClickOutside:function(){return te(!1)},children:(0,y.tZ)("div",{css:[P.optionsWrapper,{left:ae.left,top:ae.top,maxWidth:ie},";label:SelectField;"],ref:le,children:(0,y.BX)("ul",{css:[P.options(N),";label:SelectField;"],children:[!!T&&(0,y.tZ)("li",{css:P.listLabel,children:T}),re.map((function(e){return(0,y.tZ)("li",{css:P.optionItem({isSelected:String(e.value)===(0,p.o5)(r.value,f)}),children:(0,y.tZ)(n.Z,{variant:"text",buttonCss:P.label,onClick:function(){r.onChange((0,p.xU)({previous:r.value,value:e.value,responsive:d,device:f})),Q(""),c(e),te(!1)},children:e.label})},String(e.value))})),Z&&(0,y.tZ)("div",{css:P.clearButton({isDisabled:""===K}),children:(0,y.tZ)(n.Z,{variant:"text",disabled:""===K,icon:(0,y.tZ)(o.Z,{name:"recycleAlt"}),onClick:function(){r.onChange(null),$(""),Q(""),te(!1)},children:H("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var x={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},C={name:"7k051d-options",styles:"min-width:200px;label:options;"},P={mainWrapper:{name:"e9i770-mainWrapper",styles:"width:100%;label:mainWrapper;"},inputWrapper:{name:"39rwmw-inputWrapper",styles:"width:100%;display:flex;justify-content:space-between;align-items:center;position:relative;label:inputWrapper;"},input:(0,c.iv)(l.c.body(),";width:100%;cursor:pointer;padding-right:",a.W0[32],";",f.iZ.textEllipsis,";:focus{outline:none;box-shadow:",a.AF.outline,";};label:input;"),listLabel:(0,c.iv)(l.c.body(),";color:",a.qo.text.neutral,";min-height:40px;display:flex;align-items:center;padding-left:",a.W0[16],";;label:listLabel;"),clearButton:function(e){var t=e.isDisabled,r=void 0!==t&&t;return(0,c.iv)("padding:",a.W0[4]," ",a.W0[8],";border-top:1px solid ",a.qo.stroke.neutral,";&>button{padding:0;width:100%;font-size:",a.JB[12],";",!r&&(0,c.iv)("color:",a.qo.text.primary,";&:hover{text-decoration:underline;};label:clearButton;"),";>span{justify-content:center;}};label:clearButton;")},optionsWrapper:{name:"1al3kic-optionsWrapper",styles:"position:absolute;width:100%;label:optionsWrapper;"},options:function(e){return(0,c.iv)("z-index:",a.W5.dropdown,";background-color:",a.qo.base.white,";list-style-type:none;box-shadow:",a.AF.popover,";padding:",a.W0[4]," 0;margin:0;max-height:500px;border-radius:",a.E0[6],";",f.iZ.overflowYAuto,";",!e&&C,";;label:options;")},optionItem:function(e){var t=e.isSelected,r=void 0!==t&&t;return(0,c.iv)(l.c.body(),";min-height:36px;height:100%;width:100%;display:flex;align-items:center;transition:background-color 0.3s ease-in-out;cursor:pointer;&:hover{background-color:",a.qo.background.hover,";}",r&&(0,c.iv)("background-color:",a.qo.background.active,";position:relative;&::before{content:'';position:absolute;top:0;left:0;width:3px;height:100%;background-color:",a.qo.action.primary.default,";border-radius:0 ",a.E0[6]," ",a.E0[6]," 0;};label:optionItem;"),";;label:optionItem;")},label:(0,c.iv)("width:100%;height:100%;display:flex;gap:",a.W0[8],";margin:0 ",a.W0[12],";padding:",a.W0[6]," 0;text-align:left;line-height:",a.Nv[24],";word-break:break-all;;label:label;"),toggleIcon:function(e){var t=e.isOpen,r=void 0!==t&&t;return(0,c.iv)("color:",a.qo.icon.default,";transition:transform 0.3s ease-in-out;",r&&x,";;label:toggleIcon;")},arrowUpDown:(0,c.iv)("color:",a.qo.icon.default,";display:flex;justify-content:center;align-items:center;margin-top:",a.W0[2],";;label:arrowUpDown;"),optionsContainer:{name:"1fif7on-optionsContainer",styles:"position:absolute;overflow:hidden auto;min-width:16px;min-height:16px;max-width:calc(100% - 32px);max-height:calc(100% - 32px);label:optionsContainer;"},caretButton:(0,c.iv)(f.iZ.resetButton,";position:absolute;top:0;bottom:0;right:",a.W0[8],";margin:auto 0;display:flex;align-items:center;;label:caretButton;")}},4943:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(5791),o=r(824),i=r(4185),a=r(917),l=r(7273),c=r(2066),u=r(5944);function s(e){return s="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},s(e)}var d=["value"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=function(e){var t=e.field,r=e.fieldState,o=e.label,i=e.title,a=e.subTitle,s=e.disabled,p=e.loading,v=e.responsive,h=e.responsiveOrientation,y=e.isInlineLabel,m=void 0!==y&&y,g=e.helpText;return(0,u.tZ)(c.Z,{field:t,fieldState:r,disabled:s,loading:p,label:o,responsive:v,responsiveOrientation:h,isInlineLabel:m,helpText:g,children:function(e){var r=e.attributes,o=e.data,c=o.responsive,s=o.device,p=(0,l.o5)(t.value,s),v=(t.value,function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,d));return(0,u.BX)("div",{css:b.wrapper,children:[(i||a)&&(0,u.BX)("div",{children:[!!i&&(0,u.tZ)("h6",{css:b.title,children:i}),!!a&&(0,u.tZ)("p",{css:b.subTitle,children:a})]}),(0,u.tZ)(n.Z,f(f(f({},v),r),{},{checked:(0,l.sw)(p),onChange:function(e){var r,n=(0,l.xU)({previous:t.value,value:null!==(r=(0,l.He)(e))&&void 0!==r?r:0,responsive:c,device:s});t.onChange(n)}}))]})}})};var b={wrapper:(0,a.iv)("display:flex;align-items:center;justify-content:space-between;gap:",o.W0[40],";;label:wrapper;"),title:(0,a.iv)(i.c.heading6(),";line-height:",o.Nv[20],";margin-bottom:",o.W0[4],";;label:title;"),subTitle:(0,a.iv)(i.c.body(),";color:",o.qo.text.neutral,";;label:subTitle;")}},5350:(e,t,r)=>{"use strict";r.d(t,{Z:()=>S});var n=r(3871),o=r(7264),i=r(3106),a=r(824),l=r(4185),c=r(917),u=r(36),s=r(2200),d=r(2445),p=r(2423),f=r(7273),v=r(1921),h=r(7294),b=r(2066),y=r(5944);function m(e){return m="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},m(e)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const S=function(e){var t=e.label,r=e.isInlineLabel,a=e.type,l=void 0===a?"text":a,c=e.field,v=e.fieldState,m=e.disabled,g=e.readOnly,_=e.loading,w=e.placeholder,S=e.helpText,x=e.onChange,C=e.onKeyDown,P=e.isClearable,A=e.responsive,L=e.responsiveOrientation,T=e.variant,D=void 0===T?"regular":T,Z=e.hasAutoFocus,j=void 0!==Z&&Z,R=e.isDebounced,B=void 0!==R&&R,M=e.staticUnit,k=(0,h.useRef)(null),G=(0,h.useRef)(i.zu),N=(0,s.D)(G.current),W=(0,h.useRef)(!1),U=O((0,h.useState)("password"===l),2),H=U[0],F=U[1],V=(0,f.o5)(c.value,i.zu),q=O((0,h.useState)(V),2),z=q[0],K=q[1],$=(0,u.N)(z),X=(0,d.F)((function(e){return e.payload})),Y=X.sectionIndex,Q=X.columnIndex,J=X.addonIndex,ee=X.tableItem,te=(0,p.s)((function(e){return e.currentState}));return(0,h.useEffect)((function(){B&&K(V)}),[Y,Q,J,ee,te]),(0,h.useEffect)((function(){if(B){var e=(0,f.xU)({previous:c.value,value:$,responsive:W.current,device:G.current});c.onChange(e)}}),[$]),(0,h.useEffect)((function(){var e;j&&(null===(e=k.current)||void 0===e||e.focus())}),[j]),(0,y.tZ)(b.Z,{label:t,isInlineLabel:r,field:c,fieldState:v,disabled:m,readOnly:g,loading:_,placeholder:w,helpText:S,responsive:A,responsiveOrientation:L,children:function(e){var t=e.attributes,r=e.data,i=r.device,a=r.responsive;return G.current=i,W.current=a,(0,y.tZ)(y.HY,{children:(0,y.BX)("div",{css:I.container(D,!!M),children:[(0,y.tZ)("input",E(E(E({},c),t),{},{ref:k,type:H?"password":"password"===l?"text":l,value:B?N!==i?(0,f.o5)(c.value,i):z:(0,f.o5)(c.value,i),onChange:function(e){var t=e.target.value;if(B)K(t);else{var r=(0,f.xU)({previous:c.value,value:t,responsive:a,device:i});c.onChange(r)}x&&x(t)},onBlur:function(e){var t=e.target.value,r="number"===l?t.replace(/[^0-9.]/g,"").replace(/(\..*)\./g,"$1").replace(/([^\.]+)\.$/,"$1"):t;if(B)K(t);else{var n=(0,f.xU)({previous:c.value,value:r,responsive:a,device:i});c.onChange(n)}x&&x(r)},onKeyDown:function(e){C&&C(e.key)},autoComplete:"off"})),"password"===l&&!!c.value&&(0,y.tZ)(n.Z,{variant:"text",css:I.hideShow,onClick:function(){return F(!H)},children:H?(0,y.tZ)(o.Z,{name:"statusOff",width:20,height:20}):(0,y.tZ)(o.Z,{name:"statusOn",width:20,height:20})}),"search"===D&&(0,y.tZ)("span",{css:I.searchIcon,children:(0,y.tZ)(o.Z,{name:"search",width:20,height:20})}),P&&!!c.value&&(0,y.tZ)("div",{css:I.clearButton,children:(0,y.tZ)(n.Z,{variant:"text",onClick:function(){return c.onChange("")},children:(0,y.tZ)(o.Z,{name:"cross"})})}),M&&(0,y.tZ)("span",{css:I.staticUnit,children:M})]})})}})};var I={container:function(e,t){return(0,c.iv)("position:relative;display:flex;& input{",l.c.body()," width:100%;","search"===e&&(0,c.iv)("padding-left:",a.W0[36],";;label:container;")," ",t&&(0,c.iv)("padding-right:",a.W0[36],";;label:container;")," :focus{box-shadow:",a.AF.outline,";}};label:container;")},hideShow:(0,c.iv)(v.iZ.resetButton,";position:absolute;height:100%;right:0;top:0;padding:0 ",a.W0[8],";color:",a.qo.icon.default,";;label:hideShow;"),clearButton:(0,c.iv)("position:absolute;right:0;top:0;button{padding:",a.W0[8],";};label:clearButton;"),searchIcon:(0,c.iv)("position:absolute;top:50%;left:",a.W0[8],";transform:translateY(-50%);color:",a.qo.icon.default,";line-height:0;;label:searchIcon;"),staticUnit:(0,c.iv)(l.c.caption(),";position:absolute;right:0;top:0;height:100%;border-left:1px solid ",a.qo.stroke.neutral,";padding:0px 10px;display:flex;align-items:center;;label:staticUnit;")}},7579:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(824),o=r(917),i=(r(7294),r(5944));const a=function(e){var t=e.children,r=e.isFluid,n=void 0!==r&&r;return(0,i.tZ)("div",{css:c.wrapper(n),children:t})};var l={name:"bqovom-wrapper",styles:"max-width:initial;label:wrapper;"},c={wrapper:function(e){return(0,o.iv)("margin:0 auto;max-width:",n.V4,"px;width:100%;padding:",n.W0[16],";",e&&l,";;label:wrapper;")}}},3039:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o}),r(7294);var n=r(5944);const o=function(e){var t=e.children;return(0,n.tZ)("div",{children:t})}},7894:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(824),o=r(4185),i=r(917),a=(r(7294),r(5944));const l=function(e){var t=e.title,r=e.subtitle,n=e.action;return(0,a.tZ)("div",{css:c.wrapper,children:(0,a.BX)("div",{css:c.container,children:[(0,a.tZ)("div",{css:c.titleContainer,children:(0,a.BX)("div",{css:c.titleSubtitle,children:[(0,a.tZ)("h3",{css:o.c.heading3("medium"),children:(0,a.tZ)("span",{children:t})}),r&&(0,a.tZ)("p",{css:c.subtitle,children:r})]})}),!!n&&(0,a.tZ)("div",{css:c.actionWrapper,children:n})]})})};var c={wrapper:(0,i.iv)("min-height:136px;background:",n.qo.base.surface,";padding-block:",n.W0[36],";border-bottom:1px solid ",n.qo.stroke.neutral,";;label:wrapper;"),container:(0,i.iv)("display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:0 ",n.W0[16],";max-width:",n.V4,"px;width:100%;;label:container;"),titleContainer:{name:"vvxf1w-titleContainer",styles:"display:flex;justify-content:space-between;label:titleContainer;"},subtitle:(0,i.iv)(o.c.body(),";color:",n.qo.text.default,";;label:subtitle;"),titleSubtitle:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";max-width:480px;;label:titleSubtitle;"),actionWrapper:{name:"7ozw75-actionWrapper",styles:"flex-shrink:0;label:actionWrapper;"}}},3816:(e,t,r)=>{"use strict";r.d(t,{g:()=>y});var n=r(3871),o=r(824),i=r(917),a=r(7898),l=r(1234),c=r(230),u=r(1337),s=r(9781),d=r(5944);function p(e){return p="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},p(e)}function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new C(o||[]);return n(a,"_invoke",{value:w(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function v(){}function h(){}function b(){}var y={};c(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==t&&r.call(g,i)&&(y=g);var E=b.prototype=v.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==p(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=b,n(E,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:h,configurable:!0}),h.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},_(O.prototype),c(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function v(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,l,"next",e)}function l(e){v(i,n,o,a,l,"throw",e)}a(void 0)}))}}var b=function(e){var t=e.title,r=e.confirmationMessage,o=e.confirmButtonText,i=e.confirmButtonVariant,u=void 0===i?"error":i,p=e.payload,v=e.mutationFn,b=e.closeModal,y=e.invalidateKeys,g=e.contentWrapper,E=e.skipMutation,_=void 0!==E&&E,O=(0,l.$)(),w=(0,a.A)({mutationFn:v,invalidateKeys:y});return(0,d.tZ)(s.Z,{onClose:function(){return b({action:"CLOSE"})},title:t,headerCss:m.modalHeaderCss,contentCss:m.modalContentCss,wrapperCss:m.modalWrapper,children:(0,d.BX)("div",{css:[g,";label:ConsentModal;"],children:[(0,d.tZ)("p",{css:m.content,children:r||O("COM_SPPAGEBUILDER_EDITOR_DELETE_WARNING")}),(0,d.BX)("div",{css:m.footerWrapper,children:[(0,d.tZ)(n.Z,{variant:"secondary",onClick:function(){return b({action:"CLOSE"})},children:O("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,d.tZ)(n.Z,{variant:u,onClick:h(f().mark((function e(){var t,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=3;break}return b({action:"CONFIRM"}),e.abrupt("return");case 3:if(!p){e.next=11;break}return e.next=6,w.mutateAsync(p);case 6:if(t=e.sent,r=t.data,!((0,c.$K)(r.status)?r.status:r)){e.next=11;break}return b({action:"CONFIRM"}),e.abrupt("return");case 11:b({action:"CLOSE"});case 12:case"end":return e.stop()}}),e)}))),loading:w.isLoading,children:o||O("COM_SPPAGEBUILDER_EDITOR_DELETE")})]})]})})},y=function(){var e=(0,u.d)().showModal;return function(t){return e({component:b,props:t,closeOnOutsideClick:!0})}},m={modalWrapper:{name:"1utdhwa-modalWrapper",styles:"max-width:450px;label:modalWrapper;"},content:(0,i.iv)("padding:",o.W0[16]," ",o.W0[24],";;label:content;"),footerWrapper:(0,i.iv)("display:flex;justify-content:end;gap:",o.W0[8],";padding:",o.W0[16]," ",o.W0[24],";box-shadow:",o.AF.dividerTop,";;label:footerWrapper;"),modalHeaderCss:(0,i.iv)("padding:",o.W0[12]," ",o.W0[24],";;label:modalHeaderCss;"),modalContentCss:(0,i.iv)("background-color:",o.qo.background.white,";;label:modalContentCss;")}},9148:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(3871),o=r(5350),i=r(8138),a=r(824),l=r(917),c=r(802),u=r(1709),s=r(1234),d=r(1073),p=r(7679),f=r(6680),v=r(1030),h=r(7536),b=r(9250),y=r(9781),m=r(5944);function g(e){return g="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},g(e)}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(){w=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new C(o||[]);return n(a,"_invoke",{value:O(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(P([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==g(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function O(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},E(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function S(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}const I=function(e){var t=e.closeModal,r=e.title,a=e.textLabel,l=e.textPlaceholder,g=e.createPopup,E=(e.isPopup,(0,s.$)()),O=(0,p.mp)(),I=(0,b.s0)(),C=(0,d.j)((function(e){return e.setActiveAction})),P=(0,u.T)().closeSettingPanel,A=(0,c.O)({defaultValues:{title:""}});return a||(a=E("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_CREATE_PAGE_TITLE")),l||(l=E("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_CREATE_PAGE_TITLE_PLACEHOLDER")),(0,m.tZ)(y.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,wrapperCss:x.wrapper,children:(0,m.BX)("form",{onSubmit:A.handleSubmit((0,f.GI)(A,function(){var e,r=(e=w().mark((function e(r){var n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!g){e.next=6;break}return e.next=3,O.mutateAsync({title:r.title,type:"popup"});case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,O.mutateAsync({title:r.title});case 8:e.t0=e.sent;case 9:(n=e.t0).id&&(C(void 0),P(),I(g?i.F.PopupEditor.buildLink({id:n.id.toString(),type:"popup"}):i.F.PageEditor.buildLink({id:n.id.toString(),type:""})),t({action:"CLOSE"}));case 11:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){S(i,n,o,a,l,"next",e)}function l(e){S(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}())),children:[(0,m.tZ)("div",{css:x.fieldWrapper,children:(0,m.tZ)(h.Qr,{name:"title",control:A.control,rules:_({},(0,v.n)()),render:function(e){return(0,m.tZ)(o.Z,_(_({},e),{},{label:a,placeholder:l,hasAutoFocus:!0}))}})}),(0,m.BX)("div",{css:x.buttonWrapper,children:[(0,m.tZ)(n.Z,{variant:"secondary",onClick:function(){return t({action:"CLOSE"})},children:E("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_CANCEL")}),(0,m.tZ)(n.Z,{type:"submit",loading:O.isLoading,children:E("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_SAVE_AND_GO")})]})]})})};var x={wrapper:{name:"1od26ax-wrapper",styles:"max-width:400px;label:wrapper;"},fieldWrapper:(0,l.iv)("padding:",a.W0[20],";display:flex;flex-direction:column;gap:",a.W0[12],";background-color:",a.qo.base.white,";;label:fieldWrapper;"),buttonWrapper:(0,l.iv)("background-color:",a.qo.background.white,";box-shadow:",a.AF.dividerTop,";padding:",a.W0[12]," ",a.W0[16],";display:flex;justify-content:end;gap:",a.W0[8],";;label:buttonWrapper;")}},5827:(e,t,r)=>{"use strict";r.d(t,{L:()=>h});var n=r(3871),o=r(9085),i=r(824),a=r(4185),l=r(917),c=r(1234),u=r(7294),s=r(1337),d=r(9781),p=r(5944);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var v=function(e){var t,r,i=e.title,a=e.confirmationMessage,l=e.confirmButtonText,s=e.isPopup,v=void 0!==s&&s,h=e.closeModal,y=(0,c.$)(),m=(t=(0,u.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(t,r)||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.")}()),g=m[0],E=m[1];return(0,p.tZ)(d.Z,{onClose:function(){return h({action:"CLOSE",seoChecked:g})},title:i||y("COM_SPPAGEBUILDER_EDITOR_PAGE_EXPORT_TITLE"),headerCss:b.modalHeaderCss,contentCss:b.modalContentCss,wrapperCss:b.modalWrapper,children:(0,p.BX)("div",{children:[(0,p.BX)("div",{css:b.content,children:[(0,p.tZ)("p",{children:a||y("COM_SPPAGEBUILDER_EDITOR_EXPORT_MESSAGE")}),!1===v?(0,p.tZ)(o.Z,{labelCss:b.labelCss,checked:g,onChange:function(e,t){E(e),t.target.checked=e},label:y("COM_SPPAGEBUILDER_EDITOR_EXPORT_LABEL_SEO_DATA")}):(0,p.tZ)(p.HY,{})]}),(0,p.BX)("div",{css:b.footerWrapper,children:[(0,p.tZ)(n.Z,{variant:"secondary",onClick:function(){return h({action:"CLOSE"})},children:y("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,p.tZ)(n.Z,{onClick:function(){h({action:"CONFIRM",seoChecked:g})},children:l||y("COM_SPPAGEBUILDER_EDITOR_PAGE_EXPORT_CONFIRMATION")})]})]})})},h=function(){var e=(0,s.d)().showModal;return function(t){return e({component:v,props:t,closeOnOutsideClick:!0})}},b={modalWrapper:{name:"1utdhwa-modalWrapper",styles:"max-width:450px;label:modalWrapper;"},content:(0,l.iv)("display:flex;flex-direction:column;gap:",i.W0[16],";padding:",i.W0[16]," ",i.W0[24],";p{",a.c.body(),";};label:content;"),footerWrapper:(0,l.iv)("display:flex;justify-content:end;gap:",i.W0[8],";padding:",i.W0[12]," ",i.W0[16],";box-shadow:",i.AF.dividerTop,";;label:footerWrapper;"),modalHeaderCss:(0,l.iv)("padding:",i.W0[12]," ",i.W0[24],";;label:modalHeaderCss;"),modalContentCss:(0,l.iv)("background-color:",i.qo.background.white,";;label:modalContentCss;"),labelCss:(0,l.iv)("width:fit-content;",a.c.body("medium"),";;label:labelCss;")}},2899:(e,t,r)=>{"use strict";r.d(t,{n:()=>I});var n=r(3871),o=r(7264),i=r(1731),a=r(8138),l=r(824),c=r(4185),u=r(917),s=r(1234),d=r(5527),p=r(7839),f=r(7294),v=r(9250),h=r(1337),b=r(9781),y=r(5944);function m(e){return m="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},m(e)}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(){E=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new C(o||[]);return n(a,"_invoke",{value:w(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(P([])));y&&y!==t&&r.call(y,i)&&(h=y);var g=v.prototype=p.prototype=Object.create(h);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==m(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return f.prototype=v,n(g,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},_(O.prototype),c(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(g),c(g,l,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function _(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){_(i,n,o,a,l,"next",e)}function l(e){_(i,n,o,a,l,"throw",e)}a(void 0)}))}}var w=[{text:"Download or locate the file for your custom font. There are many sources online for downloading fonts. It must be downloaded as .TTF or .OTF file. You can also download the font directly through",link:{url:"https://www.fontsquirrel.com/",text:"Font Squirrel"}},{text:"Go to the",link:{url:"https://www.fontsquirrel.com/tools/webfont-generator",text:"Font Squirrel Webfont Generator"}},{text:"Click the Upload Fonts button to select your .TTF or .OTF file."},{text:"Select the output of the files (we recommend using the Basic or Optimal settings unless you are comfortable with the Expert Settings.)"},{text:"Tick the agreement section."},{text:"Click Download your kit"},{text:"Once it is finished downloading, you will be left with a webfontkit zip file. Upload the font zip file."}],S=function(e){var t=e.closeModal,r=e.title,l=(0,s.$)(),c=(0,f.useRef)(null),u=(0,v.s0)(),h=(0,i.p)().showToast,m=(0,p.M9)(),_=function(){var e=O(E().mark((function e(r){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.mutateAsync({font:r[0]});case 3:t(),u(a.F.FontManager.buildLink()),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),h({type:"danger",message:e.t0.message});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}();return(0,y.tZ)(b.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,wrapperCss:x.modalWrapperCss,contentCss:x.contentCss,children:(0,y.BX)("div",{css:x.wrapper,children:[(0,y.BX)("div",{css:x.leftSide,children:[(0,y.tZ)("div",{css:x.leftSideHeader,children:(0,y.BX)(n.Z,{buttonCss:x.uploadButton,onClick:function(){var e;null===(e=c.current)||void 0===e||e.click()},loading:m.isLoading,children:[(0,y.tZ)(o.Z,{name:"upload"}),(0,y.tZ)("span",{children:l("COM_SPPAGEBUILDER_EDITOR_UPLOAD_FONT_BUTTON")})]})}),(0,y.tZ)("div",{css:x.instructionWrapper,children:(0,y.tZ)("ol",{css:x.instructions,children:w.map((function(e,t){return(0,y.BX)("li",{children:[e.text,e.link&&(0,y.tZ)("a",{target:"_blank",href:e.link.url,rel:"noreferrer noopener",children:e.link.text})]},t)}))})})]}),(0,y.BX)("div",{css:x.dropzoneWrapper,children:[(0,y.tZ)(d.Z,{onUpload:_,onDragLeave:function(){},isLoading:m.isLoading,uploadButtonText:"COM_SPPAGEBUILDER_EDITOR_FONT_UPLOAD_BUTTON",uploadMessage:"COM_SPPAGEBUILDER_EDITOR_FONT_UPLOAD_MESSAGE"}),(0,y.tZ)("input",{type:"file",css:x.fileUploader,ref:c,onChange:function(){var e=O(E().mark((function e(t){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.target.files){e.next=4;break}return e.next=3,_(function(e){if(Array.isArray(e))return g(e)}(r=t.target.files)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(r)||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.")}());case 3:t.target.value="";case 4:case"end":return e.stop()}var r}),e)})));return function(t){return e.apply(this,arguments)}}()})]})]})})},I=function(){var e=(0,h.d)().showModal;return function(t){return e({component:S,props:t})}},x={fileUploader:{name:"10d4pd6-fileUploader",styles:"appearance:none;visibility:hidden;label:fileUploader;"},instructionWrapper:{name:"xw8qju-instructionWrapper",styles:"height:calc(100% - 64px);overflow-y:auto;label:instructionWrapper;"},modalWrapperCss:{name:"w84rft-modalWrapperCss",styles:"max-width:1394px;label:modalWrapperCss;"},contentCss:{name:"thdkuv-contentCss",styles:"height:min(70vh, 700px);display:flex;label:contentCss;"},wrapper:(0,u.iv)("padding:",l.W0[32]," ",l.W0[24],";display:flex;gap:",l.W0[32],";width:100%;;label:wrapper;"),leftSide:(0,u.iv)("max-width:317px;width:100%;background-color:",l.qo.background.white,";box-shadow:",l.AF.card,";border-radius:",l.E0[5],";;label:leftSide;"),instructions:(0,u.iv)("display:flex;flex-direction:column;gap:",l.W0[16],";list-style-type:decimal;padding:",l.W0[16]," ",l.W0[16]," ",l.W0[16]," ",l.W0[32],";li{",c.c.caption(),";color:",l.qo.text.neutral,";a{color:",l.qo.text.primary,";margin-left:",l.W0[4],";text-decoration:underline;margin-top:",l.W0[4],";}};label:instructions;"),leftSideHeader:(0,u.iv)("padding:",l.W0[16],";border-bottom:1px solid ",l.qo.stroke.neutral,";;label:leftSideHeader;"),dropzoneWrapper:{name:"1y4s0sh-dropzoneWrapper",styles:"width:100%;label:dropzoneWrapper;"},uploadButton:(0,u.iv)("width:100%;&>span{display:flex;gap:",l.W0[8],";align-items:center;justify-content:center;};label:uploadButton;")}},6566:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n=r(3871),o=r(4924),i=r(3169),a=r(1731),l=r(824),c=r(4185),u=r(917),s=r(1234),d=r(9194),p=r(6131),f=r(1921),v=r(230),h=r(4101),b=r(7536),y=r(5944);function m(e){return m="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},m(e)}function g(){g=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new C(o||[]);return n(a,"_invoke",{value:w(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(P([])));y&&y!==t&&r.call(y,i)&&(h=y);var E=v.prototype=p.prototype=Object.create(h);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==m(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return f.prototype=v,n(E,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},_(O.prototype),c(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){w(i,n,o,a,l,"next",e)}function l(e){w(i,n,o,a,l,"throw",e)}a(void 0)}))}}const I=function(e){var t=e.layout,r=e.templateName,l=e.closeModal,u=e.liveDemo,f=void 0===u||u,h=e.isPopup,m=void 0!==h&&h,E=(0,s.$)(),O=(0,a.p)().showToast,w=(0,p.o)((function(e){return e.setPageContent})),I=(0,b.Gc)(),x=(0,d.i8)();return(0,y.tZ)("div",{css:P.wrapper(m),children:(0,y.BX)("div",{css:P.layoutItem({isFreeVersion:v.Eu}),children:[(0,y.tZ)(i.Z,{enabled:v.Eu,children:(0,y.BX)("div",{css:P.layoutMedia({isFreeVersion:v.Eu,isPopup:m}),children:[(0,y.tZ)("img",{src:t.thumb,alt:t.title,"data-media-image":!0}),v.Eu&&(0,y.tZ)(o.Z,{}),!v.Eu&&(0,y.BX)("div",{css:P.mediaOverlay,"data-media-overlay":!0,children:[f&&(0,y.tZ)(n.Z,{variant:"secondary",onClick:function(){var e;return null===(e=window.open(t.preview,"_blank","noopener,noreferrer"))||void 0===e?void 0:e.focus()},children:E("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_LIVE_DEMO")}),(0,y.tZ)(n.Z,{variant:"primary",loading:x.isLoading,onClick:S(g().mark((function e(){var r,n,o,i,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x.mutateAsync({id:t.id,type:m?"popup":"template"});case 2:r=e.sent,w(r.data.template,!0),m&&r.data.attribs&&(n=I.getValues(),o={visibility:n.attribs.visibility,exclude_pages_toggle:n.attribs.exclude_pages_toggle,exclude_menus_toggle:n.attribs.exclude_menus_toggle,excluded_pages:n.attribs.excluded_pages,excluded_menus:n.attribs.excluded_menus,selected_pages:n.attribs.selected_pages,selected_menus:n.attribs.selected_menus,trigger_condition:n.attribs.trigger_condition,scroll_direction:n.attribs.scroll_direction,scroll_percentage:n.attribs.scroll_percentage,landing_after:n.attribs.landing_after,landing_show_after:n.attribs.landing_show_after,exit_after:n.attribs.exit_after,exit_show_after:n.attribs.exit_show_after,click_type:n.attribs.click_type,click_count:n.attribs.click_count,click_area:n.attribs.click_area,hover_area:n.attribs.hover_area,inactivity_duration:n.attribs.inactivity_duration,close_on_click:n.attribs.close_on_click,reappear_after:n.attribs.reappear_after},r.data.attribs&&(i=JSON.parse(r.data.attribs),a=_(_({},i),o),n.attribs=a),I.reset(n)),O({type:"success",message:E(m?"COM_SPPAGEBUILDER_EDITOR_POPUP_LAYOUT_IMPORTED_SUCCESSFULLY":"COM_SPPAGEBUILDER_EDITOR_LAYOUT_PAGE_IMPORTED_SUCCESSFULLY")}),l({action:"IMPORT"});case 7:case"end":return e.stop()}}),e)}))),children:E("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_IMPORT")})]})]})}),m&&(0,y.BX)("div",{css:P.templateFooter,children:[(0,y.tZ)("div",{css:P.footerTop,children:(0,y.tZ)("div",{css:c.c.body("medium"),children:t.title})}),(0,y.tZ)("div",{css:P.caption,children:E("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_DOWNLOADS",{count:t.hits})})]}),!m&&(0,y.tZ)("div",{css:P.layoutFooter,children:"".concat(t.title," (").concat(r,")")})]})})};var x={name:"9xk68e-layoutMedia",styles:"position:relative;label:layoutMedia;"},C={name:"bf5j38-layoutItem",styles:"&:hover [data-media-image]{filter:blur(3px);};label:layoutItem;"},P={wrapper:function(e){return(0,u.iv)(f.iZ.resetButton,";height:",e?"202px":"288px",";;label:wrapper;")},layoutItem:function(e){var t=e.isFreeVersion,r=void 0!==t&&t;return(0,u.iv)("box-shadow:",l.AF.addon,";border-radius:",l.E0[5],";overflow:hidden;transition:box-shadow 0.3s ease;height:100%;display:flex;flex-direction:column;background-color:",l.qo.background.white,";&:hover [data-media-overlay]{opacity:1;}",!r&&C,";;label:layoutItem;")},layoutMedia:function(e){var t=e.isFreeVersion,r=void 0!==t&&t,n=e.isPopup,o=void 0!==n&&n;return(0,u.iv)("max-height:",o?"134px":"244px",";overflow:hidden;flex:1;",!r&&x," ",o?"background: #353535;":""," img{width:100%;",o?"border-radius: ".concat(l.E0[5],";\n      border-bottom-right-radius: 0px;\n      border-bottom-left-radius: 0px;\n    "):""," transition:filter 0.3s ease-in-out;};label:layoutMedia;")},mediaOverlay:(0,u.iv)("position:absolute;inset:0;background-color:",(0,h.m4)(l.qo.base.black,.7),";display:flex;flex-direction:column;align-items:center;justify-content:center;gap:",l.W0[8],";opacity:0;transition:opacity 0.3s ease-in-out;button{min-width:100px;:last-of-type{color:",l.qo.text.white,";}span{justify-content:center;}};label:mediaOverlay;"),layoutFooter:(0,u.iv)(c.c.body("medium")," background-color:",l.qo.background.white,";border-radius:0 0 ",l.E0[5]," ",l.E0[5],";padding:",l.W0[12]," ",l.W0[16],";border-top:1px solid ",l.qo.stroke.neutral,";transition:background-color 0.3s ease;;label:layoutFooter;"),templateFooter:(0,u.iv)("background-color:",l.qo.background.white,";border-radius:0 0 ",l.E0[5]," ",l.E0[5],";padding:",l.W0[12]," ",l.W0[16],";border-top:1px solid ",l.qo.stroke.neutral,";;label:templateFooter;"),footerTop:(0,u.iv)("display:flex;justify-content:space-between;align-items:center;gap:",l.W0[4],";margin-bottom:",l.W0[4],";;label:footerTop;"),caption:(0,u.iv)(c.c.caption()," color:",l.qo.text.neutral,";white-space:nowrap;;label:caption;")}},1593:(e,t,r)=>{"use strict";r.d(t,{Z:()=>A});var n=r(3871),o=r(9085),i=r(935),a=r(8122),l=r(5350),c=r(824),u=r(4185),s=r(917),d=r(36),p=r(802),f=r(1234),v=r(9194),h=r(1921),b=r(7294),y=r(7536),m=r(6566),g=r(9781),E=r(5944);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(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 x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||C(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 C(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const A=function(e){var t=e.closeModal,r=e.title,c=e.form,s=(0,f.$)(),h=x((0,b.useState)(null),2),_=h[0],O=(h[1],x((0,b.useState)([]),2)),S=O[0],C=O[1],P=(0,v.u9)(),A=(0,p.O)({defaultValues:{search:"",page:"",sortBy:""}}),T=(0,d.N)(A.watch("search")),D=A.watch("sortBy"),Z=[{label:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_TITLE_ASC"),value:"asc"},{label:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_TITLE_DESC"),value:"desc"},{label:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_POPULAR_FIRST"),value:"popular-first"}];if(P.isLoading)return(0,E.tZ)(i.g4,{});if(!P.data)return(0,E.tZ)("div",{children:s("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG")});var j=function(e,t){return"asc"===D?e.title>t.title?1:-1:"desc"===D?t.title>e.title?1:-1:"popular-first"===D&&e.hits?Number(t.hits)-Number(e.hits):0};return(0,E.tZ)(g.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,children:(0,E.tZ)(y.RV,w(w({},c),{},{children:(0,E.BX)("div",{css:L.wrapper(!!_),children:[(0,E.tZ)("div",{children:(0,E.BX)("div",{css:L.categoriesWrapper,children:[(0,E.tZ)("div",{css:L.categoryLabel,children:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_CATEGORIES")}),(0,E.tZ)("div",{css:L.categoryItems,children:P.data.map((function(e){return(0,E.BX)("div",{css:L.categoryItem,children:[(0,E.tZ)(o.Z,{label:e.title,labelCss:u.c.body(),checked:S.includes(e.id),onChange:function(t){C(t?[].concat(I(S),[e.id]):S.filter((function(t){return t!==e.id})))}}),(0,E.tZ)("span",{children:e.items.length})]},e.id)}))})]})}),(0,E.BX)("div",{children:[(0,E.BX)("div",{css:L.topBar,children:[(0,E.tZ)(y.Qr,{control:A.control,name:"search",render:function(e){return(0,E.tZ)(l.Z,w(w({},e),{},{variant:"search",placeholder:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_SEARCH_LAYOUTS"),isClearable:!0}))}}),(0,E.BX)("div",{css:L.topBarRight,children:[(0,E.tZ)(y.Qr,{control:A.control,name:"sortBy",render:function(e){return(0,E.tZ)(a.Z,w(w({},e),{},{options:Z,placeholder:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_SORT_BY")}))}}),(0,E.tZ)(n.Z,{variant:"text",onClick:function(){return A.reset()},children:s("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_RESET")})]})]}),(0,E.tZ)("div",{css:L.layoutsWrapper,children:P.data.map((function(e){return S.length<1||S.includes(e.id)?function(e){var r=e.items,n=new RegExp(T,"i");return T&&T.length&&(r=e.items.filter((function(e){return n.test(e.title)}))),I(r).sort(j).map((function(e){var r={id:e.id,title:e.title,preview:"/",hits:e.hits.toString(),thumb:e.thumb};return(0,E.tZ)(m.Z,{layout:r,templateName:e.title,closeModal:t,liveDemo:!1,isPopup:!0},e.id)}))}(e):void 0}))})]})]})}))})};var L={wrapper:function(e){return(0,s.iv)("padding:",c.W0[24]," 0 ",c.W0[24]," ",c.W0[24],";position:relative;height:calc(100vh - 130px);",!e&&(0,s.iv)("padding:",c.W0[32]," 0 ",c.W0[32]," ",c.W0[24],";display:grid;grid-template-columns:228px auto;gap:",c.W0[32],";;label:wrapper;"),";;label:wrapper;")},backToLayout:(0,s.iv)("margin-bottom:",c.W0[16],";padding:0;;label:backToLayout;"),categoriesWrapper:(0,s.iv)("background-color:",c.qo.background.white,";border-radius:",c.E0[5],";box-shadow:",c.AF.card,";;label:categoriesWrapper;"),categoryLabel:(0,s.iv)(u.c.body("medium"),";padding:",c.W0[12]," ",c.W0[16]," 0;;label:categoryLabel;"),categoryItems:(0,s.iv)("display:flex;flex-direction:column;gap:",c.W0[16],";padding:",c.W0[16],";;label:categoryItems;"),categoryItem:(0,s.iv)("display:flex;justify-content:space-between;align-items:center;span{",u.c.body(),";color:",c.qo.text.neutral,";};label:categoryItem;"),topBar:(0,s.iv)("display:flex;align-items:center;justify-content:space-between;gap:",c.W0[16],";padding-right:",c.W0[32],";margin-bottom:",c.W0[28],";;label:topBar;"),topBarRight:(0,s.iv)("display:flex;align-items:center;border:1px solid ",c.qo.stroke.neutral,";border-radius:",c.E0[5],";overflow:hidden;input{border:none;border-right:1px solid ",c.qo.stroke.neutral,";border-radius:0;&:focus{box-shadow:none;}};label:topBarRight;"),layoutsWrapper:(0,s.iv)("display:grid;grid-template-columns:repeat(4, 1fr);gap:",c.W0[32],";padding:",c.W0[4]," ",c.W0[24]," ",c.W0[2]," ",c.W0[2],";max-height:calc(100vh - 260px);",h.iZ.overflowYAuto,";",c.Uo.smallTablet,"{grid-template-columns:repeat(3, 1fr);};label:layoutsWrapper;")}},7855:(e,t,r)=>{"use strict";r.d(t,{Z:()=>$});var n=r(3871),o=r(9085),i=r(935),a=r(7264),l=r(8122),c=r(5350),u=r(824),s=r(4185),d=r(917),p=r(36),f=r(802),v=r(1234),h=r(9194),b=r(1921),y=r(7294),m=r(7536),g=r(6566),E=r(4924),_=r(230),O=r(5944);const w=function(e){var t=e.template,r=e.setActiveTemplate,o=(0,v.$)();return(0,O.tZ)("div",{children:(0,O.BX)("div",{css:S.templateItem(t.accent_color),children:[(0,O.BX)("div",{css:S.templateMedia,children:[(0,O.tZ)("img",{src:t.thumb,alt:t.title,"data-media-image":!0}),(0,O.tZ)("div",{css:S.mediaOverlay({color:t.accent_color}),"data-media-overlay":!0,children:(0,O.tZ)(n.Z,{onClick:function(){return r(t)},children:o("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_VIEW_DETAILS")})}),_.Eu&&(0,O.tZ)(E.Z,{})]}),(0,O.BX)("div",{css:S.templateFooter,children:[(0,O.BX)("div",{css:S.footerTop,children:[(0,O.tZ)("div",{css:s.c.body("medium"),children:t.title}),(0,O.tZ)("div",{css:S.caption,children:o("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_PAGES",{count:t.count})})]}),(0,O.tZ)("div",{css:S.caption,children:o("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_DOWNLOADS",{count:t.hits})})]})]})})};var S={templateItem:function(e){return(0,d.iv)("position:relative;margin-top:",u.W0[12],";box-shadow:",u.AF.addon,";border-radius:",u.E0[5],";&::before{content:'';position:absolute;width:calc(100% - 20px);height:6px;top:-6px;left:10px;background-color:rgba(",e.length>0?e:"0, 0, 0",", 0.7);border-radius:",u.E0[5]," ",u.E0[5]," 0 0;}&::after{content:'';position:absolute;width:calc(100% - 40px);height:6px;top:-12px;left:20px;background-color:rgba(",e.length>0?e:"0, 0, 0",", 0.3);border-radius:",u.E0[5]," ",u.E0[5]," 0 0;}&:hover [data-media-overlay]{opacity:1;}&:hover [data-media-image]{filter:blur(3px);};label:templateItem;")},templateMedia:(0,d.iv)("height:244px;border-radius:",u.E0[5]," ",u.E0[5]," 0 0;overflow:hidden;position:relative;img{width:100%;transition:filter 0.3s ease-in-out;};label:templateMedia;"),mediaOverlay:function(e){var t=e.color;return(0,d.iv)("position:absolute;width:100%;height:100%;top:0;left:0;background-color:rgba(",t.length>0?t:"0, 0, 0",", 0.7);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity 0.3s ease-in-out;;label:mediaOverlay;")},templateFooter:(0,d.iv)("background-color:",u.qo.background.white,";border-radius:0 0 ",u.E0[5]," ",u.E0[5],";padding:",u.W0[12]," ",u.W0[16],";border-top:1px solid ",u.qo.stroke.neutral,";;label:templateFooter;"),footerTop:(0,d.iv)("display:flex;justify-content:space-between;align-items:center;gap:",u.W0[4],";margin-bottom:",u.W0[4],";;label:footerTop;"),caption:(0,d.iv)(s.c.caption()," color:",u.qo.text.neutral,";white-space:nowrap;;label:caption;")},I=r(9787),x=r(1731),C=r(6131);const P=function(e){var t=e.layout,r=e.isActive,n=e.setActiveLayout;return(0,O.tZ)("button",{css:A.wrapper,onClick:function(){return n(t)},children:(0,O.BX)("div",{css:A.layoutItem({isActive:r}),children:[(0,O.tZ)("div",{css:A.layoutMedia,children:(0,O.tZ)("img",{src:t.thumb,alt:t.title})}),(0,O.tZ)("div",{css:A.layoutFooter({isActive:r}),children:t.title})]})})};var A={wrapper:(0,d.iv)(b.iZ.resetButton,";height:288px;;label:wrapper;"),layoutItem:function(e){var t=e.isActive;return(0,d.iv)("position:relative;box-shadow:",u.AF.addon,";border-radius:",u.E0[5],";overflow:hidden;transition:box-shadow 0.3s ease;height:100%;display:flex;flex-direction:column;background-color:",u.qo.background.white,";",t&&(0,d.iv)("box-shadow:0px 0px 0px 2px ",u.qo.base.primary,";;label:layoutItem;")," &:hover img{top:-60px;}",!t&&(0,d.iv)("&:hover{box-shadow:0px 0px 0px 1px ",u.qo.base.primary,";>:last-of-type{background-color:",u.qo.background.hover,";}};label:layoutItem;"),";;label:layoutItem;")},layoutMedia:{name:"cypg2z-layoutMedia",styles:"max-height:244px;overflow:hidden;flex:1;img{width:100%;position:relative;top:0;transition:top 1s ease-in;};label:layoutMedia;"},layoutFooter:function(e){var t=e.isActive;return(0,d.iv)(s.c.body("medium")," background-color:",u.qo.background.white,";border-radius:0 0 ",u.E0[5]," ",u.E0[5],";padding:",u.W0[12]," ",u.W0[16],";border-top:1px solid ",u.qo.stroke.neutral,";transition:background-color 0.3s ease;",t&&(0,d.iv)("background-color:",u.qo.background.active,";;label:layoutFooter;"),";;label:layoutFooter;")}};function L(e){return L="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},L(e)}function T(){T=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==L(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==L(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===L(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function B(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){R(i,n,o,a,l,"next",e)}function l(e){R(i,n,o,a,l,"throw",e)}a(void 0)}))}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const k=function(e){var t,r,o=e.template,i=e.closeModal,a=(0,v.$)(),l=(t=(0,y.useState)(o.layouts[0]),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t,r)||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.")}()),c=l[0],u=l[1],d=(0,C.o)((function(e){return e.setPageContent})),p=(0,x.p)().showToast,f=(0,m.Gc)(),b=(0,h.i8)();return(0,O.BX)("div",{css:G.detailsWrapper,children:[(0,O.tZ)("div",{children:(0,O.tZ)("div",{css:G.detailsThumb,children:(0,O.tZ)("img",{src:c.thumb,alt:c.title})})}),(0,O.BX)("div",{children:[(0,O.BX)("h4",{css:G.detailsTitle,children:[o.title,(0,O.BX)("span",{children:[a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_LAYOUT_COUNT",{count:o.count})," ",(0,O.tZ)("span",{children:_.Eu&&(0,O.tZ)(E.Z,{isInline:!0})})]})]}),(0,O.tZ)("p",{css:s.c.body(),children:o.description}),(0,O.tZ)("div",{css:G.detailLayouts,children:o.layouts.map((function(e){return(0,O.tZ)(P,{isActive:e.id===c.id,layout:e,setActiveLayout:u},e.id)}))})]}),(0,O.BX)("div",{css:G.detailsFooter,children:[(0,O.tZ)(n.Z,{variant:"secondary",onClick:function(){var e;return null===(e=window.open(c.preview,"_blank","noopener,noreferrer"))||void 0===e?void 0:e.focus()},children:a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_LIVE_DEMO")}),_.Eu?(0,O.tZ)(I.Z,{}):(0,O.tZ)(n.Z,{variant:"primary",loading:b.isLoading,onClick:B(T().mark((function e(){var t;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.mutateAsync({id:c.id,type:"template"});case 2:t=e.sent,d(t.data.template,!0),f.reset(Z(Z({},f.getValues()),{},{css:t.data.css})),p({type:"success",message:a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_PAGE_IMPORTED_SUCCESSFULLY")}),i({action:"IMPORT"});case 7:case"end":return e.stop()}}),e)}))),disabled:_.Eu,children:a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_IMPORT")})]})]})};var G={detailsWrapper:(0,d.iv)("display:grid;grid-template-columns:2fr 3fr;gap:",u.W0[56],";padding-bottom:",u.W0[56],";padding-right:",u.W0[24],";max-height:calc(100vh - 260px);",b.iZ.overflowYAuto,";;label:detailsWrapper;"),detailsThumb:(0,d.iv)("box-shadow:",u.AF.base,";border-radius:",u.E0[5],";overflow:hidden;margin-bottom:",u.W0[32],";img{width:100%;};label:detailsThumb;"),detailsFooter:(0,d.iv)("position:absolute;left:0;bottom:0;width:100%;background-color:",u.qo.background.white,";display:flex;justify-content:end;align-items:center;gap:",u.W0[8],";padding:",u.W0[12],";border-top:1px solid ",u.qo.stroke.default,";;label:detailsFooter;"),detailsTitle:(0,d.iv)(s.c.heading4(),";display:flex;align-items:center;justify-content:space-between;margin-bottom:",u.W0[12],";>span{",s.c.body(),";color:",u.qo.text.neutral,";display:flex;justify-content:center;align-items:center;gap:",u.W0[6],";};label:detailsTitle;"),detailLayouts:(0,d.iv)("display:grid;grid-template-columns:repeat(3, 1fr);align-items:start;gap:",u.W0[32],";padding:",u.W0[40]," 0 ",u.W0[32],";;label:detailLayouts;")},N=r(9781);function W(e){return W="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},W(e)}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){F(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function F(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==W(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===W(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||z(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 q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||z(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 z(e,t){if(e){if("string"==typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(e,t):void 0}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const $=function(e){var t=e.closeModal,r=e.title,u=e.form,d=(0,v.$)(),b=q((0,y.useState)(null),2),E=b[0],_=b[1],S=q((0,y.useState)([]),2),I=S[0],x=S[1],C=(0,h.nx)(),P=(0,f.O)({defaultValues:{search:"",page:"",sortBy:""}}),A=(0,p.N)(P.watch("search")),L=P.watch("page"),T=P.watch("sortBy"),D=[{label:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_TITLE_ASC"),value:"asc"},{label:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_TITLE_DESC"),value:"desc"},{label:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_POPULAR_FIRST"),value:"popular-first"}];if(C.isLoading)return(0,O.tZ)(i.g4,{});if(!C.data)return(0,O.tZ)("div",{children:d("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG")});var Z=function(e,t){return"asc"===T?e.title>t.title?1:-1:"desc"===T?t.title>e.title?1:-1:"popular-first"===T&&e.hits?Number(t.hits)-Number(e.hits):0};return(0,O.tZ)(N.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,children:(0,O.tZ)(m.RV,H(H({},u),{},{children:(0,O.tZ)("div",{css:X.wrapper(!!E),children:E?(0,O.BX)(O.HY,{children:[(0,O.BX)(n.Z,{variant:"text",onClick:function(){return _(null)},buttonCss:X.backToLayout,children:[(0,O.tZ)(a.Z,{name:"angleLeft"}),d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_BACK_TO_LAYOUT")]}),(0,O.tZ)(k,{template:E,closeModal:t})]}):(0,O.BX)(O.HY,{children:[(0,O.tZ)("div",{children:(0,O.BX)("div",{css:X.categoriesWrapper,children:[(0,O.tZ)("div",{css:X.categoryLabel,children:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_CATEGORIES")}),(0,O.tZ)("div",{css:X.categoryItems,children:C.data.layouts.map((function(e){return(0,O.BX)("div",{css:X.categoryItem,children:[(0,O.tZ)(o.Z,{label:e.title,labelCss:s.c.body(),checked:I.includes(e.alias),onChange:function(t){x(t?[].concat(V(I),[e.alias]):I.filter((function(t){return t!==e.alias})))}}),(0,O.tZ)("span",{children:e.count})]},e.id)}))})]})}),(0,O.BX)("div",{children:[(0,O.BX)("div",{css:X.topBar,children:[(0,O.tZ)(m.Qr,{control:P.control,name:"search",render:function(e){return(0,O.tZ)(c.Z,H(H({},e),{},{variant:"search",placeholder:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_SEARCH_LAYOUTS"),isClearable:!0}))}}),(0,O.BX)("div",{css:X.topBarRight,children:[(0,O.tZ)(m.Qr,{control:P.control,name:"page",render:function(e){return(0,O.tZ)(l.Z,H(H({},e),{},{options:C.data.pages,placeholder:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_PAGE")}))}}),(0,O.tZ)(m.Qr,{control:P.control,name:"sortBy",render:function(e){return(0,O.tZ)(l.Z,H(H({},e),{},{options:D,placeholder:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_SORT_BY")}))}}),(0,O.tZ)(n.Z,{variant:"text",onClick:function(){return P.reset()},children:d("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_RESET")})]})]}),(0,O.tZ)("div",{css:X.layoutsWrapper,children:C.data.layouts.map((function(e){return I.length<1||I.includes(e.alias)?function(e){var r=e.templates,n=new RegExp(A);return A&&A.length&&(r=e.templates.filter((function(e){return n.test(e.alias)}))),V(r).sort(Z).map((function(e){return L?e.layouts.map((function(r){if(r.title.toLocaleLowerCase()===L.toLocaleLowerCase())return(0,O.tZ)(g.Z,{layout:r,templateName:e.title,closeModal:t},r.id)})):(0,O.tZ)(w,{template:e,setActiveTemplate:_},e.id)}))}(e):void 0}))})]})]})})}))})};var X={wrapper:function(e){return(0,d.iv)("padding:",u.W0[24]," 0 ",u.W0[24]," ",u.W0[24],";position:relative;height:calc(100vh - 130px);",!e&&(0,d.iv)("padding:",u.W0[32]," 0 ",u.W0[32]," ",u.W0[24],";display:grid;grid-template-columns:228px auto;gap:",u.W0[32],";;label:wrapper;"),";;label:wrapper;")},backToLayout:(0,d.iv)("margin-bottom:",u.W0[16],";padding:0;;label:backToLayout;"),categoriesWrapper:(0,d.iv)("background-color:",u.qo.background.white,";border-radius:",u.E0[5],";box-shadow:",u.AF.card,";;label:categoriesWrapper;"),categoryLabel:(0,d.iv)(s.c.body("medium"),";padding:",u.W0[12]," ",u.W0[16]," 0;;label:categoryLabel;"),categoryItems:(0,d.iv)("display:flex;flex-direction:column;gap:",u.W0[16],";padding:",u.W0[16],";;label:categoryItems;"),categoryItem:(0,d.iv)("display:flex;justify-content:space-between;align-items:center;span{",s.c.body(),";color:",u.qo.text.neutral,";};label:categoryItem;"),topBar:(0,d.iv)("display:flex;align-items:center;justify-content:space-between;gap:",u.W0[16],";padding-right:",u.W0[32],";margin-bottom:",u.W0[28],";;label:topBar;"),topBarRight:(0,d.iv)("display:flex;align-items:center;border:1px solid ",u.qo.stroke.neutral,";border-radius:",u.E0[5],";overflow:hidden;input{border:none;border-right:1px solid ",u.qo.stroke.neutral,";border-radius:0;&:focus{box-shadow:none;}};label:topBarRight;"),layoutsWrapper:(0,d.iv)("display:grid;grid-template-columns:repeat(4, 1fr);gap:",u.W0[32],";padding:",u.W0[4]," ",u.W0[24]," ",u.W0[2]," ",u.W0[2],";max-height:calc(100vh - 260px);",b.iZ.overflowYAuto,";",u.Uo.smallTablet,"{grid-template-columns:repeat(3, 1fr);};label:layoutsWrapper;")}},1337:(e,t,r)=>{"use strict";r.d(t,{D:()=>E,d:()=>g});var n=r(824),o=r(917),i=r(230),a=r(2902),l=r(4101),c=r(7294),u=r(5944);function s(e){return s="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},s(e)}function d(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(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 p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y={backdrop:(0,o.iv)("position:fixed;background-color:",(0,l.m4)(n.qo.text.hover,.8),";border:1px solid rgba(255, 255, 255, 0.5);backdrop-filter:blur(18px);inset:0;z-index:",n.W5.negative,";;label:backdrop;"),container:(0,o.iv)("z-index:",n.W5.modal,";position:fixed;inset:0;display:flex;justify-content:center;align-items:center;;label:container;"),wrapper:{name:"xkv8rl-wrapper",styles:"display:flex;justify-content:center;align-items:center;width:100%;height:100%;label:wrapper;"},popupBackdrop:function(e){return(0,o.iv)("top:",e?"48px !important":"",";;label:popupBackdrop;")}},m=c.createContext({showModal:function(){return Promise.resolve({action:"CLOSE"})},closeModal:i.ZT,hasModalOnStack:!1}),g=function(){return(0,c.useContext)(m)},E=function(e){var t,r,n=e.children,o=(t=(0,c.useState)({modals:[]}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||h(t,r)||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.")}()),l=o[0],s=o[1],p=function(e){"Escape"===e.key&&b({action:"CLOSE"})},v=(0,c.useCallback)((function(e){var t=e.component,r=e.props,n=e.closeOnOutsideClick,o=void 0!==n&&n;return document.addEventListener("keydown",p,!1),new Promise((function(e){s((function(n){return f(f({},n),{},{modals:[].concat(d(n.modals),[{component:t,props:r,resolve:e,closeOnOutsideClick:o,id:(0,i.x0)()}])})}))}))}),[]),b=(0,c.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{action:"CLOSE"};s((function(t){return(0,a.Uy)(t,(function(t){var r=t.modals.pop();return null==r||r.resolve(e),0===t.modals.length&&document.removeEventListener("keydown",p,!1),t}))}))}),[]),g=(0,c.useMemo)((function(){return l.modals.length>0}),[l.modals]);return(0,u.BX)(m.Provider,{value:{showModal:v,closeModal:b,hasModalOnStack:g},children:[n,l.modals.map((function(e){var t,r;return(0,u.BX)("div",{css:[y.container,y.popupBackdrop(null===(t=e.props)||void 0===t?void 0:t.isPopup),";label:ModalProvider;"],children:[(0,u.tZ)("div",{css:y.wrapper,children:c.createElement(e.component,f(f({},e.props),{},{closeModal:b}))}),(0,u.tZ)("div",{css:[y.backdrop,y.popupBackdrop(null===(r=e.props)||void 0===r?void 0:r.isPopup),";label:ModalProvider;"],onClick:function(){e.closeOnOutsideClick&&b({action:"CLOSE"})}})]},e.id)}))]})}},9781:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(3871),o=r(7264),i=r(824),a=r(4185),l=r(917),c=r(1921),u=r(7294),s=r(5944);const d=function(e){var t=e.children,r=e.onClose,i=e.title,l=e.isOverflowYAuto,c=void 0===l||l,d=e.wrapperCss,f=e.headerCss,v=e.contentCss;return(0,u.useEffect)((function(){return document.body.style.overflow="hidden",function(){document.body.style.overflow="initial"}}),[]),(0,s.BX)("div",{css:[p.container,d,";label:ModalWrapper;"],children:[(0,s.BX)("div",{css:[p.header,f,";label:ModalWrapper;"],children:[i&&(0,s.tZ)("h5",{css:a.c.heading5("medium"),children:i}),(0,s.tZ)(n.Z,{variant:"text",buttonCss:p.closeButton,onClick:r,children:(0,s.tZ)(o.Z,{name:"times",width:14,height:14})})]}),(0,s.tZ)("div",{css:[p.content({isOverflowYAuto:c}),v,";label:ModalWrapper;"],children:t})]})};var p={container:(0,l.iv)("background:",i.qo.background.primary,";margin:",i.W0[24],";width:100%;max-width:1350px;box-shadow:",i.AF.modal,";border-radius:",i.E0[8],";overflow:hidden;",i.Uo.smallTablet,"{max-width:90%;};label:container;"),header:(0,l.iv)("display:flex;justify-content:space-between;align-items:center;padding:",i.W0[12]," ",i.W0[16]," ",i.W0[12]," ",i.W0[24],";width:100%;background-color:",i.qo.background.white,";border-bottom:1px solid ",i.qo.stroke.neutral,";;label:header;"),closeButton:(0,l.iv)(c.iZ.resetButton,";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;svg{color:",i.qo.icon.default,";transition:color 0.3s ease-in-out;}:hover{svg{color:",i.qo.icon.hover,";}};label:closeButton;"),content:function(e){var t=e.isOverflowYAuto,r=void 0===t||t;return(0,l.iv)("overflow:hidden;max-height:calc(100vh - 120px);",r&&(0,l.iv)(c.iZ.overflowYAuto,";;label:content;"),";;label:content;")}}},1974:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(230);const o={API_BASE_URL:"".concat(n.Xy.pagebuilderBase,"administrator/index.php?option=com_sppagebuilder&task="),APPLICATION_ROOT:n.Xy.pagebuilderBase}},3106:(e,t,r)=>{"use strict";var n,o;function i(e){return i="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},i(e)}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Ak:()=>g,Dw:()=>L,Eb:()=>Z,HZ:()=>A,Hy:()=>p,IR:()=>B,LP:()=>R,Lx:()=>x,P8:()=>c,Q9:()=>f,RI:()=>y,Vg:()=>k,XA:()=>D,ZR:()=>O,Zs:()=>s,_y:()=>C,a7:()=>E,aX:()=>b,dR:()=>w,dZ:()=>h,f9:()=>M,g3:()=>l,hF:()=>_,iq:()=>u,lk:()=>v,lr:()=>j,oA:()=>P,pb:()=>m,sD:()=>S,sF:()=>I,t:()=>T,zu:()=>d});var l=48,c=326,u=80,s=320,d="xl",p=15,f=20,v=6,h="rtl"===document.dir,b=["hidden","text","gmap","select","category","plugin","accesslevel","animation","alert","alignment","headings","link","color","advancedcolor","border","textarea","separator","header","number","module","checkbox","radio","advancedradio","icon","editor","media","padding","margin","builder","boxshadow","slider","advancedslider","fontstyle","fonts","advancedsettings","typography","codeeditor","gradient","buttons","thumbnail","timeline","repeatable","frontend_navigator","banner","preset","effects","transform","image_shape"],y={accordion:{title:"Accordion",name:"accordion",key:"sp_accordion_item",text:"Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et."},tab:{title:"Tab",name:"tab",key:"sp_tab_item",text:"Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et."}},m={name:"table_advanced",bodyItemsKey:"table_advanced_item",headerItemsKey:"sp_table_advanced_item"},g={xl:{name:"COM_SPPAGEBUILDER_EDITOR_DEVICE_LAPTOP",icon:"laptop"},lg:{name:"COM_SPPAGEBUILDER_EDITOR_DEVICE_TABLET_LANDSCAPE",icon:"tabletHorizontal"},md:{name:"COM_SPPAGEBUILDER_EDITOR_DEVICE_TABLET_PORTRAIT",icon:"tabletVertical"},sm:{name:"COM_SPPAGEBUILDER_EDITOR_DEVICE_MOBILE_LANDSCAPE",icon:"mobileHorizontal"},xs:{name:"COM_SPPAGEBUILDER_EDITOR_DEVICE_MOBILE_PORTRAIT",icon:"mobileVertical"}},E={min:0,max:100},_={solid:"#B3B6CB",linear:"linear-gradient(131.63deg, #B5B5B5 11.15%, #F2F2F2 58.82%)",radial:"radial-gradient(41.67% 41.67% at 50% 50%, #4D5387 0%, rgba(115, 119, 155, 0) 100%)"},O=230,w=function(e){return e.COPIED_ADDON_LOCAL_STORAGE_KEY="sppb-backend-addon",e.COPIED_SECTION_LOCAL_STORAGE_KEY="sppb-backend-section",e.TABLE_COLUMNS_LOCAL_STORAGE_KEY="sppb-backend-table-columns",e.ITEMS_PER_PAGE_LOCAL_STORAGE_KEY="sppb-backend-items-per-page",e}({}),S="https://www.joomshaper.com/documentation/sp-page-builder",I={fade:{fadeIn:"Fade",fadeInDown:"Down",fadeInDownBig:"Down Big",fadeInLeft:"Left",fadeInLeftBig:"Left Big",fadeInRight:"Right",fadeInRightBig:"Right Big",fadeInUp:"Up",fadeInUpBig:"UpBig"},flip:{flip:"Flip",flipInX:"Flip X",flipInY:"Flip Y"},rotate:{rotateIn:"Rotate",rotateInDownLeft:"Down Left",rotateInDownRight:"Down Right",rotateInUpLeft:"Up Left",rotateInUpRight:"Up Right"},zoom:{zoomIn:"Zoom",zoomInDown:"Down",zoomInLeft:"Left",zoomInRight:"Right",zoomInUp:"Up"},bounce:{bounceIn:"Bounce",bounceInDown:"Down",bounceInLeft:"Left",bounceInRight:"Right",bounceInUp:"Up"},special:{flash:"Flash",pulse:"Pulse",rubberBand:"rubber Band",shakeX:"Shake X",shakeY:"Shake Y",headShake:"Head Shake",swing:"Swing",tada:"Tada",wobble:"Wobble",jello:"Jello",heartBeat:"Heart Beat"}},x=["System","Google Fonts","Arial","Tahoma","Verdana","Helvetica","Times New Roman","Trebuchet MS","Georgia"],C="https://www.joomshaper.com/pricing",P={productList:"easystore_common_productlist",categoryList:"easystore_common_categorylist",paginationstatus:"easystore_common_paginationstatus",filter:"easystore_list_filter",pagination:"easystore_list_pagination"},A={name:"easystore",extension:"com_easystore",single:{type:"single",url:"single-product",category:"Product"},list:{type:"storefront",url:"product-list",category:"Product List"}},L=function(e){return e.AddonElement="addon-element",e.ProductListAddonElement="productlist-addon-element",e.CategoryListAddonElement="categorylist-addon-element",e.SingleAddonElement="single-addon-element",e.CommonAddonElement="common-addon-element",e.CollectionAddonElement="easystore-collection-addon-element",e.DivElement="div-element",e.RowElement="row-element",e.ColumnsElement="columns-element",e.SavedAddonElement="saved-addon-element",e.SavedSectionElement="saved-section-element",e.BlockElement="block-element",e}({}),T=function(e){return e.Section="section",e.NestedRow="nestedRow",e.DeepAddonRow="deepAddonRow",e.Column="column",e.Addon="addon",e.Div="div",e.CollectionItemAddon="collection-item-addon",e.EmptyDivChild="empty-div-child",e.DeepAddon="deepAddon",e.TableItem="tableItem",e}({}),D="editor-empty-state",Z="accepted-all",j="pages-list",R=(a(n={},T.Section,{accepted:[L.RowElement,L.SavedSectionElement,L.BlockElement],rejected:[]}),a(n,T.NestedRow,{accepted:[],rejected:[L.ColumnsElement]}),a(n,T.DeepAddonRow,{accepted:[],rejected:[]}),a(n,T.Column,a({accepted:[],rejected:[]},Z,!0)),a(n,T.Addon,{accepted:[],rejected:[L.ColumnsElement]}),a(n,T.DeepAddon,{accepted:[],rejected:[L.ColumnsElement]}),a(n,T.Div,{accepted:[],rejected:[L.ColumnsElement]}),a(n,T.CollectionItemAddon,{accepted:[],rejected:[L.RowElement,L.ColumnsElement,L.SingleAddonElement,L.CommonAddonElement,"table_advanced","tab","accordion",P.productList,P.categoryList,P.filter,P.pagination]}),a(n,T.EmptyDivChild,{accepted:[L.AddonElement,L.DivElement,L.SavedAddonElement,L.SingleAddonElement,L.CommonAddonElement,P.filter,P.productList,P.categoryList],rejected:[]}),a(n,T.TableItem,{accepted:[L.AddonElement],rejected:[]}),a(n,D,{accepted:[L.SavedSectionElement,L.BlockElement],rejected:[]}),n),B=(a(o={},T.Section,{accepted:[T.Section],rejected:[]}),a(o,T.NestedRow,{accepted:[T.Addon,T.Div,T.DeepAddon,T.NestedRow],rejected:[]}),a(o,T.DeepAddonRow,{accepted:[],rejected:[]}),a(o,T.Column,a({accepted:[],rejected:[]},Z,!0)),a(o,T.Addon,{accepted:[T.Addon,T.Div,T.DeepAddon,T.NestedRow],rejected:[]}),a(o,T.Div,{accepted:[T.Addon,T.Div,T.DeepAddon,T.NestedRow],rejected:[]}),a(o,T.CollectionItemAddon,{accepted:[],rejected:[L.RowElement,L.ColumnsElement,L.SingleAddonElement,L.CommonAddonElement,"table_advanced","tab","accordion"]}),a(o,T.EmptyDivChild,{accepted:[T.Addon,T.Div,T.DeepAddon],rejected:[]}),a(o,T.DeepAddon,{accepted:[T.Addon,T.Div,T.DeepAddon,T.NestedRow],rejected:[]}),a(o,T.TableItem,{accepted:[],rejected:[]}),o),M=["screen_mode","stretch_section"],k={256:"256x256",512:"512x512",1024:"1024x1024"}},6537:(e,t,r)=>{"use strict";r.d(t,{H:()=>n});var n={PAGES:"editor.pages",PAGE_CONTENT_BY_ID:"editor.pageContentById",PRODUCT_PAGE_CONTENT_BY_ID:"editor.productPageContentById",ADDONS:"editor.addons",REGISTER_LANGUAGE_KEYS:"editor.registerLanguageKeys",APP_CONFIG:"editor.appConfig",SETTINGS:"editor.settings",ICONS:"editor.icons",FONTS:"editor.fonts",ALL_FONTS:"editor.allFonts",UPLOAD_FONT:"editor.uploadFont",MEDIA:"editor.media",AI_CONTENT_UPLOAD:"editor.aiContentUpload",AI_CONTENT:"editor.aiContent",MEDIA_FOLDERS:"editor.folders",SECTION_LIBRARY:"editor.sectionLibrary",MENU_BY_PAGE_ID:"editor.getMenuByPageId",MENU_LIST:"editor.getMenuList",MENU_PARENT_ITEMS:"editor.getParentItems",ADD_TO_MENU:"editor.addToMenu",LANGUAGE:"editor.language",PAGE_ORDERING:"editor.pageOrder",GET_ALL_ICONS:"editor.icons",DUPLICATE_PAGE:"editor.duplicate",EXPORT:"editor.export",BULK_EXPORT:"editor.bulkExport",BULK_IMPORT:"editor.bulkImport",PAGE_TEMPLATE_LIST:"editor.pageTemplateList",POPUP_TEMPLATE_LIST:"editor.popupTemplateList",INTEGRATIONS:"editor.integrations",SAVED_ADDONS:"editor.savedAddons",SAVED_PRESETS:"editor.savedPresets",SAVED_ADDONS_ORDERING:"editor.savedAddonsOrder",SAVED_SECTIONS:"editor.savedSection",SAVED_SECTIONS_ORDERING:"editor.savedSectionsOrder",LAYOUT_IMPORT:"editor.import",IMPORT_LAYOUT_FILE:"editor.importJson",APPLICATION_SETTINGS:"editor.applicationSettings",GLOBAL_COLORS:"editor.globalColors",PURGE_CSS:"editor.purgeCss",SAVE_IG_TOKEN:"editor.saveIgToken",PERMISSIONS:"editor.getPermissions",IMAGE_SHAPE:"editor.imageShapes",PLUGINS:"editor.pluginsList"}},8138:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var n=function(e){return{template:e,buildLink:function(t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,r){return e.replace(":".concat(r),String(t[r]))}),e)}(e,t)}}},o={Home:n("/"),Addons:n("/addons"),CustomIcons:n("/custom-icons"),FontManager:n("/font-book"),InstalledFonts:n("/font-book/installed"),GoogleFonts:n("/font-book/google"),MediaManager:n("/media-manager"),Integrations:n("/integrations"),Languages:n("/languages"),Settings:n("/settings"),License:n("/settings/license"),ColorsLibrary:n("/settings/color-library"),PageList:n("/pages"),PageEditor:n("/editor/:id/:type?"),PopupEditor:n("/popup-editor/:id/:type?"),PopupList:n("/popups")}},824:(e,t,r)=>{"use strict";r.d(t,{AF:()=>u,E0:()=>s,I8:()=>n,JB:()=>i,Nv:()=>l,Ue:()=>a,Uo:()=>p,V4:()=>f,W0:()=>o,W5:()=>d,qo:()=>c});var n={sansSerif:"system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"},o={0:"0",2:"2px",4:"4px",6:"6px",8:"8px",10:"10px",12:"12px",16:"16px",20:"20px",24:"24px",28:"28px",32:"32px",36:"36px",40:"40px",48:"48px",56:"56px",64:"64px",72:"72px",96:"96px",128:"128px",256:"256px",512:"512px"},i={10:"0.625rem",12:"0.75rem",14:"0.875rem",15:"0.0.938rem",16:"1rem",18:"1.125rem",20:"1.25rem",24:"1.5rem",28:"1.75rem",30:"1.875rem",32:"2rem",36:"2.25rem",40:"2.5rem",48:"3rem",56:"3.5rem",64:"4rem"},a={thin:100,extraLight:200,light:300,regular:400,medium:500,semiBold:600,bold:700,extraBold:800,black:900},l={12:"0.5rem",14:"0.75rem",15:"0.90rem",16:"1rem",18:"1.125rem",20:"1.25rem",24:"1.5rem",26:"1.625rem",28:"1.75rem",32:"2rem",36:"2.25rem",40:"2.5rem",44:"2.75rem",48:"3rem",56:"3.5rem",58:"3.625rem",64:"4rem"},c={base:{primary:"#3366FF",secondary:"#C9D8ED",white:"#FFFFFF",black:"#000000",surface:"#F0F4FA",error:"#F44337",warning:"#FFBF46",success:"#24A148",highlight:"#3E64DE"},text:{neutral:"#6B7699",default:"#484F66",hover:"#282D4F",hints:"#95979E",disabled:"#B7BAC7",white:"#FFFFFF",primary:"#3162F5",error:"#E62305",warning:"#D98A00",success:"#1F7041"},icon:{default:"#7784A8",hover:"#343D57",neutral:"#E4E5E7",hints:"#AEB1BD",disabled:"#C0C3CC",white:"#FFFFFF",primary:"#446EF5",error:"#EF2C09",warning:"#F2B300",success:"#1F9942"},action:{primary:{default:"#3366FF",hover:"#0544FF",focus:"#0F41D6",active:"#3366FF",disabled:"#F1F1F1"},secondary:{default:"#EBEDF5",hover:"#D6DFFA",focus:"#002EB8",active:"#D0D9F2",disabled:"#F1F1F1"},error:{default:"#F44337",hover:"#C2362D",focus:"#B9321A",active:"#D0635C",disabled:"#FBBEBA"},outline:{default:"#D2D4D8",hover:"#3366FF",focus:"#002EB8",active:"#3366FF",disabled:"#F1F1F1"},aiAction:{default:"linear-gradient(76.81deg, #ff9645 -9.35%, #ff6471 19.29%, #cf6ebd 46.23%, #a477d1 79.9%, #268dda 110.21%)",hover:"linear-gradient(77deg, rgba(255, 150, 69, 0.1) -9.35%, rgba(255, 100, 113, 0.1) 19.29%, rgba(207, 110, 189, 0.1) 46.23%, rgba(164, 119, 209, 0.1) 79.9%, rgba(38, 141, 218, 0.1) 110.21%);"}},stroke:{neutral:"#D3D7EB",default:"#CDCFD5",hover:"#A7B3D1",disabled:"#D0D1D6",white:"#FFFFFF",primary:"#3366FF",error:"#EF2C09",warning:"#F2B300",success:"#1F9942",danger:"#FDD9D7"},background:{white:"#FFFFFF",neutral:"#F6F6F7",hover:"#F0F4FA",active:"#E4EBF5",disabled:"#F4F6F9",primary:"#EEF4FD",error:"#FFF0F0",warning:"#FDF4E3",success:"#E5F5EB",lightOrange:"#FFE9D6",lightGreen:"#E1F7D5",saturatedLightRed:"#FFEBEB",lightRoyalBlue:"#DBE4FF",lightYellow:"#FFF4D6",lightViridian:"#D3F0E2",danger:"#FDD9D7",placeholder:"#4c9ffe",folder:"#cdf3ff",proLabel:"#e5803c",proBackground:"linear-gradient(88.9deg, #d65702 6.26%, #e5803c 91.4%)",aiBackground:"linear-gradient(70deg, #FF9645 2%, #FF6471 25%, #CF6EBD 45%, #A477D1 70%, #268DDA 95%);",svgShape:"#F5F7F9"},alternate:{addon:"#00B84A",div:"#A660FF",orange:"#EE8F41",lightOrange:"#F5A812",red:"#EE563D",tenderGreen:"#64A942",saturatedRed:"#FF0000",viridian:"#10773F",backdrop:"#060C33B2"}},u={button:"0px 1px 0.25px rgba(17, 18, 19, 0.08), inset 0px -1px 0.25px rgba(17, 18, 19, 0.24)",combinedButton:"0px 1px 0px rgba(0, 0, 0, 0.05), inset 0px -1px 0px #bcbfc3, inset 1px 0px 0px #bbbfc3, inset 0px 1px 0px #bbbfc3",combinedButtonExtend:"0px 1px 0px rgba(0, 0, 0, 0.05), inset 0px -1px 0px #bcbfc3, inset 1px 0px 0px #bbbfc3, inset 0px 1px 0px #bbbfc3, inset -1px 0px 0px #bbbfc3",insetButtonPressed:"inset 0px 2px 0px rgba(17, 18, 19, 0.08)",card:"0px 2px 3px rgba(17, 18, 19, 0.05), 0px 0px 1px rgba(17, 18, 19, 0.25)",popover:"0px 6px 22px rgba(17, 18, 19, 0.08), 0px 4px 10px rgba(17, 18, 19, 0.1)",modal:"0px 0px 2px rgba(17, 18, 19, 0.2), 0px 30px 72px rgba(17, 18, 19, 0.2)",base:"0px 1px 3px rgba(17, 18, 19, 0.15)",input:"0px 1px 0px rgba(17, 18, 19, 0.05)",switch:"inset -1px -1px 3px rgba(0, 0, 0, 0.1)",switchKnob:"-1px 1px 1px rgba(29, 31, 51, 0.1)",topbar:"0px 1px 2px rgba(0, 0, 0, 0.12)",tabs:"inset 0px -1px 0px #dbdcdf",dividerTop:"inset 0px 1px 0px #E4E5E7",underline:"0px 1px 0px #C9CBCF",addon:"0px 1px 2px rgba(2, 11, 83, 0.15)",addonHover:"0px 3px 6px rgba(2, 11, 83, 0.1)",dropzone:"6px 6px 8px rgba(17, 18, 19, 0.14)",icon:"0px 2px 3px rgba(17, 18, 19, 0.05), 0px 0px 1px rgba(17, 18, 19, 0.25)",outline:"0px 0px 0px 1px ".concat(c.base.white,", 0px 0px 0px 3px ").concat(c.base.primary),proButton:"0px 4px 8px rgba(213, 85, 0, 0.2)"},s={2:"2px",3:"3px",4:"4px",5:"5px",6:"6px",8:"8px",10:"10px",14:"14px",20:"20px",24:"24px",30:"30px",40:"40px",50:"50px",circle:"50%",button:"7.5px"},d={negative:-1,positive:1,dropdown:2,level:0,sidebar:9,header:10,modal:25,highest:9999999},p={smallMobile:"@media(max-width: ".concat(480,"px)"),mobile:"@media(max-width: ".concat(768,"px)"),smallTablet:"@media(max-width: ".concat(991,"px)"),tablet:"@media(max-width: ".concat(1279,"px)"),desktop:"@media(min-width: ".concat(1280,"px)")},f=1292},4185:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(824),o=r(917),i={heading1:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[48],";line-height:",n.Nv[58],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:heading1;")},heading2:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[36],";line-height:",n.Nv[44],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:heading2;")},heading3:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[30],";line-height:",n.Nv[40],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:heading3;")},heading4:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[24],";line-height:",n.Nv[32],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:heading4;")},heading5:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[18],";line-height:",n.Nv[28],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:heading5;")},heading6:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[16],";line-height:",n.Nv[26],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:heading6;")},body:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[14],";line-height:",n.Nv[20],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:body;")},caption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[12],";line-height:",n.Nv[16],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:caption;")},tiny:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"regular";return(0,o.iv)("font-size:",n.JB[10],";line-height:",n.Nv[18],";color:",n.qo.text.default,";font-weight:",n.Ue[e],";font-family:",n.I8.sansSerif,";;label:tiny;")}}},7038:(e,t,r)=>{"use strict";r.d(t,{XJ:()=>v,_7:()=>f,ru:()=>p});var n=r(8144),o=r(3460),i=r(5944);function a(e){return a="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},a(e)}var l=["children","style","hideOnOverflow"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p=function(e){return e[e.slideDown=0]="slideDown",e[e.slideUp=1]="slideUp",e[e.slideLeft=2]="slideLeft",e[e.slideRight=3]="slideRight",e[e.collapseExpand=4]="collapseExpand",e[e.zoomIn=5]="zoomIn",e[e.zoomOut=6]="zoomOut",e[e.fadeIn=7]="fadeIn",e[e.sidebar=8]="sidebar",e}({}),f=function(e){var t,r,i=e.data,a=e.animationType,l=void 0===a?p.collapseExpand:a,c=e.slideThreshold,s=void 0===c?20:c,f=e.animationDuration,v=void 0===f?150:f,h=e.minOpacity,b=void 0===h?0:h,y=e.maxOpacity,m=void 0===y?1:y,g=e.easing,E=void 0===g?n.Z5.easeInOutQuad:g,_=e.debounceMeasure,O=void 0!==_&&_,w=Array.isArray(i)?i.length>0:!!i,S=(t=(0,o.Z)({debounce:O?v+100:0}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t,r)||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.")}()),I=S[0],x=S[1],C=(0,n.q_)({from:{height:0,opacity:b,y:0},to:{height:w?x.height:0,opacity:w?m:b,y:w?0:-1*s},config:{duration:v,easing:E}}),P=(0,n.q_)({from:{x:0},to:{x:w?0:-1*s},config:{duration:v,easing:E}}),A={x:0,y:0};switch(l){case p.slideDown:A.y=-1*s,A.x=0;break;case p.slideUp:A.y=s,A.x=0;break;case p.slideLeft:A.x=s,A.y=0;break;case p.slideRight:A.x=-1*s,A.y=0}var L=(0,n.Yz)(i,{from:u(u(u(u({opacity:b},A),l===p.zoomIn&&{transform:"scale(0.8)"}),l===p.zoomOut&&{transform:"scale(1.2)"}),l===p.fadeIn&&{opacity:0}),enter:u(u(u({opacity:m,x:0,y:0},l===p.zoomIn&&{transform:"scale(1)"}),l===p.zoomOut&&{transform:"scale(1)"}),l===p.fadeIn&&{opacity:1}),leave:u(u(u(u({opacity:b},A),l===p.zoomIn&&{transform:"scale(0.8)"}),l===p.zoomOut&&{transform:"scale(1.2)"}),l===p.fadeIn&&{opacity:0}),config:{duration:v,easing:E}});return{animationStyle:l===p.sidebar?P:C,ref:I,transitions:L}},v=function(e){var t=e.children,r=e.style,o=e.hideOnOverflow,a=void 0===o||o,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,l);return(0,i.tZ)(n.q.div,u(u({},c),{},{style:u(u({},r),{},{overflow:a?"hidden":"initial"}),children:t}))}},36:(e,t,r)=>{"use strict";r.d(t,{N:()=>i});var n=r(7294);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var i=function(e){var t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,a=(t=(0,n.useState)(e),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(t,r)||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.")}()),l=a[0],c=a[1];return(0,n.useEffect)((function(){var t=setTimeout((function(){c(e)}),i);return function(){clearTimeout(t)}}),[e,i]),l}},802:(e,t,r)=>{"use strict";r.d(t,{O:()=>s});var n=r(7294),o=r(7536);function i(e){return i="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},i(e)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=function(e){var t,r,i=(t=(0,n.useState)(),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(t,r)||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.")}()),a=i[0],c=i[1];return l(l({},(0,o.cI)(e)),{},{submitError:a,setSubmitError:c})}},7898:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(1731),o=r(5945),i=r(4469);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l=function(e){var t=e.mutationFn,r=e.invalidateKeys,l=(0,o.NL)(),c=(0,n.p)().showToast;return(0,i.D)({mutationFn:t,onSuccess:function(){if(null!=r&&r.length){var e,t=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw i}}}}(r);try{for(t.s();!(e=t.n()).done;){var n=e.value;l.invalidateQueries(n)}}catch(e){t.e(e)}finally{t.f()}}},onError:function(e){c({type:"danger",message:e.message})}})}},4411:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(230),o=r(7294);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.threshold,r=void 0===t?0:t,a=e.root,l=void 0===a?null:a,c=e.rootMargin,u=void 0===c?"0%":c,s=e.freezeOnceVisible,d=void 0!==s&&s,p=(0,o.useRef)(null),f=i((0,o.useState)(),2),v=f[0],h=f[1],b=(null==v?void 0:v.isIntersecting)&&d,y=function(e){var t=i(e,1)[0];h(t)};return(0,o.useEffect)((function(){var e=p.current;if((0,n.$K)(window.IntersectionObserver)&&!b&&e){var t=new IntersectionObserver(y,{threshold:r,root:l,rootMargin:u});return t.observe(e),function(){return t.disconnect()}}}),[p.current,r,l,u,b]),{intersectionEntry:v,intersectionElementRef:p}}},1954:(e,t,r)=>{"use strict";r.d(t,{h:()=>E,l:()=>g});var n=r(1337),o=r(3106),i=r(824),a=r(917),l=r(1921),c=r(7294),u=r(3935),s=r(7038),d=r(2200),p=r(5944);function f(e){return f="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},f(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}(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 m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=function(e){var t,r=e.isOpen,n=e.triggerRef,i=e.arrow,a=void 0===i?"auto":i,l=e.gap,u=void 0===l?10:l,s=e.isDropdown,p=void 0!==s&&s,f=(0,c.useMemo)((function(){return n||{current:null}}),[n]),v=(0,c.useRef)(null),b=(0,d.D)(null===(t=v.current)||void 0===t?void 0:t.getBoundingClientRect()),m=y((0,c.useState)(0),2),g=m[0],E=m[1],_=y((0,c.useState)({left:0,top:0,arrowPlacement:"bottom"}),2),O=_[0],w=_[1];return(0,c.useEffect)((function(){if(f.current){var e=f.current.getBoundingClientRect();E(e.width)}}),[f]),(0,c.useEffect)((function(){if(r&&f.current&&v.current){var e=f.current.getBoundingClientRect(),t=v.current.getBoundingClientRect(),n=b||{},i=n.height,l=n.top,c=t.width||e.width,s=t.height;if(i!==s||l!==t.top){var d={top:0,left:0},y="bottom",m=window.innerHeight||document.documentElement.clientHeight,E=window.innerWidth||document.documentElement.clientWidth,_=s+u,O=c+u,S=m-s,I=function(){if("auto"===a&&E>e.left+c){var t=Math.floor(e.left);return t<u?u:t}if("auto"===a&&e.left>c){var r=Math.floor(e.right-c);return r<u?u:r}var n=Math.floor(e.left-(c-g)/2);return n<u?u:n},x=function(){var t=Math.floor(e.top-s/2+e.height/2);if(t<u)return u;if(t+s+u>m){var r=t+s-m+u,n=Math.floor(t-r);return n<u?u:n}return t},C=function(t){var r=t.arrowPosition,n=Math.floor(e.left-c-u),o=Math.floor(e.right+u);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e+c>E){var t=e+c-E,r=Math.floor(e-t);return r<u?u:r}return e<u?u:e}("left"===r?n:o)},P=function(t){var r=t.arrowPosition,n=Math.floor(e.top-s-u),o=Math.floor(e.bottom+u);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e<u)return u;if(e+s>m){var t=e+s-m,r=Math.floor(e-t);return r<u?u:r}return e}("top"===r?n:o)},A=function(e,t){return o.dZ?"left"===t?Math.max(0,E-2*c-e):Math.max(0,E-c-e):e},L={top:{top:P({arrowPosition:"top"}),left:A(I())},bottom:{top:P({arrowPosition:"bottom"}),left:A(I())},left:{top:x(),left:A(C({arrowPosition:"left"}),"left")},right:{top:x(),left:A(C({arrowPosition:"right"}),"right")},middle:{top:S<u?u:S/2,left:A(Math.floor(e.left-c/2+e.width/2))}};"auto"!==a?(d={top:L.bottom,bottom:L.top,left:L.right,right:L.left,middle:L.middle}[a],y=a):e.bottom+_>m&&e.top>_?(d=L.top,y="bottom"):O>e.left&&e.bottom+_>m&&!p?(d=L.right,y="left"):O<e.left&&e.bottom+_>m&&!p?(d=L.left,y="right"):e.bottom+_<=m?(d=L.bottom,y="top"):(d=L.middle,y="middle"),w(h(h({},d),{},{arrowPlacement:y}))}}}),[f,v,b,g,r,u,a,p]),{position:O,triggerWidth:g,triggerRef:f,popoverRef:v}},E=function(e){var t=e.isOpen,r=e.children,o=e.onClickOutside,i=e.animationType,a=void 0===i?s.ru.slideDown:i,l=e.customZIndex,d=(0,n.d)().hasModalOnStack;return(0,c.useEffect)((function(){return t&&(document.body.style.overflow="hidden"),function(){d||(document.body.style.overflow="initial")}}),[t,d]),(0,(0,s._7)({data:t,animationType:a}).transitions)((function(e,t){if(t)return(0,u.createPortal)((0,p.tZ)(s.XJ,{css:_.wrapper(l),style:e,children:(0,p.BX)("div",{role:"presentation",children:[(0,p.tZ)("div",{css:_.backdrop,onClick:function(e){o&&o(e)},role:"presentation"}),r]})}),document.body)}))},_={wrapper:function(e){return(0,a.iv)("position:fixed;z-index:",e||i.W5.highest,";inset:0;;label:wrapper;")},backdrop:(0,a.iv)(l.iZ.centeredFlex,";position:fixed;inset:0;z-index:",i.W5.negative,";;label:backdrop;")}},2200:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(7294),o=function(e){var t=(0,n.useRef)();return(0,n.useEffect)((function(){t.current=e}),[e]),t.current}},2447:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(9250),o=function(e){return(0,n.UO)()}},1709:(e,t,r)=>{"use strict";r.d(t,{T:()=>u});var n=r(3106),o=r(2445),i=r(6131),a=r(230),l=r(2902),c=r(7294),u=function(){var e=(0,o.F)((function(e){return e.type})),t=(0,o.F)((function(e){return e.payload})),r=(0,o.F)((function(e){return e.setSettings})),u=(0,i.o)((function(e){return e.page}));return{closeSettingPanel:(0,c.useCallback)((function(){return r(null,{sectionIndex:null,columnIndex:null,addonIndex:null,tableItem:void 0})}),[r]),prepareFormDataBeforeSaving:(0,c.useCallback)((function(r){var o=t.sectionIndex,i=t.columnIndex,c=t.addonIndex,s=t.tableItem;switch(e){case"addon":if((0,a.$K)(o)&&(0,a.$K)(i)&&(0,a.$K)(c))return u[o].columns[i].addons[c].name===n.pb.name&&(0,a.$K)(s)?(0,a.$K)(s.rowItemIdx)?(0,l.ZP)(u,(function(e){var t;(null===(t=e[o].columns[i].addons[c].settings)||void 0===t?void 0:t[n.pb.bodyItemsKey])[s.itemIdx][n.pb.bodyItemsKey][s.rowItemIdx].content[s.contentItemIdx].settings=r})):(0,l.ZP)(u,(function(e){var t;(null===(t=e[o].columns[i].addons[c].settings)||void 0===t?void 0:t[n.pb.headerItemsKey])[s.itemIdx].content[s.contentItemIdx].settings=r})):(0,l.ZP)(u,(function(e){e[o].columns[i].addons[c].settings=r}));case"collection_item":if((0,a.$K)(o)&&(0,a.$K)(i)&&(0,a.$K)(c))return(0,l.ZP)(u,(function(e){e[o].columns[i].addons[c].settings.collection_item=r}));case"column":if((0,a.$K)(o)&&(0,a.$K)(i))return(0,l.ZP)(u,(function(e){e[o].columns[i].settings=r}));case"section":if((0,a.$K)(o))return(0,l.ZP)(u,(function(e){e[o].settings=r}));default:return u}}),[e,t,u])}}},2739:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var n=r(3106),o=r(6131),i=r(230),a=r(7294),l=function(){var e=(0,o.o)((function(e){return e.page})),t=(0,a.useCallback)((function(t){var r=e.findIndex((function(e){return e.id===t}));return{index:r,content:e[r]}}),[e]),r=(0,a.useCallback)((function(t){var r=t.id,n=t.rowId,o=t.columnId,a=e.findIndex((function(e){return e.id===r&&(0,i.$K)(e.parent)&&"boolean"!=typeof e.parent&&e.parent.rowId===n&&e.parent.columnId===o}));return{index:a,content:e[a]}}),[e]),l=(0,a.useCallback)((function(t){var r,n=t.sectionIndex,o=t.columnIndex,a=t.id,l=e[n],c=(0,i.$K)(l)?l.columns[o]:null,u=null!==(r=null==c?void 0:c.addons)&&void 0!==r?r:[],s=u.findIndex((function(e){return e.id===a}));return{content:u[s],index:s}}),[e]),c=(0,a.useCallback)((function(t){if(!(0,i.$K)(t))return{};var r=e[t];return(0,i.$K)(r)?r.settings:{}}),[e]),u=(0,a.useCallback)((function(t){var r=t.sectionIndex,n=t.columnIndex;if(!(0,i.$K)(r)||!(0,i.$K)(n))return null;var o=e[r];return(0,i.$K)(o)?o.columns[n]:null}),[e]),s=(0,a.useCallback)((function(t){var r,n=t.sectionIndex,o=t.columnIndex,a=e[n],l=(0,i.$K)(a)?a.columns[o]:null;return null!==(r=null==l?void 0:l.settings)&&void 0!==r?r:{}}),[e]),d=(0,a.useCallback)((function(t){var r,n,o=t.sectionIndex,a=t.columnIndex,l=t.addonIndex,c=e[o],u=(0,i.$K)(c)?c.columns[a]:null,s=(0,i.$K)(c)?null==u?void 0:u.addons[l]:null;return(0,i.$K)(s)&&(0,i.$K)(null===(r=s.settings)||void 0===r?void 0:r.collection_item)?(console.log({addon:s}),null===(n=s.settings)||void 0===n?void 0:n.collection_item):{}}),[e]),p=(0,a.useCallback)((function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,a=e[r],l=(0,i.$K)(a)?a.columns[n]:null;return(0,i.$K)(l)?l.addons[o]:null}),[e]),f=(0,a.useCallback)((function(t){var r,n=t.sectionIndex,o=t.columnIndex,a=t.addonIndex,l=t.collectionItem,c=e[n],u=(0,i.$K)(c)?c.columns[o]:null,s=(0,i.$K)(u)?u.addons[a]:null,d=l.itemAddonIndex,p=l.itemIndex;return null==s||null===(r=s.items)||void 0===r?void 0:r[p][d]}),[e]),v=(0,a.useCallback)((function(t){var r,n,o,a=t.sectionIndex,l=t.columnIndex,c=t.addonIndex,u=t.collectionItem,s=t.itemAddonId,d=u.itemIndex,p=e[a],f=(0,i.$K)(p)?p.columns[l]:null,v=null!==(r=null==f?void 0:f.addons[c])&&void 0!==r?r:null,h=null!==(n=null==v||null===(o=v.items)||void 0===o?void 0:o[d])&&void 0!==n?n:[],b=h.findIndex((function(e){return e.id===s}));return{content:h[b],index:b}}),[e]);return{getSectionById:t,getNestedRowById:r,getColumnById:u,getChildAddonById:l,getSectionSettings:c,getColumnSettings:s,getCollectionItemSettings:d,getAddon:p,getTableItem:(0,a.useCallback)((function(t){var r,o=t.sectionIndex,a=t.columnIndex,l=t.addonIndex,c=t.tableItem,u=e[o],s=(0,i.$K)(u)?u.columns[a]:null,d=(0,i.$K)(s)?s.addons[l]:null,p=c.itemIdx,f=c.rowItemIdx,v=c.contentItemIdx;if((0,i.$K)(f)){var h,b=null==d||null===(h=d.settings)||void 0===h?void 0:h[n.pb.bodyItemsKey];return null==b?void 0:b[p].table_advanced_item[f].content[v]}var y=null==d||null===(r=d.settings)||void 0===r?void 0:r[n.pb.headerItemsKey];return null==y?void 0:y[p].content[v]}),[e]),getCollectionItemAddon:f,getCollectionItemAddonChildAddonById:v}}},1234:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,O:()=>c});var n=r(230),o=r(7294);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=function(e,t){var r,n=(r=e.matchAll(/\{\{([^(}})]+)/gm),function(e){if(Array.isArray(e))return i(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(r)||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.")}()).map((function(e){return e[1]})).filter((function(e){return!!e})),o=e;return n.forEach((function(e){var r=new RegExp("{{".concat(e,"}}"));o=o.replace(r,String(t[e]))})),o},l=function(){return(0,o.useCallback)((function(e,t,r){var o=(0,n.$K)(r)&&r>1?"".concat(e,"_PLURAL"):e,i=n.Xy.Text._(o)||o;return t?a(i,t):i}),[])},c=function(e,t){var r=n.Xy.Text._(e)||e;return(0,n.$K)(t)?a(r,t):r}},908:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});var n=r(2328),o=function(){return(0,n.v)((function(e){return e.appConfig})).permissions}},1062:(e,t,r)=>{"use strict";var n=r(824),o=r(4185),i=r(917),a=r(9180),l=r.n(a),c=r(7294),u=r(9125),s=r(5944);function d(e){return d="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},d(e)}function p(){p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new C(o||[]);return n(a,"_invoke",{value:w(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function v(){}function h(){}function b(){}var y={};c(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==t&&r.call(g,i)&&(y=g);var E=b.prototype=v.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==d(p)&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===f)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=b,n(E,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:h,configurable:!0}),h.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},_(O.prototype),c(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function f(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===d(o)?o:String(o)),n)}var o}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var y=function(e){return e.split("?")[0]},m=function(e){var t=e.indexOf("store");return t>-1?e.slice(t):""},g=function(e){!function(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&&h(e,t)}(g,e);var t,r,o,i,a,c=(i=g,a=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}}(),function(){var e,t=b(i);if(a){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(t=c.call(this,e)).state={hasError:!1,error:void 0,errorInfo:void 0,stack:[],source:[],position:{line:null,column:null,startLine:null,source:""}},u.SourceMapConsumer.initialize({"lib/mappings.wasm":"https://unpkg.com/source-map@0.7.3/lib/mappings.wasm"}),t}return t=g,r=[{key:"componentDidCatch",value:function(e,t){var r=this;setTimeout((function(){var n,o=l().parse(e),i=(n=o[0].fileName||"","".concat(y(n),".map"));fetch(i).then((function(e){return e.json()})).then(function(){var e,t=(e=p().mark((function e(t){var n,i,a,l,c,s,d,f,v,h,b,y,m;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new u.SourceMapConsumer(t);case 2:n=e.sent,i=o[0],a=n.originalPositionFor({line:Number(i.lineNumber),column:Number(i.columnNumber)}),l=-1,a.source&&(c=a.source.split("/"),s=c[c.length-1]||"",l=t.sources.findIndex((function(e){return e.endsWith(s)}))),l>-1&&(f=t.sourcesContent[l].split(/\r?\n/),v=a.line,h=Math.max(0,(v||0)-3),b=Math.min(f.length-1,(v||0)+4),y=f.slice(h,b+1),m=null===(d=a.source)||void 0===d?void 0:d.slice(a.source.indexOf("src")),r.setState({source:y,position:{line:a.line,column:a.column,source:m||"",startLine:h}}));case 8:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,l,"next",e)}function l(e){f(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),r.setState({error:e,errorInfo:t,stack:o})}),100)}},{key:"renderErrorSource",value:function(){var e=this,t=this.state.position;return t.line||t.column?(0,s.BX)("div",{css:_.titleAndContent,children:[(0,s.tZ)("h4",{css:_.callStack,children:"Source"}),(0,s.BX)("div",{css:_.sourceWrapper,children:[(0,s.BX)("p",{css:_.sourceFilePath,children:[t.source," (",t.line,":",t.column,")"]}),(0,s.tZ)("div",{css:_.sourceEditor,children:(0,s.tZ)("div",{css:_.sourceLinesWrapper,children:this.state.source.map((function(r,o){var i=o+(t.startLine||0)+1,a=i===(t.line||0),l=e.state.source.length+(t.startLine||0);return(0,s.BX)("div",{css:_.sourceLine(a),children:[(0,s.BX)("div",{children:[(0,s.tZ)("span",{css:_.angleRight,children:a&&">"}),(0,s.BX)("span",{css:_.lineNumber,children:[i," | "]}),(0,s.tZ)("span",{css:_.line,children:r})]}),a&&(0,s.BX)("div",{children:[(0,s.tZ)("span",{css:_.angleRight,children:" "}),(0,s.BX)("span",{css:_.lineNumber,children:[" ".repeat(l.toString().length)," | "]}),(0,s.BX)("span",{css:[_.line,{color:n.qo.text.error},";label:renderErrorSource;"],children:[" ".repeat(t.column||0),"^"]})]})]},o)}))})})]})]}):(0,s.tZ)("p",{css:_.consoleMessage,children:"Please open the browser console for more information!"})}},{key:"render",value:function(){if(this.state.hasError){var e=this.state,t=e.error,r=e.position,n=e.stack;return(0,s.tZ)("div",{css:_.container,children:(0,s.tZ)("div",{css:_.wrapper,children:(0,s.BX)("div",{css:_.scrollWrapper,children:[(0,s.tZ)("div",{css:_.indicator}),(0,s.tZ)("h2",{css:_.errorHeading,children:"Unhandled Runtime Error"}),(0,s.tZ)("p",{css:_.errorMessage,children:(null==t?void 0:t.toString())||"Something Went Wrong!"}),this.renderErrorSource(),(0,s.BX)("div",{css:_.callStackWrapper,children:[(0,s.tZ)("h4",{css:_.callStack,children:"Call Stack"}),n.map((function(e,t){return(0,s.BX)("div",{css:_.stackItem,children:[(0,s.tZ)("h6",{css:_.functionName,children:e.functionName||(n=r.source||"",o=n.split("/"),0===o.length?"":o[o.length-1])}),(0,s.BX)("p",{css:_.filePath,children:[y(m(e.fileName||""))," (",e.lineNumber,":",e.columnNumber,")"]})]},t);var n,o}))]})]})})})}return this.props.children}}],o=[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}],r&&v(t.prototype,r),o&&v(t,o),Object.defineProperty(t,"prototype",{writable:!1}),g}(c.Component);const E=g;var _={container:(0,i.iv)("*{box-sizing:border-box;padding:0;margin:0;}font-family:",n.I8.sansSerif,";width:100%;height:100vh;display:flex;justify-content:center;align-items:center;background:",n.qo.base.white,";;label:container;"),sourceLinesWrapper:{name:"1wzln0q-sourceLinesWrapper",styles:"display:flex;flex-direction:column;label:sourceLinesWrapper;"},consoleMessage:(0,i.iv)(o.c.heading6("bold"),";margin-top:",n.W0[24],";color:",n.qo.text.success,";;label:consoleMessage;"),sourceLine:function(e){return(0,i.iv)("white-space:pre-wrap;",e&&(0,i.iv)("color:",n.qo.text.error,";;label:sourceLine;"),";;label:sourceLine;")},angleRight:{name:"1xm2me6-angleRight",styles:"min-width:20px;display:inline-block;margin-right:12px;label:angleRight;"},lineNumber:{name:"1d5ggue-lineNumber",styles:"min-width:50px;display:inline-block;label:lineNumber;"},line:{name:"hjznk4-line",styles:"width:100%;label:line;"},wrapper:(0,i.iv)("max-width:",960,"px;width:100%;background:",n.qo.base.white,";box-shadow:",n.AF.modal,";padding:",n.W0[20],";border-radius:",n.E0[6],";position:relative;overflow:hidden;;label:wrapper;"),scrollWrapper:{name:"1nknjjd-scrollWrapper",styles:"height:80vh;overflow-y:auto;label:scrollWrapper;"},indicator:(0,i.iv)("width:100%;height:5px;background:",n.qo.base.error,";position:absolute;top:0;left:0;;label:indicator;"),errorHeading:(0,i.iv)("font-size:",n.JB[20],";font-weight:",n.Ue.bold,";margin-bottom:",n.W0[4],";color:",n.qo.text.default,";;label:errorHeading;"),errorMessage:(0,i.iv)("font-size:",n.JB[14],";font-weight:",n.Ue.bold,";color:",n.qo.base.black,";font-family:",n.I8.sansSerif,";margin-top:",n.W0[4],";color:",n.qo.text.error,";;label:errorMessage;"),callStack:(0,i.iv)(o.c.heading6("bold"),";color:",n.qo.text.default,";;label:callStack;"),callStackWrapper:(0,i.iv)("margin-top:",n.W0[48],";font-size:",n.JB[18],";display:flex;flex-direction:column;gap:",n.W0[20],";;label:callStackWrapper;"),stackItem:(0,i.iv)("font-size:",n.JB[18],";display:flex;flex-direction:column;gap:",n.W0[4],";;label:stackItem;"),functionName:(0,i.iv)(o.c.heading6(),";color:",n.qo.text.default,";font-family:",n.I8.sansSerif,";;label:functionName;"),filePath:(0,i.iv)("color:",n.qo.text.neutral,";margin-left:",n.W0[12],";font-family:",n.I8.sansSerif,";font-size:",n.JB[14],";;label:filePath;"),sourceEditor:(0,i.iv)("padding:",n.W0[8]," ",n.W0[32],";;label:sourceEditor;"),sourceWrapper:(0,i.iv)("margin-top:",n.W0[4],";background-color:#292929;border-radius:",n.E0[6],";color:",n.qo.base.highlight,";;label:sourceWrapper;"),sourceFilePath:(0,i.iv)("padding:",n.W0[8]," ",n.W0[16],";border-bottom:1px solid #cccccc;color:#cccccc;;label:sourceFilePath;"),titleAndContent:(0,i.iv)("margin-top:",n.W0[24],";;label:titleAndContent;")},O=r(935),w=r(7264),S=r(1731),I=r(627),x=r(3106),C=r(8138),P=r(7679),A=r(230),L=r(7536),T=r(9250),D=r(2447),Z=r(1709);function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}var R=["settings"];function B(){B=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==j(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function G(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==j(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===j(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function W(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}var U=function(){var e=(0,L.Gc)(),t=(0,T.s0)(),r=(0,D.Z)(C.F.PageEditor),n=r.id,o=r.type,i=(0,P.lN)(),a=(0,P.es)({hideSuccessMessage:!0}),l=(0,Z.T)().prepareFormDataBeforeSaving,c=function(){var r,c=(r=B().mark((function r(c){var u,s,d,p;return B().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(u=e.getValues(),s=u.settings,d=N(u,R),null==c||!c.saveAsCopy){r.next=7;break}return r.next=4,a.mutateAsync({id:Number(n)});case 4:return p=r.sent,(0,A.$K)(p.id)&&t(C.F.PageEditor.buildLink({id:p.id.toString(),type:o})),r.abrupt("return",a.isLoading);case 7:return r.next=9,i.mutateAsync(k(k({},d),{},{id:Number(n),text:l(s)}));case 9:return r.abrupt("return",i.isLoading);case 10:case"end":return r.stop()}}),r)})),function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){W(i,n,o,a,l,"next",e)}function l(e){W(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return c.apply(this,arguments)}}();return{savePageContent:c,isLoading:i.isLoading||a.isLoading}},H=r(1234),F=r(1073),V=r(6131),q=r(1921),z=r(9655),K=r(7855),$=r(1593),X=r(3871),Y=r(288),Q=r(8122),J=r(5350),ee=r(3816),te=r(36),re=r(802),ne=r(4411),oe=r(908),ie=r(5527),ae=r(6511),le=r(2328),ce=r(6537),ue=r(6492),se=r(8596),de=r(5945),pe=r(4469),fe=r(5501);function ve(e){return ve="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},ve(e)}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ye(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ve(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ve(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ve(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ge=function(){var e=(0,S.p)().showToast,t=(0,le.v)((function(e){return e.appConfig}));return(0,ue.a)({queryKey:["IconList"],queryFn:function(){return fe.u.get(ce.H.ICONS,{params:{status:1}}).then((function(e){return[{access:null,assets:t.font_awesome_icons,created:"",created_by:null,css_path:"",id:null,name:"fontawesome",thumb:"",title:"Font Awesome 5 Free",type:"fontawesome"}].concat(function(e){if(Array.isArray(e))return me(e)}(r=e.data)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var r}))},onError:function(t){e({type:"danger",message:t.message})}})},Ee=function(e){return fe.u.delete(ce.H.MEDIA,{data:JSON.stringify(e)}).then((function(e){return e.data}))},_e=function(e){return fe.u.post(ce.H.MEDIA,e)},Oe=function(e){return fe.u.post(ce.H.AI_CONTENT_UPLOAD,e)},we=function(){var e=(0,de.NL)(),t=(0,H.$)(),r=(0,S.p)().showToast;return(0,pe.D)({mutationFn:Oe,onSuccess:function(){r({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_FILE_UPLOAD_SUCCESS_MESSAGE")}),e.invalidateQueries(["MediaList"]),e.invalidateQueries(["FolderList"])},onError:function(e){r({type:"danger",message:e.message})}})},Se=function(e){return fe.u.patch(ce.H.MEDIA,e)},Ie=function(e){return fe.u.get(ce.H.MEDIA_FOLDERS,{params:e}).then((function(e){var t;return null!==(t=e.data)&&void 0!==t?t:[]}))},xe=function(e){return fe.u.delete(ce.H.MEDIA_FOLDERS,{data:JSON.stringify(e)})},Ce=function(e){return fe.u.post(ce.H.MEDIA_FOLDERS,e)},Pe=function(e){return fe.u.patch(ce.H.MEDIA_FOLDERS,e).then((function(e){return e.data}))};function Ae(e){return Ae="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},Ae(e)}function Le(){Le=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Ae(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Te(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ze=function(e){switch(e){case"mp4":case"mov":case"wmv":case"avi":case"mpg":case"ogv":case"3gp":case"3g2":return{type:"video",icon:"mediaVideo"};case"mp3":case"m4a":case"ogg":case"wav":return{type:"audio",icon:"mediaMusic"};case"doc":case"docx":case"odt":return{type:"document",icon:"mediaWord"};case"key":case"ppt":case"pptx":case"pps":case"ppsx":return{type:"presentation",icon:"mediaPowerPoint"};case"xls":case"xlsx":return{type:"excel",icon:"mediaExcel"};case"pdf":return{type:"pdf",icon:"mediaPdf"};case"zip":return{type:"archive",icon:"mediaZip"};case"json":return{type:"attachment",icon:"mediaJson"};default:return{type:"image",icon:"mediaPicture"}}},je=function(e){var t=e.name,r=t.lastIndexOf(".");return-1===r?"":t.slice(r+1).toLowerCase()},Re=function(e){return e.map((function(e){var t=URL.createObjectURL(e);return{id:(0,A.x0)(),ext:je(e),path:t,title:e.name,type:Ze(je(e)).type,isNewlyUploaded:!0}}))},Be=function(e,t){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return De(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?De(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(e);try{for(n.s();!(r=n.n()).done;)if(r.value.size>t)return!0}catch(e){n.e(e)}finally{n.f()}return!1},Me=function(){var e,t=(e=Le().mark((function e(t){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){var n=new Image;n.src=t,n.onload=function(){return e(n)},n.onerror=function(){return r()}})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Te(i,n,o,a,l,"next",e)}function l(e){Te(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),ke=r(6680),Ge=r(1030),Ne=r(9781);function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(r),!0).forEach((function(t){Fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==We(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===We(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ve(){Ve=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==We(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function qe(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}const ze=function(e){var t=e.closeModal,r=e.title,n=e.path,o=(0,H.$)(),i=function(){var e=(0,de.NL)(),t=(0,S.p)().showToast,r=(0,H.$)();return(0,pe.D)({mutationFn:Ce,onSuccess:function(){t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FOLDER_CREATE_SUCCESS")}),e.invalidateQueries(["FolderList"])},onError:function(e){t({type:"danger",message:e.message})}})}(),a=(0,re.O)({defaultValues:{folderName:""}});return(0,s.tZ)(Ne.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,wrapperCss:Ke.wrapper,children:(0,s.BX)("form",{onSubmit:a.handleSubmit((0,ke.GI)(a,function(){var e,r=(e=Ve().mark((function e(r){var o;return Ve().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="".concat(n,"/").concat(r.folderName),e.next=3,i.mutateAsync({folder:o});case 3:e.sent.data.status&&t({action:"CONFIRM"});case 5:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){qe(i,n,o,a,l,"next",e)}function l(e){qe(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}())),children:[(0,s.tZ)("div",{css:Ke.fieldWrapper,children:(0,s.tZ)(L.Qr,{name:"folderName",control:a.control,rules:He({},(0,Ge.n)()),render:function(e){return(0,s.tZ)(J.Z,He(He({},e),{},{label:o("COM_SPPAGEBUILDER_EDITOR_CREATE_FOLDER_MODAL_LABEL"),placeholder:o("COM_SPPAGEBUILDER_EDITOR_CREATE_FOLDER_MODAL_PLACEHOLDER"),hasAutoFocus:!0}))}})}),(0,s.BX)("div",{css:Ke.buttonWrapper,children:[(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){return t({action:"CLOSE"})},children:o("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,s.tZ)(X.Z,{type:"submit",loading:i.isLoading,children:o("COM_SPPAGEBUILDER_EDITOR_CREATE_FOLDER_MODAL_CREATE_BUTTON")})]})]})})};var Ke={wrapper:{name:"1nd8i61-wrapper",styles:"max-width:372px;label:wrapper;"},fieldWrapper:(0,i.iv)("padding:",n.W0[16]," ",n.W0[12]," 0 ",n.W0[12],";display:flex;flex-direction:column;gap:",n.W0[12],";background-color:",n.qo.base.white,";;label:fieldWrapper;"),buttonWrapper:(0,i.iv)("background-color:",n.qo.background.white,";padding:",n.W0[12],";display:flex;justify-content:end;gap:",n.W0[8],";;label:buttonWrapper;")},$e=r(1337),Xe=r(9085),Ye=r(7025),Qe=r(9101);function Je(e){return Je="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},Je(e)}function et(){et=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Je(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function tt(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nt(e,t):void 0}}(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 nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ot=function(e){var t,r,n,o=e.folders,i=e.folderName,a=e.filter,l=e.selectedFolders,u=e.onSelect,d=e.onNavigate,p=e.onDeleteFolder,f=rt((0,c.useState)(!1),2),v=f[0],h=f[1],b=rt((0,c.useState)(i),2),y=b[0],m=b[1],g=o.find((function(e){return e.name===i&&e.relname==="".concat(a,"/").concat(i)})),E=l.find((function(e){return e.id===(null==g?void 0:g.id)})),_=(t=(0,de.NL)(),r=(0,H.$)(),n=(0,S.p)().showToast,(0,pe.D)({mutationFn:Pe,onSuccess:function(){n({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_FILE_RENAMED_SUCCESS_MESSAGE")}),t.invalidateQueries(["MediaList"]),t.invalidateQueries(["FolderList"])},onError:function(){n({type:"danger",message:r("COM_SPPAGEBUILDER_EDITOR_FILE_RENAME_ERROR_MESSAGE")})}})),I=(0,oe.Q)(),x=[{id:"rename",icon:"pencil",title:"COM_SPPAGEBUILDER_EDITOR_BUTTON_TEXT_RENAME",isDisabled:!I.edit},{id:"remove",icon:"trash",title:"COM_SPPAGEBUILDER_EDITOR_BUTTON_TEXT_DELETE",variant:"critical",isDisabled:!I.delete}];return(0,s.BX)("div",{css:it.listItemWrapper({isSelected:!!E}),children:[(0,s.BX)("button",{type:"button",css:it.listItemTop({isSelected:!!E}),onClick:function(e){e.preventDefault(),g&&u({selectedFolder:{id:g.id,type:"folder",path:g.relname},isAlreadySelected:!!E})},onDoubleClick:d,children:[(0,s.tZ)(w.Z,{name:"folders",height:104,width:104}),(0,s.tZ)("div",{css:it.listItemCheckboxWrapper({isSelected:!1}),children:(0,s.tZ)(Xe.Z,{checked:!!E,onChange:function(){g&&u({selectedFolder:{id:g.id,type:"folder",path:g.relname},isAlreadySelected:!!E})}})})]}),(0,s.tZ)("div",{css:it.listItemInfo,children:v?(0,s.tZ)("div",{css:it.renameInputWrapper,children:_.isLoading?(0,s.tZ)(O.g4,{}):(0,s.tZ)(Ye.Z,{value:y,onChange:function(e){m(e)},onKeyDown:function(){var e,t=(e=et().mark((function e(t){return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Escape"===t&&(h(!1),m("")),"Enter"===t){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,_.mutateAsync({currentfolder:"".concat(a,"/").concat(i),newfolder:"".concat(a,"/").concat(y),renameItem:"single"});case 5:e.sent.status&&h(!1);case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){tt(i,n,o,a,l,"next",e)}function l(e){tt(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),onBlur:function(){h(!1),m("")},focusOnMount:!0})}):(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{children:i}),(0,s.tZ)(Qe.Z,{actions:x,triggerButtonContent:(0,s.tZ)(w.Z,{name:"ellipsisY",height:16,width:16}),onSelect:function(e){g&&("rename"===e?(h(!0),m(i)):p({id:g.id,type:"folder",path:g.relname}))},arrowPosition:"bottom"})]})})]})};var it={listItemWrapper:function(e){var t=e.isSelected,r=void 0!==t&&t;return(0,i.iv)(o.c.caption(),";background-color:",n.qo.background.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.base,";overflow:hidden;",r&&(0,i.iv)("position:relative;::before{position:absolute;content:'';inset:0;background-color:",n.qo.base.highlight,";opacity:0.4;};label:listItemWrapper;"),";;label:listItemWrapper;")},listItemTop:function(e){var t=e.isSelected,r=void 0!==t&&t;return(0,i.iv)(q.iZ.resetButton,";height:190px;width:100%;position:relative;background-color:",n.qo.background.folder,";display:flex;justify-content:center;align-items:center;>svg{color:",n.qo.icon.default,";}::before{content:'';position:absolute;inset:0;opacity:0;display:none;background-color:transparent;transition:opacity 0.3s ease,background-color 0.3s ease;}",r&&(0,i.iv)("::before{display:block;opacity:0.4;background-color:",n.qo.base.highlight,";};label:listItemTop;")," :hover{::before{display:block;opacity:0.4;background-color:",n.qo.base.highlight,";}};label:listItemTop;")},listItemCheckboxWrapper:function(e){var t=e.isSelected,r=void 0!==t&&t;return(0,i.iv)("position:absolute;top:",n.W0[8],";left:",n.W0[8],";",r&&(0,i.iv)("z-index:",n.W5.positive,";;label:listItemCheckboxWrapper;"),";;label:listItemCheckboxWrapper;")},listItemInfo:(0,i.iv)("display:flex;justify-content:space-between;align-items:center;padding:",n.W0[6]," ",n.W0[12],";height:44px;button{padding:0;svg{color:",n.qo.icon.hints,";}};label:listItemInfo;"),renameInputWrapper:(0,i.iv)("width:100%;input{padding:",n.W0[12],";};label:renameInputWrapper;")},at=r(4101);function lt(e){return lt="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},lt(e)}function ct(){ct=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==lt(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function ut(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function st(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dt(e,t):void 0}}(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 dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const pt=function(e){var t,r,n,o=e.item,i=e.isSelected,a=e.onDelete,l=void 0===a?A.ZT:a,u=e.onSelectionChange,d=st((0,c.useState)(!1),2),p=d[0],f=d[1],v=st((0,c.useState)(""),2),h=v[0],b=v[1],y=(t=(0,de.NL)(),r=(0,H.$)(),n=(0,S.p)().showToast,(0,pe.D)({mutationFn:Se,onSuccess:function(){n({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_FILE_RENAMED_SUCCESS_MESSAGE")}),t.invalidateQueries(["MediaList"]),t.invalidateQueries(["FolderList"])},onError:function(e){n({type:"danger",message:e.message})}})),m=(0,oe.Q)(),g=(0,le.v)((function(e){return e.appConfig})),E=[{id:"rename",icon:"pencil",title:"COM_SPPAGEBUILDER_EDITOR_BUTTON_TEXT_RENAME",isDisabled:!(m.edit||m.edit_own&&o.created_by===g.user_id)},{id:"remove",icon:"trash",title:"COM_SPPAGEBUILDER_EDITOR_BUTTON_TEXT_DELETE",variant:"critical",isDisabled:!m.delete}],_=Ze(o.ext),I="".concat(o.title,".").concat(o.ext);return(0,s.tZ)(s.HY,{children:(0,s.BX)("div",{css:vt.listItemWrapper({isSelected:i}),children:[(0,A.$K)(o.isNewlyUploaded)&&o.isNewlyUploaded&&(0,s.tZ)("div",{css:vt.uploadingSpinner,children:(0,s.tZ)(O.ZP,{})}),(0,s.BX)("button",{css:vt.listItemTop({itemType:_.type,isSelected:i}),onClick:function(e){e.preventDefault(),u(o.id)},children:["image"===o.type&&(0,s.tZ)("img",{src:"".concat((0,A.$K)(o.isNewlyUploaded)&&o.isNewlyUploaded?"":A.Xy.pagebuilderBase).concat(o.thumb||o.path),alt:o.title}),"image"!==o.type&&(0,s.tZ)(w.Z,{name:_.icon,height:104,width:104}),(0,s.tZ)("div",{css:vt.listItemCheckboxWrapper({isSelected:i}),children:(0,s.tZ)(Xe.Z,{checked:i,onChange:function(){u(o.id)}})})]}),(0,s.tZ)("div",{css:vt.listItemInfo,title:I,children:p?(0,s.tZ)("div",{css:vt.renameInputWrapper,children:y.isLoading?(0,s.tZ)(O.g4,{}):(0,s.tZ)(Ye.Z,{value:h,onChange:function(e){b(e)},onKeyDown:function(){var e,t=(e=ct().mark((function e(t){var r,n,i;return ct().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("Escape"===t&&(f(!1),b("")),"Enter"===t){e.next=3;break}return e.abrupt("return");case 3:return r=o.id,n=o.path,i=o.thumb,e.next=6,y.mutateAsync({id:r,path:n,thumb:null!=i?i:"",title:h});case 6:e.sent.data.status&&f(!1);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ut(i,n,o,a,l,"next",e)}function l(e){ut(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),onBlur:function(){f(!1),b("")},focusOnMount:!0})}):(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:q.iZ.textEllipsis,children:I}),(0,s.tZ)(Qe.Z,{actions:E,triggerButtonContent:(0,s.tZ)(w.Z,{name:"ellipsisY",height:16,width:16}),onSelect:function(e){"rename"===e?(f(!0),b(o.title)):l(o)},arrowPosition:"top"})]})})]},o.id)})};var ft=function(e){switch(e){case"video":return{color:n.qo.alternate.orange,backgroundColor:n.qo.background.lightOrange};case"audio":return{color:n.qo.alternate.red,backgroundColor:n.qo.background.error};case"pdf":return{color:n.qo.alternate.saturatedRed,backgroundColor:n.qo.background.saturatedLightRed};case"archive":return{color:n.qo.alternate.tenderGreen,backgroundColor:n.qo.background.lightGreen};case"excel":return{color:n.qo.alternate.viridian,backgroundColor:n.qo.background.lightViridian};case"presentation":return{color:n.qo.alternate.lightOrange,backgroundColor:n.qo.background.lightOrange};case"attachment":return{color:n.qo.text.hover,backgroundColor:n.qo.background.neutral};default:return{color:n.qo.base.primary,backgroundColor:n.qo.background.lightRoyalBlue}}},vt={uploadingSpinner:(0,i.iv)("position:absolute;inset:0;z-index:",n.W5.positive,";background-color:",(0,at.m4)(n.qo.base.black,.6),";display:flex;align-items:center;justify-content:center;width:100%;height:100%;;label:uploadingSpinner;"),listItemWrapper:function(e){var t=e.isSelected,r=void 0!==t&&t;return(0,i.iv)(o.c.caption(),";background-color:",n.qo.background.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.base,";overflow:hidden;position:relative;",r&&(0,i.iv)("position:relative;::before{position:absolute;content:'';inset:0;background-color:",n.qo.base.highlight,";opacity:0.4;};label:listItemWrapper;"),";;label:listItemWrapper;")},listItemTop:function(e){var t=e.itemType,r=void 0===t?"image":t,o=e.isSelected,a=void 0!==o&&o;return(0,i.iv)(q.iZ.resetButton,";height:190px;width:100%;position:relative;text-align:center;::before{content:'';position:absolute;inset:0;opacity:0;display:none;background-color:transparent;transition:opacity 0.3s ease,background-color 0.3s ease;}",a&&(0,i.iv)("::before{display:block;opacity:0.4;background-color:",n.qo.base.highlight,";};label:listItemTop;")," :hover{::before{display:block;opacity:0.4;background-color:",n.qo.base.highlight,";}}","image"===r&&(0,i.iv)("background-color:",n.qo.background.neutral,";img{height:100%;width:100%;object-fit:contain;};label:listItemTop;")," ","image"!==r&&(0,i.iv)("display:flex;justify-content:center;align-items:center;background-color:",ft(r).backgroundColor,";svg{color:",ft(r).color,";};label:listItemTop;"),";;label:listItemTop;")},listItemCheckboxWrapper:function(e){var t=e.isSelected,r=void 0!==t&&t;return(0,i.iv)("position:absolute;top:",n.W0[8],";left:",n.W0[8],";",r&&(0,i.iv)("z-index:",n.W5.positive,";;label:listItemCheckboxWrapper;"),";;label:listItemCheckboxWrapper;")},listItemInfo:(0,i.iv)("display:flex;justify-content:space-between;align-items:center;padding:",n.W0[6]," ",n.W0[12],";height:44px;button{padding:0;svg{color:",n.qo.icon.hints,";}};label:listItemInfo;"),popover:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[8],";padding:",n.W0[8]," 0;background-color:",n.qo.background.white,";box-shadow:",n.AF.popover,";border-radius:",n.E0[5],";;label:popover;"),renameInputWrapper:(0,i.iv)("width:100%;input{padding:",n.W0[12],";};label:renameInputWrapper;")};function ht(e){return ht="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},ht(e)}function bt(e){return function(e){if(Array.isArray(e))return yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yt(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mt(){mt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==ht(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function gt(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}const Et=function(e){var t=e.folders,r=e.foldersList,n=e.filter,o=e.items,i=e.selectedFolders,a=e.onSelectedFolders,l=e.onFilterChange,c=e.onDeleteFolder,u=e.onFileDelete,d=e.isLoading,p=(0,H.$)(),f=(0,$e.d)().showModal,v=(0,oe.Q)();return d?(0,s.tZ)("div",{css:_t.spinnerWrapper,children:(0,s.tZ)(O.ZP,{})}):(0,s.BX)("div",{css:_t.wrapper,children:[(0,s.tZ)("div",{css:_t.listItemWrapper,children:(0,s.BX)("button",{type:"button",css:_t.listItemTop({disabled:!v.create}),disabled:!v.create,onClick:function(){var e,t=(e=mt().mark((function e(t){return mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,f({component:ze,props:{path:n,title:p("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FOLDER_CREATE_NEW")}});case 3:"CONFIRM"===e.sent.action&&a([]);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){gt(i,n,o,a,l,"next",e)}function l(e){gt(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),children:[(0,s.tZ)(w.Z,{name:"addFolder",height:104,width:104}),(0,s.tZ)("p",{css:_t.listItemInfo,children:p("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FOLDER_CREATE_NEW")})]})}),r.map((function(e,r){return(0,s.tZ)(ot,{folders:t,folderName:e,filter:n,selectedFolders:i,onSelect:function(e){var t=e.selectedFolder;e.isAlreadySelected?a(i.filter((function(e){return e.id!==t.id}))):a([].concat(bt(i),[t]))},onDeleteFolder:c,onNavigate:function(){return l("".concat(n,"/").concat(e))}},r)})),o.map((function(e,t){var r=i.find((function(t){return t.path===e.path}));return(0,s.tZ)(pt,{item:e,isSelected:!!r,onDelete:u,onSelectionChange:function(){a(r?i.filter((function(t){return t.path!==e.path})):[].concat(bt(i),[{id:Number(e.id),path:e.path,type:"local"}]))}},t)}))]})};var _t={wrapper:(0,i.iv)(q.iZ.overflowYAuto,";display:grid;grid-template-columns:repeat(5, 1fr);gap:",n.W0[24],";padding-right:",n.W0[24],";max-height:calc(100vh - 290px);",n.Uo.tablet,"{grid-template-columns:repeat(4, 1fr);};label:wrapper;"),spinnerWrapper:(0,i.iv)(q.iZ.flexCenter(),";height:100%;width:100%;;label:spinnerWrapper;"),listItemWrapper:(0,i.iv)(o.c.caption(),";background-color:",n.qo.background.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.base,";overflow:hidden;height:234px;;label:listItemWrapper;"),listItemTop:function(e){var t=e.disabled;return(0,i.iv)(q.iZ.resetButton,";height:100%;width:100%;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;>svg{color:",n.qo.icon.default,";}>svg,>p{transition:color 0.3s ease;}:hover{>p{color:",n.qo.action.primary.hover,";}>svg{color:",n.qo.icon.primary,";}}",t&&(0,i.iv)("svg{color:",n.qo.icon.disabled,";}p{color:",n.qo.text.disabled,";}:hover{svg{color:",n.qo.icon.disabled,";}p{color:",n.qo.text.disabled,";}};label:listItemTop;"),";;label:listItemTop;")},listItemCheckboxWrapper:(0,i.iv)("position:absolute;top:",n.W0[8],";left:",n.W0[8],";;label:listItemCheckboxWrapper;"),listItemInfo:(0,i.iv)(o.c.body("medium"),";padding:",n.W0[6]," ",n.W0[12],";;label:listItemInfo;")},Ot=(0,c.forwardRef)((function(e,t){var r=e.mediaItems,n=void 0===r?[]:r,o=e.selectedItemIds,i=e.onDelete,a=void 0===i?A.ZT:i,l=e.onSelectionChange,c=e.isInfiniteLoaderVisible,u=void 0!==c&&c,d=(0,H.$)();return n.length?(0,s.BX)("div",{css:It.wrapper,children:[(0,s.tZ)("div",{css:It.listItemsWrapper,children:n.map((function(e){var t=o.includes(e.id);return(0,s.tZ)(pt,{item:e,isSelected:t,onSelectionChange:l,onDelete:a},e.id)}))}),(0,s.tZ)("div",{ref:t,css:It.infiniteLoader({isVisible:u}),children:(0,s.tZ)(O.ZP,{})})]}):(0,s.tZ)("div",{css:It.emptyMessage,children:d("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_NO_ITEMS_FOUND")})}));const wt=Ot;var St={name:"1tbj5j9-infiniteLoader",styles:"display:block;label:infiniteLoader;"},It={wrapper:(0,i.iv)(q.iZ.overflowYAuto,";max-height:calc(100vh - 290px);;label:wrapper;"),listItemsWrapper:(0,i.iv)("display:grid;grid-template-columns:repeat(5, 1fr);gap:",n.W0[24],";padding-right:",n.W0[24],";",n.Uo.tablet,"{grid-template-columns:repeat(4, 1fr);}",n.Uo.smallTablet,"{grid-template-columns:repeat(3, 1fr);};label:listItemsWrapper;"),spinnerWrapper:(0,i.iv)(q.iZ.flexCenter(),";height:100%;width:100%;;label:spinnerWrapper;"),emptyMessage:(0,i.iv)("height:100%;display:grid;place-items:center;background:",n.qo.background.white,";border-radius:",n.E0[10],";margin-right:",n.W0[24],";;label:emptyMessage;"),infiniteLoader:function(e){var t=e.isVisible,r=void 0!==t&&t;return(0,i.iv)("display:none;text-align:center;height:40px;margin-top:",n.W0[16],";",r&&St,";;label:infiniteLoader;")}};function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ct=function(e){var t=e.selectedCategory,r=e.isInsideModal,n=void 0===r||r,o=e.onChange,i=e.onMediaUpload,a=(0,H.$)(),l=(0,c.useRef)(null),u=(0,oe.Q)(),d=[{name:"*",icon:"filesDuo",title:a("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_ALL_ITEMS")},{name:"image",icon:"image",title:a("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_IMAGES")},{name:"video",icon:"videoCameraDuo",title:a("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_VIDEOS")},{name:"audio",icon:"music",title:a("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_AUDIOS")},{name:"attachment",icon:"paperclip",title:a("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_ATTACHMENTS")},{name:"folders",icon:"foldersDuo",title:a("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_FOLDERS")}];return(0,s.BX)("div",{css:Pt.sidebar({isInsideModal:n}),children:[n&&(0,s.BX)("div",{css:Pt.sidebarUploadButton,children:[(0,s.tZ)(X.Z,{icon:(0,s.tZ)(w.Z,{name:"upload"}),onClick:function(){var e;null===(e=l.current)||void 0===e||e.click()},disabled:!u.create,children:a("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_SIDEBAR_UPLOAD_FILES")}),(0,s.tZ)("input",{ref:l,type:"file",multiple:!0,"aria-hidden":"true",hidden:!0,onChange:function(e){var t,r=e.target.files;u.create&&r&&(i(function(e){if(Array.isArray(e))return xt(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xt(e,t):void 0}}(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.")}()),e.target.value="")}})]}),(0,s.tZ)("div",{css:Pt.sidebarItemWrapper,children:d.map((function(e){return(0,s.tZ)(X.Z,{variant:"text",buttonCss:Pt.sidebarItem({isActive:t===e.name,isInsideModal:n}),icon:(0,s.tZ)(w.Z,{name:e.icon,height:24,width:24}),onClick:function(){return o(e.name)},children:e.title},e.name)}))})]})};var Pt={sidebar:function(e){var t=e.isInsideModal,r=void 0===t||t;return(0,i.iv)("display:flex;flex-direction:column;height:316px;",r&&(0,i.iv)("background-color:",n.qo.base.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.card,";;label:sidebar;"),";;label:sidebar;")},sidebarUploadButton:(0,i.iv)("padding:",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";button{",q.iZ.flexCenter(),";width:100%;svg{margin-right:",n.W0[2],";}};label:sidebarUploadButton;"),sidebarItemWrapper:(0,i.iv)(o.c.body(),";display:flex;flex-direction:column;;label:sidebarItemWrapper;"),sidebarItem:function(e){var t=e.isActive,r=void 0!==t&&t,o=e.isInsideModal,a=void 0===o||o;return(0,i.iv)("padding:0;height:40px;gap:",n.W0[12],";transition:background-color 0.3s ease,color 0.3s ease,border-radius 0.3s ease;",a&&(0,i.iv)("padding:0 ",n.W0[16],";;label:sidebarItem;")," svg{color:",n.qo.icon.default,";margin-right:",n.W0[8],";transition:color 0.3s ease;}",r&&(0,i.iv)(a&&(0,i.iv)("background-color:",n.qo.base.surface,";;label:sidebarItem;")," color:",n.qo.text.primary,";border-radius:0;svg{color:",n.qo.icon.primary,";};label:sidebarItem;")," ",!r&&(0,i.iv)(":hover{background-color:",n.qo.base.surface,";color:",n.qo.text.hover,";border-radius:0;svg{color:",n.qo.icon.hover,";}};label:sidebarItem;"),";;label:sidebarItem;")}};function At(e){return At="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},At(e)}function Lt(){Lt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==At(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach((function(t){Zt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==At(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==At(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===At(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jt(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function Rt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){jt(i,n,o,a,l,"next",e)}function l(e){jt(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Bt(e){return function(e){if(Array.isArray(e))return Gt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kt(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 Mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||kt(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 kt(e,t){if(e){if("string"==typeof e)return Gt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gt(e,t):void 0}}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Nt=function(e){var t,r,n,o=e.isInsideModal,i=void 0===o||o,a=e.initialCategory,l=void 0===a?"*":a,u=e.isInInsertMode,d=e.allowedMediaType,p=e.files,f=e.clearFile,v=void 0===f?A.ZT:f,h=e.closeModal,b=void 0===h?A.ZT:h,y=e.onInsert,m=void 0===y?A.ZT:y,g=e.onBulkInsert,E=void 0===g?A.ZT:g,_=e.bulkImport,I=void 0!==_&&_,x=(0,H.$)(),C={link:null,text:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_ALL_ITEMS")},P=(0,le.v)((function(e){return e.appConfig})),T=P.media_path,D=P.media_upload_max_size,Z=Mt((0,c.useState)(l),2),j=Z[0],R=Z[1],B=Mt((0,c.useState)([]),2),M=B[0],k=B[1],G=Mt((0,c.useState)([C]),2),N=G[0],W=G[1],U=Mt((0,c.useState)(!1),2),F=U[0],V=U[1],q=Mt((0,c.useState)(T),2),z=q[0],K=q[1],$=Mt((0,c.useState)([]),2),ve=$[0],he=$[1],ye=Mt((0,c.useState)([]),2),me=ye[0],ge=ye[1],Oe=(0,c.useRef)(null),we=Mt((0,c.useState)([]),2),Se=we[0],Ce=we[1],Pe=(0,oe.Q)(),Ae=(0,ne.Z)(),Le=Ae.intersectionEntry,Te=Ae.intersectionElementRef,De=(0,ee.g)(),Ze=(0,S.p)().showToast,je=(0,re.O)({defaultValues:{search:"",filter:""}}),Me=je.watch(),ke=Me.search,Ge=Me.filter,Ne=(0,te.N)(ke),We=function(e){var t=(0,S.p)().showToast;return(0,se.N)({queryKey:["MediaList",e],queryFn:function(t){var r=t.pageParam,n=void 0===r?1:r;return function(e){return fe.u.get(ce.H.MEDIA,{params:e}).then((function(e){return e.data}))}(be(be({},e),{},{page:n}))},getNextPageParam:function(e,t){return e.pageNav?t.length+1:void 0},enabled:"folders"!==e.type,onError:function(e){t({type:"danger",message:e.message})}})}({type:j,search:Ne,date:Ge}),Ue=function(e){var t=(0,S.p)().showToast;return(0,ue.a)({queryKey:["FolderList",e],queryFn:function(){return Ie(e)},enabled:"folders"===e.type,onError:function(e){t({type:"danger",message:e.message})}})}({type:j,filter:Ge,path:z}),He=function(e){var t=(0,S.p)().showToast;return(0,ue.a)({queryKey:["FolderList",e],queryFn:function(){return Ie(e)},enabled:"folders"===e.type&&e.hasSelection,onError:function(e){t({type:"danger",message:e.message})}})}({type:j,filter:Ge,path:null===(t=ve[0])||void 0===t?void 0:t.path,hasSelection:1===ve.length}),Fe=function(){var e=(0,de.NL)(),t=(0,H.$)(),r=(0,S.p)().showToast;return(0,pe.D)({mutationFn:_e,onSuccess:function(){r({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_FILE_UPLOAD_SUCCESS_MESSAGE")}),e.invalidateQueries(["MediaList"]),e.invalidateQueries(["FolderList"])},onError:function(e){r({type:"danger",message:e.message})}})}(),Ve=(0,c.useMemo)((function(){var e,t;return null!==(e=null===(t=We.data)||void 0===t?void 0:t.pages.flatMap((function(e){return e.items})))&&void 0!==e?e:[]}),[null===(r=We.data)||void 0===r?void 0:r.pages]);(0,c.useEffect)((function(){null!=Le&&Le.isIntersecting&&We.fetchNextPage()}),[null==Le?void 0:Le.isIntersecting]),(0,c.useEffect)((function(){var e=Oe.current,t=function(e){e.stopPropagation(),F||V(!0)},r=function(e){e.stopPropagation(),V(!1)};return null==e||e.addEventListener("dragenter",t),null==e||e.addEventListener("dragleave",r),function(){null==e||e.removeEventListener("dragenter",t),null==e||e.removeEventListener("dragleave",r)}}),[]),(0,c.useEffect)((function(){var e,t,r,n;if("folders"===j){var o=null!==(e=null===(t=Ue.data)||void 0===t?void 0:t.folders.map((function(e){return{label:e.relname,value:e.relname}})))&&void 0!==e?e:[];ge([{label:T,value:T}].concat(Bt(o)));var i=null!==(r=null===(n=Ue.data)||void 0===n?void 0:n.breadcrumbs.map((function(e){return{link:e.path,text:e.label}})))&&void 0!==r?r:[];W([{link:null,text:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_FOLDERS")}].concat(Bt(i)))}}),[null===(n=Ue.data)||void 0===n?void 0:n.breadcrumbs,j]),(0,c.useEffect)((function(){if("folders"===j)je.setValue("filter",T);else{var e,t,r=null!==(e=null===(t=We.data)||void 0===t?void 0:t.pages[0].filters.map((function(e){var t="".concat(e.year,"-").concat(e.month);return{label:t,value:t}})))&&void 0!==e?e:[];ge([{label:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FILTER_ALL"),value:""}].concat(Bt(r)))}}),[We.data,T,j]),(0,c.useEffect)((function(){null!=p&&p.length&&Rt(Lt().mark((function e(){var t;return Lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Be(p,D)){e.next=6;break}return Ze({type:"danger",message:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,A.td)(D)})}),Ce([]),v(),e.abrupt("return");case 6:return t=Re(p),Ce(t),e.next=10,Fe.mutateAsync(Dt({file:p},"folders"===j&&{folder:z}));case 10:Ce([]),v();case 12:case"end":return e.stop()}}),e)})))()}),[p]);var qe,ze,Ke,$e,Xe,Ye,Qe,Je,et,tt,rt,nt,ot,it=!!Ne||!!Ge,at=F||!We.isLoading&&0===Ve.length&&0===Se.length&&!it,lt={"*":"",image:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_IMAGES"),video:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_VIDEOS"),audio:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_AUDIOS"),attachment:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_ATTACHMENTS"),folders:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FOLDERS")},ct=!at&&!We.isLoading&&!!We.hasNextPage;return(0,s.BX)("div",{css:Ft.wrapper({isInsideModal:i}),children:[(0,s.tZ)(Ct,{isInsideModal:i,selectedCategory:j,onChange:function(e){R(e),k([]),he([]),je.reset(),W([C,{link:null,text:lt[e]}]),"folders"===e&&K("/images")},onMediaUpload:function(){var e=Rt(Lt().mark((function e(t){var r;return Lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Be(t,D)){e.next=6;break}return Ze({type:"danger",message:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,A.td)(D)})}),Ce([]),v(),e.abrupt("return");case 6:return r=Re(t),Ce(r),e.next=10,Fe.mutateAsync(Dt({file:t},"folders"===j&&{folder:z}));case 10:Ce([]);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),(0,s.BX)("div",{css:Ft.rightSideWrapper,children:[(0,s.BX)("div",{css:Ft.filterWrapper({isInsideModal:i}),children:[(0,s.tZ)("div",{css:Ft.textInputWrapper,children:(0,s.tZ)(L.Qr,{control:je.control,name:"search",render:function(e){return(0,s.tZ)(J.Z,Dt(Dt({},e),{},{variant:"search",placeholder:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_SEARCH_PLACEHOLDER"),disabled:"folders"===j,isClearable:!0}))}})}),(0,s.tZ)("div",{css:Ft.selectWrapper,children:(0,s.tZ)(L.Qr,{control:je.control,name:"filter",render:function(e){return(0,s.tZ)(Q.Z,Dt(Dt({},e),{},{options:me,onChange:function(e){return K(e.value)},isClearable:!1}))}})})]}),(0,s.BX)("div",{css:Ft.topPanel,children:[(0,s.tZ)(Y.Z,{routes:N,onFilterChange:function(e){"folders"===j&&K(e)}}),(M.length>0||ve.length>0)&&(0,s.BX)("div",{css:Ft.topPanelActionsWrapper,children:[(0,s.tZ)("p",{children:x(M.length+ve.length>1?"COM_SPPAGEBUILDER_EDITOR_MEDIA_ITEMS_SELECTED":"COM_SPPAGEBUILDER_EDITOR_MEDIA_ITEM_SELECTED",{numberOfItems:M.length+ve.length})}),(0,s.tZ)("div",{children:(0,s.tZ)(X.Z,{icon:(0,s.tZ)(w.Z,{name:"trash",height:16,width:16}),disabled:!Pe.delete,onClick:Rt(Lt().mark((function e(){var t,r;return Lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=ve,"folders"===j){e.next=6;break}if(We.data){e.next=4;break}return e.abrupt("return");case 4:r=Ve.filter((function(e){return M.includes(e.id)})),t=r.map((function(e){return Dt(Dt({},e),{},{type:"local+db"})}));case 6:return e.next=8,De({title:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_TITLE"),confirmationMessage:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_MESSAGE"),confirmButtonText:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_BUTTON_TEXT"),mutationFn:Ee,payload:{data:t},invalidateKeys:[["MediaList"],["FolderList"]]});case 8:if("CONFIRM"===e.sent.action){e.next=12;break}return e.abrupt("return");case 12:Ze({type:"success",message:x("COM_SPPAGEBUILDER_EDITOR_FILE_DELETE_SUCCESS_MESSAGE")}),"folders"===j?he([]):k([]);case 14:case"end":return e.stop()}}),e)}))),children:x("COM_SPPAGEBUILDER_EDITOR_BUTTON_TEXT_DELETE")})})]})]}),(0,s.tZ)("div",{ref:Oe,css:Ft.droppableContainer({isInsideModal:i}),children:(0,s.tZ)(ae.Z,{query:"folders"===j?Ue:We,children:at?(0,s.tZ)("div",{css:Ft.mediaDropzoneWrapper({isInsideModal:i}),children:(0,s.tZ)(ie.Z,{onUpload:function(){var e=Rt(Lt().mark((function e(t){var r;return Lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Be(t,D)){e.next=6;break}return Ze({type:"danger",message:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MEDIA_LARGE",{size:(0,A.td)(D)})}),Ce([]),v(),e.abrupt("return");case 6:return r=Re(t),Ce(r),V(!1),e.next=11,Fe.mutateAsync(Dt({file:t},"folders"===j&&{folder:z}));case 11:Ce([]);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onDragLeave:function(){return V(!1)},multiple:!0,disabled:!Pe.create})}):"folders"===j?(0,s.tZ)(Et,{folders:null!==(Je=null===(et=Ue.data)||void 0===et?void 0:et.folders)&&void 0!==Je?Je:[],foldersList:null!==(tt=null===(rt=Ue.data)||void 0===rt?void 0:rt.folders_list)&&void 0!==tt?tt:[],items:[].concat(Bt(Se),Bt(null!==(nt=null===(ot=Ue.data)||void 0===ot?void 0:ot.items)&&void 0!==nt?nt:[])),filter:z,selectedFolders:ve,onSelectedFolders:function(e){return he(e)},onFilterChange:function(e){K(e),he([])},onDeleteFolder:function(){var e=Rt(Lt().mark((function e(t){var r;return Lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={folder:t.path,deleteItem:"multiple"},e.next=3,De({title:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_TITLE"),confirmationMessage:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_MESSAGE"),confirmButtonText:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_BUTTON_TEXT"),mutationFn:xe,payload:r,invalidateKeys:[["MediaList"],["FolderList"]]});case 3:"CONFIRM"===e.sent.action&&(Ze({type:"success",message:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_FOLDER_DELETE_SUCCESS")}),he([]));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onFileDelete:function(){var e=Rt(Lt().mark((function e(t){return Lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,De({title:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_TITLE"),confirmationMessage:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_MESSAGE"),confirmButtonText:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_BUTTON_TEXT"),mutationFn:Ee,payload:{data:[Dt(Dt({},t),{},{type:"local"})]},invalidateKeys:[["MediaList"],["FolderList"]]});case 2:"CONFIRM"===e.sent.action&&(Ze({type:"success",message:x("COM_SPPAGEBUILDER_EDITOR_FILE_DELETE_SUCCESS_MESSAGE")}),k([]));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),isLoading:!1}):We.isLoading?(0,s.tZ)(O.fz,{}):(0,s.tZ)(s.HY,{children:(0,s.tZ)(wt,{ref:Te,isInfiniteLoaderVisible:ct,mediaItems:[].concat(Bt(Se),Bt(Ve)),selectedItemIds:M,onSelectionChange:function(e){M.includes(e)?k((function(t){return t.filter((function(t){return t!==e}))})):k((function(t){return[].concat(Bt(t),[e])}))},isFilterApplied:!!Ne||!!Ge,onDelete:function(){var e=Rt(Lt().mark((function e(t){return Lt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,De({title:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_TITLE"),confirmationMessage:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_MESSAGE"),confirmButtonText:x("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_CONSENT_CONFIRM_BUTTON_TEXT"),mutationFn:Ee,payload:{data:[Dt(Dt({},t),{},{type:"local+db"})]},invalidateKeys:[["MediaList"],["FolderList"]]});case 2:"CONFIRM"===e.sent.action&&(Ze({type:"success",message:x("COM_SPPAGEBUILDER_EDITOR_FILE_DELETE_SUCCESS_MESSAGE")}),k([]));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})})})})]}),(Ke=ve.some((function(e){return"folder"===e.type})),$e=Ke&&1===ve.length,Xe=!Ke,Ye=!I&&i&&u&&(1===M.length||1===ve.length)&&(qe="folders"!==j?Ve.find((function(e){return M.includes(e.id)})):null===(ze=Ue.data)||void 0===ze?void 0:ze.items.find((function(e){return ve[0].path===e.path})),!!qe&&("*"===d&&"folders"!==qe.type||qe.type===d)),Qe=I&&i&&u&&($e||Xe)&&(M.length>0||ve.length>0),(Ye||Qe)&&(0,s.BX)("div",{css:Ft.footerWrapper,children:[(0,s.tZ)(X.Z,{onClick:function(){var e,t,r=I;if("folders"!==j)1===M.length?e=Ve.find((function(e){return M.includes(e.id)})):(t=Bt(Ve.filter((function(e){return M.includes(e.id)}))),E(t),b());else if(r&&"folders"===j){var n,o;if(!ve.some((function(e){return"folder"===e.type}))){var i=ve.map((function(e){var t=e.path,r=t.match(/\/([^\/]+)\.[^.]+$/),n="";return r&&(n=r[1]),{id:Number(e.id),title:n,thumb:t,path:e.path,type:e.type}}));E(i),b()}var a=(t=null!==(n=null===(o=He.data)||void 0===o?void 0:o.items)&&void 0!==n?n:[]).map((function(e){return Dt(Dt({},e),{},{thumb:e.path})}));E(a),b()}else{var l;e=null===(l=Ue.data)||void 0===l?void 0:l.items.find((function(e){return ve[0].path===e.path}))}e&&(m(e),b())},children:x("COM_SPPAGEBUILDER_EDITOR_INSERT")}),(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){return k([])},children:x("COM_SPPAGEBUILDER_EDITOR_CANCEL")})]}))]})};var Wt={name:"kf3hau-mediaDropzoneWrapper",styles:"padding-right:0;label:mediaDropzoneWrapper;"},Ut={name:"1lytjnr-droppableContainer",styles:"min-height:350px;label:droppableContainer;"},Ht={name:"1ce2508-filterWrapper",styles:"padding-right:0;label:filterWrapper;"},Ft={wrapper:function(e){var t=e.isInsideModal,r=void 0===t||t;return(0,i.iv)("display:grid;grid-template-columns:228px auto;gap:",n.W0[32],";height:calc(100vh - 130px);padding:",n.W0[32]," 0 ",n.W0[32]," ",n.W0[24],";background-color:",n.qo.background.primary,";position:relative;",!r&&(0,i.iv)("padding:",n.W0[24]," 0;grid-template-columns:180px auto;;label:wrapper;"),";;label:wrapper;")},rightSideWrapper:{name:"dhhsr1-rightSideWrapper",styles:"display:flex;flex-direction:column;label:rightSideWrapper;"},filterWrapper:function(e){var t=e.isInsideModal,r=void 0===t||t;return(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[16],";padding-right:",n.W0[24],";",!r&&Ht,";;label:filterWrapper;")},textInputWrapper:{name:"1r9fuqm-textInputWrapper",styles:"flex:1;label:textInputWrapper;"},selectWrapper:{name:"1u54jb-selectWrapper",styles:"width:160px;label:selectWrapper;"},topPanel:(0,i.iv)("display:flex;justify-content:space-between;align-items:center;gap:",n.W0[8],";height:32px;margin-top:",n.W0[32],";padding-right:",n.W0[24],";;label:topPanel;"),topPanelActionsWrapper:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[16],";p{",o.c.body("medium"),";margin:auto 0;}button{background-color:",n.qo.base.error,";:hover{background-color:",n.qo.alternate.saturatedRed,";}};label:topPanelActionsWrapper;"),droppableContainer:function(e){var t=e.isInsideModal,r=void 0===t||t;return(0,i.iv)("flex:1;position:relative;padding:",n.W0[20]," 0;",!r&&Ut,";;label:droppableContainer;")},mediaDropzoneWrapper:function(e){var t=e.isInsideModal,r=void 0===t||t;return(0,i.iv)("height:max(100%, 512px);padding-right:",n.W0[24],";",!r&&Wt,";;label:mediaDropzoneWrapper;")},footerWrapper:(0,i.iv)("display:flex;justify-content:end;align-items:center;gap:",n.W0[8],";padding:",n.W0[8]," ",n.W0[24],";background-color:",n.qo.background.white,";border-top:1px solid ",n.qo.stroke.neutral,";z-index:",n.W5.positive,";position:absolute;bottom:0;left:0;width:100%;;label:footerWrapper;")};const Vt=function(e){var t=e.title,r=e.closeModal,n=e.initialCategory,o=void 0===n?"*":n,i=e.isInInsertMode,a=void 0===i||i,l=e.allowedMediaType,c=void 0===l?"image":l,u=e.onInsert,d=void 0===u?A.ZT:u,p=e.onBulkInsert,f=void 0===p?A.ZT:p,v=e.bulkImport,h=void 0!==v&&v,b=(0,H.$)();return(0,s.tZ)(Ne.Z,{onClose:function(){return r({action:"CLOSE"})},title:null!=t?t:b("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_MODAL_TITLE"),isOverflowYAuto:!1,wrapperCss:qt.wrapper,children:(0,s.tZ)(Nt,{isInInsertMode:a,initialCategory:o,allowedMediaType:c,onInsert:d,onBulkInsert:f,closeModal:function(){return r()},bulkImport:h})})};var qt={wrapper:{name:"ia4w6y-wrapper",styles:"max-width:1360px;label:wrapper;"}},zt=r(4353),Kt=r(4943),$t=r(7856);function Xt(e){return Xt="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},Xt(e)}function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){Jt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Xt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var er={wrapper:{name:"1fpx7vt-wrapper",styles:"width:666px;max-height:680px;height:calc(100vh - 252px);position:relative;label:wrapper;"},body:(0,i.iv)("background-color:",n.qo.background.hover,";max-height:calc(100vh - 345px);width:100%;padding:",n.W0[20]," ",n.W0[20],";display:flex;flex-direction:column;gap:",n.W0[16],";",q.iZ.overflowYAuto," padding-bottom:",n.W0[24],";;label:body;"),footerWrapper:(0,i.iv)("display:flex;justify-content:end;align-items:center;gap:",n.W0[10],";padding:",n.W0[12]," ",n.W0[16],";background-color:",n.qo.background.white,";border-top:1px solid ",n.qo.stroke.neutral,";z-index:",n.W5.positive,";width:100%;height:56px;position:absolute;bottom:0;;label:footerWrapper;"),divider:(0,i.iv)("width:666px;margin:5px -20px;height:1px;background-color:",n.qo.stroke.neutral,";position:relative;;label:divider;"),textUnitInput:(0,i.iv)("width:525px;padding:",n.W0[12],";font-size:",n.JB[14],";;label:textUnitInput;"),unitInput:{name:"166ip69-unitInput",styles:"width:100px;font-size:12px;text-align:center;label:unitInput;"}};const tr=function(e){var t=e.closeModal,r=e.title,n=e.closeActiveAction,o=void 0===n?function(){return(0,A.ZT)()}:n,i=e.setIsNextClicked,a=e.form,l=e.savePageContent,c=(0,H.$)(),u=(0,le.v)((function(e){return e.appConfig})),d=[{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_ENTIRE_SITE"),value:"entire_site"},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_SPECIFIC_PAGES"),value:"specific_pages"},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_SPECIFIC_MENUS"),value:"specific_menus"}],p=[{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_SCROLL"),value:"on_scroll"},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_LANDING"),value:"on_landing"},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_CLICK"),value:"on_click"},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_HOVER"),value:"on_hover"},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CONDITION_ON_INACTIVITY"),value:"on_inactivity"}],f=[{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_SCROLL_UP"),value:"up"},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_SCROLL_DOWN"),value:"down"}],v=[{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_TYPE_RANDOM"),value:"random"},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_TYPE_SPECIFIC"),value:"specific"}],h=u.pages.map((function(e){return{label:e.label,value:e.value.toString()}})),b=u.menus.map((function(e){return{label:e.label,value:e.value.toString()}})),y=(0,L.qo)({control:a.control,name:"attribs.visibility"}),m=(0,L.qo)({control:a.control,name:"attribs.exclude_pages_toggle"}),g=(0,L.qo)({control:a.control,name:"attribs.exclude_menus_toggle"}),E=(0,L.qo)({control:a.control,name:"attribs.trigger_condition"}),_=(0,L.qo)({control:a.control,name:"attribs.click_type"});return(0,s.BX)(Ne.Z,{onClose:function(){null==i||i(!1),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="flex"),o(),t({action:"CLOSE"})},title:r,wrapperCss:er.wrapper,isOverflowYAuto:!1,children:[(0,s.BX)("div",{css:er.body,children:[(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.visibility",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(Q.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION"),options:d,placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT")}))})}},"attribs.visibility"),"entire_site"===y&&(0,s.BX)("div",{children:[(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.exclude_pages_toggle",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(Kt.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_EXCLUDE_PAGES"),isInlineLabel:!0,helpText:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_EXCLUDE_PAGES_HELP_TEXT")}))})}},"attribs.exclude_pages_toggle"),1===m&&(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.excluded_pages",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(zt.Z,Qt(Qt({},e),{},{placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT"),options:h,isSearchable:!0}))})}},"attribs.excluded_pages"),(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.exclude_menus_toggle",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(Kt.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_VISIBILITY_OPTION_EXCLUDE_MENUS"),isInlineLabel:!0,helpText:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_EXCLUDE_MENUS_HELP_TEXT")}))})}},"attribs.exclude_menus_toggle"),1===g&&(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.excluded_menus",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(zt.Z,Qt(Qt({},e),{},{placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT"),options:b,isSearchable:!0}))})}},"attribs.excluded_menus")]}),"specific_pages"===y&&(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.selected_pages",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(zt.Z,Qt(Qt({},e),{},{placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT"),options:h,isSearchable:!0}))})}},"attribs.selected_pages"),"specific_menus"===y&&(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.selected_menus",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(zt.Z,Qt(Qt({},e),{},{placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT"),options:b,isSearchable:!0}))})}},"attribs.selected_menus"),(0,s.tZ)("div",{children:(0,s.tZ)("div",{css:er.divider})}),(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.trigger_condition",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(Q.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_OPTION"),options:p,placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT")}))})}},"attribs.trigger_condition"),"on_scroll"===E&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.scroll_direction",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(Q.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_SCROLL_DIRECTION"),options:f,placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT")}))})}},"attribs.scroll_direction"),(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.scroll_percentage",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(J.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_SCROLL_PERCENTAGE"),type:"number",staticUnit:"%",placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.scroll_percentage")]}),"on_landing"===E&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.landing_after",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(J.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_LANDING_AFTER"),type:"number",staticUnit:"seconds",placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.landing_after"),(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.landing_show_after",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(J.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_LANDING_SHOW_AFTER"),type:"number",staticUnit:"times",placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.landing_show_after")]}),"on_click"===E&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.click_type",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(Q.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_TYPE"),options:v,placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_SELECT")}))})}},"attribs.click_type"),"specific"===_&&(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.click_area",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(J.Z,Qt(Qt({},e),{},{placeholder:"#container / .container",label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_AREA"),staticUnit:"css selector"}))})}},"attribs.click_area"),(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.click_count",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(J.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_CLICK_COUNT"),type:"number",staticUnit:"times",placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.click_count")]}),"on_hover"===E&&(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.hover_area",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(J.Z,Qt(Qt({},e),{},{placeholder:"#container / .container",label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_HOVER_AREA"),staticUnit:"css selector"}))})}},"attribs.hover_area"),"on_inactivity"===E&&(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.inactivity_duration",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)(J.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_INACTIVITY_DURATION"),type:"number",staticUnit:"seconds",placeholder:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_OPTION_INPUT_NUMBER_PLACEHOLDER")}))})}},"attribs.inactivity_duration"),!!E&&(0,s.tZ)(L.Qr,{control:a.control,name:"attribs.reappear_after",render:function(e){return(0,s.tZ)("div",{children:(0,s.tZ)($t.Z,Qt(Qt({},e),{},{label:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TRIGGER_REAPPEARANCE_AFTER"),hasUnit:!0,customUnitOptions:[{label:"seconds",value:"sec"},{label:"minutes",value:"min"},{label:"hours",value:"hr"},{label:"days",value:"day"},{label:"never",value:"never"}],noRangeInput:!0,inputCss:er.textUnitInput,unitInputStyles:er.unitInput,disableTextField:"never"===a.watch("attribs.reappear_after.unit")}))})}},"attribs.reappear_after")]}),(0,s.BX)("div",{css:er.footerWrapper,children:[(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){null==i||i(!1),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="flex"),o(),t({action:"CLOSE"})},children:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_CANCEL")}),(0,s.tZ)(X.Z,{variant:"primary",onClick:function(){null==i||i(!1),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="flex"),l(),o(),t({action:"CLOSE"})},children:c("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_APPLY")})]})]})};var rr;function nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const or=function(e){var t,r,n=e.isPopup,o=void 0!==n&&n,i=e.setIsNextClicked,a=(0,H.$)(),l=(0,$e.d)().showModal,u=(0,c.useRef)(null),d=(0,S.p)().showToast,p=(0,L.Gc)(),f=(0,L.Gc)(),v=U().savePageContent,h=(t=(0,F.j)((function(e){return[e.actions,e.activeAction,e.setActiveAction]})),r=3,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nr(e,t):void 0}}(t,r)||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.")}()),b=h[0],y=h[1],m=h[2],g=(0,V.o)((function(e){return e.copiedData})),E=(0,V.o)((function(e){return e.resetCopiedData})),_=b.find((function(e){return"documentation"===e.key})),O=!!g.addon||!!g.section;return(0,s.BX)("div",{css:ur.wrapper,children:[(0,s.BX)("div",{css:ur.itemsWrapper,children:[b.map((function(e){if("documentation"!==e.key&&(!o||"settings"!==e.key)&&(o||"popup-triggers"!==e.key)&&(o||"popup-settings"!==e.key)&&(o||"popup-layouts"!==e.key)&&(!o||"layouts"!==e.key)){var t="add-elements"===e.key||"section-library"===e.key;return(0,s.BX)("button",{css:ur.item({isActive:e.key===y,isRotate:t}),onClick:function(){var r=t?["add-elements","section-library"].includes(y)?void 0:e.key:y===e.key?void 0:e.key;return m(r),"layouts"===e.key?(l({component:K.Z,props:{title:a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_LAYOUTS"),form:p},closeOnOutsideClick:!0}),void m(void 0)):"popup-layouts"===e.key?(l({component:$.Z,props:{title:a("COM_SPPAGEBUILDER_EDITOR_LAYOUT_MODAL_LAYOUTS"),form:p},closeOnOutsideClick:!0}),void m(void 0)):"media"===e.key?(l({component:Vt,props:{isInInsertMode:!1},closeOnOutsideClick:!0}),void m(void 0)):void("popup-triggers"===e.key&&(null==i||i(!0),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="none"),l({component:tr,props:{title:a("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TITLE"),isPopup:!0,form:f,closeActiveAction:function(){return m(void 0)},setIsNextClicked:function(e){return null==i?void 0:i(e)},savePageContent:v}})))},children:[(0,s.tZ)(w.Z,{name:e.icon,width:20,height:20,style:ur.iconStyle}),(0,s.tZ)("span",{children:a(e.title)})]},e.key)}})),(0,s.tZ)("button",{type:"button",disabled:!O,css:ur.cleanerButton({isActive:O}),onClick:function(){E(),d({type:"success",message:a("COM_SPPAGEBUILDER_EDITOR_ACTION_CLEARED_CLIPBOARD_MESSAGE")})},children:(0,s.BX)(I.Z,{content:a("COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_CLEAR_CLIPBOARD_TOOLTIP"),placement:"right",disabled:!O,reference:u,children:[(0,s.tZ)(w.Z,{name:"broom",width:40,height:40}),(0,s.tZ)("span",{css:ur.ripple})]})})]}),_&&(0,s.BX)(z.rU,{to:x.sD,target:"_blank",rel:"noopener noreferrer",css:ur.item({isActive:!1,isLastChild:!0}),children:[(0,s.tZ)(w.Z,{name:_.icon,width:20,height:20,style:ur.iconStyle}),(0,s.tZ)("span",{children:a(_.title)})]})]})};var ir,ar,lr={ripple:(0,i.F4)(rr||(ir=["\n    0% {\n      opacity: 0.35;\n      transform: scale(1);\n    }\n    100% {\n      opacity: 0;\n      transform: scale(2);\n    }\n  "],ar||(ar=ir.slice(0)),rr=Object.freeze(Object.defineProperties(ir,{raw:{value:Object.freeze(ar)}}))))},cr={name:"1x2nqsn-item",styles:"svg{transform:rotate(45deg);};label:item;"},ur={wrapper:(0,i.iv)("display:flex;flex-direction:column;justify-content:space-between;height:100%;border-right:1px solid ",n.qo.stroke.neutral,";;label:wrapper;"),itemsWrapper:{name:"1wtd5hv-itemsWrapper",styles:"display:flex;flex-direction:column;label:itemsWrapper;"},item:function(e){var t=e.isActive,r=void 0!==t&&t,a=e.isLastChild,l=void 0!==a&&a,c=e.isRotate,u=void 0!==c&&c;return(0,i.iv)(q.iZ.resetButton,";",q.iZ.flexCenter(),";flex-direction:column;gap:",n.W0[8],";text-align:center;min-height:101px;padding:",n.W0[16]," ",n.W0[12],";border-bottom:1px solid ",n.qo.stroke.neutral,";",!r&&(0,i.iv)("&:hover{background-color:",n.qo.background.neutral,";};label:item;")," svg{transition:transform 0.3s ease;}",r&&(0,i.iv)("&>svg,&>span{color:",n.qo.base.primary,"!important;}",u&&cr,";;label:item;"),";",l&&(0,i.iv)("border-top:1px solid ",n.qo.stroke.neutral,";;label:item;")," &>span{",o.c.caption("medium"),";};label:item;")},iconStyle:(0,i.iv)("color:",n.qo.icon.default,";;label:iconStyle;"),ripple:(0,i.iv)("position:absolute;width:40px;height:40px;top:50%;left:50%;transform:translate(-50%, -50%);z-index:-1;:before{content:'';position:absolute;inset:0;background-color:",n.qo.base.primary,";border-radius:100%;z-index:-1;opacity:0;}:after{content:'';position:absolute;inset:0;background-color:",n.qo.base.primary,";transform:scale(2);border-radius:100%;animation-delay:1s;z-index:-1;opacity:0;};label:ripple;"),cleanerButton:function(e){var t=e.isActive;return(0,i.iv)(q.iZ.resetButton,";min-height:101px;display:flex;align-items:center;justify-content:center;position:relative;path{color:",n.qo.action.primary.default,";transition:color 0.3s ease;}",t&&(0,i.iv)("span{:before,:after{animation:",lr.ripple," 1s ease-out;}};label:cleanerButton;")," :hover{",t&&(0,i.iv)("path{color:",n.qo.action.primary.hover,";};label:cleanerButton;"),";}",!t&&(0,i.iv)("path{color:",n.qo.icon.disabled,";};label:cleanerButton;"),";;label:cleanerButton;")}};const sr=r.p+"images/25111c477863d51f6425.svg",dr=r.p+"images/8371734f429ed1f93a89.png";var pr=r(270),fr=r(782),vr=(0,pr.Ue)()((0,fr.mW)((function(e){return{isActive:!0,toggleIsActive:function(){return e((function(e){return{isActive:!e.isActive}}))},setIsActive:function(t){return e((function(){return{isActive:t}}))}}}))),hr=r(4924),br=r(2599),yr=function(){var e=(0,T.TH)(),t=(0,br.fp)(lm,e);if(!(0,A.$K)(t))return e.pathname;var r=t.find((function(t){return t.pathname===e.pathname}));return(null==r?void 0:r.route.path)||""};function mr(e){return mr="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},mr(e)}function gr(){gr=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==mr(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Er(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function _r(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Er(i,n,o,a,l,"next",e)}function l(e){Er(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const wr=function(e){var t,r,n,o=e.content,i=yr(),a=(0,H.$)(),l=(0,D.Z)(C.F.PageEditor).type,u=(r=(0,c.useState)(!(null===(t=o.subRoutes)||void 0===t||!t.find((function(e){return e.route.includes(l)})))),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return Or(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Or(e,t):void 0}}(r,n)||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.")}()),d=u[0],p=u[1],f=(0,Z.T)().closeSettingPanel,v=vr((function(e){return e.setIsActive})),h=(0,P.mp)(),b=(0,T.s0)(),y=(0,le.v)((function(e){return e.appConfig})),m="popups"!==o.id||A.Eu?(0,s.tZ)(s.HY,{}):(0,s.tZ)("span",{css:Sr.popupBeta,children:"Beta"});return(0,A.$K)(o.subRoutes)?(0,s.BX)(s.HY,{children:[(0,s.BX)("button",{type:"button",css:Sr.itemContainer,onClick:function(){p((function(e){return!e}))},children:[(0,s.BX)("div",{css:Sr.item(o.pathNames.includes(i),!0),children:[(0,s.tZ)(w.Z,{name:o.icon,width:16,height:16}),(0,s.tZ)("span",{children:a(o.title)}),o.showProBadge&&(0,s.tZ)(hr.Z,{size:"small",isInline:!0})]}),(0,s.tZ)(w.Z,{style:Sr.chevron(d),name:"chevronRight",width:16,height:16})]}),(0,s.tZ)("div",{css:Sr.subItemContainer,children:d&&o.subRoutes.map((function(e){return(0,s.BX)("button",{type:"button",css:Sr.item(e.route.includes(l)),onClick:_r(gr().mark((function t(){var r,n,o;return gr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v(!1),f(),!["storefront","single","collection"].includes(e.id)){t.next=28;break}if(y.is_easystore_installed){t.next=6;break}return b(C.F.PageEditor.buildLink({id:"storefront","type?":""})),t.abrupt("return");case 6:if("storefront"!==e.id||y.list_product_page_id){t.next=13;break}return t.next=9,h.mutateAsync({type:"storefront",title:""});case 9:if(!(r=t.sent).id){t.next=13;break}return b(C.F.PageEditor.buildLink({id:r.id.toString(),"type?":"storefront"})),t.abrupt("return");case 13:if("single"!==e.id||y.single_product_page_id){t.next=20;break}return t.next=16,h.mutateAsync({type:"single",title:""});case 16:if(!(n=t.sent).id){t.next=20;break}return b(C.F.PageEditor.buildLink({id:n.id.toString(),"type?":"single"})),t.abrupt("return");case 20:if("collection"!==e.id||y.collection_page_id){t.next=27;break}return t.next=23,h.mutateAsync({type:"collection",title:""});case 23:if(!(o=t.sent).id){t.next=27;break}return b(C.F.PageEditor.buildLink({id:o.id.toString(),"type?":"collection"})),t.abrupt("return");case 27:b(e.route);case 28:case"end":return t.stop()}}),t)}))),children:[(0,s.tZ)(w.Z,{name:e.icon,width:16,height:16}),(0,s.tZ)("span",{children:a(e.title)})]},e.id)}))})]}):(0,s.BX)(z.rU,{css:Sr.item(o.pathNames.includes(i)),to:o.route,children:[(0,s.tZ)(w.Z,{name:o.icon,width:16,height:16}),(0,s.tZ)("span",{children:a(o.title)}),m,o.showProBadge&&(0,s.tZ)(hr.Z,{size:"small",isInline:!0})]})};var Sr={wrapper:(0,i.iv)("background-color:",n.qo.background.neutral,";border-right:1px solid ",n.qo.stroke.neutral,";width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;box-shadow:",n.AF.popover,";;label:wrapper;"),contents:(0,i.iv)("display:flex;flex-direction:column;padding-block:",n.W0[16],";gap:",n.W0[4],";;label:contents;"),subItemContainer:(0,i.iv)(":hover{color:",n.qo.text.primary,";}&>button{padding-left:",n.W0[32],";};label:subItemContainer;"),itemContainer:(0,i.iv)(q.iZ.resetButton," display:flex;align-items:center;justify-content:space-between;padding:",n.W0[8]," ",n.W0[20],";:hover{background-color:",n.qo.base.white,";span:first-of-type{color:",n.qo.text.primary,";}svg{color:",n.qo.text.primary,";}};label:itemContainer;"),item:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,i.iv)(q.iZ.resetButton,";display:flex;align-items:center;gap:",n.W0[12],";width:100%;position:relative;",!t&&(0,i.iv)("padding:",n.W0[8]," ",n.W0[20],";;label:item;")," transition:background-color 0.3s ease;span:first-of-type{",o.c.body(),";color:",n.qo.text.neutral,";}svg{color:",n.qo.icon.default,";}:hover{background-color:",n.qo.base.white,";span:first-of-type{color:",n.qo.text.primary,";}svg{color:",n.qo.text.primary,";}}",e&&(0,i.iv)("background-color:",n.qo.base.white,";span:first-of-type{color:",n.qo.text.primary,";}svg{color:",n.qo.text.primary,";};label:item;"),";;label:item;")},chevron:function(e){return(0,i.iv)("color:",n.qo.icon.default,";transition:transform 0.3s ease;transform:rotate(",e?90:0,"deg);;label:chevron;")},proBanner:(0,i.iv)("padding:",n.W0[20],";>a{width:100%;>img{width:100%;}};label:proBanner;"),popupBeta:{name:"13wdokv-popupBeta",styles:"width:25px;height:12px;border-radius:47px;background-color:#a660ff;padding:0px 2px;gap:2px;line-height:12px;font-size:8px;color:#ffffff;text-align:center;position:absolute;left:44%;top:12%;label:popupBeta;"}};function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const xr=function(){var e,t,r=(0,H.$)(),n=(e=(0,c.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ir(e,t):void 0}}(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.")}()),o=n[0],i=n[1],a=vr((function(e){return e.isActive})),l=(0,le.v)((function(e){return e.appConfig})),u=[{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_PAGES",icon:"filesDuo",route:C.F.Home.buildLink(),id:"pages",pathNames:[C.F.Home.template,C.F.PageList.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_POPUPS",icon:"popsDuo",route:C.F.PopupList.buildLink(),id:"popups",showProBadge:A.Eu,pathNames:[C.F.PopupList.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_EASYSTORE",icon:"easystore",route:"",id:"ecommerce",subRoutes:[{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_SUBMENU_STORE_FRONT",icon:"storefront",route:C.F.PageEditor.buildLink({id:l.list_product_page_id.toString(),type:"storefront"}),id:"storefront"},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_SUBMENU_SINGLE",icon:"single",route:C.F.PageEditor.buildLink({id:l.single_product_page_id.toString(),type:"single"}),id:"single"},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_SUBMENU_COLLECTION",icon:"collection",route:C.F.PageEditor.buildLink({id:l.collection_page_id.toString(),type:"collection"}),id:"collection"}],pathNames:[]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_ADDONS",icon:"addonDuo",route:C.F.Addons.buildLink(),id:"addons",pathNames:[C.F.Addons.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_CUSTOM_ICONS",icon:"iconsDuo",route:C.F.CustomIcons.buildLink(),id:"custom-icons",showProBadge:A.Eu,pathNames:[C.F.CustomIcons.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_FONT_BOOK",icon:"fontBook",route:C.F.GoogleFonts.buildLink(),id:"font-book",pathNames:[C.F.GoogleFonts.template,C.F.InstalledFonts.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_MEDIA_MANAGER",icon:"media",route:C.F.MediaManager.buildLink(),id:"media-manager",pathNames:[C.F.MediaManager.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_INTEGRATIONS",icon:"integrationsDuo",route:C.F.Integrations.buildLink(),id:"integrations",pathNames:[C.F.Integrations.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_LANGUAGES",icon:"languagesDuo",route:C.F.Languages.buildLink(),id:"languages",pathNames:[C.F.Languages.template]},{title:"COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_MENU_SETTINGS",icon:"cog",route:C.F.Settings.buildLink(),id:"settings",pathNames:[C.F.Settings.template,C.F.License.template,C.F.ColorsLibrary.template]}];return(0,c.useEffect)((function(){var e;return a?e=setTimeout((function(){i(!0)}),400):i(!1),function(){return clearTimeout(e)}}),[a]),(0,s.tZ)("div",{css:Cr.sidebar(a),children:(0,s.BX)("div",{css:Cr.wrapper,children:[(0,s.BX)("div",{children:[(0,s.tZ)("div",{css:Cr.contents,children:u.map((function(e){return(0,s.tZ)(wr,{content:e},e.id)}))}),A.Eu&&!l.is_pre_release&&(0,s.tZ)("div",{css:Cr.proBanner,children:(0,s.tZ)("a",{href:x._y,target:"_blank",rel:"noreferrer",children:(0,s.tZ)("img",{src:dr,alt:"upgrade to pro"})})}),l.is_pre_release&&o&&(0,s.tZ)("div",{css:Cr.feedback,"data-feedback":!0,children:(0,s.BX)("div",{css:Cr.feedbackInner,children:[(0,s.tZ)("img",{src:sr,alt:r("COM_SPPAGEBUILDER_EDITOR_FEEDBACK_ALT_TEXT")}),(0,s.tZ)("h5",{children:r("COM_SPPAGEBUILDER_EDITOR_FEEDBACK_TITLE")}),(0,s.tZ)("p",{children:r("COM_SPPAGEBUILDER_EDITOR_FEEDBACK_SUBTITLE")}),(0,s.BX)("a",{href:"https://docs.google.com/forms/d/e/1FAIpQLSc44TV-Y6-203rkL13cdzs3Js9EBm1kZmNUHpDf2zp0YgS27w/viewform",target:"_blank",rel:"noopener noreferrer",css:Cr.submitFeedbackButton,children:[(0,s.tZ)(w.Z,{name:"comment"}),(0,s.tZ)("span",{children:r("COM_SPPAGEBUILDER_EDITOR_FEEDBACK_SUBMIT_BUTTON")})]})]})})]}),(0,s.tZ)("span",{css:Cr.version,children:r("COM_SPPAGEBUILDER_EDITOR_DASHBOARD_SIDEBAR_VERSION",{version:l.version})})]})})};var Cr={wrapper:(0,i.iv)("background-color:",n.qo.background.neutral,";border-right:1px solid ",n.qo.stroke.neutral,";width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;box-shadow:",n.AF.popover,";;label:wrapper;"),feedback:(0,i.iv)("padding:",n.W0[20],";opacity:1;transition:opacity 0.4s ease;;label:feedback;"),feedbackInner:(0,i.iv)("background-color:",n.qo.background.white,";border-radius:",n.E0[8],";padding:",n.W0[16]," ",n.W0[12],";text-align:center;display:flex;flex-direction:column;gap:",n.W0[8],";h5{",o.c.body("medium"),";}p{",o.c.caption(),";color:",n.qo.text.neutral,";};label:feedbackInner;"),submitFeedbackButton:(0,i.iv)(q.iZ.resetButton,";padding:",n.W0[6]," ",n.W0[12],";display:flex;align-items:center;gap:",n.W0[4],";background-color:",n.qo.icon.success,";color:",n.qo.text.white,";border-radius:",n.E0[8],";margin-top:",n.W0[4],";:hover{color:",n.qo.text.white,";}span:last-of-type{",o.c.body("medium"),";color:",n.qo.text.white,";white-space:nowrap;overflow:hidden;};label:submitFeedbackButton;"),sidebar:function(e){return(0,i.iv)("position:fixed;top:",x.g3,"px;left:0;width:",e?x.ZR:0,"px;height:calc(100vh - ",x.g3,"px);transition:margin-left 0.4s ease-out,width 0.4s ease-out;z-index:",n.W5.sidebar,";",!e&&(0,i.iv)("margin-left:-",x.ZR,"px;[data-feedback]{opacity:0;};label:sidebar;"),";;label:sidebar;")},contents:(0,i.iv)("display:flex;flex-direction:column;padding-block:",n.W0[16],";gap:",n.W0[4],";;label:contents;"),itemContainer:(0,i.iv)("display:flex;align-items:center;justify-content:space-between;padding:",n.W0[8]," ",n.W0[20],";;label:itemContainer;"),item:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,i.iv)("display:flex;align-items:center;gap:",n.W0[12],";",!t&&(0,i.iv)("padding:",n.W0[8]," ",n.W0[20],";;label:item;")," transition:background-color 0.3s ease;span:first-of-type{",o.c.body(),";color:",n.qo.text.neutral,";}svg{color:",n.qo.icon.default,";}:hover{background-color:",n.qo.base.white,";span:first-of-type{color:",n.qo.text.primary,";}svg{color:",n.qo.text.primary,";}}",e&&(0,i.iv)("background-color:",n.qo.base.white,";span:first-of-type{color:",n.qo.text.primary,";}svg{color:",n.qo.text.primary,";};label:item;"),";;label:item;")},version:(0,i.iv)(o.c.caption(),";padding:",n.W0[16]," ",n.W0[20],";color:",n.qo.text.hints,";;label:version;"),proBanner:(0,i.iv)("padding:",n.W0[20],";>a{width:100%;>img{width:100%;}};label:proBanner;")},Pr=r(9752),Ar=r(5587);function Lr(e){return Lr="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},Lr(e)}function Tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(r),!0).forEach((function(t){Zr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Lr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Lr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Rr=function(e){var t,r,n=e.children,o=e.sections,i=(0,Pr.Dy)((0,Pr.VT)(Pr.we,{activationConstraint:{distance:15}}),(0,Pr.VT)(Pr.MA,{activationConstraint:{distance:15}}),(0,Pr.VT)(Pr.Lg,{coordinateGetter:Ar.is})),a=(t=(0,c.useState)(null),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return jr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jr(e,t):void 0}}(t,r)||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.")}()),l=a[0],u=a[1],d=(0,c.useRef)(null),p=(0,c.useRef)(!1),f=(0,c.useCallback)((function(e){var t,r,n,i;if(l&&(null===(t=e.active.data.current)||void 0===t?void 0:t.type)===x.t.Section){var a=e.droppableContainers.filter((function(e){return!!o.find((function(t){return t.id===e.id}))}));return(0,Pr.pE)(Dr(Dr({},e),{},{droppableContainers:a}))}if(l&&(null===(r=e.active.data.current)||void 0===r?void 0:r.type)===x.t.Column){var c=e.active.data.current.sectionIndex;if((0,A.$K)(c)){var u=e.droppableContainers.filter((function(e){return!!o[c].columns.find((function(t){return t.id===e.id}))}));return(0,Pr.pE)(Dr(Dr({},e),{},{droppableContainers:u}))}}var s=(0,Pr.j2)(e),f=s.length>0?s:(0,Pr.Xo)(e),v=(0,Pr._8)(f),h=null!==(n=null==v?void 0:v.id)&&void 0!==n?n:null;if((0,A.r3)((0,A.zt)(x.Dw),null===(i=e.active.data.current)||void 0===i?void 0:i.type)){if(null!==v&&null!==h){var b,y,m,g,E=null===(b=e.active.data.current)||void 0===b?void 0:b.type,_=((null===(y=v.data)||void 0===y||null===(m=y.droppableContainer)||void 0===m||null===(g=m.data)||void 0===g?void 0:g.current)||{}).type;if((E===x.Dw.SavedAddonElement||E===x.Dw.SavedSectionElement)&&E===_)return(0,Pr.pE)(e);if(_===x.t.TableItem)return(0,Pr.ey)(e)}return(0,Pr.j2)(e)}if(null!==v&&null!==h){var O,w,S,I=(null===(O=v.data)||void 0===O||null===(w=O.droppableContainer)||void 0===w||null===(S=w.data)||void 0===S?void 0:S.current)||{},C=I.content;if(I.type===x.t.Column){var P=C.addons;if(P.length>0){var L=(0,Pr.pE)(Dr(Dr({},e),{},{droppableContainers:e.droppableContainers.filter((function(e){return e.id!==h&&!!P.find((function(t){return t.id===e.id&&!t.parent}))}))}))[0];(0,A.$K)(L)&&(h=L.id)}}return d.current=h,[{id:h}]}return p.current&&(d.current=l),d.current?[{id:d.current}]:[]}),[l,o]);return(0,s.tZ)(Pr.LB,{sensors:i,collisionDetection:f,measuring:{droppable:{strategy:Pr.uN.Always}},onDragStart:function(e){var t=e.active;return u(t.id)},children:n})};var Br=r(7273),Mr=function(e){var t=e.option;return(0,s.BX)(s.HY,{children:[!!t.label&&(0,s.tZ)("span",{children:t.label}),!!t.icon&&(0,s.tZ)("span",{children:(0,s.tZ)(w.Z,{name:t.icon,width:16,height:16})})]})};const kr=function(e){var t=e.variant,r=void 0===t?"primary":t,n=e.activeTab,o=e.onChange,i=e.tabList,a=e.disabled,l=void 0!==a&&a,c=e.wrapperCss;return(0,s.tZ)("div",{css:[Gr.wrapper(r),c,";label:Tabs;"],role:"tablist",children:i.map((function(e,t){var i=(0,Br.H2)(e.value),a=Array.isArray(n)?(0,A.r3)(n,i):n===i;return(0,s.tZ)("button",{onClick:function(){return o(e.value)},css:Gr.tabButton({variant:r,isActive:a}),tabIndex:a?0:-1,disabled:l||e.disabled,type:"button",role:"tab","aria-selected":a?"true":"false",children:e.tooltip?(0,s.tZ)(I.Z,{content:e.tooltip,placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)(Mr,{option:e})}):(0,s.tZ)(Mr,{option:e})},t)}))})};var Gr={wrapper:function(e){return(0,i.iv)("width:100%;display:flex;align-items:center;","primary"===e&&(0,i.iv)("border-bottom:1px solid ",n.qo.stroke.neutral,";;label:wrapper;")," ","secondary"===e&&(0,i.iv)("border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[4],";;label:wrapper;")," overflow:auto hidden;",q.iZ.hideScrollbar,";;label:wrapper;")},tabButton:function(e){var t=e.variant,r=e.isActive;return(0,i.iv)(q.iZ.resetButton,";text-align:center;",o.c.caption("medium"),";color:",n.qo.text.neutral,";position:relative;transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;flex:1;position:relative;display:flex;gap:",n.W0[4],";justify-content:center;align-items:center;height:100%;","primary"===t&&(0,i.iv)("padding:",n.W0[12]," ",n.W0[4],";&::before{content:'';height:2px;width:100%;background-color:",n.qo.stroke.primary,";position:absolute;left:0;bottom:0;opacity:0;transition:opacity 0.3s ease-in-out;}&:hover::before{opacity:1;}",r&&(0,i.iv)("background-color:",n.qo.background.white,";color:",n.qo.text.primary,";&::before{opacity:1;};label:tabButton;"),";;label:tabButton;")," ","secondary"===t&&(0,i.iv)("font-weight:",n.Ue.regular,";border-right:1px solid ",n.qo.stroke.neutral,";padding:",n.W0[4]," ",n.W0[4],";&:last-of-type{border-right:none;}&:hover{background-color:",n.qo.background.hover,";}",r&&(0,i.iv)("background-color:",n.qo.background.primary,";color:",n.qo.text.primary,";font-weight:",n.Ue.medium,";;label:tabButton;"),";;label:tabButton;")," &:disabled{color:",n.qo.text.disabled,";border-color:",n.qo.stroke.disabled,";&::before{display:none;}};label:tabButton;")}},Nr=r(4285);function Wr(e){return Wr="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},Wr(e)}function Ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(r),!0).forEach((function(t){Fr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ur(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Wr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Wr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vr=function(e){var t=e.id,r=e.data,n=e.children,o=e.disabled,i=void 0!==o&&o,a=e.hasClone,l=void 0!==a&&a,c=e.customStyle,u=(0,Pr.O1)({id:t,data:r,disabled:i}),d=u.attributes,p=u.listeners,f=u.setNodeRef,v=u.transform,h=v?Hr({},!l&&{transform:Nr.ux.Translate.toString(v)}):void 0;return(0,s.tZ)("div",Hr(Hr(Hr({css:[c,zr.draggable({isDisabled:i}),";label:Draggable;"],ref:f},p),d),{},{style:h,children:n}))};var qr={name:"1b2a9j8-draggable",styles:"cursor:default;label:draggable;"},zr={draggable:function(e){var t=e.isDisabled,r=void 0!==t&&t;return(0,i.iv)("cursor:grab;",r&&qr,";;label:draggable;")}},Kr=r(4693),$r=r(6651),Xr=r(7230);const Yr=r.p+"images/40037ff8fe697e1ffd3e.svg",Qr=function(e){var t=e.title,r=e.subtitle,n=e.actionButton,o=(0,H.$)();return(0,s.tZ)("div",{css:Jr.wrapper,children:(0,s.BX)("div",{css:Jr.imageAndText,children:[(0,s.tZ)("img",{src:Yr,alt:o("COM_SPPAGEBUILDER_EDITOR_SOMETHING_WENT_WRONG_ALT"),css:Jr.illustration}),(0,s.BX)("div",{css:Jr.content,children:[(0,s.tZ)("h2",{children:t}),!!r&&(0,s.tZ)("p",{children:r}),!!n&&(0,s.tZ)("div",{children:n})]})]})})};var Jr={wrapper:(0,i.iv)("width:100%;height:100vh;display:flex;align-items:end;justify-content:center;background-color:",n.qo.background.white,";;label:wrapper;"),imageAndText:{name:"9qqzbm-imageAndText",styles:"height:635px;max-width:1153px;width:100%;position:relative;label:imageAndText;"},illustration:{name:"4z4wjj-illustration",styles:"width:100%;height:100%;label:illustration;"},content:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[20],";position:absolute;top:200px;right:127px;max-width:380px;width:100%;h2{",o.c.heading2("medium"),";}p{",o.c.body(),";}div{margin-top:",n.W0[20],";};label:content;")},en=r(2967),tn=r(3169),rn=r(3935);function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var on=x.iq+x.P8;const an=function(e){var t,r,n,o,i=e.data,a=e.isAuthorized,l=e.isDragging,u=(0,c.useRef)(null),d=(0,c.useRef)(),p=(n=(0,c.useState)(!1),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,o)||function(e,t){if(e){if("string"==typeof e)return nn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nn(e,t):void 0}}(n,o)||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.")}()),f=p[0],v=p[1];(0,c.useEffect)((function(){l&&clearTimeout(d.current)}),[l]);var h=null!==(t=null===(r=u.current)||void 0===r?void 0:r.getBoundingClientRect().top)&&void 0!==t?t:0,b=h+384+10;return window.innerHeight-b<0&&(h-=b-window.innerHeight),(0,s.BX)("div",{ref:u,css:ln.sectionThumb,onMouseEnter:function(){a&&(d.current=setTimeout((function(){v(!0)}),300))},onMouseLeave:function(){a&&(v(!1),d.current&&clearTimeout(d.current))},children:[(0,s.tZ)(tn.Z,{enabled:!a,buttonSize:"small",children:(0,s.tZ)("div",{css:ln.thumbImage,children:(0,s.tZ)("img",{src:i.thumb,alt:i.title,draggable:!1})})}),(0,s.tZ)("div",{css:ln.thumbFooter,children:i.title}),!a&&(0,s.tZ)(hr.Z,{}),f&&(0,rn.createPortal)((0,s.BX)("div",{css:ln.thumbPreview({left:on,top:h}),children:[(0,s.tZ)("div",{css:ln.thumbPreviewTitle,children:i.title}),(0,s.tZ)("div",{css:ln.thumbPreviewImage,children:(0,s.tZ)("img",{src:i.thumb,alt:i.title})})]}),document.body)]})};var ln={sectionThumb:(0,i.iv)("background-color:",n.qo.background.white,";border-radius:",n.E0[4],";box-shadow:",n.AF.addon,";overflow:hidden;position:relative;&:hover{box-shadow:",n.AF.addonHover,";};label:sectionThumb;"),thumbImage:(0,i.iv)("height:80px;width:100%;background-color:",n.qo.background.neutral,";img{width:100%;height:100%;object-fit:contain;};label:thumbImage;"),thumbFooter:(0,i.iv)(o.c.tiny(),";padding:",n.W0[2]," ",n.W0[8],";;label:thumbFooter;"),thumbPreview:function(e){var t=e.left,r=e.top;return(0,i.iv)("position:fixed;left:",t,"px;top:",r,"px;width:468px;height:",384,"px;background-color:",n.qo.background.white,";border-radius:",n.E0[4],";box-shadow:",n.AF.popover,";z-index:",n.W5.highest,";padding:0 ",n.W0[12]," ",n.W0[12],";;label:thumbPreview;")},thumbPreviewTitle:(0,i.iv)(o.c.tiny(),";padding:",n.W0[8]," ",n.W0[12],";;label:thumbPreviewTitle;"),thumbPreviewImage:(0,i.iv)("width:100%;height:calc(100% - 34px);background-color:",n.qo.background.neutral,";border-radius:",n.E0[4]," ",n.E0[4]," 0 0;overflow:hidden;img{width:100%;height:100%;object-fit:contain;};label:thumbPreviewImage;")};function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const un=function(e){var t=e.index,r=e.data,n=e.isActive,o=e.setActiveItem,i=e.isAuthorized,a=void 0===i||i;return(0,s.BX)("div",{children:[(0,s.BX)("button",{type:"button",css:pn.sectionTitleButton(n),onClick:function(){o(n?null:t)},children:[(0,s.tZ)(w.Z,{name:"caretRight"}),(0,s.tZ)("span",{children:r.title})]}),n&&(0,s.tZ)(sn,{data:r.blocks,isAuthorized:a})]})};var sn=function(e){var t,r,n=e.data,o=e.isAuthorized,i=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return cn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cn(e,t):void 0}}(t,r)||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.")}()),a=i[0],l=i[1];return(0,Pr.IJ)({onDragStart:function(){l(!0)},onDragEnd:function(){l(!1)},onDragCancel:function(){l(!1)}}),(0,s.tZ)("div",{css:pn.sectionWrapper,children:n.map((function(e){return(0,s.tZ)(Vr,{id:e.id,data:{content:e,type:x.Dw.BlockElement},hasClone:!0,disabled:!o,children:(0,s.tZ)(an,{data:e,isAuthorized:o,isDragging:a})},e.id)}))})},dn={name:"7n927h-sectionTitleButton",styles:"transform:rotate(90deg);label:sectionTitleButton;"},pn={sectionTitleButton:function(e){return(0,i.iv)(q.iZ.resetButton,";",o.c.caption("medium"),";color:",n.qo.text.default,";display:flex;align-items:center;gap:",n.W0[4],";svg{color:",n.qo.icon.default,";transition:transform 0.3s ease-out;",e&&dn,";};label:sectionTitleButton;")},sectionWrapper:(0,i.iv)("display:grid;grid-template-columns:1fr 1fr;row-gap:",n.W0[12],";column-gap:",n.W0[8],";padding-top:",n.W0[12],";;label:sectionWrapper;")};function fn(e){return fn="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},fn(e)}function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(r),!0).forEach((function(t){bn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==fn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const mn=function(){var e,t,r=(0,H.$)(),n=(e=(0,c.useState)(0),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yn(e,t):void 0}}(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.")}()),o=n[0],i=n[1],a=(0,en.t)(),l=(0,re.O)({defaultValues:{search:""}}),u=(0,te.N)(l.watch("search")),d=(0,c.useMemo)((function(){if(u&&a.data){var e=a.data.blocks,t=Object.values(e).flatMap((function(e){return e.blocks})),r=new RegExp(u,"i");return t.filter((function(e){return r.test(e.title)}))}return[]}),[u,a.data]);if(a.isLoading)return(0,s.tZ)(O.g4,{});if(!a.data)return(0,s.tZ)(Qr,{title:"Something went wrong!"});var p=a.data,f=p.blocks,v=p.authorised,h=function(e){return f[e]},b=0===(0,A.Zt)(f).length||u.length>0&&0===d.length;return(0,s.BX)("div",{children:[(0,s.tZ)("div",{css:gn.searchWrapper,children:(0,s.tZ)(L.Qr,{control:l.control,name:"search",render:function(e){return(0,s.tZ)(J.Z,hn(hn({},e),{},{variant:"search",placeholder:r("COM_SPPAGEBUILDER_EDITOR_ELEMENT_SEARCH"),isClearable:!0,hasAutoFocus:!0}))}})}),(0,s.tZ)("div",{css:gn.sectionList,children:u?(0,s.tZ)(sn,{data:d,isAuthorized:v}):(0,A.Zt)(f).map((function(e,t){return(0,s.tZ)(un,{index:t,data:h(e),isActive:t===o,setActiveItem:i,isAuthorized:v},t)}))}),b&&(0,s.BX)("div",{css:gn.noSections,children:[(0,s.tZ)(w.Z,{name:"blocksDuo",width:56,height:56}),(0,s.tZ)("span",{children:r("COM_SPPAGEBUILDER_EDITOR_EMPTY_PREDEFINED_SECTIONS")})]})]})};var gn={searchWrapper:(0,i.iv)("position:sticky;top:0;background-color:",n.qo.base.surface,";padding:",n.W0[16]," ",n.W0[10],";border-bottom:1px solid ",n.qo.stroke.neutral,";transition:border 0.3s ease;z-index:",n.W5.positive,";;label:searchWrapper;"),sectionList:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";padding:",n.W0[16]," ",n.W0[10],";;label:sectionList;"),noSections:(0,i.iv)(q.iZ.centeredFlex,";flex-direction:column;gap:",n.W0[8],";span{",o.c.heading6("medium"),";color:",n.qo.text.neutral,";};label:noSections;")};function En(e){return En="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},En(e)}function _n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(r),!0).forEach((function(t){wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==En(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==En(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===En(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var In=function(e){return"row"===e.name?x.Dw.RowElement:"columns"===e.name?x.Dw.ColumnsElement:"div"===e.name?x.Dw.DivElement:e.name.startsWith("easystore_single_")?x.Dw.SingleAddonElement:e.name.startsWith("easystore_list_")?x.Dw.ProductListAddonElement:e.name.startsWith("easystore_common_")?x.Dw.CommonAddonElement:x.Dw.AddonElement};const xn=function(e){var t,r,n=e.defaultTab,o=void 0===n?"addons":n,i=(0,H.$)(),a=(0,Xr.x)((function(e){return e.addonGroups})),l=(t=(0,c.useState)(o),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Sn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sn(e,t):void 0}}(t,r)||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.")}()),u=l[0],d=l[1],p=(0,F.j)((function(e){return e.activeAction})),f=(0,$r.y)((function(e){return e.activeColumn}));(0,c.useEffect)((function(){d(o)}),[o]),(0,c.useEffect)((function(){(0,A.$K)(f)&&d("addons")}),[f]);var v=(0,re.O)({defaultValues:{search:""}}),h=(0,te.N)(v.watch("search")),b=(0,c.useMemo)((function(){var e=h.toLowerCase().trim();return(0,A.Zt)(a).reduce((function(t,r){var n="Favourite"!==r?a[r].filter((function(e){return e.status})).filter((function(t){return t.title.toLowerCase().includes(e)})):a[r];return n.length>0&&(t[r]=n),t}),{})}),[h,a]),y=(0,A.Zt)(b).every((function(e){return 0===b[e].length})),m=[{label:i("COM_SPPAGEBUILDER_EDITOR_ELEMENT_PANEL_TAB_ADDONS"),value:"addons"},{label:i("COM_SPPAGEBUILDER_EDITOR_ELEMENT_PANEL_TAB_SECTIONS"),value:"sections"}];return(0,s.BX)("div",{css:Cn.wrapper,children:[(0,s.tZ)(kr,{tabList:m,activeTab:u,onChange:d}),"addons"===u?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Cn.searchWrapper,children:(0,s.tZ)(L.Qr,{control:v.control,name:"search",render:function(e){return(0,s.tZ)(J.Z,On(On({},e),{},{variant:"search",placeholder:i("COM_SPPAGEBUILDER_EDITOR_ELEMENT_SEARCH"),isClearable:!0,hasAutoFocus:(0,A.$K)(p)&&"add-elements"===p}))}})}),(0,s.tZ)("div",{css:Cn.content,children:y?(0,s.BX)("div",{css:Cn.noResult,children:[(0,s.tZ)("img",{src:Kr,alt:i("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_MATCH_FOUND")}),(0,s.tZ)("p",{children:i("COM_SPPAGEBUILDER_EDITOR_ADDONS_NO_MATCH_FOUND")})]}):(0,A.Zt)(b).map((function(e){var t=b[e],r="Favourite"===e?"Favourites":e;return(0,s.BX)("div",{children:[(0,s.tZ)("h4",{css:Cn.groupHeading,children:r}),(0,s.tZ)("div",{css:Cn.addonsWrapper,children:t.map((function(t){var r=A.Eu&&t.pro;return(0,s.tZ)(Vr,{id:"".concat(e,"-").concat(t.name),data:{content:t,type:In(t)},hasClone:!0,disabled:r,children:(0,s.BX)("div",{css:Cn.addonItem({shouldShowProLabel:r}),children:[(0,s.tZ)("span",{dangerouslySetInnerHTML:{__html:t.icon}}),(0,s.tZ)("span",{children:t.title}),r&&(0,s.tZ)(hr.Z,{size:"tiny"})]})},t.name)}))})]},e)}))})]}):(0,s.tZ)(mn,{})]})};var Cn={wrapper:(0,i.iv)(q.iZ.overflowYAuto,";background-color:",n.qo.base.surface,";height:100%;border-right:1px solid ",n.qo.stroke.neutral,";;label:wrapper;"),noResult:(0,i.iv)("display:flex;flex-direction:column;align-items:center;margin-top:",n.W0[24],";img{width:80px;}p{",o.c.body(),";text-align:center;margin-top:",n.W0[16],";};label:noResult;"),searchWrapper:(0,i.iv)("position:sticky;top:0;background-color:inherit;padding:",n.W0[16]," ",n.W0[10],";border-bottom:1px solid ",n.qo.stroke.neutral,";transition:border 0.3s ease;z-index:",n.W5.positive,";;label:searchWrapper;"),content:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[24],";margin-bottom:",n.W0[16],";padding:",n.W0[8]," ",n.W0[10],";;label:content;"),groupHeading:(0,i.iv)(o.c.body(),";color:",n.qo.text.neutral,";margin-bottom:",n.W0[10],";;label:groupHeading;"),addonsWrapper:(0,i.iv)("display:grid;grid-template-columns:repeat(2, 142px);gap:",n.W0[10],";;label:addonsWrapper;"),addonItem:function(e){var t=e.shouldShowProLabel,r=void 0!==t&&t;return(0,i.iv)("display:flex;align-items:center;background-color:",n.qo.base.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.addon,";padding:",n.W0[4]," ",n.W0[8],";gap:",n.W0[8],";cursor:grab;height:32px;",r&&(0,i.iv)("position:relative;pointer-events:none;background-color:",n.qo.background.disabled,";;label:addonItem;")," &>span:first-of-type{svg,img{color:",n.qo.icon.default,";width:18px;height:18px;}}&>span:last-of-type{",o.c.caption(),";",q.iZ.textEllipsis,";color:",n.qo.text.neutral,";};label:addonItem;")}},Pn=r(7498),An=r(3425);const Ln=r.p+"images/5612aede402b273f759b.jpg";var Tn=r(1518);function Dn(e){return Dn="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},Dn(e)}function Zn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(r),!0).forEach((function(t){Rn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Dn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Dn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Bn=function(e){var t=e.addon,r=e.activeDragItemId,n=(0,H.$)(),o=(0,Tn.hX)(),i=(0,Xr.x)((function(e){return e.addonStructure})),a=(0,Ar.nB)({id:t.id,data:{content:t,type:x.Dw.SavedAddonElement}}),l=a.attributes,c=a.listeners,u=a.setNodeRef,d=a.transform,p=a.transition,f=a.isDragging,v={transform:Nr.ux.Transform.toString(d),transition:p,opacity:f?.5:1};return(0,s.tZ)("div",jn(jn(jn({ref:u,style:v},l),c),{},{children:(0,s.BX)("div",{css:Mn.addonItem(r===t.id),children:[(0,s.tZ)("span",{css:Mn.dragIcon,"data-drag-icon":!0,children:(0,s.tZ)(w.Z,{name:"dragger",height:24,width:24})}),(0,s.tZ)("span",{css:Mn.addonIcon,dangerouslySetInnerHTML:{__html:function(e){try{var t=JSON.parse(e.code).name;return i[t].icon}catch(e){return""}}(t)}}),(0,s.tZ)("span",{"data-addon-title":!0,css:Mn.addonTitle,children:t.title}),(0,s.tZ)("button",{onClick:function(){window.confirm(n("COM_SPPAGEBUILDER_EDITOR_SAVED_ADDON_DELETE_MESSAGE"))&&o.mutate(t.id)},children:(0,s.tZ)(w.Z,{name:"trash",height:12,width:12})})]})}))};var Mn={addonItem:function(e){return(0,i.iv)("display:flex;align-items:center;background-color:",n.qo.base.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.addon,";padding:",n.W0[6]," ",n.W0[6]," ",n.W0[6]," ",n.W0[12],";gap:",n.W0[8],";cursor:grab;position:relative;transition:padding 0.3s ease;svg{color:",n.qo.icon.default,";}button{",q.iZ.resetButton,";margin-left:auto;height:24px;width:24px;text-align:center;opacity:0;transition:opacity 0.3s ease;&:hover svg{color:",n.qo.icon.error,";}}&:hover{padding-left:",n.W0[24],";[data-addon-title]{color:",n.qo.text.hover,";}>span>svg{color:",n.qo.icon.primary,";}[data-drag-icon]{opacity:1;}button{opacity:1;}}",e&&(0,i.iv)("padding-left:",n.W0[24],";[data-addon-title]{color:",n.qo.text.hover,";}>span>svg{color:",n.qo.icon.primary,";}[data-drag-icon]{opacity:1;}button{opacity:1;};label:addonItem;"),";;label:addonItem;")},addonIcon:{name:"1awvidx-addonIcon",styles:"line-height:1;svg,img{height:16px;width:16px;};label:addonIcon;"},dragIcon:(0,i.iv)("position:absolute;left:",n.W0[2],";top:0;height:100%;display:flex;align-items:center;opacity:0;transition:opacity 0.3s ease;svg{color:",n.qo.icon.default,";};label:dragIcon;"),addonTitle:(0,i.iv)(o.c.body(),";",q.iZ.textEllipsis,";color:",n.qo.text.default,";transition:opacity 0.3s ease;;label:addonTitle;")};function kn(e){return kn="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},kn(e)}function Gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gn(Object(r),!0).forEach((function(t){Wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==kn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==kn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===kn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hn(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hn(e,t):void 0}}(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 Hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Fn=function(){var e=(0,H.$)(),t=(0,Tn.iG)(),r=(0,Tn.uC)(),n=Un((0,c.useState)([]),2),o=n[0],i=n[1],a=Un((0,c.useState)(null),2),l=a[0],u=a[1],d=(0,re.O)({defaultValues:{search:""}}),p=(0,te.N)(d.watch("search"));return(0,c.useEffect)((function(){var e=new RegExp(p,"i");t.data&&i(t.data.filter((function(t){return e.test(t.title)})))}),[p,t.data]),(0,Pr.IJ)({onDragStart:function(e){var t=e.active,r=t.data.current;r&&r.type===x.Dw.SavedAddonElement&&u(Number(t.id))},onDragEnd:function(e){var t=e.active,n=e.over,a=t.data.current,l=null==n?void 0:n.data.current;u(null),a&&l&&t.id!==(null==n?void 0:n.id)&&a.type===x.Dw.SavedAddonElement&&l.type===x.Dw.SavedAddonElement&&i((function(e){var i=e.findIndex((function(e){return e.id===t.id})),a=e.findIndex((function(e){return e.id===(null==n?void 0:n.id)})),l=(0,Ar.Rp)(o,i,a),c=(0,A.x9)(l),u=Array.from({length:c.length},(function(e,t){return t+1}));return r.mutate({ids:c,orders:u}),l}))},onDragCancel:function(){u(null)}}),A.Eu?(0,s.tZ)("div",{css:Vn.proLabelCss,children:(0,s.tZ)(An.Z,{emptyStateImage:Ln,imageAltText:"upgrade to pro",title:e("COM_SPPAGEBUILDER_EDITOR_CUSTOM_ADDONS_LIBRARY"),content:e("COM_SPPAGEBUILDER_EDITOR_CUSTOM_ADDONS_LIBRARY_CONTENT"),action:(0,s.tZ)(Pn.Z,{}),orientation:"vertical",customCss:Vn.proBannerContentCss})}):t.isLoading?(0,s.tZ)(O.g4,{}):t.data?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Vn.searchWrapper,children:(0,s.tZ)(L.Qr,{control:d.control,name:"search",render:function(t){return(0,s.tZ)(J.Z,Nn(Nn({},t),{},{variant:"search",placeholder:e("COM_SPPAGEBUILDER_EDITOR_ELEMENT_SEARCH"),isClearable:!0}))}})}),(0,s.tZ)("div",{css:Vn.content,children:o.length>0?(0,s.tZ)(Ar.Fo,{id:"saved-addons",items:o,strategy:Ar.qw,children:o.map((function(e){return(0,s.tZ)(Bn,{addon:e,activeDragItemId:l},e.id)}))}):(0,s.BX)("div",{css:Vn.noResult,children:[(0,s.tZ)("img",{src:Kr,alt:e("COM_SPPAGEBUILDER_EDITOR_NOTHING_FOUND_TEXT")}),(0,s.tZ)("p",{children:e("COM_SPPAGEBUILDER_EDITOR_NOTHING_FOUND_TEXT")})]})})]}):(0,s.tZ)("div",{children:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG")})};var Vn={searchWrapper:(0,i.iv)("position:sticky;top:0;background-color:inherit;padding:",n.W0[16]," ",n.W0[10],";border-bottom:1px solid ",n.qo.stroke.neutral,";transition:border 0.3s ease;;label:searchWrapper;"),content:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[8],";padding:",n.W0[16]," ",n.W0[10],";;label:content;"),noResult:(0,i.iv)("display:flex;flex-direction:column;align-items:center;gap:",n.W0[12],";margin-top:",n.W0[56],";img{width:80px;}p{",o.c.body(),";text-align:center;};label:noResult;"),proLabelCss:(0,i.iv)("padding:",n.W0[12],";;label:proLabelCss;"),proBannerContentCss:(0,i.iv)("padding:",n.W0[12],";;label:proBannerContentCss;")};const qn=r.p+"images/c0160f779b907eae5fab.jpg";function zn(e){return zn="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},zn(e)}function Kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(r),!0).forEach((function(t){Xn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==zn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==zn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===zn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Yn=function(e){var t=e.section,r=e.activeDragItemId,n=(0,H.$)(),o=(0,Tn.rM)(),i=(0,Ar.nB)({id:t.id,data:{content:t,type:x.Dw.SavedSectionElement}}),a=i.attributes,l=i.listeners,c=i.setNodeRef,u=i.transform,d=i.transition,p=i.isDragging,f={transform:Nr.ux.Transform.toString(u),transition:d,opacity:p?.5:1};return(0,s.tZ)("div",$n($n($n({ref:c,style:f},a),l),{},{children:(0,s.BX)("div",{css:Qn.sectionItem(r===t.id),children:[(0,s.tZ)("span",{css:Qn.dragIcon,"data-drag-icon":!0,children:(0,s.tZ)(w.Z,{name:"dragger",height:24,width:24})}),(0,s.tZ)(w.Z,{name:"blocksDuo",height:16,width:16}),(0,s.tZ)("span",{"data-section-title":!0,css:Qn.sectionTitle,children:t.title}),(0,s.tZ)("button",{onClick:function(){window.confirm(n("COM_SPPAGEBUILDER_EDITOR_SAVED_SECTION_DELETE_MESSAGE"))&&o.mutate(t.id)},children:(0,s.tZ)(w.Z,{name:"trash",height:12,width:12})})]})}))};var Qn={sectionItem:function(e){return(0,i.iv)("display:flex;align-items:center;background-color:",n.qo.base.white,";border-radius:",n.E0[5],";box-shadow:",n.AF.addon,";padding:",n.W0[6]," ",n.W0[6]," ",n.W0[6]," ",n.W0[12],";gap:",n.W0[8],";cursor:grab;position:relative;transition:padding 0.3s ease;svg{color:",n.qo.icon.default,";}button{",q.iZ.resetButton,";margin-left:auto;height:24px;width:24px;text-align:center;opacity:0;transition:opacity 0.3s ease;&:hover svg{color:",n.qo.icon.error,";}}&:hover{padding-left:",n.W0[24],";[data-section-title]{color:",n.qo.text.hover,";}>svg{color:",n.qo.icon.primary,";}[data-drag-icon]{opacity:1;}button{opacity:1;}}",e&&(0,i.iv)("padding-left:",n.W0[24],";[data-section-title]{color:",n.qo.text.hover,";}>svg{color:",n.qo.icon.primary,";}[data-drag-icon]{opacity:1;}button{opacity:1;};label:sectionItem;"),";;label:sectionItem;")},dragIcon:(0,i.iv)("position:absolute;left:",n.W0[2],";top:0;height:100%;display:flex;align-items:center;opacity:0;transition:opacity 0.3s ease;svg{color:",n.qo.icon.default,";};label:dragIcon;"),sectionTitle:(0,i.iv)(o.c.body(),";",q.iZ.textEllipsis,";color:",n.qo.text.default,";transition:opacity 0.3s ease;;label:sectionTitle;")};function Jn(e){return Jn="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},Jn(e)}function eo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function to(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(r),!0).forEach((function(t){ro(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ro(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Jn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Jn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function no(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oo(e,t):void 0}}(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 oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const io=function(){var e=(0,H.$)(),t=(0,Tn.x)(),r=(0,Tn.Gj)(),n=no((0,c.useState)([]),2),o=n[0],i=n[1],a=no((0,c.useState)(null),2),l=a[0],u=a[1],d=(0,re.O)({defaultValues:{search:""}}),p=(0,te.N)(d.watch("search"));return(0,c.useEffect)((function(){var e=new RegExp(p,"i");t.data&&i(t.data.filter((function(t){return e.test(t.title)})))}),[p,t.data]),(0,Pr.IJ)({onDragStart:function(e){var t=e.active,r=t.data.current;r&&r.type===x.Dw.SavedSectionElement&&u(Number(t.id))},onDragEnd:function(e){var t=e.active,n=e.over,a=t.data.current,l=null==n?void 0:n.data.current;u(null),a&&l&&t.id!==(null==n?void 0:n.id)&&a.type===x.Dw.SavedSectionElement&&l.type===x.Dw.SavedSectionElement&&i((function(e){var i=e.findIndex((function(e){return e.id===t.id})),a=e.findIndex((function(e){return e.id===(null==n?void 0:n.id)})),l=(0,Ar.Rp)(o,i,a),c=(0,A.x9)(l),u=Array.from({length:c.length},(function(e,t){return t+1}));return r.mutate({ids:c,orders:u}),l}))},onDragCancel:function(){u(null)}}),A.Eu?(0,s.tZ)("div",{css:ao.proLabelCss,children:(0,s.tZ)(An.Z,{emptyStateImage:qn,imageAltText:"upgrade to pro",title:e("COM_SPPAGEBUILDER_EDITOR_CUSTOM_SECTIONS_LIBRARY"),content:e("COM_SPPAGEBUILDER_EDITOR_CUSTOM_SECTIONS_LIBRARY_CONTENT"),action:(0,s.tZ)(Pn.Z,{}),orientation:"vertical",customCss:ao.proBannerContentCss})}):t.isLoading?(0,s.tZ)(O.g4,{}):t.data?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:ao.searchWrapper,children:(0,s.tZ)(L.Qr,{control:d.control,name:"search",render:function(t){return(0,s.tZ)(J.Z,to(to({},t),{},{variant:"search",placeholder:e("COM_SPPAGEBUILDER_EDITOR_ELEMENT_SEARCH"),isClearable:!0}))}})}),(0,s.tZ)("div",{css:ao.content,children:o.length>0?(0,s.tZ)(Ar.Fo,{id:"saved-sections",items:o,strategy:Ar.qw,children:o.map((function(e){return(0,s.tZ)(Yn,{section:e,activeDragItemId:l},e.id)}))}):(0,s.BX)("div",{css:ao.noResult,children:[(0,s.tZ)("img",{src:Kr,alt:e("COM_SPPAGEBUILDER_EDITOR_NOTHING_FOUND_TEXT")}),(0,s.tZ)("p",{children:e("COM_SPPAGEBUILDER_EDITOR_NOTHING_FOUND_TEXT")})]})})]}):(0,s.tZ)("div",{children:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG")})};var ao={searchWrapper:(0,i.iv)("position:sticky;top:0;background-color:inherit;padding:",n.W0[16]," ",n.W0[10],";border-bottom:1px solid ",n.qo.stroke.neutral,";transition:border 0.3s ease;;label:searchWrapper;"),content:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[8],";padding:",n.W0[16]," ",n.W0[10],";;label:content;"),noResult:(0,i.iv)("display:flex;flex-direction:column;align-items:center;gap:",n.W0[12],";margin-top:",n.W0[56],";img{width:80px;}p{",o.c.body(),";text-align:center;};label:noResult;"),proLabelCss:(0,i.iv)("padding:",n.W0[12],";;label:proLabelCss;"),proBannerContentCss:(0,i.iv)("padding:",n.W0[12],";;label:proBannerContentCss;")};function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const co=function(){var e,t,r=(0,H.$)(),n=(e=(0,c.useState)("sections"),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(e,t):void 0}}(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.")}()),o=n[0],i=n[1],a=[{label:r("COM_SPPAGEBUILDER_EDITOR_ELEMENT_PANEL_TAB_SAVED_SECTIONS"),value:"sections"},{label:r("COM_SPPAGEBUILDER_EDITOR_ELEMENT_PANEL_TAB_SAVED_ADDONS"),value:"addons"}];return(0,s.BX)("div",{css:uo.wrapper,children:[(0,s.tZ)(kr,{tabList:a,activeTab:o,onChange:i}),"addons"===o?(0,s.tZ)(Fn,{}):(0,s.tZ)(io,{})]})};var uo={wrapper:(0,i.iv)(q.iZ.overflowYAuto,";background-color:",n.qo.base.surface,";height:100%;border-right:1px solid ",n.qo.stroke.neutral,";;label:wrapper;")};const so=r.p+"images/d82d034e6dce7362d5f4.svg";var po=function(){var e=(0,S.p)().showToast,t=(0,le.v)((function(e){return e.loadAppConfig}));return(0,ue.a)({queryKey:["AppConfig"],queryFn:function(){return fe.u.get(ce.H.APP_CONFIG).then((function(e){return e.data}))},onSuccess:function(e){t(e)},onError:function(t){e({type:"danger",message:t.message})}})};const fo=function(e){var t,r=e.children,n=e.createdBy,o=(0,H.$)(),i=(0,oe.Q)(),a=po(),l=(0,D.Z)(C.F.PageEditor).id,c=(0,P.z1)(l),u=(0,le.v)((function(e){return e.appConfig})),d=(0,T.s0)(),p=(t=Number(l),(0,ue.a)({queryKey:["UserPermissions",t],queryFn:function(){return function(e){return fe.u.get(ce.H.PERMISSIONS,{params:{page_id:e}}).then((function(e){return e.data}))}(t)}}));if(p.isLoading||!p.data)return null;var f=p.data.page.edit,v=i.edit_own&&n===u.user_id;return"storefront"===l&&!u.is_easystore_installed||!a.isLoading&&!c.isLoading?f||v?(0,s.tZ)(s.HY,{children:r}):(0,s.tZ)("div",{css:vo.wrapper,children:(0,s.tZ)(An.Z,{orientation:"vertical",emptyStateImage:so,imageAltText:o("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_IMAGE_ALT"),content:"Oops! Seems like you are not permitted to access this page. Ask your administrator.",wrapperCss:vo.emptyStateCustom,customCss:vo.customCss,action:(0,s.tZ)(X.Z,{onClick:function(){return d(C.F.Home.buildLink())},children:o("COM_SPPAGEBUILDER_EDITOR_GO_BACK")})})}):(0,s.tZ)(O.fz,{})};var vo={wrapper:(0,i.iv)("height:100vh;display:flex;flex-direction:column;justify-content:center;background-color:",n.qo.base.white,";;label:wrapper;"),emptyStateCustom:(0,i.iv)("max-width:1320px;margin:",n.W0[96]," auto;box-shadow:none;;label:emptyStateCustom;"),customCss:(0,i.iv)(o.c.body(),";margin-top:",n.W0[32],";;label:customCss;")},ho=r(3),bo=r(2066);const yo=function(e){var t=e.field,r=e.fieldState,n=e.label,o=e.disabled,i=e.loading,a=e.responsive,l=e.responsiveOrientation,c=e.helpText;return(0,s.tZ)(bo.Z,{field:t,fieldState:r,disabled:o,loading:i,label:n,responsive:a,responsiveOrientation:l,helpText:c,onCodeEditorChange:t.onChange,children:function(){return(0,s.tZ)(ho.Z,{value:t.value,onChange:t.onChange})}})};var mo=r(9371);const go=function(e){var t=e.generatedImages,r=e.formSubmitHandler,n=e.onGenerateWithPrompt,o=e.isLoading,i=e.isSubmitDisabled,a=void 0!==i&&i,l=e.popover,c=void 0===l?"prompt":l,u=(0,H.$)(),d={prompt:{generate:u("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE"),reGenerate:u("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")},variations:{generate:u("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE_VARIATIONS"),reGenerate:u("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")},variationsPreview:{generate:u("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE_VARIATIONS"),reGenerate:u("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")},generativeFill:{generate:u("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE"),reGenerate:u("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")},generativeFillPreview:{generate:u("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE"),reGenerate:u("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")},expand:{generate:u("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE"),reGenerate:u("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")},expandPreview:{generate:u("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE"),reGenerate:u("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")}};return(0,s.BX)("div",{css:_o.buttonWrapper({isInVariationsScreen:"variations"===c}),children:[("variations"===c||t.length>0)&&(0,s.tZ)(X.Z,{variant:"secondary",onClick:n,disabled:o,children:u("COM_SPPAGEBUILDER_EDITOR_AI_WRITE_NEW_PROMPT")}),(0,s.tZ)("div",{css:_o.buttonGroupWrapper({isInVariationsScreen:"variations"===c}),children:"variations"!==c&&(0,s.tZ)(X.Z,{onClick:r,buttonCss:q.iZ.generateAiButton(o||a),icon:!o&&(0,s.tZ)(w.Z,{name:t.length>0?"recycle":"generate"}),loading:o,disabled:a,children:t.length>0?d[c].reGenerate:d[c].generate})})]})};var Eo={name:"1qa5mwl-buttonWrapper",styles:"justify-content:end;gap:0;label:buttonWrapper;"},_o={buttonWrapper:function(e){var t=e.isInVariationsScreen,r=void 0!==t&&t;return(0,i.iv)("box-shadow:",n.AF.dividerTop,";padding:",n.W0[12]," ",n.W0[16],";display:flex;justify-content:end;gap:",n.W0[16],";",r&&Eo,";;label:buttonWrapper;")},buttonGroupWrapper:function(e){var t=e.isInVariationsScreen,r=void 0!==t&&t;return(0,i.iv)(r&&(0,i.iv)("display:flex;justify-content:center;align-items:center;gap:",n.W0[16],";;label:buttonGroupWrapper;"),";;label:buttonGroupWrapper;")}},Oo=r(2200);function wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var So=300,Io=300;const xo=function(e){var t,r,n=e.imageFullPath,o=e.scaleSize,i=e.onDrawEnd,a=(t=(0,c.useState)(),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return wo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wo(e,t):void 0}}(t,r)||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.")}()),l=a[0],u=a[1],d=(0,Oo.D)(o),p=(0,c.useRef)(null),f=(0,c.useRef)(null);(0,c.useEffect)((function(){var e,t,r=p.current,n=null==r?void 0:r.getContext("2d"),a=f.current,c=Math.min(null!==(e=(0,Br.He)(o))&&void 0!==e?e:0,1.95)-1;if(l&&o!==d&&a&&r&&n){var u=l.height-l.height*c,s=l.width-l.width*c,b=v(u,s),y=b.centerX,m=b.centerY;n.clearRect(0,0,r.width,r.height),r.width=Io,r.height=So,n.drawImage(a,y,m,s,u);var g=null!==(t=h())&&void 0!==t?t:"";i(g)}}),[l,i,d,o]);var v=function(e,t){var r=p.current;return r?{centerX:r.width/2-t/2,centerY:r.height/2-e/2}:{centerX:0,centerY:0}},h=function(){var e=p.current,t=null==e?void 0:e.getContext("2d"),r=f.current;if(e&&t&&r)return e.toDataURL("image/png")};return(0,s.BX)("div",{css:Co.wrapper,children:[(0,s.tZ)("div",{css:Co.canvasWrapper,children:(0,s.tZ)("canvas",{ref:p,css:Co.canvasStyles})}),(0,s.tZ)("img",{ref:f,onLoad:function(){var e,t=p.current,r=f.current;if(t&&r){var n=t.getContext("2d");if(n){var o=r.width,a=r.height;t.width=Io,t.height=So;var l,c,s=o/a;s>=1?(l=Io,c=So/s):(l=Io*s,c=So),u({height:c,width:l});var d=v(c,l),b=d.centerX,y=d.centerY;n.drawImage(r,b,y,l,c),n.globalCompositeOperation="destination-out";var m=null!==(e=h())&&void 0!==e?e:"";i(m)}}},src:n,alt:"canvas hidden item",style:{display:"none"}})]})};var Co={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;"),canvasWrapper:{name:"1mdetlh-canvasWrapper",styles:"position:relative;label:canvasWrapper;"},canvasStyles:{name:"1aw19z6-canvasStyles",styles:"background-image:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);display:block;margin:0 auto;label:canvasStyles;"}},Po=function(e){var t=e.prompt,r=e.language,n=e.tone,o=e.useCase,i=e.action,a="".concat(t,"\nTone should be ").concat(n,"\n");return r&&(a+="\nTranslate the generated text to: ".concat(r)),"others"!==o&&(a+="\nUse case should be ".concat(o)),i&&(a+="\nMake it ".concat(i)),a},Ao=function(e){return String(Math.ceil(e/4))};function Lo(e){return Lo="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},Lo(e)}function To(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Do(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Lo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Lo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Lo(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zo=function(e){var t=e.prompt,r=e.maxTokens;return fe.u.post(ce.H.AI_CONTENT,{prompt:t,type:"text",max_tokens:r})},jo=function(){var e=(0,S.p)().showToast;return(0,pe.D)({mutationFn:Zo,onError:function(t){e({type:"danger",message:t.message})}})},Ro=function(e){var t=e.prompt,r=e.type,n=void 0===r?"image":r,o=e.imageSize,i=e.imageUri,a=t;return(0,A.$K)(t)&&"image"===n&&(a=function(e){var t=e.prompt,r=void 0===t?"":t,n=e.regenerate,o=e.aspectRatio;return"\n".concat(r,"\n").concat(o?"aspect ratio ".concat(o):"","\n").concat(n?"Re-create":"Create"," a visually appealing image that matches the given specifications.\n")}(e)),fe.u.post(ce.H.AI_CONTENT,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?To(Object(r),!0).forEach((function(t){Do(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({prompt:a,type:n,image_size:o},i&&{image_uri:i}))},Bo=function(){var e=(0,S.p)().showToast;return(0,pe.D)({mutationFn:Ro,onError:function(t){e({type:"danger",message:t.message})}})},Mo=function(e){return fe.u.patch(ce.H.AI_CONTENT,{image_uri:e})},ko=r(2445),Go=r(2423);function No(e){return No="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},No(e)}function Wo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Uo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(r),!0).forEach((function(t){Ho(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ho(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==No(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==No(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===No(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Vo=function(e){var t,r,n,o=e.label,i=e.rows,a=void 0===i?6:i,l=e.columns,u=e.maxLimit,d=e.hideMaxLimit,p=e.field,f=e.fieldState,v=e.disabled,h=e.readOnly,b=e.loading,y=e.placeholder,m=e.helpText,g=e.onChange,E=e.onKeyDown,_=e.focusOnMount,O=void 0!==_&&_,w=e.enableResize,S=void 0!==w&&w,I=e.isInlineLabel,C=void 0!==I&&I,P=e.isCharacterCountVisible,L=void 0!==P&&P,T=e.responsive,D=e.responsiveOrientation,Z=(0,H.$)(),j=(r=(0,c.useState)(null!==(t=p.value)&&void 0!==t?t:""),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return Fo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fo(e,t):void 0}}(r,n)||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.")}()),R=j[0],B=j[1],M=(0,c.useRef)(null),k=(0,te.N)(R),G=(0,Br.o5)(R,x.zu),N=(0,ko.F)((function(e){return e.payload})),W=N.addonIndex,U=N.sectionIndex,F=N.columnIndex,V=N.tableItem,q=(0,Go.s)((function(e){return e})).currentState;return(0,c.useEffect)((function(){var e;B(null!==(e=p.value)&&void 0!==e?e:"")}),[W,U,F,V,q]),(0,c.useEffect)((function(){g&&g(G),p.onChange(k)}),[k]),(0,c.useEffect)((function(){O&&M.current&&M.current.focus()}),[O]),(0,s.tZ)(bo.Z,{label:o,field:p,fieldState:f,disabled:v,readOnly:h,loading:b,placeholder:y,helpText:m,isInlineLabel:C,responsive:T,responsiveOrientation:D,children:function(e){var t=e.attributes,r=e.data,n=r.responsive,o=r.device,i=((0,A.HD)(p.value)?p.value:"").length;return(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:zo.container({enableResize:S}),children:(0,s.tZ)("textarea",Uo(Uo(Uo({},p),t),{},{ref:M,value:(0,Br.o5)(R,o),onChange:function(e){var t=e.target.value;if(!(u&&t.trim().length>u)){var r=(0,Br.xU)({previous:p.value,value:t,responsive:n,device:o});B(null!=r?r:"")}},onKeyDown:function(e){E&&E(e.key)},autoComplete:"off",rows:a,cols:l}))}),!!u&&!d&&(0,s.tZ)("p",{css:zo.maxLimit,children:Z("COM_SPPAGEBUILDER_EDITOR_MAX_CHARACTERS",{maxCharacters:u})}),!!L&&!u&&(0,s.tZ)("p",{css:zo.characterCount,children:Z("COM_SPPAGEBUILDER_EDITOR_CHARACTERS_COUNT",{characters:i})}),!!L&&!!u&&(0,s.tZ)("p",{css:zo.characterCount,children:Z("COM_SPPAGEBUILDER_EDITOR_CHARACTERS_REMAINING",{remaining:u-i,maxCharacters:u})})]})}})};var qo={name:"19drmep-container",styles:"resize:vertical;label:container;"},zo={container:function(e){var t=e.enableResize,r=void 0!==t&&t;return(0,i.iv)("textarea{",o.c.body()," height:auto;min-height:90px;padding:",n.W0[6]," ",n.W0[12],";resize:vertical;",r&&qo,";:focus{box-shadow:",n.AF.outline,";}};label:container;")},maxLimit:(0,i.iv)(o.c.caption(),";color:",n.qo.text.neutral,";text-transform:lowercase;;label:maxLimit;"),characterCount:(0,i.iv)(o.c.caption(),";color:",n.qo.text.neutral,";text-align:right;;label:characterCount;")};function Ko(e){return Ko="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},Ko(e)}function $o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(r),!0).forEach((function(t){Yo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yo(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ko(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ko(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ko(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qo(){Qo=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Ko(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Jo(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ti(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ti(e,t):void 0}}(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 ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ri=function(e){var t=e.onChange,r=e.imageFullPath,n=e.onGenerateWithPrompt,o=(0,H.$)(),i=ei((0,c.useState)(""),2),a=i[0],l=i[1],u=ei((0,c.useState)(1),2),d=u[0],p=u[1],f=Bo(),v=(0,re.O)({defaultValues:{prompt:"",aspectRatio:"",imageSize:"512x512"}}),h=v.watch("prompt"),b=v.handleSubmit(function(){var e,r=(e=Qo().mark((function e(r){var n,o,i,l,c,u;return Qo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.prompt,o=r.aspectRatio,i=r.imageSize,e.next=3,f.mutateAsync({prompt:n,aspectRatio:o,imageSize:i,imageUri:a,type:"generative_fill"});case 3:l=e.sent,c=l.data,u=c.data.flatMap((function(e){var t=e.url;return(0,A.$K)(t)?t:[]})),t(u,a,n);case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Jo(i,n,o,a,l,"next",e)}function l(e){Jo(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}());return(0,s.BX)("div",{css:ni.cardInnerSection,children:[(0,s.BX)("div",{css:ni.wrapper,children:[(0,s.tZ)("div",{css:ni.leftWrapper,children:(0,s.tZ)(xo,{imageFullPath:r,onDrawEnd:l,scaleSize:d})}),(0,s.tZ)("div",{css:ni.rightWrapper,children:(0,s.BX)("div",{css:ni.fieldWrapper,children:[(0,s.BX)("div",{css:ni.scaleWrapper,children:[(0,s.tZ)("p",{children:o("COM_SPPAGEBUILDER_EDITOR_AI_EDITOR_SCALE_SIZE")}),(0,s.BX)("div",{css:ni.scaleInputWrapper,children:[(0,s.tZ)(mo.Z,{value:d,onChange:function(e){return p(e)},step:.1,min:1,max:2}),(0,s.BX)("div",{css:ni.scaleNumber,children:[d,"x"]})]})]}),(0,s.tZ)(L.Qr,{name:"prompt",control:v.control,render:function(e){return(0,s.tZ)(Vo,Xo(Xo({},e),{},{label:o("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE")}))}})]})})]}),(0,s.tZ)(go,{generatedImages:[],formSubmitHandler:b,isLoading:f.isLoading,isSubmitDisabled:0===h.trim().length,onGenerateWithPrompt:n,popover:"expand"})]})};var ni={cardInnerSection:{name:"1at6rrd-cardInnerSection",styles:"height:432px;label:cardInnerSection;"},wrapper:{name:"1ozqbk0-wrapper",styles:"display:grid;grid-template-columns:360px 378px;height:376px;label:wrapper;"},leftWrapper:(0,i.iv)("display:grid;place-content:center;gap:",n.W0[16],";background-color:",n.qo.background.neutral,";;label:leftWrapper;"),fieldWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[10],";.rc-slider{max-width:100%;};label:fieldWrapper;"),scaleWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";>p{",o.c.caption("regular"),";color:",n.qo.text.default,";};label:scaleWrapper;"),scaleInputWrapper:(0,i.iv)("display:flex;justify-content:center;align-items:center;gap:",n.W0[24],";;label:scaleInputWrapper;"),scaleNumber:(0,i.iv)(o.c.body("regular"),";background-color:",n.qo.background.disabled,";color:",n.qo.text.neutral,";padding:",n.W0[6]," ",n.W0[12],";width:56px;border-radius:",n.E0[6],";text-align:center;;label:scaleNumber;"),rightWrapper:(0,i.iv)("padding:",n.W0[20],";;label:rightWrapper;")};function oi(e){return function(e){if(Array.isArray(e))return li(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ai(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ii(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||ai(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 ai(e,t){if(e){if("string"==typeof e)return li(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?li(e,t):void 0}}function li(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ci=function(e){var t=e.imageFullPath,r=e.brushSize,n=e.onDrawEnd,o=ii((0,c.useState)(!1),2),i=o[0],a=o[1],l=ii((0,c.useState)(!1),2),u=l[0],d=l[1],p=ii((0,c.useState)([]),2),f=p[0],v=p[1],h=ii((0,c.useState)([]),2),b=h[0],y=h[1],m=(0,c.useRef)(null),g=(0,c.useRef)(null),E=(0,c.useRef)(null);(0,c.useEffect)((function(){if(f.length>1){var e,t=null!==(e=_())&&void 0!==e?e:"";n(t)}else n("")}),[n,b,f.length]),(0,c.useEffect)((function(){var e=m.current,t=null==e?void 0:e.getContext("2d");t&&(t.lineWidth=r)}),[r]);var _=function(){var e=m.current,t=null==e?void 0:e.getContext("2d"),r=g.current;if(e&&t&&r)return e.toDataURL("image/png")};return(0,s.BX)("div",{css:ui.wrapper,children:[(0,s.BX)("div",{css:ui.canvasWrapper,children:[(0,s.tZ)("canvas",{ref:m,css:ui.canvasStyles,onMouseDown:function(e){if(u&&m.current){var t=m.current,r=t.getContext("2d");if(r){var n=t.getBoundingClientRect(),o=(e.clientX-n.left)*(t.width/n.width),i=(e.clientY-n.top)*(t.height/n.height);r.beginPath(),r.moveTo(o,i),a(!0)}}},onMouseMove:function(e){var t=m.current,r=null==t?void 0:t.getContext("2d");if(t&&r){var n=t.getBoundingClientRect(),o=(e.clientX-n.left)*(t.width/n.width),a=(e.clientY-n.top)*(t.height/n.height);E.current&&(E.current.style.left="".concat(o,"px"),E.current.style.top="".concat(a,"px"),i&&(r.lineTo(o,a),r.stroke()))}},onMouseUp:function(){var e;a(!1);var t=null!==(e=_())&&void 0!==e?e:"";n(t);var r=m.current,o=null==r?void 0:r.getContext("2d");if(r&&o){var i=o.getImageData(0,0,r.width,r.height);v([].concat(oi(f),[i])),y([])}},onMouseEnter:function(){E.current&&(E.current.style.display="block",document.body.style.cursor="none")},onMouseLeave:function(){E.current&&(E.current.style.display="none",document.body.style.cursor="auto")}}),(0,s.tZ)("div",{ref:E,css:ui.customCursor({brushSize:r})})]}),(0,s.BX)("div",{css:ui.undoRedoWrapper,children:[(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"undo",width:24,height:24}),onClick:function(){if(0!==f.length){var e=oi(f),t=e.pop();(0,A.$K)(t)&&y([].concat(oi(b),[t]));var r=m.current,n=null==r?void 0:r.getContext("2d");r&&n&&(n.clearRect(0,0,r.width,r.height),e.forEach((function(e){n.putImageData(e,0,0)})),v(e))}},disabled:1===f.length}),(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"redo",width:24,height:24}),onClick:function(){if(0!==b.length){var e=oi(b),t=e.pop();if((0,A.$K)(t)){v((function(e){return[].concat(oi(e),[t])}));var r=m.current,n=null==r?void 0:r.getContext("2d");r&&n&&(n.putImageData(t,0,0),y(e))}}},disabled:0===b.length})]}),(0,s.tZ)("img",{ref:g,onLoad:function(){var e=m.current,t=g.current;if(e&&t){var n=e.getContext("2d");if(n){d(!0);var o=t.width,i=t.height;e.width=300,e.height=300;var a=o/i;a>=1?(e.width=300,e.height=300/a):(e.width=300*a,e.height=300),n.drawImage(t,0,0,e.width,e.height),n.globalCompositeOperation="destination-out",n.lineWidth=r,n.lineJoin="round",n.lineCap="round";var l=n.getImageData(0,0,e.width,e.height);v([].concat(oi(f),[l])),y([])}}},src:t,alt:"canvas hidden item",style:{display:"none"}})]})};var ui={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;"),undoRedoWrapper:(0,i.iv)("display:flex;justify-content:center;align-items:center;gap:",n.W0[16],";>button{padding:0;};label:undoRedoWrapper;"),canvasWrapper:{name:"1mdetlh-canvasWrapper",styles:"position:relative;label:canvasWrapper;"},canvasStyles:(0,i.iv)("background-color:#3366ff;border-radius:",n.E0[8],";display:block;margin:0 auto;;label:canvasStyles;"),customCursor:function(e){var t=e.brushSize,r=void 0===t?30:t;return(0,i.iv)("position:absolute;width:",r,"px;height:",r,"px;border-radius:50%;background-color:#3366ff;pointer-events:none;transform:translate(-50%, -50%);border:1px solid #ffffffe5;z-index:9999;display:none;;label:customCursor;")}};function si(e){return si="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},si(e)}function di(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?di(Object(r),!0).forEach((function(t){fi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):di(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==si(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==si(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===si(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vi(){vi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==si(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function hi(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const yi=function(e){var t,r,n=e.onChange,o=e.imageFullPath,i=e.onGenerateWithPrompt,a=(0,H.$)(),l=(t=(0,c.useState)(""),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return bi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bi(e,t):void 0}}(t,r)||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.")}()),u=l[0],d=l[1],p=Bo(),f=(0,re.O)({defaultValues:{prompt:"",aspectRatio:"",imageSize:"512x512",brushSize:30}}),v=f.watch("brushSize"),h=f.watch("prompt"),b=f.handleSubmit(function(){var e,t=(e=vi().mark((function e(t){var r,o,i,a,l,c;return vi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.prompt,o=t.aspectRatio,i=t.imageSize,e.next=3,p.mutateAsync({prompt:r,aspectRatio:o,imageSize:i,imageUri:u,type:"generative_fill"});case 3:a=e.sent,l=a.data,c=l.data.flatMap((function(e){var t=e.url;return(0,A.$K)(t)?t:[]})),n(c,u,r);case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){hi(i,n,o,a,l,"next",e)}function l(e){hi(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}());return(0,s.BX)("div",{css:mi.cardInnerSection,children:[(0,s.BX)("div",{css:mi.wrapper,children:[(0,s.tZ)("div",{css:mi.leftWrapper,children:(0,s.tZ)(ci,{imageFullPath:o,onDrawEnd:d,brushSize:v})}),(0,s.tZ)("div",{css:mi.rightWrapper,children:(0,s.BX)("div",{css:mi.fieldWrapper,children:[(0,s.tZ)(L.Qr,{name:"brushSize",control:f.control,render:function(e){return(0,s.tZ)($t.Z,pi(pi({},e),{},{label:a("COM_SPPAGEBUILDER_EDITOR_AI_EDITOR_BRUSH_SIZE"),min:10,max:50}))}}),u&&(0,s.tZ)(L.Qr,{name:"prompt",control:f.control,render:function(e){return(0,s.tZ)(Vo,pi(pi({},e),{},{label:a("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE")}))}})]})})]}),(0,s.tZ)(go,{generatedImages:[],formSubmitHandler:b,isLoading:p.isLoading,isSubmitDisabled:!u||0===h.trim().length,onGenerateWithPrompt:i,popover:"generativeFill"})]})};var mi={cardInnerSection:{name:"1at6rrd-cardInnerSection",styles:"height:432px;label:cardInnerSection;"},wrapper:{name:"1ozqbk0-wrapper",styles:"display:grid;grid-template-columns:360px 378px;height:376px;label:wrapper;"},leftWrapper:(0,i.iv)("display:grid;place-content:center;gap:",n.W0[16],";background-color:",n.qo.background.neutral,";;label:leftWrapper;"),fieldWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[10],";.rc-slider{max-width:100%;};label:fieldWrapper;"),rightWrapper:(0,i.iv)("padding:",n.W0[20],";;label:rightWrapper;")};const gi=r.p+"images/8489e1515cd6e8d6e6fc.svg";var Ei=r(9313);function _i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Oi=[{id:"1:1",title:"Square (1:1)"},{id:"3:2",title:"Landscape (3:2)"},{id:"4:3",title:"Landscape (4:3)"},{id:"16:9",title:"Landscape (16:9)"},{id:"2:3",title:"Portrait (2:3)"},{id:"3:4",title:"Portrait (3:4)"},{id:"9:16",title:"Portrait (9:16)"}];const wi=function(e){var t,r,n=e.image,o=e.onInsert,i=e.onEdit,a=e.popover,l=e.isSkeletonOnly,u=void 0!==l&&l,d=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return _i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_i(e,t):void 0}}(t,r)||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.")}()),p=d[0],f=d[1],v=(0,c.useRef)(null),h=(0,c.useRef)(null),b=(0,c.useRef)(null),y=(0,c.useRef)(null);return u?(0,s.tZ)("div",{css:Ci.imageButton({isLoaded:p}),children:(0,s.tZ)(Ei.Z,{height:188,animation:!0})}):(0,s.BX)("div",{css:Ci.imageButton({isLoaded:p}),children:[(0,s.tZ)("img",{ref:v,src:n,alt:"Generated alt text",style:{display:"none"},onLoad:function(){v.current&&(v.current.style.display="block",f(!0))}}),(0,s.BX)("div",{"data-action-buttons":!0,css:Ci.actionButtonWrapper(a),children:["generativeFill"!==a&&(0,s.tZ)(I.Z,{content:"Magic Fill",reference:h,isInteractive:!1,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"magicFill"}),buttonCss:Ci.actionButtonCss,height:8,width:8,onClick:function(){return i(n,"magicFill")}})}),"variationsPreview"!==a&&(0,s.tZ)(I.Z,{content:"Variations",reference:b,isInteractive:!1,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"variations"}),buttonCss:Ci.actionButtonCss,height:8,width:8,onClick:function(){return i(n,"variation")}})}),"expandPreview"!==a&&(0,s.tZ)(I.Z,{content:"Expand",reference:h,isInteractive:!1,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"expandAll"}),buttonCss:Ci.actionButtonCss,height:8,width:8,onClick:function(){return i(n,"expand")}})}),(0,s.tZ)(Qe.Z,{actions:Oi,triggerButtonContent:(0,s.tZ)(I.Z,{content:"Insert",reference:y,isInteractive:!1,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"insert"}),buttonCss:Ci.actionButtonCss,height:8,width:8})}),onSelect:function(e){o(n,e)}})]}),!p&&(0,s.tZ)(Ei.Z,{height:188,animation:!0})]})};var Si={name:"106sdel-actionButtonWrapper",styles:"max-width:72px;label:actionButtonWrapper;"},Ii={name:"1nxacg5-imageButton",styles:"pointer-events:none;label:imageButton;"},xi={name:"1nxacg5-imageButton",styles:"pointer-events:none;label:imageButton;"},Ci={imageButton:function(e){var t=e.isPlaceholder,r=e.isLoaded;return(0,i.iv)("height:160px;width:160px;position:relative;border-radius:",n.E0[5],";overflow:hidden;",!r&&xi," &::before{content:'';position:absolute;inset:0;background-color:",(0,at.m4)(n.qo.base.primary,.4),";border:2px solid ",n.qo.stroke.primary,";opacity:0;transition:opacity 0.25s ease-out;border-radius:",n.E0[5],";}:hover,:focus-within{::before{opacity:1;}>[data-action-buttons]{display:flex;opacity:1;}}",t&&Ii," img{width:100%;height:100%;object-fit:cover;};label:imageButton;")},actionButtonWrapper:function(e){return(0,i.iv)("display:none;flex-wrap:wrap;justify-content:center;width:100%;gap:",n.W0[8],";opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transition:opacity 0.25s ease-out;",(!e||"variations"===e)&&Si,";;label:actionButtonWrapper;")},actionButtonCss:(0,i.iv)("padding:",n.W0[8],";height:32px;width:32px;;label:actionButtonCss;")};const Pi=function(e){var t=e.generatedImages,r=e.isLoading,n=e.onInsert,o=e.onEdit,i=e.popover,a=(0,H.$)();if(0===t.length&&!r)return(0,s.BX)("div",{css:Li.emptyImageWrapper,children:[(0,s.tZ)("img",{src:gi,alt:"empty State"}),(0,s.tZ)("p",{children:a("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_CREATE_USING_PROMPT")})]});var l=0===t.length&&r;return(0,s.tZ)("div",{css:Li.imageWrapper({isLoading:r}),children:(l?(0,A.w6)(4):t).map((function(e){return(0,s.tZ)(wi,{image:String(e),onInsert:function(e,t){return n(String(e),t)},onEdit:o,popover:i,isSkeletonOnly:l},e)}))})};var Ai={name:"1giub5n-imageWrapper",styles:"pointer-events:none;label:imageWrapper;"},Li={emptyImageWrapper:(0,i.iv)("display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:376px;height:100%;gap:",n.W0[8],";padding:",n.W0[20],";background-color:",n.qo.background.neutral,";>img{width:56px;height:56px;};label:emptyImageWrapper;"),imageWrapper:function(e){var t=e.isLoading,r=void 0!==t&&t;return(0,i.iv)(q.iZ.overflowYAuto,";display:grid;grid-template-columns:repeat(2, 1fr);height:100%;gap:",n.W0[12],";padding:",n.W0[20],";background-color:",n.qo.background.neutral,";",r&&Ai,";;label:imageWrapper;")}};function Ti(e){return Ti="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},Ti(e)}function Di(){Di=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Ti(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Zi(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function ji(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Zi(i,n,o,a,l,"next",e)}function l(e){Zi(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Ri(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(r),!0).forEach((function(t){Mi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ri(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ti(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ti(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Gi={prompt:"",imageSize:"256x256",aspectRatio:"1:1"};const Ni=function(e){var t,r,n=e.onClose,o=e.onEdit,i=e.onChange,a=e.isLoading,l=e.prompt,u=e.generatedImages,d=e.imageSize,p=e.setCurrentlyGeneratedItems,f=(0,H.$)(),v=(t=(0,c.useState)(u),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return ki(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ki(e,t):void 0}}(t,r)||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.")}()),h=v[0],b=v[1],y=we(),m=Bo(),g=(0,re.O)({defaultValues:Bi(Bi({},Gi),{},{prompt:l,imageSize:d})}),E=g.watch("imageSize"),_=g.handleSubmit(function(){var e=ji(Di().mark((function e(t){var r,n,o;return Di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.prompt.trim().length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,m.mutateAsync(t);case 4:r=e.sent,n=r.data,o=n.data.flatMap((function(e){var t=e.url;return(0,A.$K)(t)?t:[]})),b(o),p(o);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());return(0,s.tZ)("div",{css:Wi.cardInnerSection,children:y.isLoading||a?(0,s.tZ)("div",{css:Wi.loadingWrapper,children:(0,s.tZ)(O.g4,{})}):(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:Wi.wrapper,children:[(0,s.tZ)(Pi,{generatedImages:h,isLoading:m.isLoading,onInsert:function(){var e=ji(Di().mark((function e(t,r){var o,a;return Di().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y.mutateAsync({url:t,aspect_ratio:r});case 2:o=e.sent,a=o.data,i(a.path),n();case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),onEdit:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.apply(void 0,t.concat([g.getValues("prompt"),g.getValues("imageSize")]))}}),(0,s.tZ)("form",{children:(0,s.BX)("div",{css:Wi.fieldWrapper,children:[(0,s.tZ)(L.Qr,{name:"prompt",control:g.control,render:function(e){return(0,s.tZ)(Vo,Bi(Bi({},e),{},{label:f("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE"),placeholder:f("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_INPUT_PLACEHOLDER")}))}}),(0,s.BX)("div",{css:Wi.tabWrapper,children:[(0,s.tZ)("div",{children:f("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_SIZE")}),(0,s.tZ)(kr,{variant:"secondary",activeTab:E,tabList:[{label:"256px",value:"256x256"},{label:"512px",value:"512x512"},{label:"1024px",value:"1024x1024"}],onChange:function(e){g.setValue("imageSize",e)},wrapperCss:Wi.tabWrapperCss})]})]})})]}),(0,s.tZ)(go,{generatedImages:h,formSubmitHandler:_,onGenerateWithPrompt:function(){g.reset(Gi),b([])},isLoading:m.isLoading})]})})};var Wi={cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:cardStyle;"),cardInnerSection:{name:"1l7lc90-cardInnerSection",styles:"max-height:calc(100vh - 80px);label:cardInnerSection;"},crossButton:{name:"1o5ntf8-crossButton",styles:"padding:0;label:crossButton;"},loadingWrapper:{name:"uw292e-loadingWrapper",styles:"display:grid;place-content:center;width:736px;height:432px;label:loadingWrapper;"},wrapper:(0,i.iv)("display:grid;grid-template-columns:378px 360px;height:376px;overflow-y:auto;>form{padding:",n.W0[20],";};label:wrapper;"),fieldWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[10],";.rc-slider{max-width:100%;};label:fieldWrapper;"),heightWidthWrapper:(0,i.iv)("display:flex;gap:",n.W0[12],";>div{flex:1;};label:heightWidthWrapper;"),tabWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";>p{",o.c.caption(),";};label:tabWrapper;"),tabWrapperCss:{name:"z2x1bx-tabWrapperCss",styles:"width:100%;height:32px;label:tabWrapperCss;"}};function Ui(e){return Ui="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},Ui(e)}function Hi(){Hi=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Ui(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Fi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(r),!0).forEach((function(t){qi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ui(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ui(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zi(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function Ki(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){zi(i,n,o,a,l,"next",e)}function l(e){zi(i,n,o,a,l,"throw",e)}a(void 0)}))}}function $i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Xi=function(e){var t,r,n=e.onClose,o=e.onChange,i=e.onInsert,a=e.imageFullPath,l=e.imageUri,u=e.prompt,d=e.onEdit,p=e.popover,f=e.generatedImages,v=e.isLoading,h=void 0!==v&&v,b=e.onGenerateWithPrompt,y=(0,c.useRef)(null),m=(0,c.useRef)(null),g=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return $i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$i(e,t):void 0}}(t,r)||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.")}()),E=g[0],_=g[1],w=Bo(),S=we(),I=(0,re.O)({defaultValues:{imageSize:"512x512",aspectRatio:"16:9"}}).handleSubmit(function(){var e=Ki(Hi().mark((function e(t){var r,n,i;return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w.mutateAsync(Vi(Vi({},t),{},{prompt:u,imageUri:l,type:"variationsPreview"===p?"variation":"generative_fill"}));case 2:r=e.sent,n=r.data,i=n.data.flatMap((function(e){var t=e.url;return(0,A.$K)(t)?t:[]})),o(i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());return(0,c.useEffect)((function(){0===f.length&&I()}),[f.length]),(0,s.tZ)("div",{css:Ji.cardInnerSection,children:h||S.isLoading?(0,s.tZ)("div",{css:Ji.loadingWrapper,children:(0,s.tZ)(O.g4,{})}):(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:Ji.wrapper,children:[(0,s.BX)("div",{css:Ji.leftWrapper(p,E),children:[(0,s.tZ)("p",{children:"Original Photo"}),(0,s.tZ)("img",{ref:m,src:a,alt:"selected",onLoad:function(){if(_(!0),"variationsPreview"!==p&&"variations"!==p){var e=y.current,t=m.current;if(e&&t){var r=e.getContext("2d");if(r){var n=t.width,o=t.height;e.width=282,e.height=282;var i=n/o;i>=1?(e.width=282,e.height=282/i):(e.width=282*i,e.height=282),r.drawImage(t,0,0,e.width,e.height)}}}}}),!E&&(0,s.tZ)(Ei.Z,{height:282,width:282,animation:!0}),["generativeFill","expandPreview"].includes(p)&&(0,s.tZ)("canvas",{ref:y})]}),(0,s.tZ)("div",{children:(0,s.tZ)(Pi,{generatedImages:f,isLoading:w.isLoading,onInsert:function(){var e=Ki(Hi().mark((function e(t,r){var o,a;return Hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S.mutateAsync({url:t,aspect_ratio:r});case 2:o=e.sent,a=o.data,i(a.path),n();case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),onEdit:d,popover:p})})]}),(0,s.tZ)(go,{generatedImages:f,formSubmitHandler:I,isLoading:w.isLoading,onGenerateWithPrompt:b,popover:p})]})})};var Yi={name:"faz8bo-leftWrapper",styles:">img{display:none;};label:leftWrapper;"},Qi={name:"xfdbnp-leftWrapper",styles:">canvas{background-color:transparent;background-image:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);};label:leftWrapper;"},Ji={cardInnerSection:{name:"xefd76-cardInnerSection",styles:"width:736px;height:432px;label:cardInnerSection;"},wrapper:{name:"1mq32rq-wrapper",styles:"display:grid;grid-template-columns:360px 378px;label:wrapper;"},loadingWrapper:{name:"uw292e-loadingWrapper",styles:"display:grid;place-content:center;width:736px;height:432px;label:loadingWrapper;"},leftWrapper:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,i.iv)("padding:",n.W0[20],";display:grid;place-content:center;gap:",n.W0[16],";>p{text-align:center;}>img{height:282px;width:282px;object-fit:contain;}>canvas{background-color:#3366ff;}","expandPreview"===e&&Qi," ",(!t||["generativeFill","expandPreview"].includes(e))&&Yi,";;label:leftWrapper;")}};function ea(e){return ea="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},ea(e)}function ta(){ta=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==ea(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function ra(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function na(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ra(Object(r),!0).forEach((function(t){oa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ra(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ea(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ea(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ea(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ia(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}const aa=function(e){var t=e.onChange,r=e.imageFullPath,n=e.imageUri,o=e.onGenerateWithPrompt,i=e.onEdit,a=e.isLoading,l=Bo(),u=(0,c.useRef)(null),d=(0,c.useRef)(null),p=(0,c.useRef)(null),f=(0,re.O)({defaultValues:{imageSize:"512x512",aspectRatio:"16:9"}}).handleSubmit(function(){var e,r=(e=ta().mark((function e(r){var o,i,a;return ta().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.mutateAsync(na(na({},r),{},{imageUri:n,type:"variation"}));case 2:o=e.sent,i=o.data,a=i.data.flatMap((function(e){var t=e.url;return(0,A.$K)(t)?t:[]})),t(a);case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ia(i,n,o,a,l,"next",e)}function l(e){ia(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}()),v=a||l.isLoading;return(0,s.tZ)("div",{css:la.cardInnerSection,children:v?(0,s.tZ)("div",{css:la.loadingWrapper,children:(0,s.tZ)(O.g4,{})}):(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:la.wrapper,children:[(0,s.tZ)("img",{src:r,alt:"variation"}),(0,s.BX)("div",{css:la.actionButtonWrapper,children:[(0,s.tZ)(I.Z,{content:"Magic Fill",placement:"right",reference:u,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"magicFill",height:16,width:16}),onClick:function(){return i("magicFill")},buttonCss:la.actionButtonCss})}),(0,s.tZ)(I.Z,{content:"Variations",placement:"right",reference:d,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"variations",height:16,width:16}),onClick:f,buttonCss:la.actionButtonCss})}),(0,s.tZ)(I.Z,{content:"Expand",placement:"right",reference:p,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"expandAll",height:16,width:16}),onClick:function(){return i("expand")},buttonCss:la.actionButtonCss})})]})]}),(0,s.tZ)(go,{generatedImages:[],formSubmitHandler:f,isLoading:l.isLoading,onGenerateWithPrompt:o,onEdit:i,popover:"variations"})]})})};var la={cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:cardStyle;"),cardInnerSection:{name:"15jfho7-cardInnerSection",styles:"max-height:calc(100vh - 80px);overflow-y:auto;label:cardInnerSection;"},crossButton:{name:"1o5ntf8-crossButton",styles:"padding:0;label:crossButton;"},wrapper:(0,i.iv)("width:736px;height:376px;background-color:",n.qo.background.neutral,";padding:",n.W0[20],";display:grid;place-content:center;position:relative;>img{max-height:300px;max-width:100%;object-fit:contain;};label:wrapper;"),actionButtonWrapper:(0,i.iv)("height:100%;position:absolute;top:0;right:24px;margin:auto 0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:",n.W0[8],";;label:actionButtonWrapper;"),actionButtonCss:(0,i.iv)("height:32px;width:32px;padding:",n.W0[8],";display:grid;place-content:center;;label:actionButtonCss;"),loadingWrapper:{name:"uw292e-loadingWrapper",styles:"display:grid;place-content:center;width:736px;height:432px;label:loadingWrapper;"}},ca=r(1954),ua=r(8698);function sa(e){return sa="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},sa(e)}function da(){da=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==sa(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function pa(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function fa(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){pa(i,n,o,a,l,"next",e)}function l(e){pa(i,n,o,a,l,"throw",e)}a(void 0)}))}}function va(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||ha(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 ha(e,t){if(e){if("string"==typeof e)return ba(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ba(e,t):void 0}}function ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ya=function(e){var t,r=e.isOpen,n=e.onClose,o=e.onChange,a=e.imageFullPath,l=e.imageUri,u=e.triggerRef,d=(0,H.$)(),p=l.length>0?"variations":"prompt",f=va((0,c.useState)(p),2),v=f[0],h=f[1],b=va((0,c.useState)([]),2),y=b[0],m=b[1],g=va((0,c.useState)(a),2),E=g[0],_=g[1],O=va((0,c.useState)(l),2),I=O[0],C=O[1],P=va((0,c.useState)(""),2),A=P[0],L=P[1],T=va((0,c.useState)(x.Vg[256]),2),D=T[0],Z=T[1],j=va((0,c.useState)([]),2),R=j[0],B=j[1],M=(0,ca.l)({isOpen:r,triggerRef:u,gap:20,arrow:"right"}),k=M.position,G=M.popoverRef,N=Bo(),W=(t=(0,S.p)().showToast,(0,pe.D)({mutationFn:Mo,onError:function(e){t({type:"danger",message:e.message})}}));(0,c.useEffect)((function(){h(p),_(a),C(l)}),[a,l]);var U=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.Vg[256];B([].concat(function(e){if(Array.isArray(e))return ba(e)}(t=R)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||ha(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.")}(),[{popover:v,imagePath:E,imageUriPath:I,generatedImages:y,prompt:r,imageSize:n}])),h(e),L(r),Z(n),"variationsPreview"===e&&m([])},F=function(){B([]),m([]),Z(x.Vg[256]),L("")},V=function(){h(p),m([]),n(),L("")};return(0,s.tZ)(ca.h,{isOpen:r,children:(0,s.tZ)("div",{css:(0,i.iv)({position:"absolute",left:k.left,top:k.top},";label:AiImagePopoverController;"),ref:G,children:(0,s.tZ)(ua.Z,{header:{title:(0,s.BX)("div",{children:[!["prompt","variations"].includes(v)&&(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"arrowLeft",height:20,width:20}),onClick:function(){if(R.length>0){var e=R[R.length-1];B(R.slice(0,R.length-1)),h(e.popover),_(e.imagePath),C(e.imageUriPath),m(e.generatedImages),L(e.prompt),Z(e.imageSize)}},buttonCss:ma.leftArrowButtonCss}),function(){switch(v){case"variationsPreview":return d("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_VARIATIONS");case"generativeFill":case"generativeFillPreview":return d("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_MAGIC_FILL");case"expand":return d("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_EXPAND_IMAGE");case"expandPreview":return d("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_BACK_TO_EDITOR");default:return d("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_GENERATOR")}}()]}),subtitle:["generativeFill"].includes(v)?d("COM_SPPAGEBUILDER_EDITOR_AI_IMAGE_MARK_AREA"):"",actionTray:(0,s.tZ)(X.Z,{variant:"text",onClick:V,buttonCss:ma.crossButton,children:(0,s.tZ)(w.Z,{name:"cross",height:24,width:24})})},cardCss:ma.cardStyle,hideArrow:!0,children:function(){switch(v){case"variations":return(0,s.tZ)(aa,{isLoading:W.isLoading,onChange:function(e){m(e),U("variationsPreview")},onGenerateWithPrompt:function(){h("prompt"),F()},onEdit:function(){var e=fa(da().mark((function e(t){var r,n;return da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(l.length>0&&l.startsWith("http"))){e.next=9;break}return e.next=3,W.mutateAsync(l);case 3:if(r=e.sent,(n=r.data).status){e.next=7;break}return e.abrupt("return");case 7:_(n.dataUrl),C(n.dataUrl);case 9:U("magicFill"===t?"generativeFill":"expand");case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),imageFullPath:E,imageUri:I});case"variationsPreview":return(0,s.tZ)(Xi,{onClose:V,onChange:function(e){return m(e)},onInsert:o,onGenerateWithPrompt:function(){U("prompt"),F()},generatedImages:y,imageFullPath:E,imageUri:I,isLoading:W.isLoading,onEdit:function(){var e=fa(da().mark((function e(t,r){var n,o;return da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W.mutateAsync(t);case 2:if(n=e.sent,(o=n.data).status){e.next=6;break}return e.abrupt("return");case 6:_(o.dataUrl),C(o.dataUrl),U("expand"===r?"expand":"generativeFill");case 9:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),popover:"variationsPreview"});case"generativeFill":return(0,s.tZ)(yi,{onChange:function(e,t,r){m(e),U("generativeFillPreview",r),_(t),C(t)},onGenerateWithPrompt:function(){h("prompt"),F()},imageFullPath:E,imageUri:I});case"generativeFillPreview":return(0,s.tZ)(Xi,{onClose:V,onChange:function(e){return m(e)},onInsert:o,onGenerateWithPrompt:function(){h("prompt"),F()},prompt:A,generatedImages:y,imageFullPath:E,imageUri:I,isLoading:W.isLoading,onEdit:function(){var e=fa(da().mark((function e(t,r){var n,o;return da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("variation"!==r){e.next=5;break}return _(t),C(t),U("variationsPreview"),e.abrupt("return");case 5:return e.next=7,W.mutateAsync(t);case 7:n=e.sent,(o=n.data).status&&(_(o.dataUrl),C(o.dataUrl),U("expand"));case 10:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),popover:"generativeFill"});case"expand":return(0,s.tZ)(ri,{onChange:function(e,t,r){m(e),U("expandPreview",r),_(t),C(t)},onGenerateWithPrompt:function(){h("prompt"),F()},imageFullPath:E,imageUri:I});case"expandPreview":return(0,s.tZ)(Xi,{onClose:V,onChange:function(e){return m(e)},onInsert:o,onGenerateWithPrompt:function(){h("prompt"),F()},prompt:A,generatedImages:y,imageFullPath:E,imageUri:I,isLoading:W.isLoading,onEdit:function(){var e=fa(da().mark((function e(t,r){var n,o;return da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("variation"!==r){e.next=5;break}return _(t),C(t),U("variationsPreview"),e.abrupt("return");case 5:return e.next=7,W.mutateAsync(t);case 7:n=e.sent,(o=n.data).status&&(_(o.dataUrl),C(o.dataUrl),U("generativeFill"));case 10:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),popover:"expandPreview"});default:return(0,s.tZ)(Ni,{onClose:V,onChange:o,isLoading:N.isLoading||W.isLoading,prompt:A,imageSize:D,generatedImages:y,setCurrentlyGeneratedItems:function(e){m(e)},onEdit:function(){var e=fa(da().mark((function e(t,r,n,o){var i,a;return da().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("variation"!==r){e.next=5;break}return _(t),C(t),U("variationsPreview",n,o),e.abrupt("return");case 5:return e.next=7,W.mutateAsync(t);case 7:i=e.sent,(a=i.data).status&&_(a.dataUrl),U("magicFill"===r?"generativeFill":"expand",n,o);case 11:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}()})}}()})})})};var ma={cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:cardStyle;"),cardInnerSection:{name:"1at6rrd-cardInnerSection",styles:"height:432px;label:cardInnerSection;"},crossButton:{name:"1o5ntf8-crossButton",styles:"padding:0;label:crossButton;"},wrapper:{name:"1ozqbk0-wrapper",styles:"display:grid;grid-template-columns:360px 378px;height:376px;label:wrapper;"},leftWrapper:(0,i.iv)("padding:",n.W0[20],";;label:leftWrapper;"),fieldWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[10],";.rc-slider{max-width:100%;};label:fieldWrapper;"),rightWrapper:(0,i.iv)("display:grid;place-content:center;gap:",n.W0[16],";background-color:",n.qo.background.neutral,";;label:rightWrapper;"),leftArrowButtonCss:{name:"1j3qnzr-leftArrowButtonCss",styles:"padding-left:0;label:leftArrowButtonCss;"}},ga=r(1974);function Ea(e){return Ea="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},Ea(e)}function _a(){_a=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Ea(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Oa(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function wa(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Oa(i,n,o,a,l,"next",e)}function l(e){Oa(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Sa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ia(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ia(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(r),!0).forEach((function(t){Pa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pa(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ea(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ea(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ea(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Aa=function(e){var t,r,n,o,i,a,l,u=e.field,d=e.fieldState,p=e.label,f=e.hidePreview,v=void 0!==f&&f,h=e.hideAltText,b=void 0!==h&&h,y=e.previewStyle,m=e.responsive,g=e.responsiveOrientation,E=e.helpText,_=e.allowedMediaType,O=void 0===_?"image":_,S=e.isLottieFile,I=void 0!==S&&S,x=e.placeholder,C=void 0===x?"":x,P=(0,H.$)(),L=(0,$e.d)().showModal,T=(0,c.useRef)(null),D=(0,c.useRef)(null),Z=(0,le.v)((function(e){return e.appConfig})),j=Sa((0,c.useState)(!1),2),R=j[0],B=j[1],M=Sa((0,c.useState)(!1),2),k=M[0],G=M[1],N=function(e){return(0,A.Kn)(e)&&("src"in e||"alt"in e)}(i=u.value)?Ca(Ca({},i),{},{src:null!==(a=i.src)&&void 0!==a?a:"",alt:null!==(l=i.alt)&&void 0!==l?l:""}):{src:null!=i?i:"",alt:""};t="string"==typeof N.src?N.src.startsWith("http")?N.src:"".concat(A.Xy.pagebuilderBase).concat(N.src):"",r=!N.src,n=N.src||"",o=N.alt||"";var W=(0,te.N)(t);(0,c.useEffect)((function(){var e;null===(e=T.current)||void 0===e||e.load()}),[W]);var U=function(){L({component:Vt,props:{onInsert:function(e){if(I)u.onChange(e.path);else{var t,r,n=!v&&(0,A.$K)(null===(t=e.media_attr)||void 0===t?void 0:t.full)?null===(r=e.media_attr)||void 0===r?void 0:r.full:{};"image"!==e.type?u.onChange(Ca({src:e.path},n)):Me("".concat(ga.Z.APPLICATION_ROOT).concat(e.path)).then((function(t){u.onChange(Ca({src:e.path,height:t.naturalHeight,width:t.naturalWidth},n))})).catch((function(e){console.log({e})}))}},allowedMediaType:O},closeOnOutsideClick:!0})},F=function(){I?u.onChange(""):u.onChange({src:"",width:"",height:""})};return(0,s.tZ)(bo.Z,{label:p,field:u,fieldState:d,responsive:m,responsiveOrientation:g,helpText:E,children:function(){return(0,s.BX)("div",{css:La.wrapper,children:[!A.Eu&&Z.enable_ai&&(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:q.iZ.generateWithAiButtonWrapper,children:(0,s.tZ)(X.Z,{ref:D,onClick:function(){return B(!0)},icon:(0,s.tZ)(w.Z,{name:"wand",height:18,width:18}),css:q.iZ.generateWithAiButton(),children:P("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE_WITH_AI")})}),"image"===O&&(0,s.tZ)(ya,{imageFullPath:t,imageUri:N.src,isOpen:R,onClose:function(){B(!1)},onChange:u.onChange,triggerRef:D})]}),!v&&(0,s.tZ)("div",{css:[La.previewWrapper,y,";label:MediaField;"],children:r?(0,s.tZ)(X.Z,{icon:(0,s.tZ)(w.Z,{name:"upload",height:16,width:16}),buttonContentCss:La.buttonContentPrimary,onClick:U,children:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_UPLOAD")}):(0,s.BX)(s.HY,{children:["image"===O&&(0,s.tZ)("img",{src:W,alt:W,css:La.imagePreview}),"video"===O&&(0,s.BX)("div",{css:La.videoWrapper,children:[(0,s.tZ)("video",{muted:!0,ref:T,children:(0,s.tZ)("source",{src:W,type:"video/mp4"})}),(0,s.tZ)(w.Z,{name:"playCircle",height:32,width:32})]}),(0,s.BX)("div",{css:La.hoverPreview,"data-hover-buttons-wrapper":!0,children:[(0,s.tZ)(X.Z,{icon:(0,s.tZ)(w.Z,{name:"recycle",height:16,width:16}),buttonContentCss:La.buttonContentPrimary,onClick:U,children:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_REPLACE")}),(0,s.tZ)(X.Z,{variant:"secondary",buttonContentCss:La.buttonContentPrimary,onClick:F,children:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]})]})}),(0,s.BX)("div",{css:La.inputWrapper,children:[(0,s.tZ)(Ye.Z,{value:n,onChange:function(){var e=wa(_a().mark((function e(t){var r,n,o,i;return _a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!I){e.next=3;break}return u.onChange(N),e.abrupt("return");case 3:if(u.onChange(Ca(Ca({},N),{},{src:t})),r=t.startsWith("http")?t:"".concat(A.Xy.pagebuilderBase).concat(t),(0,A.K2)(r,"image")){e.next=7;break}return e.abrupt("return");case 7:return G(!0),e.prev=8,e.next=11,Me(r);case 11:n=e.sent,o=n.naturalHeight,i=n.naturalWidth,u.onChange(Ca(Ca({},N),{},{src:t,height:o,width:i}));case 15:return e.prev=15,G(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[8,,15,18]])})));return function(t){return e.apply(this,arguments)}}(),placeholder:C||"",inputCss:La.inputCss}),r?(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"upload",height:16,width:16}),buttonContentCss:La.buttonContent,onClick:U,loading:k,children:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_UPLOAD")}):(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"cross",height:16,width:16}),buttonContentCss:La.buttonContent,onClick:F,loading:k,children:P("COM_SPPAGEBUILDER_EDITOR_MEDIA_CLEAR")})]}),!b&&(0,s.tZ)(Ye.Z,{value:o,helperText:"COM_SPPAGEBUILDER_EDITOR_ALT_TEXT_DESC",label:"COM_SPPAGEBUILDER_EDITOR_ALT_TEXT",placeholder:P("COM_SPPAGEBUILDER_EDITOR_ALT_TEXT_PLACEHOLDER"),onChange:function(){var e=wa(_a().mark((function e(t){return _a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.onChange(Ca(Ca({},N),{},{alt:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})]})}})};var La={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;"),previewWrapper:(0,i.iv)("display:flex;justify-content:center;align-items:center;min-width:200px;width:100%;height:160px;position:relative;overflow:hidden;background-color:",n.qo.base.surface,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[8],";:hover{[data-hover-buttons-wrapper]{display:flex;opacity:1;}};label:previewWrapper;"),buttonContentPrimary:(0,i.iv)("svg{color:",n.qo.icon.white,";};label:buttonContentPrimary;"),imagePreview:{name:"asd3wq-imagePreview",styles:"height:100%;width:100%;object-fit:contain;label:imagePreview;"},hoverPreview:(0,i.iv)("display:none;justify-content:center;align-items:center;gap:",n.W0[8],";opacity:0;position:absolute;inset:0;background-color:",n.qo.alternate.backdrop,";border-radius:",n.E0[8],";button{height:32px;:last-of-type{background-color:",n.qo.base.white,";}};label:hoverPreview;"),inputWrapper:(0,i.iv)("display:flex;align-items:end;gap:",n.W0[12],";;label:inputWrapper;"),inputCss:(0,i.iv)("padding:0 ",n.W0[12],";;label:inputCss;"),buttonContent:(0,i.iv)(":hover{svg{color:",n.qo.icon.primary,";}}svg{color:",n.qo.icon.default,";};label:buttonContent;"),videoWrapper:(0,i.iv)("position:relative;width:100%;height:100%;>video{width:100%;height:100%;}>svg{position:absolute;left:20px;top:20px;color:",n.qo.icon.white,";};label:videoWrapper;")};const Ta=function(e){var t=e.closeModal,r=e.title,n=e.id,o=(0,H.$)();return(0,s.tZ)(Ne.Z,{onClose:function(){return t({action:"CLOSE"})},title:r,children:(0,s.BX)("div",{css:Da.modalWrapper,children:[(0,s.tZ)("div",{css:Da.codeMirror,children:(0,s.tZ)("iframe",{src:"".concat(A.Xy.pagebuilderBase,"administrator/index.php?option=com_sppagebuilder&view=page&layout=edit&id=").concat(n,"&tmpl=component"),name:"editorIframe",title:"editor iframe"})}),(0,s.BX)("div",{css:Da.footerWrapper,children:[(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){return t({action:"CLOSE"})},children:o("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,s.tZ)(X.Z,{onClick:function(){t({action:"CLOSE"})},children:o("COM_SPPAGEBUILDER_EDITOR_APPLY")})]})]})})};var Da={modalWrapper:{name:"qg3d96-modalWrapper",styles:"iframe{width:100%;height:600px;};label:modalWrapper;"},codeMirror:{name:"1ivh6sh-codeMirror",styles:".cm-editor,.cm-theme{height:300px;}.cm-editor{border-radius:0px;padding:0;margin:0;};label:codeMirror;"},footerWrapper:(0,i.iv)("display:flex;align-items:center;padding:",n.W0[16],";gap:",n.W0[8],";justify-content:flex-end;;label:footerWrapper;")};function Za(e){return Za="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},Za(e)}function ja(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ra(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ja(Object(r),!0).forEach((function(t){Ba(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ja(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ba(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Za(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Za(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Za(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ka=function(){var e,t,r=(0,L.Gc)(),n=(0,H.$)(),o=(e=(0,c.useState)("basic"),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ma(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ma(e,t):void 0}}(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.")}()),i=o[0],a=o[1],l=(0,le.v)((function(e){return e.appConfig})),u=(0,oe.Q)(),d=(0,D.Z)(C.F.PageEditor).id,p=(0,$e.d)().showModal,f=[{label:n("COM_SPPAGEBUILDER_EDITOR_FILTER_PUBLISHED"),value:1},{label:n("COM_SPPAGEBUILDER_EDITOR_FILTER_UNPUBLISHED"),value:0},{label:n("COM_SPPAGEBUILDER_EDITOR_FILTER_TRASHED"),value:-2}],v=[{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_USE_GLOBAL"),value:"global"},{label:"index, follow",value:"index, follow"},{label:"noindex, follow",value:"noindex, follow"},{label:"index, nofollow",value:"index, nofollow"},{label:"noindex, nofollow",value:"noindex, nofollow"}],h=[{value:"website",label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_WEBSITE")},{value:"article",label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_ARTICLE")},{value:"video.movie",label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_MOVIE")},{value:"video.tv_show",label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_TV_SHOW")},{value:"music.album",label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_ALBUM")},{value:"book",label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_BOOK")},{value:"profile",label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_PROFILE")}],b=[{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_BASIC"),value:"basic"},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_SEO"),value:"seo"},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_CSS"),value:"css"}],y=u.edit_state,m=u.admin||u.manage;return(0,s.BX)("div",{css:Ga.wrapper,children:[(0,s.tZ)(kr,{tabList:b,activeTab:i,onChange:a}),"basic"===i&&(0,s.BX)("div",{css:Ga.fieldsWrapper,children:[(0,s.tZ)(L.Qr,{control:r.control,name:"catid",render:function(e){return(0,s.tZ)(Q.Z,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_CATEGORY"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_CATEGORY_PLACEHOLDER"),options:l.categories}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"published",render:function(e){return(0,s.tZ)(Q.Z,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_STATUS"),options:f,disabled:!y}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"language",render:function(e){return(0,s.tZ)(Q.Z,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_LANGUAGE"),options:l.languages}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"access",render:function(e){return(0,s.tZ)(Q.Z,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_ACCESS"),options:l.access_levels}))}}),m&&(0,s.BX)("div",{css:Ga.permissionButtonWrapper,children:[(0,s.tZ)("h5",{children:n("COM_SPPAGEBUILDER_EDITOR_PERMISSION_BUTTON_LABEL")}),(0,s.tZ)(X.Z,{icon:(0,s.tZ)(w.Z,{name:"cog"}),variant:"secondary",disabled:!r.getValues("asset_id"),onClick:function(){p({component:Ta,props:{title:n("COM_SPPAGEBUILDER_EDITOR_PERMISSION_MODAL_TITLE"),id:Number(d)}})},children:n("COM_SPPAGEBUILDER_EDITOR_MANAGE_PERMISSION_BUTTON_LABEL")}),!r.getValues("asset_id")&&(0,s.tZ)("p",{children:n("COM_SPPAGEBUILDER_EDITOR_MANAGE_PERMISSION_HELP_TEXT")})]})]}),"css"===i&&(0,s.tZ)("div",{css:Ga.fieldsWrapper,children:(0,s.tZ)(L.Qr,{control:r.control,name:"css",render:function(e){return(0,s.tZ)(yo,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_CUSTOM_CSS")}))}})}),"seo"===i&&(0,s.BX)("div",{css:Ga.fieldsWrapper,children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.meta_description",render:function(e){return(0,s.tZ)(Vo,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_META_DESCRIPTION"),helpText:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_META_DESCRIPTION_DESC"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_META_DESCRIPTION_PLACEHOLDER"),isCharacterCountVisible:!0,maxLimit:160,hideMaxLimit:1}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.meta_keywords",render:function(e){return(0,s.tZ)(Vo,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_META_KEYWORDS"),helpText:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_META_KEYWORDS_DESC"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_META_KEYWORDS_PLACEHOLDER")}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.robots",render:function(e){return(0,s.tZ)(Q.Z,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_ROBOTS"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_ROBOTS_PLACEHOLDER"),options:v}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.og_type",render:function(e){return(0,s.tZ)(Q.Z,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE"),options:h,helpText:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_DESC"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TYPE_PLACEHOLDER")}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"og_title",render:function(e){return(0,s.tZ)(J.Z,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TITLE"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_TITLE_PLACEHOLDER")}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"og_image",render:function(e){return(0,s.tZ)(Aa,Ra(Ra({},e),{},{hidePreview:!1,label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE"),previewStyle:Ga.mediaFieldPreview,helpText:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_DESC"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_IMAGE_PLACEHOLDER")}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"og_description",render:function(e){return(0,s.tZ)(Vo,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_DESCRIPTION"),helpText:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_DESC_DESC"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_OG_DESCRIPTION_PLACEHOLDER")}))}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.author",render:function(e){return(0,s.tZ)(J.Z,Ra(Ra({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_AUTHOR"),helpText:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_AUTHOR_DESC"),placeholder:n("COM_SPPAGEBUILDER_EDITOR_PAGE_SETTINGS_AUTHOR_PLACEHOLDER")}))}})]})]})};var Ga={wrapper:(0,i.iv)(q.iZ.overflowYAuto,";background-color:",n.qo.base.surface,";height:100%;border-right:1px solid ",n.qo.stroke.neutral,";;label:wrapper;"),fieldsWrapper:(0,i.iv)("padding:",n.W0[16]," ",n.W0[10],";display:flex;flex-direction:column;gap:",n.W0[12],";;label:fieldsWrapper;"),mediaFieldPreview:(0,i.iv)("background-color:",n.qo.background.white,";;label:mediaFieldPreview;"),permissionButtonWrapper:(0,i.iv)("h5{",o.c.caption()," color:",n.qo.text.default,";margin-bottom:",n.W0[4],";}p{",o.c.caption(),";color:",n.qo.text.hints,";margin-top:",n.W0[4],";};label:permissionButtonWrapper;")};const Na=function(e){var t=e.title;return(0,s.tZ)("div",{css:Wa.separator,children:t&&(0,s.tZ)("div",{css:Wa.title,children:t})})};var Wa={separator:(0,i.iv)("width:calc(100% + 24px);height:1px;background-color:",n.qo.stroke.neutral,";margin-block:",n.W0[10],";margin-inline:-",n.W0[12],";position:relative;;label:separator;"),title:(0,i.iv)("position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:12px;line-height:12px;color:",n.qo.text.default,";background-color:#fff;padding-inline:4px;;label:title;")},Ua=r(3579),Ha=r(7870);function Fa(e){return Fa="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},Fa(e)}var Va=["css"];function qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(r),!0).forEach((function(t){Ka(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ka(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Fa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Fa(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $a(e){return function(e){if(Array.isArray(e))return Ya(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xa(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 Xa(e,t){if(e){if("string"==typeof e)return Ya(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ya(e,t):void 0}}function Ya(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Qa=function(e){var t,r,n=e.field,o=e.fieldState,a=e.label,l=e.disabled,u=e.wrapperCss,d=e.responsive,p=e.responsiveOrientation,f=e.helpText,v=(0,H.$)(),h=(t=(0,c.useState)(null),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||Xa(t,r)||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.")}()),b=h[0],y=h[1],m=[{label:v("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_FADE"),value:"fade",icon:(0,s.tZ)(w.Z,{name:"fadeIn",width:32,height:34})},{label:v("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_ROTATE"),value:"rotate",icon:(0,s.tZ)(w.Z,{name:"spinIn",width:38,height:53})},{label:v("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_FLIP"),value:"flip",icon:(0,s.tZ)(w.Z,{name:"flipIn",height:40,width:35})},{label:v("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_BOUNCE"),value:"bounce",icon:(0,s.tZ)(w.Z,{name:"bounceIn",height:34,width:54})},{label:v("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_ZOOM"),value:"zoom",icon:(0,s.tZ)(w.Z,{name:"zoomIn",width:36,height:36})},{label:v("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_OPTION_SPECIAL"),value:"special",icon:(0,s.tZ)(w.Z,{name:"reveal",width:33,height:35})}],g=(0,c.useCallback)((function(){if(!n.value)return null;for(var e=0,t=["fade","flip","rotate","zoom","bounce"];e<t.length;e++){var r=t[e];if(n.value.includes(r))return r}return"special"}),[n.value]);(0,c.useEffect)((function(){y(g())}),[g]);var E=(0,c.useMemo)((function(){return(0,A.$K)(b)?(0,A.Lg)(x.sF[b]):[]}),[b]),_=(0,c.useMemo)((function(){var e;if(0!==E.length)return n.value&&null!==(e=E.find((function(e){return e.value===n.value})))&&void 0!==e?e:E[0]}),[n.value,E]);return(0,s.tZ)(bo.Z,{field:n,fieldState:o,label:a,disabled:l,responsive:d,responsiveOrientation:p,helpText:f,children:function(e){var t=e.attributes,r=(e.data,t.css),o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,Va);return(0,s.BX)("div",{css:[Ja.wrapper,u,";label:AnimationField;"],children:[m.map((function(e,t){return(0,i.az)(Ua.Z,za(za({},o),{},{key:t,inputCss:[].concat($a(r),[Ja.radioInput]),value:e.value,checked:e.value===b,label:e.label,icon:e.icon,disabled:l,labelCss:Ja.radioLabel({isActive:e.value===b}),iconWrapperCss:Ja.iconWrapperCss({isActive:e.value===b}),onChange:function(){y(e.value);var t=(0,A.Lg)(x.sF[e.value])[0];n.onChange(t.value)},__source:{fileName:"/Users/sifathaque/Herd/sppb/administrator/components/com_sppagebuilder/assets/editor/src/components/fields/AnimationField.tsx",lineNumber:133,columnNumber:15}}))})),E.length>0&&(0,s.tZ)(Ha.Z,{options:E,value:_,label:v("COM_SPPAGEBUILDER_EDITOR_ANIMATION_FIELD_DIRECTION"),onChange:function(e){n.onChange(e.value)}})]})}})};var Ja={wrapper:(0,i.iv)("display:flex;flex-wrap:wrap;gap:",n.W0[20],";;label:wrapper;"),radioLabel:function(e){var t=e.isActive,r=void 0!==t&&t;return(0,i.iv)(o.c.caption(),";display:flex;flex-direction:column;flex:1;gap:",n.W0[8],";position:relative;transition:color 0.3s ease;span{transition:border 0.3s ease;color:",n.qo.icon.default,";}&:hover{span{border:1px solid ",n.qo.action.outline.hover,";}}",r&&(0,i.iv)("color:",n.qo.text.primary,";;label:radioLabel;"),";;label:radioLabel;")},iconWrapperCss:function(e){var t=e.isActive,r=void 0!==t&&t;return(0,i.iv)(q.iZ.flexCenter(),";width:74px;height:74px;background-color:",n.qo.base.surface,";border:1px solid transparent;border-radius:",n.E0[8],";transition:background-color 0.3s ease;svg{transition:color 0.3s ease;}",r&&(0,i.iv)("color:",n.qo.text.default,";background-color:",n.qo.background.active,";border:1px solid ",n.qo.action.outline.active,";svg{color:",n.qo.icon.primary,";};label:iconWrapperCss;"),";;label:iconWrapperCss;")},radioInput:{name:"sqhq9v-radioInput",styles:"height:100%;width:100%;label:radioInput;"}},el=r(6214);function tl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rl(e,t):void 0}}(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 rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const nl=function(e){var t=e.onColorChange,r=function(e){var t=e.enabled,r=void 0===t||t,n=(0,S.p)().showToast;return(0,ue.a)({enabled:r,queryKey:["GlobalColors"],queryFn:function(){return fe.u.get(ce.H.GLOBAL_COLORS).then((function(e){return e.data}))},onError:function(e){n({type:"danger",message:e.message})}})}({enabled:!0}),n=tl((0,c.useState)([]),2),o=n[0],i=n[1],a=tl((0,c.useState)(),2),l=a[0],u=a[1],d=r.isLoading,p=r.data,f=(0,c.useMemo)((function(){return r.data?r.data.map((function(e){return{label:e.name,value:e.id}})):[]}),[r.data]);return(0,c.useEffect)((function(){if(r.data&&r.data.length>0){var e,t=r.data[0];i(null!==(e=t.colors)&&void 0!==e?e:[]),u({label:t.name,value:t.id})}}),[r.data]),d||0!==f.length?(0,s.BX)("div",{css:ol.globalColorWrapper,children:[(0,s.tZ)(Ha.Z,{options:f,value:l,onChange:function(e){var t;u(e);var r=null==p?void 0:p.find((function(t){return t.id===e.value}));r&&i(null!==(t=r.colors)&&void 0!==t?t:[])},inputCss:ol.selectInputCss,isClearable:!1,optionsStyleVariant:"small"}),!!o.length&&(0,s.tZ)("div",{css:ol.colorList,children:o.map((function(e,r){return(0,s.tZ)("button",{type:"button",css:ol.color(new el.C(e.value).toHexString()),onClick:function(){return t(e.value)},children:(0,s.tZ)("span",{css:ol.colorRight(1-new el.C(e.value).getAlpha())})},"".concat(e.id,"-").concat(r))}))})]}):null};var ol={colorList:(0,i.iv)("display:flex;gap:",n.W0[8],";flex-wrap:wrap;max-height:50px;overflow-y:auto;;label:colorList;"),color:function(e){return(0,i.iv)("width:20px;height:20px;background-color:",e,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[2],";position:relative;overflow:hidden;;label:color;")},globalColorWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[8],";margin:",n.W0[16]," 0 0 0;;label:globalColorWrapper;"),selectInputCss:(0,i.iv)("max-width:87px;input{border:none;border-radius:0;box-shadow:none;height:auto;padding:0 ",n.W0[12]," 0 0;",o.c.caption(),";:focus{outline:none;box-shadow:none;}}button{right:0;svg{height:12px;width:12px;}};label:selectInputCss;"),colorRight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,i.iv)("position:absolute;width:30px;height:30px;top:4px;left:5px;transform:rotate(45deg);background-image:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);opacity:",e,";;label:colorRight;")}},il=r(5651);function al(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ll=function(e){var t,r,n=e.color,o=e.isOpen,i=e.triggerRef,a=e.onChangeColor,l=e.popoverGap,u=void 0===l?10:l,d=e.arrowPosition,p=void 0===d?"right":d,f=e.closeColorPicker,v=e.isGlobalColorsVisible,h=void 0===v||v,b=(0,H.$)(),y=(t=(0,c.useState)(n),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return al(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?al(e,t):void 0}}(t,r)||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.")}()),m=y[0],g=y[1],E=(0,ca.l)({isOpen:o,triggerRef:i,arrow:p,gap:u}),_=E.position,O=E.popoverRef;(0,c.useEffect)((function(){g(n)}),[n]);var S=function(e){g(e);var t=(0,A.K6)(e),r=t.validColor,n=t.color;r.isValid&&a(n)};return(0,s.tZ)(ca.h,{isOpen:o,onClickOutside:function(){f(m)},children:(0,s.BX)("div",{css:[cl.container,{position:"absolute",left:_.left,top:_.top},";label:ColorPicker;"],ref:O,children:[(0,s.BX)("div",{css:cl.header,children:[(0,s.tZ)("span",{children:b("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TITLE")}),(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:function(){return f(m)},children:(0,s.tZ)(w.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:cl.content,children:[(0,s.tZ)(il.Jg,{color:(0,A.K6)(n).validColor.toRgb(),onChange:function(e){var t=new el.C(e),r=(1===e.a?t.toHexString():t.toRgbString()).toUpperCase();g(r),a(r)}}),(0,s.tZ)("input",{type:"text",css:cl.input,value:m,placeholder:"#000000",onChange:function(e){return S(e.target.value)}}),h&&(0,s.tZ)(nl,{onColorChange:S})]})]})})};var cl={content:(0,i.iv)("padding:",n.W0[16],";;label:content;"),header:(0,i.iv)("padding:",n.W0[12]," ",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:space-between;align-items:center;span{",o.c.caption("medium"),";};label:header;"),container:(0,i.iv)("background-color:",n.qo.background.white,";border:1px solid ",n.qo.stroke.neutral,";box-shadow:",n.AF.popover,";border-radius:",n.E0[8],";max-width:278px;width:100%;& .react-colorful{width:auto;gap:",n.W0[10],";}& .react-colorful__saturation-pointer{width:10px;height:10px;}& .react-colorful__hue-pointer,& .react-colorful__alpha-pointer{width:10px;height:10px;}& .react-colorful__saturation{border-radius:",n.E0[8],";border-bottom:unset;}& .react-colorful__hue,& .react-colorful__alpha{height:8px;border-radius:",n.E0[8],";};label:container;"),input:(0,i.iv)(o.c.body()," background-color:",n.qo.base.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";outline:none;padding:",n.W0[6]," ",n.W0[12],";margin-top:",n.W0[12],";width:100%;:focus{outline:none;box-shadow:",n.AF.outline,";};label:input;")};function ul(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sl(e,t):void 0}}(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 sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dl=(0,c.forwardRef)((function(e,t){var r=e.color,n=e.onChangeColor,o=e.onClick,i=e.isClearable,a=void 0===i||i,l=e.hasAlphaField,u=void 0===l||l,d=e.disabled,p=void 0!==d&&d,f=e.colorCodeWidth,v=void 0===f?"55px":f,h=e.hideInput,b=void 0!==h&&h,y=function(e){var t=(0,A.K6)(e).validColor;return t.isValid?t.toHexString().toUpperCase().replace("#",""):""},m=function(e){var t=(0,A.K6)(e).validColor;if(!t.isValid)return"0%";var r=100*t.getAlpha(),n=(0,A.GN)(r)?r:r.toFixed(0);return"".concat(n,"%")},g=ul((0,c.useState)(y(r)),2),E=g[0],_=g[1],O=ul((0,c.useState)(m(r)),2),S=O[0],I=O[1];(0,c.useEffect)((function(){var e=(0,A.K6)(r).isCssVariable;_(e?r:y(r)),I(m(r))}),[r]);var x=function(){var e=Math.min(Number(S.replace(/[^0-9.]/g,"")),100),t=(0,A.K6)(E).isCssVariable,r=e/100,o=new el.C("#".concat(E)).setAlpha(r);if(o.isValid||t){var i=(0,A.GN)(e)?e:e.toFixed(2);I("".concat(i,"%")),n(t?E:o.toRgbString())}},C=function(e){"Enter"===e.key&&(x(),e.currentTarget.blur()),"Escape"===e.key&&(_(y(r)),I(m(r)),e.currentTarget.blur())};return(0,s.BX)("div",{ref:t,css:fl.swatch,children:[(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:o,disabled:p,children:(0,A.K6)(r).validColor.isValid?(0,s.tZ)(s.HY,{children:(0,s.BX)("div",{css:fl.colorBox((0,A.K6)(r).validColor.setAlpha(1).toRgbString()),children:[(0,s.tZ)("span",{css:fl.colorLeft}),(0,s.tZ)("span",{css:fl.colorRight(1-((0,A.K6)(r).validColor.getAlpha()||0))}),a&&(0,s.tZ)("span",{role:"button",tabIndex:0,css:fl.clearButton,onClick:function(e){e.stopPropagation(),n("")},onKeyDown:A.ZT,children:(0,s.tZ)(w.Z,{name:"crossCircled"})})]})}):(0,s.tZ)(pl,{})}),!b&&(0,s.tZ)("input",{type:"text",css:fl.colorCode(v),value:E,onChange:function(e){_(e.target.value),u||I(m(y(e.target.value)))},onBlur:x,onKeyDown:C,onClick:function(e){return e.currentTarget.select()}}),u&&(0,s.tZ)("div",{css:fl.alphaPercentageWrapper,children:(0,s.tZ)("input",{type:"text",css:fl.alphaPercentage,value:S,onChange:function(e){return I(e.target.value)},onBlur:x,onKeyDown:C,onClick:function(e){return e.currentTarget.select()}})})]})})),pl=function(){return(0,s.tZ)("div",{css:fl.emptyColor})},fl={swatch:(0,i.iv)("background-color:",n.qo.background.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[5],";display:flex;align-items:center;gap:",n.W0[8],";overflow:hidden;&:focus-within{box-shadow:",n.AF.outline,";};label:swatch;"),emptyColor:(0,i.iv)("width:40px;height:20px;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[4],";overflow:hidden;margin:",n.W0[6]," 0 ",n.W0[6]," ",n.W0[6],";background-image:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);;label:emptyColor;"),colorBox:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#fff";return(0,i.iv)("width:40px;height:20px;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[4],";background-color:",e,";margin:",n.W0[6]," 0 ",n.W0[6]," ",n.W0[6],";display:flex;position:relative;;label:colorBox;")},clearButton:{name:"1e52ctn-clearButton",styles:"position:absolute;top:0;right:0;transform:translate(50%, -50%);label:clearButton;"},colorLeft:{name:"1s36fqd-colorLeft",styles:"width:50%;label:colorLeft;"},colorRight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,i.iv)("width:50%;background-image:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);opacity:",e,";;label:colorRight;")},colorCode:function(e){return(0,i.iv)(o.c.caption()," width:",e,";padding:0;margin:0;border:none;outline:none;;label:colorCode;")},alphaPercentageWrapper:(0,i.iv)("position:relative;padding:0 ",n.W0[8]," 0 ",n.W0[4],";&::before{content:'';position:absolute;top:0;bottom:0;left:-1px;width:1px;background-color:",n.qo.stroke.neutral,";};label:alphaPercentageWrapper;"),alphaPercentage:(0,i.iv)(o.c.caption()," width:35px;height:32px;border:none;outline:none;;label:alphaPercentage;")},vl={height:30,width:30},hl=(0,c.forwardRef)((function(e,t){var r=e.color,n=e.onChangeColor,o=e.onClick,i=e.isClearable,a=void 0===i||i,l=e.dimension,c=void 0===l?vl:l,u=e.disableOutline,d=void 0!==u&&u,p=e.disabled,f=void 0!==p&&p;return(0,s.tZ)("button",{type:"button",ref:t,css:yl.swatch({dimension:c,disableOutline:d}),onClick:o,disabled:f,children:new el.C(r).isValid?(0,s.BX)("div",{css:yl.colorBox({color:new el.C(r).setAlpha(1).toRgbString()}),children:[(0,s.BX)("div",{css:yl.colorWrapper,children:[(0,s.tZ)("span",{css:yl.colorLeft}),(0,s.tZ)("span",{css:yl.colorRight(1-new el.C(r).getAlpha())})]}),a&&(0,s.tZ)("span",{role:"button",tabIndex:0,css:yl.clearButton,onClick:function(e){e.stopPropagation(),n("")},onKeyDown:A.ZT,"data-clear-button":!0,children:(0,s.tZ)(w.Z,{name:"crossCircled"})})]}):(0,s.tZ)(bl,{})})})),bl=function(){return(0,s.tZ)("div",{css:yl.emptyColor})},yl={swatch:function(e){var t=e.dimension,r=e.disableOutline;return(0,i.iv)(q.iZ.resetButton,";width:",t.width,"px;height:",t.height,"px;background-color:",n.qo.background.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[2],";:hover{[data-clear-button]{visibility:visible;opacity:1;}}",!r&&(0,i.iv)("&:focus-within{box-shadow:",n.AF.outline,";};label:swatch;"),";;label:swatch;")},emptyColor:{name:"bobwpb-emptyColor",styles:"width:100%;height:100%;overflow:hidden;background-image:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);label:emptyColor;"},colorBox:function(e){var t=e.color,r=void 0===t?"#fff":t;return(0,i.iv)("width:100%;height:100%;background-color:",r,";position:relative;;label:colorBox;")},clearButton:(0,i.iv)("height:",n.W0[16],";width:",n.W0[16],";position:absolute;top:0;right:0;transform:translate(50%, -50%);visibility:hidden;opacity:0;transition:visibility 0.3s ease,opacity 0.3s ease;color:",n.qo.icon.default,";:hover{cursor:default;svg{color:",n.qo.icon.hover,";}};label:clearButton;"),colorWrapper:{name:"1tjuvft-colorWrapper",styles:"display:block;width:100%;height:100%;overflow:hidden;position:relative;label:colorWrapper;"},colorLeft:{name:"o6it0s-colorLeft",styles:"display:block;height:100%;width:100%;label:colorLeft;"},colorRight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,i.iv)("position:absolute;width:40px;height:40px;top:8px;left:8px;transform:rotate(45deg);background-image:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);opacity:",e,";;label:colorRight;")}};function ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var gl=function(e){var t,r,n=e.label,o=e.color,i=e.onChange,a=e.onClose,l=e.hasAlphaField,u=e.plainSwatch,d=void 0!==u&&u,p=e.isColorPickerOpen,f=void 0!==p&&p,v=e.dimension,h=e.arrowPosition,b=void 0===h?"right":h,y=e.isGlobalColorsVisible,m=(t=(0,c.useState)(f),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return ml(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ml(e,t):void 0}}(t,r)||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.")}()),g=m[0],E=m[1],_=(0,c.useRef)(null);return(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:El.wrapper,children:[!!n&&(0,s.tZ)("span",{css:El.label,children:n}),d?(0,s.tZ)(hl,{ref:_,color:o||"",onClick:function(){return E(!0)},onChangeColor:function(e){i(e),a(e)},dimension:v}):(0,s.tZ)(dl,{ref:_,color:o||"",onClick:function(){return E(!0)},onChangeColor:function(e){i(e),a(e)},hasAlphaField:l})]}),(0,s.tZ)(ll,{isOpen:g,color:o||"",triggerRef:_,onChangeColor:i,closeColorPicker:function(e){E(!1),a(e)},arrowPosition:b,isGlobalColorsVisible:y})]})},El={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";;label:wrapper;"),label:(0,i.iv)(o.c.caption()," display:block;;label:label;")},_l=r(3581),Ol=r(6486),wl=r.n(Ol);function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Il=function(e){var t,r,n=e.onChange,o=e.onToggle,i=(t=e.value.split(" "),r=4,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Sl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sl(e,t):void 0}}(t,r)||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.")}()),a=i[0],l=void 0===a?"":a,c=i[1],u=void 0===c?"":c,d=i[2],p=void 0===d?"":d,f=i[3],v=void 0===f?"":f;return(0,s.BX)("div",{css:xl.wrapper,children:[(0,s.tZ)("input",{name:"topLeft",value:l,onChange:function(e){n("".concat(e.target.value," ").concat(u," ").concat(p," ").concat(v))}}),(0,s.tZ)("input",{name:"topRight",value:u,onChange:function(e){return n("".concat(l," ").concat(e.target.value," ").concat(p," ").concat(v))}}),(0,s.tZ)("input",{name:"bottomRight",value:p,onChange:function(e){return n("".concat(l," ").concat(u," ").concat(e.target.value," ").concat(v))}}),(0,s.tZ)("input",{name:"bottomLeft",value:v,onChange:function(e){return n("".concat(l," ").concat(u," ").concat(p," ").concat(e.target.value))}}),(0,s.tZ)(X.Z,{variant:"text",buttonCss:xl.button,onClick:o,children:(0,s.tZ)(w.Z,{name:"cornerRadius",width:16,height:16})})]})};var xl={wrapper:(0,i.iv)("display:flex;height:32px;border:1px solid ",n.qo.stroke.neutral,";overflow:hidden;box-shadow:",n.AF.input,";border-radius:",n.E0[5],";input{",o.c.body(),";width:100%;color:",n.qo.text.default,";appearance:textfield;box-shadow:none;border:none;border-right:1px solid ",n.qo.stroke.neutral,";padding:",n.W0[6]," ",n.W0[12],";:focus{outline:none;box-shadow:none;}::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}::placeholder{color:",n.qo.text.disabled,";}};label:wrapper;"),button:(0,i.iv)("border-radius:0;padding:",n.W0[6]," ",n.W0[8],";background-color:",n.qo.action.secondary.default,";svg{color:",n.qo.icon.default,";}:hover{background-color:",n.qo.action.secondary.hover,";svg{color:",n.qo.icon.primary,";}};label:button;")};function Cl(e){return Cl="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},Cl(e)}function Pl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Al(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pl(Object(r),!0).forEach((function(t){Ll(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ll(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Cl(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Cl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Cl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Dl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dl(e,t):void 0}}(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 Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Zl={xl:{border_width:"",border_style:"",border_color:""},lg:{border_width:"",border_style:"",border_color:""},md:{border_width:"",border_style:"",border_color:""},sm:{border_width:"",border_style:"",border_color:""},xs:{border_width:"",border_style:"",border_color:""}};const jl=function(e){var t,r=e.label,n=e.field,o=e.fieldState,i=e.disabled,a=e.loading,l=e.helpText,u=e.responsive,d=e.responsiveOrientation,p=e.hasAlphaField,f=e.title,v=e.noToggle,h=void 0!==v&&v,b=(0,H.$)(),y=[{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_NONE"),value:"none"},{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_SOLID"),value:"solid"},{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_DOUBLE"),value:"double"},{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_DOTTED"),value:"dotted"},{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_DASHED"),value:"dashed"},{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_GROOVE"),value:"groove"},{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_RIDGE"),value:"ridge"},{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_INSET"),value:"inset"},{label:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_OUTSET"),value:"outset"}],m=n.value;(0,A.$K)(n.value)&&(0,Ol.isObject)(n.value)||(m=u?Zl:{border_width:"",border_style:"",border_color:""});var g=Tl((0,c.useState)(!1),2),E=g[0],_=g[1],O=(0,c.useRef)(null),w=(0,c.useRef)(""),S=Tl((0,c.useState)(w.current.length>1?"box":"slider"),2),I=S[0],x=S[1];return(0,s.tZ)(bo.Z,{label:null!==(t=null!=r?r:f)&&void 0!==t?t:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER"),field:n,fieldState:o,disabled:i,loading:a,helpText:l,responsive:u,isCombineType:!0,responsiveOrientation:d,children:function(e){var t,r=e.data,o=r.device,a=r.responsive;t=a?m[o]:m,w.current=t.border_width;var l=t,c=l.border_width,u=l.border_style,d=l.border_color,f=c.split(" ");return(0,s.BX)("div",{css:Rl.wrapper(a),children:[(0,s.BX)("div",{children:[!0===h&&(0,s.tZ)(_l.Z,{value:f[0].replace(/[a-zA-Z%]+/g,""),onChange:function(e){if((0,A.$K)(e))if(a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_width:"".concat(e,"px")}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_width:"".concat(e,"px")}))},min:0,max:20}),!1===h&&("slider"===I?(0,s.tZ)(_l.Z,{value:f[0].replace(/[a-zA-Z%]+/g,""),onChange:function(e){if((0,A.$K)(e))if(a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_width:"".concat(e,"px")}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_width:"".concat(e,"px")}))},onToggle:function(){var e=(0,A.$K)(t.border_width)?"".concat(t.border_width," ").concat(t.border_width," ").concat(t.border_width," ").concat(t.border_width):" ".repeat(4);if((0,A.$K)(e))if(a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_width:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_width:e}));x("box")},min:0,max:20}):(0,s.tZ)(Il,{value:t.border_width,onChange:function(e){if((0,A.$K)(e))if(a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_width:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_width:e}))},onToggle:function(){var e=(0,A.$K)(t.border_width)?t.border_width.split(/\s+/)[0]:"";if((0,A.$K)(e))if(a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_width:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_width:e}));x("slider")}}))]}),(0,s.BX)("div",{css:Rl.styleColorWrapper,children:[(0,s.tZ)(Ha.Z,{value:y.find((function(e){return e.value===u})),placeholder:b("COM_SPPAGEBUILDER_EDITOR_GLOBAL_BORDER_STYLE_PLACEHOLDER"),options:y,onChange:function(e){if(a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_style:e.value}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_style:e.value}))},isSearchable:!0,isClearable:!1}),(0,s.BX)("div",{children:[(0,s.tZ)(dl,{ref:O,color:d||"",onChangeColor:function(e){if(a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_color:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_color:e}))},onClick:function(){return _(!0)},disabled:i,hasAlphaField:p,hideInput:!0}),(0,s.tZ)(ll,{color:d||"",isOpen:E,triggerRef:O,onChangeColor:function(e){if(a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_color:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_color:e}))},closeColorPicker:function(e){if(_(!1),a){var r=(0,Br.xU)({previous:m,value:Al(Al({},t),{},{border_color:e}),responsive:a,device:o});n.onChange(r)}else n.onChange(Al(Al({},t),{},{border_color:e}))},popoverGap:20})]})]})]})}})};var Rl={wrapper:function(e){return(0,i.iv)("border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";margin-bottom:",n.W0[8],";padding:",e?"".concat(n.W0[20]," ").concat(n.W0[12]," ").concat(n.W0[12]):"".concat(n.W0[12]),";;label:wrapper;")},styleColorWrapper:(0,i.iv)("display:flex;justify-content:space-between;align-items:center;margin-top:",n.W0[8],";gap:",n.W0[6],";&>div:nth-of-type(1){width:50%;}&>div:nth-of-type(2){width:50%;};label:styleColorWrapper;")};function Bl(e){return Bl="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},Bl(e)}function Ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(r),!0).forEach((function(t){Gl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Bl(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Bl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Wl=function(e){var t=e.isLocked,r=e.fieldValue,n=e.device,o=e.onChange,i=1===new Set(r).size;return(0,c.useEffect)((function(){o(i)}),[n,o]),(0,s.tZ)("button",{type:"button",css:Hl.lockButton,onClick:function(){return o(!t)},children:(0,s.tZ)(w.Z,{name:t?"lock":"unLock",width:16,height:16})})};const Ul=function(e){var t,r,n=e.label,o=e.field,i=e.fieldState,a=e.disabled,l=e.readOnly,u=e.loading,d=e.placeholder,p=e.helpText,f=e.onChange,v=e.onKeyDown,h=e.responsive,b=e.responsiveOrientation,y=(0,H.$)(),m=(t=(0,c.useState)(!0),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Nl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nl(e,t):void 0}}(t,r)||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.")}()),g=m[0],E=m[1],_=[y("COM_SPPAGEBUILDER_EDITOR_BOX_ELEMENT_POSITION_TOP"),y("COM_SPPAGEBUILDER_EDITOR_BOX_ELEMENT_POSITION_RIGHT"),y("COM_SPPAGEBUILDER_EDITOR_BOX_ELEMENT_POSITION_BOTTOM"),y("COM_SPPAGEBUILDER_EDITOR_BOX_ELEMENT_POSITION_LEFT")];return(0,s.tZ)(bo.Z,{label:n,field:o,fieldState:i,disabled:a,readOnly:l,loading:u,placeholder:d,helpText:p,responsive:h,responsiveOrientation:b,children:function(e){var t=e.attributes,r=e.data,n=r.device,i=r.responsive,a=(0,Br.o5)(o.value,n),l=(0,A.$K)(a)?a.split(" "):[];return(0,s.BX)("div",{css:Hl.wrapper,children:[(0,s.tZ)(Wl,{isLocked:g,fieldValue:l,device:n,onChange:E}),(0,s.tZ)("div",{css:Hl.inputWrapper({isLocked:g}),children:_.map((function(e,r){return(0,s.tZ)("input",kl(kl(kl({},o),t),{},{id:(0,A.x0)(),type:"text",name:String(r),placeholder:e,value:l[r]||"",onChange:function(e){return function(e,t,r){var n=e.target,i=n.name,a=n.value.replace(/\s/,""),l=(0,Br.o5)(o.value,r),c=(0,A.$K)(l)?l.split(" "):[];g?c=[a,a,a,a]:c[Number(i)]=a.replace(/\s/,"");var u=(0,Br.xU)({previous:o.value,value:c.join(" "),responsive:t,device:r});o.onChange(u),f&&f(u)}(e,i,n)},onKeyDown:function(e){v&&v(e.key)},autoComplete:"off"}),r)}))})]})}})};var Hl={wrapper:{name:"memc06-wrapper",styles:"position:relative;label:wrapper;"},lockButton:(0,i.iv)(q.iZ.resetButton,";position:absolute;top:-",n.W0[20],";right:0;color:",n.qo.icon.default,";;label:lockButton;"),inputWrapper:function(e){var t=e.isLocked,r=void 0!==t&&t;return(0,i.iv)("display:flex;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[5],";",r&&(0,i.iv)("&:focus-within{box-shadow:",n.AF.outline,";};label:inputWrapper;")," & input{",o.c.body()," border:none;border-radius:0;&,&:focus{box-shadow:1px 0px 1px ",n.qo.stroke.neutral,",inset -1px 0px 0.25px ",n.qo.stroke.neutral,";}&:first-of-type{border-radius:",n.E0[5]," 0 0 ",n.E0[5],";}&:last-of-type{box-shadow:none;border-radius:0 ",n.E0[5]," ",n.E0[5]," 0;}&:focus{",!r&&(0,i.iv)("border-radius:",n.E0[5],";box-shadow:0px 0px 0px 1px ",n.qo.stroke.neutral,",0px 0px 0px 2px ",n.qo.stroke.white,",0px 0px 0px 4px ",n.qo.stroke.primary,";z-index:",n.W5.positive,";;label:inputWrapper;"),";}};label:inputWrapper;")}},Fl=r(5791);function Vl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ql(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vl(Object(r),!0).forEach((function(t){zl(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zl(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Kl(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kl(e){return Kl="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},Kl(e)}function $l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xl(e,t):void 0}}(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 Xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Yl={enabled:!1,color:"transparent",ho:0,vo:0,blur:0,spread:0,inset:!1},Ql=function(e,t){var r,n,o,i,a="".concat(e?"box-shadow":"text-shadow",": ").concat(null!==(r=null==t?void 0:t.ho)&&void 0!==r?r:0,"px ").concat(null!==(n=null==t?void 0:t.vo)&&void 0!==n?n:0,"px ").concat(null!==(o=null==t?void 0:t.blur)&&void 0!==o?o:0,"px ").concat(e?"".concat(null!==(i=null==t?void 0:t.spread)&&void 0!==i?i:0,"px"):"");return a.length>25?a.slice(0,25)+"...":a};const Jl=function(e){var t=e.label,r=e.field,n=e.fieldState,o=e.disabled,i=e.loading,a=e.onChange,l=e.responsive,u=e.responsiveOrientation,d=e.hasSpread,p=void 0===d||d,f=e.helpText,v=(0,H.$)(),h=$l((0,c.useState)(!1),2),b=h[0],y=h[1],m=(0,ca.l)({isOpen:b,gap:20,arrow:"right"}),g=m.triggerRef,E=m.position,_=m.popoverRef,O=$l((0,c.useState)(),2),S=O[0],I=O[1];return(0,s.tZ)(bo.Z,{field:r,fieldState:n,disabled:o,loading:i,responsive:l,responsiveOrientation:u,helpText:f,children:function(e){var n,o=e.data,i=o.device,l=o.responsive,c=(0,A.$K)(r.value)&&"object"===Kl(r.value)?r.value:void 0,u=null!==(n=(0,Br.oo)(c,i))&&void 0!==n?n:Yl,d=function(e,t){var n=(0,Br.xU)({previous:c,value:ql(ql({},u),{},zl({},t,e)),responsive:l,device:i});r.onChange(n),a&&a(n)};return(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{ref:g,children:[(0,s.BX)("div",{css:ec.labelWrapper,children:[(0,s.tZ)("div",{css:ec.label,children:t}),(0,s.tZ)(Fl.Z,{checked:u.enabled,onChange:function(e){return d(e,"enabled")}})]}),u.enabled&&(0,s.BX)("button",{css:ec.shadowWrapper,onClick:function(){return y(!0)},children:[(0,s.tZ)("div",{css:ec.previewWrapper,children:p?(0,s.tZ)("div",{css:ec.boxPreview(u)}):(0,s.tZ)("div",{css:ec.textPreview(u),children:"T"})}),(0,s.tZ)("div",{css:ec.shadowContent,children:Ql(p,u)}),(0,s.tZ)(w.Z,{name:"settings",height:20,width:20})]})]}),(0,s.tZ)(ca.h,{isOpen:b,onClickOutside:function(){return y(!1)},children:(0,s.BX)("div",{css:[ec.popover,{position:"absolute",left:E.left,top:E.top},";label:BoxShadowField;"],ref:_,children:[(0,s.BX)("div",{css:ec.header,children:[(0,s.tZ)("span",{children:t}),(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:function(){return y(!1)},children:(0,s.tZ)(w.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:ec.optionsWrapper,children:[(0,s.tZ)(gl,{label:v("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_COLOR"),color:S||u.color,onChange:function(e){return I(e)},onClose:function(e){return d(e,"color")}}),(0,s.tZ)(_l.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_HORIZONTAL"),value:(0,Br.BB)(u.ho),onChange:function(e){return d(null!=e?e:"","ho")}}),(0,s.tZ)(_l.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_VERTICAL"),value:(0,Br.BB)(u.vo),onChange:function(e){return d(null!=e?e:"","vo")}}),(0,s.tZ)(_l.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_BLUR"),value:(0,Br.BB)(u.blur),onChange:function(e){return d(null!=e?e:"","blur")}}),p&&(0,s.tZ)(_l.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_BOX_SHADOW_SPREAD"),value:(0,Br.BB)(u.spread),onChange:function(e){return d(null!=e?e:"","spread")}})]})]})})]})}})};var ec={labelWrapper:(0,i.iv)("display:flex;justify-content:space-between;margin-bottom:",n.W0[4],";;label:labelWrapper;"),label:(0,i.iv)(o.c.caption(),";;label:label;"),shadowWrapper:(0,i.iv)(q.iZ.resetButton,";width:100%;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";display:flex;justify-content:space-between;align-items:center;height:32px;padding-right:",n.W0[8],";&:focus{box-shadow:",n.AF.outline,";};label:shadowWrapper;"),previewWrapper:(0,i.iv)("height:30px;width:30px;display:flex;align-items:center;justify-content:center;border-right:1px solid ",n.qo.stroke.neutral,";;label:previewWrapper;"),boxPreview:function(e){return(0,i.iv)("height:14px;width:14px;background-color:",n.qo.icon.neutral,";border-radius:",n.E0[2],";box-shadow:",Math.min(e.ho,2),"px ",Math.min(e.vo,2),"px ",Math.min(e.blur,2),"px 0 ",e.color,",inset 0px -1px 0.25px rgba(17, 18, 19, 0.24);;label:boxPreview;")},textPreview:function(e){return(0,i.iv)("font-family:",n.I8.sansSerif,";font-size:",n.JB[16],";line-height:",n.Nv[16],";text-shadow:",Math.min(e.ho,2),"px ",Math.min(e.vo,2),"px ",Math.min(e.blur,2),"px ",e.color,";;label:textPreview;")},shadowContent:(0,i.iv)("flex:1;",o.c.body(),";padding-left:",n.W0[8],";;label:shadowContent;"),popover:(0,i.iv)("background-color:",n.qo.background.white,";width:304px;box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:popover;"),header:(0,i.iv)("padding:",n.W0[12]," ",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:space-between;align-items:center;span{",o.c.caption("medium"),";};label:header;"),optionsWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";padding:",n.W0[12],";;label:optionsWrapper;")};const tc=function(e){var t=e.label,r=e.options,n=e.field,o=e.fieldState,i=e.disabled,a=e.readOnly,l=e.loading,c=e.placeholder,u=e.helpText,d=e.responsive,p=e.responsiveOrientation,f=e.onChange;return(0,s.tZ)(bo.Z,{label:t,field:n,fieldState:o,disabled:i,readOnly:a,loading:l,placeholder:c,helpText:u,responsive:d,responsiveOrientation:p,children:function(e){var t=e.data,o=t.device,i=t.responsive,a=(0,Br.o5)(n.value,o);return(0,s.tZ)("div",{css:rc.container,children:(0,s.tZ)(kr,{variant:"secondary",tabList:(0,A.I6)(r),activeTab:a,onChange:function(e){var t=(0,Br.xU)({previous:n.value,value:e,responsive:i,device:o});n.onChange(t),f&&f(t)}})})}})};var rc={container:{name:"1m6tfql-container",styles:"position:relative;display:flex;label:container;"}};function nc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oc(e,t):void 0}}(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 oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ic=function(e){var t=e.field,r=e.fieldState,n=e.label,o=e.disabled,i=e.loading,a=e.hasAlphaField,l=e.isInlineLabel,u=e.responsive,d=e.responsiveOrientation,p=e.helpText,f=e.transparency,v=void 0!==f&&f,h=nc((0,c.useState)(!1),2),b=h[0],y=h[1],m=nc((0,c.useState)(t.value),2),g=m[0],E=m[1],_=(0,c.useRef)(null);(0,c.useEffect)((function(){E(t.value)}),[t.value]);var O=v?"transparent":"";return(0,s.tZ)(bo.Z,{field:t,fieldState:r,disabled:o,loading:i,label:n,responsive:u,responsiveOrientation:d,isInlineLabel:l,helpText:p,children:function(){return(0,s.BX)(s.HY,{children:[(0,s.tZ)(dl,{ref:_,color:g||"",onChangeColor:function(e){if(v)return E(e||O),void t.onChange(e||O);E(e),t.onChange(e)},onClick:function(){return y(!0)},disabled:o,hasAlphaField:a}),(0,s.tZ)(ll,{color:g||"",isOpen:b,triggerRef:_,onChangeColor:E,closeColorPicker:function(e){y(!1),t.onChange(e)},popoverGap:20})]})}})};var ac=[0,1,2,3,4,5,6,7,8];const lc=function(e){var t=e.activeIndex,r=void 0===t?4:t,n=e.onClick,o=void 0===n?function(){}:n;return(0,s.tZ)("div",{css:cc.wrapper,children:ac.map((function(e,t){return(0,s.tZ)("div",{css:cc.buttonWrapper,children:(0,s.tZ)("div",{role:"button",tabIndex:0,onKeyDown:A.ZT,css:cc.button({index:t,activeIndex:r}),onClick:function(){return o(t)}})},e.toString())}))})};var cc={wrapper:(0,i.iv)("width:65px;height:65px;position:relative;top:-10px;border:1px solid ",n.qo.stroke.neutral,";background:",n.qo.base.surface,";border-radius:",n.E0[6],";display:grid;grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(3, 1fr);;label:wrapper;"),buttonWrapper:{name:"jlrtqm-buttonWrapper",styles:"display:flex;justify-content:center;align-items:center;label:buttonWrapper;"},button:function(e){var t=e.index,r=e.activeIndex;return(0,i.iv)("background:",t===r?n.qo.base.primary:n.qo.base.secondary,";height:",n.W0[10],";width:",n.W0[10],";border-radius:",n.E0.circle,";cursor:pointer;;label:button;")}},uc=r(8710),sc=function(e,t){return"%"===e.transform_origin.top.unit&&"%"===e.transform_origin.left.unit?"0"===e.transform_origin.top.value&&"0"===e.transform_origin.left.value?t(0):"0"===e.transform_origin.top.value&&"50"===e.transform_origin.left.value?t(1):"0"===e.transform_origin.top.value&&"100"===e.transform_origin.left.value?t(2):"50"===e.transform_origin.top.value&&"0"===e.transform_origin.left.value?t(3):"50"===e.transform_origin.top.value&&"50"===e.transform_origin.left.value?t(4):"50"===e.transform_origin.top.value&&"100"===e.transform_origin.left.value?t(5):"100"===e.transform_origin.top.value&&"0"===e.transform_origin.left.value?t(6):"100"===e.transform_origin.top.value&&"50"===e.transform_origin.left.value?t(7):"100"===e.transform_origin.top.value&&"100"===e.transform_origin.left.value?t(8):t(-1):t(-1),e},dc=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"xl";return"%"===e.top.unit&&"%"===e.left.unit?"0"===e.top[r]&&"0"===e.left[r]?t(0):"0"===e.top[r]&&"50"===e.left[r]?t(1):"0"===e.top[r]&&"100"===e.left[r]?t(2):"50"===e.top[r]&&"0"===e.left[r]?t(3):"50"===e.top[r]&&"50"===e.left[r]?t(4):"50"===e.top[r]&&"100"===e.left[r]?t(5):"100"===e.top[r]&&"0"===e.left[r]?t(6):"100"===e.top[r]&&"50"===e.left[r]?t(7):"100"===e.top[r]&&"100"===e.left[r]?t(8):t(-1):t(-1),e},pc=r(1245),fc=r.n(pc),vc=r(2902);function hc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return bc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bc(e,t):void 0}}(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 bc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yc=[{label:"Position",fieldKey:"position",fields:[{label:"Top",fieldKey:"top"},{label:"Left",fieldKey:"left"}]}],mc={top:{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"},left:{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"}};const gc=function(e){var t=e.field,r=e.fieldState,n=e.readOnly,o=e.label,i=e.isInlineLabel,a=e.responsive,l=e.responsiveOrientation,u=e.helpText,d=e.onChange,p=hc((0,c.useState)((function(){return(0,A.$K)(t.value)&&(0,A.Kn)(t.value)?t.value:mc})),2),f=p[0],v=p[1],h=(0,te.N)(f),b=(0,ko.F)((function(e){return e.payload})),y=b.sectionIndex,m=b.columnIndex,g=b.addonIndex,E=b.tableItem,_=(0,Go.s)((function(e){return e.currentState})),O=(0,c.useRef)("xl");(0,c.useEffect)((function(){v(f),"%"!==f.top.unit||"%"!==f.left.unit||"0"!==f.top[O.current]&&"50"!==f.top[O.current]&&"100"!==f.top[O.current]||"0"!==f.left[O.current]&&"50"!==f.left[O.current]&&"100"!==f.left[O.current]?I(-1):dc(fc()(f),I,O.current)}),[y,m,g,E,_,O.current]),(0,c.useEffect)((function(){t.onChange(h),d&&d(h)}),[h]),(0,c.useEffect)((function(){wl().isEqual(t.value,f)||(v((0,A.$K)(t.value)?t.value:mc),dc((0,A.$K)(t.value)?t.value:mc,I,O.current))}),[t.value]);var w=hc((0,c.useState)(4),2),S=w[0],I=w[1],x=function(e){var t=fc()(f),r=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"xl";switch(e){case 0:t.top[r]="0",t.left[r]="0";break;case 1:t.top[r]="0",t.left[r]="50";break;case 2:t.top[r]="0",t.left[r]="100";break;case 3:t.top[r]="50",t.left[r]="0";break;case 4:t.top[r]="50",t.left[r]="50";break;case 5:t.top[r]="50",t.left[r]="100";break;case 6:t.top[r]="100",t.left[r]="0";break;case 7:t.top[r]="100",t.left[r]="50";break;case 8:t.top[r]="100",t.left[r]="100"}return t.top.unit="%",t.left.unit="%",t}(e,fc()(t),O.current);fc()(f),v(r),I(e)};return(0,s.tZ)(bo.Z,{field:t,fieldState:r,label:o,isInlineLabel:i,readOnly:n,responsive:a,responsiveOrientation:l,helpText:u,children:function(e){var t=e.data.device;return O.current=t,(0,s.tZ)("div",{css:Ec.wrapper,children:yc.map((function(e){return(0,s.tZ)("div",{children:(0,s.BX)("div",{css:Ec.groupFieldWrapper,children:[e.fields.map((function(r){var n={value:f[r.fieldKey][t],unit:f[r.fieldKey].unit};return(0,s.tZ)(uc.Z,{label:r.label,isAngleUnit:e.isAngleUnit,fieldValue:n,isLarge:!0,onChange:function(e){var n=(0,vc.ZP)(fc()(f),(function(n){var o=n;(0,A.$K)(o)&&(o[r.fieldKey][t]=e.value,o[r.fieldKey].unit=e.unit)}));dc(fc()(n),I,t),v(n)},inputCss:Ec.inputCss,unitInputStyles:Ec.unitInputStyles},r.fieldKey)})),(0,s.tZ)(lc,{activeIndex:S,onClick:x})]})},e.fieldKey)}))})}})};var Ec={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;"),groupLabel:(0,i.iv)(o.c.caption("medium")," color:",n.qo.text.default,";margin-bottom:",n.W0[8],";;label:groupLabel;"),groupFieldWrapper:(0,i.iv)("display:grid;grid-template-columns:repeat(3, 1fr);column-gap:",n.W0[16],";row-gap:",n.W0[16],";margin-top:",n.W0[12],";;label:groupFieldWrapper;"),inputCss:{name:"17gmmrm-inputCss",styles:"width:100%;label:inputCss;"},unitInputStyles:{name:"1v4ejpb-unitInputStyles",styles:"width:45px;label:unitInputStyles;"}};function _c(e){return _c="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},_c(e)}function Oc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(r),!0).forEach((function(t){Sc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ic(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xc(e,t):void 0}}(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 xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Cc={color:"",color2:"",pos:45,pos2:65,type:"linear",radialPos:"center center",deg:45};const Pc=function(e){var t=e.label,r=e.field,n=e.fieldState,o=e.disabled,i=e.loading,a=e.onChange,l=e.helpText,u=(0,H.$)(),d=(0,A.$K)(r.value)?r.value:Cc,p=Ic((0,c.useState)(d.color||""),2),f=p[0],v=p[1],h=Ic((0,c.useState)(d.color2||""),2),b=h[0],y=h[1];(0,c.useEffect)((function(){v(d.color||"")}),[d.color]),(0,c.useEffect)((function(){y(d.color2||"")}),[d.color2]);var m=d.pos,g=void 0===m?45:m,E=d.pos2,_=void 0===E?65:E,O=d.type,w=void 0===O?"linear":O,S=d.deg,I=void 0===S?45:S,x=d.radialPos,C=void 0===x?"center center":x,P={linear:"linear-gradient(".concat(I,"deg, ").concat(f," ").concat(g,"%, ").concat(b," ").concat(_,"%)"),radial:"radial-gradient(at ".concat(C,", ").concat(f," ").concat(g,"%, ").concat(b," ").concat(_,"%)")},L=[{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_TOP_CENTER"),value:"top center"},{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_TOP_LEFT"),value:"top left"},{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_TOP_RIGHT"),value:"top right"},{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_CENTER_CENTER"),value:"center center"},{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_CENTER_LEFT"),value:"center left"},{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_CENTER_RIGHT"),value:"center right"},{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_BOTTOM_CENTER"),value:"bottom center"},{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_BOTTOM_LEFT"),value:"bottom left"},{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_BOTTOM_RIGHT"),value:"bottom right"}],T=function(e,t){r.onChange(wc(wc({},d),{},Sc({},t,e))),a&&a(wc(wc({},d),{},Sc({},t,e)))};return(0,s.tZ)(bo.Z,{label:t,field:r,fieldState:n,disabled:o,loading:i,helpText:l,children:function(){var e;return(0,s.tZ)(s.HY,{children:(0,s.BX)("div",{css:Ac.wrapper,children:[(0,s.tZ)("div",{css:Ac.colorPallateWrapper,children:(0,s.tZ)("div",{css:Ac.colorPallate(P[w])})}),(0,s.BX)("div",{css:Ac.colorPickerWrapper,children:[(0,s.BX)("div",{css:Ac.colorPickerItem,children:[(0,s.tZ)("div",{css:Ac.label(o),children:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_COLOR1")}),(0,s.tZ)(gl,{color:f,onChange:function(e){return v(e)},onClose:function(e){return T(e,"color")},hasAlphaField:!1})]}),(0,s.BX)("div",{css:Ac.colorPickerItem,children:[(0,s.tZ)("div",{css:Ac.label(o),children:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_COLOR2")}),(0,s.tZ)(gl,{color:b,onChange:function(e){return y(e)},onClose:function(e){return T(e,"color2")},hasAlphaField:!1})]})]}),(0,s.tZ)(_l.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_START"),isInlineLabel:!0,value:(0,Br.BB)(g),onChange:function(e){return T(null!=e?e:"","pos")},inputContent:"%"}),(0,s.tZ)(_l.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_END"),isInlineLabel:!0,value:(0,Br.BB)(_),onChange:function(e){return T(null!=e?e:"","pos2")},inputContent:"%"}),(0,s.BX)("div",{css:Ac.typeWrapper,children:[(0,s.tZ)("div",{css:Ac.label(o),children:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_TYPE")}),(0,s.BX)("div",{css:Ac.radioWrapper,children:[(0,s.tZ)(Ua.Z,{showRadioIcon:!0,label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_LINEAR"),checked:"linear"===w,onChange:function(){return T("linear","type")}}),(0,s.tZ)(Ua.Z,{showRadioIcon:!0,label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_RADIAL"),checked:"radial"===w,onChange:function(){return T("radial","type")}})]})]}),"linear"===w&&(0,s.tZ)(_l.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ANGLE"),isInlineLabel:!0,max:360,value:(0,Br.BB)(I),onChange:function(e){return T(null!=e?e:"","deg")},inputContent:"deg"}),"radial"===w&&(0,s.tZ)("div",{css:Ac.anglePosWrapper,children:(0,s.tZ)(Ha.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ANGLE"),isInlineLabel:!0,options:L,value:null!==(e=L.find((function(e){return e.value===C})))&&void 0!==e?e:L[3],onChange:function(e){return T(e.value,"radialPos")},clearOption:function(){return T("center center","radialPos")},isSearchable:!0})})]})})}})};var Ac={wrapper:(0,i.iv)("position:relative;display:flex;flex-direction:column;gap:",n.W0[8],";;label:wrapper;"),colorPallateWrapper:(0,i.iv)("height:80px;width:100%;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAH5JREFUWAntlUsKACEMQ6vMjXr/I/RMOmtdBuRR0mWxGPIhY/0Tx1TVsYnIzGv34t28foUtDFAVBM/g98LoSsDwDBpg+5AMN4mosUMiEhh4Bt0k7SXGexAP0E3ikKgMqPf4kLhJ2kuM9yAeoJvEIVEZUO/xIXGTtJcY70E8wA3sHG3hUj6LrAAAAABJRU5ErkJggg==');border-radius:",n.E0[4],";overflow:hidden;;label:colorPallateWrapper;"),colorPallate:function(e){return(0,i.iv)("background-image:",e,";height:100%;width:100%;;label:colorPallate;")},colorPickerWrapper:{name:"wrklh8-colorPickerWrapper",styles:"display:flex;justify-content:space-between;label:colorPickerWrapper;"},colorPickerItem:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";;label:colorPickerItem;"),typeWrapper:{name:"1vbp8h0-typeWrapper",styles:"display:flex;justify-content:space-between;label:typeWrapper;"},label:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)(o.c.caption(),";color:",n.qo.text.default,";",e&&(0,i.iv)("color:",n.qo.text.disabled,";;label:label;"),";;label:label;")},radioWrapper:(0,i.iv)("display:flex;gap:",n.W0[16],";;label:radioWrapper;"),anglePosWrapper:{name:"j3cmgw-anglePosWrapper",styles:"display:flex;justify-content:space-between;label:anglePosWrapper;"}},Lc=r(487),Tc=r(3417),Dc=r(8008);function Zc(e){return Zc="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},Zc(e)}function jc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jc(Object(r),!0).forEach((function(t){Bc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Zc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Zc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zc(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const kc=function(e){var t,r,n=e.closeModal,o=e.title,i=(0,H.$)(),a=(0,c.useRef)(null),l=(t=(0,c.useState)("fontawesome"),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Mc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mc(e,t):void 0}}(t,r)||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.")}()),u=l[0],d=l[1],p=ge(),f=(0,Dc.Ap)(),v=(0,re.O)({defaultValues:{search:""}}),h=(0,te.N)(v.watch("search")),b=(0,c.useMemo)((function(){var e;return p.data?"all"===u?p.data.flatMap((function(e){return e.assets})).filter((function(e){return e.includes(h)})):(null===(e=p.data.find((function(e){return e.name===u})))||void 0===e?void 0:e.assets.filter((function(e){return e.includes(h)})))||[]:[]}),[u,p.data,h]);return p.isLoading?(0,s.tZ)(O.g4,{}):p.data?(0,s.tZ)(Ne.Z,{onClose:function(){return n({action:"CLOSE"})},title:o,wrapperCss:Gc.wrapper,children:(0,s.BX)("div",{css:Gc.container,children:[(0,s.BX)("div",{css:Gc.sidebar,children:[(0,s.tZ)(Tc.Z,{header:(0,s.BX)(s.HY,{children:[(0,s.BX)(X.Z,{buttonCss:Gc.uploadButton,onClick:function(){var e;return null===(e=a.current)||void 0===e?void 0:e.click()},loading:f.isLoading,children:[(0,s.tZ)(w.Z,{name:"upload"}),(0,s.tZ)("span",{children:i("COM_SPPAGEBUILDER_EDITOR_UPLOAD_ICON_BUTTON")})]}),(0,s.tZ)("input",{ref:a,type:"file","aria-hidden":"true",hidden:!0,onChange:function(e){var t,r=null===(t=e.target.files)||void 0===t?void 0:t[0];r&&f.mutate(r)}})]}),children:(0,s.BX)("ul",{css:Gc.cardInner,children:[(0,s.tZ)("li",{css:Gc.cardInnerItem("all"===u),children:(0,s.BX)("button",{type:"button",onClick:function(){return d("all")},children:[(0,s.tZ)(w.Z,{name:"asterisk",width:16,height:16}),(0,s.tZ)("span",{children:i("COM_SPPAGEBUILDER_EDITOR_ALL_ICONS_LABEL")})]})}),p.data.map((function(e){return(0,s.tZ)("li",{css:Gc.cardInnerItem(u===e.name),children:(0,s.BX)("button",{type:"button",onClick:function(){return d(e.name)},children:[(0,s.tZ)(w.Z,{name:e.name,width:16,height:16}),(0,s.tZ)("span",{children:e.title})]})},e.id)}))]})}),(0,s.tZ)("p",{css:Gc.uploadMessage,children:i("COM_SPPAGEBUILDER_EDITOR_ICON_UPLOAD_MESSAGE")})]}),(0,s.BX)("div",{css:Gc.searchAndIcons,children:[(0,s.tZ)("div",{css:Gc.searchWrapper,children:(0,s.tZ)(L.Qr,{control:v.control,name:"search",render:function(e){return(0,s.tZ)(J.Z,Rc(Rc({},e),{},{variant:"search",placeholder:i("COM_SPPAGEBUILDER_EDITOR_ICON_SEARCH_PLACEHOLDER"),isClearable:!0}))}})}),(0,s.BX)("div",{css:Gc.content,children:[function(){if(0===b.length)return(0,s.BX)("div",{css:Gc.notFound,children:[(0,s.tZ)(w.Z,{name:"foldersDuo",width:56,height:56}),(0,s.tZ)("span",{children:i("COM_SPPAGEBUILDER_EDITOR_NO_ICON_FOUND_MESSAGE",{keyword:v.getValues("search")})})]})}(),b.map((function(e,t){return(0,s.BX)("button",{type:"button",css:Gc.iconWrapper,onClick:function(){n({action:e})},children:[(0,s.tZ)("span",{className:e,css:Gc.icon}),(0,s.tZ)("span",{children:e})]},t)}))]})]})]})}):(0,s.tZ)(Qr,{title:i("COM_SPPAGEBUILDER_EDITOR_SOMETHING_WENT_WRONG_TITLE"),subtitle:i("COM_SPPAGEBUILDER_EDITOR_SOMETHING_WENT_WRONG_SUBTITLE"),actionButton:(0,s.tZ)(Lc.Z,{href:"https://www.joomshaper.com/forum",target:"_blank",children:i("COM_SPPAGEBUILDER_EDITOR_SOMETHING_WENT_WRONG_CONTACT_BUTTON")})})};var Gc={wrapper:(0,i.iv)("max-width:1242px;",n.Uo.smallTablet,"{max-width:800px;};label:wrapper;"),container:(0,i.iv)("padding:",n.W0[32]," ",n.W0[32]," ",n.W0[40]," ",n.W0[24],";display:flex;gap:",n.W0[32],";align-items:start;;label:container;"),sidebar:(0,i.iv)("max-width:228px;width:100%;flex-shrink:0;position:sticky;top:",n.W0[32],";;label:sidebar;"),content:(0,i.iv)("width:100%;display:flex;gap:",n.W0[24],";flex-wrap:wrap;max-height:calc(100vh - 256px);overflow:auto;;label:content;"),cardInner:(0,i.iv)("margin:0;padding:",n.W0[16]," 0;display:flex;flex-direction:column;list-style:none;;label:cardInner;"),cardInnerItem:function(e){return(0,i.iv)("height:32px;cursor:pointer;:hover{background-color:",n.qo.background.primary,";button{color:",n.qo.text.primary,";}}button{",q.iZ.resetButton,";",o.c.body(),";width:100%;height:100%;display:flex;gap:",n.W0[12],";align-items:center;padding-inline:",n.W0[24],";}",e&&(0,i.iv)("background-color:",n.qo.background.primary,";button{color:",n.qo.text.primary,";};label:cardInnerItem;"),";;label:cardInnerItem;")},iconWrapper:(0,i.iv)(q.iZ.resetButton,";width:94px;height:94px;background-color:",n.qo.background.active,";border-radius:",n.E0[5],";",q.iZ.flexCenter("column"),";gap:",n.W0[12],";span:last-of-type{width:100%;",o.c.caption(),";",q.iZ.textEllipsis,";padding-inline:",n.W0[8],";text-align:center;}:hover{background-color:",n.qo.base.primary,";span{color:",n.qo.text.white,";}};label:iconWrapper;"),icon:(0,i.iv)("font-size:",n.JB[30],";line-height:",n.Nv[36],";color:",n.qo.icon.default,";;label:icon;"),uploadButton:(0,i.iv)("width:100%;&>span{display:flex;gap:",n.W0[8],";align-items:center;justify-content:center;};label:uploadButton;"),uploadMessage:(0,i.iv)("margin-top:",n.W0[24],";",o.c.caption(),";color:",n.qo.text.hints,";;label:uploadMessage;"),searchAndIcons:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[32],";flex:1;;label:searchAndIcons;"),searchWrapper:{name:"117ckhv-searchWrapper",styles:"width:100%;label:searchWrapper;"},notFound:(0,i.iv)(q.iZ.flexCenter("column"),";width:100%;margin-top:",n.W0[96],";;label:notFound;")};function Nc(e){return Nc="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},Nc(e)}function Wc(){Wc=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Nc(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Uc(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function Hc(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Uc(i,n,o,a,l,"next",e)}function l(e){Uc(i,n,o,a,l,"throw",e)}a(void 0)}))}}const Fc=function(e){var t=e.label,r=e.isInlineLabel,n=e.field,o=e.fieldState,i=e.disabled,a=e.readOnly,l=e.loading,c=e.placeholder,u=e.helpText,d=e.chooseIconText,p=void 0===d?"":d,f=e.responsive,v=e.responsiveOrientation,h=(0,H.$)(),b=(0,$e.d)().showModal;return(0,s.tZ)(bo.Z,{label:t,isInlineLabel:r,field:n,fieldState:o,disabled:i,readOnly:a,loading:l,placeholder:c,helpText:u,responsive:f,responsiveOrientation:v,children:function(e){var t,r,o=e.data,i=o.device,a=o.responsive,l=(0,Br.o5)(n.value,i);return(0,s.BX)("div",{css:Vc.wrapper,children:[!!l&&(0,s.BX)("div",{css:Vc.iconContainer,children:[(0,s.tZ)("span",{className:(t=l,r=t.split(" "),1===r.length&&"fa"===(r=t.split("-"))[0]?"fa "+t:t),css:Vc.icon}),(0,s.tZ)(X.Z,{variant:"text",buttonCss:Vc.clearButton,onClick:function(){var e=(0,Br.xU)({previous:n.value,value:"",responsive:a,device:i});n.onChange(e)},children:(0,s.tZ)(w.Z,{name:"timesCircle",width:14,height:14})})]}),(0,s.tZ)("div",{children:(0,s.tZ)(X.Z,{variant:"secondary",onClick:Hc(Wc().mark((function e(){var t,r,o;return Wc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b({component:kc,props:{title:h("COM_SPPAGEBUILDER_EDITOR_ICON_FIELD_MODAL_TITLE")},closeOnOutsideClick:!0});case 2:t=e.sent,r=t.action,o=(0,Br.xU)({previous:n.value,value:"CLOSE"===r?l:r,responsive:a,device:i}),n.onChange(o);case 6:case"end":return e.stop()}}),e)}))),children:l?h("COM_SPPAGEBUILDER_EDITOR_REPLACE_ICON_BUTTON_TEXT"):p||h("COM_SPPAGEBUILDER_EDITOR_CHOOSE_ICON_BUTTON_TEXT")})})]})}})};var Vc={wrapper:(0,i.iv)("display:flex;gap:",n.W0[16],";;label:wrapper;"),iconContainer:(0,i.iv)("width:32px;height:32px;",q.iZ.flexCenter(),";border-radius:",n.E0[3],";background-color:",n.qo.base.white,";box-shadow:",n.AF.icon,";color:",n.qo.icon.default,";position:relative;;label:iconContainer;"),icon:(0,i.iv)("font-size:",n.JB[16],";;label:icon;"),clearButton:(0,i.iv)("position:absolute;top:-6px;right:-6px;padding:0;path:first-of-type{fill:",n.qo.icon.hints,";transition:fill 0.3s ease;}:hover{path:first-of-type{fill:",n.qo.icon.default,";}};label:clearButton;")},qc=[{label:"Color",value:"color"},{label:"Image",value:"image"},{label:"Gradient",value:"gradient"}],zc=[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}],Kc=[{label:"Color",value:"color"},{label:"Image",value:"image"},{label:"Gradient",value:"gradient"}];function $c(e){return $c="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},$c(e)}function Xc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xc(Object(r),!0).forEach((function(t){Qc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==$c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==$c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const eu=function(){var e,t,r=(0,L.Gc)(),n=(0,H.$)(),o=(e=(0,c.useState)("basic"),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jc(e,t):void 0}}(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.")}()),i=o[0],a=o[1],l=(0,oe.Q)(),u=l.admin||l.manage,d=(0,$e.d)().showModal,p=(0,D.Z)(C.F.PopupEditor).id,f=(0,le.v)((function(e){return e.appConfig})),v=function(){var e=(0,H.$)();return[{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_ATTACHMENT_FIXED"),value:"fixed"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_ATTACHMENT_SCROLL"),value:"scroll"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_ATTACHMENT_INHERIT"),value:"inherit"}]}(),h=function(){var e=(0,H.$)();return[{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_LEFT_TOP"),value:"0 0"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_LEFT_CENTER"),value:"0 50%"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_LEFT_BOTTOM"),value:"0 100%"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_CENTER_TOP"),value:"50% 0"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_CENTER_CENTER"),value:"50% 50%"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_CENTER_BOTTOM"),value:"50% 100%"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_RIGHT_TOP"),value:"100% 0"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_RIGHT_CENTER"),value:"100% 50%"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_POSITION_RIGHT_BOTTOM"),value:"100% 100%"}]}(),b=function(){var e=(0,H.$)();return[{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_NO_REPEAT"),value:"no-repeat"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_REPEAT_ALL"),value:"repeat"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_REPEAT_HORIZONTALLY"),value:"repeat-x"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_REPEAT_VERTICALLY"),value:"repeat-y"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_REPEAT_INHERIT"),value:"inherit"}]}(),y=function(){var e=(0,H.$)();return[{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_SIZE_COVER"),value:"cover"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_SIZE_CONTAIN"),value:"contain"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_SIZE_INHERIT"),value:"inherit"}]}(),m=function(){var e=(0,H.$)();return[{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_NORMAL"),value:"normal"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_COLOR"),value:"color"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_COLOR_BURN"),value:"color-burn"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_COLOR_DODGE"),value:"color-dodge"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_DARKEN"),value:"darken"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_DIFFERENCE"),value:"difference"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_EXCLUSION"),value:"exclusion"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_HARD_LIGHT"),value:"hard-light"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_HUE"),value:"hue"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_LIGHTEN"),value:"lighten"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_LUMINOSITY"),value:"luminosity"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_MULTIPLY"),value:"multiply"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_OVERLAY"),value:"overlay"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_SATURATION"),value:"saturation"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_SCREEN"),value:"screen"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BLEND_MODE_SOFT_LIGHT"),value:"soft-light"}]}(),g=function(){var e=(0,H.$)();return[{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_POSITION_INSIDE"),value:"inside"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_POSITION_OUTSIDE"),value:"outside"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_POSITION_CUSTOM"),value:"custom"}]}(),E=function(){var e=(0,H.$)();return[{label:e("COM_SPPAGEBUILDER_EDITOR_FILTER_PUBLISHED"),value:"1"},{label:e("COM_SPPAGEBUILDER_EDITOR_FILTER_UNPUBLISHED"),value:"0"},{label:e("COM_SPPAGEBUILDER_EDITOR_FILTER_TRASHED"),value:"-2"}]}(),_=function(){var e=(0,H.$)();return[{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BASIC"),value:"basic"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_STYLES"),value:"styles"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_ADVANCED"),value:"advanced"},{label:e("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CSS"),value:"css"}]}(),O=r.watch("attribs.background_type"),S=r.watch("attribs.overlay_background_type"),I=r.watch("attribs.bg_media_overlay"),x=r.watch("attribs.overlay_bg_media_overlay"),P=["width","max_width","height","max_height","position","overlay","toggle_enter_animation","enter_animation","enter_animation_duration","enter_animation_delay","toggle_exit_animation","exit_animation","exit_animation_duration","exit_animation_delay","background_type","bg_color","bg_media","bg_gradient","bg_media_repeat","bg_media_position","bg_media_attachment","bg_media_size","bg_media_overlay","bg_media_overlay_type","bg_media_overlay_blend_mode","overlay_background_type","overlay_bg_media","overlay_bg_color","overlay_bg_gradient","overlay_bg_media_repeat","overlay_bg_media_position","overlay_bg_media_attachment","overlay_bg_media_size","overlay_bg_media_overlay","overlay_bg_media_overlay_type","overlay_bg_media_overlay_blend_mode","padding","margin","border","border_radius","boxshadow","close_btn_position_x","close_btn_position_y","close_btn_color","close_btn_bg_color","close_btn_bg_color_hover","close_btn_padding","close_btn_border","close_btn_border_radius","close_btn_event_type","close_btn_text","auto_close","auto_close_after","close_outside_click","close_on_esc","disable_page_scrolling","css_class","custom_css","close_on_click"];return(0,c.useEffect)((function(){"popup"===r.getValues("extension_view")&&(void 0===r.getValues("attribs.overlay")&&r.setValue("attribs.overlay",1),void 0===r.getValues("attribs.overlay_background_type")&&(r.setValue("attribs.overlay_background_type","color"),void 0===r.getValues("attribs.overlay_bg_color")&&r.setValue("attribs.overlay_bg_color","rgba(0, 0, 0, 0.7)")),void 0===r.getValues("attribs.background_type")&&(r.setValue("attribs.background_type","color"),void 0===r.getValues("attribs.bg_color")&&r.setValue("attribs.bg_color","white")),void 0===r.getValues("attribs.width")&&r.setValue("attribs.width",{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"}),void 0===r.getValues("attribs.max_width")&&r.setValue("attribs.max_width",{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"}),void 0===r.getValues("attribs.height")&&r.setValue("attribs.height",{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"}),void 0===r.getValues("attribs.max_height")&&r.setValue("attribs.max_height",{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"}),void 0===r.getValues("attribs.border_radius")&&r.setValue("attribs.border_radius",{xl:"",lg:"",md:"",sm:"",xs:"",unit:"px"}),void 0===r.getValues("attribs.close_btn_position_x")&&r.setValue("attribs.close_btn_position_x",{xl:"",lg:"",md:"",sm:"",xs:"",unit:"px"}),void 0===r.getValues("attribs.close_btn_position_y")&&r.setValue("attribs.close_btn_position_y",{xl:"",lg:"",md:"",sm:"",xs:"",unit:"px"}),void 0===r.getValues("attribs.close_btn_border_radius")&&r.setValue("attribs.close_btn_border_radius",0),void 0===r.getValues("attribs.margin")&&r.setValue("attribs.margin","0px 0px 0px 0px"),void 0===r.getValues("attribs.padding")&&r.setValue("attribs.padding","0px 0px 0px 0px"),void 0===r.getValues("attribs.border")&&r.setValue("attribs.border",{border_width:"",border_style:"",border_color:""}),void 0===r.getValues("attribs.position")&&r.setValue("attribs.position",{top:{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"},left:{xl:"",lg:"",md:"",sm:"",xs:"",unit:"%"}}),1===r.getValues("attribs.toggle_enter_animation")&&(r.getValues("attribs.enter_animation")||r.setValue("attribs.enter_animation","fadeIn")),1===r.getValues("attribs.toggle_exit_animation")&&(r.getValues("attribs.exit_animation")||r.setValue("attribs.exit_animation","rotateIn")),void 0===r.getValues("attribs.enter_animation_duration")&&r.setValue("attribs.enter_animation_duration",2e3),void 0===r.getValues("attribs.enter_animation_delay")&&r.setValue("attribs.enter_animation_delay",0),void 0===r.getValues("attribs.exit_animation_duration")&&r.setValue("attribs.exit_animation_duration",2e3),void 0===r.getValues("attribs.exit_animation_delay")&&r.setValue("attribs.exit_animation_delay",0),void 0===r.getValues("attribs.close_btn_color")&&r.setValue("attribs.close_btn_color","black"),void 0===r.getValues("attribs.close_btn_bg_color")&&r.setValue("attribs.close_btn_bg_color","transparent"),void 0===r.getValues("attribs.close_btn_color_hover")&&r.setValue("attribs.close_btn_color_hover","rgba(0, 0, 0, 0.7)"),void 0===r.getValues("attribs.close_btn_bg_color_hover")&&r.setValue("attribs.close_btn_bg_color_hover","transparent"),void 0===r.getValues("attribs.close_btn_icon")&&r.setValue("attribs.close_btn_icon","fas fa-times"),void 0===r.getValues("attribs.close_btn_event_type")&&r.setValue("attribs.close_btn_event_type","normal"),void 0===r.getValues("attribs.close_btn_position")&&r.setValue("attribs.close_btn_position","inside"),P.forEach((function(e){void 0===r.getValues("attribs.".concat(e))&&r.setValue("attribs.".concat(e),"")})))}),[r]),(0,s.BX)("div",{css:tu.wrapper,children:[(0,s.tZ)(kr,{tabList:_,activeTab:i,onChange:a}),"basic"===i&&(0,s.BX)("div",{css:tu.fieldsWrapper,children:[(0,s.BX)(ua.Z,{header:{title:"Layout"},children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.width",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_WIDTH"),min:0,max:r.watch("attribs.width")&&"%"===r.watch("attribs.width.unit")?100:2e3,hasUnit:!0,defaultUnit:"%",responsive:!0}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.max_width",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MAX_WIDTH"),min:0,max:r.watch("attribs.max_width")&&"%"===r.watch("attribs.max_width.unit")?100:2e3,hasUnit:!0,defaultUnit:"%",responsive:!0}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.height",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_HEIGHT"),min:0,max:r.watch("attribs.height")&&"%"===r.watch("attribs.height.unit")?100:2e3,hasUnit:!0,responsive:!0,defaultUnit:"%"}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.max_height",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MAX_HEIGHT"),min:0,max:r.watch("attribs.max_height")&&"%"===r.watch("attribs.max_height.unit")?100:2e3,hasUnit:!0,responsive:!0,defaultUnit:"%"}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.position",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(gc,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_POSITION"),responsive:!0}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_outside_click",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Kt.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_ON_OUTSIDE_CLICK"),helpText:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_ON_OUTSIDE_CLICK_DESC"),isInlineLabel:!0}))})}})]}),(0,s.BX)(ua.Z,{header:{title:"Animation"},children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.toggle_enter_animation",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Kt.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_ENTER_ANIMATION"),isInlineLabel:!0}))})}}),1===r.watch("attribs.toggle_enter_animation")&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.enter_animation",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Qa,Yc({},e))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.enter_animation_duration",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_GLOBAL_DURATION"),max:1e4}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.enter_animation_delay",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_GLOBAL_DELAY"),max:1e4}))})}})]}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.toggle_exit_animation",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Kt.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_EXIT_ANIMATION"),isInlineLabel:!0}))})}}),1===r.watch("attribs.toggle_exit_animation")&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.exit_animation",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Qa,Yc({},e))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.exit_animation_duration",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_GLOBAL_DURATION"),max:1e4}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.exit_animation_delay",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_GLOBAL_DELAY"),max:1e4}))})}})]})]}),(0,s.BX)(ua.Z,{header:{title:"General"},children:[(0,s.tZ)(L.Qr,{control:r.control,name:"published",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_STATUS"),options:(0,Br.qb)(E)}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"language",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_LANGUAGE"),options:f.languages}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"access",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_ACCESS"),options:f.access_levels}))})}}),u&&(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.BX)("div",{css:tu.permissionButtonWrapper,children:[(0,s.tZ)("h5",{children:n("COM_SPPAGEBUILDER_EDITOR_PERMISSION_BUTTON_LABEL")}),(0,s.tZ)(X.Z,{icon:(0,s.tZ)(w.Z,{name:"cog"}),variant:"secondary",disabled:!r.getValues("asset_id"),onClick:function(){d({component:Ta,props:{title:n("COM_SPPAGEBUILDER_EDITOR_PERMISSION_MODAL_TITLE"),id:Number(p)}})},children:n("COM_SPPAGEBUILDER_EDITOR_MANAGE_PERMISSION_BUTTON_LABEL")}),!r.getValues("asset_id")&&(0,s.tZ)("p",{children:n("COM_SPPAGEBUILDER_EDITOR_MANAGE_PERMISSION_HELP_TEXT")})]})})]})]}),"styles"===i&&(0,s.BX)("div",{css:tu.fieldsWrapper,children:[(0,s.BX)(ua.Z,{header:{title:"Popup"},children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.background_type",defaultValue:"none",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(tc,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND"),options:(0,Br.qb)(qc)}))})}}),"none"!==O&&function(e){switch(e){case"color":return(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_color",defaultValue:"white",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(ic,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_COLOR"),transparency:!0}))})}},"attribs.bg_color");case"image":return(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_media",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Aa,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE"),hidePreview:!1,hideAltText:!0}))})}},"attribs.bg_media"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_media_repeat",defaultValue:"no-repeat",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_REPEAT"),options:(0,Br.qb)(b)}))})}},"attribs.bg_media_image_repeat"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_media_size",defaultValue:"cover",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_SIZE"),options:(0,Br.qb)(y)}))})}},"attribs.bg_media_size"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_media_attachment",defaultValue:"fixed",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_ATTACHMENT"),options:(0,Br.qb)(v)}))})}},"attribs.bg_media_attachment"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_media_position",defaultValue:"50% 50%",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_POSITION"),options:(0,Br.qb)(h)}))})}},"attribs.bg_media_position"),(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Na,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_OVERLAY_OPTIONS")})}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_media_overlay",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Kt.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_OVERLAY"),isInlineLabel:!0}))})}},"attribs.bg_media_overlay"),1===I&&(0,s.tZ)(s.HY,{children:(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_media_overlay_blend_mode",defaultValue:"normal",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_OVERLAY_BLEND_MODE"),options:(0,Br.qb)(m)}))})}},"attribs.bg_media_overlay_blend_mode")})]});case"gradient":return(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.bg_gradient",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Pc,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_GRADIENT")}))})}},"attribs.bg_gradient")}}(O),(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Na,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_SPACING_OPTIONS")})}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.padding",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Ul,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_PADDING")}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.margin",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Ul,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MARGIN")}))})}}),(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Na,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BORDER_OPTIONS")})}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.border",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(jl,Yc(Yc({},e),{},{noToggle:!0}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.border_radius",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BORDER_RADIUS"),hasUnit:!0,max:r.watch("attribs.border_radius")&&"%"===r.watch("attribs.border_radius.unit")?100:2e3,responsive:!0}))})}}),(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Na,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_SHADOW_OPTIONS")})}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.boxshadow",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Jl,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BOX_SHADOW")}))})}})]}),(0,s.tZ)(ua.Z,{header:{actionTray:(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay",defaultValue:1,render:function(e){return(0,s.tZ)(Kt.Z,Yc({},e))}}),title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_OVERLAY")},disabledCaretCollapse:!0,isCollapsed:!r.watch("attribs.overlay"),children:(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_background_type",defaultValue:"color",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(tc,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND"),options:(0,Br.qb)(Kc)}))})}},"attribs.overlay_background_type"),function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"color"){case"color":return(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_color",defaultValue:"rgba(0,0,0,0.7)",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(ic,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_COLOR"),transparency:!0}))})}},"attribs.overlay_bg_color");case"image":return(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_media",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Aa,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE"),hidePreview:!1,hideAltText:!0}))})}},"attribs.overlay_bg_media"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_media_repeat",defaultValue:"no-repeat",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_REPEAT"),options:(0,Br.qb)(b)}))})}},"attribs.overlay_bg_media_repeat"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_media_size",defaultValue:"cover",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_SIZE"),options:(0,Br.qb)(y)}))})}},"attribs.overlay_bg_media_size"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_media_attachment",defaultValue:"fixed",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_ATTACHMENT"),options:(0,Br.qb)(v)}))})}},"attribs.overlay_bg_media_attachment"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_media_position",defaultValue:"50% 50%",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_POSITION"),options:(0,Br.qb)(h)}))})}},"attribs.overlay_bg_media_position"),(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Na,{title:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_OVERLAY_OPTIONS")})}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_media_overlay",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Kt.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_OVERLAY"),isInlineLabel:!0}))})}},"attribs.overlay_bg_media_overlay"),1===x&&(0,s.tZ)(s.HY,{children:(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_media_overlay_blend_mode",defaultValue:"normal",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Q.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_IMAGE_OVERLAY_BLEND_MODE"),options:(0,Br.qb)(m)}))})}},"attribs.overlay_bg_media_overlay_blend_mode")})]});case"gradient":return(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.overlay_bg_gradient",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Pc,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_BACKGROUND_GRADIENT")}))})}},"attribs.overlay_bg_gradient")}}(S)]})}),(0,s.BX)(ua.Z,{header:{title:"Close Button"},children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_position",defaultValue:"inside",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(tc,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_POSITION"),options:(0,Br.qb)(g)}))})}}),"custom"===r.watch("attribs.close_btn_position")&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_position_x",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_CUSTOM_POSITION_X"),hasUnit:!0,max:"%"===r.watch("attribs.close_btn_position_x.unit")?100:2e3,responsive:!0}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_position_y",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_CUSTOM_POSITION_Y"),hasUnit:!0,max:"%"===r.watch("attribs.close_btn_position_x.unit")?100:2e3,responsive:!0}))})}})]}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_event_type",defaultValue:"normal",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(tc,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_STATE"),options:(0,Br.qb)(zc)}))})}}),"normal"===r.watch("attribs.close_btn_event_type")&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_color",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(ic,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_COLOR"),transparency:!0}))})}},"attribs.close_btn_color"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_bg_color",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(ic,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_BG_COLOR"),transparency:!0}))})}},"attribs.close_btn_bg_color")]}),"hover"===r.watch("attribs.close_btn_event_type")&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_color_hover",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(ic,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_COLOR"),transparency:!0}))})}},"attribs.close_btn_color_hover"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_bg_color_hover",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(ic,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_BG_COLOR"),transparency:!0}))})}},"attribs.close_btn_bg_color_hover")]}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_padding",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Ul,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_PADDING")}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_icon",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Fc,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_ICON"),chooseIconText:n("COM_SPPAGEBUILDER_EDITOR_CHANGE_ICON_BUTTON_TEXT"),isInlineLabel:!0}))})}},"attribs.close_btn_icon"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_text",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(J.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_TEXT")}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_border_radius",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_BUTTON_BORDER_RADIUS"),max:2e3}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_btn_border",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(jl,Yc(Yc({},e),{},{noToggle:!0}))})}})]})]}),"advanced"===i&&(0,s.tZ)("div",{css:tu.fieldsWrapper,children:(0,s.BX)(ua.Z,{children:[(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.auto_close",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Kt.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_AUTO_CLOSE"),isInlineLabel:!0}))})}}),1===r.watch("attribs.auto_close")&&(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.auto_close_after",defaultValue:1,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)($t.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_AUTO_CLOSE_DELAY")}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_on_esc",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Kt.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_ON_ESC_KEY"),isInlineLabel:!0}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.disable_page_scrolling",defaultValue:0,render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(Kt.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_DISABLE_PAGE_SCROLLING"),isInlineLabel:!0}))})}}),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.close_on_click",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(J.Z,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_ON_CLICK"),placeholder:"Ex: .selector",helpText:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CLOSE_ON_CLICK_DESC")}))})}},"attribs.close_on_click"),(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.css_class",render:function(e){return(0,s.tZ)("div",{css:tu.popupCardInnerSection,children:(0,s.tZ)(yo,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CSS_CLASS")}))})}})]})}),"css"===i&&(0,s.tZ)("div",{css:tu.fieldsWrapper,children:(0,s.tZ)(L.Qr,{control:r.control,name:"attribs.custom_css",render:function(e){return(0,s.tZ)(yo,Yc(Yc({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_CUSTOM_CSS")}))}})})]})};var tu={wrapper:(0,i.iv)(q.iZ.overflowYAuto,";background-color:",n.qo.base.surface,";height:100%;border-right:1px solid ",n.qo.stroke.neutral,";;label:wrapper;"),fieldsWrapper:(0,i.iv)("padding:",n.W0[16]," ",n.W0[10],";display:flex;flex-direction:column;gap:",n.W0[10],";;label:fieldsWrapper;"),popupCardInnerSection:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[2],";padding:",n.W0[8]," ",n.W0[12],";;label:popupCardInnerSection;"),mediaFieldPreview:(0,i.iv)("background-color:",n.qo.background.white,";;label:mediaFieldPreview;"),permissionButtonWrapper:(0,i.iv)("h5{",o.c.caption()," color:",n.qo.text.default,";margin-bottom:",n.W0[4],";}p{",o.c.caption(),";color:",n.qo.text.hints,";margin-top:",n.W0[4],";};label:permissionButtonWrapper;")},ru=r(2739);const nu=r.p+"images/23a8aff50d9e39f0a80e.png";var ou=r(6795);function iu(e){return iu="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},iu(e)}function au(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?au(Object(r),!0).forEach((function(t){cu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):au(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function cu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==iu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==iu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===iu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uu=function(e){var t=(0,le.v)((function(e){return e.appConfig})).access_levels,r=(0,A.I6)(t);return(0,A.Nn)(e)?(0,s.tZ)(zt.Z,lu(lu({},e),{},{options:r,isAccessLevelField:!0})):(0,s.tZ)(Q.Z,lu(lu({},e),{},{options:r}))};var su={type:"linear",color:"",color2:"",pos:0,pos2:100,deg:0,radialPos:"center center"},du=function(e){var t=fu(e);return(0,s.tZ)("div",{css:vu.bodyWrapper,children:(0,s.tZ)("div",{css:vu.body(t)})})},pu=function(e){var t=e.isActive,r=e.type,n=e.activeBackground,o=e.onClick;return(0,s.tZ)("button",{type:"button",css:vu.button({isActive:t,background:x.hF[r],activeBackground:n}),onClick:o})},fu=function(e){var t=e.radialPos,r=void 0===t?"center center":t,n=e.deg,o=void 0===n?0:n,i=e.pos,a=void 0===i?0:i,l=e.pos2,c=void 0===l?100:l,u=e.color,s=e.color2,d=e.type,p="#b5b5b5",f="#f2f2f2",v="linear-gradient(".concat(o,"deg, ").concat(u||p," ").concat(a,"%, ").concat(s||f," ").concat(c,"%)"),h="radial-gradient(at ".concat(r,", ").concat(u||p," ").concat(a,"%, ").concat(s||f," ").concat(c,"%)");return"linear"===d?v:h},vu={bodyWrapper:(0,i.iv)("display:flex;width:244px;height:124px;border-radius:",n.E0[5],";;label:bodyWrapper;"),body:function(e){return(0,i.iv)("width:100%;border-radius:",n.E0[5],";background:",e,";;label:body;")},button:function(e){var t=e.isActive,r=e.background,o=e.activeBackground;return(0,i.iv)(q.iZ.resetButton," width:20px;height:20px;border-radius:",n.E0.circle,";background:",r,";",t&&(0,i.iv)("border:2px solid ",n.qo.stroke.primary,";background:",o,";;label:button;"),";;label:button;")}};function hu(e){return hu="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},hu(e)}function bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(r),!0).forEach((function(t){mu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==hu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===hu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gu=function(e){var t=e.colorProperty,r=e.onChangeColorProperty,n=(0,H.$)(),o=t.deg,i=void 0===o?su.deg:o,a=t.pos,l=void 0===a?su.pos:a,c=t.pos2,u=void 0===c?su.pos2:c,d=t.color,p=t.color2;return(0,s.BX)("div",{children:[(0,s.tZ)(du,yu({},t)),(0,s.BX)("div",{css:Eu.colorPickerWrapper,children:[(0,s.tZ)(gl,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_COLOR_1"),color:d,onChange:function(e){return r(yu(yu({},t),{},{color:e}))},onClose:function(e){return r(yu(yu({},t),{},{color:e}))},hasAlphaField:!1}),(0,s.tZ)(gl,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_COLOR_2"),color:p,onChange:function(e){return r(yu(yu({},t),{},{color2:e}))},onClose:function(e){return r(yu(yu({},t),{},{color2:e}))},hasAlphaField:!1})]}),(0,s.BX)("div",{css:Eu.linearProperty,children:[(0,s.tZ)(_l.Z,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_START"),isInlineLabel:!0,value:l.toString(),onChange:function(e){return r(yu(yu({},t),{},{pos:(0,Br.He)(e)}))},inputContent:"%"}),(0,s.tZ)(_l.Z,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_END"),isInlineLabel:!0,value:u.toString(),onChange:function(e){return r(yu(yu({},t),{},{pos2:(0,Br.He)(e)}))},inputContent:"%"}),(0,s.tZ)(_l.Z,{label:n("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_ANGLE"),isInlineLabel:!0,value:i.toString(),onChange:function(e){return r(yu(yu({},t),{},{deg:(0,Br.He)(e)}))},inputContent:"deg"})]})]})};var Eu={linearWrapper:(0,i.iv)("display:flex;width:244px;height:124px;border-radius:",n.E0[5],";;label:linearWrapper;"),linearBody:function(e){return(0,i.iv)("width:100%;border-radius:",n.E0[5],";background-image:",e,";;label:linearBody;")},colorPickerWrapper:(0,i.iv)("display:flex;justify-content:space-between;margin:",n.W0[12]," 0;;label:colorPickerWrapper;"),linearProperty:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";;label:linearProperty;")};function _u(e){return _u="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},_u(e)}function Ou(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(r),!0).forEach((function(t){Su(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ou(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Su(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==_u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==_u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Iu=function(e){var t,r=e.colorProperty,n=e.onChangeColorProperty,o=(0,H.$)(),i=r.pos,a=void 0===i?su.pos:i,l=r.pos2,c=void 0===l?su.pos2:l,u=r.color,d=r.color2,p=[{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_TOP_CENTER"),value:"top center"},{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_TOP_LEFT"),value:"top left"},{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_TOP_RIGHT"),value:"top right"},{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_CENTER_CENTER"),value:"center center"},{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_CENTER_LEFT"),value:"center left"},{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_CENTER_RIGHT"),value:"center right"},{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_BOTTOM_CENTER"),value:"bottom center"},{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_BOTTOM_LEFT"),value:"bottom left"},{label:o("COM_SPPAGEBUILDER_EDITOR_GRADIENT_ALIGNMENT_BOTTOM_RIGHT"),value:"bottom right"}];return(0,s.BX)("div",{children:[(0,s.tZ)(du,wu({},r)),(0,s.BX)("div",{css:xu.colorPickerWrapper,children:[(0,s.tZ)(gl,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_COLOR_1"),color:u,onChange:function(e){return n(wu(wu({},r),{},{color:e}))},onClose:function(e){return n(wu(wu({},r),{},{color:e}))},hasAlphaField:!1}),(0,s.tZ)(gl,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_COLOR_2"),color:d,onChange:function(e){return n(wu(wu({},r),{},{color2:e}))},onClose:function(e){return n(wu(wu({},r),{},{color2:e}))},hasAlphaField:!1})]}),(0,s.BX)("div",{css:xu.linearProperty,children:[(0,s.tZ)(_l.Z,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_START"),isInlineLabel:!0,value:a.toString(),onChange:function(e){return n(wu(wu({},r),{},{pos:(0,Br.He)(e)}))},inputContent:"%"}),(0,s.tZ)(_l.Z,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_END"),isInlineLabel:!0,value:c.toString(),onChange:function(e){return n(wu(wu({},r),{},{pos2:(0,Br.He)(e)}))},inputContent:"%"}),(0,s.tZ)(Ha.Z,{label:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_PROPERTY_ANGLE"),value:null!==(t=p.find((function(e){return r.radialPos===e.value})))&&void 0!==t?t:p[3],placeholder:o("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_SELECT_ANGLE_PLACEHOLDER"),options:p,onChange:function(e){return n(wu(wu({},r),{},{radialPos:e.value}))},clearOption:function(){return n(wu(wu({},r),{},{radialPos:"center center"}))},isSearchable:!0})]})]})};var xu={linearWrapper:(0,i.iv)("display:flex;width:244px;height:124px;border-radius:",n.E0[5],";;label:linearWrapper;"),linearBody:function(e){return(0,i.iv)("width:100%;border-radius:",n.E0[5],";background-image:",e,";;label:linearBody;")},colorPickerWrapper:(0,i.iv)("display:flex;justify-content:space-between;margin:",n.W0[12]," 0;;label:colorPickerWrapper;"),linearProperty:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";;label:linearProperty;")};function Cu(e){return Cu="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},Cu(e)}function Pu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Au(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(r),!0).forEach((function(t){Lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Cu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Cu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Cu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Du=function(e){var t,r,n=e.colorProperty,o=e.onChangeColorProperty,i=(t=(0,c.useState)(n.color),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Tu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tu(e,t):void 0}}(t,r)||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.")}()),a=i[0],l=i[1];(0,c.useEffect)((function(){l(n.color)}),[n.color]);var u=function(e){l(e);var t=(0,A.K6)(e),r=t.validColor,i=t.color,a=t.isCssVariable;(r.isValid||a)&&o(Au(Au({},n),{},{color:i}))};return(0,s.BX)("div",{css:Zu.wrapper,children:[(0,s.tZ)(il.Jg,{color:(0,A.K6)(n.color).validColor.toRgb(),onChange:function(e){var t=new el.C(e),r=(1===e.a?t.toHexString():t.toRgbString()).toUpperCase();l(r),o(Au(Au({},n),{},{color:r}))}}),(0,s.tZ)("input",{type:"text",css:Zu.input,value:a,placeholder:"#000000",onChange:function(e){return u(e.target.value)}}),(0,s.tZ)(nl,{onColorChange:u})]})};var Zu={wrapper:(0,i.iv)("& .react-colorful{gap:",n.W0[10],";width:244px;height:280px;}& .react-colorful__saturation-pointer{width:10px;height:10px;}& .react-colorful__hue-pointer,& .react-colorful__alpha-pointer{width:10px;height:10px;}& .react-colorful__saturation{border-radius:",n.E0[8],";border-bottom:unset;}& .react-colorful__hue,& .react-colorful__alpha{height:8px;border-radius:",n.E0[8],";};label:wrapper;"),input:(0,i.iv)(o.c.body()," background-color:",n.qo.base.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";outline:none;padding:",n.W0[6]," ",n.W0[12],";margin-top:",n.W0[12],";width:100%;:focus{outline:none;box-shadow:",n.AF.outline,";};label:input;")};function ju(e){return ju="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},ju(e)}function Ru(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ru(Object(r),!0).forEach((function(t){Mu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ru(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ju(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ju(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ju(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ku=function(e){var t=e.colorProperty,r=e.onChangeColorProperty,n=e.isOpen,o=e.triggerRef,i=e.closeColorPicker,a=(0,ca.l)({isOpen:n,triggerRef:o,gap:20,arrow:"right"}),l=a.position,c=a.popoverRef,u=(0,H.$)();return(0,s.tZ)(ca.h,{isOpen:n,onClickOutside:function(){i()},children:(0,s.BX)("div",{css:[Gu.container,{position:"absolute",left:l.left,top:l.top},";label:AdvancedColorPicker;"],ref:c,children:[(0,s.BX)("div",{css:Gu.header,children:[(0,s.tZ)("span",{children:u("COM_SPPAGEBUILDER_EDITOR_COLOR_PICKER_TITLE")}),(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:i,children:(0,s.tZ)(w.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:Gu.content,children:[(0,s.BX)("div",{css:Gu.nav,children:[(0,s.tZ)(pu,{type:"solid",isActive:"solid"===t.type,activeBackground:t.color,onClick:function(){return r(Bu(Bu({},t),{},{type:"solid"}))}}),(0,s.tZ)(pu,{type:"linear",isActive:"linear"===t.type,activeBackground:fu(t),onClick:function(){return r(Bu(Bu({},t),{},{type:"linear"}))}}),(0,s.tZ)(pu,{type:"radial",isActive:"radial"===t.type,activeBackground:fu(t),onClick:function(){return r(Bu(Bu({},t),{},{type:"radial"}))}})]}),"solid"===t.type&&(0,s.tZ)(Du,{colorProperty:t,onChangeColorProperty:r}),"linear"===t.type&&(0,s.tZ)(gu,{colorProperty:t,onChangeColorProperty:r}),"radial"===t.type&&(0,s.tZ)(Iu,{colorProperty:t,onChangeColorProperty:r})]})]})})};var Gu={container:(0,i.iv)("background-color:",n.qo.background.white,";border:1px solid ",n.qo.stroke.neutral,";box-shadow:",n.AF.popover,";border-radius:",n.E0[8],";max-width:278px;width:100%;;label:container;"),content:(0,i.iv)("padding:",n.W0[16],";;label:content;"),header:(0,i.iv)("padding:",n.W0[12]," ",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:space-between;align-items:center;span{",o.c.caption("medium"),";};label:header;"),nav:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[20],";margin-bottom:",n.W0[12],";;label:nav;")},Nu=(0,c.forwardRef)((function(e,t){var r=e.name,n=e.color,o=e.onClick,i=e.disabled,a=e.clearColor,l=e.isClearable,c=void 0===l||l;return(0,s.BX)("div",{ref:t,css:Hu.wrapper,children:[(0,s.tZ)("button",{type:"button",css:Hu.colorWrapper,onClick:o,disabled:i,children:n?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Hu.colorSwatch(n)}),c&&(0,s.tZ)("span",{role:"button",tabIndex:0,css:Hu.clearButton,onClick:function(e){e.stopPropagation(),a()},onKeyDown:A.ZT,children:(0,s.tZ)(w.Z,{name:"crossCircled"})})]}):(0,s.tZ)(Wu,{})}),(0,s.tZ)("span",{children:r})]})})),Wu=function(){return(0,s.tZ)("div",{css:Hu.emptyColor})};const Uu=Nu;var Hu={wrapper:(0,i.iv)(q.iZ.resetButton," background-color:",n.qo.background.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[5],";display:flex;align-items:center;gap:",n.W0[8],";overflow:hidden;&:focus-within{box-shadow:",n.AF.outline,";};label:wrapper;"),colorWrapper:(0,i.iv)(q.iZ.resetButton," position:relative;;label:colorWrapper;"),clearButton:{name:"1imvnip-clearButton",styles:"position:absolute;top:1px;right:-6px;label:clearButton;"},colorSwatch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFFFFF";return(0,i.iv)("width:40px;height:20px;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[4],";background:",e,";overflow:hidden;margin:",n.W0[6]," 0 ",n.W0[6]," ",n.W0[6],";;label:colorSwatch;")},emptyColor:(0,i.iv)("width:40px;height:20px;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[4],";overflow:hidden;margin:",n.W0[6]," 0 ",n.W0[6]," ",n.W0[6],";background-image:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);;label:emptyColor;")};function Fu(e){return Fu="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},Fu(e)}function Vu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vu(Object(r),!0).forEach((function(t){zu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Fu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Fu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Fu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ku(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const $u=function(e){var t,r,n=e.field,o=e.fieldState,i=e.label,a=e.disabled,l=e.loading,u=e.responsive,d=e.responsiveOrientation,p=e.isInlineLabel,f=void 0!==p&&p,v=e.helpText,h=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Ku(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ku(e,t):void 0}}(t,r)||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.")}()),b=h[0],y=h[1],m=(0,c.useRef)(null),g=(0,H.$)();return(0,s.tZ)(bo.Z,{field:n,fieldState:o,disabled:a,loading:l,label:i,responsive:u,responsiveOrientation:d,isInlineLabel:f,helpText:v,children:function(){var e,t=null!==(e=n.value)&&void 0!==e?e:su,r=t.color,o=fu(t);return(0,s.BX)(s.HY,{children:["solid"===t.type?(0,s.tZ)(dl,{ref:m,color:r,onChangeColor:function(e){return n.onChange(qu(qu({},t),{},{color:e}))},disabled:a,onClick:function(){return y(!0)}}):(0,s.tZ)(Uu,{ref:m,name:g("linear"===t.type?"COM_SPPAGEBUILDER_EDITOR_GRADIENT_LINEAR":"COM_SPPAGEBUILDER_EDITOR_GRADIENT_RADIAL"),color:r?o:"",onClick:function(){return y(!0)},clearColor:function(){return n.onChange(qu(qu({},t),{},{color:"",color2:""}))}}),(0,s.tZ)(ku,{colorProperty:t,onChangeColorProperty:n.onChange,isOpen:b,triggerRef:m,closeColorPicker:function(){return y(!1)}})]})}})},Xu=function(e){var t=e.label,r=e.options,n=e.field,o=e.fieldState,i=e.disabled,a=e.loading,l=e.onChange,c=e.responsive,u=e.responsiveOrientation,d=e.helpText;return 0===r.length?null:(0,s.tZ)(bo.Z,{label:t,field:n,fieldState:o,disabled:i,loading:a,responsive:c,responsiveOrientation:u,helpText:d,children:function(e){var t=e.data,o=t.device,a=t.responsive,c=(0,Br.o5)(n.value,o);return(0,s.tZ)(s.HY,{children:(0,s.tZ)(kr,{variant:"secondary",activeTab:c,tabList:r,onChange:function(e){var t=(0,Br.xU)({previous:n.value,value:e,responsive:a,device:o});n.onChange(t),l&&l(t)},disabled:i})})}})},Yu=r.p+"images/1924b8a0608a4b4c1b70.svg",Qu=function(){var e=(0,H.$)(),t=(0,D.Z)(C.F.PageEditor).id,r=U().savePageContent;return(0,s.BX)("div",{css:Ju.wrapper,children:[(0,s.tZ)("img",{src:Yu,width:135,height:152,alt:"Illustration"}),(0,s.tZ)("p",{css:Ju.text,children:e("COM_SPPAGEBUILDER_EDITOR_ADVANCED_SETTINGS_MESSAGE")}),(0,s.BX)(z.rU,{to:"".concat(ga.Z.APPLICATION_ROOT,"index.php?option=com_sppagebuilder&view=form&layout=edit&tmpl=component&id=").concat(t),css:Ju.permalinkButton,target:"_blank",rel:"noreferrer nofollow",onClick:function(){r()},children:[(0,s.tZ)(w.Z,{name:"parmaLink",width:16,height:16}),(0,s.tZ)("span",{children:e("COM_SPPAGEBUILDER_EDITOR_ADVANCED_SETTINGS_FRONTEND_BUTTON")})]})]})};var Ju={wrapper:(0,i.iv)("background-color:",n.qo.base.white,";border-radius:",n.E0[6],";padding:",n.W0[28]," ",n.W0[32],";display:flex;flex-direction:column;justify-content:center;align-items:center;gap:",n.W0[24],";;label:wrapper;"),text:(0,i.iv)(o.c.body(),";text-align:center;;label:text;"),permalinkButton:(0,i.iv)(q.iZ.resetButton,";background-color:",n.qo.base.primary,";border-radius:",n.E0[24],";color:",n.qo.text.white,";padding:",n.W0[2]," ",n.W0[16]," ",n.W0[2]," ",n.W0[4],";display:flex;gap:",n.W0[6],";align-items:center;svg{fill:none;}span{",o.c.body(),";color:",n.qo.text.white,";line-height:",n.Nv[28],";}:hover{svg{color:",n.qo.text.white,";}};label:permalinkButton;")};function es(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ts=function(e){var t,r,n=e.label,o=e.field,i=e.fieldState,a=e.disabled,l=e.loading,u=e.helpText,d=e.onChange,p=e.min,f=e.max,v=e.responsive,h=e.responsiveOrientation,b=(t=(0,c.useState)("slider"),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return es(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?es(e,t):void 0}}(t,r)||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.")}()),y=b[0],m=b[1],g=(0,Br.o5)(o.value,x.zu);return(0,c.useEffect)((function(){if((0,A.$K)(g)){var e=g.replace(/\s+/," ").split(" ");0===g.trim().length&&(e=g.split("")),m(4===e.length?"box":"slider")}else m("slider")}),[g]),(0,s.tZ)(bo.Z,{label:n,field:o,fieldState:i,disabled:a,loading:l,helpText:u,responsive:v,responsiveOrientation:h,children:function(e){var t=e.attributes,r=e.data,n=r.device,i=r.responsive,a=(0,Br.o5)(o.value,n);return(0,s.tZ)(s.HY,{children:"slider"===y?(0,s.tZ)(_l.Z,{value:a,onChange:function(e){var t,r=(0,Br.xU)({previous:o.value,value:null!==(t=(0,Br.BB)(e))&&void 0!==t?t:"",responsive:i,device:n});o.onChange(r),d&&d(r)},onToggle:function(){var e=(0,A.$K)(a)&&a.length>0?"".concat(a,"px ").concat(a,"px ").concat(a,"px ").concat(a,"px"):" ".repeat(4),t=(0,Br.xU)({previous:o.value,value:e,responsive:i,device:n});o.onChange(t),d&&d(t),m("box")},min:null!=p?p:x.a7.min,max:null!=f?f:x.a7.max,disabled:t.disabled}):(0,s.tZ)(Il,{value:a,onChange:function(e){var t=(0,Br.xU)({previous:o.value,value:e,responsive:i,device:n});o.onChange(t),d&&d(t)},onToggle:function(){var e=(0,A.$K)(a)&&a.trim().length>0?parseInt(a.split(/\s+/)[0]):"";o.onChange(e.toString()),d&&d(e.toString()),m("slider")}})})}})},rs=r.p+"images/dbd27c27842b486c246a.svg",ns=function(e){var t=e.title,r=e.message,n=e.isOldAddon,o=e.variation,i=void 0===o?"warning":o,a=e.field,l=e.fieldState,c=(0,H.$)();return(0,s.tZ)(bo.Z,{field:a,fieldState:l,children:function(){return n?(0,s.tZ)(An.Z,{emptyStateImage:rs,imageAltText:c("COM_SPPAGEBUILDER_EDITOR_GROUP_ATTENTION_IMAGE_ALT"),title:t,content:r,orientation:"vertical",wrapperCss:is.emptyStateWrapperCss}):(0,s.BX)("div",{css:is.alert(i),children:[(0,s.tZ)(w.Z,{name:"exclamationTriangle"}),(0,s.tZ)("span",{children:r})]})}})};var os={warning:{background:n.qo.background.warning,text:n.qo.text.warning},success:{background:n.qo.background.success,text:n.qo.text.success},error:{background:n.qo.background.error,text:n.qo.text.error}},is={emptyStateWrapperCss:(0,i.iv)("padding:",n.W0[36]," ",n.W0[36]," ",n.W0[40],";>img{max-width:104px;};label:emptyStateWrapperCss;"),alert:function(e){return(0,i.iv)("padding:",n.W0[10],";background-color:",os[e].background,";color:",os[e].text,";border-radius:",n.E0[6],";display:flex;flex-direction:column;gap:",n.W0[8],";svg{color:",os[e].text,";width:30px;height:30px;align-self:center;};label:alert;")}};const as=function(e){var t=e.label,r=e.options,n=e.field,o=e.fieldState,i=e.disabled,a=e.loading,l=e.onChange,c=e.responsive,u=e.responsiveOrientation,d=e.helpText;return(0,s.tZ)(bo.Z,{label:t,field:n,fieldState:o,disabled:i,loading:a,responsive:c,responsiveOrientation:u,helpText:d,children:function(e){var t=e.data,o=t.device,i=t.responsive,a=(0,Br.o5)(n.value,o);return(0,s.tZ)(kr,{variant:"secondary",activeTab:a,tabList:r,onChange:function(e){var t=(0,Br.xU)({previous:n.value,value:e,responsive:i,device:o});n.onChange(t),l&&l(t)}})}})};function ls(e){return ls="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},ls(e)}var cs=["context"],us=["context"];function ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ds(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(r),!0).forEach((function(t){ps(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ss(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ps(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==ls(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==ls(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ls(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fs(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const vs=function(e){var t=e.context,r=void 0===t?"com_content":t,n=(0,le.v)((function(e){return e.appConfig})),o="com_easystore"===r?n.easystore_categories:n.article_categories,i=(0,A.I6)(o);if((0,A.Nn)(e)){e.context;var a=fs(e,cs);return(0,s.tZ)(zt.Z,ds(ds({},a),{},{options:i,hasAllCategory:"com_easystore"!==r}))}e.context;var l=fs(e,us);return(0,s.tZ)(Q.Z,ds(ds({},l),{},{options:i}))};function hs(e){return hs="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},hs(e)}function bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ys(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bs(Object(r),!0).forEach((function(t){ms(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ms(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==hs(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===hs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Es(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Es(e,t):void 0}}(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 Es(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _s={opacity:{label:"Opacity",min:0,max:100,unit:"%"},blur:{label:"Blur",min:0,max:200,unit:"px"},brightness:{label:"Brightness",min:0,max:100,unit:"%"},contrast:{label:"Contrast",min:0,max:200,unit:"%"},saturate:{label:"Saturation",min:0,max:200,unit:"%"},invert:{label:"Invert color",min:0,max:100,unit:"%"},grayscale:{label:"Grayscale",min:0,max:100,unit:"%"},sepia:{label:"Sepia",min:0,max:100,unit:"%"},hue_rotate:{label:"Hue rotate",min:0,max:360,unit:"deg"}};const Os=function(e){var t=e.label,r=e.field,n=e.fieldState,o=e.disabled,i=e.helpText,a=e.onChange,l=e.responsive,u=e.responsiveOrientation,d=e.isInline,p=void 0!==d&&d,f=r.value;(0,A.$K)(f)||(f={});var v=gs((0,c.useState)(f),2),h=v[0],b=v[1],y=(0,te.N)(h),m=(0,ko.F)((function(e){return e.payload})),g=m.sectionIndex,E=m.columnIndex,_=m.addonIndex,O=m.tableItem,w=(0,Go.s)((function(e){return e.currentState}));return(0,c.useEffect)((function(){b(f)}),[g,E,_,O,w]),(0,c.useEffect)((function(){r.onChange(y),a&&a(y)}),[y]),(0,s.tZ)(bo.Z,{label:t,field:r,fieldState:n,disabled:o,helpText:i,responsive:l,responsiveOrientation:u,isInlineLabel:p,children:function(e){var t=e.attributes;return(0,A.J0)(_s).map((function(e){var r=gs(e,2),n=r[0],o=r[1];return(0,s.tZ)(_l.Z,{label:o.label,value:h[n],onChange:function(e){b((function(t){return ys(ys({},t),{},ms({},n,e))}))},min:o.min,max:o.max,disabled:t.disabled,isInlineLabel:p,staticUnit:o.unit},o.label)}))}})};var ws=r(7839),Ss=r(680);const Is=function(e){var t=e.field,r=e.fieldState,n=e.label,o=e.disabled,i=e.onChange,a=e.responsive,l=e.responsiveOrientation,u=e.helpText,d=(0,H.$)(),p=(0,ws.Sh)(),f=(0,le.v)((function(e){return e.appConfig.is_google_fonts_disabled})),v=(0,c.useMemo)((function(){var e;return(0,Ss.c)(null!==(e=p.data)&&void 0!==e?e:[],f)}),[p.data,f]),h=v.find((function(e){return e.value===t.value}));return(0,s.tZ)(bo.Z,{field:t,fieldState:r,label:n,disabled:o,responsive:a,responsiveOrientation:l,helpText:u,children:function(){return(0,s.tZ)(Ha.Z,{value:h,options:v,placeholder:d("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),onChange:function(e){t.onChange(e.value),i&&i(e.value)},infiniteScroll:!0})}})};function xs(e){return xs="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},xs(e)}function Cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ps(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(r),!0).forEach((function(t){As(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function As(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==xs(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===xs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ls=[{label:"",value:"underline",icon:"underline"},{label:"",value:"italic",icon:"italic"},{label:"",value:"uppercase",icon:"uppercaseDuo"}];const Ts=function(e){var t=e.label,r=void 0===t?"":t,n=e.values,o=e.onChange,i=e.wrapperStyle,a=(0,A.Zt)(n).filter((function(e){return!!n[e]}));return(0,s.BX)("div",{css:[Ds.textDecorationWrapper({hasLabel:!!r}),i,";label:TextDecoration;"],children:[!!r&&(0,s.tZ)("div",{children:r}),(0,s.tZ)(kr,{variant:"secondary",tabList:Ls,activeTab:a,onChange:function(e){var t=Ps(Ps({},n),{},As({},e,!n[e]));o(t)},wrapperCss:Ds.tabWrapperCss})]})};var Ds={textDecorationWrapper:function(e){var t=e.hasLabel,r=void 0!==t&&t;return(0,i.iv)(r&&(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[4],";>p{",o.c.caption(),";};label:textDecorationWrapper;"),";;label:textDecorationWrapper;")},tabWrapperCss:{name:"z2x1bx-tabWrapperCss",styles:"width:100%;height:32px;label:tabWrapperCss;"}};function Zs(e){return Zs="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},Zs(e)}function js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?js(Object(r),!0).forEach((function(t){Bs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):js(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Zs(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ms=function(e){var t,r=e.field,n=e.fieldState,o=e.onChange,i=e.label,a=e.responsive,l=e.responsiveOrientation,c=e.helpText,u=(0,H.$)(),d=(0,A.$K)(r.value)?r.value:{},p={italic:d.italic,underline:d.underline,uppercase:d.uppercase},f=[{value:"",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_FONT_WEIGHT")},{value:"100",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_THIN")},{value:"200",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_EXTRA_THIN")},{value:"300",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_LIGHT")},{value:"400",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_NORMAL")},{value:"500",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_MEDIUM")},{value:"600",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_SEMI_BOLD")},{value:"700",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_BOLD")},{value:"800",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_EXTRA_BOLD")},{value:"900",label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_BLACK")}],v={label:u("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_FONT_WEIGHT"),value:""},h=null!==(t=f.find((function(e){return e.value===d.weight})))&&void 0!==t?t:v;return(0,s.tZ)(bo.Z,{label:i,field:r,fieldState:n,responsive:a,responsiveOrientation:l,helpText:c,children:function(){return(0,s.BX)("div",{css:ks.wrapper,children:[(0,s.tZ)(Ts,{values:p,onChange:function(e){var t=Rs(Rs({},d),e);r.onChange(t),o&&o(t)},wrapperStyle:ks.wrapperStyle}),(0,s.tZ)(Ha.Z,{options:f,value:h,onChange:function(e){var t=Rs(Rs({},d),{},{weight:e.value});r.onChange(t),o&&o(t)},wrapperStyle:ks.wrapperStyle,isFontWeight:!0})]})}})};var ks={wrapper:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[8],";;label:wrapper;"),wrapperStyle:{name:"164ecj-wrapperStyle",styles:"max-width:136px;width:100%;height:32px;label:wrapperStyle;"}};const Gs=function(e){var t=e.label,r=e.field,n=e.fieldState,o=e.disabled,i=e.loading,a=e.onChange,l=e.headingsOnly,c=e.responsive,u=e.responsiveOrientation,d=e.helpText,p=function(){return(arguments.length>0&&void 0!==arguments[0]&&arguments[0]?["h1","h2","h3","h4","h5","h6"]:["h1","h2","h3","h4","h5","h6","div","p"]).map((function(e){return{label:"",value:e,icon:Br.wx[e]}}))}(!!l);return(0,s.tZ)(bo.Z,{label:t,field:r,fieldState:n,disabled:o,loading:i,responsive:c,responsiveOrientation:u,helpText:d,children:function(e){var t=e.data,n=t.device,o=t.responsive,i=(0,Br.o5)(r.value,n);return(0,s.tZ)(kr,{variant:"secondary",activeTab:null!=i?i:"",tabList:p,onChange:function(e){var t=(0,Br.xU)({previous:r.value,value:e,responsive:o,device:n});r.onChange(t),a&&a(t)}})}})};var Ns=function(e){return fe.u.post(ce.H.IMAGE_SHAPE,{shape:(t=e.shape,r=t.replace(/fill="([^"]+)"/g,'fill="currentColor"'),btoa(r))});var t,r},Ws=function(e){return fe.u.delete(ce.H.IMAGE_SHAPE,{params:{id:e}})};function Us(e){return Us="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},Us(e)}function Hs(){Hs=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Us(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Fs(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function Vs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(r),!0).forEach((function(t){zs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Us(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Us(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Us(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ks=function(e){var t=e.title,r=e.closeModal,n=(0,H.$)(),o=(0,S.p)().showToast,i=(0,re.O)({defaultValues:{svg:""}}),a=function(){var e=(0,S.p)().showToast,t=(0,de.NL)(),r=(0,H.$)();return(0,pe.D)({mutationFn:Ns,onSuccess:function(){t.invalidateQueries(["ImageShapes"]),e({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_LANGUAGES_PAGE_SUCCESS_MESSAGE")})},onError:function(t){e({type:"danger",message:t.message})}})}();return(0,s.BX)(Ne.Z,{onClose:function(){return r({action:"CLOSE"})},title:t,headerCss:$s.modalHeaderCss,contentCss:$s.modalContentCss,wrapperCss:$s.modalWrapper,children:[(0,s.tZ)("div",{css:$s.content,children:(0,s.tZ)(L.Qr,{name:"svg",control:i.control,render:function(e){return(0,s.tZ)(Vo,qs(qs({},e),{},{label:n("COM_SPPAGEBUILDER_EDITOR_SVG_SINGLE_PATH_ONLY")}))}})}),(0,s.BX)("div",{css:$s.footerWrapper,children:[(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){return r({action:"CLOSE"})},children:n("COM_SPPAGEBUILDER_EDITOR_CANCEL")}),(0,s.tZ)(X.Z,{loading:a.isLoading,onClick:i.handleSubmit(function(){var e,t=(e=Hs().mark((function e(t){return Hs().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,A._V)(t.svg)){e.next=6;break}return e.next=3,a.mutateAsync({shape:t.svg});case 3:r({action:"CLOSE"}),e.next=7;break;case 6:o({type:"danger",message:n("COM_SPPAGEBUILDER_EDITOR_NOT_A_VALID_SVG_SHAPE")});case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Fs(i,n,o,a,l,"next",e)}function l(e){Fs(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),children:n("COM_SPPAGEBUILDER_EDITOR_SVG_SAVE")})]})]})},$s={modalWrapper:{name:"1utdhwa-modalWrapper",styles:"max-width:450px;label:modalWrapper;"},content:(0,i.iv)("margin:",n.W0[12]," ",n.W0[24],";;label:content;"),footerWrapper:(0,i.iv)("display:flex;justify-content:end;gap:",n.W0[8],";padding:",n.W0[16]," ",n.W0[24],";box-shadow:",n.AF.dividerTop,";;label:footerWrapper;"),modalHeaderCss:(0,i.iv)("padding:",n.W0[12]," ",n.W0[24],";;label:modalHeaderCss;"),modalContentCss:(0,i.iv)("background-color:",n.qo.background.white,";;label:modalContentCss;")};function Xs(e){return Xs="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},Xs(e)}function Ys(){Ys=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Xs(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Qs(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function Js(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Qs(i,n,o,a,l,"next",e)}function l(e){Qs(i,n,o,a,l,"throw",e)}a(void 0)}))}}const ed=function(e){var t,r,n=e.label,o=e.field,i=e.options,a=e.fieldState,l=e.disabled,c=e.loading,u=e.onChange,d=e.helpText,p=e.columns,f=void 0===p?2:p,v=(0,H.$)(),h=(r=(0,S.p)().showToast,(0,ue.a)({queryKey:["ImageShapes"],queryFn:function(){return fe.u.get(ce.H.IMAGE_SHAPE).then((function(e){return e.data}))},onError:function(e){r({type:"danger",message:e.message})}})),b=(t=(0,$e.d)().showModal,function(e){return t({component:Ks,props:e,closeOnOutsideClick:!0})}),y=(0,ee.g)(),m=h.data,g=function(){var e=(0,de.NL)(),t=(0,S.p)().showToast,r=(0,H.$)();return(0,pe.D)({mutationFn:Ws,onSuccess:function(){t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_SVG_SHAPES_DELETE_SUCCESS_MESSAGE")}),e.invalidateQueries(["ImageShapes"])},onError:function(e){t({type:"danger",message:e.message})}})}(),E=function(){var e=Js(Ys().mark((function e(t){return Ys().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y({title:v("COM_SPPAGEBUILDER_EDITOR_DELETE_SVG_CONTENT_TITLE"),confirmationMessage:v("COM_SPPAGEBUILDER_EDITOR_DELETE_SVG_CONTENT_MESSAGE"),skipMutation:!0});case 2:"CONFIRM"===e.sent.action&&g.mutate(t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,s.tZ)(bo.Z,{label:n,field:o,fieldState:a,disabled:l,loading:c,helpText:d,children:function(e){var t=e.data,r=t.responsive,n=t.device,a=(0,Br.o5)(o.value,n);return(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:td.addButtonWrapper,children:(0,s.tZ)(X.Z,{icon:(0,s.tZ)(w.Z,{name:"plus"}),onClick:Js(Ys().mark((function e(){return Ys().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b({title:v("COM_SPPAGEBUILDER_EDITOR_INSERT_SVG_SHAPE")});case 2:case"end":return e.stop()}}),e)}))),children:v("COM_SPPAGEBUILDER_EDITOR_SVG")})}),(0,s.BX)("div",{css:td.wrapper({columns:f}),children:[i.map((function(e){return(0,s.tZ)(X.Z,{variant:"text",buttonCss:td.thumbItem({isActive:a===e.value}),onClick:function(){var t=(0,Br.xU)({previous:o.value,value:e.value,responsive:r,device:n});o.onChange(t),u&&u(t)},children:e.icon&&(0,s.tZ)("span",{css:td.icon({isActive:a===e.value}),dangerouslySetInnerHTML:{__html:e.icon}})},e.value)})),null==m?void 0:m.map((function(e){return(0,s.BX)(X.Z,{variant:"text",buttonCss:td.thumbItem({isActive:a===e.shape}),onClick:function(){var t=(0,Br.xU)({previous:o.value,value:e.shape,responsive:r,device:n});o.onChange(t),u&&u(t)},children:[(0,s.tZ)("span",{css:[td.icon({isActive:a===e.shape}),td.iconSvg,";label:ImageShapeField;"],dangerouslySetInnerHTML:{__html:atob(e.shape)}}),(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"trash"}),buttonCss:td.deleteButton,height:.5,width:.5,onClick:function(){E(e.id)},loading:g.isLoading})]},e.id)}))]})]})}})};var td={wrapper:function(e){var t=e.columns;return(0,i.iv)("display:grid;grid-template-columns:repeat(",t,", 1fr);max-height:375px;",q.iZ.overflowYAuto,";;label:wrapper;")},icon:function(e){var t=e.isActive;return(0,i.iv)("width:100%;border:1px solid ",t?n.qo.icon.primary:n.qo.icon.neutral,";border-radius:",n.E0[6],";;label:icon;")},iconSvg:(0,i.iv)("svg{opacity:0.2;height:80px;width:80px;}background:",n.qo.background.svgShape,";&:hover+button{opacity:1;};label:iconSvg;"),thumbItem:function(e){var t=e.isActive;return(0,i.iv)("padding:",n.W0[6],";",t&&(0,i.iv)("svg{color:",n.qo.icon.primary,";}padding:",n.W0[6],";;label:thumbItem;"),";;label:thumbItem;")},addButtonWrapper:(0,i.iv)("display:grid;place-content:center;margin-bottom:",n.W0[6],";;label:addButtonWrapper;"),deleteButton:(0,i.iv)("position:absolute;top:",n.W0[8],";right:",n.W0[4],";border:0;background:transparent;opacity:0;&:hover{background:transparent;opacity:1;};label:deleteButton;")};function rd(e){return rd="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},rd(e)}function nd(){nd=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==rd(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function od(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function id(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){od(i,n,o,a,l,"next",e)}function l(e){od(i,n,o,a,l,"throw",e)}a(void 0)}))}}function ad(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ld(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ld(e,t):void 0}}(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 ld(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ud(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(r),!0).forEach((function(t){sd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==rd(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==rd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rd(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dd={type:"url",url:"",menu:"",page:0,popup:0,action:"",is_no_repeat:0,new_tab:!1,nofollow:!1,noreferrer:!1,noopener:!1,close_popup:0};const pd=function(e){var t=e.label,r=e.field,n=e.fieldState,i=e.disabled,a=e.readOnly,l=e.loading,u=e.helpText,d=e.onChange,p=e.linkPopup,f=void 0!==p&&p,v=(0,H.$)(),h=(0,L.Gc)(),b=(0,c.useMemo)((function(){return(0,A.$K)(r.value)?(0,A.HD)(r.value)?ud(ud({},dd),{},{url:r.value}):r.value:dd}),[r.value]),y=ad((0,c.useState)(b),2),m=y[0],g=y[1],E=(0,te.N)(m),_=[{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_OPEN"),value:"open"},{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_CLOSE"),value:"close"}],O=(0,le.v)((function(e){return e.appConfig})),w=(0,ko.F)((function(e){return e.payload})),S=w.addonIndex,I=w.sectionIndex,x=w.columnIndex,C=w.tableItem,P=(0,Go.s)((function(e){return e.currentState})),T=ad((0,c.useState)("url"),2),D=T[0],Z=T[1],j=(0,$e.d)().showModal,R=[{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_URL"),value:"url"},{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_MENU"),value:"menu"},{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_PAGE"),value:"page"},{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP"),value:"popup"}];(0,c.useEffect)((function(){var e;Z(null!==(e=m.type)&&void 0!==e?e:"url")}),[m]),(0,c.useEffect)((function(){g(b)}),[S,I,x,C,P]),(0,c.useEffect)((function(){"url"===E.type&&r.onChange(E)}),[E]);var B=function(e,t){var n=ud(ud({},m),{},sd({},t,e));g(n),d&&d(n),"url"!==t&&r.onChange(n)},M=function(){var e=id(nd().mark((function e(){var t,r,n,o;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===(t=h.getValues("id"))&&(r=window.location.href,n=r.match(/\/editor\/(\d+)\/?/),o=r.match(/\/(?:popup-)?editor\/(\d+)\/?/),t=Number(null==n?void 0:n[1])||Number(null==o?void 0:o[1])),e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=id(nd().mark((function e(){var t,n;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M();case 2:t=e.sent,n=ud(ud({},m),{},{close_popup:t}),r.onChange(n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){k()}),[]),(0,s.tZ)(bo.Z,{label:t,field:r,fieldState:n,disabled:i,readOnly:a,loading:l,helpText:u,isCombineType:!0,adjustSpacing:!0,children:function(){return(0,s.tZ)(s.HY,{children:(0,s.tZ)("div",{css:fd.wrapper,children:(0,s.BX)("div",{css:fd.optionsWrapper,children:[(0,s.tZ)(kr,{variant:"secondary",activeTab:D,tabList:f?R:R.slice(0,-1),onChange:function(e){Z(e);var t=ud(ud({},b),{},{type:e});g(t),d&&d(t),"url"!==e&&r.onChange(t)}}),"url"===D&&(0,s.tZ)(Ye.Z,{value:m.url,onChange:function(e){return B(e,"url")},placeholder:"https://",handleMediaIconClick:function(){j({component:Vt,props:{allowedMediaType:"*",onInsert:function(e){var t=ud(ud({},m),{},{url:e.path});g(t),d&&d(t)}},closeOnOutsideClick:!0})},isClearable:!0,inputCss:fd.textInput}),"menu"===D&&(0,s.tZ)(Ha.Z,{value:O.menus.find((function(e){return String(e.value)===String(b.menu)})),options:O.menus,onChange:function(e){return B(e.value,"menu")},clearOption:function(){return B("","menu")},placeholder:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_SELECT_MENU")}),"page"===D&&(0,s.tZ)(Ha.Z,{value:O.pages.find((function(e){return String(e.value)===String(b.page)})),options:O.pages,onChange:function(e){return B(e.value,"page")},clearOption:function(){return B("","page")},placeholder:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_SELECT_PAGE")}),"popup"===D&&(0,s.BX)(s.HY,{children:[(0,s.tZ)(Ha.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_ACTION"),value:_.find((function(e){return String(e.value)===String(b.action)})),options:_,onChange:function(e){return B(e.value,"action")},clearOption:function(){return B("","action")}}),"open"===b.action&&(0,s.tZ)(Ha.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_ACTION_SELECT"),value:O.popups.find((function(e){return String(e.value)===String(b.popup)})),options:O.popups,onChange:function(e){return B(e.value,"popup")},clearOption:function(){return B("","popup")},isSearchable:!0}),"close"===b.action&&(0,s.BX)("div",{css:fd.switchWrapper,children:[(0,s.tZ)("label",{children:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_POPUP_DONT_SHOW")}),(0,s.tZ)(Fl.Z,{checked:(0,Br.sw)(b.is_no_repeat),onChange:function(e){var t=(0,Br.sw)(e)?1:0;B(t,"is_no_repeat")}})]})]}),"popup"!==D&&(0,s.BX)("div",{css:fd.linkOptions,children:[(0,s.tZ)("div",{css:o.c.caption(),children:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_LINK_OPTIONS")}),(0,s.tZ)(Xe.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NEW_TAB"),labelCss:fd.label,checked:b.new_tab,onChange:function(e){return B(e,"new_tab")}}),(0,s.tZ)(Xe.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_FOLLOW"),labelCss:fd.label,checked:b.nofollow,onChange:function(e){return B(e,"nofollow")}}),(0,s.tZ)(Xe.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_REFERRER"),labelCss:fd.label,checked:b.noreferrer,onChange:function(e){return B(e,"noreferrer")}}),(0,s.tZ)(Xe.Z,{label:v("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_OPENER"),labelCss:fd.label,checked:b.noopener,onChange:function(e){return B(e,"noopener")}})]})]})})})}})};var fd={wrapper:(0,i.iv)("display:flex;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";>div{flex:1;}&:focus-within{box-shadow:",n.AF.outline,";}input{&:focus{box-shadow:none;}};label:wrapper;"),wrapperButton:(0,i.iv)(q.iZ.resetButton,";width:100%;display:flex;align-items:center;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";&:focus,&:focus-within{box-shadow:",n.AF.outline,";}input{border:none;cursor:pointer;&:focus{box-shadow:none;}};label:wrapperButton;"),linkIcon:(0,i.iv)("height:32px;width:32px;border-right:1px solid ",n.qo.stroke.neutral,";color:",n.qo.icon.default,";text-align:center;line-height:",n.Nv[32],";;label:linkIcon;"),popoverWrapper:(0,i.iv)("background-color:",n.qo.background.white,";width:304px;box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:popoverWrapper;"),popoverHeader:(0,i.iv)("padding:",n.W0[12]," ",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:space-between;align-items:center;span{",o.c.caption("medium"),";};label:popoverHeader;"),optionsWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";padding:",n.W0[12],";;label:optionsWrapper;"),textInput:(0,i.iv)("box-shadow:none;:focus{box-shadow:",n.AF.outline,";};label:textInput;"),linkOptions:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[10],";;label:linkOptions;"),label:(0,i.iv)(o.c.body(),";color:",n.qo.text.default,";;label:label;"),switchWrapper:{name:"1fh46ae-switchWrapper",styles:"display:flex;justify-content:space-between;label:switchWrapper;"}};function vd(e){return vd="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},vd(e)}var hd=["css"];function bd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bd(Object(r),!0).forEach((function(t){md(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function md(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==vd(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===vd(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ed(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ed(e,t):void 0}}(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 Ed(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _d=function(e){var t=e.field,r=e.fieldState,n=e.onChange,o=void 0===n?A.ZT:n,i=e.label,a=e.placeholder,l=void 0===a?"":a,u=e.disabled,d=e.readOnly,p=e.loading,f=e.moduleType,v=e.isInlineLabel,h=e.isSearchable,b=void 0===h||h,y=e.isClearable,m=void 0===y||y,g=e.responsive,E=void 0!==g&&g,_=e.responsiveOrientation,O=e.helpText,S=(0,H.$)(),I=(0,le.v)((function(e){return e.appConfig})),x=I.module_positions,C=I.modules,P="module"===f?C:x,L=(0,A.I6)(P),T=(0,c.useMemo)((function(){var e;return(null===(e=L.find((function(e){return String(e.value)===String(t.value)})))||void 0===e?void 0:e.label)||""}),[t.value,L]),D=gd((0,c.useState)(T),2),Z=D[0],j=D[1],R=gd((0,c.useState)(""),2),B=R[0],M=R[1],k=gd((0,c.useState)(!1),2),G=k[0],N=k[1],W=(0,ca.l)({isOpen:G,isDropdown:!0}),U=W.triggerRef,F=W.triggerWidth,V=W.position,q=W.popoverRef,z=(0,c.useMemo)((function(){return b?L.filter((function(e){return e.label.toLowerCase().startsWith(B.toLowerCase())})):L}),[b,L,B]);return(0,c.useEffect)((function(){j(T)}),[t.value,T]),(0,s.tZ)(bo.Z,{fieldState:r,field:t,label:i,disabled:u||0===L.length,readOnly:d,loading:p,isInlineLabel:v,responsive:E,responsiveOrientation:_,helpText:O,children:function(e){var r=e.attributes,n=(e.data,r.css),i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(r,hd);return(0,s.BX)("div",{css:wd.wrapper,children:[(0,s.BX)("div",{css:wd.inputWrapper,ref:U,children:[(0,s.tZ)("input",yd(yd({},i),{},{onClick:function(){return N((function(e){return!e}))},css:[n,wd.input,";label:ModuleField;"],autoComplete:"off",readOnly:d||!b,placeholder:l,value:Z,onChange:function(e){j(e.target.value),M(e.target.value)}})),(0,s.tZ)("button",{type:"button",css:wd.caretButton,onClick:function(){N((function(e){return!e}))},disabled:d,children:(0,s.tZ)(w.Z,{name:"chevronDown",width:20,height:20,style:wd.toggleIcon({isOpen:G})})})]}),(0,s.tZ)(ca.h,{isOpen:G,onClickOutside:function(){return N(!1)},children:(0,s.BX)("div",{css:[wd.optionsWrapper,{left:V.left,top:V.top,maxWidth:F},";label:ModuleField;"],ref:q,children:[(0,s.tZ)("ul",{css:[wd.options,";label:ModuleField;"],children:z.map((function(e){return(0,s.tZ)("li",{css:wd.optionItem({isSelected:e.value===t.value}),children:(0,s.tZ)(X.Z,{variant:"text",buttonCss:wd.optionButton,onClick:function(){t.onChange(e.value),j(e.label),M(""),o(e),N(!1)},children:e.label})},String(e.value))}))}),m&&(0,s.tZ)("div",{css:wd.clearButton({isDisabled:""===Z}),children:(0,s.tZ)(X.Z,{variant:"text",disabled:""===Z,onClick:function(){t.onChange(null),j(""),M("")},children:S("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})]})}})};var Od={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},wd={wrapper:{name:"i3il2f-wrapper",styles:"width:100%;label:wrapper;"},inputWrapper:{name:"39rwmw-inputWrapper",styles:"width:100%;display:flex;justify-content:space-between;align-items:center;position:relative;label:inputWrapper;"},input:(0,i.iv)(o.c.body(),";width:100%;cursor:pointer;;label:input;"),clearButton:function(e){var t=e.isDisabled,r=void 0!==t&&t;return(0,i.iv)("padding:",n.W0[8]," ",n.W0[12],";&>button{padding:0;",!r&&(0,i.iv)("color:",n.qo.text.primary,";&:hover{text-decoration:underline;};label:clearButton;"),";};label:clearButton;")},optionsWrapper:(0,i.iv)("position:absolute;width:100%;max-height:500px;z-index:",n.W5.dropdown,";background-color:",n.qo.base.white,";box-shadow:",n.AF.popover,";padding:",n.W0[4]," 0;border-radius:",n.E0[6],";",q.iZ.overflowYAuto,";;label:optionsWrapper;"),options:{name:"1s58vis-options",styles:"list-style-type:none;padding:0;margin:0;label:options;"},optionItem:function(e){var t=e.isSelected,r=void 0!==t&&t;return(0,i.iv)(o.c.body(),";min-height:40px;height:100%;width:100%;display:flex;align-items:center;transition:background-color 0.3s ease-in-out;cursor:pointer;&:hover{background-color:",n.qo.background.hover,";}",r&&(0,i.iv)("background-color:",n.qo.background.active,";position:relative;&::before{content:'';position:absolute;top:0;left:0;width:3px;height:100%;background-color:",n.qo.action.primary.default,";border-radius:0 ",n.E0[6]," ",n.E0[6]," 0;};label:optionItem;"),";;label:optionItem;")},optionButton:(0,i.iv)("width:100%;padding:",n.W0[10]," ",n.W0[12],";;label:optionButton;"),caretButton:(0,i.iv)(q.iZ.resetButton,";position:absolute;top:0;bottom:0;right:",n.W0[8],";margin:auto 0;;label:caretButton;"),toggleIcon:function(e){var t=e.isOpen,r=void 0!==t&&t;return(0,i.iv)("color:",n.qo.icon.default,";transition:transform 0.3s ease-in-out;",r&&Od,";;label:toggleIcon;")}},Sd=r(3722);function Id(e){return Id="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},Id(e)}var xd=["css"];function Cd(){Cd=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Id(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Pd(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function Ad(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Pd(i,n,o,a,l,"next",e)}function l(e){Pd(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Td(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ld(Object(r),!0).forEach((function(t){Dd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ld(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Id(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Id(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Id(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jd(e,t):void 0}}(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 jd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Rd=function(e){var t=e.options,r=e.field,n=e.fieldState,o=e.onChange,i=void 0===o?A.ZT:o,a=e.label,l=e.placeholder,u=void 0===l?"":l,d=e.disabled,p=e.readOnly,f=e.loading,v=e.isSearchable,h=void 0!==v&&v,b=e.isInlineLabel,y=e.hideCaret,m=e.listLabel,g=e.isClearable,E=void 0===g||g,_=e.responsive,O=e.responsiveOrientation,S=e.showArrowUpDown,I=void 0!==S&&S,C=e.helpText,P=e.removeOptionsMinWidth,L=void 0!==P&&P,T=(0,H.$)(),D=(0,c.useRef)(x.zu),Z=(0,Oo.D)(D.current),j=(0,ko.F)((function(e){return e.payload})),R=(0,V.o)((function(e){return e.addProductListItems})),B=(0,Sd.b)(),M=(0,c.useCallback)((function(){var e,n=(0,Br.o5)(r.value,D.current);return(null===(e=t.find((function(e){return String(e.value)===n})))||void 0===e?void 0:e.label)||""}),[t,r.value]),k=Zd((0,c.useState)(M),2),G=k[0],N=k[1],W=Zd((0,c.useState)(""),2),U=W[0],F=W[1],q=Zd((0,c.useState)(!1),2),z=q[0],K=q[1],$=(0,c.useMemo)((function(){return h?t.filter((function(e){return e.label.toLowerCase().startsWith(U.toLowerCase())})):t}),[U,h,t]),Y=(0,ca.l)({isOpen:z,isDropdown:!0}),Q=Y.triggerRef,J=Y.triggerWidth,ee=Y.position,te=Y.popoverRef;return(0,c.useEffect)((function(){N(M)}),[r.value,M]),(0,c.useEffect)((function(){z&&N(M)}),[M,z]),(0,s.tZ)(bo.Z,{fieldState:n,field:r,label:a,disabled:d||0===t.length,readOnly:p,loading:f,isInlineLabel:b,responsive:_,responsiveOrientation:O,helpText:C,children:function(e){var n=e.attributes,o=e.data,a=n.css,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(n,xd),c=(o.responsive,o.device);return D.current=c,(0,s.BX)("div",{css:kd.mainWrapper,children:[(0,s.BX)("div",{css:kd.inputWrapper,ref:Q,children:[(0,s.tZ)("input",Td(Td({},l),{},{onClick:function(){return K((function(e){return!e}))},css:[a,kd.input,";label:PresetField;"],autoComplete:"off",readOnly:p||!h,placeholder:u,value:function(){if(Z!==c){var e,n=(0,Br.o5)(r.value,c);return(null===(e=t.find((function(e){return String(e.value)===n})))||void 0===e?void 0:e.label)||""}return G}(),onChange:function(e){N(e.target.value),F(e.target.value)}})),!y&&(0,s.tZ)("button",{type:"button",css:kd.caretButton,onClick:function(){K((function(e){return!e}))},disabled:p||0===t.length,children:I?(0,s.tZ)(w.Z,{name:"arrowUpDown",width:20,height:20,style:kd.arrowUpDown}):(0,s.tZ)(w.Z,{name:"chevronDown",width:20,height:20,style:kd.toggleIcon({isOpen:z})})})]}),(0,s.tZ)(ca.h,{isOpen:z,onClickOutside:function(){return K(!1)},children:(0,s.tZ)("div",{css:[kd.optionsWrapper,{left:ee.left,top:ee.top,maxWidth:J},";label:PresetField;"],ref:te,children:(0,s.BX)("ul",{css:[kd.options(L),";label:PresetField;"],children:[!!m&&(0,s.tZ)("li",{css:kd.listLabel,children:m}),$.map((function(e){return(0,s.tZ)("li",{css:kd.optionItem({isSelected:String(e.value)===(0,Br.o5)(r.value,c)}),children:(0,s.tZ)(X.Z,{variant:"text",buttonCss:kd.label,onClick:Ad(Cd().mark((function t(){var r,n,o,a;return Cd().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,B.mutateAsync(Number(e.value));case 2:r=t.sent,n=j.sectionIndex,o=j.columnIndex,a=j.addonIndex,(0,A.$K)(n)&&(0,A.$K)(o)&&(0,A.$K)(a)&&R({sectionIndex:n,columnIndex:o,addonIndex:a,preset:r.preset}),F(""),i(e),K(!1);case 8:case"end":return t.stop()}}),t)}))),children:e.label})},String(e.value))})),E&&(0,s.tZ)("div",{css:kd.clearButton({isDisabled:""===G}),children:(0,s.tZ)(X.Z,{variant:"text",disabled:""===G,icon:(0,s.tZ)(w.Z,{name:"recycleAlt"}),onClick:function(){r.onChange(null),N(""),F(""),K(!1)},children:T("COM_SPPAGEBUILDER_EDITOR_FORM_SELECT_CLEAR")})})]})})})]})}})};var Bd={name:"xs7epg-toggleIcon",styles:"transform:rotate(180deg);label:toggleIcon;"},Md={name:"7k051d-options",styles:"min-width:200px;label:options;"},kd={mainWrapper:{name:"e9i770-mainWrapper",styles:"width:100%;label:mainWrapper;"},inputWrapper:{name:"39rwmw-inputWrapper",styles:"width:100%;display:flex;justify-content:space-between;align-items:center;position:relative;label:inputWrapper;"},input:(0,i.iv)(o.c.body(),";width:100%;cursor:pointer;padding-right:",n.W0[32],";",q.iZ.textEllipsis,";:focus{outline:none;box-shadow:",n.AF.outline,";};label:input;"),listLabel:(0,i.iv)(o.c.body(),";color:",n.qo.text.neutral,";min-height:40px;display:flex;align-items:center;padding-left:",n.W0[16],";;label:listLabel;"),clearButton:function(e){var t=e.isDisabled,r=void 0!==t&&t;return(0,i.iv)("padding:",n.W0[4]," ",n.W0[8],";border-top:1px solid ",n.qo.stroke.neutral,";&>button{padding:0;width:100%;font-size:",n.JB[12],";",!r&&(0,i.iv)("color:",n.qo.text.primary,";&:hover{text-decoration:underline;};label:clearButton;"),";>span{justify-content:center;}};label:clearButton;")},optionsWrapper:{name:"1al3kic-optionsWrapper",styles:"position:absolute;width:100%;label:optionsWrapper;"},options:function(e){return(0,i.iv)("z-index:",n.W5.dropdown,";background-color:",n.qo.base.white,";list-style-type:none;box-shadow:",n.AF.popover,";padding:",n.W0[4]," 0;margin:0;max-height:500px;border-radius:",n.E0[6],";",q.iZ.overflowYAuto,";",!e&&Md,";;label:options;")},optionItem:function(e){var t=e.isSelected,r=void 0!==t&&t;return(0,i.iv)(o.c.body(),";min-height:36px;height:100%;width:100%;display:flex;align-items:center;transition:background-color 0.3s ease-in-out;cursor:pointer;&:hover{background-color:",n.qo.background.hover,";}",r&&(0,i.iv)("background-color:",n.qo.background.active,";position:relative;&::before{content:'';position:absolute;top:0;left:0;width:3px;height:100%;background-color:",n.qo.action.primary.default,";border-radius:0 ",n.E0[6]," ",n.E0[6]," 0;};label:optionItem;"),";;label:optionItem;")},label:(0,i.iv)("width:100%;height:100%;display:flex;gap:",n.W0[8],";margin:0 ",n.W0[12],";padding:",n.W0[6]," 0;text-align:left;line-height:",n.Nv[24],";word-break:break-all;;label:label;"),toggleIcon:function(e){var t=e.isOpen,r=void 0!==t&&t;return(0,i.iv)("color:",n.qo.icon.default,";transition:transform 0.3s ease-in-out;",r&&Bd,";;label:toggleIcon;")},arrowUpDown:(0,i.iv)("color:",n.qo.icon.default,";display:flex;justify-content:center;align-items:center;margin-top:",n.W0[2],";;label:arrowUpDown;"),optionsContainer:{name:"1fif7on-optionsContainer",styles:"position:absolute;overflow:hidden auto;min-width:16px;min-height:16px;max-width:calc(100% - 32px);max-height:calc(100% - 32px);label:optionsContainer;"},caretButton:(0,i.iv)(q.iZ.resetButton,";position:absolute;top:0;bottom:0;right:",n.W0[8],";margin:auto 0;display:flex;align-items:center;;label:caretButton;")},Gd=r(1284),Nd=r(2393),Wd=r(8307);function Ud(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Hd=Nd.tk.theme({"&.cm-editor":{border:"1px solid ".concat(n.qo.stroke.neutral),borderRadius:n.E0[5],overflow:"hidden",fontSize:"12px",height:"600px",background:n.qo.background.white},"&.cm-editor.cm-focused":{outline:"none",boxShadow:"".concat(n.AF.outline)},"&.cm-editor .cm-content":{wordWrap:"break-word",whiteSpace:"pre-wrap",wordBreak:"normal"}});const Fd=function(e){var t,r,n=e.content,o=e.onChangeContent,a=e.isOpen,l=e.onClose,u=e.triggerRef,d=e.popoverGap,p=void 0===d?20:d,f=(0,H.$)(),v=/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,h=(t=(0,c.useState)(""),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Ud(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ud(e,t):void 0}}(t,r)||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.")}()),b=h[0],y=h[1],m=(0,ca.l)({isOpen:a,triggerRef:u,gap:p,arrow:"right"}),g=m.position,E=m.popoverRef;return(0,c.useEffect)((function(){var e=n.replaceAll(v,"<li>$1<$2$3>");y(e)}),[n]),(0,s.tZ)(ca.h,{isOpen:a,onClickOutside:l,children:(0,s.tZ)("div",{css:(0,i.iv)({position:"absolute",left:g.left,top:g.top},";label:CodeEditorPopover;"),ref:E,children:(0,s.BX)(ua.Z,{header:{title:f("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SOURCE_CODE"),actionTray:(0,s.tZ)(X.Z,{variant:"text",onClick:l,buttonCss:Vd.crossButton,children:(0,s.tZ)(w.Z,{name:"cross",height:24,width:24})})},cardCss:Vd.cardStyle,hideArrow:!0,children:[(0,s.tZ)("div",{css:Vd.cardInnerSection,children:(0,s.tZ)(Wd.ZP,{theme:Hd,extensions:[Nd.tk.lineWrapping],value:b,onChange:y})}),(0,s.tZ)("div",{css:Vd.buttonWrapper,children:(0,s.tZ)(X.Z,{onClick:function(){o(b),l(),y("")},children:f("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_APPLY_BUTTON")})})]})})})};var Vd={cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:cardStyle;"),cardInnerSection:(0,i.iv)(q.iZ.cardInnerSection,";flex-direction:column;gap:",n.W0[12],";padding:",n.W0[12],";width:600px;;label:cardInnerSection;"),crossButton:{name:"1o5ntf8-crossButton",styles:"padding:0;label:crossButton;"},sizeLineHeightSpaceWrapper:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[8],";;label:sizeLineHeightSpaceWrapper;"),textDecorationWrapper:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[8],";;label:textDecorationWrapper;"),wrapperStyle:{name:"pkzghw-wrapperStyle",styles:"max-width:136px;width:100%;label:wrapperStyle;"},buttonWrapper:(0,i.iv)("display:flex;justify-content:end;padding:",n.W0[12],";&>button{border-radius:",n.E0[8],";};label:buttonWrapper;")};function qd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zd(e,t):void 0}}(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 zd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Kd=function(e){var t,r=e.triggerRef,n=e.editor,o=null!==(t=n.getAttributes("textStyle").color)&&void 0!==t?t:"",i=(0,H.$)(),a=qd((0,c.useState)(!1),2),l=a[0],u=a[1],d=qd((0,c.useState)(o),2),p=d[0],f=d[1],v=(0,ca.l)({isOpen:l,triggerRef:r,arrow:"right",gap:20}),h=v.position,b=v.popoverRef,y=function(e){f(e);var t=(0,A.K6)(e),r=t.validColor,o=t.color;r.isValid&&n.chain().focus().setColor(o).run()};return(0,s.BX)("div",{children:[(0,s.tZ)(hl,{ref:r,color:o,onClick:function(){return u(!0)},onChangeColor:function(e){e||n.chain().focus().unsetColor().run()},dimension:{height:16,width:16},disableOutline:!0}),(0,s.tZ)(ca.h,{isOpen:l,onClickOutside:function(){return u(!1)},children:(0,s.BX)("div",{css:[$d.container,{position:"absolute",left:h.left,top:h.top},";label:ColorPalette;"],ref:b,children:[(0,s.BX)("div",{css:$d.header,children:[(0,s.tZ)("span",{children:i("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_COLOR")}),(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:function(){return u(!1)},children:(0,s.tZ)(w.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:$d.content,children:[(0,s.tZ)(il.Jg,{color:(0,A.K6)(o).validColor.toRgb(),onChange:function(e){var t=new el.C(e),r=(1===e.a?t.toHexString():t.toRgbString()).toUpperCase();f(r),n.chain().focus().setColor(r).run()}}),(0,s.tZ)("input",{type:"text",css:$d.input,value:p,placeholder:"#000000",onChange:function(e){return y(e.target.value)}}),(0,s.tZ)(nl,{onColorChange:y})]})]})})]})},$d={content:(0,i.iv)("padding:",n.W0[16],";;label:content;"),header:(0,i.iv)("padding:",n.W0[12]," ",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:space-between;align-items:center;span{",o.c.caption("medium"),";};label:header;"),container:(0,i.iv)("background-color:",n.qo.background.white,";border:1px solid ",n.qo.stroke.neutral,";box-shadow:",n.AF.popover,";border-radius:",n.E0[8],";max-width:278px;width:100%;& .react-colorful{width:auto;gap:",n.W0[10],";}& .react-colorful__saturation-pointer{width:10px;height:10px;}& .react-colorful__hue-pointer,& .react-colorful__alpha-pointer{width:10px;height:10px;}& .react-colorful__saturation{border-radius:",n.E0[8],";border-bottom:unset;}& .react-colorful__hue,& .react-colorful__alpha{height:8px;border-radius:",n.E0[8],";};label:container;"),input:(0,i.iv)(o.c.body()," background-color:",n.qo.base.white,";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";outline:none;padding:",n.W0[6]," ",n.W0[12],";margin-top:",n.W0[12],";width:100%;:focus{outline:none;box-shadow:",n.AF.outline,";};label:input;")};function Xd(e){return Xd="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},Xd(e)}function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(r),!0).forEach((function(t){Jd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Xd(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xd(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ep(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tp(e,t):void 0}}(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 tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var rp=["nofollow","noreferrer","noopener"],np={type:"url",url:"",menu:"",page:0,new_tab:!1,nofollow:!1,noreferrer:!1,noopener:!1},op=function(e){var t=e.triggerRef,r=e.label,n=e.isActive,i=e.setLink,a=e.attributes,l=e.unsetLink,u=(0,H.$)(),d=ep((0,c.useState)(np),2),p=d[0],f=d[1],v=ep((0,c.useState)(null),2),h=v[0],b=v[1];(0,c.useEffect)((function(){if("open"===h){var e={nofollow:!1,noreferrer:!1,noopener:!1};if((0,A.$K)(a.rel)){var t=a.rel.split(" ").filter((function(e){return e}));Object.keys(e).forEach((function(r){t.includes(r)&&(e[r]=!0)}))}f(Qd(Qd({},np),{},{url:a.url,new_tab:a.new_tab},e))}}),[a,h]);var y=(0,ca.l)({isOpen:null!==h,gap:20,arrow:"right",triggerRef:t}),m=y.position,g=y.popoverRef,E=(0,le.v)((function(e){return e.appConfig})),_=ep((0,c.useState)("url"),2),O=_[0],S=_[1],x=(0,$e.d)().showModal,C=[{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_URL"),value:"url"},{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_MENU"),value:"menu"},{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_PAGE"),value:"page"}],P=function(e){return"index.php?option=com_sppagebuilder&view=page&id=".concat(e)},L=function(e,t){var r=e;"page"===t&&(0,A.$K)(e)&&(r=P(e.toString())),f(Qd(Qd({},p),{},Jd({},t,r)))};return(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:ip.linkWrapper,children:[(0,s.tZ)(I.Z,{content:u("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_LINK"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",title:u("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_LINK"),onClick:function(){return b("open")},css:ip.selectedItem(n),children:(0,s.tZ)(w.Z,{name:"editorLink"})})}),n&&(0,s.tZ)("span",{role:"button",tabIndex:0,css:ip.clearButton,onClick:function(e){e.stopPropagation(),l()},onKeyDown:A.ZT,children:(0,s.tZ)(w.Z,{name:"crossCircled"})})]}),(0,s.tZ)(ca.h,{isOpen:null!==h,onClickOutside:function(){f(Qd(Qd({},p),{},{type:"url"})),S("url"),b(null)},children:(0,s.BX)("div",{css:[ip.popoverWrapper,{position:"absolute",left:m.left,top:m.top},";label:LinkToolItem;"],ref:g,children:[(0,s.BX)("div",{css:ip.popoverHeader,children:[(0,s.tZ)("span",{children:r}),(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:function(){return b(null)},children:(0,s.tZ)(w.Z,{name:"cross"})})]}),(0,s.BX)("div",{css:ip.optionsWrapper,children:[(0,s.tZ)(kr,{variant:"secondary",activeTab:O,tabList:C,onChange:function(e){S(e),"url"!==e&&f(Qd(Qd({},p),{},{type:e}))}}),"url"===O&&(0,s.tZ)(Ye.Z,{value:p.url,onChange:function(e){return L(e,"url")},placeholder:"https://",handleMediaIconClick:function(){b(null),x({component:Vt,props:{allowedMediaType:"*",onInsert:function(e){f(Qd(Qd({},p),{},{url:e.path})),b("insert")}},closeOnOutsideClick:!0})},isClearable:!0,inputCss:ip.textInput}),"menu"===O&&(0,s.tZ)(Ha.Z,{value:E.menus.find((function(e){return String(e.value)===String(p.menu)})),options:E.menus,onChange:function(e){return L(e.value,"menu")},clearOption:function(){return L("","menu")},placeholder:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_SELECT_MENU")}),"page"===O&&(0,s.tZ)(Ha.Z,{value:E.pages.find((function(e){var t=String(e.value);return"page"===O&&(0,A.$K)(e.value)&&(t=P(t)),t===String(p[O])})),options:E.pages,onChange:function(e){return L(e.value,"page")},clearOption:function(){return L("","page")},placeholder:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_SELECT_PAGE")}),(0,s.BX)("div",{css:ip.linkOptions,children:[(0,s.tZ)("div",{css:o.c.caption(),children:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_LINK_OPTIONS")}),(0,s.tZ)(Xe.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NEW_TAB"),labelCss:ip.label,checked:p.new_tab,onChange:function(e){return L(e,"new_tab")}}),(0,s.tZ)(Xe.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_FOLLOW"),labelCss:ip.label,checked:p.nofollow,onChange:function(e){return L(e,"nofollow")}}),(0,s.tZ)(Xe.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_REFERRER"),labelCss:ip.label,checked:p.noreferrer,onChange:function(e){return L(e,"noreferrer")}}),(0,s.tZ)(Xe.Z,{label:u("COM_SPPAGEBUILDER_EDITOR_LINK_FIELD_NO_OPENER"),labelCss:ip.label,checked:p.noopener,onChange:function(e){return L(e,"noopener")}})]})]}),(0,s.tZ)("div",{css:ip.buttonWrapper,children:(0,s.tZ)(X.Z,{onClick:function(){var e,t=p.type;(0,A.$K)(t)&&(0===(null===(e=p[t])||void 0===e?void 0:e.toString().trim().length)?l():i({href:String(p[t]),target:p.new_tab?"_blank":null,rel:rp.filter((function(e){return p[e]})).join(" ")})),b(null),S("url"),f(np)},children:u("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_APPLY_BUTTON")})})]})})]})},ip={linkWrapper:{name:"9x0sgj-linkWrapper",styles:">span{visibility:hidden;opacity:0;transition:visibility 0.3s ease,opacity 0.3s ease;}:hover{>span{visibility:visible;opacity:1;}};label:linkWrapper;"},selectedItem:function(e){return(0,i.iv)(q.iZ.resetButton,";color:",n.qo.icon.default,";:hover{svg{color:",n.qo.icon.hover,";}}",e&&(0,i.iv)("svg{color:",n.qo.icon.primary,";};label:selectedItem;"),";;label:selectedItem;")},clearButton:(0,i.iv)("position:absolute;top:0;right:7px;transform:translate(50%, -50%);color:",n.qo.icon.default,";:hover{color:",n.qo.icon.hover,";};label:clearButton;"),wrapper:(0,i.iv)("display:flex;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";>div{flex:1;}&:focus-within{box-shadow:",n.AF.outline,";}input{border:none;&:focus{box-shadow:none;}};label:wrapper;"),wrapperButton:(0,i.iv)(q.iZ.resetButton,";width:100%;display:flex;align-items:center;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";&:focus,&:focus-within{box-shadow:",n.AF.outline,";}input{border:none;cursor:pointer;&:focus{box-shadow:none;}};label:wrapperButton;"),linkIcon:(0,i.iv)("height:32px;width:32px;border-right:1px solid ",n.qo.stroke.neutral,";color:",n.qo.icon.default,";text-align:center;line-height:",n.Nv[32],";;label:linkIcon;"),popoverWrapper:(0,i.iv)("background-color:",n.qo.background.white,";width:304px;box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:popoverWrapper;"),popoverHeader:(0,i.iv)("padding:",n.W0[12]," ",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:space-between;align-items:center;span{",o.c.caption("medium"),";};label:popoverHeader;"),optionsWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";padding:",n.W0[12],";;label:optionsWrapper;"),textInput:(0,i.iv)(":focus{box-shadow:",n.AF.outline,";};label:textInput;"),linkOptions:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[10],";;label:linkOptions;"),label:(0,i.iv)(o.c.body(),";color:",n.qo.text.default,";;label:label;"),buttonWrapper:(0,i.iv)("display:flex;justify-content:end;padding:",n.W0[12],";&>button{border-radius:",n.E0[8],";};label:buttonWrapper;")};function ap(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var lp={name:"1d8pafg-SystemEditorModal",styles:"display:none;label:SystemEditorModal;"};const cp=function(e){var t,r,n=e.closeModal,o=e.title,i=e.content,a=e.onChangeContent,l=(0,H.$)(),u=(0,c.useRef)(null),d=(0,c.useRef)(null),p=(t=(0,c.useState)(!0),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return ap(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ap(e,t):void 0}}(t,r)||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.")}()),f=p[0],v=p[1];return(0,c.useEffect)((function(){var e;null===(e=u.current)||void 0===e||e.submit()}),[]),(0,s.tZ)(Ne.Z,{onClose:function(){return n({action:"CLOSE"})},title:o,wrapperCss:up.modalWrapperStyles,children:(0,s.BX)("div",{css:up.modalWrapper,children:[(0,s.BX)("div",{css:up.codeMirror,children:[(0,s.tZ)("form",{method:"post",target:"editorIframe",action:"".concat(A.Xy.pagebuilderBase,"administrator/index.php?option=com_sppagebuilder&view=systemeditor&layout=default&tmpl=component"),ref:u,css:lp,children:(0,s.tZ)("input",{type:"hidden",value:i,name:"system_editor_data"})}),f&&(0,s.tZ)("div",{css:up.loadingWrapper,children:(0,s.tZ)(O.g4,{})}),(0,s.tZ)("iframe",{ref:d,onLoad:function(){return v(!1)},name:"editorIframe",title:"editor iframe",style:{display:f?"none":"block"}})]}),(0,s.BX)("div",{css:up.footerWrapper,children:[(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){return n({action:"CLOSE"})},children:l("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SYSTEM_EDITOR_CANCEL")}),(0,s.tZ)(X.Z,{onClick:function(){var e,t,r=null===(e=d.current)||void 0===e?void 0:e.contentWindow;if(null!=r&&null!==(t=r.tinyMCE)&&void 0!==t&&t.activeEditor){var o,i;null===(o=r.document)||void 0===o||null===(i=o.querySelector('[aria-controls="wf-editor-wysiwyg"]'))||void 0===i||i.click();var l=r.tinyMCE.activeEditor.getContent();a(l)}n({action:"CLOSE"})},children:l("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SYSTEM_EDITOR_APPLY")})]})]})})};var up={modalWrapperStyles:{name:"167v7r0-modalWrapperStyles",styles:"max-width:2560px;label:modalWrapperStyles;"},modalWrapper:(0,i.iv)("iframe{width:100%;height:max(calc(100vh - 200px), 600px);max-height:2160px;",n.Uo.tablet,"{height:600px;}};label:modalWrapper;"),loadingWrapper:(0,i.iv)("width:100%;height:max(calc(100vh - 200px), 600px);max-height:2160px;",n.Uo.tablet,"{height:600px;}display:flex;justify-content:center;align-items:center;;label:loadingWrapper;"),codeMirror:{name:"1ivh6sh-codeMirror",styles:".cm-editor,.cm-theme{height:300px;}.cm-editor{border-radius:0px;padding:0;margin:0;};label:codeMirror;"},footerWrapper:(0,i.iv)("display:flex;align-items:center;padding:",n.W0[16],";gap:",n.W0[8],";justify-content:flex-end;;label:footerWrapper;")},sp=function(e){var t=e.name,r=e.icon,n=e.isActive,o=e.onClick,i=e.disabled;return(0,s.tZ)(I.Z,{content:t,placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",onClick:o,css:dp.wrapper(n),disabled:i,children:(0,s.tZ)(w.Z,{name:r})})})},dp={wrapper:function(e){return(0,i.iv)(q.iZ.resetButton,";color:",n.qo.icon.default,";:hover{svg{color:",n.qo.icon.hover,";}}",e&&(0,i.iv)("svg{color:",n.qo.icon.primary,";};label:wrapper;"),";;label:wrapper;")}};function pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fp=function(e){var t,r,n=e.editor,o=e.activePopover,i=e.setActivePopover,a=e.value,l=e.onChangeContent,u=(0,H.$)(),d=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return pp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pp(e,t):void 0}}(t,r)||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.")}()),p=d[0],f=d[1],v=(0,ca.l)({isOpen:p,isDropdown:!0,gap:5}),h=v.triggerRef,b=v.position,y=v.popoverRef,m=(0,$e.d)().showModal;return(0,s.BX)(s.HY,{children:[(0,s.tZ)("button",{type:"button",ref:h,onClick:function(){return f(!p)},css:vp.threeDots(p),children:(0,s.tZ)(w.Z,{name:"ellipsisXAlt"})}),(0,s.tZ)(ca.h,{isOpen:p,onClickOutside:function(){f(!1)},children:(0,s.BX)("div",{css:vp.itemsWrapper({left:b.left,top:b.top}),ref:y,onClick:function(){return f(!1)},role:"button",tabIndex:0,onKeyDown:A.ZT,children:[(0,s.tZ)(sp,{name:u("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_BLOCKQUOTE"),icon:"editorQuote",onClick:function(){return n.chain().focus().toggleBlockquote().run()},isActive:n.isActive("blockquote"),disabled:!n.can().chain().focus().toggleBlockquote().run()}),(0,s.tZ)(I.Z,{content:u("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_INSERT_TABLE"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:vp.buttonCss("table"===o),onClick:function(){return i("table")},children:(0,s.tZ)(w.Z,{name:"editorTable"})})}),(0,s.tZ)(I.Z,{content:u("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SOURCE_CODE"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:vp.buttonCss("code-editor"===o),onClick:function(){return i("code-editor")},children:(0,s.tZ)(w.Z,{name:"editorSourceCode"})})}),(0,s.tZ)(I.Z,{content:u("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_SYSTEM_EDITOR"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:vp.buttonCss(),onClick:function(){m({component:cp,props:{title:"System Editor",content:a,onChangeContent:l}})},children:(0,s.tZ)(w.Z,{name:"editorExpand"})})})]})})]})},vp={threeDots:function(e){return(0,i.iv)(q.iZ.resetButton,";color:",n.qo.icon.default,";width:100%;display:flex;justify-content:center;:hover{color:",n.qo.icon.hover,";}",e&&(0,i.iv)("color:",n.qo.icon.primary,";;label:threeDots;"),";;label:threeDots;")},itemsWrapper:function(e){var t=e.left,r=e.top;return(0,i.iv)("position:absolute;left:",Math.max(0,t-8),"px;top:",r,"px;display:flex;align-items:center;gap:",n.W0[6],";padding:",n.W0[4]," ",n.W0[6],";background:",n.qo.base.white,";box-shadow:",n.AF.popover,";border-radius:",n.E0[2],";;label:itemsWrapper;")},buttonCss:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)(q.iZ.resetButton," color:",n.qo.icon.default,";:hover{svg{color:",n.qo.icon.hover,";}}",e&&(0,i.iv)("svg{color:",n.qo.icon.primary,";};label:buttonCss;"),";;label:buttonCss;")}};function hp(e){return hp="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},hp(e)}function bp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(r),!0).forEach((function(t){mp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==hp(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==hp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===hp(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ep=function(e){var t,r,n=e.onChangeContent,o=e.isOpen,a=e.onClose,l=e.triggerRef,u=e.popoverGap,d=void 0===u?20:u,p=(0,H.$)(),f={rows:3,cols:3,withHeaderRow:!0},v=(t=(0,c.useState)(f),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return gp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gp(e,t):void 0}}(t,r)||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.")}()),h=v[0],b=v[1],y=(0,ca.l)({isOpen:o,triggerRef:l,gap:d,arrow:"right"}),m=y.position,g=y.popoverRef;return(0,s.tZ)(ca.h,{isOpen:o,onClickOutside:a,children:(0,s.tZ)("div",{css:(0,i.iv)({position:"absolute",left:m.left,top:m.top},";label:TablePopover;"),ref:g,children:(0,s.BX)(ua.Z,{header:{title:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_INSERT_TABLE"),actionTray:(0,s.tZ)(X.Z,{variant:"text",onClick:a,buttonCss:_p.crossButton,children:(0,s.tZ)(w.Z,{name:"cross",height:24,width:24})})},cardCss:_p.cardStyle,hideArrow:!0,children:[(0,s.BX)("div",{css:_p.cardInnerSection,children:[(0,s.tZ)(Ye.Z,{label:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_TABLE_NUM_OF_ROWS"),type:"number",value:h.rows,onChange:function(e){return b(yp(yp({},h),{},{rows:Number(e)}))}}),(0,s.tZ)(Ye.Z,{label:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_TABLE_NUM_OF_COLS"),type:"number",value:h.cols,onChange:function(e){return b(yp(yp({},h),{},{cols:Number(e)}))}}),(0,s.BX)("div",{css:_p.labelWrapper,children:[(0,s.tZ)("div",{css:_p.label,children:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_TABLE_HEADER_ROW")}),(0,s.tZ)(Fl.Z,{checked:h.withHeaderRow,value:h.withHeaderRow,onChange:function(){return b(yp(yp({},h),{},{withHeaderRow:!h.withHeaderRow}))}})]})]}),(0,s.tZ)("div",{css:_p.buttonWrapper,children:(0,s.tZ)(X.Z,{onClick:function(){n(h),b(f),a()},children:p("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_INSERT_BUTTON")})})]})})})};var _p={cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:cardStyle;"),cardInnerSection:(0,i.iv)(q.iZ.cardInnerSection,";flex-direction:column;gap:",n.W0[12],";padding:",n.W0[12],";width:304px;input[type='text']{:focus{box-shadow:",n.AF.outline,";}};label:cardInnerSection;"),crossButton:{name:"1o5ntf8-crossButton",styles:"padding:0;label:crossButton;"},sizeLineHeightSpaceWrapper:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[8],";;label:sizeLineHeightSpaceWrapper;"),textDecorationWrapper:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[8],";;label:textDecorationWrapper;"),wrapperStyle:{name:"pkzghw-wrapperStyle",styles:"max-width:136px;width:100%;label:wrapperStyle;"},buttonWrapper:(0,i.iv)("display:flex;justify-content:end;padding:",n.W0[12],";&>button{border-radius:",n.E0[8],";};label:buttonWrapper;"),labelWrapper:(0,i.iv)("display:flex;justify-content:space-between;margin-bottom:",n.W0[4],";;label:labelWrapper;"),label:(0,i.iv)(o.c.caption(),";;label:label;")};function Op(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wp(e,t):void 0}}(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 wp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Sp=function(e){var t=e.items,r=e.defaultItem,n=(0,H.$)(),o=Op((0,c.useState)(!1),2),i=o[0],a=o[1],l=(0,ca.l)({isOpen:i,isDropdown:!0,gap:5}),u=l.triggerRef,d=l.position,p=l.popoverRef,f=Op((0,c.useState)(r),2),v=f[0],h=f[1],b=Object.keys(t).find((function(e){return t[e].isActive}));return(0,c.useEffect)((function(){(0,A.$K)(b)&&h(b)}),[b]),(0,s.BX)(s.HY,{children:[(0,s.tZ)(I.Z,{content:n(t[v].name),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",ref:u,onClick:function(){return a(!i)},css:Ip.selectedItem(t[v].isActive),children:(0,s.tZ)(w.Z,{name:t[v].icon})})}),(0,s.tZ)(ca.h,{isOpen:i,onClickOutside:function(){a(!1)},children:(0,s.tZ)("div",{css:Ip.itemsWrapper({left:d.left,top:d.top}),ref:p,children:(0,A.Zt)(t).map((function(e){return(0,s.tZ)(I.Z,{content:n(t[e].name),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:Ip.itemButton({isActive:e===v}),onClick:function(){t[e].action(),h(e),a(!1)},children:(0,s.tZ)(w.Z,{name:t[e].icon})})},e)}))})})]})},Ip={selectedItem:function(e){return(0,i.iv)(q.iZ.resetButton,";color:",n.qo.icon.default,";:hover{svg{color:",n.qo.icon.hover,";}}",e&&(0,i.iv)("svg{color:",n.qo.icon.primary,";};label:selectedItem;"),";;label:selectedItem;")},itemButton:function(e){var t=e.isActive;return(0,i.iv)(q.iZ.resetButton,";color:",n.qo.icon.default,";:hover{svg{color:",n.qo.icon.hover,";}}",t&&(0,i.iv)("svg{color:",n.qo.icon.primary,";};label:itemButton;"),";;label:itemButton;")},itemsWrapper:function(e){var t=e.left,r=e.top;return(0,i.iv)("position:absolute;left:",Math.max(0,t-8),"px;top:",r,"px;display:flex;align-items:center;gap:",n.W0[6],";background:",n.qo.base.white,";box-shadow:",n.AF.popover,";border-radius:",n.E0[2],";padding:",n.W0[4]," ",n.W0[6],";;label:itemsWrapper;")}};function xp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Cp=function(e){return{h1:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_H1",icon:"editorHeading1",isActive:e.isActive("heading",{level:1}),action:function(){return e.chain().focus().toggleHeading({level:1}).run()}},h2:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_H2",icon:"editorHeading2",isActive:e.isActive("heading",{level:2}),action:function(){return e.chain().focus().toggleHeading({level:2}).run()}},h3:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_H3",icon:"editorHeading3",isActive:e.isActive("heading",{level:3}),action:function(){return e.chain().focus().toggleHeading({level:3}).run()}},h4:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_H4",icon:"editorHeading4",isActive:e.isActive("heading",{level:4}),action:function(){return e.chain().focus().toggleHeading({level:4}).run()}},h5:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_H5",icon:"editorHeading5",isActive:e.isActive("heading",{level:5}),action:function(){return e.chain().focus().toggleHeading({level:5}).run()}},h6:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_H6",icon:"editorHeading6",isActive:e.isActive("heading",{level:6}),action:function(){return e.chain().focus().toggleHeading({level:6}).run()}}}},Pp=function(e){return{list:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_UNORDERED_LIST",icon:"editorList",isActive:e.isActive("bulletList"),action:function(){return e.chain().focus().toggleBulletList().run()}},orderedList:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_ORDERED_LIST",icon:"editorOrderedList",isActive:e.isActive("orderedList"),action:function(){return e.chain().focus().toggleOrderedList().run()}}}},Ap=function(e){return{left:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_ALIGN_LEFT",icon:"textAlignLeft",isActive:e.isActive({textAlign:"left"}),action:function(){return e.chain().focus().setTextAlign("left").run()}},center:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_ALIGN_CENTER",icon:"textAlignCenter",isActive:e.isActive({textAlign:"center"}),action:function(){return e.chain().focus().setTextAlign("center").run()}},right:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_ALIGN_RIGHT",icon:"textAlignRight",isActive:e.isActive({textAlign:"right"}),action:function(){return e.chain().focus().setTextAlign("right").run()}},justify:{name:"COM_SPPAGEBUILDER_EDITOR_RICHTEXT_ALIGN_JUSTIFY",icon:"textAlignJustify",isActive:e.isActive({textAlign:"justify"}),action:function(){return e.chain().focus().setTextAlign("justify").run()}}}},Lp=function(e){var t,r,n=e.editor,o=e.value,i=e.onChange,a=(0,H.$)(),l=(0,c.useRef)(null),u=(t=(0,c.useState)(null),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return xp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xp(e,t):void 0}}(t,r)||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.")}()),d=u[0],p=u[1],f=(0,$e.d)().showModal;return n?(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:Tp.wrapper,ref:l,children:[(0,s.tZ)("div",{css:Tp.controlsGroup,children:(0,s.tZ)(Sp,{items:Cp(n),defaultItem:"h1"})}),(0,s.BX)("div",{css:Tp.controlsGroup,children:[(0,s.tZ)(sp,{name:a("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_BOLD"),icon:"editorBold",onClick:function(){return n.chain().focus().toggleBold().run()},isActive:n.isActive("bold"),disabled:!n.can().chain().focus().toggleBold().run()}),(0,s.tZ)(sp,{name:a("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_ITALIC"),icon:"editorItalic",onClick:function(){return n.chain().focus().toggleItalic().run()},isActive:n.isActive("italic"),disabled:!n.can().chain().focus().toggleItalic().run()}),(0,s.tZ)(sp,{name:a("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_UNDERLINE"),icon:"editorUnderline",onClick:function(){return n.chain().focus().toggleUnderline().run()},isActive:n.isActive("italic"),disabled:!n.can().chain().focus().toggleUnderline().run()}),(0,s.tZ)(I.Z,{content:a("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_COLOR"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)(Kd,{editor:n,triggerRef:l})})]}),(0,s.tZ)("div",{css:Tp.controlsGroup,children:(0,s.tZ)(Sp,{items:Ap(n),defaultItem:"left"})}),(0,s.tZ)("div",{css:Tp.controlsGroup,children:(0,s.tZ)(Sp,{items:Pp(n),defaultItem:"list"})}),(0,s.tZ)("div",{css:Tp.controlsGroup,children:(0,s.tZ)(I.Z,{content:a("COM_SPPAGEBUILDER_EDITOR_RICHTEXT_INSERT_IMAGE"),placement:"top",isVisibleOnHover:!0,children:(0,s.tZ)("button",{type:"button",css:Tp.buttonCss(),onClick:function(){f({component:Vt,props:{onInsert:function(e){null==n||n.chain().focus().setImage({src:e.path,alt:e.title}).run()},allowedMediaType:"image"},closeOnOutsideClick:!0})},children:(0,s.tZ)(w.Z,{name:"image"})})})}),(0,s.tZ)("div",{css:Tp.controlsGroup,children:(0,s.tZ)(op,{isActive:n.isActive("link"),attributes:{url:n.getAttributes("link").href,new_tab:"_blank"===n.getAttributes("link").target,rel:n.getAttributes("link").rel},setLink:function(e){var t=e.href,r=e.target,o=e.rel;n.chain().focus().setLink({href:t,target:r,rel:o}).run()},unsetLink:function(){n.chain().focus().unsetLink().run()},triggerRef:l})}),(0,s.tZ)(fp,{editor:n,activePopover:d,setActivePopover:p,value:o,onChangeContent:function(e){n.commands.setContent(e),i(e)}})]}),(0,s.tZ)(Fd,{content:o,onChangeContent:function(e){null==n||n.commands.setContent(e),i(e)},isOpen:"code-editor"===d,onClose:function(){return p(null)},triggerRef:l}),(0,s.tZ)(Ep,{content:o,onChangeContent:function(e){var t=e.rows,r=e.cols,o=e.withHeaderRow;null==n||n.chain().focus().insertTable({rows:t,cols:r,withHeaderRow:o}).run()},isOpen:"table"===d,onClose:function(){return p(null)},triggerRef:l})]}):null},Tp={wrapper:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[6],";border-bottom:1px solid ",n.qo.stroke.neutral,";background-color:",n.qo.background.white,";position:sticky;z-index:",n.W5.positive,";top:-",n.W0[16],";border-top-right-radius:",n.E0[4],";border-top-left-radius:",n.E0[4],";padding:",n.W0[8]," ",n.W0[6],";;label:wrapper;"),buttonCss:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,i.iv)(q.iZ.resetButton," svg{color:",n.qo.icon.default,";}",e&&(0,i.iv)("svg{color:",n.qo.icon.primary,";};label:buttonCss;")," :hover{svg{color:",n.qo.icon.hover,";}};label:buttonCss;")},controlsGroup:(0,i.iv)("position:relative;display:flex;align-items:center;gap:",n.W0[6],";padding-right:",n.W0[6],";&:after{content:'';height:100%;width:1px;position:absolute;right:0;top:0;background-color:",n.qo.stroke.neutral,";};label:controlsGroup;")},Dp=r(9734),Zp=r(7937),jp=r(561),Rp=r(353),Bp=r(336),Mp=r(9966),kp=r(5525),Gp=r(7490),Np=r(8486),Wp=r(3582),Up=r(6484),Hp=r(4565),Fp=r(1575),Vp=r(1347),qp=r(658),zp=r(3626),Kp=r(3991),$p=r(2701),Xp=r(6279),Yp=r(8510),Qp=r(6761),Jp=function(e){var t=(0,c.useRef)(null),r=e.node,n=r.attrs,o=n.src,i=n.alt;return(0,c.useEffect)((function(){var e;(0,A.$K)(r.attrs.style)&&(null===(e=t.current)||void 0===e||e.setAttribute("style",r.attrs.style))}),[r.attrs.style]),(0,s.tZ)(Gd.T5,{children:(0,s.tZ)("img",{ref:t,src:A.Xy.pagebuilderBase+o,alt:i,className:r.attrs.class,height:r.attrs.height,width:r.attrs.width})})},ef=Qp.ZP.extend({addNodeView:function(){return(0,Gd.fW)(Jp)},addAttributes:function(){var e,t,r,n,o,i;return{src:{default:null!==(e=this.editor)&&void 0!==e&&e.getAttributes("src")?this.editor.getAttributes("src"):null,parseHTML:function(e){return e.hasAttribute("src")?e.getAttribute("src"):null}},alt:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("alt"),parseHTML:function(e){return e.hasAttribute("alt")?e.getAttribute("alt"):null}},height:{default:null===(r=this.editor)||void 0===r?void 0:r.getAttributes("height"),parseHTML:function(e){return e.hasAttribute("height")?e.getAttribute("height"):null}},width:{default:null===(n=this.editor)||void 0===n?void 0:n.getAttributes("width"),parseHTML:function(e){return e.hasAttribute("width")?e.getAttribute("width"):null}},class:{default:null===(o=this.editor)||void 0===o?void 0:o.getAttributes("class")},style:{default:null===(i=this.editor)||void 0===i?void 0:i.getAttributes("style")}}}}).configure({inline:!0,allowBase64:!0});function tf(e){return tf="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},tf(e)}function rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(r),!0).forEach((function(t){of(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function of(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==tf(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==tf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===tf(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function af(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||lf(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 lf(e,t){if(e){if("string"==typeof e)return cf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cf(e,t):void 0}}function cf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var uf=r(6022).Z.extend({renderHTML:function(e){var t,r=e.HTMLAttributes,n=e.node,o=r.style,i=null!==(t=n.attrs.textAlign)&&void 0!==t?t:null;if(!o)return["p",r,0];var a,l={},c=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=lf(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(o.replace(/\s+/g,"").split(";").filter((function(e){return!!e})).map((function(e){var t=af(e.split(":"),2);return{key:t[0],value:t[1]}})));try{for(c.s();!(a=c.n()).done;){var u=a.value,s=u.key,d=u.value;(0,A.$K)(l[s])||(l[s]=d)}}catch(e){c.e(e)}finally{c.f()}for(var p=[],f=0,v=Object.entries(l);f<v.length;f++){var h=af(v[f],2),b=h[0],y=h[1];"left"!==i&&p.push("".concat(b,":").concat(y,";"))}return p.length>0&&(r=nf(nf({},r),{},{style:p.join(" ")})),["p",r,0]},addAttributes:function(){var e,t;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")}}}}),sf=uf;function df(e){return df="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},df(e)}function pf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ff(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pf(Object(r),!0).forEach((function(t){vf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==df(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==df(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===df(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||bf(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 bf(e,t){if(e){if("string"==typeof e)return yf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yf(e,t):void 0}}function yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mf=r(3621).Z.extend({renderHTML:function(e){var t=e.HTMLAttributes,r=t.style;if(!r)return["span",t,0];var n,o={},i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=bf(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(r.replace(/\s+/g,"").split(";").filter((function(e){return!!e})).map((function(e){var t=hf(e.split(":"),2);return{key:t[0],value:t[1]}})));try{for(i.s();!(n=i.n()).done;){var a=n.value,l=a.key,c=a.value;(0,A.$K)(o[l])||(o[l]=c)}}catch(e){i.e(e)}finally{i.f()}for(var u=[],s=0,d=Object.entries(o);s<d.length;s++){var p=hf(d[s],2),f=p[0],v=p[1];u.push("".concat(f,":").concat(v,";"))}return u.length>0&&(t=ff(ff({},t),{},{style:u.join(" ")})),["span",t,0]},addAttributes:function(){var e,t;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")}}}}),gf=mf;function Ef(e){return Ef="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},Ef(e)}function _f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Of(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(r),!0).forEach((function(t){wf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ef(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ef(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const If=function(e){var t=e.value,r=e.onChange,n=e.editorRef,o=function(e){var t,r,n=e.content,o=e.onChange,i=(0,ko.F)((function(e){return e.payload})),a=i.addonIndex,l=i.sectionIndex,u=i.columnIndex,s=i.tableItem,d=(0,Go.s)().currentState,p=(0,c.useRef)(null),f=/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,v=(t=(0,c.useState)(n),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Sf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sf(e,t):void 0}}(t,r)||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.")}()),h=v[0],b=v[1],y=(0,te.N)(h);return(0,c.useEffect)((function(){var e;o(n),null===(e=p.current)||void 0===e||e.commands.setContent(n)}),[a,l,u,s,d]),(0,c.useEffect)((function(){n!==y&&o(y)}),[y]),p.current=(0,Gd.jE)({extensions:[Bp.Z,$p.Z,Np.Z,kp.Z,Xp.Z.configure({types:["heading","paragraph"]}),ef,gf,Rp.Z,Gp.Z.extend({addAttributes:function(){var e,t,r;return Of(Of({},null===(e=this.parent)||void 0===e?void 0:e.call(this)),{},{class:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("class")},style:{default:null===(r=this.editor)||void 0===r?void 0:r.getAttributes("style")}})}}).configure({levels:[1,2,3,4,5,6]}),Up.Z.extend({addAttributes:function(){var e,t,r,n,o;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")},href:{default:null===(r=this.editor)||void 0===r?void 0:r.getAttributes("href")},target:{default:null===(n=this.editor)||void 0===n?void 0:n.getAttributes("target")},rel:{default:null===(o=this.editor)||void 0===o?void 0:o.getAttributes("rel")}}}}).configure({openOnClick:!1,HTMLAttributes:{rel:"noopener noreferrer nofollow"}}),sf,Zp.ZP.extend({addAttributes:function(){var e,t;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")}}}}),Wp.ZP.extend({addAttributes:function(){var e,t;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")}}}}),Yp.Z.extend({addAttributes:function(){var e,t;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")}}}}),Dp.ZP.extend({addAttributes:function(){var e,t,r;return{class:{default:null!==(e=null===(t=this.editor)||void 0===t?void 0:t.getAttributes("class"))&&void 0!==e?e:"sppb-blockquote-style",parseHTML:function(e){return e.hasAttribute("class")?e.getAttribute("class"):null}},style:{default:null===(r=this.editor)||void 0===r?void 0:r.getAttributes("style")}}}}),jp.ZP.extend({addAttributes:function(){var e,t;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")}}}}),Fp.ZP.extend({addAttributes:function(){var e,t;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")}}}}),Hp.Z.extend({addAttributes:function(){var e,t;return{class:{default:null===(e=this.editor)||void 0===e?void 0:e.getAttributes("class")},style:{default:null===(t=this.editor)||void 0===t?void 0:t.getAttributes("style")}}}}),Mp.Z,Vp.ZP.extend({addAttributes:function(){var e,t,r;return{class:{default:null!==(e=null===(t=this.editor)||void 0===t?void 0:t.getAttributes("class"))&&void 0!==e?e:"sppb-table-style",parseHTML:function(e){return e.hasAttribute("class")?e.getAttribute("class"):null}},style:{default:null===(r=this.editor)||void 0===r?void 0:r.getAttributes("style")}}}}).configure({resizable:!1}),Kp.Z,zp.Z,qp.Z],content:n,onUpdate:function(e){var t=e.editor.getHTML().replaceAll(f,"<li>$1<$2$3>");b(t)}}),p.current}({content:t,onChange:r});return n.current=o,(0,s.tZ)(s.HY,{children:(0,s.BX)("div",{css:xf.editorWrapper,children:[(0,s.tZ)(Lp,{editor:o,value:t,onChange:r}),(0,s.tZ)(Gd.kg,{editor:o,spellCheck:!1})]})})};var xf={editorWrapper:(0,i.iv)("position:relative;border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";color:",n.qo.text.default,";.tiptap{padding:",n.W0[6]," ",n.W0[8],";outline:none;min-height:150px;max-height:500px;height:100%;overflow:auto;a{:hover{text-decoration:underline;}}img{max-width:100%;}ul,ol{margin-top:0.3125rem;margin-bottom:0.3125rem;margin-left:",n.W0[24],";}ul{list-style:initial;}ol{list-style-type:decimal;}.sppb-blockquote-style{font-size:",n.JB[18],";line-height:1.55;margin:",n.W0[12]," 0;border-top-right-radius:",n.E0[4],";border-bottom-right-radius:",n.E0[4],";padding:",n.W0[12]," ",n.W0[16],";border-left:6px solid ",n.qo.stroke.neutral,";}table.sppb-table-style{border-collapse:collapse;table-layout:fixed;width:100%;margin:0;overflow:hidden;td,th{min-width:1em;border:2px solid #ced4da!important;padding:3px 5px;vertical-align:top;box-sizing:border-box;position:relative;>*{margin-bottom:0;}}th{font-weight:bold;text-align:left;background-color:#f1f3f5;}}.tableWrapper{overflow-x:auto;}*{white-space:break-spaces!important;}};label:editorWrapper;")};function Cf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pf(e){return Pf="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},Pf(e)}function Af(){Af=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Pf(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Lf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lf(Object(r),!0).forEach((function(t){Df(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Df(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Pf(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Pf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Pf(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zf(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function jf(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Zf(i,n,o,a,l,"next",e)}function l(e){Zf(i,n,o,a,l,"throw",e)}a(void 0)}))}}function Rf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bf(e,t):void 0}}(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 Bf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Mf=function(e){var t=e.generatedValues,r=e.popover,n=void 0===r?"edit":r,o=e.onChange,i=e.onInsert,a=e.onPaginate,l=e.onEdit,u=e.totalItems,d=e.currentIndex,p=(0,H.$)(),f=Rf((0,c.useState)(!1),2),v=f[0],h=f[1],b=(0,Oo.D)(t.generatedText),y=function(){var e,t,r=(e=(0,c.useState)(null),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cf(e,t):void 0}}(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.")}()),n=r[0],o=r[1],i=(0,S.p)();return[n,function(e){try{var t=document.createElement("textarea");return t.value=e,t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),o(e),i.showToast({type:"success",message:"Copied to clipboard."}),!0}catch(e){return console.warn("Copy failed",e),o(null),!1}}]}(),m=Rf(y,2),g=(m[0],m[1]),E=jo(),_=(0,re.O)({defaultValues:{text:t.generatedText}});(0,c.useEffect)((function(){t.generatedText!==b&&_.setValue("text",t.generatedText)}),[_,t,b]);var O=_.watch("text"),I=function(){var e=jf(Af().mark((function e(r){var i,a,l;return Af().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Po(Tf(Tf({},t),{},{prompt:O,action:r})),e.next=3,E.mutateAsync({prompt:i});case 3:a=e.sent,l=a.data,o(Tf(Tf({},t),{},{popover:n,generatedText:l.choices[0].message.content}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,s.BX)(s.HY,{children:[(0,s.BX)("div",{css:Gf.contentWrapper,children:[(0,s.BX)("div",{css:Gf.generatedPrompt,children:[p("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE"),(0,s.tZ)(X.Z,{variant:"text",onClick:function(){l()},children:(0,s.tZ)(w.Z,{name:"pencil",width:10,height:10})})]}),(0,s.tZ)("div",{css:Gf.promptText,children:t.prompt}),(0,s.BX)("div",{css:Gf.historyWrapper,children:[(0,s.BX)("div",{css:Gf.paginationWrapper,children:[(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"chevronLeft",height:20,width:20}),disabled:0===d,onClick:function(){return a(d-1)}}),(0,s.tZ)("p",{children:"".concat(d+1,"/").concat(u)}),(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"chevronRight",height:20,width:20}),disabled:d+1===u,onClick:function(){return a(d+1)}})]}),(0,s.BX)("div",{css:Gf.rightSideWrapper,children:[(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"pencil",height:14,width:14}),onClick:function(){return h(!0)}}),(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"copy",height:14,width:14}),onClick:function(){return g(O)}})]})]}),v?(0,s.tZ)(L.Qr,{name:"text",control:_.control,render:function(e){return(0,s.tZ)(Vo,Tf(Tf({},e),{},{onKeyDown:function(e){"Escape"===e&&h(!1)},focusOnMount:!0}))}}):(0,s.tZ)("div",{css:Gf.generatedText,children:O}),(0,s.tZ)("div",{css:Gf.actionsWrapper({isLoading:E.isLoading}),children:[{label:"Fix Grammar & Spelling",value:"fixGrammarAndSpelling"},{label:"Summarize",value:"summarize"},{label:"Para-phrase",value:"paraPhrase"},{label:"Simplify",value:"simplify"}].map((function(e){return(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){return I(e.value)},children:e.label},e.value)}))})]}),(0,s.BX)("div",{css:Gf.buttonWrapper,children:[(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){i(t.generatedText)},disabled:E.isLoading,children:p("COM_SPPAGEBUILDER_EDITOR_AI_PLACE_TEXT")}),(0,s.tZ)(X.Z,{buttonCss:q.iZ.generateAiButton(E.isLoading),icon:E.isLoading?"":(0,s.tZ)(w.Z,{name:"recycle"}),onClick:jf(Af().mark((function e(){var r,i,a;return Af().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.prompt.trim().length){e.next=2;break}return e.abrupt("return");case 2:return h(!1),r=Po(Tf(Tf({},t),{},{popover:n})),e.next=6,E.mutateAsync({prompt:r});case 6:i=e.sent,a=i.data,o(Tf(Tf({},t),{},{popover:n,generatedText:a.choices[0].message.content}));case 9:case"end":return e.stop()}}),e)}))),loading:E.isLoading,children:p("COM_SPPAGEBUILDER_EDITOR_AI_REGENERATE")})]})]})};var kf={name:"15furcq-actionsWrapper",styles:"pointer-events:none;label:actionsWrapper;"},Gf={contentWrapper:(0,i.iv)("padding:",n.W0[20],";display:flex;flex-direction:column;gap:",n.W0[12],";max-height:500px;height:100%;",q.iZ.overflowYAuto,";;label:contentWrapper;"),generatedPrompt:(0,i.iv)(o.c.caption("medium"),";color:",n.qo.text.neutral,";display:flex;align-items:center;margin-right:",n.W0[6],";button{padding:",n.W0[6],";};label:generatedPrompt;"),historyWrapper:(0,i.iv)("display:flex;justify-content:space-between;align-items:center;gap:",n.W0[16],";;label:historyWrapper;"),paginationWrapper:(0,i.iv)("display:flex;justify-content:center;align-items:center;gap:",n.W0[4],";>button{padding:0;svg{color:",n.qo.icon.default,";}}>p{",o.c.caption("medium"),";color:",n.qo.text.neutral,";};label:paginationWrapper;"),rightSideWrapper:(0,i.iv)("display:flex;justify-content:center;align-items:center;gap:",n.W0[8],";>button{padding:",n.W0[4],";svg{color:",n.qo.icon.default,";}:hover{svg{color:",n.qo.icon.primary,";}}};label:rightSideWrapper;"),promptText:(0,i.iv)(o.c.body("regular"),";color:",n.qo.text.hints,";white-space:unset;overflow:hidden;text-overflow:ellipsis;;label:promptText;"),generatedText:(0,i.iv)(o.c.body("regular"),";border:1px solid ",n.qo.action.outline.hover,";border-radius:",n.E0[6],";padding:",n.W0[6]," ",n.W0[12],";background-color:",n.qo.background.neutral,";;label:generatedText;"),buttonWrapper:(0,i.iv)("box-shadow:",n.AF.dividerTop,";padding:",n.W0[12]," ",n.W0[16],";display:flex;justify-content:center;align-items:center;justify-content:end;gap:",n.W0[8],";;label:buttonWrapper;"),actionsWrapper:function(e){var t=e.isLoading,r=void 0!==t&&t;return(0,i.iv)("display:flex;flex-wrap:wrap;gap:",n.W0[8],";",r&&kf,";;label:actionsWrapper;")}};function Nf(e){return Nf="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},Nf(e)}function Wf(){Wf=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Nf(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function Uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Hf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(r),!0).forEach((function(t){Ff(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ff(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Nf(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Nf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Nf(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vf(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function qf(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Vf(i,n,o,a,l,"next",e)}function l(e){Vf(i,n,o,a,l,"throw",e)}a(void 0)}))}}const zf=function(e){var t=e.popover,r=void 0===t?"prompt":t,n=e.generatedValues,o=e.onChange,i=e.onInsert,a=(0,H.$)(),l=(0,le.v)((function(e){return e.appConfig})),u=jo(),d=(0,Oo.D)(null==n?void 0:n.prompt),p=(0,re.O)({defaultValues:n}),f=[{label:"Standard",value:"standard"},{label:"Fluency",value:"fluency"},{label:"Formal",value:"formal"},{label:"Academic",value:"academic"},{label:"Simple",value:"simple"},{label:"Creative",value:"creative"},{label:"Expand",value:"expand"},{label:"Shorten",value:"shorten"}],v=[{label:"Heading",value:"heading"},{label:"Paragraph",value:"paragraph"},{label:"Others",value:"others"}];(0,c.useEffect)((function(){(null==n?void 0:n.prompt)!==d&&p.reset(n)}),[p,n,d]);var h=p.handleSubmit(function(){var e=qf(Wf().mark((function e(t){var n,i,a,l;return Wf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t.prompt.trim().length){e.next=2;break}return e.abrupt("return");case 2:return n=Po(Hf(Hf({},t),{},{popover:r})),i=(0,Br.He)(p.getValues("characterLimit")),e.next=6,u.mutateAsync({prompt:n,maxTokens:i?Ao(i):void 0});case 6:a=e.sent,l=a.data,o(Hf(Hf({},t),{},{popover:r,generatedText:l.choices[0].message.content}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),b=function(){var e=qf(Wf().mark((function e(t){var i,a,l,c;return Wf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:return i=Po(Hf(Hf({},n),{},{prompt:p.getValues("prompt"),action:t})),a=(0,Br.He)(p.getValues("characterLimit")),e.next=6,u.mutateAsync({prompt:i,maxTokens:a?Ao(a):void 0});case 6:l=e.sent,c=l.data,o(Hf(Hf({},n),{},{popover:r,generatedText:c.choices[0].message.content}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,s.BX)("form",{onSubmit:h,children:[(0,s.BX)("div",{css:$f.fieldWrapper({isLoading:u.isLoading}),children:[(0,s.tZ)(L.Qr,{name:"prompt",control:p.control,render:function(e){return(0,s.tZ)(Vo,Hf(Hf({},e),{},{label:a("COM_SPPAGEBUILDER_EDITOR_AI_WHAT_TO_GENERATE"),isCharacterCountVisible:!0}))}}),"edit"===r&&(0,s.tZ)("div",{css:$f.actionsWrapper,children:[{label:"Fix Grammar & Spelling",value:"fixGrammarAndSpelling"},{label:"Summarize",value:"summarize"},{label:"Improve",value:"improve"},{label:"Para-phrase",value:"paraPhrase"},{label:"Simplify",value:"simplify"}].map((function(e){return(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){return b(e.value)},children:e.label},e.value)}))}),(0,s.tZ)(ua.Z,{header:{title:"Advance Settings"},cardHeaderCss:$f.cardHeaderCss,cardCss:$f.cardCss,children:(0,s.BX)("div",{css:$f.cardInnerWrapper,children:[(0,s.tZ)(L.Qr,{name:"characterLimit",control:p.control,render:function(e){return(0,s.tZ)(J.Z,Hf(Hf({},e),{},{type:"number",label:a("COM_SPPAGEBUILDER_EDITOR_AI_CHARACTER_LIMIT"),helpText:a("COM_SPPAGEBUILDER_EDITOR_AI_CHARACTER_LIMIT_HELP_TEXT")}))}}),(0,s.tZ)(L.Qr,{name:"language",control:p.control,render:function(e){return(0,s.tZ)(Q.Z,Hf(Hf({},e),{},{options:l.languages.filter((function(e){return"*"!==e.value})),label:a("COM_SPPAGEBUILDER_EDITOR_AI_LANGUAGE"),placeholder:"Select a language",helpText:a("COM_SPPAGEBUILDER_EDITOR_AI_LANGUAGE_PLACEHOLDER")}))}}),(0,s.tZ)(L.Qr,{name:"tone",control:p.control,render:function(e){return(0,s.tZ)(Q.Z,Hf(Hf({},e),{},{options:f,label:a("COM_SPPAGEBUILDER_EDITOR_AI_SELECT_TONE"),isClearable:!1}))}}),(0,s.tZ)(L.Qr,{name:"useCase",control:p.control,render:function(e){return(0,s.tZ)(Q.Z,Hf(Hf({},e),{},{options:v,label:a("COM_SPPAGEBUILDER_EDITOR_AI_SELECT_USE_CASE"),isClearable:!1}))}})]})})]}),(0,s.BX)("div",{css:$f.buttonWrapper,children:["edit"===r&&(0,s.tZ)(X.Z,{variant:"secondary",disabled:u.isLoading,onClick:function(){i&&i(p.getValues("prompt"))},children:a("COM_SPPAGEBUILDER_EDITOR_AI_PLACE_TEXT")}),(0,s.tZ)(X.Z,{type:"submit",buttonCss:q.iZ.generateAiButton(u.isLoading),icon:u.isLoading?"":(0,s.tZ)(w.Z,{name:"generate"}),loading:u.isLoading,children:a("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE")})]})]})};var Kf={name:"njl2cv-fieldWrapper",styles:"pointer-events:none;label:fieldWrapper;"},$f={fieldWrapper:function(e){var t=e.isLoading,r=void 0!==t&&t;return(0,i.iv)("padding:",n.W0[20],";display:flex;flex-direction:column;gap:",n.W0[12],";",r&&Kf,";;label:fieldWrapper;")},buttonWrapper:(0,i.iv)("box-shadow:",n.AF.dividerTop,";padding:",n.W0[12]," ",n.W0[16],";display:flex;justify-content:center;align-items:center;justify-content:end;gap:",n.W0[8],";;label:buttonWrapper;"),actionsWrapper:(0,i.iv)("display:flex;flex-wrap:wrap;gap:",n.W0[8],";;label:actionsWrapper;"),cardCss:{name:"1657fld-cardCss",styles:"box-shadow:none;border-radius:0;label:cardCss;"},cardHeaderCss:{name:"8k5c4w-cardHeaderCss",styles:"padding-left:0;label:cardHeaderCss;"},cardInnerWrapper:(0,i.iv)("display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:",n.W0[12],";>div{max-width:194px;width:100%;padding-top:",n.W0[8],";};label:cardInnerWrapper;")};function Xf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Yf(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 Yf(e,t){if(e){if("string"==typeof e)return Qf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qf(e,t):void 0}}function Qf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Jf=function(e){var t=e.isOpen,r=e.fieldValue,n=e.triggerRef,o=e.onChange,a=e.onClose,l=e.popoverGap,u=(0,H.$)(),d=r.trim().length>0,p=Xf((0,c.useState)(d?"edit":"prompt"),2),f=p[0],v=p[1],h=Xf((0,c.useState)({prompt:d?r:"",popover:d?"edit":"prompt",generatedText:"",characterLimit:"1000",language:"",tone:"standard",useCase:"others"}),2),b=h[0],y=h[1],m=Xf((0,c.useState)([]),2),g=m[0],E=m[1],_=Xf((0,c.useState)(0),2),O=_[0],S=_[1],I=(0,ca.l)({isOpen:t,triggerRef:n,gap:l,arrow:"right"}),x=I.position,C=I.popoverRef,P=function(){var e=r.trim().length>0;v(e?"edit":"prompt"),y({prompt:e?r:"",popover:e?"edit":"prompt",generatedText:"",characterLimit:"1000",language:"english",tone:"standard",useCase:"others"}),E([])};(0,c.useEffect)((function(){return P(),function(){return P()}}),[r]);var A=function(e){var t;b.prompt!==e.prompt?(E([e]),y(e),S(0)):(E([].concat(function(e){if(Array.isArray(e))return Qf(e)}(t=g)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Yf(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.")}(),[e])),y(e),S(g.length)),v("regenerate")};return(0,s.tZ)(ca.h,{isOpen:t,children:(0,s.tZ)("div",{css:(0,i.iv)({position:"absolute",left:x.left,top:x.top},";label:AiTextPopoverController;"),ref:C,children:(0,s.tZ)(ua.Z,{header:{title:(0,s.BX)("div",{children:["regenerate"===f&&(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"arrowLeft",height:20,width:20}),onClick:function(){v("prompt"),y({prompt:"",popover:"prompt",generatedText:"",characterLimit:"1000",language:"",tone:"standard",useCase:"others"}),E([])},buttonCss:ev.leftArrowButtonCss}),u("regenerate"===f?"COM_SPPAGEBUILDER_EDITOR_AI_WRITE_NEW_PROMPT":"COM_SPPAGEBUILDER_EDITOR_AI_TEXT_GENERATOR")]}),actionTray:(0,s.tZ)(X.Z,{variant:"text",onClick:a,buttonCss:ev.crossButton,children:(0,s.tZ)(w.Z,{name:"cross",height:24,width:24})})},cardCss:ev.cardStyle,hideArrow:!0,children:(0,s.tZ)("div",{css:ev.cardInnerSection,children:function(){switch(f){case"regenerate":return(0,s.tZ)(Mf,{onEdit:function(){v("prompt")},onInsert:function(e){o(e),a()},onChange:A,generatedValues:b,onPaginate:function(e){var t=g[e];y(t),S(e)},totalItems:g.length,currentIndex:O});case"edit":return(0,s.tZ)(zf,{generatedValues:b,popover:"edit",onChange:A,onInsert:function(e){o(e),a()}});default:return(0,s.tZ)(zf,{generatedValues:b,onChange:A})}}()})})})})};var ev={cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:cardStyle;"),crossButton:{name:"1o5ntf8-crossButton",styles:"padding:0;label:crossButton;"},cardInnerSection:{name:"1p0y3sw-cardInnerSection",styles:"width:440px;label:cardInnerSection;"},leftArrowButtonCss:{name:"1j3qnzr-leftArrowButtonCss",styles:"padding-left:0;label:leftArrowButtonCss;"}};function tv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const rv=function(e){var t,r,n=e.label,o=e.field,i=e.fieldState,a=e.disabled,l=e.loading,u=e.helpText,d=e.responsive,p=e.responsiveOrientation,f=(0,H.$)(),v=(0,le.v)((function(e){return e.appConfig})),h=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return tv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tv(e,t):void 0}}(t,r)||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.")}()),b=h[0],y=h[1],m=(0,c.useRef)(null),g=(0,c.useRef)(null),E=(0,ko.F)((function(e){return e.payload})),_=E.addonIndex,O=E.sectionIndex,S=E.columnIndex,I=E.tableItem;return(0,s.tZ)(bo.Z,{label:n,field:o,fieldState:i,disabled:a,loading:l,helpText:u,responsive:d,responsiveOrientation:p,children:function(){var e,t=null!==(e=o.value)&&void 0!==e?e:"",r="".concat(null!=O?O:0,"-").concat(null!=S?S:0,"-").concat(null!=_?_:0);if((0,A.$K)(I)){var n=I.rowItemIdx,i=void 0===n?-1:n,a=I.itemIdx,l=I.contentItemIdx;r+="-".concat(i,"-").concat(a,"-").concat(l)}var c=t.replace(/<\/(p|div|h1|h2|h3|h4|h5|h6|ul|ol|li|blockquote)>/g,"\n").replace(/<[^>]*>/g,""),u=c.length>0,d=t.replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,"<li>$1<$2$3>");return(0,s.BX)("div",{css:nv.wrapper,children:[!A.Eu&&v.enable_ai&&(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:q.iZ.generateWithAiButtonWrapper,children:(0,s.tZ)(X.Z,{ref:m,onClick:function(){return y(!0)},icon:(0,s.tZ)(w.Z,{name:"wand",height:18,width:18}),css:q.iZ.generateWithAiButton(),children:f("COM_SPPAGEBUILDER_EDITOR_AI_GENERATE_WITH_AI")})}),(0,s.tZ)(Jf,{isOpen:b,fieldValue:u?c:"",onClose:function(){return y(!1)},onChange:function(e){var t;o.onChange(e),null===(t=g.current)||void 0===t||t.commands.setContent(e),y(!1)},triggerRef:m,popoverGap:20})]}),(0,s.tZ)(If,{value:d,onChange:function(e){o.onChange(e)},editorRef:g},r)]})}})};var nv={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;")};const ov=function(e){var t=e.label,r=e.field,n=e.options,o=e.fieldState,i=e.disabled,a=e.loading,l=e.onChange,c=e.helpText,u=e.columns,d=void 0===u?2:u;return(0,s.tZ)(bo.Z,{label:t,field:r,fieldState:o,disabled:i,loading:a,helpText:c,children:function(e){var t=e.data,o=t.responsive,i=t.device,a=(0,Br.o5)(r.value,i);return(0,s.tZ)(s.HY,{children:(0,s.tZ)("div",{css:iv.wrapper({columns:d}),children:n.map((function(e){return(0,s.tZ)(X.Z,{variant:"text",buttonCss:iv.thumbItem({isActive:a===e.value}),onClick:function(){var t=(0,Br.xU)({previous:r.value,value:e.value,responsive:o,device:i});r.onChange(t),l&&l(t)},children:e.icon&&(0,s.tZ)("span",{css:iv.icon({isActive:a===e.value}),dangerouslySetInnerHTML:{__html:e.icon}})},e.value)}))})})}})};var iv={wrapper:function(e){var t=e.columns;return(0,i.iv)("display:grid;grid-template-columns:repeat(",t,", 1fr);;label:wrapper;")},icon:function(e){var t=e.isActive;return(0,i.iv)("width:100%;border:1px solid ",t?n.qo.icon.primary:n.qo.icon.neutral,";border-radius:",n.E0[6],";;label:icon;")},thumbItem:function(e){var t=e.isActive;return(0,i.iv)("padding:",n.W0[6],";",t&&(0,i.iv)("svg{color:",n.qo.icon.primary,";}padding:",n.W0[6],";;label:thumbItem;"),";;label:thumbItem;")}};function av(e){return av="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},av(e)}function lv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lv(Object(r),!0).forEach((function(t){uv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function uv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==av(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==av(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===av(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dv(e,t):void 0}}(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 dv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var pv=[{label:"Move",fieldKey:"move",fields:[{label:"X",fieldKey:"x"},{label:"Y",fieldKey:"y"}]},{label:"Rotate",fieldKey:"rotate",isAngleUnit:!0,fields:[{label:"X",fieldKey:"x"},{label:"Y",fieldKey:"y"},{label:"Z",fieldKey:"z"}]},{label:"Scale",fieldKey:"scale",isNoUnit:!0,fields:[{label:"X",fieldKey:"x"},{label:"Y",fieldKey:"y"}]},{label:"Skew",fieldKey:"skew",isAngleUnit:!0,fields:[{label:"X",fieldKey:"x"},{label:"Y",fieldKey:"y"}]},{label:"Transform Origin",fieldKey:"transform_origin",fields:[{label:"Top",fieldKey:"top"},{label:"Left",fieldKey:"left"}]}],fv={move:{x:{value:"",unit:"px"},y:{value:"",unit:"px"}},rotate:{x:{value:"",unit:"deg"},y:{value:"",unit:"deg"},z:{value:"",unit:"deg"}},scale:{x:"",y:""},skew:{x:{value:"",unit:"deg"},y:{value:"",unit:"deg"}},transform_origin:{top:{value:"50",unit:"%"},left:{value:"50",unit:"%"}}};const vv=function(e){var t=e.field,r=e.fieldState,n=e.readOnly,o=e.label,i=e.isInlineLabel,a=e.responsive,l=e.responsiveOrientation,u=e.helpText,d=e.onChange,p=sv((0,c.useState)((function(){return(0,A.$K)(t.value)&&(0,A.Kn)(t.value)?t.value:fv})),2),f=p[0],v=p[1],h=(0,te.N)(f),b=(0,ko.F)((function(e){return e.payload})),y=b.sectionIndex,m=b.columnIndex,g=b.addonIndex,E=b.tableItem,_=(0,Go.s)((function(e){return e.currentState}));(0,c.useEffect)((function(){v(f),"%"!==f.transform_origin.top.unit||"%"!==f.transform_origin.left.unit||"0"!==f.transform_origin.top.value&&"50"!==f.transform_origin.top.value&&"100"!==f.transform_origin.top.value||"0"!==f.transform_origin.left.value&&"50"!==f.transform_origin.left.value&&"100"!==f.transform_origin.left.value?S(-1):sc(cv({},f),S)}),[y,m,g,E,_]),(0,c.useEffect)((function(){t.onChange(h),d&&d(h)}),[h]);var O=sv((0,c.useState)(4),2),w=O[0],S=O[1],I=function(e){var t=cv({},f.transform_origin),r=function(e,t){switch(e){case 0:t.top.value="0",t.left.value="0";break;case 1:t.top.value="0",t.left.value="50";break;case 2:t.top.value="0",t.left.value="100";break;case 3:t.top.value="50",t.left.value="0";break;case 4:t.top.value="50",t.left.value="50";break;case 5:t.top.value="50",t.left.value="100";break;case 6:t.top.value="100",t.left.value="0";break;case 7:t.top.value="100",t.left.value="50";break;case 8:t.top.value="100",t.left.value="100"}return t.top.unit="%",t.left.unit="%",t}(e,cv({},t)),n=cv({},f);n.transform_origin=r,v(n),S(e)};return(0,s.tZ)(bo.Z,{field:t,fieldState:r,label:o,isInlineLabel:i,readOnly:n,responsive:a,responsiveOrientation:l,helpText:u,children:function(){return(0,s.tZ)("div",{css:hv.wrapper,children:pv.map((function(e){return(0,s.BX)("div",{children:[!!e.label&&(0,s.tZ)("div",{css:hv.groupLabel,children:e.label}),(0,s.BX)("div",{css:hv.groupFieldWrapper,children:[e.fields.map((function(t){var r=f[e.fieldKey][t.fieldKey];return e.isNoUnit?(0,s.tZ)(Ye.Z,{label:t.label,value:r,type:"number",onChange:function(r){var n=(0,vc.ZP)(f,(function(n){(0,A.$K)(n[e.fieldKey])&&(n[e.fieldKey][t.fieldKey]=r)}));v(n)}},t.fieldKey):(0,s.tZ)(uc.Z,{label:t.label,isAngleUnit:e.isAngleUnit,fieldValue:r,isLarge:!0,onChange:function(r){var n=(0,vc.ZP)(f,(function(n){var o=n[e.fieldKey];(0,A.$K)(o)&&(o[t.fieldKey]=r)}));"transform_origin"===e.fieldKey&&sc(cv({},n),S),v(n)},inputCss:hv.inputCss,unitInputStyles:hv.unitInputStyles},t.fieldKey)})),"transform_origin"===e.fieldKey&&(0,s.tZ)(lc,{activeIndex:w,onClick:I})]})]},e.fieldKey)}))})}})};var hv={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[12],";;label:wrapper;"),groupLabel:(0,i.iv)(o.c.caption("medium")," color:",n.qo.text.default,";margin-bottom:",n.W0[8],";;label:groupLabel;"),groupFieldWrapper:(0,i.iv)("display:grid;grid-template-columns:repeat(3, 1fr);column-gap:",n.W0[16],";row-gap:",n.W0[16],";;label:groupFieldWrapper;"),inputCss:{name:"17gmmrm-inputCss",styles:"width:100%;label:inputCss;"},unitInputStyles:{name:"1v4ejpb-unitInputStyles",styles:"width:45px;label:unitInputStyles;"}};function bv(e){return bv="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},bv(e)}function yv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yv(Object(r),!0).forEach((function(t){gv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==bv(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==bv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===bv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ev=function(e){var t=e.isOpen,r=e.onClose,n=e.onChange,o=e.triggerRef,a=e.typographyValues,l=e.device,u=e.popoverGap,d=void 0===u?20:u,p=(0,H.$)(),f=(0,le.v)((function(e){return e.appConfig.is_google_fonts_disabled})),v=(0,ca.l)({isOpen:t,triggerRef:o,gap:d,arrow:"right"}),h=v.position,b=v.popoverRef,y=(0,ws.Sh)(),m=(0,c.useMemo)((function(){var e;return(0,Ss.c)(null!==(e=y.data)&&void 0!==e?e:[],f)}),[y.data,f]),g={italic:a.italic,underline:a.underline,uppercase:a.uppercase},E=m.find((function(e){return e.value===a.font})),_=(0,c.useMemo)((function(){var e=[{value:"",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_FONT_WEIGHT")},{value:"100",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_THIN")},{value:"200",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_EXTRA_THIN")},{value:"300",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_LIGHT")},{value:"400",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_NORMAL")},{value:"500",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_MEDIUM")},{value:"600",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_SEMI_BOLD")},{value:"700",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_BOLD")},{value:"800",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_EXTRA_BOLD")},{value:"900",label:p("COM_SPPAGEBUILDER_EDITOR_FONT_WEIGHT_LABEL_BLACK")}];return E&&(0,A.$K)(E.variants)?e.filter((function(e){var t,r;return(null!==(t=null===(r=E.variants)||void 0===r?void 0:r.map((function(e){return(0,Ss.vn)(e).weight.toString()})))&&void 0!==t?t:[]).includes(e.value)})):e}),[E,p]);return(0,s.tZ)(ca.h,{isOpen:t,onClickOutside:r,children:(0,s.tZ)("div",{css:(0,i.iv)({position:"absolute",left:h.left,top:h.top},";label:TypographyPopover;"),ref:b,children:(0,s.tZ)(ua.Z,{header:{title:p("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_TITLE"),actionTray:(0,s.tZ)(X.Z,{variant:"text",onClick:r,buttonCss:_v.crossButton,children:(0,s.tZ)(w.Z,{name:"cross",height:24,width:24})})},cardCss:_v.cardStyle,hideArrow:!0,children:(0,s.BX)("div",{css:_v.cardInnerSection,children:[(0,s.tZ)(Ha.Z,{options:m,value:E,label:p("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LABEL"),placeholder:p("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),onChange:function(e){var t,r;n(mv(mv({},a),{},{font:e.value,type:null!==(t=e.type)&&void 0!==t?t:"google",weight:""}),null!==(r=e.variants)&&void 0!==r?r:[])},clearOption:function(){return n(mv(mv({},a),{},{font:""}))},isSearchable:!0}),(0,s.BX)("div",{css:_v.sizeLineHeightSpaceWrapper,children:[(0,s.tZ)(uc.Z,{label:p("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_SIZE_LABEL"),fieldValue:a.size[l],onChange:function(e){var t;n(mv(mv({},a),{},{size:mv(mv({},a.size),{},gv({},l,e))}),null!==(t=null==E?void 0:E.variants)&&void 0!==t?t:[])}}),(0,s.tZ)(uc.Z,{label:p("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LINE_HEIGHT_LABEL"),fieldValue:a.line_height[l],onChange:function(e){var t;n(mv(mv({},a),{},{line_height:mv(mv({},a.line_height),{},gv({},l,e))}),null!==(t=null==E?void 0:E.variants)&&void 0!==t?t:[])}}),(0,s.tZ)(uc.Z,{label:p("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_LETTER_SPACE_LABEL"),fieldValue:a.letter_spacing[l],onChange:function(e){var t;n(mv(mv({},a),{},{letter_spacing:mv(mv({},a.letter_spacing),{},gv({},l,e))}),null!==(t=null==E?void 0:E.variants)&&void 0!==t?t:[])}})]}),(0,s.BX)("div",{css:_v.textDecorationWrapper,children:[(0,s.tZ)(Ts,{label:p("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_STYLE_LABEL"),values:g,onChange:function(e){var t;n(mv(mv({},a),e),null!==(t=null==E?void 0:E.variants)&&void 0!==t?t:[])},wrapperStyle:_v.wrapperStyle}),(0,s.tZ)(Ha.Z,{label:p("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_FONT_WEIGHT_LABEL"),options:_,value:_.find((function(e){return String(e.value)===String(a.weight)})),onChange:function(e){var t;n(mv(mv({},a),{},{weight:e.value}),null!==(t=null==E?void 0:E.variants)&&void 0!==t?t:[])},clearOption:function(){return n(mv(mv({},a),{},{weight:""}))},wrapperStyle:_v.wrapperStyle,isFontWeight:!0})]})]})})})})};var _v={cardStyle:(0,i.iv)("box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";;label:cardStyle;"),cardInnerSection:(0,i.iv)(q.iZ.cardInnerSection,";flex-direction:column;gap:",n.W0[12],";padding:",n.W0[12],";width:304px;height:208px;;label:cardInnerSection;"),crossButton:{name:"1o5ntf8-crossButton",styles:"padding:0;label:crossButton;"},sizeLineHeightSpaceWrapper:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[8],";;label:sizeLineHeightSpaceWrapper;"),textDecorationWrapper:(0,i.iv)("display:flex;justify-content:center;gap:",n.W0[8],";;label:textDecorationWrapper;"),wrapperStyle:{name:"pkzghw-wrapperStyle",styles:"max-width:136px;width:100%;label:wrapperStyle;"}};function Ov(e){return Ov="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},Ov(e)}function wv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wv(Object(r),!0).forEach((function(t){Iv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Iv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ov(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ov(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ov(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Cv(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 Cv(e,t){if(e){if("string"==typeof e)return Pv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pv(e,t):void 0}}function Pv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Av={xl:{value:"",unit:"px"},lg:{value:"",unit:"px"},md:{value:"",unit:"px"},sm:{value:"",unit:"px"},xs:{value:"",unit:"px"}},Lv={font:"",uppercase:!1,italic:!1,underline:!1,weight:"",size:fc()(Av),line_height:fc()(Av),letter_spacing:fc()(Av),type:"google"};const Tv=function(e){var t=e.field,r=e.fieldState,n=e.onChange,o=e.readOnly,i=e.label,a=e.isInlineLabel,l=e.responsive,u=e.responsiveOrientation,d=e.helpText,p=e.fallbacks,f=e.fieldSettings,v=(0,H.$)(),h=xv((0,c.useState)(!1),2),b=h[0],y=h[1],m=xv((0,c.useState)([]),2),g=m[0],E=m[1],_=(0,c.useRef)(null),O=(0,le.v)((function(e){return e.appConfig.is_google_fonts_disabled})),S=(0,ws.Sh)(),I=(0,c.useMemo)((function(){return function(e){var t=p,r=(0,A.Kn)(t)&&(0,A.Zt)(t).length>0;if((0,A.$K)(e)&&(0,A.Kn)(e))return e;var n=fc()(Lv);if(!r)return n;var o,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Cv(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}((0,A.Zt)(t));try{for(i.s();!(o=i.n()).done;){var a=o.value,l=xv(t[a].split("."),2),c=l[0],u=l[1];if((0,A.$K)(f[c]))if(u){var s=f[c];if((0,A.$K)(s[u])){if(!(0,A.Kn)(n[a])){n[a]=s[u];continue}if(!(0,A.Kn)(s[u])){n[a][x.zu].value=f[c];continue}for(var d=0,v=Object.entries(s[u]);d<v.length;d++){var h=xv(v[d],2),b=h[0],y=h[1],m=(0,A.Kn)(y)?y:{value:y};n[a][b]=Sv(Sv({},n[a][b]),m)}}}else{if(!(0,A.Kn)(n[a])){n[a]=f[c];continue}if(!(0,A.Kn)(f[c])){n[a][x.zu].value=f[c];continue}for(var g=0,E=Object.entries(f[c]);g<E.length;g++){var _=xv(E[g],2),O=_[0],w=_[1],S=(0,A.Kn)(w)?w:{value:w};n[a][O]=Sv(Sv({},n[a][O]),S)}}}}catch(e){i.e(e)}finally{i.f()}return n}(t.value)}),[t.value,f,p]);return(0,c.useEffect)((function(){if(I.font&&S.data){var e=(0,A.$K)(I.type)?I.type:"google";"google"!==e||O?"local"===e&&(0,Ss.pE)({family:I.font,variants:g.length>0?g:[String(I.weight)]},"local"):(0,Ss.pE)({family:I.font,variants:g.length>0?g:[String(I.weight)]},"google",S.data)}}),[I.font,I.weight,g,S.data]),(0,s.tZ)(s.HY,{children:(0,s.tZ)(bo.Z,{field:t,fieldState:r,label:i,isInlineLabel:a,readOnly:o,responsive:l,responsiveOrientation:u,helpText:d,children:function(e){var r=e.data.device,o="".concat(I.size[r].value||"00","/").concat(I.line_height[r].value||"00");return(0,s.BX)(s.HY,{children:[(0,s.BX)("button",{type:"button",css:Rv.wrapper,ref:_,onClick:function(){return y(!0)},children:[(0,s.tZ)("span",{css:Rv.font({font:I.font,fontWeight:I.weight,italic:I.italic,underline:I.underline,upperCase:I.uppercase}),title:I.font||v("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_EMPTY_FONT_PLACEHOLDER"),children:I.font||v("COM_SPPAGEBUILDER_EDITOR_TYPOGRAPHY_EMPTY_FONT_PLACEHOLDER")}),(0,s.tZ)("div",{css:Rv.separator,children:(0,s.tZ)("span",{})}),(0,s.tZ)("div",{css:Rv.sizeAndLineHeight,children:o}),(0,s.tZ)("div",{css:Rv.iconWrapper,children:(0,s.tZ)(w.Z,{name:"settings",height:20,width:20})})]}),(0,s.tZ)(Ev,{isOpen:b,onClose:function(){return y(!1)},onChange:function(e){E(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),t.onChange(e),n&&n(e)},device:r,triggerRef:_,typographyValues:I})]})}})})};var Dv={name:"1v13n35-font",styles:"text-transform:uppercase;label:font;"},Zv={name:"10mr6hu-font",styles:"text-decoration:underline;label:font;"},jv={name:"gwvx45-font",styles:"font-style:italic;label:font;"},Rv={wrapper:(0,i.iv)(q.iZ.resetButton,";",o.c.body(),";width:100%;border:1px solid ",n.qo.stroke.neutral,";height:32px;display:flex;align-items:center;padding:0 ",n.W0[8],";border-radius:",n.E0[6],";:focus{box-shadow:",n.AF.outline,";}:hover{color:",n.qo.text.hover,";};label:wrapper;"),font:function(e){var t=e.font,r=e.fontWeight,n=void 0===r?"initial":r,o=e.italic,a=void 0!==o&&o,l=e.underline,c=void 0!==l&&l,u=e.upperCase,s=void 0!==u&&u;return(0,i.iv)("text-align:left;flex:1;font-weight:",n,";",q.iZ.textEllipsis,";",!!t&&(0,i.iv)("font-family:",t,";;label:font;")," ",a&&jv," ",c&&Zv," ",s&&Dv,";;label:font;")},separator:(0,i.iv)(q.iZ.flexCenter(),";width:16px;height:16px;span{width:2px;height:2px;background-color:",n.qo.icon.default,";border-radius:",n.E0.circle,";margin:auto;};label:separator;"),sizeAndLineHeight:(0,i.iv)("color:",n.qo.text.hints,";max-width:60px;width:100%;;label:sizeAndLineHeight;"),iconWrapper:(0,i.iv)("padding:0;position:relative;svg{color:",n.qo.icon.default,";transition:color 0.3s ease;}:hover{svg{color:",n.qo.icon.hover,";}};label:iconWrapper;")};function Bv(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Mv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mv(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function Mv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kv=function(e){var t,r={},n=Bv((0,A.Zt)(e));try{for(n.s();!(t=n.n()).done;){var o=e[t.value];if((0,A.$K)(o)){var i=o.fields;if((0,A.$K)(i)){var a,l=Bv((0,A.Zt)(i));try{for(l.s();!(a=l.n()).done;){var c,u=a.value,s=i[u];r[u]=null!==(c=s.std)&&void 0!==c?c:""}}catch(e){l.e(e)}finally{l.f()}}}}}catch(e){n.e(e)}finally{n.f()}return r},Gv=function(e){var t=e.split(".");return["sp_accordion_item","sp_tab_item"].includes(t[t.length-1])},Nv=function(e,t,r){return(0,A.$K)(e.admin_label)&&(0,A.HD)(e.admin_label)&&e.admin_label.length>0?e.admin_label:(0,A.$K)(e.title)&&(0,A.HD)(e.title)&&e.title.length>0?e.title:r("COM_SPPAGEBUILDER_EDITOR_REPEATABLE_ITEM_DEFAULT_TITLE",{index:t+1})},Wv=function(e,t){return(0,A.$K)(e)&&((0,A.$K)(e.title)||(0,A.$K)(e.admin_label))&&(e.admin_label=t("COM_SPPAGEBUILDER_EDITOR_REPEATABLE_ITEM_DEFAULT_TITLE_COPY",{title:e.title||e.admin_label||""})),e};function Uv(e){return Uv="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},Uv(e)}function Hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hv(Object(r),!0).forEach((function(t){Vv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Uv(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Uv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Uv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qv=function(e){var t=e.id,r=e.fieldValue,n=e.isDragOverlay,o=e.onEditItem,i=e.onDuplicateItem,a=e.onDeleteItem,l=(0,Ar.nB)({id:t}),c=l.attributes,u=l.listeners,d=l.setNodeRef,p=l.transform,f=l.transition,v=l.isDragging,h={transform:Nr.ux.Transform.toString(p),transition:f,opacity:v?.5:1};return(0,s.BX)("div",{css:[zv.repeatableItem({isDragOverlay:n}),h,";label:RepeatableItem;"],ref:d,children:[(0,s.BX)("div",{css:zv.leftWrapper,"data-left-wrapper":!0,children:[(0,s.tZ)("button",Fv(Fv(Fv({type:"button",css:zv.addonDragHandler},c),u),{},{children:(0,s.tZ)(w.Z,{name:"dragger"})})),(0,s.tZ)("span",{title:r,children:r})]}),!n&&(0,s.BX)("div",{css:zv.actionButtonsWrapper,children:[(0,s.tZ)("button",{type:"button",css:zv.actionButton,onClick:o,children:(0,s.tZ)(w.Z,{name:"pencilOnBox"})}),(0,s.tZ)("button",{type:"button",css:zv.actionButton,onClick:i,children:(0,s.tZ)(w.Z,{name:"copy"})}),(0,s.tZ)("button",{type:"button",css:zv.actionButton,onClick:a,children:(0,s.tZ)(w.Z,{name:"trash"})})]})]})};var zv={repeatableItem:function(e){var t=e.isDragOverlay,r=void 0!==t&&t;return(0,i.iv)("display:flex;justify-content:space-between;padding:",n.W0[8]," ",n.W0[12],";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";transition:background-color 0.3s ease;:hover{&>[data-left-wrapper]{>span{color:",n.qo.text.hover,";}>button{>svg{color:",n.qo.icon.hover,";}}}}",r&&(0,i.iv)("background-color:",n.qo.background.white,";;label:repeatableItem;"),";;label:repeatableItem;")},leftWrapper:(0,i.iv)("display:flex;justify-content:center;align-items:center;gap:",n.W0[2],";span{max-width:160px;",q.iZ.textEllipsis,";};label:leftWrapper;"),actionButtonsWrapper:(0,i.iv)("height:100%;display:flex;gap:",n.W0[8],";;label:actionButtonsWrapper;"),addButtonWrapper:(0,i.iv)("align-self:center;margin-bottom:",n.W0[8],";;label:addButtonWrapper;"),actionButton:(0,i.iv)(q.iZ.resetButton,";svg{color:",n.qo.icon.default,";}:hover{svg{color:",n.qo.icon.hover,";}};label:actionButton;"),addonDragHandler:(0,i.iv)(q.iZ.resetButton,";cursor:grab!important;>svg{color:",n.qo.icon.default,";};label:addonDragHandler;")};function Kv(e){return Kv="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},Kv(e)}function $v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(r),!0).forEach((function(t){Yv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Kv(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Kv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kv(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jv(e,t):void 0}}(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 Jv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const eh=function(e){var t=e.values,r=e.defaultValue,n=e.onEditItem,o=e.onDuplicateItem,i=e.onDeleteItem,a=e.onAppendItem,l=e.onRearrangeItems,u=e.onBulkInsert,d=e.bulkImport,p=(0,H.$)(),f=(0,re.O)({defaultValues:{items:t}}),v=f.reset,h=f.getValues,b=(0,$e.d)().showModal,y=Qv((0,c.useState)(null),2),m=y[0],g=y[1],E=Qv((0,c.useState)(""),2),_=E[0],O=E[1],S=(0,L.Dq)({control:f.control,name:"items"}),I=f.watch("items"),x=S.fields.map((function(e,t){return Xv(Xv({index:t},e),I[t])})),C=(0,Pr.Dy)((0,Pr.VT)(Pr.we),(0,Pr.VT)(Pr.Lg,{coordinateGetter:Ar.is}));return(0,c.useEffect)((function(){v(Xv(Xv({},h()),{},{items:t}))}),[t,v,h]),(0,c.useEffect)((function(){if(m){var e=x.find((function(e){return e.id===m}));if(e){var t=function(e,t,r){return(0,A.$K)(e.title)&&(0,A.HD)(e.title)&&e.title.length>0?e.title:(0,A.$K)(e.admin_label)&&(0,A.HD)(e.admin_label)&&e.admin_label.length>0?e.admin_label:r("COM_SPPAGEBUILDER_EDITOR_REPEATABLE_ITEM_DEFAULT_TITLE",{index:t+1})}(e,e.index,p);O(t)}}}),[m]),(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:th.addButtonWrapper,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"plus"}),onClick:function(){S.append(r),a()},children:p("COM_SPPAGEBUILDER_EDITOR_ADD_INNER_ITEM_BUTTON")})}),d&&(0,s.tZ)("div",{css:th.addButtonWrapper,children:(0,s.tZ)(X.Z,{variant:"secondary",icon:(0,s.tZ)(w.Z,{name:"plus"}),onClick:function(){b({component:Vt,closeOnOutsideClick:!0,props:{bulkImport:d,onBulkInsert:function(e){var t=null==e?void 0:e.map((function(e){var t,r,n,o;return{title:null==e?void 0:e.title,thumb:{src:null==e?void 0:e.thumb,width:null==e||null===(t=e.media_attr)||void 0===t||null===(r=t.full)||void 0===r?void 0:r.width,height:null==e||null===(n=e.media_attr)||void 0===n||null===(o=n.full)||void 0===o?void 0:o.height},full:null==e?void 0:e.path,alt:""}}));u(t)}}})},children:p("COM_SPPAGEBUILDER_EDITOR_ADD_INNER_BULK_ITEMS_BUTTON")})}),(0,s.tZ)(Pr.LB,{sensors:C,collisionDetection:Pr.pE,onDragStart:function(e){g(String(e.active.id))},onDragEnd:function(e){var r=e.active,n=e.over;if(g(null),O(""),null!=n&&n.id&&r.id!==n.id){var o=x.findIndex((function(e){return e.id===r.id})),i=x.findIndex((function(e){return e.id===n.id})),a=(0,Ar.Rp)(x,o,i);S.replace(a),l((0,Ar.Rp)(t,o,i))}},children:(0,s.BX)(Ar.Fo,{items:x,strategy:Ar.qw,children:[x.map((function(e,t){var r=e.title||e.admin_label||"Item";return(0,s.tZ)(qv,{id:e.id,fieldValue:r,onEditItem:function(){return n(t)},onDuplicateItem:function(){S.insert(t+1,Xv(Xv({},I[t]),{},{admin_label:p("COM_SPPAGEBUILDER_EDITOR_DUPLICATE_TITLE",{title:I[t].title})})),o(t)},onDeleteItem:function(){S.remove(t),i(t)}},e.id)})),(0,s.tZ)(Pr.y9,{children:m&&(0,s.tZ)(qv,{id:m,fieldValue:_,onEditItem:A.ZT,onDuplicateItem:A.ZT,onDeleteItem:A.ZT,isDragOverlay:!0})})]})})]})};var th={repeatableItem:(0,i.iv)("display:flex;justify-content:space-between;padding:",n.W0[8]," ",n.W0[12],";border:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[6],";;label:repeatableItem;"),actionButtonsWrapper:(0,i.iv)("display:flex;gap:",n.W0[8],";;label:actionButtonsWrapper;"),addButtonWrapper:(0,i.iv)("align-self:center;margin-bottom:",n.W0[8],";;label:addButtonWrapper;"),actionButton:(0,i.iv)(q.iZ.resetButton,";svg{color:",n.qo.icon.default,";}:hover{svg{color:",n.qo.icon.hover,";}};label:actionButton;")};function rh(e){return rh="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},rh(e)}function nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(r),!0).forEach((function(t){ih(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ih(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==rh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==rh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ah=function(e){var t=e.isOpen,r=e.popoverRef,o=e.position,i=e.field,a=e.title,l=e.values,u=e.index,d=e.onClose,p=e.onApplyChanges,f=(0,H.$)(),v=(0,re.O)({defaultValues:(0,c.useMemo)((function(){return l[u]}),[l,u])}),h=v.watch(),b=(0,ou.VG)(i.attr,h);return(0,s.tZ)(ca.h,{isOpen:t,customZIndex:n.W5.header,children:(0,s.tZ)(L.RV,oh(oh({},v),{},{children:(0,s.BX)("div",{css:[lh.popover,{position:"absolute",left:o.left,top:o.top},";label:RepeatablePortal;"],ref:r,children:[(0,s.BX)("div",{css:lh.header,children:[(0,s.tZ)("span",{children:a||f("COM_SPPAGEBUILDER_EDITOR_INNER_ITEM_POPOVER_HEADER")}),(0,s.tZ)("button",{type:"button",css:q.iZ.resetButton,onClick:d,children:(0,s.tZ)(w.Z,{name:"cross"})})]}),(0,s.tZ)("div",{css:lh.fieldsWrapper,children:(0,s.tZ)(Bh,{settings:b,form:v,fieldNamePrefix:!1,hasBorder:!0})}),(0,s.tZ)("div",{css:lh.footer,children:(0,s.tZ)(X.Z,{onClick:v.handleSubmit((function(e){p(e)})),children:f("COM_SPPAGEBUILDER_EDITOR_APPLY")})})]})}))})};var lh={popover:(0,i.iv)("background-color:",n.qo.background.white,";width:320px;box-shadow:",n.AF.popover,";border-radius:",n.E0[6],";z-index:1;;label:popover;"),header:(0,i.iv)("padding:",n.W0[12]," ",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:space-between;align-items:center;span{",o.c.caption("medium"),";};label:header;"),footer:(0,i.iv)("border-top:1px solid ",n.qo.stroke.neutral,";display:flex;justify-content:end;align-items:center;padding:",n.W0[12]," ",n.W0[16],";;label:footer;"),fieldsWrapper:(0,i.iv)("padding:",n.W0[12],";display:flex;flex-direction:column;gap:",n.W0[8],";max-height:calc(100vh - 140px);overflow-y:auto;;label:fieldsWrapper;")},ch=r(2238);function uh(e){return uh="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},uh(e)}function sh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ph(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dh(Object(r),!0).forEach((function(t){fh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==uh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===uh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vh(e){return vh="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},vh(e)}function hh(e){return function(e){if(Array.isArray(e))return _h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Eh(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 bh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bh(Object(r),!0).forEach((function(t){mh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==vh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==vh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===vh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Eh(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 Eh(e,t){if(e){if("string"==typeof e)return _h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_h(e,t):void 0}}function _h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Oh=function(e){var t=e.fieldName,r=e.field,n=e.parentKey,o=e.bulkImport,i=(0,H.$)(),a=(0,L.Gc)(),l=gh((0,c.useState)(null),2),u=l[0],d=l[1],p=(0,A.$K)(n)?"".concat(n,".").concat(t):t,f=(0,L.qo)({control:a.control,name:p})||[],v=(0,L.qo)({control:a.control,name:"repeatable.field_name"}),h=(0,L.qo)({control:a.control,name:"repeatable.field_value"}),b=function(){var e=(0,V.o)((function(e){return e.addNestedRowForDeepAddon})),t=(0,V.o)((function(e){return e.deleteSection})),r=(0,ko.F)((function(e){return{type:e.type,payload:e.payload,setSettings:e.setSettings}})),n=r.type,o=r.payload,i=r.setSettings,a=o.addonIndex,l=o.columnIndex,c=o.sectionIndex,u=(0,ru._)().getSectionById,s=(0,V.o)((function(e){return e.page})),d=(0,H.$)();return{addRepeatableItem:function(t){(0,A.$K)(c)&&(0,A.$K)(l)&&(0,A.$K)(a)&&e({sectionIndex:c,columnIndex:l,addonIndex:a,item:t})},duplicateRepeatableItem:function(t){var r=[],n=ph(ph({},t),{},{title:d("COM_SPPAGEBUILDER_EDITOR_DUPLICATE_TITLE",{title:t.title}),content:t.content.map((function(e){var t,n=u(e.id).index,o=(0,A.x0)(),i=(0,ch.Nk)({sectionIndex:n,sectionId:o,sections:s,independent:!1});return r.push.apply(r,function(e){if(Array.isArray(e))return sh(e)}(t=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sh(e,t):void 0}}(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.")}()),ph(ph({},e),{},{id:o})}))});return(0,A.$K)(c)&&(0,A.$K)(l)&&(0,A.$K)(a)&&e({sectionIndex:c,columnIndex:l,addonIndex:a,item:t,sections:r}),n},deleteRepeatableItem:function(e){e.content.forEach((function(e){var r=u(e.id).index;-1!==r&&(0,A.$K)(c)&&r<c&&i(n,ph(ph({},o),{},{sectionIndex:c-1})),t({sectionIndex:r})}))}}}(),y=b.addRepeatableItem,m=b.duplicateRepeatableItem,g=b.deleteRepeatableItem,E=gh((0,c.useState)(!1),2),_=E[0],O=E[1],w=(0,ca.l)({isOpen:_,gap:20,arrow:"right"}),S=w.triggerRef,I=w.position,C=w.popoverRef,P=f.map((function(e,t){var r=e;return(0,A.$K)(r.title)?e:yh(yh({},r),{},{admin_label:Nv(r,t,i)})}));if(!(0,A.$K)(r.attr))return null;var T=function(){d(null),O(!1)},D=function(e,t){var r=(0,vc.ZP)(P,(function(r){(0,A.kJ)(r)||(r=[]),r.splice(t,0,e)}));a.setValue(p,r)},Z=kv(r.attr);return(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:wh.wrapper,ref:S,children:(0,s.tZ)(eh,{values:P,defaultValue:Z,onEditItem:function(e){O(!0),d(e)},onDuplicateItem:function(e){if(Gv(t)){var r=P[e],n=m(r);D(Wv(n,i),e+1)}else if(t.includes(x.pb.headerItemsKey)){var o=P[e],a=yh(yh({},o),{},{content:o.content.map((function(e){return yh(yh({},e),{},{id:(0,A.x0)()})}))});D(Wv(a,i),e+1)}else if(t.includes("settings.".concat(x.pb.bodyItemsKey))){var l=P[e],c=yh(yh({},l),{},{table_advanced_item:l.table_advanced_item.map((function(e){return yh(yh({},e),{},{content:e.content.map((function(e){return yh(yh({},e),{},{id:(0,A.x0)()})}))})}))});D(Wv(c,i),e+1)}else if(t.includes(x.pb.bodyItemsKey)){var u=P[e],s=yh(yh({},u),{},{content:u.content.map((function(e){return yh(yh({},e),{},{id:(0,A.x0)()})}))});D(Wv(s,i),e+1)}else{var d=fc()(P[e]);D(Wv(d,i),e+1)}},onDeleteItem:function(e){var r=(0,vc.ZP)(P,(function(t){t.splice(e,1)}));if(Gv(t)){var n=P[e];g(n)}a.setValue(p,r)},onAppendItem:function(){if(Gv(t)){var e={title:Z.title,content:[{id:(0,A.x0)(),name:"row",type:"nested_row"}]};D(e,P.length),y(e)}else if(t.includes(x.pb.headerItemsKey)){var n={content:[{id:(0,A.x0)(),name:"text_block",settings:{text:""},collapse:!1,visibility:!0}]};D(n,P.length)}else if(t.includes("settings.".concat(x.pb.bodyItemsKey))){var o={table_advanced_item:[{content:[{id:(0,A.x0)(),name:"text_block",settings:{text:""},collapse:!1,visibility:!0}]}]};D(o,P.length)}else if(t.includes(x.pb.bodyItemsKey)){var i={content:[{id:(0,A.x0)(),name:"text_block",settings:{text:""},collapse:!1,visibility:!0}]};D(i,P.length)}else{var a;D(kv(null!==(a=r.attr)&&void 0!==a?a:{}),P.length)}},onRearrangeItems:function(e){a.setValue(p,e)},onBulkInsert:function(e){var t,r=null!==(t=a.getValues().settings.sp_gallery_item)&&void 0!==t?t:[],n=[].concat(hh(r),hh(e));a.setValue(p,n)},bulkImport:o})}),(0,A.$K)(u)&&(0,s.tZ)(ah,{isOpen:_,position:I,popoverRef:C,field:{attr:r.attr},title:r.title||"",onApplyChanges:function(e){var r=(0,vc.ZP)(P,(function(t){(0,A.$K)(v)&&(0,A.$K)(null==e?void 0:e[v])?t[u]=yh(yh({},e),{},mh({},v,h)):t[u]=e}));a.setValue("repeatable.field_name",t),a.setValue("repeatable.field_value",r),a.setValue(p,r),T()},values:P,index:u,onClose:T})]})};var wh={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[8],";;label:wrapper;")};function Sh(e){return Sh="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},Sh(e)}function Ih(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ih(Object(r),!0).forEach((function(t){Ch(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ch(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Sh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Sh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Sh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ph.apply(this,arguments)}function Ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Lh=function(e){var t,r,n,o,i,a=(o=null!==(t=e.pluginType)&&void 0!==t?t:"captcha",i=(0,S.p)().showToast,(0,ue.a)({queryKey:["Plugins",o],queryFn:function(){return function(e){return fe.u.get(ce.H.PLUGINS,{params:{pluginsType:e}})}(o).then((function(e){return e.data}))},onSuccess:function(e){return e.plugins},onError:function(e){i({type:"danger",message:e.message})}}).data),l=null!==(r=null==a?void 0:a.plugins)&&void 0!==r?r:[],c=[{label:"Default",value:"default"}].concat(function(e){if(Array.isArray(e))return Ah(e)}(n=l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Ah(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ah(e,t):void 0}}(n)||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.")}()),u=Ph({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return(0,s.tZ)(Q.Z,xh(xh({},u),{},{options:c}))};function Th(e){return Th="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},Th(e)}function Dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dh(Object(r),!0).forEach((function(t){jh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jh(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Th(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Th(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Th(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Rh=function(e){var t=e.field,r=e.name,n=e.hideLabel,o=void 0!==n&&n,i=e.form,a=e.fromRepeatableField,l=void 0!==a&&a,c=e.parentKey,u=(0,H.$)();switch(t.type){case"hidden":case"text":case"gmap":case"number":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(J.Z,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation,isDebounced:!0}))}});case"preset":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Rd,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,options:(0,Br.qb)(t.values),placeholder:u("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"transform":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(vv,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"effects":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Os,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"select":return t.multiple?(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(zt.Z,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,options:(0,Br.qb)(t.values),placeholder:u("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}}):(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Q.Z,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,options:(0,Br.qb)(t.values),placeholder:u("COM_SPPAGEBUILDER_EDITOR_SELECT_FIELD_PLACEHOLDER"),responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"category":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(vs,Zh(Zh({},e),{},{label:o?void 0:t.title,placeholder:u("COM_SPPAGEBUILDER_EDITOR_FIELD_CATEGORY_PLACEHOLDER"),helpText:t.desc,context:t.context,isMultiSelect:(0,Br.sw)(t.multiple),responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"plugin":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Lh,Zh(Zh({},e),{},{label:o?void 0:t.title,placeholder:u("COM_SPPAGEBUILDER_EDITOR_FIELD_CATEGORY_PLACEHOLDER"),helpText:t.desc,pluginType:t.plugin_type,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"accesslevel":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(uu,Zh(Zh({},e),{},{label:o?void 0:t.title,placeholder:u("COM_SPPAGEBUILDER_EDITOR_FIELD_ACCESS_LEVEL_PLACEHOLDER"),helpText:t.desc,isMultiSelect:(0,Br.sw)(t.multiple),responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"animation":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Qa,Zh(Zh({},e),{},{helpText:t.desc}))}});case"alert":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){var r;return(0,s.tZ)(ns,Zh(Zh({},e),{},{message:null!==(r=t.message)&&void 0!==r?r:"",isOldAddon:t.is_old_addon,title:t.title,variation:t.variation}))}});case"alignment":var d=(t.vertical?["start","center","end"]:["left","center","right"]).map((function(e){return{label:"",icon:t.vertical?Br.BI[e]:Br.C4[e],value:e}}));return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){var r,n;return(0,s.tZ)(as,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,options:null!==(r=null===(n=t.available_options)||void 0===n?void 0:n.map((function(e){return{label:"",icon:Br.C4[e],value:e}})))&&void 0!==r?r:d,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"headings":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Gs,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,headingsOnly:!!t.headingsOnly,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"link":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(pd,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,linkPopup:!!t.link_popup}))}});case"color":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(ic,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"advancedcolor":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)($u,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"textarea":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Vo,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"module":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(_d,Zh(Zh({},e),{},{label:o?void 0:t.title,moduleType:t.module,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"checkbox":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Kt.Z,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation,isInlineLabel:!0}))}});case"radio":case"advancedradio":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Xu,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,options:(0,Br.qb)(t.values),responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"icon":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Fc,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation,isInlineLabel:!0}))}});case"editor":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(rv,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"media":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Aa,Zh(Zh({},e),{},{label:o?void 0:t.title,allowedMediaType:t.format||t.mediaType,helpText:t.desc,hidePreview:!!t.hide_preview,hideAltText:!!t.hide_alt_text,isLottieFile:!1,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"padding":case"margin":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Ul,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"boxshadow":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){var r,n;return(0,s.tZ)(Jl,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation,hasSpread:null===(r=null===(n=t.config)||void 0===n?void 0:n.spread)||void 0===r||r}))}});case"slider":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){var r,n;return(0,s.tZ)($t.Z,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,min:t.min,max:t.max,step:null!==(r=t.step)&&void 0!==r?r:1,info:t.info,hasUnit:!!t.unit,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation,staticUnit:null!==(n=t.default_unit)&&void 0!==n?n:""}))}});case"advancedslider":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(ts,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,min:t.min,max:t.max,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"border":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(jl,Zh(Zh({},e),{},{responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation,title:t.title}))}});case"fontstyle":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Ms,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"fonts":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Is,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"frontend_navigator":return(0,s.tZ)(Qu,{});case"typography":var p=i.getValues(),f="settings"in p?p.settings:p;return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Tv,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,fallbacks:t.fallbacks,fieldSettings:f,responsive:!(0,A.$K)(t.responsive)||(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"codeeditor":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(yo,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"gradient":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(Pc,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc}))}});case"buttons":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){var r;return(0,A.$K)(e.field.value)||e.field.onChange(null!==(r=t.std)&&void 0!==r?r:""),(0,s.tZ)(tc,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,options:(0,Br.qb)(t.values),responsive:(0,Br.sw)(t.responsive),responsiveOrientation:t.responsive_orientation}))}});case"thumbnail":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(ov,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,columns:t.columns,options:(0,Br.qb)(t.values)}))}});case"image_shape":return(0,s.tZ)(L.Qr,{control:i.control,name:r,render:function(e){return(0,s.tZ)(ed,Zh(Zh({},e),{},{label:o?void 0:t.title,helpText:t.desc,columns:t.columns,options:(0,Br.qb)(t.values)}))}});case"repeatable":return l?null:(0,s.tZ)(Oh,{fieldName:r,parentKey:c,field:t,bulkImport:t.bulk_import});case"timeline":case"separator":return(0,s.tZ)(Na,{title:t.title});default:return null}},Bh=function(e){var t,r=e.settings,n=e.form,o=e.fieldNamePrefix,i=void 0===o?"settings.":o,a=e.hasBorder,l=void 0!==a&&a,c=e.parentKey,u=e.disabledGroups;return(0,s.tZ)("div",{css:Mh.wrapper,children:(t=(0,A.Zt)(r),t.map((function(e){var o=r[e],a=o.fields,d=(0,A.Zt)(a),p=(0,ou.ME)(a),f=(0,ou.ed)(a);return(0,Br.uZ)(a)?0===d.length||"frontend"===o.client||(0,A.$K)(o.visibility)&&!o.visibility||(0,A.$K)(u)&&u.includes(e)?null:(0,s.tZ)(ua.Z,{hasBorder:l,header:function(){if((0,A.$K)(p)||!(t.length<=1))return{title:o.title,actionTray:(0,A.$K)(p)&&(0,s.tZ)(Rh,{field:p.field,name:"".concat((0,A.HD)(i)?i:"").concat(p.name),hideLabel:!0,form:n})}}(),isCollapsed:f,disabledCaretCollapse:(0,A.$K)(p),children:(0,s.tZ)("div",{css:q.iZ.cardInnerSection,children:d.map((function(e){if((0,A.$K)(a[e].visibility)&&!a[e].visibility||(null==p?void 0:p.name)===e)return null;var t=a[e];return(0,s.tZ)(Rh,{field:t,name:"".concat((0,A.HD)(i)?i:"").concat(e),parentKey:c,form:n},e)}))})},e):null})))})};var Mh={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";;label:wrapper;")};function kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Gh=[{label:"General",value:"general"},{label:"Style",value:"style"},{label:"Advanced",value:"advanced"}];const Nh=function(){var e,t,r=(0,L.Gc)(),n=(0,ko.F)((function(e){return e.payload})),o=(0,ru._)(),i=o.getAddon,a=o.getTableItem,l=(e=(0,c.useState)("general"),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?kh(e,t):void 0}}(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.")}()),u=l[0],d=l[1],p=(0,Xr.x)((function(e){return e.addonStructure})),f=(0,Xr.x)((function(e){return e.globalSettings})),v=r.control,h=(0,L.qo)({control:v,name:"settings"}),b=(0,c.useMemo)((function(){var e,t,r=n.sectionIndex,o=n.columnIndex,l=n.addonIndex,c=n.tableItem;if((0,A.$K)(r)&&(0,A.$K)(o)&&(0,A.$K)(l))return(0,A.$K)(c)?null===(t=a({sectionIndex:r,columnIndex:o,addonIndex:l,tableItem:c}))||void 0===t?void 0:t.name:null===(e=i({sectionIndex:r,columnIndex:o,addonIndex:l}))||void 0===e?void 0:e.name}),[n,i,a]),y=(0,c.useMemo)((function(){return b?p[b].settings:null}),[b,p]),m=(0,c.useMemo)((function(){var e;return null!==(e={general:y,style:f.style,advanced:f.advanced}[u])&&void 0!==e?e:{}}),[u,f,y]);return(0,s.BX)(s.HY,{children:[(0,s.tZ)(kr,{tabList:Gh,activeTab:u,variant:"primary",onChange:function(e){d(e)}}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(Bh,{settings:(0,ou.VG)(m,h),form:r})})]})};function Wh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Uh=[{label:"General",value:"general"},{label:"Style",value:"style"},{label:"Advanced",value:"advanced"}];const Hh=function(){var e,t,r=(0,L.Gc)(),n=(0,ko.F)((function(e){return e.payload})),o=(0,ru._)().getCollectionItemAddon,i=(e=(0,c.useState)("general"),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wh(e,t):void 0}}(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.")}()),a=i[0],l=i[1],u=(0,Xr.x)((function(e){return e.addonStructure})),d=(0,Xr.x)((function(e){return e.globalSettings})),p=r.control,f=(0,L.qo)({control:p,name:"settings"}),v=(0,c.useMemo)((function(){var e,t=n.sectionIndex,r=n.columnIndex,i=n.addonIndex,a=n.collectionItem;if((0,A.$K)(t)&&(0,A.$K)(r)&&(0,A.$K)(i)&&(0,A.$K)(a))return null===(e=o({sectionIndex:t,columnIndex:r,addonIndex:i,collectionItem:a}))||void 0===e?void 0:e.name}),[n,o]),h=(0,c.useMemo)((function(){return v?u[v].settings:null}),[v,u]),b=(0,c.useMemo)((function(){var e;return null!==(e={general:h,style:d.style,advanced:d.advanced}[a])&&void 0!==e?e:{}}),[a,d,h]);return(0,s.BX)(s.HY,{children:[(0,s.tZ)(kr,{tabList:Uh,activeTab:a,variant:"primary",onChange:function(e){l(e)}}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(Bh,{settings:(0,ou.VG)(b,f),form:r})})]})};function Fh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Vh=[{label:"General",value:"general"},{label:"Style",value:"style"},{label:"Advanced",value:"advanced"}];const qh=function(){var e,t,r=(0,L.Gc)(),n=(e=(0,c.useState)("general"),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fh(e,t):void 0}}(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.")}()),o=n[0],i=n[1],a=(0,Xr.x)((function(e){return e.addonStructure})),l=(0,Xr.x)((function(e){return e.globalSettings})),u=r.control,d=(0,L.qo)({control:u,name:"settings"}),p=(0,c.useMemo)((function(){var e=a[x.oA.productList].settings;return(0,A.$K)(e)?e:null}),[a]),f=(0,c.useMemo)((function(){var e;return null!==(e={general:p,style:l.style,advanced:l.advanced}[o])&&void 0!==e?e:{}}),[o,l,p]);return console.log({fields:f,values:d}),(0,s.BX)(s.HY,{children:[(0,s.tZ)(kr,{tabList:Vh,activeTab:o,variant:"primary",onChange:function(e){i(e)}}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(Bh,{settings:(0,ou.VG)(f,d),form:r})})]})};var zh=r(8331);function Kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const $h=function(){var e,t,r=(0,H.$)(),n=(0,L.Gc)(),o=(e=(0,c.useState)("style"),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kh(e,t):void 0}}(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.")}()),i=o[0],a=o[1],l=(0,zh.B)((function(e){return e.config})),u=n.control,d=(0,L.qo)({control:u,name:"settings"}),p=[{label:r("COM_SPPAGEBUILDER_EDITOR_COLUMN_SETTINGS_TAB_STYLE"),value:"style"},{label:r("COM_SPPAGEBUILDER_EDITOR_COLUMN_SETTINGS_TAB_RESPONSIVE"),value:"responsive"},{label:r("COM_SPPAGEBUILDER_EDITOR_COLUMN_SETTINGS_TAB_ANIMATION"),value:"animation"}],f=(0,c.useMemo)((function(){return l.column[i]}),[l.column,i]);return(0,s.BX)("div",{children:[(0,s.tZ)(kr,{tabList:p,activeTab:i,onChange:a}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(Bh,{settings:(0,ou.VG)(f,d),form:n})})]})};function Xh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Yh=function(e){var t,r,n=e.isInnerSection,o=void 0!==n&&n,i=(0,H.$)(),a=(0,L.Gc)(),l=(t=(0,c.useState)("style"),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Xh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Xh(e,t):void 0}}(t,r)||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.")}()),u=l[0],d=l[1],p=(0,zh.B)((function(e){return e.config})),f=a.control,v=(0,L.qo)({control:f,name:"settings"}),h=[{label:i("COM_SPPAGEBUILDER_EDITOR_SECTION_SETTINGS_TAB_STYLE"),value:"style"},{label:i("COM_SPPAGEBUILDER_EDITOR_SECTION_SETTINGS_TAB_TITLE"),value:"title"},{label:i("COM_SPPAGEBUILDER_EDITOR_SECTION_SETTINGS_TAB_RESPONSIVE"),value:"responsive"},{label:i("COM_SPPAGEBUILDER_EDITOR_COLUMN_SETTINGS_TAB_ANIMATION"),value:"animation"}],b=(0,c.useMemo)((function(){return p.section[u]}),[p.section,u]);return(0,s.BX)("div",{children:[(0,s.tZ)(kr,{tabList:h,activeTab:u,onChange:d}),(0,s.tZ)("div",{css:q.M6.settingsPanelContent,children:(0,s.tZ)(Bh,{settings:(0,ou.VG)(b,v),form:a,disabledGroups:o?x.f9:void 0})})]})};function Qh(e){return Qh="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},Qh(e)}function Jh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function eb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Qh(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Qh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Qh(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tb=function(){var e=(0,ko.F)((function(e){return e.type})),t=(0,ko.F)((function(e){return e.payload})),r=(0,ru._)(),n=r.getAddon,o=r.getTableItem,i=r.getCollectionItemAddon,a=(0,H.$)();switch(e){case"addon":var l=t.sectionIndex,c=t.columnIndex,u=t.addonIndex,d=t.tableItem;if(!(0,A.$K)(l)||!(0,A.$K)(c)||!(0,A.$K)(u))return null;var p,f,v,h,b="";if((b=(0,A.$K)(d)?null!==(p=null===(f=o({sectionIndex:l,columnIndex:c,addonIndex:u,tableItem:d}))||void 0===f?void 0:f.name)&&void 0!==p?p:"":null!==(v=null===(h=n({sectionIndex:l,columnIndex:c,addonIndex:u}))||void 0===h?void 0:h.name)&&void 0!==v?v:"").startsWith(x.HZ.name)){var y=(0,A.VL)(b),m=y.name,g=y.category;return(0,s.tZ)(Y.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_EASYSTORE")},{link:null,text:g},{link:null,text:m}]})}return(0,s.tZ)(Y.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DEFAULT")},{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_ADDON")},{link:null,text:(0,A.Dv)(b)}]});case"collection_item":var E,_,O,w=t.sectionIndex,S=t.columnIndex,I=t.addonIndex,C=t.collectionItem;return(0,A.$K)(w)&&(0,A.$K)(S)&&(0,A.$K)(I)&&(0,A.$K)(C)?(O=null!==(E=null===(_=n({sectionIndex:w,columnIndex:S,addonIndex:I}))||void 0===_?void 0:_.name)&&void 0!==E?E:"",(0,s.tZ)(Y.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DEFAULT")},{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_ADDON")},{link:null,text:(0,A.Dv)(O)}]})):null;case"collection_item_addon":var P,L,T=t.sectionIndex,D=t.columnIndex,Z=t.addonIndex,j=t.collectionItem;if(!((0,A.$K)(T)&&(0,A.$K)(D)&&(0,A.$K)(Z)&&(0,A.$K)(j)))return null;var R="";if((R=null!==(P=null===(L=i({sectionIndex:T,columnIndex:D,addonIndex:Z,collectionItem:j}))||void 0===L?void 0:L.name)&&void 0!==P?P:"").startsWith(x.HZ.name)){var B=(0,A.VL)(R),M=B.name,k=B.category;return(0,s.tZ)(Y.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_EASYSTORE")},{link:null,text:k},{link:null,text:M}]})}return(0,s.tZ)(Y.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DEFAULT")},{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_ADDON")},{link:null,text:(0,A.Dv)(R)}]});case"column":return(0,s.tZ)(Y.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DEFAULT")},{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_COLUMN")}]});case"section":return(0,s.tZ)(Y.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DEFAULT")},{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_SECTION")}]});default:return(0,s.tZ)(Y.Z,{routes:[{link:null,text:a("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_TITLE_DEFAULT")}]})}};const rb=function(){var e=(0,H.$)(),t=(0,ko.F)((function(e){return{type:e.type,payload:e.payload}})),r=t.type,n=t.payload,o=(0,V.o)((function(e){return e.updateSettings})),i=(0,L.Gc)().control,a=(0,c.useDeferredValue)((0,L.qo)({control:i,name:"settings"})),l=(0,Oo.D)(a),u=(0,V.o)((function(e){return e.page}));(0,c.useEffect)((function(){(0,Ol.isEqual)(a,l)||(0,A.$K)(a)&&(0,A.$K)(r)&&o(a,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jh(Object(r),!0).forEach((function(t){eb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({type:r},n),!!l)}),[a,r,n,l,o]);var d=(0,c.useMemo)((function(){return!("section"!==r||!(0,A.$K)(n.sectionIndex)||!u[n.sectionIndex].parent)}),[r,n,u]);return(0,s.BX)("div",{css:nb.wrapper,children:[(0,s.tZ)("div",{css:nb.header,children:(0,s.tZ)(tb,{})}),(0,s.tZ)("div",{css:nb.content,children:function(){switch(r){case"addon":return(0,s.tZ)(Nh,{});case"collection_item":return(0,s.tZ)(qh,{});case"collection_item_addon":return(0,s.tZ)(Hh,{});case"section":return(0,s.tZ)(Yh,{isInnerSection:d});case"column":return(0,s.tZ)($h,{});default:return(0,s.BX)("div",{css:nb.emptyState,children:[(0,s.tZ)("h4",{children:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_EMPTY_STATE_PLACEHOLDER")}),(0,s.tZ)("img",{src:nu,alt:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PANEL_EMPTY_STATE_IMAGE_ALT")})]})}}()})]})};var nb={wrapper:(0,i.iv)("border-left:1px solid ",n.qo.stroke.neutral,";height:calc(100vh - ",x.g3,"px);position:relative;;label:wrapper;"),header:(0,i.iv)(o.c.body("medium"),";padding:",n.W0[10]," ",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";;label:header;"),content:(0,i.iv)("height:calc(100vh - ",x.g3+40+40,"px);;label:content;"),emptyState:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[16],";color:",n.qo.text.neutral,";padding-inline:",n.W0[56]," ",n.W0[48],";margin-top:",n.W0[48],";h4{",o.c.body(),";color:",n.qo.text.hints,";text-align:center;};label:emptyState;")};const ob=function(e){var t=e.children,r=e.variant,n=void 0===r?"primary":r,o=e.gap,i=e.fullWidth,a=void 0!==i&&i,l=e.disabled,u=void 0!==l&&l;return(0,s.tZ)("div",{css:cb.buttonContainer(o,a),children:c.Children.map(t,(function(e){if(c.isValidElement(e)){var t=e.props,r=t.variant,i=t.disabled,l=t.buttonCss,s={variant:r||n,disabled:i||u,buttonCss:[cb.buttonCss(r||n,o,a),l],buttonContentCss:cb.buttonContentCss(a)};return c.cloneElement(e,s)}return e}))})};var ib={name:"1mnlghg-buttonContentCss",styles:"justify-content:center;label:buttonContentCss;"},ab={name:"1pk4jv6-buttonCss",styles:"flex:auto;label:buttonCss;"},lb={name:"1kfszus-buttonContainer",styles:"width:fit-content;label:buttonContainer;"},cb={buttonContainer:function(e,t){return(0,i.iv)("display:flex;overflow:hidden;",!t&&lb," ",e&&(0,i.iv)("gap:",e,"px;;label:buttonContainer;"),";;label:buttonContainer;")},buttonCss:function(e,t,r){return(0,i.iv)("secondary"===e&&(0,i.iv)("border:none;line-height:",n.Nv[20],";box-shadow:",n.AF.combinedButton,";&:hover{box-shadow:",n.AF.combinedButton,";}",t&&(0,i.iv)("box-shadow:",n.AF.combinedButtonExtend,";&:hover{box-shadow:",n.AF.combinedButtonExtend,";};label:buttonCss;"),";;label:buttonCss;")," &:last-of-type{","secondary"===e&&(0,i.iv)("box-shadow:",n.AF.combinedButtonExtend,";&:hover{box-shadow:",n.AF.combinedButtonExtend,";};label:buttonCss;"),";}",!t&&(0,i.iv)("border-radius:0;&:first-of-type{border-radius:",n.E0[6]," 0px 0px ",n.E0[6],";}&:last-of-type{border-radius:0px ",n.E0[6]," ",n.E0[6]," 0px;};label:buttonCss;")," ",r&&ab,";;label:buttonCss;")},buttonContentCss:function(e){return(0,i.iv)(e&&ib,";;label:buttonContentCss;")}},ub=r(6248);const sb=function(){var e=vr((function(e){return{isActive:e.isActive,toggleIsActive:e.toggleIsActive}}),ub.X),t=e.isActive,r=e.toggleIsActive;return(0,s.BX)("button",{id:"topbar-burger-menu",type:"button",css:db.menuButton(t),onClick:r,children:[(0,s.tZ)("span",{}),(0,s.tZ)("span",{}),(0,s.tZ)("span",{})]})};var db={menuButton:function(e){return(0,i.iv)(q.iZ.resetButton,";padding:0;display:flex;justify-content:center;flex-direction:column;width:40px;height:40px;justify-content:center;cursor:pointer;margin-left:-16px;:hover{span{background-color:",n.qo.icon.hover,";}}span{display:block;width:20px;height:2px;background-color:",n.qo.icon.default,";margin:",n.W0[2]," 0;border-radius:",n.E0[2],";transition:background-color 150ms ease-in,width 150ms ease-in;}",e&&(0,i.iv)("span{background-color:",n.qo.icon.hover,";width:16px;}>span:nth-of-type(2){width:12px;};label:menuButton;"),";;label:menuButton;")}},pb=r(7184),fb=r(9194),vb=r(9148),hb=r(5827);const bb=r.p+"images/ab499a0ad1900e77012b.png",yb=r.p+"images/c8e141c0f0b135b048ec.png";var mb,gb;function Eb(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function _b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ob=function(e){var t,r,n=e.closeModal,o=(t=(0,c.useState)("first"),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return _b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_b(e,t):void 0}}(t,r)||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.")}()),i=o[0],a=o[1],l=function(){return n({action:"CLOSE"})},u=(0,c.useCallback)((function(e){return a(e)}),[]),d={first:(0,s.tZ)(wb,{handleClose:l,updateStep:u}),second:(0,s.tZ)(Sb,{updateStep:u}),third:(0,s.tZ)(Ib,{handleClose:l})};return(0,s.tZ)(s.HY,{children:i in d?d[i]:null})},wb=function(e){var t=e.handleClose,r=e.updateStep,n=(0,H.$)();return(0,s.tZ)(Ne.Z,{onClose:t,title:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_TITLE"),isOverflowYAuto:!1,wrapperCss:Pb.wrapper,children:(0,s.BX)("div",{css:Pb.wrapper,children:[(0,s.BX)("div",{css:Pb.contentWrapper,children:[(0,s.tZ)("div",{css:Pb.fixingImageWrapper,children:(0,s.tZ)("img",{src:yb,alt:"fixing json",draggable:!1})}),(0,s.BX)("div",{css:Pb.text,children:[(0,s.tZ)("h4",{css:o.c.heading4("medium"),children:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_HEADING_1")}),(0,s.BX)("div",{css:Pb.instructions,children:[(0,s.tZ)("p",{children:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_WHAT_HAPPENED")}),(0,s.tZ)("p",{children:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_RECOMMEND")})]})]})]}),(0,s.BX)("div",{css:Pb.footerWrapper,children:[(0,s.tZ)(X.Z,{variant:"secondary",onClick:t,children:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_CANCEL")}),(0,s.tZ)(X.Z,{onClick:function(){r("second")},children:n("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON")})]})]})})},Sb=function(e){var t=e.updateStep,r=(0,H.$)(),n=(0,V.o)((function(e){return e.validateOldPageContent}));return(0,c.useEffect)((function(){n();var e=setTimeout((function(){t("third")}),6e3);return function(){clearTimeout(e)}}),[n,t]),(0,s.tZ)("div",{css:Pb.secondStepWrapper,children:(0,s.BX)("div",{css:Pb.contentWrapper,children:[(0,s.tZ)("div",{css:Pb.fixingIcon,children:(0,s.tZ)(w.Z,{name:"fixingIcon",width:104,height:104})}),(0,s.BX)("div",{css:Pb.text,children:[(0,s.tZ)("h4",{css:o.c.heading4("medium"),children:r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_HEADING_2")}),(0,s.BX)("div",{css:Pb.fixingText,children:[(0,s.tZ)(w.Z,{name:"arrowPath"}),(0,s.BX)("div",{css:Pb.fixingNow,children:[(0,s.BX)("span",{children:[r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_NOW_FIXING"),":"]}),(0,s.BX)("div",{css:Pb.fixingContentWrapper,children:[(0,s.tZ)("span",{children:r("COM_SPPAGEBUILDER_EDITOR_SECTION")}),(0,s.tZ)("span",{children:r("COM_SPPAGEBUILDER_EDITOR_COLUMN")}),(0,s.tZ)("span",{children:r("COM_SPPAGEBUILDER_EDITOR_ADDON")})]})]})]})]})]})})},Ib=function(e){var t=e.handleClose,r=(0,H.$)();return(0,s.tZ)(Ne.Z,{onClose:t,title:r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_TITLE_2"),isOverflowYAuto:!1,wrapperCss:Pb.wrapper,children:(0,s.BX)("div",{css:Pb.wrapper,children:[(0,s.BX)("div",{css:Pb.contentWrapper,children:[(0,s.tZ)("div",{css:Pb.fixingImageWrapper,children:(0,s.tZ)("img",{src:bb,alt:"fixing json completed",draggable:!1})}),(0,s.BX)("div",{css:Pb.text,children:[(0,s.tZ)("h4",{css:o.c.heading4("medium"),children:r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_HEADING_3")}),(0,s.tZ)("p",{css:o.c.caption(),children:r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_SAVING_INSTRUCTION")})]})]}),(0,s.tZ)("div",{css:Pb.footerWrapper,children:(0,s.tZ)(X.Z,{onClick:t,children:r("COM_SPPAGEBUILDER_EDITOR_VALIDATE_JSON_MODAL_BUTTON_UNDERSTAND")})})]})})},xb=(0,i.F4)(mb||(mb=Eb(["\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n"]))),Cb=(0,i.F4)(gb||(gb=Eb(["\n  0% {\n        transform: translateY(100%);\n        opacity: 0;\n    }\n    20% {\n        transform: translateY(0);\n        opacity: 1;\n    }\n    30% {\n        transform: translateY(0);\n        opacity: 1;\n    }\n    50% {\n        transform: translateY(-100%);\n        opacity: 0;\n    }\n    70% {\n        transform: translateY(-100%);\n        opacity: 0;\n    }\n    80% {\n        transform: translateY(100%);\n        opacity: 0;\n    }\n    100% {\n        transform: translateY(100%);\n        opacity: 0;\n    }\n"]))),Pb={wrapper:{name:"1tm1qml-wrapper",styles:"max-width:650px;label:wrapper;"},secondStepWrapper:(0,i.iv)("background:",n.qo.background.primary,";margin:",n.W0[24],";width:100%;box-shadow:",n.AF.modal,";border-radius:",n.E0[8],";overflow:hidden;max-width:650px;",n.Uo.smallTablet,"{max-width:90%;};label:secondStepWrapper;"),instructions:(0,i.iv)(o.c.caption()," text-align:center;;label:instructions;"),contentWrapper:(0,i.iv)("display:flex;flex-direction:column;align-items:center;padding:",n.W0[20],";gap:",n.W0[16],";background-color:",n.qo.background.white,";;label:contentWrapper;"),text:(0,i.iv)("display:flex;flex-direction:column;align-items:center;gap:",n.W0[12],";;label:text;"),fixingNow:(0,i.iv)(o.c.caption()," display:flex;align-items:center;gap:",n.W0[4],";;label:fixingNow;"),fixingContentWrapper:(0,i.iv)("display:flex;align-items:center;width:50px;height:34px;overflow:hidden;position:relative;color:",n.qo.alternate.viridian,";span{position:absolute;left:0;opacity:0;animation:",Cb," 5s ease-in-out forwards;&:nth-of-type(1){animation-delay:0s;}&:nth-of-type(2){animation-delay:2s;}&:nth-of-type(3){animation-delay:4s;}};label:fixingContentWrapper;"),fixingImageWrapper:{name:"1vmt9oz-fixingImageWrapper",styles:"height:126px;img{height:100%;};label:fixingImageWrapper;"},fixingIcon:(0,i.iv)("animation:",xb," 5s linear infinite;;label:fixingIcon;"),fixingText:(0,i.iv)("display:flex;align-items:center;gap:",n.W0[6],";;label:fixingText;"),footerWrapper:(0,i.iv)("background-color:",n.qo.background.white,";box-shadow:",n.AF.dividerTop,";padding:",n.W0[12]," ",n.W0[16],";display:flex;justify-content:end;gap:",n.W0[8],";;label:footerWrapper;")};function Ab(e){return Ab="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},Ab(e)}function Lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Tb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lb(Object(r),!0).forEach((function(t){Db(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Db(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ab(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ab(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ab(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zb(){Zb=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Ab(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function jb(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function Rb(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){jb(i,n,o,a,l,"next",e)}function l(e){jb(i,n,o,a,l,"throw",e)}a(void 0)}))}}var Bb=function(e){var t=e.pageType,r=e.extensionView,n=[x.HZ.list.type,x.HZ.single.type].includes(t)||["article","module"].includes(r);return[{id:"save-and-close",icon:"saveClose",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_SAVE_AND_CLOSE"},{id:"save-as-copy",icon:"copy",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_SAVE_AS_COPY",isDisabled:n},{id:"save-and-new",icon:"saveNew",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_SAVE_AND_NEW",isDisabled:n}]},Mb=[{id:"close",icon:"timesAlt",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_CLOSE"},{id:"export",icon:"exportAlt",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_DROPDOWN_EXPORT",iconNoFill:!0},{id:"import",icon:"importAlt",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_DROPDOWN_IMPORT",iconNoFill:!0},{id:"clear-content",icon:"trash",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_DROPDOWN_CLEAR",variant:"critical"},{id:"validate-content",icon:"command",title:"COM_SPPAGEBUILDER_EDITOR_TOPBAR_ACTION_DROPDOWN_CHECK_JSON",variant:"warning"}],kb=function(e,t){return e===x.HZ.list.type?"".concat(ga.Z.APPLICATION_ROOT,"index.php?option=com_easystore&view=products"):"".concat(ga.Z.APPLICATION_ROOT,"index.php?option=com_sppagebuilder&view=page&id=").concat(t)};const Gb=function(e){var t,r,n=e.isPopup,o=void 0!==n&&n,i=e.isNextClicked,a=e.setIsNextClicked,l=(0,H.$)(),u=(0,D.Z)(C.F.PageEditor),d=u.id,p=u.type,f=(0,L.Gc)(),v=(0,L.Gc)(),h=(0,T.s0)(),b=(0,T.TH)(),y=vr((function(e){return e.setIsActive})),m=(0,$e.d)(),g=m.showModal,E=m.closeModal,_=(0,S.p)().showToast,O=(0,ee.g)(),I=(0,hb.L)(),P=(0,c.useRef)(null),j=(0,ko.F)((function(e){return e.payload})),R=j.sectionIndex,B=j.columnIndex,M=j.addonIndex,k=(0,ko.F)((function(e){return e.type})),G=(0,pb.Xu)(),N=(0,V.o)((function(e){return e.clearPageContent})),W=(0,Go.s)((function(e){return e.pastStates})),F=(0,Go.s)((function(e){return e.futureStates})),q=(0,Go.s)((function(e){return e.undo})),z=(0,Go.s)((function(e){return e.redo})),K=(0,Z.T)().closeSettingPanel,$=(0,fb.HX)(),Y=U(),Q=Y.savePageContent,J=Y.isLoading,te=function(){var e=(0,$e.d)().showModal;return{showJSONValidationModal:function(t){return e({component:Ob,props:t})}}}(),re=te.showJSONValidationModal,ne=f.getValues("extension"),oe=f.getValues("extension_view"),ie=new URLSearchParams(window.location.href),ae=ie.get("article_id"),le=ie.get("module_id"),ce=function(){"com_content"===ne&&"article"===oe&&ae?window.location.href="".concat(A.Xy.pagebuilderBase,"administrator/index.php?option=com_content&view=article&layout=edit&id=").concat(ae):"mod_sppagebuilder"===ne&&"module"===oe&&le?window.location.href="".concat(A.Xy.pagebuilderBase,"administrator/index.php?option=com_modules&view=module&layout=edit&id=").concat(le,"&client_id=0"):(y(!0),(0,A.$K)(b.state)&&b.state.prevPageName===x.lr?h(-1):h(C.F.Home.buildLink()))},ue=function(){var e=Rb(Zb().mark((function e(){var t,r;return Zb().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O({title:l("COM_SPPAGEBUILDER_EDITOR_CLEAR_PAGE_CONTENT_TITLE"),confirmationMessage:l("COM_SPPAGEBUILDER_EDITOR_CLEAR_PAGE_CONTENT_MESSAGE"),confirmButtonText:l("COM_SPPAGEBUILDER_EDITOR_CLEAR_PAGE_CONTENT_CLEAR_BUTTON"),skipMutation:!0});case 2:"CONFIRM"===e.sent.action&&(K(),N(),f.setValue("css",""),o&&"popup"===f.getValues("extension_view")&&(t=v.getValues(),r={visibility:t.attribs.visibility,exclude_pages_toggle:t.attribs.exclude_pages_toggle,exclude_menus_toggle:t.attribs.exclude_menus_toggle,excluded_pages:t.attribs.excluded_pages,excluded_menus:t.attribs.excluded_menus,selected_pages:t.attribs.selected_pages,selected_menus:t.attribs.selected_menus,trigger_condition:t.attribs.trigger_condition,scroll_direction:t.attribs.scroll_direction,scroll_percentage:t.attribs.scroll_percentage,landing_after:t.attribs.landing_after,landing_show_after:t.attribs.landing_show_after,exit_after:t.attribs.exit_after,exit_show_after:t.attribs.exit_show_after,click_type:t.attribs.click_type,click_count:t.attribs.click_count,click_area:t.attribs.click_area,hover_area:t.attribs.hover_area,inactivity_duration:t.attribs.inactivity_duration,close_on_click:t.attribs.close_on_click,reappear_after:t.attribs.reappear_after},v.setValue("attribs",{}),v.setValue("attribs",r)));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),se=function(){var e=Rb(Zb().mark((function e(){var t,r,n;return Zb().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I({title:l(o?"COM_SPPAGEBUILDER_EDITOR_POPUP_EXPORT_TITLE":"COM_SPPAGEBUILDER_EDITOR_PAGE_EXPORT_TITLE"),isPopup:o,confirmationMessage:o?l("COM_SPPAGEBUILDER_EDITOR_POPUP_EXPORT_MESSAGE"):""});case 2:t=e.sent,r=t.action,n=t.seoChecked,"CONFIRM"===r&&G.mutate({pageId:d,isSeoChecked:n});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),de=function(){var e=Go.s.getState().currentState,t=ko.F.getState().type;if((0,A.$K)(t))switch(k){case"addon":(0,A.$K)(R)&&(0,A.$K)(B)&&(0,A.$K)(M)&&f.reset(Tb(Tb({},f.getValues()),{},{settings:e[R].columns[B].addons[M].settings,repeatable:{}}));break;case"column":(0,A.$K)(R)&&(0,A.$K)(B)&&f.reset(Tb(Tb({},f.getValues()),{},{settings:e[R].columns[B].settings}));break;case"section":(0,A.$K)(R)&&f.reset(Tb(Tb({},f.getValues()),{},{settings:e[R].settings}))}},pe=o?(0,s.BX)("span",{css:Nb.popupBuilderIcon,children:[(0,s.tZ)(w.Z,{name:"popsDuo",width:16,height:16,style:Nb.popupDuo}),l("COM_SPPAGEBUILDER_EDITOR_PAGE_TITLE_POPUPS")]}):(0,s.tZ)(s.HY,{});return(0,s.BX)("div",{css:Nb.wrapper,children:[(0,s.BX)("div",{css:Nb.leftActionWrapper,children:[(0,s.tZ)(sb,{}),(0,s.BX)(X.Z,{variant:"text",buttonCss:Nb.brandName,onClick:function(){return ce()},children:[(0,s.tZ)("div",{children:l("COM_SPPAGEBUILDER_EDITOR_BRAND_NAME")}),pe]})]}),(0,s.BX)("div",{css:Nb.actionWrapper,children:[(0,s.BX)("div",{css:Nb.resizeButtonWrapper,children:[(0,s.tZ)(X.Z,{variant:"text",buttonCss:Nb.resizeButton,onClick:function(){q(),de()},disabled:0===W.length,icon:(0,s.tZ)(w.Z,{name:"undo",width:20,height:20})}),(0,s.tZ)(X.Z,{variant:"text",buttonCss:Nb.resizeButton,onClick:function(){z(),de()},disabled:0===F.length,icon:(0,s.tZ)(w.Z,{name:"redo",width:20,height:20})})]}),(0,s.tZ)(Lc.Z,{variant:"secondary",buttonCss:Nb.previewButton,href:kb(p,d),target:"_blank",children:l("COM_SPPAGEBUILDER_EDITOR_TOPBAR_PREVIEW_BUTTON")}),(t=v.getValues("attribs.visibility"),r=v.getValues("attribs.trigger_condition"),t&&r||!o||!o||i?(0,s.BX)(ob,{children:[(0,s.tZ)(X.Z,{variant:"primary",loading:J,onClick:function(){o&&(null==a||a(!1),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="flex"),E({action:"CLOSE"})),Q()},children:l("COM_SPPAGEBUILDER_EDITOR_TOPBAR_SAVE_BUTTON")}),(0,s.tZ)(Qe.Z,{actions:Bb({pageType:p,extensionView:oe}),triggerButtonContent:(0,s.tZ)(w.Z,{name:"chevronDown"}),triggerButtonStyle:Nb.triggerButton,onSelect:function(e){switch(e){case"save-and-close":Q(),ce();break;case"save-and-new":if(Q(),"com_content"===ne&&"article"===oe&&ae){window.location.href="".concat(A.Xy.pagebuilderBase,"administrator/index.php?option=com_content&view=article&layout=edit");break}if("mod_sppagebuilder"===ne&&"module"===oe&&le){window.location.href="".concat(A.Xy.pagebuilderBase,"administrator/index.php?option=com_modules&view=module&layout=edit&client_id=0");break}g({component:vb.Z,props:{title:l("COM_SPPAGEBUILDER_EDITOR_CREATE_PAGE_MODAL_TITLE")}});break;case"save-as-copy":Q({saveAsCopy:!0})}}})]}):(0,s.tZ)(X.Z,{variant:"primary",loading:J,onClick:function(){null==a||a(!0),document.getElementById("topbar-burger-menu")&&(document.getElementById("topbar-burger-menu").style.display="none"),g({component:tr,props:{title:l("COM_SPPAGEBUILDER_EDITOR_POPUP_SETTINGS_MODAL_TITLE"),isPopup:!0,setIsNextClicked:function(e){return null==a?void 0:a(e)},form:v,savePageContent:Q}})},children:l("COM_SPPAGEBUILDER_EDITOR_TOPBAR_NEXT_BUTTON")})),(0,s.tZ)(Qe.Z,{actions:Mb,triggerButtonContent:(0,s.tZ)(w.Z,{name:"ellipsisXAlt"}),triggerButtonStyle:Nb.threeDots,displaceLeft:-45,width:140,onSelect:function(e){var t;switch(e){case"clear-content":ue();break;case"validate-content":re({});break;case"close":ce();break;case"export":se();break;case"import":null===(t=P.current)||void 0===t||t.click()}}})]}),(0,s.tZ)("input",{ref:P,type:"file",hidden:!0,onChange:function(){var e=Rb(Zb().mark((function e(t){var r,n,i,a,l,c,u,s,d,p,h,b,y,m,g,E,O,w,S,I,x,C;return Zb().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.target.files){e.next=13;break}return e.prev=1,e.next=4,$.mutateAsync(t.target.files[0]);case 4:r=e.sent,n=JSON.parse(r.data.seo),i=n.meta_description,a=void 0===i?"":i,l=n.meta_keywords,c=void 0===l?"":l,u=n.og_type,s=void 0===u?"":u,d=n.robots,p=void 0===d?"":d,h=n.seo_spacer,b=void 0===h?"":h,y=n.og_title,m=void 0===y?"":y,g=n.og_description,E=void 0===g?"":g,O=n.og_image,w=void 0===O?"":O,S=n.author,I={attribs:{meta_description:a,meta_keywords:c,og_type:s,robots:p,seo_spacer:b,author:void 0===S?"":S},og_title:m,og_description:E,og_image:{src:w}},o?(C=JSON.parse(null!==(x=r.data.attribs)&&void 0!==x?x:""),(0,A.$K)(r.data)&&v.reset(Tb(Tb({},v.getValues()),{},{css:r.data.css,attribs:C}))):(0,A.$K)(r.data)&&f.reset(Tb(Tb({},f.getValues()),{},{css:r.data.css},I)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),(0,A.VZ)(e.t0)&&_({type:"danger",message:e.t0.message});case 13:t.target.value="";case 14:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}()})]})};var Nb={wrapper:(0,i.iv)("background-color:",n.qo.base.white,";box-shadow:",n.AF.topbar,";display:flex;align-items:center;justify-content:space-between;padding:",n.W0[8]," ",n.W0[16],";width:100%;height:100%;;label:wrapper;"),triggerButton:(0,i.iv)(q.iZ.resetButton,";display:inline-block;",o.c.body("medium"),";text-align:center;text-decoration:none;vertical-align:middle;padding:",n.W0[6]," ",n.W0[6],";border-radius:0 ",n.E0[6]," ",n.E0[6]," 0;z-index:",n.W5.level,";transition:all 150ms ease-in-out;position:relative;background-color:",n.qo.action.primary.default,";color:",n.qo.base.white,";border-left:1px solid ",n.qo.action.primary.focus,";&:hover{background-color:",n.qo.action.primary.hover,";}&:active{background-color:",n.qo.action.primary.focus,";};label:triggerButton;"),leftActionWrapper:(0,i.iv)(q.iZ.flexCenter(),";padding:0 ",n.W0[16],";;label:leftActionWrapper;"),brandName:(0,i.iv)("padding-left:0;span{",o.c.body(),";};label:brandName;"),actionWrapper:(0,i.iv)("display:flex;gap:",n.W0[10],";;label:actionWrapper;"),resizeButtonWrapper:(0,i.iv)("display:flex;gap:",n.W0[4],";margin-right:",n.W0[24],";;label:resizeButtonWrapper;"),resizeButton:(0,i.iv)("color:",n.qo.icon.default,";padding:",n.W0[6],";;label:resizeButton;"),previewButton:(0,i.iv)("padding:",n.W0[6]," ",n.W0[20],";;label:previewButton;"),threeDots:(0,i.iv)("background-color:",n.qo.action.secondary.default,";border-radius:",n.E0.circle,";padding:",n.W0[6]," ",n.W0[8],";color:",n.qo.icon.default,";transition:background-color 0.3s ease,color 0.3s ease;:hover{color:",n.qo.icon.default,";background-color:",n.qo.action.secondary.hover,";};label:threeDots;"),popupBuilderIcon:{name:"ely8xq-popupBuilderIcon",styles:"display:flex;color:#456ef5!important;padding:4px 8px;background-color:#f0f4fa;border-radius:6px;font-size:14px;gap:2px;height:24px;align-items:center;margin-left:4px;label:popupBuilderIcon;"},popupDuo:(0,i.iv)("color:",n.qo.icon.primary,"!important;;label:popupDuo;")};const Wb=r.p+"images/c0e7220734e15fd694cd.webp",Ub=r.p+"images/711991e1eac63afd9999.webp",Hb=function(){var e=(0,H.$)();return(0,s.tZ)("div",{css:qb.mainWrap,children:(0,s.BX)("div",{css:[qb.bannerWrapper({orientation:"vertical",removeBorderRadius:!1}),";label:EasystoreEmptyState;"],children:[!!Ub&&(0,s.tZ)("img",{css:qb.emptyImage,src:Ub,srcSet:"".concat(Wb," 2x"),alt:e("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_EASYSTORE_IMAGE_ALT"),draggable:!1}),(0,s.BX)("div",{css:qb.messageWrapper({orientation:"vertical"}),children:[(0,s.tZ)("h4",{css:qb.title({orientation:"vertical"}),children:e("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_EASYSTORE_TITLE")}),(0,s.tZ)("p",{css:[qb.content,";label:EasystoreEmptyState;"],children:e("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_EASYSTORE")}),(0,s.tZ)("div",{css:qb.buttonWrapper,children:(0,s.tZ)("a",{css:qb.downloadNow,href:"https://www.joomshaper.com/easystore",target:"_blank",rel:"noreferrer noopenner",children:e("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_EASYSTORE_DOWNLOAD_NOW")})})]})]})})};var Fb={name:"1dk76ft-messageWrapper",styles:"text-align:center;label:messageWrapper;"},Vb={name:"ce9pem-messageWrapper",styles:"max-width:364px;label:messageWrapper;"},qb={emptyImage:(0,i.iv)("border-radius:",n.E0[10],";;label:emptyImage;"),errorMessage:(0,i.iv)("display:flex;width:100%;padding:",n.W0[32]," 0;background-color:",n.qo.background.error,";justify-content:center;align-items:center;gap:",n.W0[8],";color:",n.qo.base.error,";border-radius:",n.E0[6],";path{fill:",n.qo.icon.error,";};label:errorMessage;"),mainWrap:(0,i.iv)("background-color:",n.qo.background.white,";display:flex;flex-direction:column;justify-content:center;padding:",n.W0[72]," 0;margin:",n.W0[32],";border-radius:",n.E0[6],";;label:mainWrap;"),bannerWrapper:function(e){var t=e.orientation;return(0,i.iv)("display:grid;place-items:center;justify-content:center;","horizontal"===t&&(0,i.iv)("grid-template-columns:278px auto;gap:",n.W0[56],";justify-content:start;;label:bannerWrapper;")," & img{width:100%;};label:bannerWrapper;")},messageWrapper:function(e){var t=e.orientation;return(0,i.iv)("display:flex;flex-direction:column;max-width:432px;gap:",n.W0[12],";","horizontal"===t&&Vb," ","vertical"===t&&Fb,";;label:messageWrapper;")},title:function(e){var t=e.orientation;return(0,i.iv)(o.c.heading4("medium"),";","vertical"===t&&(0,i.iv)("margin-top:",n.W0[24],";;label:title;"),";;label:title;")},content:(0,i.iv)(o.c.caption(),";color:",n.qo.text.hints,";;label:content;"),buttonWrapper:(0,i.iv)("margin-top:",n.W0[12],";;label:buttonWrapper;"),downloadNow:(0,i.iv)("text-decoration:none;display:inline-block;",o.c.body("medium"),";text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:0;padding:",n.W0[6]," ",n.W0[16],";border-radius:",n.E0[6],";z-index:",n.W5.level,";transition:all 150ms ease-in-out;position:relative;background-color:",n.qo.action.primary.default,";color:",n.qo.base.white,";&:hover{color:",n.qo.base.white,";background-color:",n.qo.action.primary.hover,";}&:active{color:",n.qo.base.white,";background-color:",n.qo.action.primary.focus,";};label:downloadNow;")},zb=r(6914);function Kb(e){return Kb="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},Kb(e)}var $b=["text","attribs"];function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xb(Object(r),!0).forEach((function(t){Qb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qb(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Kb(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Kb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Kb(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jb(){Jb=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new I(o||[]);return n(a,"_invoke",{value:_(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function p(){}function f(){}function v(){}var h={};c(h,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(x([])));y&&y!==t&&r.call(y,i)&&(h=y);var m=v.prototype=p.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==Kb(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=O(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=v,n(m,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},g(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(m),c(m,l,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=x,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function ey(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function ty(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ry=function(e){var t,r,n,o,i=e.isPopup,a=(0,H.$)(),l=(0,D.Z)(C.F.PageEditor),u=l.id,d=l.type,p=(0,P.z1)(u),f=vr((function(e){return e.setIsActive})),v=(0,V.o)((function(e){return e.page})),h=(0,Go.s)(),b=h.pastStates,y=h.showWarningAtReload,m=(0,le.v)((function(e){return e.appConfig})),g=(0,zb.$x)(d),E=(0,P.mp)(),_=(0,T.s0)(),w=(n=(0,c.useState)(!1),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(n,o)||function(e,t){if(e){if("string"==typeof e)return ty(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ty(e,t):void 0}}(n,o)||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.")}()),S=w[0],I=w[1];t=function(e){if(b.length>0&&y)return e.preventDefault(),a("COM_SPPAGEBUILDER_EDITOR_PREVENT_RELOAD")},r=(0,c.useRef)(t),(0,c.useEffect)((function(){r.current=function(e){var r=t(e);return(0,A.HD)(r)?e.returnValue=r:e.defaultPrevented?e.returnValue="":void 0}}),[t]),(0,c.useEffect)((function(){var e=function(e){return r.current(e)};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[]);var x=(0,re.O)({defaultValues:{id:Number(u),title:"",language:"",published:1,settings:{},catid:0,access:0,css:"",attribs:{meta_description:"",meta_keywords:"",robots:"global",seo_spacer:"",author:""},og_title:"",og_description:"",og_image:{src:""}}});(0,c.useEffect)((function(){var e;"storefront"===u&&m.is_easystore_installed&&(m.list_product_page_id?_(C.F.PageEditor.buildLink({id:String(m.list_product_page_id),type:"storefront"})):(e=Jb().mark((function e(){var t;return Jb().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.mutateAsync({type:"storefront",title:""});case 2:if(!(t=e.sent).id){e.next=6;break}return _(C.F.PageEditor.buildLink({id:t.id.toString(),type:"storefront"})),e.abrupt("return");case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ey(i,n,o,a,l,"next",e)}function l(e){ey(i,n,o,a,l,"throw",e)}a(void 0)}))})())}),[u,m.is_easystore_installed]),(0,c.useEffect)((function(){f(!1)}),[f]),(0,c.useEffect)((function(){if(!p.isLoading&&(0,A.$K)(p.data)){var e=p.data,t=(e.text,e.attribs),r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,$b),n=Yb(Yb(Yb({},{meta_description:"",meta_keywords:"",robots:"",seo_spacer:"",author:""}),t),{},{robots:(0,A.$K)(t.robots)&&""===t.robots?"global":t.robots});x.reset.call(null,Yb(Yb({},r),{},{attribs:n}))}}),[x.reset,p.data,p.isLoading]);var Z=(0,F.j)((function(e){return e.activeAction})),j=(0,A.$K)(Z),R="add-elements"===Z||"section-library"===Z,B=R?"add-elements"===Z?"addons":"sections":"addons";return"storefront"===u&&!m.is_easystore_installed||!g.isLoading&&!p.isLoading?(0,s.tZ)(ae.Z,{query:p,disableLoader:!0,children:(0,s.tZ)(fo,{createdBy:x.getValues("created_by"),children:(0,s.tZ)(L.RV,Yb(Yb({},x),{},{children:(0,s.BX)("div",{css:oy.wrapper,children:[(0,s.tZ)("div",{css:oy.topbar,children:(0,s.tZ)(Gb,{isPopup:i,isNextClicked:S,setIsNextClicked:I})}),(0,s.BX)("div",{css:oy.layout,children:[(0,s.tZ)("div",{css:oy.action,children:(0,s.tZ)(or,{isPopup:i,isNextClicked:S,setIsNextClicked:I})}),(0,s.tZ)(Rr,{sections:v,children:(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:oy.element({isActive:R}),children:(0,s.tZ)(xn,{defaultTab:B})}),(0,s.tZ)("div",{css:oy.element({isActive:"saved-items"===Z}),children:(0,s.tZ)(co,{})}),i?(0,s.tZ)("div",{css:oy.element({isActive:"popup-settings"===Z}),children:(0,s.tZ)(eu,{})}):(0,s.tZ)("div",{css:oy.element({isActive:"settings"===Z}),children:(0,s.tZ)(ka,{})}),(0,s.tZ)("div",{css:oy.editorWrapper,children:(0,s.tZ)("div",{css:oy.editor({isActive:j}),children:"storefront"!==u||m.is_easystore_installed?(0,s.tZ)(T.j3,{}):(0,s.tZ)(Hb,{})})})]})}),(0,s.tZ)("div",{css:oy.settings,children:(0,s.tZ)(rb,{})})]}),(0,s.tZ)(xr,{})]})}))})}):(0,s.tZ)(O.fz,{})};var ny={name:"1oh93it-element",styles:"margin-left:-420px;opacity:0;label:element;"},oy={dashboardSidebar:function(e){return(0,i.iv)("position:fixed;top:",x.g3,"px;left:0;width:",e?230:0,"px;height:calc(100vh - ",x.g3,"px);transition:all 0.3s ease;",!e&&(0,i.iv)("margin-left:-",230,"px;opacity:0;;label:dashboardSidebar;"),";;label:dashboardSidebar;")},wrapper:(0,i.iv)("background-color:",n.qo.base.surface,";;label:wrapper;"),topbar:(0,i.iv)("position:fixed;left:0;top:0;width:100%;height:",x.g3,"px;z-index:",n.W5.header,";;label:topbar;"),layout:(0,i.iv)("min-height:calc(100vh - ",x.g3,"px);margin-top:",x.g3,"px;;label:layout;"),action:(0,i.iv)("position:fixed;top:",x.g3,"px;left:0;width:",x.iq,"px;height:calc(100vh - ",x.g3,"px);background-color:#fff;z-index:",n.W5.positive,";;label:action;"),element:function(e){var t=e.isActive;return(0,i.iv)("position:fixed;top:",x.g3,"px;left:",x.iq,"px;width:",t?x.P8:0,"px;height:calc(100vh - ",x.g3,"px);",!t&&ny," transition:all 0.3s ease;;label:element;")},editorWrapper:{name:"14l0gds-editorWrapper",styles:"background-color:inherit;display:flex;justify-content:center;label:editorWrapper;"},editor:function(e){var t=e.isActive;return(0,i.iv)("width:100%;max-width:calc(100% - (",x.iq+(t?x.P8:0),"px + ",x.Zs,"px));background-color:",n.qo.background.neutral,";margin-inline:",x.iq+(t?x.P8:0),"px ",x.Zs,"px;min-height:calc(100vh - ",x.g3,"px);transition:all 0.3s ease;;label:editor;")},settings:(0,i.iv)("background-color:",n.qo.base.surface,";box-shadow:inset ",n.AF.topbar,";position:fixed;top:",x.g3,"px;right:0;width:",x.Zs,"px;height:calc(100vh - ",x.g3,"px);z-index:",n.W5.header,";;label:settings;")},iy=r(2899),ay=r(7579),ly=r(3039),cy=r(7894);function uy(e){return uy="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},uy(e)}function sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sy(Object(r),!0).forEach((function(t){py(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function py(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==uy(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==uy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===uy(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fy=[{text:"COM_SPPAGEBUILDER_EDITOR_FONT_MANAGER_PAGE_SIDEBAR_ROUTE_GOOGLE_FONTS",icon:"googleFont",link:C.F.GoogleFonts.template,pathnames:[C.F.GoogleFonts.template]},{text:"COM_SPPAGEBUILDER_EDITOR_FONT_MANAGER_PAGE_SIDEBAR_ROUTE_INSTALLED_FONTS",icon:"fontBook",link:C.F.InstalledFonts.template,pathnames:[C.F.InstalledFonts.template]}];var vy={wrapper:(0,i.iv)("display:grid;grid-template-columns:180px 1fr;gap:",n.W0[32],";padding:",n.W0[24]," 0;",n.Uo.smallTablet,"{gap:",n.W0[32],";grid-template-columns:1fr;};label:wrapper;"),outletWrapper:(0,i.iv)("width:100%;",n.Uo.smallTablet,"{max-width:100%;};label:outletWrapper;"),sidebar:(0,i.iv)("display:flex;flex-direction:column;align-self:start;gap:",n.W0[24],";position:relative;",n.Uo.smallTablet,"{flex-direction:row;justify-content:left;gap:",n.W0[16],";z-index:",n.W5.sidebar,";};label:sidebar;"),uploadButton:(0,i.iv)("width:100%;&>span{display:flex;gap:",n.W0[8],";align-items:center;justify-content:center;};label:uploadButton;"),routeItem:function(e){var t=e.isActive;return(0,i.iv)(o.c.heading6(),";text-decoration:none;display:flex;align-items:center;gap:",n.W0[8],";color:",n.qo.text.neutral,";svg{color:",n.qo.icon.default,";}",!t&&(0,i.iv)("svg{:first-of-type{filter:grayscale(1);}}:hover{color:",n.qo.text.hover,";svg{color:",n.qo.icon.hover,";}};label:routeItem;")," ",t&&(0,i.iv)("span{color:",n.qo.text.primary,";}svg{color:",n.qo.icon.primary,";};label:routeItem;")," ",n.Uo.smallTablet,"{justify-content:center;min-width:32px;min-height:32px;span{display:none;}:hover{background-color:",n.qo.background.white,";border-radius:",n.E0.circle,";box-shadow:",n.AF.button,";}};label:routeItem;")}};const hy=function(){var e=(0,H.$)(),t=(0,T.s0)();return(0,s.BX)("div",{css:by.wrapper,children:[(0,s.BX)("div",{css:by.leftActionWrapper,children:[(0,s.tZ)(sb,{}),(0,s.tZ)(X.Z,{variant:"text",buttonCss:by.brandName,onClick:function(){return t(C.F.Home.buildLink())},children:e("COM_SPPAGEBUILDER_EDITOR_BRAND_NAME")})]}),(0,s.tZ)("div",{children:(0,s.BX)("a",{href:"".concat(ga.Z.APPLICATION_ROOT,"administrator/index.php"),css:by.backButton,children:[(0,s.tZ)(w.Z,{name:"uTurnLeft"}),(0,s.tZ)("span",{children:e("COM_SPPAGEBUILDER_EDITOR_TOPBAR_BACK_TO_DASHBOARD")})]})})]})};var by={wrapper:(0,i.iv)("background-color:",n.qo.base.white,";box-shadow:",n.AF.topbar,";display:flex;align-items:center;justify-content:space-between;padding:",n.W0[8]," ",n.W0[16],";width:100%;height:100%;;label:wrapper;"),leftActionWrapper:(0,i.iv)(q.iZ.flexCenter(),";padding:0 ",n.W0[16],";;label:leftActionWrapper;"),brandName:(0,i.iv)("padding-left:0;span{",o.c.body(),";};label:brandName;"),backButton:(0,i.iv)("all:unset;display:inline-flex;",o.c.body("medium"),";text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;padding:",n.W0[6]," ",n.W0[16],";border-radius:",n.E0[6],";z-index:",n.W5.level,";transition:all 150ms ease-in-out;position:relative;align-items:center;gap:",n.W0[8],";color:",n.qo.text.default,";font-weight:",n.Ue.regular,";line-height:",n.Nv[18],";border:1px solid ",n.qo.action.outline.default,";transition:border-color 0.2s ease;svg{fill:none;}&:hover{color:",n.qo.text.primary,";border-color:",n.qo.action.outline.hover,";path{stroke:",n.qo.icon.primary,";}}&:active{color:",n.qo.text.primary,";border-color:",n.qo.action.outline.focus,";};label:backButton;")};var yy={wrapper:(0,i.iv)("background-color:",n.qo.base.surface,";;label:wrapper;"),topbar:(0,i.iv)("position:fixed;left:0;top:0;width:100%;height:",x.g3,"px;z-index:",n.W5.header,";;label:topbar;"),layout:(0,i.iv)("min-height:calc(100vh - ",x.g3,"px);margin-top:",x.g3,"px;;label:layout;"),main:function(e){return(0,i.iv)("width:calc(100% - ",e?x.ZR:0,"px);margin-left:",e?x.ZR:0,"px;transition:margin-left 0.3s ease,width 0.3s ease;;label:main;")}};const my=function(e){var t=e.component;return(0,s.tZ)(c.Suspense,{fallback:(0,s.tZ)(s.HY,{}),children:t})};var gy=r(8225);function Ey(e){return Ey="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},Ey(e)}function _y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_y(Object(r),!0).forEach((function(t){wy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wy(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ey(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ey(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sy=[{text:"COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SIDEBAR_ROUTE_OPTIONS",icon:"settings",link:C.F.Settings.template,pathnames:[C.F.Settings.template]},{text:"COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SIDEBAR_ROUTE_GLOBAL_COLORS",icon:"colorBrush",link:C.F.ColorsLibrary.template,pathnames:[C.F.ColorsLibrary.template],showProLabel:A.Eu}];A.Eu||Sy.push({text:"COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SIDEBAR_ROUTE_LICENSE",icon:"key",link:C.F.License.template,pathnames:[C.F.License.template]});var Iy={wrapper:(0,i.iv)("display:grid;grid-template-columns:300px 1fr;gap:",n.W0[32],";padding:",n.W0[24]," 0;",n.Uo.smallTablet,"{gap:",n.W0[32],";grid-template-columns:1fr;};label:wrapper;"),outletWrapper:(0,i.iv)("max-width:634px;width:100%;",n.Uo.smallTablet,"{max-width:100%;};label:outletWrapper;"),sidebar:(0,i.iv)("display:flex;flex-direction:column;align-self:start;gap:",n.W0[24],";position:relative;",n.Uo.smallTablet,"{flex-direction:row;justify-content:left;gap:",n.W0[16],";z-index:",n.W5.sidebar,";};label:sidebar;"),routeItem:function(e){var t=e.isActive,r=e.isDisabled,a=void 0!==r&&r;return(0,i.iv)(o.c.heading6(),";text-decoration:none;display:flex;align-items:center;gap:",n.W0[8],";color:",n.qo.text.neutral,";svg{color:",n.qo.icon.default,";}",!t&&(0,i.iv)(":hover{color:",n.qo.text.hover,";svg{color:",n.qo.icon.hover,";}};label:routeItem;")," ",t&&(0,i.iv)("span{color:",n.qo.text.primary,";}svg{color:",n.qo.icon.primary,";};label:routeItem;")," ",n.Uo.smallTablet,"{justify-content:center;min-width:32px;min-height:32px;span{display:none;}:hover{background-color:",n.qo.background.white,";border-radius:",n.E0.circle,";box-shadow:",n.AF.button,";}}",a&&(0,i.iv)("pointer-events:none;span{color:",n.qo.text.disabled,";}svg{color:",n.qo.icon.disabled,";};label:routeItem;"),";;label:routeItem;")}};function xy(e,t){if(e){if("string"==typeof e)return Cy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cy(e,t):void 0}}function Cy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Py(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ay=function(e){var t,r,n=e.isEditingTitle,o=e.colorGroup,i=e.setIsEditingTitle,a=e.onChange,l=e.onDelete,u=e.focusOnMount,d=void 0===u||u,p=e.wrapperCss,f=(0,H.$)(),v=(t=(0,c.useState)(""),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Py(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Py(e,t):void 0}}(t,r)||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.")}()),h=v[0],b=v[1];return(0,s.tZ)("div",{css:[Ly.panelHeadWrapper({isEditingTitle:n}),p,";label:GlobalColorGroupHeader;"],children:n?(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Ly.TextInputWrapper,children:(0,s.tZ)(Ye.Z,{placeholder:f("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_GLOBAL_COLOR_TITLE_INPUT_PLACEHOLDER"),value:h,onChange:function(e){return b(e)},onKeyDown:function(e){"Escape"===e&&(b(""),i()),"Enter"===e&&(a(h),b(""),i())},focusOnMount:d})}),(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"check",height:16,width:16}),buttonCss:Ly.actionButton,onClick:function(){a(h),b(""),i()}}),(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"timesAlt",height:16,width:16}),buttonCss:Ly.actionButton,onClick:function(){b(""),i()}})]}):(0,A.$K)(o)&&(0,s.BX)(s.HY,{children:[(0,s.tZ)("div",{css:Ly.panelTitle,children:o.name}),(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"pencil",height:10,width:10}),onClick:function(){b(o.name),i()}}),(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"trash",height:10,width:10}),onClick:function(){l&&l()}})]})})};var Ly={panelHeadWrapper:function(e){var t=e.isEditingTitle;return(0,i.iv)("display:flex;justify-content:start;align-items:center;gap:",n.W0[16],";padding:",n.W0[12]," ",n.W0[24],";",t&&(0,i.iv)("padding:",n.W0[6]," ",n.W0[24],";;label:panelHeadWrapper;"),">button{padding:0;visibility:hidden;opacity:0;transition:visibility 0.3s ease,opacity 0.3s ease;:last-of-type:hover{svg{color:",n.qo.icon.error,";}}svg{color:",n.qo.icon.default,";transition:color 0.3s ease;}}:hover{>button{visibility:visible;opacity:1;}};label:panelHeadWrapper;")},panelTitle:(0,i.iv)(o.c.heading6("medium"),";line-height:",n.Nv[20],";;label:panelTitle;"),TextInputWrapper:{name:"1l30b44-TextInputWrapper",styles:"max-width:200px;label:TextInputWrapper;"},actionButton:{name:"zt280c-actionButton",styles:"width:20px;height:20px;label:actionButton;"}};function Ty(e){return Ty="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},Ty(e)}function Dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dy(Object(r),!0).forEach((function(t){jy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jy(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ty(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ty(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ty(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ry(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||By(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 By(e,t){if(e){if("string"==typeof e)return My(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?My(e,t):void 0}}function My(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const ky=function(e){var t,r=e.colorGroup,n=e.onChange,o=e.onAddNewColor,i=e.onDelete,a=Ry((0,c.useState)(!1),2),l=a[0],u=a[1],d=Ry((0,c.useState)(""),2),p=d[0],f=d[1],v=Ry((0,c.useState)(!1),2),h=v[0],b=v[1],y=null!==(t=r.colors)&&void 0!==t?t:[],m=function(e){var t,o=e.newColor,i=e.currentColor;t=o?y.map((function(e){return e.id!==i.id?e:Zy(Zy({},i),{},{value:o})})):y.filter((function(e){return e.id!==i.id})),n(Zy(Zy({},r),{},{colors:t}))};return(0,s.BX)("div",{css:Gy.panelWrapper,children:[(0,s.tZ)(Ay,{isEditingTitle:h,colorGroup:r,setIsEditingTitle:function(){return b((function(e){return!e}))},onChange:function(e){return n(Zy(Zy({},r),{},{name:e}))},onDelete:i}),(0,s.BX)("div",{css:Gy.panelItemWrapper,children:[y.map((function(e,t){return(0,s.tZ)(gl,{color:e.value,onChange:function(t){m({newColor:t,currentColor:e})},onClose:function(t){m({newColor:t,currentColor:e})},plainSwatch:!0,isGlobalColorsVisible:!1,arrowPosition:"left"},t)})),l?(0,s.tZ)(gl,{color:p,onChange:function(e){f(e)},onClose:function(e){if(e){var t={id:(0,A.x0)(),value:e};o(Zy(Zy({},r),{},{colors:[].concat((n=y,function(e){if(Array.isArray(e))return My(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||By(n)||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.")}()),[t])}))}var n;f(""),u(!1)},plainSwatch:!0,isColorPickerOpen:!0,isGlobalColorsVisible:!1,arrowPosition:"left"}):(0,s.tZ)("div",{css:Gy.plusButtonWrapper,children:(0,s.tZ)(X.Z,{variant:"text",icon:(0,s.tZ)(w.Z,{name:"plusCircle",height:24,width:24}),onClick:function(){u(!0)}})})]})]})};var Gy={panelWrapper:(0,i.iv)("border-bottom:1px solid ",n.qo.stroke.neutral,";;label:panelWrapper;"),panelHeadWrapper:(0,i.iv)("padding:",n.W0[6]," ",n.W0[24],";;label:panelHeadWrapper;"),panelItemWrapper:(0,i.iv)("display:grid;grid-template-columns:repeat(13, 30px);gap:",n.W0[16],";padding:0 ",n.W0[24]," ",n.W0[24],";;label:panelItemWrapper;"),plusButtonWrapper:(0,i.iv)("display:grid;place-items:center;>button{padding:0;svg{color:",n.qo.icon.default,";}};label:plusButtonWrapper;")};const Ny=r.p+"images/3be2d24ea2a358822a5e.png";function Wy(e){return Wy="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},Wy(e)}function Uy(e){return function(e){if(Array.isArray(e))return zy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qy(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 Hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hy(Object(r),!0).forEach((function(t){Vy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vy(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Wy(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Wy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Wy(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qy(e,t){if(e){if("string"==typeof e)return zy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zy(e,t):void 0}}function zy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ky={wrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[24],";;label:wrapper;"),heading:(0,i.iv)(o.c.heading4("medium")," ",q.iZ.flexCenter(),";justify-content:start;gap:",n.W0[4],";;label:heading;"),cardWrapperCss:(0,i.iv)("border-radius:",n.E0[8],";box-shadow:",n.AF.base,";width:630px;;label:cardWrapperCss;"),cardWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",n.W0[8],";;label:cardWrapper;"),buttonWrapper:(0,i.iv)("display:flex;justify-content:end;&>button{border-radius:",n.E0[8],";};label:buttonWrapper;"),globalColorGroupHeader:(0,i.iv)("padding:",n.W0[24],";;label:globalColorGroupHeader;"),addNewButtonWrapper:(0,i.iv)("padding:",n.W0[24],";;label:addNewButtonWrapper;"),loadingSpinnerWrapper:{name:"1v1biie-loadingSpinnerWrapper",styles:"display:grid;place-items:center;label:loadingSpinnerWrapper;"},proBannerContentCss:(0,i.iv)("padding:",n.W0[12],";;label:proBannerContentCss;")},$y=c.lazy((function(){return Promise.all([r.e(980),r.e(612)]).then(r.bind(r,6383))})),Xy=c.lazy((function(){return r.e(863).then(r.bind(r,4977))})),Yy=c.lazy((function(){return r.e(359).then(r.bind(r,1736))})),Qy=c.lazy((function(){return r.e(556).then(r.bind(r,556))})),Jy=c.lazy((function(){return Promise.all([r.e(254),r.e(245)]).then(r.bind(r,4245))})),em=c.lazy((function(){return Promise.all([r.e(254),r.e(680)]).then(r.bind(r,8178))})),tm=c.lazy((function(){return r.e(513).then(r.bind(r,7513))})),rm=c.lazy((function(){return r.e(357).then(r.bind(r,5357))})),nm=c.lazy((function(){return r.e(81).then(r.bind(r,7081))})),om=c.lazy((function(){return r.e(983).then(r.bind(r,7639))})),im=c.lazy((function(){return r.e(805).then(r.bind(r,4805))})),am=c.lazy((function(){return Promise.all([r.e(980),r.e(87)]).then(r.bind(r,8317))}));const lm=[{path:C.F.Home.template,element:(0,s.tZ)((function(){var e=vr((function(e){return e.isActive}));return(0,s.BX)("div",{css:yy.wrapper,children:[(0,s.tZ)("div",{css:yy.topbar,children:(0,s.tZ)(hy,{})}),(0,s.BX)("div",{css:yy.layout,children:[(0,s.tZ)(xr,{}),(0,s.tZ)("div",{css:yy.main(e),children:(0,s.tZ)(T.j3,{})})]})]})}),{}),children:[{index:!0,element:(0,s.tZ)(T.Fg,{to:C.F.PageList.template,replace:!0})},{path:C.F.PageList.template,element:(0,s.tZ)(my,{component:(0,s.tZ)($y,{})})},{path:C.F.PopupList.template,element:(0,s.tZ)(my,{component:(0,s.tZ)(am,{})})},{path:C.F.Addons.template,element:(0,s.tZ)(my,{component:(0,s.tZ)(Xy,{})})},{path:C.F.CustomIcons.template,element:(0,s.tZ)(my,{component:(0,s.tZ)(Yy,{})})},{path:C.F.MediaManager.template,element:(0,s.tZ)(my,{component:(0,s.tZ)((function(){var e,t,r=(0,H.$)(),n=(0,c.useRef)(null),o=(e=(0,c.useState)(),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||xy(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.")}()),i=o[0],a=o[1],l=(0,oe.Q)();return(0,s.BX)(ly.Z,{children:[(0,s.tZ)(cy.Z,{title:r("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_PAGE_TITLE"),subtitle:r("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_PAGE_SUB_TITLE"),action:(0,s.BX)("div",{children:[(0,s.tZ)(X.Z,{icon:(0,s.tZ)(w.Z,{name:"upload"}),onClick:function(){var e;null===(e=n.current)||void 0===e||e.click()},disabled:!l.create,children:r("COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_SIDEBAR_UPLOAD_FILES")}),(0,s.tZ)("input",{ref:n,type:"file","aria-hidden":"true",multiple:!0,hidden:!0,onChange:function(e){var t=e.target.files;t&&l.create&&(a(function(e){return function(e){if(Array.isArray(e))return Cy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||xy(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.")}()}(t)),e.target.value="")}})]})}),(0,s.tZ)(ay.Z,{children:(0,s.tZ)(Nt,{isInsideModal:!1,files:i,clearFile:function(){return a([])}})})]})}),{})})},{path:C.F.Integrations.template,element:(0,s.tZ)(my,{component:(0,s.tZ)(Qy,{})})},{path:C.F.Languages.template,element:(0,s.tZ)(my,{component:(0,s.tZ)(tm,{})})},{path:C.F.Settings.template,element:(0,s.tZ)((function(){var e=(0,H.$)(),t=yr(),r=(0,gy.U1)(),n=(0,oe.Q)(),o=(0,re.O)({defaultValues:{disable_google_fonts:0,disable_og:0,disable_tc:0,disableanimatecss:0,disablecss:0,fb_app_id:"",fontawesome:0,ig_token:{appId:"",appSecret:"",accessToken:"",igId:"",app_id:"",app_secret:""},gmap_api:"",joomshaper_email:"",joomshaper_license_key:"",lazyloadimg:0,lazyplaceholder:"",production_mode:0,colors:[],container_max_width:1320,google_font_api_key:"",openai_api_key:"",openai_model:"gpt-3.5-turbo"}}),i=o.reset;return(0,c.useEffect)((function(){i(r.data)}),[i,r.data]),(0,s.BX)(ly.Z,{children:[(0,s.tZ)(cy.Z,{title:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_TITLE"),subtitle:e("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_SUB_TITLE")}),(0,s.tZ)(ay.Z,{children:(0,s.BX)("div",{css:Iy.wrapper,children:[(0,s.tZ)("div",{css:Iy.sidebar,children:Sy.map((function(r,o){var i=r.pathnames.includes(t),a=!n.admin;return a?(0,s.BX)("div",{"aria-disabled":a,css:Iy.routeItem({isActive:!1,isDisabled:a}),children:[(0,s.tZ)(w.Z,{name:r.icon,width:16,height:16}),(0,s.tZ)("span",{children:e(r.text)}),r.showProLabel&&(0,s.tZ)(hr.Z,{isInline:!0})]},o):(0,s.BX)(z.rU,{to:r.link,css:Iy.routeItem({isActive:i,isDisabled:!1}),title:e(r.text),children:[(0,s.tZ)(w.Z,{name:r.icon,width:16,height:16}),(0,s.tZ)("span",{children:e(r.text)}),r.showProLabel&&(0,s.tZ)(hr.Z,{isInline:!0})]},o)}))}),(0,s.tZ)("form",{css:Iy.outletWrapper,children:n.admin?(0,s.tZ)(L.RV,Oy(Oy({},o),{},{children:(0,s.tZ)(T.j3,{})})):(0,s.tZ)(An.Z,{emptyStateImage:so,imageAltText:e("COM_SPPAGEBUILDER_EDITOR_RESTRICTED_AREA_TITLE"),title:e("COM_SPPAGEBUILDER_EDITOR_RESTRICTED_AREA_TITLE"),content:e("COM_SPPAGEBUILDER_EDITOR_RESTRICTED_AREA_SUBTITLE"),orientation:"vertical"})})]})})]})}),{}),children:[{index:!0,element:(0,s.tZ)(my,{component:(0,s.tZ)(rm,{})})},{path:C.F.License.template,element:(0,s.tZ)(my,{component:(0,s.tZ)(nm,{})})},{path:C.F.ColorsLibrary.template,element:(0,s.tZ)(my,{component:(0,s.tZ)((function(){var e,t,r,n=(0,H.$)(),o=(0,L.Gc)(),i=(t=(0,c.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||qy(t,r)||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.")}()),a=i[0],l=i[1],u=(0,gy.f2)(),d=(0,gy.U1)(),p=(0,L.qo)({control:o.control,name:"colors"});return A.Eu?(0,s.tZ)(An.Z,{emptyStateImage:Ny,imageAltText:"upgrade to pro",title:n("COM_SPPAGEBUILDER_EDITOR_CUSTOM_COLOR_LIBRARY"),content:n("COM_SPPAGEBUILDER_EDITOR_CUSTOM_COLOR_LIBRARY_CONTENT"),action:(0,s.tZ)(Pn.Z,{}),orientation:"vertical",customCss:Ky.proBannerContentCss}):(0,s.BX)("div",{css:Ky.wrapper,children:[(0,s.tZ)("div",{css:Ky.heading,children:n("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_GLOBAL_COLOR_TITLE")}),(0,s.BX)(Tc.Z,{wrapperCss:Ky.cardWrapperCss,children:[(0,s.tZ)("div",{css:Ky.cardWrapper,children:p.map((function(e,t){return(0,s.tZ)(ky,{colorGroup:e,onChange:function(e){var r=p.map((function(r,n){return n!==t?r:e}));o.reset(Fy(Fy({},o.getValues()),{},{colors:r}))},onDelete:function(){var e=p.filter((function(e,r){return r!==t}));o.reset(Fy(Fy({},o.getValues()),{},{colors:e}))},onAddNewColor:function(e){var t=p.map((function(t){return t.name.toLowerCase()===e.name.toLowerCase()?e:t}));o.reset(Fy(Fy({},o.getValues()),{},{colors:t}))}},t)}))}),a?(0,s.tZ)(Ay,{isEditingTitle:a,setIsEditingTitle:function(){return l((function(e){return!e}))},onChange:function(e){if(e){var t={id:0,name:e,colors:[]};o.reset(Fy(Fy({},o.getValues()),{},{colors:[].concat(Uy(p),[t])}))}},wrapperCss:Ky.globalColorGroupHeader}):(0,s.tZ)("div",{css:Ky.addNewButtonWrapper,children:(0,s.tZ)(X.Z,{variant:"secondary",onClick:function(){l(!0)},children:n("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_GLOBAL_COLOR_BUTTON_TEXT_ADD_NEW_STYLE")})})]}),(0,s.tZ)("div",{css:Ky.buttonWrapper,children:(0,s.tZ)(X.Z,{type:"submit",loading:u.isLoading,onClick:o.handleSubmit((function(e){u.mutate(e)})),disabled:!(null!==(e=d.data)&&void 0!==e&&e.colors.length||p.length),children:n("COM_SPPAGEBUILDER_EDITOR_SETTINGS_PAGE_BUTTON_TEXT_SAVE_CHANGES")})})]})}),{})})}]},{path:C.F.FontManager.template,element:(0,s.tZ)((function(){var e=(0,H.$)(),t=yr(),r=(0,ws.Sh)(),n=(0,re.O)({defaultValues:{disable_google_fonts:0,disable_og:0,disable_tc:0,disableanimatecss:0,disablecss:0,fb_app_id:"",fontawesome:0,ig_token:{appId:"",appSecret:"",accessToken:"",igId:"",app_id:"",app_secret:""},gmap_api:"",joomshaper_email:"",joomshaper_license_key:"",lazyloadimg:0,enable_ai:1,lazyplaceholder:"",production_mode:0,colors:[]}}),o=(0,iy.n)();return r.isLoading?(0,s.tZ)(O.fz,{}):(0,s.BX)(ly.Z,{children:[(0,s.tZ)(cy.Z,{title:e("COM_SPPAGEBUILDER_EDITOR_FONT_BOOK_PAGE_TITLE"),subtitle:e("COM_SPPAGEBUILDER_EDITOR_FONT_BOOK_PAGE_SUB_TITLE"),action:(0,s.tZ)(X.Z,{buttonCss:vy.uploadButton,onClick:function(){o({title:e("COM_SPPAGEBUILDER_EDITOR_FONT_UPLOAD_MODAL_TITLE")})},icon:(0,s.tZ)(w.Z,{name:"upload"}),children:(0,s.tZ)("span",{children:e("COM_SPPAGEBUILDER_EDITOR_UPLOAD_FONT_BUTTON")})})}),(0,s.tZ)(ay.Z,{children:(0,s.BX)("div",{css:vy.wrapper,children:[(0,s.tZ)("div",{css:vy.sidebar,children:fy.map((function(n,o){var i,a=n.pathnames.includes(t);return(0,s.BX)(z.rU,{to:n.link,css:vy.routeItem({isActive:a}),title:e(n.text),children:[(0,s.tZ)(w.Z,{name:n.icon,width:16,height:16}),(0,s.tZ)("span",{children:e(n.text)}),n.link===C.F.InstalledFonts.template&&(0,s.BX)("span",{children:["(",(null===(i=r.data)||void 0===i?void 0:i.length)||0,")"]})]},o)}))}),(0,s.tZ)("form",{css:vy.outletWrapper,children:(0,s.tZ)(L.RV,dy(dy({},n),{},{children:(0,s.tZ)(T.j3,{})}))})]})})]})}),{}),children:[{index:!0,element:(0,s.tZ)(T.Fg,{to:C.F.InstalledFonts.template,replace:!0})},{path:C.F.InstalledFonts.template,element:(0,s.tZ)(my,{component:(0,s.tZ)(em,{})})},{path:C.F.GoogleFonts.template,element:(0,s.tZ)(my,{component:(0,s.tZ)(Jy,{})})}]}]},{path:C.F.PageEditor.template,element:(0,s.tZ)(ry,{}),children:[{index:!0,element:(0,s.tZ)(my,{component:(0,s.tZ)(im,{})})}]},{path:C.F.PopupEditor.template,element:(0,s.tZ)(ry,{isPopup:!0}),children:[{index:!0,element:!A.Eu&&(0,s.tZ)(my,{component:(0,s.tZ)(im,{isPopup:!0})})}]},{path:"*",element:(0,s.tZ)(my,{component:(0,s.tZ)(om,{})})}];var cm=r(2137);const um=function(e){var t=e.children,r=(0,H.$)(),n=(0,gy.nq)(),o=(0,zb.$x)(),i=po(),a=(0,V.o)((function(e){return e.loadCopiedAddon})),l=(0,V.o)((function(e){return e.loadCopiedSection})),u=(0,V.o)((function(e){return e.loadCopiedDataFirstTime}));if((0,c.useEffect)((function(){u();var e=function(e){e.key===x.dR.COPIED_ADDON_LOCAL_STORAGE_KEY&&a(e.newValue),e.key===x.dR.COPIED_SECTION_LOCAL_STORAGE_KEY&&l(e.newValue)};return window.addEventListener("storage",e),function(){window.removeEventListener("storage",e)}}),[]),n.isLoading||o.isLoading||i.isLoading)return(0,s.tZ)(O.fz,{});if((!n.data||!o.data||!i.data)&&((0,A.$K)(n.error)||(0,A.$K)(o.error)||(0,A.$K)(i.error))){var d,p,f,v,h=null!==(d=null===(p=n.error)||void 0===p?void 0:p.message)&&void 0!==d?d:r("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG"),b=cm;return(0,A.$K)(null===(f=n.error)||void 0===f?void 0:f.response)&&403===(null===(v=n.error)||void 0===v?void 0:v.response.status)&&(b=so),(0,s.tZ)("div",{css:sm.wrapper,children:(0,s.tZ)(An.Z,{orientation:"vertical",emptyStateImage:b,imageAltText:r("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_IMAGE_ALT"),content:h,customCss:sm.emptyStateCustom,wrapperCss:sm.emptyStateWrapper,action:(0,s.BX)("a",{href:"".concat(ga.Z.APPLICATION_ROOT,"administrator/index.php"),css:sm.backButton,children:[(0,s.tZ)(w.Z,{name:"uTurnLeft"}),(0,s.tZ)("span",{children:r("COM_SPPAGEBUILDER_EDITOR_TOPBAR_BACK_TO_DASHBOARD")})]})})})}return(0,s.tZ)(s.HY,{children:t})};var sm={wrapper:(0,i.iv)("height:100vh;display:flex;flex-direction:column;justify-content:center;background-color:",n.qo.base.white,";;label:wrapper;"),emptyStateCustom:(0,i.iv)(o.c.body(),";margin-top:",n.W0[32],";text-align:left;ol{list-style-type:decimal;text-align:left;list-style-position:inside;margin-bottom:",n.W0[16],";}span{font-weight:",n.Ue.bold,";}a{color:",n.qo.text.primary,";text-decoration:underline;}p{margin-bottom:",n.W0[16],";};label:emptyStateCustom;"),emptyStateWrapper:{name:"nx8chx-emptyStateWrapper",styles:"box-shadow:none;label:emptyStateWrapper;"},backButton:(0,i.iv)("all:unset;display:inline-flex;",o.c.body("medium"),";text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;padding:",n.W0[6]," ",n.W0[16],";border-radius:",n.E0[6],";z-index:",n.W5.level,";transition:all 150ms ease-in-out;position:relative;align-items:center;gap:",n.W0[8],";color:",n.qo.text.default,";font-weight:",n.Ue.regular,";line-height:",n.Nv[18],";border:1px solid ",n.qo.action.outline.default,";transition:border-color 0.2s ease;svg{fill:none;}&:hover{color:",n.qo.text.primary,";border-color:",n.qo.action.outline.hover,";path{stroke:",n.qo.icon.primary,";}}&:active{color:",n.qo.text.primary,";border-color:",n.qo.action.outline.focus,";};label:backButton;")},dm=r(6194),pm=r(2443),fm=r(4194),vm=(0,dm.Z)({stylisPlugins:[fm.Z],key:"rtl"});const hm=function(e){var t=e.children;return x.dZ?(0,s.tZ)(pm.C,{value:vm,children:t}):(0,s.tZ)(s.HY,{children:t})};var bm=r(948),ym=r(4420),mm=r(9225);function gm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Em=r(745),_m=document.querySelector("#pagebuilder-backend-editor");(0,Em.s)(_m).render((0,s.tZ)(c.StrictMode,{children:(0,s.tZ)(z.UT,{children:(0,s.tZ)(E,{children:(0,s.tZ)((function(){var e,t,r=(0,T.TH)(),n=(e=(0,c.useState)((function(){return new bm.S({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1,networkMode:"always"},mutations:{retry:!1,networkMode:"always"}}})})),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gm(e,t):void 0}}(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.")}())[0];(0,c.useLayoutEffect)((function(){window.scroll({top:0,behavior:"smooth"})}),[r.pathname]);var o=(0,T.V$)(lm);return(0,s.tZ)(hm,{children:(0,s.tZ)(ym.QueryParamProvider,{adapter:mm.Q,children:(0,s.tZ)(de.aH,{client:n,children:(0,s.tZ)(S.Z,{position:"bottom-center",children:(0,s.tZ)(um,{children:(0,s.BX)($e.D,{children:[(0,s.tZ)(i.xB,{styles:(0,q.CN)()}),o]})})})})})})}),{})})})}))},9101:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(4924),o=r(7264),i=r(824),a=r(4185),l=r(917),c=r(1954),u=r(1234),s=r(1921),d=r(230),p=r(7294),f=r(5944);function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const h=function(e){var t,r,i=e.actions,a=e.triggerButtonContent,l=e.triggerButtonStyle,h=e.onSelect,y=e.visibilityStatus,m=e.disabled,g=void 0!==m&&m,E=e.arrowPosition,_=void 0===E?"top":E,O=e.displaceLeft,w=void 0===O?0:O,S=e.displaceTop,I=void 0===S?0:S,x=e.width,C=void 0===x?150:x,P=e.title,A=(0,u.$)(),L=(t=(0,p.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(t,r)||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.")}()),T=L[0],D=L[1],Z=(0,c.l)({isOpen:T,isDropdown:!0,arrow:_}),j=Z.triggerRef,R=Z.position,B=Z.popoverRef;return(0,f.BX)(f.HY,{children:[(0,f.tZ)("button",{type:"button",css:[s.iZ.resetButton,l,";label:ActionDropdown;"],onClick:function(e){e.stopPropagation(),D(!0)},ref:j,disabled:g,title:P,children:a}),(0,f.tZ)(c.h,{isOpen:T,onClickOutside:function(e){e.stopPropagation(),D(!1)},children:(0,f.tZ)("div",{css:b.actionContainer({left:R.left+w,top:R.top+I,width:C}),ref:B,children:i.map((function(e){var t=!!e.isProFeature&&d.Eu||!!e.isDisabled;return e.hide?null:"visibility"===e.id?function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,f.BX)("button",{type:"button",css:b.actionItem({isFreeVersion:d.Eu}),onClick:function(t){t.stopPropagation(),h(e.id),D(!1)},disabled:t,children:[(0,f.BX)("div",{css:b.innerWrapper,"data-icon-wrapper":!0,children:[(0,f.tZ)(o.Z,{name:y?"eye":"eyeSlash",width:16,height:16,noFill:e.iconNoFill}),(0,f.tZ)("span",{children:A("COM_SPPAGEBUILDER_EDITOR_ACTION_VISIBILITY_".concat(y?"HIDE":"SHOW"))})]}),!!e.isProFeature&&d.Eu&&(0,f.tZ)(n.Z,{size:"tiny",isInline:!0})]},e.id)}(e,t):(0,f.BX)("button",{type:"button",disabled:t,css:b.actionItem({variant:e.variant,isFreeVersion:d.Eu}),onClick:function(t){t.stopPropagation(),h(e.id),D(!1)},children:[(0,f.BX)("div",{css:b.innerWrapper,"data-icon-wrapper":!0,children:[(0,d.$K)(e.icon)&&(0,f.tZ)(o.Z,{name:e.icon,width:16,height:16,noFill:e.iconNoFill}),(0,f.tZ)("span",{children:A(e.title)})]}),!!e.isProFeature&&d.Eu&&(0,f.tZ)(n.Z,{size:"tiny",isInline:!0})]},e.id)}))})})]})};var b={actionContainer:function(e){var t=e.left,r=e.top,n=e.width;return(0,l.iv)("position:absolute;left:",Math.max(0,t-8),"px;top:",r,"px;display:flex;flex-direction:column;background:",i.qo.base.white,";box-shadow:",i.AF.popover,";border-radius:",i.E0[5],";padding-block:",i.W0[4],";max-width:",n,"px;width:100%;;label:actionContainer;")},actionItem:function(e){var t=e.variant,r=void 0===t?"regular":t,n=e.isFreeVersion;return(0,l.iv)(s.iZ.resetButton,";padding:",i.W0[8]," ",i.W0[12],";",n&&(0,l.iv)("display:flex;gap:",i.W0[2],";justify-content:space-between;align-items:center;;label:actionItem;")," [data-icon-wrapper]{>span{",a.c.caption(),";}svg{color:",i.qo.icon.default,";}}:disabled{pointer-events:none;[data-icon-wrapper]{span{color:",i.qo.text.disabled,";}svg{color:",i.qo.icon.disabled,";}}}:hover{background-color:","warning"===r?i.qo.background.lightYellow:i.qo.background.primary,";[data-icon-wrapper]{","regular"===r&&(0,l.iv)("span,svg{color:",i.qo.text.primary,";}path:{stroke:",i.qo.text.primary,";};label:actionItem;")," ","critical"===r&&(0,l.iv)("span,svg{color:",i.qo.icon.error,";}path:{stroke:",i.qo.icon.error,";};label:actionItem;"),";}};label:actionItem;")},innerWrapper:(0,l.iv)("display:flex;gap:",i.W0[8],";align-items:center;;label:innerWrapper;")}},8698:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(3871),o=r(7264),i=r(824),a=r(4185),l=r(917),c=r(1921),u=r(7294),s=r(5944);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const p=function(e){var t,r,i=e.children,a=e.hasBorder,l=void 0!==a&&a,c=e.isCollapsed,p=void 0!==c&&c,f=e.hideArrow,h=void 0!==f&&f,b=e.header,y=e.cardCss,m=e.cardHeaderCss,g=e.disabledCaretCollapse,E=void 0!==g&&g,_=e.isDefaultCardType,O=void 0===_||_,w=e.defaultCollapsedState,S=void 0!==w&&w,I=(t=(0,u.useState)(S),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t,r)||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.")}()),x=I[0],C=I[1],P=E?!p:!x;return(0,s.BX)("div",{css:[v.wrapper({hasBorder:l,isDefaultCardType:O}),y,";label:Card;"],children:[!!b&&(0,s.BX)("div",{css:[v.headerWrapper({isCollapsed:!P||!!b.noSeparator,isDefaultCardType:O}),m,";label:Card;"],children:[(0,s.BX)("div",{css:v.titleAndAction,children:[(0,s.BX)("div",{css:v.title({isDefaultCardType:O}),children:[!h&&(0,s.tZ)(n.Z,{variant:"text",onClick:function(){C((function(e){return!e}))},disabled:!!b.actionTray&&E,children:(0,s.tZ)(o.Z,{style:v.collapsibleIconStyle({isCollapsed:x||!!b.actionTray&&p,isDisabled:!!b.actionTray&&E}),name:"caretRight",height:16,width:16})}),b.title]}),!!b.actionTray&&(0,s.tZ)("div",{children:b.actionTray})]}),!!b.subtitle&&(0,s.tZ)("p",{css:v.subtitle({isDefaultCardType:O}),children:b.subtitle})]}),P&&(0,s.tZ)("div",{css:v.cardBody,children:i})]})};var f={name:"134w5yv-collapsibleIconStyle",styles:"transform:rotate(90deg);label:collapsibleIconStyle;"},v={wrapper:function(e){var t=e.hasBorder,r=void 0!==t&&t,n=e.isDefaultCardType,o=void 0===n||n;return(0,l.iv)("width:100%;border-radius:",i.E0[8],";box-shadow:",i.AF.base,";background-color:",i.qo.base.white,";",o&&(0,l.iv)("border-radius:",i.E0[4],";box-shadow:",i.AF.card,";;label:wrapper;")," ",r&&(0,l.iv)("box-shadow:none;border:1px solid ",i.qo.stroke.neutral,";;label:wrapper;"),";;label:wrapper;")},headerWrapper:function(e){var t=e.isCollapsed,r=void 0!==t&&t,n=e.isDefaultCardType,o=void 0===n||n;return(0,l.iv)("display:flex;flex-direction:column;justify-content:center;gap:",i.W0[4],";padding:",i.W0[16]," ",i.W0[24],";",o&&(0,l.iv)("padding:",i.W0[12],";;label:headerWrapper;")," ",!r&&(0,l.iv)("border-bottom:1px solid ",i.qo.stroke.neutral,";;label:headerWrapper;"),";;label:headerWrapper;")},titleAndAction:{name:"17s6585-titleAndAction",styles:"display:flex;justify-content:space-between;align-items:center;label:titleAndAction;"},subtitle:function(e){var t=e.isDefaultCardType,r=void 0===t||t;return(0,l.iv)(a.c.body(),";color:",i.qo.text.neutral,";",r&&(0,l.iv)(a.c.caption(),";;label:subtitle;"),";;label:subtitle;")},title:function(e){var t=e.isDefaultCardType,r=void 0===t||t;return(0,l.iv)(a.c.heading5("medium"),";",c.iZ.flexCenter(),";color:",i.qo.text.default,";text-transform:capitalize;&>button{padding:0;margin-right:",i.W0[4],";}",r&&(0,l.iv)(a.c.caption("medium"),";;label:title;"),";;label:title;")},collapsibleIconStyle:function(e){var t=e.isCollapsed,r=void 0!==t&&t,n=e.isDisabled,o=void 0!==n&&n;return(0,l.iv)("color:",i.qo.icon.default,";transition:transform 0.3s ease;",!r&&f," ",o&&(0,l.iv)("color:",i.qo.icon.disabled,";;label:collapsibleIconStyle;"),";;label:collapsibleIconStyle;")},cardBody:(0,l.iv)(a.c.caption(),";color:",i.qo.text.neutral,";;label:cardBody;")}},3417:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(824),o=r(917),i=r(5944);const a=function(e){var t=e.children,r=e.header,n=e.wrapperCss,o=e.hasBody,a=void 0===o||o;return(0,i.BX)("div",{css:[l.wrapper,n,";label:CardBox;"],children:[r&&(0,i.tZ)("div",{css:l.header(a),children:r}),a&&t]})};var l={wrapper:(0,o.iv)("width:100%;background-color:",n.qo.background.white,";box-shadow:",n.AF.card,";border-radius:",n.E0[5],";;label:wrapper;"),header:function(e){return(0,o.iv)("background-color:",n.qo.background.white,";padding:",n.W0[16],";border-bottom:1px solid ",n.qo.stroke.neutral,";border-radius:",n.E0[5]," ",n.E0[5]," 0 0;",!e&&(0,o.iv)("border-radius:",n.E0[5],";;label:header;"),";;label:header;")}}},5527:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var n=r(3871),o=r(935),i=r(7264),a=r(824),l=r(4185),c=r(917),u=r(1234),s=r(1921),d=r(7294),p=r(463),f=r(5944);function v(e){return v="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},v(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const g=function(e){var t=e.onUpload,r=e.onDragLeave,a=e.multiple,l=void 0!==a&&a,c=e.isLoading,s=void 0!==c&&c,v=e.uploadButtonText,b=void 0===v?"COM_SPPAGEBUILDER_EDITOR_MEDIA_MANAGER_SIDEBAR_UPLOAD_FILES":v,m=e.uploadMessage,g=void 0===m?"COM_SPPAGEBUILDER_EDITOR_DRAG_AND_DROP_YOUR_FILES":m,_=e.disabled,O=void 0!==_&&_,w=(0,u.$)(),S=(0,d.useRef)(null),I=(0,p.uI)({onDrop:function(e){t(e)},multiple:l,disabled:O}),x=I.getRootProps,C=I.getInputProps;return s?(0,f.tZ)("div",{css:E.spinnerWrapper,children:(0,f.tZ)(o.ZP,{})}):(0,f.BX)("div",y(y({css:E.wrapper(O)},x({onClick:function(e){e.stopPropagation()},onDragLeave:function(e){e.stopPropagation(),r()}})),{},{children:[(0,f.tZ)("input",y({},C())),(0,f.BX)("div",{css:E.dropText(O),children:[(0,f.tZ)("input",{ref:S,type:"file",multiple:!0,"aria-hidden":"true",hidden:!0,onChange:function(e){var r;O||(e.target.files&&t(function(e){if(Array.isArray(e))return h(e)}(r=e.target.files)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(r)||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.")}()),e.target.value="")}}),(0,f.tZ)("p",{children:w(O?"COM_SPPAGEBUILDER_EDITOR_DISABLED_DROPZONE":g)}),!O&&(0,f.tZ)(n.Z,{icon:(0,f.tZ)(i.Z,{name:"upload"}),onClick:function(){var e;return null===(e=S.current)||void 0===e?void 0:e.click()},disabled:O,children:w(b)})]})]}))};var E={wrapper:function(e){return(0,c.iv)("z-index:",a.W5.positive,";background:transparent;border-radius:",a.E0[10],";background-color:",a.qo.base.white,";border:1px dashed ",a.qo.stroke.hover,";z-index:",a.W5.positive,";height:100%;",e&&(0,c.iv)("border:1px dashed ",a.qo.stroke.error,";;label:wrapper;"),";;label:wrapper;")},dropText:function(e){return(0,c.iv)(l.c.heading6()," display:flex;flex-direction:column;justify-content:center;align-items:center;gap:",a.W0[24],";color:",a.qo.text.default,";width:100%;height:100%;svg{color:",a.qo.action.outline.disabled,";}",e&&(0,c.iv)("color:",a.qo.text.disabled,";;label:dropText;"),";;label:dropText;")},spinnerWrapper:(0,c.iv)(s.iZ.flexCenter(),";height:100%;width:100%;;label:spinnerWrapper;"),uploadButton:(0,c.iv)(s.iZ.resetButton,";svg{transition:color 0.3s ease;}:hover{svg{color:",a.qo.icon.hover,";}};label:uploadButton;")}},3425:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(7264),o=r(824),i=r(4185),a=r(917),l=r(230),c=r(5944);const u=function(e){var t=e.emptyStateImage,r=e.emptyState2xImage,o=e.imageAltText,i=e.title,a=e.content,u=e.action,s=e.errorMessage,d=e.orientation,f=void 0===d?"horizontal":d,v=e.removeBorderRadius,h=void 0!==v&&v,b=e.wrapperCss,y=e.customCss;return(0,c.BX)("div",{css:[p.bannerWrapper({orientation:f,removeBorderRadius:h}),b,";label:EmptyState;"],children:[!!t&&(0,c.tZ)("img",{src:t,srcSet:(0,l.$K)(r)?"".concat(r," 2x"):void 0,alt:null!=o?o:"",draggable:!1}),!!s&&(0,c.BX)("div",{css:p.errorMessage,children:[(0,c.tZ)(n.Z,{name:"exclamationCircle",width:20,height:20}),(0,c.tZ)("span",{children:s})]}),(0,c.BX)("div",{css:p.messageWrapper({orientation:f}),children:[!!i&&(0,c.tZ)("h4",{css:p.title({orientation:f}),children:i}),!!a&&(0,c.tZ)("p",{css:[p.content,y,";label:EmptyState;"],dangerouslySetInnerHTML:{__html:a}}),!!u&&(0,c.tZ)("div",{css:p.buttonWrapper,children:u})]})]})};var s={name:"1dk76ft-messageWrapper",styles:"text-align:center;label:messageWrapper;"},d={name:"ce9pem-messageWrapper",styles:"max-width:364px;label:messageWrapper;"},p={errorMessage:(0,a.iv)("display:flex;width:100%;padding:",o.W0[32]," 0;background-color:",o.qo.background.error,";justify-content:center;align-items:center;gap:",o.W0[8],";color:",o.qo.base.error,";border-radius:",o.E0[6],";path{fill:",o.qo.icon.error,";};label:errorMessage;"),bannerWrapper:function(e){var t=e.orientation,r=e.removeBorderRadius;return(0,a.iv)("background-color:",o.qo.background.white,";box-shadow:",o.AF.card,";",!r&&(0,a.iv)("border-radius:",o.E0[8],";;label:bannerWrapper;")," padding:",o.W0[48]," 0 ",o.W0[64],";display:grid;place-items:center;justify-content:center;","horizontal"===t&&(0,a.iv)("grid-template-columns:278px auto;gap:",o.W0[56],";justify-content:start;;label:bannerWrapper;")," & img{max-width:272px;max-height:272px;width:100%;};label:bannerWrapper;")},messageWrapper:function(e){var t=e.orientation;return(0,a.iv)("display:flex;flex-direction:column;max-width:432px;gap:",o.W0[12],";","horizontal"===t&&d," ","vertical"===t&&s,";;label:messageWrapper;")},title:function(e){var t=e.orientation;return(0,a.iv)(i.c.heading4("medium"),";","vertical"===t&&(0,a.iv)("margin-top:",o.W0[24],";;label:title;"),";;label:title;")},content:(0,a.iv)(i.c.caption(),";color:",o.qo.text.hints,";;label:content;"),buttonWrapper:(0,a.iv)("margin-top:",o.W0[12],";;label:buttonWrapper;")}},6511:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(3871),o=r(935),i=r(8138),a=r(824),l=r(4185),c=r(917),u=r(1234),s=r(2137),d=r(230),p=r(9250),f=r(3425),v=r(5944);const h=function(e){var t=e.query,r=e.children,a=e.disableLoader,l=void 0!==a&&a,c=(0,u.$)(),h=(0,p.s0)();return!l&&t.isLoading?(0,v.tZ)(o.g4,{}):!(0,d.$K)(t.data)&&(0,d.$K)(t.error)?(0,v.tZ)("div",{css:b.wrapper,children:(0,v.tZ)(f.Z,{orientation:"vertical",emptyStateImage:s,imageAltText:c("COM_SPPAGEBUILDER_EDITOR_FONT_EMPTY_STATE_IMAGE_ALT"),content:t.error.message,customCss:b.emptyStateCustom,wrapperCss:b.emptyStateWrapper,action:(0,v.tZ)(n.Z,{onClick:function(){return h(i.F.Home.buildLink())},children:"Go Back"})})}):(0,v.tZ)(v.HY,{children:r})};var b={wrapper:(0,c.iv)("height:100vh;display:flex;flex-direction:column;justify-content:center;background-color:",a.qo.base.white,";;label:wrapper;"),emptyStateCustom:(0,c.iv)(l.c.body(),";margin-top:",a.W0[32],";text-align:left;ol{list-style-type:decimal;text-align:left;list-style-position:inside;margin-bottom:",a.W0[16],";}span{font-weight:",a.Ue.bold,";}a{color:",a.qo.text.primary,";text-decoration:underline;}p{margin-bottom:",a.W0[16],";};label:emptyStateCustom;"),emptyStateWrapper:{name:"nx8chx-emptyStateWrapper",styles:"box-shadow:none;label:emptyStateWrapper;"}}},3581:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(3871),o=r(9371),i=r(7264),a=r(824),l=r(4185),c=r(917),u=r(7273),s=r(1921),d=r(230),p=r(5944);const f=function(e){var t=e.value,r=e.onChange,a=e.min,l=e.max,c=e.step,s=e.label,f=e.isInlineLabel,v=void 0!==f&&f,h=e.disabled,b=void 0!==h&&h,m=e.inputContent,g=e.onToggle,E=e.staticUnit,_=(0,d.x0)();return(0,p.BX)("div",{css:y.wrapper({isInlineLabel:!!s&&v}),children:[!!s&&(0,p.tZ)("label",{htmlFor:_,css:y.label({disabled:b,isInlineLabel:!!s&&v}),children:s}),(0,p.BX)("div",{css:y.rangeInputWrapper,children:[(0,p.tZ)(o.Z,{value:(0,u.He)(t),onChange:function(e){r(e.toString())},min:a,max:l,disabled:b,rangeStyle:y.range({isInlineLabel:v}),step:c}),(0,p.BX)("div",{css:y.inputWrapper({isAdvancedField:!!g||!!m||!!E}),children:[(0,p.tZ)("input",{id:_,type:"text",value:null!=t?t:"",onChange:function(e){var t=e.target.value.replace(/[^-0-9.]/g,"").replace(/(\..*)\./g,"$1").replace(/(-+)/g,"-");r(t)},onBlur:function(e){var t=e.target.value.replace(/[^-0-9.]/g,"").replace(/(\..*)\./g,"$1").replace(/(-+)/g,"-");if(a||l){var n=(0,u.ll)(t,a,l);r(String(null!=n?n:""))}},disabled:b,css:y.input({isInlineLabel:!!s&&v,isAdvancedField:!!g||!!m||!!E}),autoComplete:"off"}),!!g&&(0,p.tZ)(n.Z,{variant:"text",buttonCss:y.advancedFieldIconButton,onClick:g,children:(0,p.tZ)(i.Z,{name:"roundedCorner",width:16,height:16})}),!!m&&(0,p.tZ)("div",{css:y.inputContent,children:m}),E&&(0,p.tZ)("span",{css:y.staticUnit,children:E})]})]})]})};var v={name:"1lxcpsm-input",styles:"width:48px;label:input;"},h={name:"1nfiya7-range",styles:"margin-left:auto;label:range;"},b={name:"owj46j-label",styles:"width:100%;label:label;"},y={wrapper:function(e){var t=e.isInlineLabel,r=void 0!==t&&t;return(0,c.iv)("display:flex;flex-direction:column;",r&&(0,c.iv)("flex-direction:row;align-items:center;gap:",a.W0[8],";;label:wrapper;"),";;label:wrapper;")},label:function(e){var t=e.disabled,r=void 0!==t&&t,n=e.isInlineLabel,o=void 0!==n&&n;return(0,c.iv)(l.c.caption(),";",!o&&b," ",r&&(0,c.iv)("color:",a.qo.text.disabled,";;label:label;"),";;label:label;")},rangeInputWrapper:(0,c.iv)("width:100%;flex:1;display:flex;align-items:center;gap:",a.W0[32],";;label:rangeInputWrapper;"),range:function(e){var t=e.isInlineLabel,r=void 0!==t&&t;return(0,c.iv)("max-width:168px;",r&&h,";;label:range;")},inputWrapper:function(e){var t=e.isAdvancedField,r=void 0!==t&&t;return(0,c.iv)("display:flex;justify-content:space-between;&:focus-within{box-shadow:",a.AF.outline,";border-radius:",a.E0[6],";}",r&&(0,c.iv)("height:32px;border-radius:",a.E0[6],";border:1px solid ",a.qo.stroke.neutral,";;label:inputWrapper;"),";;label:inputWrapper;")},input:function(e){var t=e.isInlineLabel,r=void 0!==t&&t,n=e.isAdvancedField,o=void 0!==n&&n;return(0,c.iv)(l.c.body(),";max-width:80px;height:32px;padding:",a.W0[6]," ",a.W0[10],";appearance:textfield;border-radius:",a.E0[6],";border:1px solid ",a.qo.stroke.neutral,";",o&&(0,c.iv)("width:56px;height:auto;border:none;border-radius:",a.E0[6]," 0 0 ",a.E0[6],";border-right:1px solid ",a.qo.stroke.neutral,";;label:input;")," ",r&&v," :focus{outline:none;box-shadow:none;}:disabled{color:",a.qo.text.disabled,";}::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}::placeholder{color:",a.qo.text.disabled,";};label:input;")},advancedFieldIconButton:(0,c.iv)("background-color:",a.qo.action.secondary.default,";padding:",a.W0[6]," ",a.W0[8],";border-radius:0 ",a.E0[5]," ",a.E0[5]," 0;svg{color:",a.qo.icon.default,";}:hover{background-color:",a.qo.action.secondary.hover,";svg{color:",a.qo.icon.primary,";}};label:advancedFieldIconButton;"),inputContent:(0,c.iv)(l.c.caption(),";padding:",a.W0[8]," ",a.W0[6],";;label:inputContent;"),staticUnit:(0,c.iv)(s.iZ.flexCenter(),";padding:",a.W0[8],";width:36px;overflow:hidden;;label:staticUnit;")}},8710:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n=r(7870),o=r(7025),i=r(824),a=r(4185),l=r(917),c=r(5944);function u(e){return u="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},u(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=[{label:"px",value:"px"},{label:"rem",value:"rem"},{label:"em",value:"em"},{label:"%",value:"%"}],v=[{label:"deg",value:"deg"},{label:"rad",value:"rad"},{label:"grad",value:"grad"},{label:"turn",value:"turn"}];const h=function(e){var t=e.label,r=void 0===t?"":t,i=e.fieldValue,a=e.onChange,l=e.staticUnit,u=e.inputCss,s=e.unitInputStyles,p=e.isAngleUnit,h=void 0!==p&&p,y=e.isLarge,m=void 0!==y&&y,g=e.customUnitOptions,E=void 0===g?null:g,_=e.disableTextField,O=void 0!==_&&_,w=i.value,S=i.unit,I=E||(h?v:f);return(0,c.BX)("div",{css:b.container({hasLabel:!!r}),children:[!!r&&(0,c.tZ)("div",{children:r}),(0,c.BX)("div",{css:b.inputWrapper,children:[(0,c.tZ)(o.Z,{value:w,type:"number",onChange:function(e){a(d(d({},i),{},{value:e}))},inputCss:b.textInputCss(u),disabled:O}),l?(0,c.tZ)("span",{css:b.staticUnit,children:l}):(0,c.tZ)(n.Z,{options:I,value:I.find((function(e){return e.value===S})),onChange:function(e){a(d(d({},i),{},{unit:e.value}))},isClearable:!1,caretSize:12,inputCss:b.selectInputCss(s,m)})]})]})};var b={container:function(e){var t=e.hasLabel,r=void 0!==t&&t;return(0,l.iv)(r&&(0,l.iv)("display:flex;flex-direction:column;gap:",i.W0[4],";>p{",a.c.caption(),";};label:container;"),";;label:container;")},staticUnit:(0,l.iv)("padding:",i.W0[8],";width:36px;margin-left:-",i.W0[4],";;label:staticUnit;"),inputWrapper:(0,l.iv)("display:flex;justify-content:center;border-radius:",i.E0[5],";border:1px solid ",i.qo.stroke.neutral,";box-shadow:",i.AF.input,";overflow:hidden;&:focus-within{box-shadow:",i.AF.outline,";};label:inputWrapper;"),textInputCss:function(e){return(0,l.iv)(a.c.caption(),";border:none;border-radius:0;box-shadow:none;border-right:1px solid ",i.qo.stroke.neutral,";padding:",i.W0[6]," ",i.W0[4]," ",i.W0[6]," ",i.W0[6],";width:40px;",e,";;label:textInputCss;")},selectInputCss:function(e,t){return(0,l.iv)("&>input{",a.c.tiny(),";border:none;border-radius:0;box-shadow:none;padding:",i.W0[8]," ",t?i.W0[0]:i.W0[20]," ",i.W0[8]," ",t?i.W0[4]:i.W0[8],";width:",t?"58px":"48px",";",e,";&:focus{box-shadow:none;}}&>button{right:",i.W0[6],";};label:selectInputCss;")}}},1073:(e,t,r)=>{"use strict";r.d(t,{j:()=>i});var n=r(270),o=r(782),i=(0,n.Ue)()((0,o.mW)((function(e){return{actions:[{key:"add-elements",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_ITEM_ADD_ELEMENTS",icon:"plusCircleDuo"},{key:"layouts",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_ITEM_PAGE_LAYOUTS",icon:"layoutsDuo"},{key:"popup-layouts",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_ITEM_POPUP_LAYOUTS",icon:"layoutsDuo"},{key:"saved-items",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_ITEM_SAVED_ITEMS",icon:"cubeDuo"},{key:"media",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_MEDIA_MANAGER_SETTINGS",icon:"mediaDuo"},{key:"settings",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_ITEM_PAGE_SETTINGS",icon:"toolsDuo"},{key:"popup-settings",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_ITEM_POPUP_SETTINGS",icon:"toolsDuo"},{key:"popup-triggers",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_ITEM_POPUP_TRIGGERS",icon:"triggersDuo"},{key:"documentation",title:"COM_SPPAGEBUILDER_EDITOR_ACTION_PANEL_ITEM_LEARNING",icon:"openBook"}],activeAction:void 0,setActiveAction:function(t){return e((function(){return{activeAction:t}}))}}})))},6651:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(270),o=r(782),i=(0,n.Ue)()((0,o.mW)((function(e){return{activeColumn:null,setActiveColumn:function(t){return e((function(){return{activeColumn:t}}))}}})))},7230:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var n=r(2902),o=r(270),i=r(782),a=(0,o.Ue)()((0,i.mW)((function(e){return{addonGroups:{General:[],Content:[],Media:[],Structure:[],Slider:[],Favourite:[]},addonStructure:{},globalSettings:{style:{},advanced:{},interaction:{}},loadGlobalSettings:function(t){return e((function(){return{globalSettings:t}}))},loadAddonGroups:function(t){return e((function(){return{addonGroups:t}}))},loadAddonStructure:function(t){return e((function(){return{addonStructure:t}}))},changeAddonStatus:function(t){return e((function(e){var r=e.addonGroups[t.groupName].findIndex((function(e){return e.name===t.addonName}));return(0,n.ZP)(e,(function(e){e.addonGroups[t.groupName][r].status=!e.addonGroups[t.groupName][r].status}))}))}}}),{name:"Addon Store"}))},6914:(e,t,r)=>{"use strict";r.d(t,{$x:()=>d,Kr:()=>h,LX:()=>f});var n=r(1731),o=r(1234),i=r(6492),a=r(5945),l=r(4469),c=r(5501),u=r(6537),s=r(7230),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(0,n.p)().showToast,r=(0,s.x)((function(e){return e.loadAddonGroups})),o=(0,s.x)((function(e){return e.loadAddonStructure})),a=(0,s.x)((function(e){return e.loadGlobalSettings}));return(0,i.a)({queryKey:["AddonList",e],queryFn:function(){return function(e){return c.u.get(u.H.ADDONS,{params:{type:e}})}(e).then((function(e){return e.data}))},onSuccess:function(e){r(e.groups),o(e.addons),a(e.globals)},onError:function(e){t({type:"danger",message:e.message})}})},p=function(e){var t=e.addonName;return c.u.patch(u.H.ADDONS,{addon_name:t})},f=function(){var e=(0,n.p)().showToast,t=(0,o.$)(),r=(0,s.x)((function(e){return e.addonStructure})),i=(0,a.NL)();return(0,l.D)({mutationFn:p,onSuccess:function(n){var o=n.data,a=o.addon_name,l=o.status;i.invalidateQueries(["AddonList"]),e({type:"success",message:t(l?"COM_SPPAGEBUILDER_EDITOR_MODULE_STATUS_TOGGLING_ENABLED":"COM_SPPAGEBUILDER_EDITOR_MODULE_STATUS_TOGGLING_DISABLED",{addonName:r[a].title})})},onError:function(t){e({type:"danger",message:t.message})}})},v=function(e){return c.u.put(u.H.ADDONS,e).then((function(e){return e.data}))},h=function(){var e=(0,n.p)().showToast,t=(0,o.$)(),r=(0,s.x)((function(e){return e.addonStructure})),i=(0,a.NL)();return(0,l.D)({mutationFn:v,onSuccess:function(n){i.invalidateQueries(["AddonList"]);var o=n.state?"COM_SPPAGEBUILDER_EDITOR_ADD_TO_FAVORITE":"COM_SPPAGEBUILDER_EDITOR_REMOVE_FROM_FAVORITE";e({type:"success",message:t(o,{addon_name:r[n.addon_name].title})})},onError:function(t){e({type:"danger",message:t.message})}})}},2328:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var n=r(270),o=r(782),i=(0,n.Ue)()((0,o.mW)((function(e){return{appConfig:{pages:[],menus:[],popups:[],categories:[],plugins:[],modules:[],access_levels:[],article_categories:[],easystore_categories:[],languages:[],module_positions:[],font_awesome_icons:[],version:"",editor:{theme:"silver"},media_path:"/images",media_upload_max_size:0,is_pre_release:!1,google_font_categories:[],has_google_font_api_key:!1,is_google_fonts_disabled:!1,enable_frontend_editing:!0,enable_ai:!0,permissions:{admin:!1,manage:!1,create:!1,edit:!1,edit_state:!1,edit_own:!1,delete:!1,page:{edit:!1,delete:!1,edit_state:!1}},user_id:null,is_easystore_installed:!1,list_product_page_id:0,single_product_page_id:0},loadAppConfig:function(t){return e((function(){return{appConfig:t}}))}}}),{name:"App Config"}))},8008:(e,t,r)=>{"use strict";r.d(t,{Ap:()=>f,eP:()=>h,hC:()=>y,uw:()=>d});var n=r(1731),o=r(6537),i=r(1234),a=r(6492),l=r(5945),c=r(4469),u=r(5501),s=r(230),d=function(){var e=(0,n.p)().showToast;return(0,a.a)({queryKey:["CustomIcons"],queryFn:function(){return u.u.get(o.H.GET_ALL_ICONS).then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})},p=function(e){return u.u.post(o.H.GET_ALL_ICONS,{custom_icon:e})},f=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:p,onSuccess:function(n){var o;n.data.status?(null!==(o=n.data.data)&&void 0!==o&&o.css_path&&(0,s.z3)(n.data.data.css_path),t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_FILE_UPLOAD_SUCCESS_MESSAGE")}),e.invalidateQueries(["CustomIcons"]),e.invalidateQueries(["IconList"])):t({type:"danger",message:n.data.output})},onError:function(e){t({type:"danger",message:e.message})}})},v=function(e){return u.u.delete(o.H.GET_ALL_ICONS,{params:{id:e}})},h=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:v,onSuccess:function(){t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_FILE_DELETE_SUCCESS_MESSAGE")}),e.invalidateQueries(["CustomIcons"])},onError:function(e){t({type:"danger",message:e.message})}})},b=function(e){return u.u.patch(o.H.GET_ALL_ICONS,{status:e.status},{params:{id:e.id}})},y=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:b,onSuccess:function(){t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_CUSTOM_ICON_STATUS_CHANGE_MESSAGE")}),e.invalidateQueries(["CustomIcons"])},onError:function(e){t({type:"danger",message:e.message})}})}},7184:(e,t,r)=>{"use strict";r.d(t,{PS:()=>p,Xu:()=>d,nl:()=>v});var n=r(1731),o=r(6537),i=r(1234),a=r(4469),l=r(5945),c=r(5501),u=r(230),s=function(e){return c.u.post(o.H.EXPORT,e)},d=function(){var e=(0,n.p)().showToast,t=(0,i.$)();return(0,a.D)({mutationKey:["ExportPageContent"],mutationFn:s,onSuccess:function(r){(0,u.OV)(JSON.stringify(r.data)),e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_PAGE_EXPORT_MESSAGE")})},onError:function(t){e({type:"danger",message:t.message})}})},p=function(e,t){var r,n="index.php?option=com_sppagebuilder&task=".concat(o.H.BULK_EXPORT),i=document.createElement("form");i.setAttribute("method","post"),i.setAttribute("id","pageExport"),i.setAttribute("action",n),i.setAttribute("target","_blank");var a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name","pageIds"),a.setAttribute("value",e),i.appendChild(a);var l=document.createElement("input");l.setAttribute("type","hidden"),l.setAttribute("name","isSeoChecked"),l.setAttribute("value",String(t)),i.appendChild(l);var c=document.createElement("input");c.setAttribute("type","hidden"),c.setAttribute("name","_method"),c.setAttribute("value","POST"),i.appendChild(c);var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",u.Xy.getOptions("csrf.token")),s.setAttribute("value","1"),i.appendChild(s),document.body.appendChild(i),i.submit(),null===(r=document.getElementById("pageExport"))||void 0===r||r.remove()},f=function(e){return c.u.post(o.H.BULK_IMPORT,{pagesZip:e})},v=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,a.D)({mutationFn:f,onSuccess:function(n){(0,u.$K)(n.data)&&n.data.status&&(t({type:"success",message:n.data.message||r("COM_SPPAGEBUILDER_EDITOR_BULK_IMPORT_SUCCESS")}),e.invalidateQueries(["PageList"]))},onError:function(e){t({type:"danger",message:e.message})}})}},7839:(e,t,r)=>{"use strict";r.d(t,{A6:()=>m,M9:()=>w,Sh:()=>g,Sq:()=>_,a4:()=>C,nZ:()=>I});var n=r(1731),o=r(6537),i=r(1234),a=r(8596),l=r(6492),c=r(5945),u=r(4469),s=r(5501),d=r(2328);function p(e){return p="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},p(e)}function f(){f=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new C(o||[]);return n(a,"_invoke",{value:w(e,r,l)}),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function v(){}function h(){}function b(){}var y={};c(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==t&&r.call(g,i)&&(y=g);var E=b.prototype=v.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,l){var c=s(e[n],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==p(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=s(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=b,n(E,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:h,configurable:!0}),h.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},_(O.prototype),c(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(E),c(E,l,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function v(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){return(0,a.N)({queryKey:["InstalledFonts",e],queryFn:function(t){var r=t.pageParam,n=void 0===r?1:r,i=e.limit||10,a=(n-1)*i;return function(e){return s.u.get(o.H.FONTS,{params:b(b({},e),{},{installed:!0})}).then((function(e){return e.data}))}(b(b({},e),{},{offset:a,limit:i}))},getNextPageParam:function(e,t){return e.totalPages>t.length?t.length+1:void 0}})},g=function(){var e=(0,n.p)().showToast;return(0,l.a)({queryKey:["AllInstalledFonts"],queryFn:function(){return s.u.get(o.H.ALL_FONTS).then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})},E=function(){var e,t=(e=f().mark((function e(t){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s.u.get(o.H.FONTS,{params:t}).then((function(e){return e.data})));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,l,"next",e)}function l(e){v(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),_=function(e){var t=(0,n.p)().showToast,r=(0,d.v)((function(e){return e.appConfig}));return(0,a.N)({queryKey:["GoogleFonts",e,r.has_google_font_api_key],queryFn:function(t){var r=t.pageParam,n=void 0===r?1:r,o=e.limit||20,i=(n-1)*o;return E(b(b({},e),{},{offset:i,limit:o}))},getNextPageParam:function(e,t){return e.totalPages>t.length?t.length+1:void 0},onError:function(e){t({type:"danger",message:e.message})},enabled:r.has_google_font_api_key})},O=function(e){var t=e.font;return s.u.post(o.H.UPLOAD_FONT,{font:t})},w=function(){var e=(0,c.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,u.D)({mutationFn:O,onSuccess:function(n){n.data.id?(t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_FILE_UPLOAD_SUCCESS_MESSAGE")}),e.invalidateQueries(["InstalledFonts"]),e.invalidateQueries(["AllInstalledFonts"])):t({type:"danger",message:n.data.message})},onError:function(e){t({type:"danger",message:e.message})}})},S=function(e){return s.u.post(o.H.FONTS,e).then((function(e){return e.data}))},I=function(){var e=(0,c.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,u.D)({mutationFn:S,onSuccess:function(n){n.id>0&&(t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_FONT_INSTALL_MESSAGE")}),e.invalidateQueries(["GoogleFonts"]),e.invalidateQueries(["InstalledFonts"]),e.invalidateQueries(["AllInstalledFonts"]))},onError:function(e){t({type:"danger",message:e.message})}})},x=function(e){return s.u.delete(o.H.FONTS,{params:e})},C=function(){var e=(0,i.$)(),t=(0,c.NL)(),r=(0,n.p)().showToast;return(0,u.D)({mutationFn:x,onSuccess:function(){r({type:"success",message:e("COM_SPPAGEBUILDER_EDITOR_SAVED_SECTION_DELETE_SUCCESS")}),t.invalidateQueries(["GoogleFonts"]),t.invalidateQueries(["InstalledFonts"]),t.invalidateQueries(["AllInstalledFonts"])},onError:function(e){r({type:"danger",message:e.message})}})}},9194:(e,t,r)=>{"use strict";r.d(t,{HX:()=>b,i8:()=>v,nx:()=>d,u9:()=>p});var n=r(1731),o=r(6537),i=r(1234),a=r(6492),l=r(4469),c=r(5501),u=r(230),s=r(6131),d=function(){var e=(0,n.p)().showToast;return(0,a.a)({queryKey:["LayoutList"],queryFn:function(){return c.u.get(o.H.PAGE_TEMPLATE_LIST).then((function(e){return e.data}))},keepPreviousData:!0,onError:function(t){e({type:"danger",message:t.message})}})},p=function(){var e=(0,n.p)().showToast;return(0,a.a)({queryKey:["PopupLayoutList"],queryFn:function(){return c.u.get(o.H.POPUP_TEMPLATE_LIST).then((function(e){return e.data}))},keepPreviousData:!0,onError:function(t){e({type:"danger",message:t.message})}})},f=function(e){var t=e.id,r=e.type,n=void 0===r?"":r;return c.u.get(o.H.LAYOUT_IMPORT,{params:{id:t,type:n}})},v=function(){var e=(0,n.p)().showToast;return(0,l.D)({mutationFn:f,onError:function(t){e({type:"danger",message:t.message})}})},h=function(e){return c.u.post(o.H.IMPORT_LAYOUT_FILE,{page:e})},b=function(){var e=(0,i.$)(),t=(0,n.p)().showToast,r=(0,s.o)((function(e){return e.setPageContent}));return(0,l.D)({mutationFn:h,onSuccess:function(n){var o=(0,u.Rx)(n.data.template);(0,u.$K)(o)?(r(o),t({type:"success",message:e("COM_SPPAGEBUILDER_EDITOR_LAYOUT_FILE_IMPORTED_SUCCESSFULLY")})):t({type:"danger",message:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG")})},onError:function(){t({type:"danger",message:e("COM_SPPAGEBUILDER_EDITOR_GLOBAL_SOMETHING_WENT_WRONG")})}})}},7679:(e,t,r)=>{"use strict";r.d(t,{R4:()=>I,es:()=>T,hh:()=>S,lN:()=>w,mp:()=>A,r7:()=>C,u6:()=>E,z1:()=>_});var n=r(1731),o=r(1234),i=r(6492),a=r(5945),l=r(4469),c=r(5501),u=r(230),s=r(6537),d=r(6131),p=r(2423);function f(e){return f="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},f(e)}var v=["text","attribs","og_image"],h=["id"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var E=function(e){var t=(0,n.p)().showToast;return(0,i.a)({queryKey:["PageList",e],queryFn:function(){return function(e){return c.u.get(s.H.PAGES,{params:(0,u.fF)(e)})}(e).then((function(e){return e.data}))},onError:function(e){t({type:"danger",message:e.message})}})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=(0,d.o)((function(e){return e.setPageContent})),o=(0,n.p)().showToast;return(0,i.a)({enabled:!!Number(e),queryKey:["PageContent",e],queryFn:function(){return(0,u.cW)(e,"Missing page ID"),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return c.u.get(s.H.PAGE_CONTENT_BY_ID,{params:{id:e,type:t}})}(Number(e),t).then((function(e){return e.data}))},onSuccess:function(e){r(e.text)},onError:function(e){o({type:"danger",message:e.message})}})},O=function(e){var t,r,n,o,i,a,l=e.id,d=g(e,h);return c.u.put(s.H.PAGES,(r=(t=d).text,n=t.attribs,o=t.og_image,i=g(t,v),a=y(y(y({},{meta_description:"",meta_keywords:"",robots:"",seo_spacer:"",author:""}),n),{},{robots:(0,u.$K)(n.robots)&&"global"===n.robots?"":n.robots}),y(y({},i),{},{text:JSON.stringify(r),attribs:JSON.stringify(a),og_image:o.src&&JSON.stringify(o)})),{params:{id:l}})},w=function(){var e=(0,n.p)().showToast,t=(0,o.$)(),r=(0,p.s)((function(e){return e.setShowWarningAtReload})),i=(0,a.NL)();return(0,l.D)({mutationFn:O,onSuccess:function(n,o){var a="popup"===o.extension_view;e({type:"success",message:t(a?"COM_SPPAGEBUILDER_EDITOR_POPUP_SAVED_SUCCESSFULLY":"COM_SPPAGEBUILDER_EDITOR_PAGE_SAVED_SUCCESSFULLY")}),r(!1),i.invalidateQueries(["PageList"])},onError:function(t){e({type:"danger",message:t.message})}})},S=function(e){return c.u.patch(s.H.PAGES,e)},I=function(){var e=(0,n.p)().showToast,t=(0,a.NL)(),r=(0,o.$)();return(0,l.D)({mutationFn:S,onSuccess:function(){e({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_BULK_ACTION_PERFORMED_SUCCESSFULLY")}),t.invalidateQueries(["PageList"])},onError:function(t){e({type:"danger",message:t.message})}})},x=function(e){var t=e.ids,r=e.orders;return c.u.patch(s.H.PAGE_ORDERING,{ids:t.join(","),orders:r.join(",")})},C=function(){var e=(0,a.NL)(),t=(0,n.p)().showToast;return(0,l.D)({mutationFn:x,onSuccess:function(){e.invalidateQueries(["PageList"])},onError:function(e){t({type:"danger",message:e.message})}})},P=function(e){var t=e.title,r=e.type;return c.u.post(s.H.PAGES,{title:t,type:r}).then((function(e){return e.data}))},A=function(){var e=(0,n.p)().showToast,t=(0,a.NL)();return(0,l.D)({mutationFn:P,onSuccess:function(){t.invalidateQueries(["AppConfig"])},onError:function(t){e({type:"danger",message:t.message})}})},L=function(e){return c.u.get(s.H.DUPLICATE_PAGE,{params:{id:e.id}}).then((function(e){return e.data}))},T=function(e){var t=(0,n.p)().showToast,r=(0,o.$)(),i=(0,a.NL)();return(0,l.D)({mutationFn:L,onSuccess:function(){i.invalidateQueries(["PageList"]),null!=e&&e.hideSuccessMessage||t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_PAGE_DUPLICATED_SUCCESSFULLY")})},onError:function(e){t({type:"danger",message:e.message})}})}},1518:(e,t,r)=>{"use strict";r.d(t,{$F:()=>p,E4:()=>E,Gj:()=>S,_s:()=>h,fp:()=>d,hX:()=>y,iG:()=>f,rM:()=>O,uC:()=>x,x:()=>m});var n=r(1731),o=r(6537),i=r(1234),a=r(6492),l=r(5945),c=r(4469),u=r(5501),s=r(230),d=function(e){return(0,s.Kn)(e)&&"title"in e&&"section"in e},p=function(e){return(0,s.Kn)(e)&&"title"in e&&"code"in e},f=function(){var e=(0,n.p)().showToast;return(0,a.a)({queryKey:["getSavedAddons"],queryFn:function(){return u.u.get(o.H.SAVED_ADDONS).then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})},v=function(e){var t=e.title,r=e.code;return u.u.post(o.H.SAVED_ADDONS,{title:t,code:r}).then((function(e){return e.data}))},h=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:v,onSuccess:function(){e.invalidateQueries(["getSavedAddons"]),t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_ADDON_SAVE_MESSAGE")})},onError:function(e){t({type:"danger",message:e.message})}})},b=function(e){return u.u.delete(o.H.SAVED_ADDONS,{params:{id:e}})},y=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:b,onSuccess:function(){e.invalidateQueries(["getSavedAddons"]),t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_SAVED_ADDON_DELETE_SUCCESS")})},onError:function(e){t({type:"danger",message:e.message})}})},m=function(){var e=(0,n.p)().showToast;return(0,a.a)({queryKey:["getSavedSections"],queryFn:function(){return u.u.get(o.H.SAVED_SECTIONS).then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})},g=function(e){var t=e.title,r=e.section;return u.u.post(o.H.SAVED_SECTIONS,{title:t,section:r}).then((function(e){return e.data}))},E=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:g,onSuccess:function(){e.invalidateQueries(["getSavedSections"]),t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_SECTION_SAVE_MESSAGE")})},onError:function(e){t({type:"danger",message:e.message})}})},_=function(e){return u.u.delete(o.H.SAVED_SECTIONS,{params:{id:e}})},O=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast,r=(0,i.$)();return(0,c.D)({mutationFn:_,onSuccess:function(){e.invalidateQueries(["getSavedSections"]),t({type:"success",message:r("COM_SPPAGEBUILDER_EDITOR_SAVED_SECTION_DELETE_SUCCESS")})},onError:function(e){t({type:"danger",message:e.message})}})},w=function(e){var t=e.ids,r=e.orders;return u.u.patch(o.H.SAVED_SECTIONS_ORDERING,{ids:t.join(","),orders:r.join(",")})},S=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast;return(0,c.D)({mutationFn:w,onSuccess:function(){e.invalidateQueries(["getSavedSections"])},onError:function(e){t({type:"danger",message:e.message})}})},I=function(e){var t=e.ids,r=e.orders;return u.u.patch(o.H.SAVED_ADDONS_ORDERING,{ids:t.join(","),orders:r.join(",")})},x=function(){var e=(0,l.NL)(),t=(0,n.p)().showToast;return(0,c.D)({mutationFn:I,onSuccess:function(){e.invalidateQueries(["getSavedAddons"])},onError:function(e){t({type:"danger",message:e.message})}})}},3722:(e,t,r)=>{"use strict";r.d(t,{b:()=>u,u:()=>d});var n=r(1731),o=r(6537),i=r(1234),a=r(4469),l=r(5501),c=function(e){return l.u.get(o.H.SAVED_PRESETS,{params:{id:e}}).then((function(e){return e.data}))},u=function(){var e=(0,n.p)().showToast;return(0,a.D)({mutationFn:c,onSuccess:function(){},onError:function(t){e({type:"danger",message:t.message})}})},s=function(e){var t=e.title,r=e.addon_name,n=e.preset;return l.u.post(o.H.SAVED_PRESETS,{title:t,addon_name:r,preset:n}).then((function(e){return e.data}))},d=function(){var e=(0,n.p)().showToast,t=(0,i.$)();return(0,a.D)({mutationFn:s,onSuccess:function(){e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_ADDON_SAVE_MESSAGE")})},onError:function(t){e({type:"danger",message:t.message})}})}},8331:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(270),o=r(782),i=(0,n.Ue)()((0,o.mW)((function(e){return{config:{section:{style:{},title:{},responsive:{},animation:{}},column:{style:{},responsive:{},animation:{}},sectionDefaults:{},columnDefaults:{}},loadConfig:function(t){return e((function(){return{config:t}}))}}}),{name:"Section Column Settings Store"}))},2967:(e,t,r)=>{"use strict";r.d(t,{L:()=>c,t:()=>u});var n=r(1731),o=r(6492),i=r(5501),a=r(230),l=r(6537),c=function(e){return(0,a.Kn)(e)&&"json"in e&&"thumb"in e},u=function(){var e=(0,n.p)().showToast;return(0,o.a)({queryKey:["SectionLibrary"],queryFn:function(){return i.u.get(l.H.SECTION_LIBRARY).then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})}},2445:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(270),o=r(782),i=r(8753),a=(0,n.Ue)()((0,i.n)((0,o.mW)((function(e){return{type:null,payload:{sectionIndex:null,columnIndex:null,addonIndex:null},setSettings:function(t,r){e((function(e){e.payload=r,e.type=t}))}}}),{name:"Settings Store"})))},8225:(e,t,r)=>{"use strict";r.d(t,{U1:()=>y,V2:()=>w,es:()=>_,f2:()=>g,nq:()=>b});var n=r(1731),o=r(6537),i=r(1234),a=r(8331),l=r(6492),c=r(5945),u=r(4469),s=r(5501);function d(e){return d="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},d(e)}var p=["ig_token","colors"];function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=function(){var e=(0,a.B)((function(e){return e.loadConfig})),t=(0,n.p)().showToast;return(0,l.a)({queryKey:["SectionAndColumnSettings"],queryFn:function(){return s.u.get(o.H.SETTINGS).then((function(e){return e.data}))},onSuccess:function(t){e(t)},onError:function(e){t({type:"danger",message:e.message})}})},y=function(){var e=(0,n.p)().showToast;return(0,l.a)({queryKey:["ApplicationSettings"],queryFn:function(){return s.u.get(o.H.APPLICATION_SETTINGS).then((function(e){return e.data}))},onError:function(t){e({type:"danger",message:t.message})}})},m=function(e){var t=e.ig_token,r=e.colors,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,p);return s.u.put(o.H.APPLICATION_SETTINGS,v(v({},n),{},{ig_token:JSON.stringify(t),colors:JSON.stringify(r)}))},g=function(){var e=(0,n.p)().showToast,t=(0,c.NL)();return(0,u.D)({mutationFn:m,onSuccess:function(){e({type:"success",message:"Settings saved successfully!"}),t.invalidateQueries(["ApplicationSettings"]),t.invalidateQueries(["AppConfig"])},onError:function(t){e({type:"danger",message:t.message})}})},E=function(){return s.u.get(o.H.PURGE_CSS)},_=function(){var e=(0,n.p)().showToast,t=(0,i.$)();return(0,u.D)({mutationFn:E,onSuccess:function(){e({type:"success",message:t("COM_SPPAGEBUILDER_EDITOR_CSS_PURGED_SUCCESSFULLY")})},onError:function(t){e({type:"danger",message:t.message})}})},O=function(e){return s.u.post(o.H.SAVE_IG_TOKEN,{ig_token:e.ig_token})},w=function(){var e=(0,n.p)().showToast;return(0,u.D)({mutationFn:O,onError:function(t){e({type:"danger",message:t.message})}})}},6131:(e,t,r)=>{"use strict";r.d(t,{o:()=>lt});var n=r(2902),o=r(270),i=r(782),a=r(8753),l=r(3106),c=r(2423),u=r(2238),s=r(6216),d=r(230),p=r(1245),f=r.n(p);function v(e){return v="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},v(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(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 g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.childIndex;return e((function(e){var t,a=e.page[r],l=a.columns[n],s=l.addons,p=(0,u.DV)({sections:e.page,rowId:a.id,columnId:l.id,addonList:s,addon:s[o]});if(!(0,d.$K)(p))return e;var f=g(p.addons,1)[0];if((0,d.$K)(f)&&(0,d.$K)(i)&&f.parent){var v,h=s.findIndex((function(e){return e.id===f.parent})),b=s[h];(0,d.$K)(b)&&(null===(v=b.children)||void 0===v||v.splice(i+1,0,f.id))}return s.splice.apply(s,[o+1,0].concat(m(p.addons))),(t=e.page).splice.apply(t,[r+1,0].concat(m(p.sections))),(0,c.m)(e)}),!1,"DUPLICATE_ADDON")}},w=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.tableItem,a=i.itemIdx,u=i.rowItemIdx,s=i.contentItemIdx;return e((function(e){var t=e.page[r].columns[n].addons[o];if((0,d.$K)(u)){var i,p=null===(i=t.settings)||void 0===i?void 0:i[l.pb.bodyItemsKey];if((0,d.$K)(p)){var v=p[a].table_advanced_item[u].content[s],h=p[a].table_advanced_item[u].content,b=f()(v);b.id=(0,d.x0)(),h.splice(s+1,0,b)}}else{var y,m=null===(y=t.settings)||void 0===y?void 0:y[l.pb.headerItemsKey];if((0,d.$K)(m)){var g=m[a].content[s],E=m[a].content,_=f()(g);_.id=(0,d.x0)(),E.splice(s+1,0,_)}}return(0,c.m)(e)}),!1,"DUPLICATE_TABLE_ITEM_ADDON")}},S=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex;return e((function(e){var t=e.page[r],i=t.columns[n],a=i.addons,c=(0,u.DV)({sections:e.page,rowId:t.id,columnId:i.id,addonList:a,addon:a[o]});return(0,d.$K)(c)?((0,s.pj)(l.dR.COPIED_ADDON_LOCAL_STORAGE_KEY,JSON.stringify(c)),e.copiedData.addon=c,e):e}),!1,"COPY_ADDON")}},I=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.childIndex,a=t.parentId,l=t.addonData,s=t.isAbove,p=void 0!==s&&s;return e((function(e){var t,s=e.page[r],f=s.columns[n],v=f.addons,h=(0,u.DV)({sections:l.sections,rowId:s.id,columnId:f.id,addonList:l.addons,addon:l.addons[0]});if(!(0,d.$K)(h))return e;var b=g(h.addons,1)[0];if(b.parent=!1,(0,d.$K)(i)){var y,E=null!=a?a:null===(y=v[o])||void 0===y?void 0:y.parent;if(E){var _,O=v.findIndex((function(e){return e.id===E})),w=v[O];(0,d.$K)(w)&&(null===(_=w.children)||void 0===_||_.splice(p?i:i+1,0,b.id),b.parent=w.id)}}return v.splice.apply(v,[p?o:o+1,0].concat(m(h.addons))),(t=e.page).splice.apply(t,[r,0].concat(m(h.sections))),(0,c.m)(e)}),!1,"PASTE_OR_INSERT_ADDON")}},x=function(e){return function(t){var r=t.styleSettings,n=t.globalStyleSettings,o=t.sectionIndex,i=t.columnIndex,a=t.addonIndex;return e((function(e){var t=e.page[o].columns[i].addons[a];return(0,d.$K)(t.settings)&&(t.settings=b(b(b({},t.settings),r),n)),(0,c.m)(e)}),!1,"PASTE_ADDON_STYLE")}},C=function(e){return function(){var t=(0,s.fp)(l.dR.COPIED_ADDON_LOCAL_STORAGE_KEY),r=(0,s.fp)(l.dR.COPIED_SECTION_LOCAL_STORAGE_KEY);return e((function(e){return t&&(e.copiedData.addon=JSON.parse(t)),r&&(e.copiedData.section=JSON.parse(r)),e}),!1,"LOAD_COPIED_DATA_FIRST_TIME")}},P=function(e){return function(t){return e((function(e){return e.copiedData.addon=(0,d.$K)(t)?JSON.parse(t):null,e}),!1,"LOAD_COPIED_ADDON")}},A=function(e){return function(t){return e((function(e){return e.copiedData.section=(0,d.$K)(t)?JSON.parse(t):null,e}),!1,"LOAD_COPIED_SECTION")}},L=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex;return e((function(e){var t=e.page[r].columns[n].addons,i=t[o];return"div"===i.name?((0,u.u)(i,t),(0,u.iK)(o,t,e.page)):Object.keys(l.RI).includes(i.name)?((0,u.u)(i,t),t.splice(o,1),(0,u.RL)(i,e.page)):((0,u.u)(i,t),t.splice(o,1)),(0,c.m)(e)}),!1,"DELETE_ADDON")}},T=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.tableItem,a=i.itemIdx,u=i.rowItemIdx,s=i.contentItemIdx;return e((function(e){var t=e.page[r].columns[n].addons[o];if((0,d.$K)(u)){var i,p=null===(i=t.settings)||void 0===i?void 0:i[l.pb.bodyItemsKey];(0,d.$K)(p)&&p[a].table_advanced_item[u].content.splice(s,1)}else{var f,v=null===(f=t.settings)||void 0===f?void 0:f[l.pb.headerItemsKey];(0,d.$K)(v)&&v[a].content.splice(s,1)}return(0,c.m)(e)}),!1,"DELETE_TABLE_ITEM_ADDON")}},D=r(5587);function Z(e){return Z="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},Z(e)}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Z(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Z(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var G=function(e){var t=e.sections,r=e.sectionsObject,n=e.section,o=[];return n.columns.forEach((function(e){var i=[];e.addons.forEach((function(a){if(!a.parent)if(Object.keys(l.RI).includes(a.name)){var c=N({sections:t,sectionsObject:r,addon:a,options:{rowId:n.id,columnId:e.id}});(0,d.$K)(c)&&(i.push(c.addon),o.push.apply(o,M(c.sections)))}else if("nested_row"===a.type){var u=function(e){var t=e.sections,r=e.sectionsObject,n=e.addon,o=e.options,i=[],a=r[n.id];if(!(0,d.$K)(a))return null;(0,d.$K)(o)&&(a.parent={rowId:o.rowId,columnId:o.columnId}),i.push(a);var l=G({sections:t,sectionsObject:r,section:a});return i.push.apply(i,M(l)),{addon:n,sections:i}}({sections:t,sectionsObject:r,addon:a,options:{rowId:n.id,columnId:e.id}});(0,d.$K)(u)&&(i.push(u.addon),o.push.apply(o,M(u.sections)))}else if("div"===a.name){var s=W({sections:t,sectionsObject:r,addon:a,addonList:e.addons,options:{rowId:n.id,columnId:e.id}}),p=s.divAddon,f=s.children,v=s.nestedSections;i.push.apply(i,[p].concat(M(f))),o.push.apply(o,M(v))}else i.push(a)})),i.length>0&&(e.addons=i)})),o},N=function(e){var t,r=e.sections,n=e.sectionsObject,o=e.addon,i=e.options,a=[];return(null===(t=o.settings)||void 0===t?void 0:t[l.RI[o.name].key]).forEach((function(e){e.content.forEach((function(e){var t=n[e.id];if(!(0,d.$K)(t))return null;(0,d.$K)(i)&&(t.parent={rowId:i.rowId,columnId:i.columnId}),a.push(t);var o=G({sections:r,sectionsObject:n,section:t});a.push.apply(a,M(o))}))})),{addon:o,sections:a}},W=function(e){var t=e.sections,r=e.sectionsObject,n=e.addonList,o=e.addon,i=e.options,a=[],c=[];return function e(o){n.forEach((function(n){var u,s=null===(u=o.children)||void 0===u?void 0:u.findIndex((function(e){return e===n.id}));if((0,d.$K)(s)&&-1!==s){if(Object.keys(l.RI).includes(n.name)){var p=N({sections:t,sectionsObject:r,addon:n,options:{rowId:i.rowId,columnId:i.columnId}});c=p.sections}a.push(n),"div"===n.name&&e(n)}}))}(o),{divAddon:o,children:a,nestedSections:c}},U=function(e){var t=e.sections,r=e.rowId,n=e.columnId,o=e.addonList,i=e.addon,a=Object.fromEntries(t.map((function(e,t){return[e.id,R(R({},e),{},{index:t})]}))),c=null;if("div"===i.name){var u=W({sections:t,sectionsObject:a,addon:i,addonList:o,options:{rowId:r,columnId:n}}),s=u.divAddon,p=u.children,f=u.nestedSections;c={name:s.name,addons:[s].concat(M(p)),sections:f}}else if(Object.keys(l.RI).includes(i.name)){var v=N({sections:t,sectionsObject:a,addon:i,options:{rowId:r,columnId:n}});(0,d.$K)(v)&&(c={name:v.addon.name,addons:[v.addon],sections:v.sections})}else c={name:i.name,addons:[i],sections:[]};return c};function H(e){return H="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},H(e)}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||q(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 V(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||q(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 q(e,t){if(e){if("string"==typeof e)return z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){X(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function X(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==H(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===H(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Y=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.itemAddonIndex,a=void 0===i?0:i,l=t.childIndex,u=t.addon,s=t.isAbove,p=e.page[r].columns[n].addons[o].items;return(0,d.$K)(p)?(p.forEach((function(e){var t=$({id:(0,d.x0)(),type:u.type,name:u.name,visibility:!0,title:u.title,icon:u.icon,settings:$({},u.default)},"div"===u.name&&{children:[]}),r=e[a];if((0,d.$K)(r)&&r.parent){var n=r.parent,o=e.findIndex((function(e){return e.id===n})),i=e[o];if((0,d.$K)(i)){var c,p=null!=l?l:0;null===(c=i.children)||void 0===c||c.splice(s?p:p+1,0,t.id),t.parent=n}}else if((0,d.$K)(r)&&"div"===r.name&&(0,d.$K)(l)){var f,v=r,h=null!==(f=v.children)&&void 0!==f?f:[];h.splice(s?l:l+1,0,t.id),t.parent=v.id,e[a].children=h}e.splice(s?a:a+1,0,t)})),(0,c.m)(e)):e}),!1,"ADD_COLLECTION_ADDON")}},Q=function(e){return function(t){return e((function(e){var r,n,o=t.sectionIndex,i=t.columnIndex,a=t.addonIndex,c=t.itemIndex,p=t.itemAddonIndex,v=null!==(r=null===(n=e.page[o].columns[i].addons[a].items)||void 0===n?void 0:n[c])&&void 0!==r?r:[],h=v[p],b=f()(h);b.parent=!1;var y=null;if("div"===h.name){var m=(0,u.vH)({addon:b,addonList:v}),g=m.divAddon,E=m.children;y={name:g.name,addons:[g].concat(V(E)),sections:[]}}else b.id=(0,d.x0)(),y={name:b.name,addons:[b],sections:[]};return(0,d.$K)(y)?((0,s.pj)(l.dR.COPIED_ADDON_LOCAL_STORAGE_KEY,JSON.stringify(y)),e.copiedData.addon=y,e):e}),!1,"COPY_COLLECTION_ITEM_ADDON")}},J=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.itemIndex,a=t.itemAddonIndex,l=t.childIndex,s=t.parentId,p=t.addonData,v=t.isAbove,h=void 0!==v&&v;return e((function(e){var t,v,b=null!==(t=e.page[r].columns[n].addons[o].items)&&void 0!==t?t:[],y=null!==(v=b[i])&&void 0!==v?v:[],m=y[a],g=f()(p.addons[0]),E=null;if("div"===m.name){var _=(0,u.vH)({addon:g,addonList:y}),O=_.divAddon,w=_.children;E={name:O.name,addons:[O].concat(V(w)),sections:[]}}else g.id=(0,d.x0)(),E={name:g.name,addons:[g],sections:[]};if(!(0,d.$K)(E))return e;var S,I=y.findIndex((function(e){return e.id===s})),x=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=q(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(b);try{for(x.s();!(S=x.n()).done;){var C=S.value,P=F(E.addons,1)[0];if(P.parent=!1,(0,d.$K)(s)&&(0,d.$K)(l)){var A,L=C[I];(0,d.$K)(L)&&(null===(A=L.children)||void 0===A||A.splice(h?l:l+1,0,P.id),P.parent=L.id)}C.splice.apply(C,[h?a:a+1,0].concat(V(E.addons)))}}catch(e){x.e(e)}finally{x.f()}return(0,c.m)(e)}),!1,"PASTE_OR_INSERT_COLLECTION_ITEM_ADDON")}},ee=function(e){return function(t){var r=t.sourceSectionIndex,n=t.destinationSectionIndex,o=t.sourceColumnIndex,i=t.destinationColumnIndex,a=t.sourceAddonIndex,l=t.destinationAddonIndex,s=t.destinationItemAddonIndex,p=t.isAbove;return e((function(e){var t=e.page[r].columns[o].addons,f=t[a],v=e.page[n].columns[i].addons[l].items;return(0,d.$K)(v)?((0,u.u)(f,t),t.splice(a,1),v.forEach((function(e){(0,d.$K)(s)?e.splice(p?s:s+1,0,f):e.push(f)})),(0,c.m)(e)):e}),!1,"SORT_ADDON_WITH_COLLECTION_ITEM_ADDON")}},te=function(e){return function(t){var r=t.sourceSectionIndex,n=t.sourceColumnIndex,o=t.sourceAddonIndex,i=t.sourceItemAddonIndex,a=t.destinationItemAddonIndex,l=t.sourceChildIndex,s=t.destinationChildIndex,p=t.isEmptyChild,f=t.isAbove;return e((function(e){var t=e.page[r].columns[n].addons[o].items;return(0,d.$K)(t)?(t.forEach((function(r,n){var c=r[i],v=r[a],h=c.parent,b=function(e){var t=e.addonList,r=e.addon,n=null;if("div"===r.name){var o=function(e){var t=e.addonList,r=e.addon,n=[];return function e(r){t.forEach((function(t){var o,i=null===(o=r.children)||void 0===o?void 0:o.findIndex((function(e){return e===t.id}));(0,d.$K)(i)&&-1!==i&&(n.push(t),"div"===t.name&&e(t))}))}(r),{divAddon:r,children:n}}({addon:r,addonList:t}),i=o.divAddon,a=o.children;n={name:i.name,addons:[i].concat(M(a))}}else n={name:r.name,addons:[r]};return n}({addonList:r,addon:c});if(!(0,d.$K)(b))return e;var y=F(b.addons,1)[0];if("div"===v.name&&p){var m=v;m.children=[c.id],(0,u.u)(y,r),y.parent=m.id}else if((0,d.$K)(s)&&(0,d.$K)(v.parent)){var g=r.findIndex((function(e){return e.id===v.parent})),E=r[g];(0,d.$K)(E)&&E.children&&((0,d.$K)(c.parent)&&(0,d.$K)(l)&&c.parent===v.parent?E.children=(0,D.Rp)(E.children,l,s):(E.children.splice(f?s:s+1,0,y.id),(0,u.u)(y,r),y.parent=E.id))}else(0,u.u)(y,r);v.id===h?(o<a&&!f||o>a&&f)&&(t[n]=(0,D.Rp)(r,i,a)):t[n]=(0,D.Rp)(r,i,a)})),(0,c.m)(e)):e}),!1,"SORT_COLLECTION_ADDON")}},re=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.itemAddonIndex,a=t.childIndex;return e((function(e){var t=e.page[r].columns[n].addons,l=t[o],s=l.items;return(0,d.$K)(s)?(s.forEach((function(e,t){var r,n,o=e[i],l=f()(o);if("div"===o.name){var c=(0,u.vH)({addon:l,addonList:e}),p=c.divAddon,v=c.children;n=[p].concat(V(v))}else l.id=(0,d.x0)(),n=[l];if((0,d.$K)(a)&&l.parent){var h,b=e.findIndex((function(e){return e.id===l.parent})),y=e[b];(0,d.$K)(y)&&(null===(h=y.children)||void 0===h||h.splice(a+1,0,l.id))}(r=s[t]).splice.apply(r,[i+1,0].concat(V(n)))})),t[o]=l,(0,c.m)(e)):e}),!1,"DUPLICATE_COLLECTION_ITEM_ADDON")}},ne=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.itemAddonIndex;return e((function(e){var t=e.page[r].columns[n].addons,a=t[o],l=a.items;return(0,d.$K)(l)?(l.forEach((function(e,t){var r=l[t][i];"div"===r.name?((0,u.u)(r,e),(0,u.iK)(i,e,[])):((0,u.u)(r,e),l[t].splice(i,1))})),t[o]=a,(0,c.m)(e)):e}),!1,"DELETE_COLLECTION_ITEM_ADDON")}},oe=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.itemAddonIndex,a=t.visibility,l=e.page[r].columns[n].addons[o].items;return(0,d.$K)(l)?(l.forEach((function(e,t){l[t][i].visibility=!a})),(0,c.m)(e)):e}),!1,"CHANGE_COLLECTION_ITEM_ADDON_VISIBILITY")}},ie=function(e){return function(t){var r=t.styleSettings,n=t.globalStyleSettings,o=t.sectionIndex,i=t.columnIndex,a=t.addonIndex,l=t.itemAddonIndex;return e((function(e){var t=e.page[o].columns[i].addons[a].items;return(0,d.$K)(t)?(t.forEach((function(e,o){var i=t[o][l];(0,d.$K)(i.settings)&&(t[o][l].settings=$($($({},i.settings),r),n))})),(0,c.m)(e)):e}),!1,"PASTE_COLLECTION_ITEM_ADDON_STYLE")}},ae=["unit"];function le(e){return le="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},le(e)}function ce(e,t){if(e){if("string"==typeof e)return ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pe(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==le(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===le(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fe=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex;return e((function(e){var t,o,i=e.page[r],a=i.columns,l=a[n],s=Object.fromEntries(e.page.map((function(e,t){return[e.id,de(de({},e),{},{index:t})]}))),d=(0,u.Gm)({sections:e.page,sectionsObject:s,sectionId:i.id,column:l}),p=d.column,f=d.sections,v=a.length+1,h=Math.min(12/v,12);return e.page[r].layout=Array(v).fill(h).join("+"),e.page[r].columns.splice(n+1,0,p),(t=e.page).splice.apply(t,[r+1,0].concat(function(e){if(Array.isArray(e))return ue(e)}(o=f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||ce(o)||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.")}())),(0,c.m)(e)}),!1,"DUPLiCATE_COLUMN")}},ve=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex;return e((function(e){var t=e.page[r],o=t.columns,i=o[n];if(o.length>1){var a=o.length-1,l=Math.min(12/a,12);t.layout=Array(a).fill(l).join("+"),o.splice(n,1)}else e.page.splice(r,1);return(0,u.p_)(i,e.page),(0,c.m)(e)}),!1,"DELETE_COLUMN")}},he=function(e){return function(t){var r=t.sectionIndex;return e((function(e){var t=e.page[r],n=t.columns;if(0===n.length)return e;var o=n.length,i=Math.min(12/o,12);return t.layout=Array(o).fill(i).join("+"),n.forEach((function(e){e.settings.width=(0,u.h)(i)})),(0,c.m)(e)}),!1,"RESET_COLUMN_WIDTH")}},be=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.width;return e((function(e){var t=o.unit,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(o,ae);return e.page[r].columns[n].settings.width=Object.fromEntries(Object.entries(i).map((function(e){var r,n,o=(n=2,function(e){if(Array.isArray(e))return e}(r=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(r,n)||ce(r,n)||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.")}()),i=o[0],a=o[1];return[i,"".concat(a).concat(t)]}))),e}),!1,"UPDATE_COLUMN_WIDTH")}},ye=r(251),me=r.n(ye),ge=r(8331);function Ee(e){return Ee="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},Ee(e)}function _e(e){return function(e){if(Array.isArray(e))return Oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Oe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Oe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){Ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ie(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ee(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ee(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xe=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e((function(e){return r&&(0,c.m)(e),e.page=(0,d.MF)(t),e}),!1,"SET_PAGE_CONTENT")}},Ce=function(e){return function(t){return e((function(e){var r,n,o=t.sectionIndex,i=t.columnIndex,a=t.addonIndex,l=t.preset,s=e.page[o].columns[i].addons[a];if(!(0,d.$K)(s))return e;var p=(0,d.Rx)(l),v=null!==(r=null==p?void 0:p.items)&&void 0!==r?r:p;if(!(0,d.$K)(v))return e;var h=(0,d.w6)(10).map((function(){var e=f()(v);return(0,u.am)(e)}));return s.items=h,s.settings=null!==(n=null==p?void 0:p.settings)&&void 0!==n?n:s.settings,(0,c.m)(e)}),!1,"ADD_PRODUCT_LIST_ITEMS")}},Pe=function(e){return function(){return e((function(e){var t=(0,u.sd)(e.page);return e.page=t,e}),!1,"VALIDATE_OLD_PAGE_CONTENT")}},Ae=function(e){return function(t){var r=ge.B.getState().config,n=r.sectionDefaults,o=r.columnDefaults;return e((function(e){var r=t.sectionIndex,i=t.columnIndex,a=t.addonIndex,s=t.childIndex,p=t.emptyDivChild,f=t.addon,v=t.isAbove,h=(0,d.x0)(),b=e.page[r].columns[i].addons,y=e.page[r],m=y.columns[i],g=m.addons[a],E=a,_=Se(Se({id:h,type:f.type,name:f.name,visibility:!0,title:f.title,icon:f.icon,settings:Se({},f.default)},"div"===f.name&&{children:[]}),(f.name===l.oA.productList||f.name===l.oA.categoryList)&&{items:(0,d.w6)(10).map((function(){return[]}))});if(Object.keys(l.RI).includes(f.name)){var O=l.RI[f.name],w=O.key,S=O.title,I=O.text,x={id:(0,d.x0)(),type:"nested_row",name:"row"},C={id:(0,d.x0)(),name:"text_block",title:"Text Block",visibility:!0,settings:{text:I},icon:""};(0,d.$K)(_.settings)&&(_.settings[w]=[{title:S,content:[x]}]);var P=(0,u.v)({id:x.id,layout:"12",rowSettings:Se(Se({},n),{},{padding:{lg:"5px 0px 5px 0px",md:"5px 0px 5px 0px",sm:"",xl:"",xs:""}}),columnSettings:o,addons:[C],parent:{rowId:y.id,columnId:m.id}});P.parent_addon=h,e.page.splice(r+1,0,P)}if(f.name===l.pb.name&&(0,d.$K)(_.settings)&&(_.settings[l.pb.headerItemsKey]=(0,u.I4)({itemList:_.settings[l.pb.headerItemsKey],tableId:h}),_.settings[l.pb.bodyItemsKey]=(0,u.I4)({itemList:_.settings[l.pb.bodyItemsKey],tableId:h})),(0,d.$K)(g)&&"div"===g.name&&p){var A=g;A.children=[_.id],_.parent=A.id,E++}else if((0,d.$K)(g)&&g.parent){var L=g.parent,T=b.findIndex((function(e){return e.id===L})),D=b[T];if((0,d.$K)(D)){var Z,j=null!=s?s:0;null===(Z=D.children)||void 0===Z||Z.splice(v?j:j+1,0,_.id),_.parent=L}}return b.splice(v?E:E+1,0,_),(0,c.m)(e)}),!1,"ADD_NEW_ADDON")}},Le=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.tableItem,a=t.addon,u=t.isAbove,s=i.itemIdx,p=i.rowItemIdx,f=i.contentItemIdx;return e((function(e){var t=e.page[r].columns[n].addons[o],i={id:(0,d.x0)(),type:a.type,name:a.name,visibility:!0,title:a.title,icon:a.icon,settings:Se({},a.default)};if((0,d.$K)(p)){var v,h=null===(v=t.settings)||void 0===v?void 0:v[l.pb.bodyItemsKey];if((0,d.$K)(h)){var b=h[s].table_advanced_item[p].content;u?b.splice(f,0,i):b.splice(f+1,0,i)}}else{var y,m=null===(y=t.settings)||void 0===y?void 0:y[l.pb.headerItemsKey];if((0,d.$K)(m)){var g=m[s].content;u?g.splice(f,0,i):g.splice(f+1,0,i)}}return(0,c.m)(e)}),!1,"ADD_NEW_TABLE_ITEM_ADDON")}},Te=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.tableItem,a=t.visibility,u=e.page[r].columns[n].addons[o];if((0,d.$K)(i)){var s=i.itemIdx,p=i.rowItemIdx,f=i.contentItemIdx;if((0,d.$K)(p)){var v,h=null===(v=u.settings)||void 0===v?void 0:v[l.pb.bodyItemsKey];if((0,d.$K)(h)){var b=h[s].table_advanced_item[p].content[f],y=!(0,d.$K)(b.visibility)||b.visibility;b.visibility=!y}}else{var m,g=null===(m=u.settings)||void 0===m?void 0:m[l.pb.headerItemsKey];if((0,d.$K)(g)){var E=g[s].content[f],_=!(0,d.$K)(E.visibility)||E.visibility;E.visibility=!_}}}else u.visibility=!a;return(0,c.m)(e)}),!1,"CHANGE_ADDON_VISIBILITY")}},De=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.columnIndex,o=t.visibility;return e.page[r].columns[n].visibility=!o,(0,c.m)(e)}),!1,"CHANGE_COLUMN_VISIBILITY")}},Ze=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.visibility;return e.page[r].visibility=!n,(0,c.m)(e)}),!1,"CHANGE_SECTION_VISIBILITY")}},je=function(e){return function(t){var r=t.layout,n=t.index,o=ge.B.getState().config,i=o.sectionDefaults,a=o.columnDefaults;return e((function(e){var t=(0,u.v)({layout:r,columnSettings:a,rowSettings:i});return e.page.splice(n,0,t),(0,c.m)(e)}),!1,"ADD_NEW_SECTION")}},Re=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.item,a=t.sections,s=t.layout,p=ge.B.getState().config,f=p.sectionDefaults,v=p.columnDefaults;return e((function(e){var t,p=e.page[r],h=p.columns[n],b=h.addons[o],y={id:(0,d.x0)(),name:"text_block",title:"Text Block",visibility:!0,settings:{text:l.RI.accordion.text},icon:""},m=i.content.map((function(e){return(0,u.v)({id:e.id,layout:null!=s?s:"12",columnSettings:v,rowSettings:f,parent:{rowId:p.id,columnId:h.id},parent_addon:b.id,addons:[y]})}));return(t=e.page).push.apply(t,_e(null!=a?a:m)),(0,c.m)(e)}),!1,"ADD_NESTED_ROW_DEEP_ADDON")}},Be=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.layout,a=t.isTop,l=ge.B.getState().config,s=l.sectionDefaults,p=l.columnDefaults;return e((function(e){var t=e.page[r],l=t.columns[n],f=(0,d.x0)(),v={id:f,type:"nested_row",name:"row",title:"Row",visibility:!0,icon:""},h=(0,u.v)({id:f,layout:null!=i?i:"6+6",columnSettings:p,rowSettings:s,parent:{rowId:t.id,columnId:l.id}});return l.addons.splice(a?o:o+1,0,v),e.page.push(h),(0,c.m)(e)}),!1,"ADD_NESTED_ROW")}},Me=function(e){return function(t){var r=t.index,n=t.layout,o=ge.B.getState().config.columnDefaults;return e((function(e){var t=e.page[r],i=/[+,]/,a=n.split(i).map((function(e){var t=e.trim();return Number(t)>12?12:Number(t)})).filter(Number),s=t.layout.split(i);if(a.join("+")===t.layout)return e;t.layout=a.join("+");var d=a.map((function(e,r){if(s.length-1>=r){var n=t.columns[r];return n.settings.width=(0,u.h)(e),n}return(0,u.wy)({columnSettings:o,size:e})}));if(s.length<=a.length)return t.columns=d,e;var p=t.columns.slice(a.length).reduce((function(e,t){var r=[];return t.addons.forEach((function(e){r.push(e)})),[].concat(_e(e),r)}),[]),f=d[d.length-1],v=Object.fromEntries(e.page.map((function(e,t){return[e.id,Se(Se({},e),{},{index:t})]})));return p.forEach((function(r){var n;if(Object.keys(l.RI).includes(r.name))(null===(n=r.settings)||void 0===n?void 0:n[l.RI[r.name].key]).forEach((function(r){r.content.forEach((function(r){var n=v[r.id].index;e.page[n].parent={rowId:t.id,columnId:f.id}}))}));else if("nested_row"===r.type){var o=v[r.id].index;e.page[o].parent={rowId:t.id,columnId:f.id}}})),f.addons=[].concat(_e(f.addons),_e(p)),t.columns=d,(0,c.m)(e)}),!1,"UPDATE_SECTION_LAYOUT")}},ke=function(e){return function(t){var r=t.sectionIndex,n=t.index,o=ge.B.getState().config.columnDefaults;return e((function(e){var t=e.page[r].columns,i=(0,u.wy)({columnSettings:o,size:l.lk}),a=e.page[r].layout.split(/[+,]/);return a.splice(n,0,String(l.lk)),e.page[r].layout=a.join("+"),t.splice(n,0,i),(0,c.m)(e)}),!1,"ADD_NEW_COLUMN")}},Ge=function(e){return function(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e((function(e){var i=r.type,a=r.sectionIndex,u=r.columnIndex,s=r.addonIndex,p=r.tableItem,f=r.collectionItem,v=!0;switch(i){case"addon":if((0,d.$K)(a)&&(0,d.$K)(u)&&(0,d.$K)(s)){var h,b,y=null===(h=function(e,t){var r=t.columnIndex,n=t.addonIndex,o=e[t.sectionIndex],i=(0,d.$K)(o)?o.columns[r]:null;return(0,d.$K)(i)?i.addons[n]:null}(e.page,{sectionIndex:a,columnIndex:u,addonIndex:s}))||void 0===h?void 0:h.settings;(0,d.$K)(p)&&(y=null===(b=function(e,t){var r,n=t.columnIndex,o=t.addonIndex,i=t.tableItem,a=e[t.sectionIndex],c=(0,d.$K)(a)?a.columns[n]:null,u=(0,d.$K)(c)?c.addons[o]:null,s=i.itemIdx,p=i.rowItemIdx,f=i.contentItemIdx;if((0,d.$K)(p)){var v,h=null==u||null===(v=u.settings)||void 0===v?void 0:v[l.pb.bodyItemsKey];return null==h?void 0:h[s].table_advanced_item[p].content[f]}var b=null==u||null===(r=u.settings)||void 0===r?void 0:r[l.pb.headerItemsKey];return null==b?void 0:b[s].content[f]}(e.page,{sectionIndex:a,columnIndex:u,addonIndex:s,tableItem:p}))||void 0===b?void 0:b.settings);var m=(0,n.mv)(y)?(0,n.Js)(y):y;if(v=!me()(m,t),(0,d.$K)(p)){var g,E,_=p.itemIdx,O=p.rowItemIdx,w=p.contentItemIdx;(0,d.$K)(O)?(null===(g=e.page[a].columns[u].addons[s].settings)||void 0===g?void 0:g[l.pb.bodyItemsKey])[_].table_advanced_item[O].content[w].settings=t:(null===(E=e.page[a].columns[u].addons[s].settings)||void 0===E?void 0:E[l.pb.headerItemsKey])[_].content[w].settings=t}else e.page[a].columns[u].addons[s].settings=t}break;case"collection_item":console.log("testing");break;case"collection_item_addon":if((0,d.$K)(a)&&(0,d.$K)(u)&&(0,d.$K)(s)&&(0,d.$K)(f)){var S,I=null===(S=function(e,t){var r,n=t.columnIndex,o=t.addonIndex,i=t.collectionItem,a=e[t.sectionIndex],l=(0,d.$K)(a)?a.columns[n]:null,c=(0,d.$K)(l)?l.addons[o]:null,u=i.itemIndex,s=i.itemAddonIndex;return null==c||null===(r=c.items)||void 0===r?void 0:r[u][s]}(e.page,{sectionIndex:a,columnIndex:u,addonIndex:s,collectionItem:f}))||void 0===S?void 0:S.settings,x=f.itemAddonIndex,C=(0,n.mv)(I)?(0,n.Js)(I):I;v=!me()(C,t);var P=e.page[a].columns[u].addons[s].items;(0,d.$K)(P)&&P.forEach((function(e,r){P[r][x].settings=t}))}break;case"column":if((0,d.$K)(a)&&(0,d.$K)(u)){var A=(0,n.mv)(e.page[a].columns[u].settings)?(0,n.Js)(e.page[a].columns[u].settings):e.page[a].columns[u].settings;v=!me()(A,t),e.page[a].columns[u].settings=t}break;case"section":if((0,d.$K)(a)){var L=(0,n.mv)(e.page[a].settings)?(0,n.Js)(e.page[a].settings):e.page[a].settings;v=!me()(L,t),e.page[a].settings=t}}if(v&&(v=o),v){var T=c.s.getState().changesUntilSettingsPanelOpen,D=Math.min(l.Q9,T+1);c.s.setState({changesUntilSettingsPanelOpen:D})}return v?(0,c.m)(e):e}),!1,"UPDATE_SETTINGS")}},Ne=function(e){return function(){return e((function(e){return e.copiedData.addon=null,e.copiedData.section=null,(0,s.Rv)(l.dR.COPIED_ADDON_LOCAL_STORAGE_KEY),(0,s.Rv)(l.dR.COPIED_SECTION_LOCAL_STORAGE_KEY),e}),!1,"RESET_COPIED_DATA")}},We=function(e){return function(){return e((function(e){return(0,c.m)(e),e.page=[],e}),!1,"CLEAR_PAGE_CONTENT")}},Ue=function(e){return function(t){var r=t.label,n=t.row,o=t.addon,i=t.tableAddonItem,a=t.collectionItemAddon;return e((function(e){if((0,d.$K)(n)&&(e.page[n.sectionIndex].settings.admin_label=r),(0,d.$K)(o)){var t=e.page[o.sectionIndex].columns[o.columnIndex].addons[o.addonIndex].settings;(0,d.$K)(t)&&(t.admin_label=r)}if((0,d.$K)(i)){var u,s,p,f,v=i.sectionIndex,h=i.columnIndex,b=i.addonIndex,y=i.itemIdx,m=i.rowItemIdx,g=i.contentItemIdx,E=e.page[v].columns[h].addons[b];(0,d.$K)(m)?(null!==(u=null===(s=E.settings)||void 0===s?void 0:s[l.pb.bodyItemsKey])&&void 0!==u?u:[])[y].table_advanced_item[m].content[g].settings.admin_label=r:(null!==(p=null===(f=E.settings)||void 0===f?void 0:f[l.pb.headerItemsKey])&&void 0!==p?p:[])[y].content[g].settings.admin_label=r}if((0,d.$K)(a)){var _=a.sectionIndex,O=a.columnIndex,w=a.addonIndex,S=a.itemAddonIndex,I=a.childIndex,x=e.page[_].columns[O].addons[w];(0,d.$K)(x.items)&&x.items.forEach((function(e){if((0,d.$K)(I)){var t=e[I].settings;(0,d.$K)(t)&&(t.admin_label=r)}else{var n=e[S].settings;(0,d.$K)(n)&&(n.admin_label=r)}}))}return(0,c.m)(e)}),!1,"UPDATE_ADMIN_LABEL")}};function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Ve(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 Fe(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ve(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 Ve(e,t){if(e){if("string"==typeof e)return qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qe(e,t):void 0}}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ze=function(e){return function(t){var r=t.sectionIndex;return e((function(e){var t,n=(0,u.Nk)({sectionIndex:r,sections:e.page});return(t=e.page).splice.apply(t,[r+1,0].concat(Fe(n))),(0,c.m)(e)}),!1,"DUPLICATE_SECTION")}},Ke=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.nestedSectionIndex;return e((function(e){var t,a=e.page[r],l=a.columns[n],s=l.addons,p=s[o],v=(0,d.x0)(),h=f()(p);h.id=v,s.splice(o+1,0,h);var b=(0,u.Nk)({sectionIndex:i,sectionId:h.id,sections:e.page}),y=He(b,1)[0];return y.id=v,y.parent={rowId:a.id,columnId:l.id},(t=e.page).splice.apply(t,[i+1,0].concat(Fe(b))),(0,c.m)(e)}),!1,"DUPLICATE_NESTED_SECTION")}},$e=function(e){return function(t){var r=t.sectionIndex;return e((function(e){var t=(0,u.Nk)({sectionIndex:r,sections:e.page});return(0,s.pj)(l.dR.COPIED_SECTION_LOCAL_STORAGE_KEY,JSON.stringify(t)),e.copiedData.section=t,e}),!1,"COPY_SECTION")}},Xe=function(e){return function(t){var r=t.sectionIndex,n=t.sectionData,o=t.isAbove,i=void 0!==o&&o,a=t.replace,l=void 0!==a&&a;return e((function(e){var t,o,a=(0,u.Nk)({sectionIndex:0,sections:n});return l?(t=e.page).splice.apply(t,[r,1].concat(Fe(a))):(o=e.page).splice.apply(o,[i?r:r+1,0].concat(Fe(a))),(0,c.m)(e)}),!1,"PASTE_OR_INSERT_SECTION")}},Ye=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.nestedSectionIndex,a=t.sectionData,l=t.isAbove,s=t.replace;return e((function(e){var t=e.page[r],d=t.columns[n],p=d.addons,f=(0,u.Nk)({sectionIndex:0,sections:a}),v=He(f,1)[0],h={id:v.id,type:"nested_row",name:"row",title:"Row",visibility:!0,icon:""};if(v.parent={rowId:t.id,columnId:d.id},s){var b;p.splice(o,1,h);var y=e.page[i];(b=e.page).splice.apply(b,[i,1].concat(Fe(f))),(0,u.OE)(y,e.page)}else{var m;p.splice(l?o:o+1,0,h),(m=e.page).splice.apply(m,[i+1,0].concat(Fe(f)))}return(0,c.m)(e)}),!1,"PASTE_OR_INSERT_NESTED_SECTION")}},Qe=function(e){return function(t){var r=t.sectionIndex;return e((function(e){var t=e.page[r];return(0,d.$K)(t)?(e.page.splice(r,1),(0,u.OE)(t,e.page),(0,c.m)(e)):e}),!1,"DELETE_SECTION")}},Je=function(e){return function(t){var r=t.sectionIndex,n=t.columnIndex,o=t.addonIndex,i=t.nestedSectionIndex;return e((function(e){var t=e.page[r].columns[n].addons,a=e.page[i];return(0,d.$K)(a)?(t.splice(o,1),e.page.splice(i,1),(0,u.OE)(a,e.page),(0,c.m)(e)):e}),!1,"DELETE_NESTED_SECTION")}};function et(e,t){if(e){if("string"==typeof e)return tt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tt(e,t):void 0}}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var rt=function(e){return function(t){return e((function(e){var r=t.destinationSectionIndex,n=t.sourceSectionIndex;return e.page=(0,D.Rp)(e.page,n,r),(0,c.m)(e)}),!1,"SORT_SECTION")}},nt=function(e){return function(t){return e((function(e){var r=t.sectionIndex,n=t.destinationColumnIndex,o=t.sourceColumnIndex;return e.page[r].columns=(0,D.Rp)(e.page[r].columns,o,n),(0,c.m)(e)}),!1,"SORT_COLUMN")}},ot=function(e){return function(t){var r=t.sourceSectionIndex,n=t.sourceColumnIndex,o=t.sourceAddonIndex,i=t.sourceChildIndex,a=t.destinationSectionIndex,l=t.destinationColumnIndex,s=t.destinationAddonIndex,p=t.destinationChildIndex,f=t.emptyDivChild,v=t.isAbove;return e((function(e){var t=e.page[r],h=t.columns[n],b=h.addons,y=b[o],m=e.page[a],g=m.columns[l],E=g.addons,_=E[s];if(!(0,d.$K)(y))return e;var O=y.parent,w=U({sections:e.page,rowId:t.id,columnId:h.id,addonList:b,addon:y});if(!(0,d.$K)(w))return e;if(!(0,d.$K)(_)&&0===E.length)return g.addons=w.addons,(0,u.Ag)(o,b),(0,c.m)(e);var S,I,x=(S=w.addons,I=1,function(e){if(Array.isArray(e))return e}(S)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(S,I)||et(S,I)||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.")}())[0];if("div"===_.name&&f){var C=_;C.children=[y.id],(0,u.u)(x,b),x.parent=C.id}else if("nested_row"!==y.type||r===a&&n===l)if((0,d.$K)(p)&&(0,d.$K)(_.parent)){var P=E.findIndex((function(e){return e.id===_.parent})),A=E[P];(0,d.$K)(A)&&A.children&&((0,d.$K)(y.parent)&&(0,d.$K)(i)&&y.parent===_.parent?A.children=(0,D.Rp)(A.children,i,p):(A.children.splice(v?p:p+1,0,x.id),(0,u.u)(x,b),x.parent=A.id))}else(0,u.u)(x,b);else{var L=e.page.find((function(e){return e.id===y.id}));(0,d.$K)(L)&&(L.parent={rowId:m.id,columnId:g.id})}return r!==a||n!==l?(E.splice.apply(E,[v?s:s+1,0].concat(function(e){return function(e){if(Array.isArray(e))return tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||et(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.")}()}(w.addons))),(0,u.Ag)(o,b)):_.id===O?(o<s&&!v||o>s&&v)&&(g.addons=(0,D.Rp)(b,o,s)):g.addons=(0,D.Rp)(b,o,s),(0,c.m)(e)}),!1,"SORT_ADDON")}},it=function(e){return function(t){var r=t.sourceSectionIndex,n=t.sourceColumnIndex,o=t.sourceAddonIndex,i=t.destinationSectionIndex;return e((function(e){var t=e.page[r],a=t.columns[n],l=a.addons,u=l[o],s=e.page[i];if(!(0,d.$K)(u))return e;var p=U({sections:e.page,rowId:t.id,columnId:a.id,addonList:l,addon:u});if(!(0,d.$K)(p))return e;var f=s.parent;if((0,d.$K)(f)&&!(0,d.jn)(f)){var v=f.rowId,h=f.columnId,b=e.page.findIndex((function(e){return e.id===v})),y=e.page[b].columns,m=y.findIndex((function(e){return e.id===h})),g=y[m].addons.findIndex((function(e){return e.id===s.id}));return a.addons=(0,D.Rp)(l,o,g),(0,c.m)(e)}return e}),!1,"SORT_ADDON_AND_NESTED_ROW")}},at=[];(0,n.Fl)(!1);var lt=(0,o.Ue)()((0,a.n)((0,i.mW)((function(e){return{page:at,copiedData:{addon:null,section:null},resetCopiedData:Ne(e),setPageContent:xe(e),validateOldPageContent:Pe(e),updateSettings:Ge(e),updateSectionLayout:Me(e),addNewAddon:Ae(e),addProductListItems:Ce(e),addNewTableItemAddon:Le(e),changeAddonVisibility:Te(e),changeColumnVisibility:De(e),changeSectionVisibility:Ze(e),addNestedRowForDeepAddon:Re(e),addNestedRow:Be(e),addNewSection:je(e),addNewColumn:ke(e),sortAddon:ot(e),addNewCollectionItemAddon:Y(e),copyCollectionItemAddon:Q(e),pasteOrInsertCollectionItemAddon:J(e),changeCollectionItemAddonVisibility:oe(e),pasteCollectionItemAddonStyle:ie(e),sortCollectionItemAddon:te(e),sortAddonWithCollectionItemAddon:ee(e),duplicateCollectionItemAddon:re(e),deleteCollectionItemAddon:ne(e),sortAddonAndNestedRow:it(e),sortColumn:nt(e),sortSection:rt(e),copyAddon:S(e),pasteOrInsertAddon:I(e),pasteAddonStyle:x(e),loadCopiedDataFirstTime:C(e),loadCopiedAddon:P(e),loadCopiedSection:A(e),duplicateAddon:O(e),duplicateTableItemAddon:w(e),deleteAddon:L(e),deleteTableItemAddon:T(e),duplicateSection:ze(e),duplicateNestedSection:Ke(e),copySection:$e(e),pasteOrInsertSection:Xe(e),pasteOrInsertAsNestedSection:Ye(e),deleteSection:Qe(e),deleteNestedSection:Je(e),duplicateColumn:fe(e),deleteColumn:ve(e),resetColumnWidth:he(e),updateColumnWidth:be(e),clearPageContent:We(e),updateAdminLabel:Ue(e)}}),{store:"PageStore",name:"Page Store"})))},2423:(e,t,r)=>{"use strict";r.d(t,{m:()=>b,s:()=>h});var n=r(3106),o=r(230),i=r(251),a=r.n(i),l=r(2902),c=r(270),u=r(782),s=r(8753),d=r(2445),p=r(6131);function f(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var h=(0,c.Ue)()((0,s.n)((0,u.mW)((function(e){return{pastStates:[],futureStates:[],currentState:[],changesUntilSettingsPanelOpen:0,showWarningAtReload:!0,setShowWarningAtReload:function(t){return e((function(e){return e.showWarningAtReload=t,e}))},undo:function(){return e((function(e){if(e.pastStates.length<=0)return e;var t=e.pastStates.length-1,r=e.pastStates[t],n=p.o.getState().page;e.futureStates.push(n),e.pastStates.pop();var o=(0,l.mv)(r)?(0,l.Js)(r):r;return o&&(p.o.setState({page:o}),e.currentState=o,e.changesUntilSettingsPanelOpen-=1,e.changesUntilSettingsPanelOpen<0&&(d.F.setState({type:void 0,payload:{sectionIndex:null,columnIndex:null,addonIndex:null}}),e.changesUntilSettingsPanelOpen=0)),e}),!1,"UNDO")},redo:function(){return e((function(e){if(e.futureStates.length<=0)return e;var t=e.futureStates.length-1,r=e.futureStates[t],i=p.o.getState().page;e.pastStates.push(i),e.futureStates.pop();var a=(0,l.mv)(r)?(0,l.Js)(r):r;if(a){p.o.setState({page:a}),e.currentState=a;var c=d.F.getState().type;(0,o.$K)(c)&&(e.changesUntilSettingsPanelOpen=Math.min(n.Q9,e.changesUntilSettingsPanelOpen+1))}return e}),!1,"REDO")}}}),{name:"UndoRedo",store:"UndoRedo"}))),b=function(e){var t=h.getState(),r=t.pastStates,o=(0,l.mv)(e.page)?(0,l.Js)(e.page):e.page;if(t.setShowWarningAtReload(!0),r.length>0){var i=r[r.length-1];if(a()(i,o))return e}if(o)if(r.length>=n.Q9){var c=r.slice(1);h.setState({pastStates:[].concat(f(c),[o]),futureStates:[]})}else h.setState({pastStates:[].concat(f(r),[o]),futureStates:[]});return e}},2238:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>O,DV:()=>T,Gm:()=>_,I4:()=>L,K0:()=>R,Nk:()=>D,OE:()=>C,RL:()=>I,a4:()=>B,am:()=>Z,h:()=>f,iK:()=>S,p_:()=>P,sd:()=>j,u:()=>w,v:()=>v,vH:()=>y,wy:()=>h});var n=r(3106),o=r(1245),i=r.n(o),a=r(230);function l(e){return l="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},l(e)}function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=function(e){var t="".concat(parseFloat((100/(12/e)).toFixed(6)));return{xl:t=t.length?"".concat(t,"%"):"",lg:t,md:t,sm:"100%",xs:"100%"}},v=function(e){var t=e.id,r=void 0===t?(0,a.x0)():t,n=e.layout,o=e.columnSettings,i=e.rowSettings,l=e.parent,c=void 0!==l&&l,u=e.addons,s=void 0===u?[]:u,p=e.parent_addon,v=n.replace(/\s/,"").split("+").map((function(e){return Math.min(12,Number(e))})),h=v.map((function(e){return{id:(0,a.x0)(),class_name:"row-column",visibility:!0,settings:d(d({},o),{},{width:f(e)}),addons:s}}));return d({id:r,visibility:!0,collapse:!1,settings:i,layout:v.join("+"),columns:h,parent:c},p&&{parent_addon:p})},h=function(e){var t=e.columnSettings,r=e.size;return{id:(0,a.x0)(),class_name:"row-column",visibility:!0,settings:d(d({},t),{},{width:f(r)}),addons:[]}},b=function(e){var t=e.sections,r=e.sectionsObject,o=e.addonList,l=e.addon,c=e.options,u=[],s=[];return l.id=(0,a.x0)(),function e(l){o.forEach((function(o){var d,p=null===(d=l.children)||void 0===d?void 0:d.findIndex((function(e){return e===o.id}));if((0,a.$K)(p)&&-1!==p){var f,v=(0,a.x0)();null===(f=l.children)||void 0===f||f.splice(p,1,v);var h=i()(o);if(h.parent=l.id,Object.keys(n.RI).includes(h.name)){var b=g({sections:t,sectionsObject:r,addon:h,addonId:v,options:{rowId:c.rowId,columnId:c.columnId}});s=b.sections}else h.name===n.pb.name?(h.id=v,h=A(h)):h.id=v;u.push(h),"div"===h.name&&e(h)}}))}(l),{divAddon:l,children:u,nestedSections:s}},y=function(e){var t=e.addonList,r=e.addon,n=[];return r.id=(0,a.x0)(),function e(r){t.forEach((function(t){var o,l=null===(o=r.children)||void 0===o?void 0:o.findIndex((function(e){return e===t.id}));if((0,a.$K)(l)&&-1!==l){var c,u=(0,a.x0)();null===(c=r.children)||void 0===c||c.splice(l,1,u);var s=i()(t);s.parent=r.id,s.id=u,n.push(s),"div"===s.name&&e(s)}}))}(r),{divAddon:r,children:n}},m=function(e){var t=e.sections,r=e.sectionsObject,n=e.addon,o=e.options,l=[],u=n,s=r[u.id];if(!(0,a.$K)(s))return null;u.id=(0,a.x0)();var d=i()(s);d.id=u.id,(0,a.$K)(o)&&(d.parent={rowId:o.rowId,columnId:o.columnId}),l.push(d);var p=E({sections:t,sectionsObject:r,section:d});return l.push.apply(l,c(p)),{addon:u,sections:l}},g=function(e){var t,r=e.sections,o=e.sectionsObject,l=e.addon,u=e.options,s=e.addonId,d=void 0===s?(0,a.x0)():s,p=[],f=l;return f.id=d,(null===(t=f.settings)||void 0===t?void 0:t[n.RI[f.name].key]).forEach((function(e){e.content.forEach((function(e){var t=o[e.id];if(!(0,a.$K)(t))return null;var n=(0,a.x0)();e.id=n;var l=i()(t);l.id=n,l.parent_addon=f.id,(0,a.$K)(u)&&(l.parent={rowId:u.rowId,columnId:u.columnId}),p.push(l);var s=E({sections:r,sectionsObject:o,section:l});p.push.apply(p,c(s))}))})),{addon:f,sections:p}},E=function(e){var t=e.sections,r=e.sectionsObject,o=e.section,i=[];return o.columns.forEach((function(e){e.id=(0,a.x0)();var l=[];e.addons.forEach((function(u){if(!u.parent)if(Object.keys(n.RI).includes(u.name)){var s=g({sections:t,sectionsObject:r,addon:u,options:{rowId:o.id,columnId:e.id}});(0,a.$K)(s)&&(l.push(s.addon),i.push.apply(i,c(s.sections)))}else if("nested_row"===u.type){var d=m({sections:t,sectionsObject:r,addon:u,options:{rowId:o.id,columnId:e.id}});(0,a.$K)(d)&&(l.push(d.addon),i.push.apply(i,c(d.sections)))}else if("div"===u.name){var p=b({sections:t,sectionsObject:r,addon:u,addonList:e.addons,options:{rowId:o.id,columnId:e.id}}),f=p.divAddon,v=p.children,h=p.nestedSections;l.push.apply(l,[f].concat(c(v))),i.push.apply(i,c(h))}else if(u.name===n.pb.name){u.id=(0,a.x0)();var E=A(u);l.push(E)}else if(u.name===n.oA.productList||u.name===n.oA.categoryList){var _;u.id=(0,a.x0)();var O=null!==(_=u.items)&&void 0!==_?_:[];O.forEach((function(e,t){var r=[];e.forEach((function(t){if(!t.parent)if("div"===t.name){var n=y({addon:t,addonList:e}),o=n.divAddon,i=n.children;r.push.apply(r,[o].concat(c(i)))}else t.id=(0,a.x0)(),r.push(t)})),O[t]=r})),l.push(u)}else u.id=(0,a.x0)(),l.push(u)})),l.length>0&&(e.addons=l)})),i},_=function(e){var t=e.sections,r=e.sectionsObject,o=e.sectionId,l=e.column,u=[],s=[],d=i()(l);return d.id=(0,a.x0)(),d.addons.forEach((function(e){if(!e.parent)if(Object.keys(n.RI).includes(e.name)){var i=g({sections:t,sectionsObject:r,addon:e,options:{rowId:o,columnId:d.id}});(0,a.$K)(i)&&(u.push.apply(u,c(i.sections)),s.push(i.addon))}else if("nested_row"===e.type){var p=m({sections:t,sectionsObject:r,addon:e,options:{rowId:o,columnId:d.id}});(0,a.$K)(p)&&(u.push.apply(u,c(p.sections)),s.push(p.addon))}else if("div"===e.name){var f=b({sections:t,sectionsObject:r,addon:e,addonList:l.addons,options:{rowId:o,columnId:d.id}}),v=f.divAddon,h=f.children,y=f.nestedSections;s.push.apply(s,[v].concat(c(h))),u.push.apply(u,c(y))}else if(e.name===n.pb.name){e.id=(0,a.x0)();var E=A(e);s.push(E)}else e.id=(0,a.x0)(),s.push(e)})),s.length>0&&(d.addons=s),{sections:u,column:d}},O=function(e,t){var r=t[e];w(r,t),t.splice(e,1),function e(r){var n;null===(n=r.children)||void 0===n||n.forEach((function(r){var n=t.findIndex((function(e){return e.id===r}));if((0,a.$K)(n)&&-1!==n){var o=t[n];t.splice(n,1),"div"===o.name&&e(o)}}))}(r)},w=function(e,t){(0,a.$K)(e.parent)&&!(0,a.jn)(e.parent)&&t.forEach((function(t){var r;t.id===e.parent&&(t.children=null===(r=t.children)||void 0===r?void 0:r.filter((function(t){return t!==e.id})),e.parent=!1)}))},S=function(e,t,r){var o=t[e];t.splice(e,1),(0,a.$K)(o)&&function e(o){var i;null===(i=o.children)||void 0===i||i.forEach((function(o){var i=t.findIndex((function(e){return e.id===o}));if((0,a.$K)(i)&&-1!==i){var l=t[i];t.splice(i,1),"div"===l.name?e(l):Object.keys(n.RI).includes(l.name)?I(l,r):"nested_row"===l.type&&x(l,r)}}))}(o)},I=function(e,t){var r;(null===(r=e.settings)||void 0===r?void 0:r[n.RI[e.name].key]).forEach((function(e){e.content.forEach((function(e){var r=t.findIndex((function(t){return t.id===e.id}));if(-1===r)return null;var n=t[r];(0,a.$K)(n)&&(t.splice(r,1),C(n,t))}))}))},x=function(e,t){var r=t.findIndex((function(t){return t.id===e.id}));if(-1===r)return null;var n=t[r];(0,a.$K)(n)&&(t.splice(r,1),C(n,t))},C=function(e,t){(0,a.$K)(e)&&e.columns.forEach((function(e){e.addons.forEach((function(e){Object.keys(n.RI).includes(e.name)?I(e,t):"nested_row"===e.type&&x(e,t)}))}))},P=function(e,t){e.addons.forEach((function(e){Object.keys(n.RI).includes(e.name)?I(e,t):"nested_row"===e.type&&x(e,t)}))},A=function(e){var t=function(t){return t.map((function(t){return n.pb.bodyItemsKey in t?d(d({},t),{},p({},n.pb.bodyItemsKey,t[n.pb.bodyItemsKey].map((function(t){return d(d({},t),{},{content:t.content.map((function(t){return d(d({},t),{},{id:(0,a.x0)(),reference_id:e.id})}))})})))):d(d({},t),{},{content:t.content.map((function(t){return d(d({},t),{},{id:(0,a.x0)(),reference_id:e.id})}))})}))};return(0,a.$K)(e.settings)?(e.settings[n.pb.headerItemsKey]=t(e.settings[n.pb.headerItemsKey]),e.settings[n.pb.bodyItemsKey]=t(e.settings[n.pb.bodyItemsKey]),e):e},L=function(e){var t=e.itemList,r=e.tableId;return t.map((function(e){var t={id:(0,a.x0)(),name:"text_block",visibility:!0,collapse:!1,reference_id:r,settings:{text:""}};if(n.pb.bodyItemsKey in e){var o=e[n.pb.bodyItemsKey].map((function(e){return{content:[d(d({},t),{},{id:(0,a.x0)(),settings:{text:e.content}})]}}));return p({},n.pb.bodyItemsKey,o)}return{content:[d(d({},t),{},{settings:{text:e.content}})]}}))},T=function(e){var t=e.sections,r=e.rowId,o=e.columnId,l=e.addonList,u=e.addon,s=Object.fromEntries(t.map((function(e,t){return[e.id,d(d({},e),{},{index:t})]}))),p=i()(u),f=null;if("div"===p.name){var v=b({sections:t,sectionsObject:s,addon:p,addonList:l,options:{rowId:r,columnId:o}}),h=v.divAddon,m=v.children,E=v.nestedSections;f={name:h.name,addons:[h].concat(c(m)),sections:E}}else if(Object.keys(n.RI).includes(p.name)){var _=g({sections:t,sectionsObject:s,addon:p,options:{rowId:r,columnId:o}});(0,a.$K)(_)&&(f={name:_.addon.name,addons:[_.addon],sections:_.sections})}else if(p.name===n.pb.name)p.id=(0,a.x0)(),f={name:p.name,addons:[A(p)],sections:[]};else if(p.name===n.oA.productList||p.name===n.oA.categoryList){var O;p.id=(0,a.x0)();var w=null!==(O=p.items)&&void 0!==O?O:[];w.forEach((function(e,t){var r=[];e.forEach((function(t){if(!t.parent)if("div"===t.name){var n=y({addon:t,addonList:e}),o=n.divAddon,i=n.children;r.push.apply(r,[o].concat(c(i)))}else t.id=(0,a.x0)(),r.push(t)})),w[t]=r})),f={name:p.name,addons:[p],sections:[]}}else p.id=(0,a.x0)(),f={name:p.name,addons:[p],sections:[]};return f},D=function(e){var t=e.sections,r=e.sectionIndex,n=e.sectionId,o=void 0===n?(0,a.x0)():n,l=e.independent,u=void 0===l||l,s=Object.fromEntries(t.map((function(e,t){return[e.id,d(d({},e),{},{index:t})]}))),p=t[r],f=i()(p);f.id=o,u&&(f.parent=!1),f.parent_addon&&u&&delete f.parent_addon,f.columns.forEach((function(e){e.id=(0,a.x0)()}));var v=E({sections:t,sectionsObject:s,section:f});return[f].concat(c(v))},Z=function(e){var t=[];return e.forEach((function(r){if(!r.parent)if("div"===r.name){var n=y({addon:r,addonList:e}),o=n.divAddon,i=n.children;t.push.apply(t,[o].concat(c(i)))}else r.id=(0,a.x0)(),t.push(r)})),t},j=function(e){var t=Object.fromEntries(e.map((function(e,t){return[e.id,d(d({},e),{},{index:t})]}))),r=[];return e.forEach((function(n){if(!n.parent){var o=i()(n);o.id=(0,a.x0)(),o.columns.forEach((function(e){e.id=(0,a.x0)()}));var l=E({sections:e,sectionsObject:t,section:o});r=[].concat(c(r),[o],c(l))}})),r},R=function(e){return e!==n.oA.filter&&e.startsWith("easystore_list_")},B=function(e){return e!==n.oA.filter&&e.startsWith("easystore_collection_")}},5501:(e,t,r)=>{"use strict";r.d(t,{u:()=>p});var n=r(1974),o=r(230),i=r(2861),a=r(7673),l=r(6680);function c(e){return c="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},c(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i.Z.defaults.paramsSerializer={serialize:function(e){return a.stringify(e)}},i.Z.create({baseURL:n.Z.API_BASE_URL});var p=i.Z.create({baseURL:n.Z.API_BASE_URL});p.interceptors.request.use((function(e){return e.headers["X-CSRF-Token"]=o.Xy.getOptions("csrf.token"),e.method&&["post","put","patch"].includes(e.method.toLocaleLowerCase())&&(e.data&&(e.data=(0,l.wh)(e.data,e.method)),["put","patch"].includes(e.method.toLowerCase())&&(e.method="POST")),e.params&&(e.params=(0,l.tW)(e.params)),e.method&&["get","delete"].includes(e.method.toLowerCase())&&(e.params=s(s({},e.params),{},{_method:e.method,timestamp:(new Date).getTime()})),e}),(function(e){return Promise.reject(e)})),p.interceptors.response.use((function(e){var t=e.headers["content-type"];return t.toLowerCase().includes("application/json")||t.toLowerCase().includes("application/zip")?Promise.resolve(e).then((function(e){return e.data})):Promise.reject({message:"Your session has expired! Please login again to continue. If you reload this page, you may lose your data."})}),(function(e){var t=e.response.data.data,r=s(s({},e),{},{message:(0,o.$K)(t)&&(0,o.$K)(t.message)?t.message:e.message});return Promise.reject(r)}))},7273:(e,t,r)=>{"use strict";r.d(t,{BB:()=>f,BI:()=>_,C4:()=>E,H2:()=>h,He:()=>v,jv:()=>b,ll:()=>S,o5:()=>y,oo:()=>m,qb:()=>d,sw:()=>p,uZ:()=>w,wx:()=>O,xU:()=>g});var n=r(230);function o(e){return o="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},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=function(e){return(0,n.Kn)(e)&&"icon"in e},s=function(e){return(0,n.Kn)(e)&&"svg"in e},d=function(e){if(!e)return[];var t=function(e){return u(e)?e.icon:s(e)?e.svg:void 0};if((0,n.GI)(e)){var r=e.map((function(e,t){return{label:e,value:t}}));return(0,n.I6)(r)}if(Array.isArray(e)){var o=e.map((function(e){return l({label:u(e.label)||s(e.label)?"":e.label,icon:t(e.label),value:e.value},u(e.label)&&{tooltip:e.label.tooltip})}));return(0,n.I6)(o)}return(0,n.Kn)(e)?Object.entries(e).reduce((function(e,r){var o,a,l=(a=2,function(e){if(Array.isArray(e))return e}(o=r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(o,a)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(o,a)||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.")}()),c=l[0],d=l[1],p={label:u(d)||s(d)?"":d,icon:t(d),value:c};return e.push(p),(0,n.I6)(e)}),[]):[]},p=function(e){return(0,n.HD)(e)?Boolean(Number(e)):Boolean(e)},f=function(e){if((0,n.$K)(e))return String(e)},v=function(e){if((0,n.$K)(e)&&(!(0,n.HD)(e)||0!==e.length))return Number(e)},h=function(e){return(0,n.$K)(e)?(0,n.jn)(e)?f(v(e)):(0,n.hj)(e)?f(e):"true"===e?"1":"false"===e?"0":e:"0"},b=function(e){return e.replace(/[^-0-9.]/g,"")},y=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!(0,n.$K)(e))return"";if((0,n.SI)(e))return e[t]?h(String(e[t])):"";if((0,n.JW)(e)){var o=r?e.unit:"";return e[t]?h(String(e[t]))+o:""}return(0,n.Kn)(e)?"":h(e)},m=function(e,t){if(e)return(0,n.SI)(e)?e[t]:e},g=function(e){var t=e.previous,r=e.value,n=e.responsive,o=e.device;return n?l(l({},t),{},c({},o,r)):r},E={left:"textAlignLeft",center:"textAlignCenter",right:"textAlignRight",justify:"textAlignJustify"},_={start:"verticalAlignStart",center:"verticalAlignCenter",end:"verticalAlignEnd"},O={h1:"tagH1",h2:"tagH2",h3:"tagH3",h4:"tagH4",h5:"tagH5",h6:"tagH6",p:"tagP",div:"tagDiv"},w=function(e){return(0,n.Zt)(e).some((function(t){return e[t].visibility}))},S=function(e,t,r){var o=v(e);if((0,n.$K)(o))return(0,n.$K)(t)&&(o=Math.max(t,o)),(0,n.$K)(r)&&(o=Math.min(r,o)),o}},680:(e,t,r)=>{"use strict";r.d(t,{Js:()=>f,c:()=>v,pE:()=>p,vn:()=>d});var n=r(3106),o=r(1234),i=r(230);function a(e){return a="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},a(e)}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d=function(e){var t,r,n,o=e.match(/\d+/g)&&(null===(t=e.match(/\d+/g))||void 0===t?void 0:t[0]);return{weight:o?Number(o):400,style:null!==(r=e.match(/[a-zA-Z]+/g)&&(null===(n=e.match(/[a-zA-Z]+/g))||void 0===n?void 0:n[0]))&&void 0!==r?r:""}},p=function(e,t,r){if(!n.Lx.includes(e.family)){var o=window.document,a="sppagebuilder-font-".concat(e.family.replaceAll(/\s/g,"-")).replaceAll(".",""),l="google"===t?"google-fonts":"custom-fonts",c="".concat(i.Xy.pagebuilderBase,"media/com_sppagebuilder/assets/").concat(l,"/").concat(e.family,"/stylesheet.css");if("google"===t&&((null!=r?r:[]).findIndex((function(t){return t.family_name===e.family}))>=0||(c="https://fonts.googleapis.com/css?family=".concat(e.family,":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&display=swap"))),!o.querySelector("#".concat(a))){var u=o.createElement("link");u.href=c,u.rel="stylesheet",u.id=a,o.head.appendChild(u)}}},f=function(e){var t,r,n,o,i,a,l,c=(r=(t={family:e.family,variants:e.variants}).family,o=(n=t.variants).join(""),i=o.includes("italic"),a=/\d/.test(o),l=n.map((function(e){var t=d(e),r=t.weight,n=t.style,o=r;return!a||"regular"!==n&&"italic"!==n||o||(o=400),i?a?"".concat("italic"===n?1:0,",").concat(o):"".concat("italic"===n?1:0):"".concat(o)})).sort().join(";"),"".concat(r.split(" ").join("+")).concat(i?":ital":"").concat(i&&a?",":"").concat(!i&&a?":":"").concat(a?"wght":"").concat((a||i)&&l?"@".concat(l):""));return"https://fonts.googleapis.com/css2?family=".concat(c,"&display=swap")},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[{value:"System",label:(0,o.O)("COM_SPPAGEBUILDER_EDITOR_FONT_BOOK_SYSTEM_FONTS"),disabled:!0},{value:"Arial",label:"Arial"},{value:"Tahoma",label:"Tahoma"},{value:"Verdana",label:"Verdana"},{value:"Helvetica",label:"Helvetica"},{value:"Times New Roman",label:"Times New Roman"},{value:"Trebuchet MS",label:"Trebuchet MS"},{value:"Georgia",label:"Georgia"}];if(!e.length)return r;var n=e.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({label:e.family_name,value:e.family_name,type:e.type},"google"===e.type&&{variants:e.data.variants})})),i=n.filter((function(e){return"google"===e.type})),a=n.filter((function(e){return"local"===e.type})),c=[];return i.length>0&&!t&&c.push.apply(c,[{value:"Google Fonts",label:(0,o.O)("COM_SPPAGEBUILDER_EDITOR_FONT_BOOK_GOOGLE_FONTS"),disabled:!0}].concat(l(i))),a.length>0&&c.push.apply(c,[{value:"Local Fonts",label:(0,o.O)("COM_SPPAGEBUILDER_EDITOR_FONT_BOOK_LOCAL_FONTS"),disabled:!0}].concat(l(a))),c.push.apply(c,r),c}},6680:(e,t,r)=>{"use strict";r.d(t,{wh:()=>y,tW:()=>m,GI:()=>b});var n=r(230),o={error_unexpected:"msg_error_unexpected",error_verify_already_verified:"msg_error_verify_already_verified",error_already_exists:"msg_error_already_exists",error_login_bad_credentials:"msg_error_login_bad_credentials",error_invalid_phone_format:"msg_error_invalid_phone_format",error_anonymous_requester_info_required:"msg_error_anonymous_requester_info_required",error_login_user_email_not_verified:"msg_error_login_user_email_not_verified",error_password_is_incorrect:"msg_error_password_is_incorrect",error_user_is_inactive:"msg_error_user_is_inactive",error_new_email_already_taken:"msg_error_email_is_already_taken"},i=function(e){return(0,n.nr)(o,e)?o[e]:(console.error("Missing BE error translations: ".concat(e)),e)},a=["non_field_errors"];function l(){l=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new C(o||[]);return n(a,"_invoke",{value:w(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p={};function v(){}function h(){}function b(){}var y={};u(y,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==t&&r.call(g,i)&&(y=g);var E=b.prototype=v.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(n,i,a,l){var c=d(e[n],e,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==f(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(c.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function w(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=d(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function P(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=b,n(E,"constructor",{value:b,configurable:!0}),n(b,"constructor",{value:h,configurable:!0}),h.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},_(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(E),u(E,c,"Generator"),u(E,i,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=P,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,o)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){return f="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},f(e)}var v=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,n.Zt)(t).reduce((function(o,i){var a=t[i];return"object"!==f(a)||(0,n.OC)(a)||(0,n.ub)(a)?d(d({},o),{},p({},"".concat(r).concat(i),a)):d(d({},o),e(d({},a),"".concat(r).concat(i,".")))}),{})},h=function(e,t,r){if(!(0,n.IZ)(e)||!e.response)throw e;var o=function(e,t){var r=e;if(404===r.status||403===r.status||500===r.status)return{nonFieldErrors:["Unexpected error!"]};var o=v(t),l=v(r.data),c=l.non_field_errors,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(l,a),f=(0,n.GI)(c)?c:[];return Object.keys(s).forEach((function(e){if(!(e in o)){var t=l[e];(0,n.GI)(t)&&f.push.apply(f,function(e){if(Array.isArray(e))return u(e)}(r=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var r})),{nonFieldErrors:f.map(i),fieldErrors:Object.keys(l).filter((function(e){return e in o})).reduce((function(e,t){var r=l[t];return(0,n.GI)(r)?d(d({},e),{},p({},t,r.map(i))):e}),{})}}(e.response,r),l=o.fieldErrors,c=o.nonFieldErrors;null!=c&&c.length&&t.setSubmitError(c[0]),l&&Object.keys(l).forEach((function(e){var r=l[e];r.length>0&&t.setError(e,{message:r[0]})}))},b=function(e,t){return function(){var r,n=(r=l().mark((function r(n){return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.setSubmitError(void 0),r.prev=1,r.next=4,t(n);case 4:r.next=9;break;case 6:r.prev=6,r.t0=r.catch(1),h(r.t0,e,n);case 9:case"end":return r.stop()}}),r,null,[[1,6]])})),function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){c(i,n,o,a,l,"next",e)}function l(e){c(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}()},y=function(e,t){var r=new FormData;return(0,n.Zt)(e).forEach((function(t){var o=e[t];(0,n.kJ)(o)?o.forEach((function(e,o){(0,n.ub)(e)||(0,n.HD)(e)?r.append("".concat(t,"[").concat(o,"]"),e):(0,n.jn)(e)||(0,n.hj)(e)?r.append("".concat(t,"[").concat(o,"]"),e.toString()):"object"===f(e)&&null!==e?r.append("".concat(t,"[").concat(o,"]"),JSON.stringify(e)):r.append("".concat(t,"[").concat(o,"]"),e)})):(0,n.ub)(o)||(0,n.HD)(o)?r.append(String(t),o):(0,n.jn)(o)?r.append(String(t),String(o)):(0,n.hj)(o)?r.append(String(t),"".concat(o)):"object"===f(o)&&null!==o?r.append(String(t),JSON.stringify(o)):r.append(String(t),o)})),r.append("_method",t.toUpperCase()),r},m=function(e){var t={};for(var r in e){var o=e[r];(0,n.$K)(o)?(0,n.jn)(o)?t[r]=!0===o?"true":"false":t[r]=o:t[r]="null"}return t}},6216:(e,t,r)=>{"use strict";r.d(t,{Rv:()=>o,fp:()=>i,pj:()=>n});var n=function(e,t){localStorage.setItem(e,t)},o=function(e){localStorage.removeItem(e)},i=function(e){return"undefined"!=typeof window&&localStorage.getItem(e)||null}},1921:(e,t,r)=>{"use strict";r.d(t,{CN:()=>a,M6:()=>u,iZ:()=>c});var n=r(3106),o=r(824),i=r(917),a=function(){return(0,i.iv)("@media (prefers-color-scheme: dark){:root{color-scheme:light;}}*,*::before,*::after{box-sizing:border-box;}html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0;padding:0;font-family:",o.I8.sansSerif,";background-color:#fff;&.contentpane{padding:0;}}#system-message-container{display:none;}main{display:block;}p{margin-top:0;margin-bottom:1rem;}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;}address{margin-bottom:1rem;font-style:normal;line-height:inherit;}ol,ul{padding-left:2rem;}ol,ul,dl{margin-top:0;margin-bottom:1rem;}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}dt{font-weight:700;}dd{margin-bottom:0.5rem;margin-left:0;}blockquote{margin:0 0 1rem;}b,strong{font-weight:bolder;}small,.small{font-size:0.875em;}mark,.mark{padding:0.1875em;background-color:var(--highlight-bg);}sub,sup{position:relative;font-size:0.75em;line-height:0;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}a{color:var(--link-color);text-decoration:none;}a:hover{color:var(--link-hover-color);}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none;}pre,code,kbd,samp{font-family:var(--font-monospace);font-size:1em;}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:0.875em;}pre code{font-size:inherit;color:inherit;word-break:normal;}code{font-size:0.875em;color:var(--code-color);word-wrap:break-word;}a>code{color:inherit;}kbd{padding:0.1875rem 0.375rem;font-size:0.875em;color:var(--body-bg);background-color:var(--body-color);border-radius:0.2rem;}kbd kbd{padding:0;font-size:1em;}figure{margin:0 0 1rem;}img,svg{vertical-align:middle;}table{caption-side:bottom;border-collapse:collapse;}caption{padding-top:0.75rem;padding-bottom:0.75rem;color:#666e76;text-align:left;}th{text-align:inherit;text-align:-webkit-match-parent;}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0;}label{display:inline-block;}button{border-radius:0;}button:focus:not(:focus-visible){outline:0;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button,select{text-transform:none;}h1{font-size:2em;margin:0.67em 0;}ol,ul{",c.ulReset,";}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;}a[target='_blank']::before{content:''!important;}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button,[type='button'],[type='reset'],[type='submit']{-webkit-appearance:button;appearance:button;}button::-moz-focus-inner,[type='button']::-moz-focus-inner,[type='reset']::-moz-focus-inner,[type='submit']::-moz-focus-inner{border-style:none;padding:0;}button:-moz-focusring,[type='button']:-moz-focusring,[type='reset']:-moz-focusring,[type='submit']:-moz-focusring{outline:1px dotted ",o.qo.stroke.default,";}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type='checkbox'],[type='radio']{box-sizing:border-box;padding:0;}[type='number']::-webkit-inner-spin-button,[type='number']::-webkit-outer-spin-button{height:auto;}[type='search']{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px;}[type='search']::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}:is(h1, h2, h3, h4, h5, h6, p){padding:0;margin:0;};label:createGlobalCss;")},l={name:"13hngts-flexCenter",styles:"flex-direction:column;label:flexCenter;"},c={centeredFlex:{name:"4l3qjc-centeredFlex",styles:"display:flex;justify-content:center;align-items:center;width:100%;height:100%;label:centeredFlex;"},flexCenter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row";return(0,i.iv)("display:flex;justify-content:center;align-items:center;flex-direction:row;","column"===e&&l,";;label:flexCenter;")},ulReset:{name:"1o0hw1z-ulReset",styles:"list-style:none;padding:0;margin:0;label:ulReset;"},resetButton:(0,i.iv)("background:none;border:none;outline:none;padding:0;margin:0;text-align:inherit;font-family:",o.I8.sansSerif,";cursor:pointer;;label:resetButton;"),cardInnerSection:(0,i.iv)("display:flex;flex-direction:column;gap:",o.W0[8],";padding:",o.W0[16]," ",o.W0[12],";;label:cardInnerSection;"),fieldGroups:function(e){return(0,i.iv)("display:flex;flex-direction:column;gap:",o.W0[e],";;label:fieldGroups;")},addAnotherOptionButton:(0,i.iv)("background:none;border:none;outline:none;padding:0;margin:0;text-align:inherit;font-family:",o.I8.sansSerif,";display:flex;gap:",o.W0[8],";align-items:end;color:",o.qo.action.primary.default,";:hover{text-decoration:underline;};label:addAnotherOptionButton;"),titleAliasWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",o.W0[12],";;label:titleAliasWrapper;"),inlineSwitch:{name:"p97bve-inlineSwitch",styles:"display:flex;justify-content:space-between;align-items:center;label:inlineSwitch;"},overflowYAuto:(0,i.iv)("overflow-y:auto;::-webkit-scrollbar{background-color:",o.qo.base.white,";width:6px;}::-webkit-scrollbar-thumb{background-color:",o.qo.base.secondary,";border-radius:",o.E0[6],";}scrollbar-width:6px;;label:overflowYAuto;"),textEllipsis:{name:"q6j1eh-textEllipsis",styles:"text-overflow:ellipsis;overflow:hidden;white-space:nowrap;label:textEllipsis;"},hideScrollbar:{name:"1ez62xl-hideScrollbar",styles:"scrollbar-width:none;&::-webkit-scrollbar{display:none;}&::-ms-scrollbar{display:none;};label:hideScrollbar;"},textCenter:{name:"lfnssf-textCenter",styles:"text-align:center;label:textCenter;"},generateAiButton:function(e){return(0,i.iv)(!e&&(0,i.iv)("background-image:",o.qo.background.aiBackground,";;label:generateAiButton;"),">span{justify-content:center;};label:generateAiButton;")},generateWithAiButtonWrapper:(0,i.iv)("background:",o.qo.action.aiAction.default,";padding:1px;border-radius:",o.E0[5],";;label:generateWithAiButtonWrapper;"),generateWithAiButton:function(){return(0,i.iv)("display:flex;justify-content:center;align-items:center;color:",o.qo.text.default,";border-radius:5px;background:",o.qo.background.white,";margin:auto;width:100%;position:relative;&:hover,&:active{background-color:",o.qo.background.white,";}&:before{content:'';position:absolute;inset:0;border-radius:",o.E0[5],";background:transparent;transition:background 0.3s ease;}&:hover{&:before{background:",o.qo.action.aiAction.hover,";}};label:generateWithAiButton;")}},u={methodWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",o.W0[20],";background-color:",o.qo.background.active,";padding:",o.W0[24],";border-radius:",o.E0[6],";position:relative;;label:methodWrapper;"),actionButtonWrapper:(0,i.iv)("display:flex;gap:",o.W0[8],";justify-content:end;margin-top:",o.W0[4],";;label:actionButtonWrapper;"),removeButton:(0,i.iv)("position:absolute;top:",o.W0[8],";right:",o.W0[8],";z-index:",o.W5.positive,";width:32px;height:32px;border-radius:",o.E0.circle,";transition:background-color 0.3s ease-in-out,color 0.3s ease-in-out;",c.flexCenter(),";:hover{background-color:",o.qo.base.white,";color:",o.qo.base.error,";};label:removeButton;"),overflowYAuto:(0,i.iv)("overflow-y:auto;::-webkit-scrollbar{background-color:",o.qo.base.white,";width:10px;}::-webkit-scrollbar-thumb{background-color:",o.qo.base.secondary,";border-radius:",o.E0[6],";};label:overflowYAuto;"),controllerWrapper:(0,i.iv)("display:flex;flex-direction:column;gap:",o.W0[20],";background:",o.qo.background.active,";border-radius:",o.E0[6],";padding:",o.W0[24],";position:relative;;label:controllerWrapper;"),footer:(0,i.iv)("margin-top:",o.W0[32],";text-align:right;display:flex;gap:",o.W0[16],";justify-content:end;;label:footer;"),settingsPanelContent:(0,i.iv)("height:calc(100vh - ",n.g3+40+40,"px);padding:",o.W0[16]," ",o.W0[8],";overflow-y:auto;;label:settingsPanelContent;")}},6795:(e,t,r)=>{"use strict";r.d(t,{ME:()=>f,VG:()=>p,ed:()=>v,m5:()=>u});var n=r(3106),o=r(7273),i=r(230);function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=function(e){return"nested_row"===e.type},s=function(e){return!!(0,i.$K)(e)&&((0,i.HD)(e)?"true"===e||"1"===e||"false"!==e&&"0"!==e&&0!==e.length&&e:(0,i.hj)(e)?0!==e&&(1===e||e):e)},d=function(e,t){var r=!0;if(0===e.length)return r;var c,u,d,p=a(e);try{for(p.s();!(c=p.n()).done;){var f=c.value,v=f;if((0,i.Kn)(f)){var h=(0,i.Zt)(f),b=(0,i.zt)(f);v=[h[0],"=",b[0]]}var y=(d=3,function(e){if(Array.isArray(e))return e}(u=v)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],c=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(u,d)||l(u,d)||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.")}()),m=y[0],g=y[1],E=y[2],_=s((0,o.oo)(t[m],n.zu)),O=s(E);"="===g?r&&(r=_===O):"!="===g&&r&&(r=_!==O)}}catch(e){p.e(e)}finally{p.f()}return r},p=function(e,t){var r=(0,i.Zt)(e);if(!t)return e;var o,l,c=a(r);try{for(c.s();!(o=c.n()).done;){var u=e[o.value];if((0,i.$K)(u.depends)){if((0,i.Kn)(u.depends)){var s=(0,i.Zt)(u.depends),p=(0,i.zt)(u.depends);u.depends=[[s[0],"=",p[0]]]}u.visibility=d(u.depends,t)}var f,v=u.fields,h=a((0,i.Zt)(v));try{for(h.s();!(f=h.n()).done;){var b=v[f.value];if(l=b,(0,i.Kn)(l)&&"type"in l&&n.aX.includes(l.type)){var y;if((0,i.Kn)(b.depends)){var m=(0,i.Zt)(b.depends),g=(0,i.zt)(b.depends);b.depends=[[m[0],"=",g[0]]]}b.visibility=d(null!==(y=b.depends)&&void 0!==y?y:[],t)}}}catch(e){h.e(e)}finally{h.f()}}}catch(e){c.e(e)}finally{c.f()}return e},f=function(e){var t,r=a((0,i.Zt)(e));try{for(r.s();!(t=r.n()).done;){var n=t.value,o=e[n];if(o.is_header&&"checkbox"===o.type)return{name:n,field:o}}}catch(e){r.e(e)}finally{r.f()}return null},v=function(e){var t=f(e);return!!(0,i.$K)(t)&&(0,i.Zt)(e).filter((function(e){return e!==t.name})).every((function(t){return!e[t].visibility}))}},230:(e,t,r)=>{"use strict";function n(e){return 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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Xy:()=>N,cW:()=>O,z3:()=>ae,r3:()=>_,VL:()=>V,OV:()=>Q,x9:()=>K,td:()=>le,q7:()=>G,J0:()=>H,Zt:()=>W,zt:()=>U,sZ:()=>z,R5:()=>$,nr:()=>D,kJ:()=>P,IZ:()=>j,jn:()=>x,$K:()=>w,VZ:()=>T,ub:()=>R,Eu:()=>oe,GN:()=>A,SI:()=>M,JW:()=>k,Nn:()=>ce,hj:()=>I,Kn:()=>C,OC:()=>Z,gX:()=>ee,HD:()=>S,GI:()=>B,_V:()=>ue,K2:()=>L,Dv:()=>F,x0:()=>g,ZT:()=>m,Lg:()=>ne,Rx:()=>Y,I6:()=>q,M9:()=>J,MF:()=>re,w6:()=>E,fF:()=>X,K6:()=>ie});var l,c=i(i({},{saveClose:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M31.693 10.667a8.669 8.669 0 0 1-7.377 8.57v8.067a2.572 2.572 0 0 1-2.571 2.571H2.888a2.539 2.539 0 0 1-2.572-2.571V8.446a2.572 2.572 0 0 1 2.572-2.571h12.915a8.667 8.667 0 0 1 15.89 4.792Zm-9.948 16.315V19.24a8.67 8.67 0 0 1-6.042-3.935H6.745c-.75 0-1.286-.536-1.286-1.286V8.446H3.21c-.214 0-.321.161-.321.322v18.214c0 .214.107.322.321.322h18.215c.16 0 .321-.108.321-.322Zm-7.386-16.315c0-.768.1-1.512.287-2.22H8.031v4.285h6.576a8.689 8.689 0 0 1-.248-2.065Zm-2.043 5.922c-2.625 0-4.714 2.143-4.714 4.715a4.687 4.687 0 0 0 4.714 4.714c2.572 0 4.715-2.09 4.715-4.714 0-2.572-2.143-4.715-4.715-4.715Zm0 6.857c-1.232 0-2.143-.91-2.143-2.142 0-1.179.911-2.143 2.143-2.143a2.15 2.15 0 0 1 2.143 2.143c0 1.232-.964 2.142-2.143 2.142ZM28.167 6.51l-4.153 4.154 4.153 4.153a.69.69 0 1 1-.977.977l-4.154-4.153-4.153 4.153a.69.69 0 0 1-.977 0 .69.69 0 0 1 0-.977l4.153-4.153-4.153-4.154a.69.69 0 1 1 .977-.977l4.154 4.153 4.153-4.153a.69.69 0 1 1 .977.977Z" fill="currentColor"/>',viewBox:"0 0 32 32"},backendLink:{icon:'<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M7 12h5.5a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 12.5 2h-7A1.5 1.5 0 0 0 4 3.5V9m7-4-9 9m0 0h3.5M2 14v-3.5" fill="none" />',viewBox:"0 0 16 16"},saveNew:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M12.38 16.657c-2.637 0-4.736 2.153-4.736 4.736a4.71 4.71 0 0 0 4.736 4.737c2.584 0 4.737-2.1 4.737-4.737 0-2.583-2.153-4.736-4.737-4.736Zm0 6.89c-1.238 0-2.153-.916-2.153-2.154 0-1.184.915-2.152 2.153-2.152a2.16 2.16 0 0 1 2.153 2.152c0 1.238-.968 2.153-2.153 2.153Z" fill="#676D98"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.836 10.832a8.71 8.71 0 0 1-7.4 8.61v7.98a2.584 2.584 0 0 1-2.583 2.583H2.908a2.55 2.55 0 0 1-2.584-2.583V8.476c0-1.4 1.13-2.583 2.584-2.583h13.049a8.707 8.707 0 0 1 15.879 4.94ZM21.853 27.1v-7.652a8.711 8.711 0 0 1-6.16-4.082h-8.91c-.754 0-1.292-.538-1.292-1.291V8.476h-2.26c-.216 0-.323.162-.323.323v18.3c0 .215.107.323.323.323h18.3c.16 0 .322-.108.322-.323Zm-7.432-16.267c0-.816.113-1.607.323-2.356h-6.67v4.306h6.566a8.732 8.732 0 0 1-.219-1.95Zm9.432-4.644a.714.714 0 0 0-1.429 0v3.93h-3.929a.715.715 0 0 0 0 1.429h3.93v3.93a.714.714 0 1 0 1.428 0v-3.93h3.93a.714.714 0 0 0 0-1.43h-3.93V6.189Z" fill="currentColor"/>',viewBox:"0 0 32 32"},cornerGear:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.852 0H0v4.817h3.235V3.211h1.617V0Zm12.94 0h-6.47v3.211h6.47V0Zm11.322 0H24.26v3.211h1.618v1.606h3.235V0ZM0 11.24v6.423h3.235V11.24H0Zm29.114 6.423V11.24h-3.235v6.423h3.235Zm-25.88 6.423H0v4.817h4.852v-3.211H3.235v-1.606Zm8.088 4.817h6.47v-3.211h-6.47v3.211Zm19.462-2.213 1.062.6a.337.337 0 0 1 .148.349c-.297.899-.741 1.698-1.359 2.372a.297.297 0 0 1-.37.05l-1.062-.6a4.953 4.953 0 0 1-1.482.875v1.224c0 .125-.1.25-.247.3a6.52 6.52 0 0 1-2.693 0c-.123-.05-.222-.175-.222-.3v-1.224c-.568-.2-1.062-.5-1.507-.874l-1.062.6a.297.297 0 0 1-.37-.05 6.402 6.402 0 0 1-1.334-2.373.289.289 0 0 1 .123-.35l1.062-.6a5.34 5.34 0 0 1 0-1.772l-1.062-.6a.289.289 0 0 1-.123-.35c.271-.898.74-1.697 1.333-2.372a.297.297 0 0 1 .371-.05l1.062.625c.445-.4.939-.7 1.507-.9v-1.223c0-.125.074-.25.222-.275a5.772 5.772 0 0 1 2.693 0 .29.29 0 0 1 .247.275v1.224c.543.2 1.037.5 1.482.874l1.062-.6a.297.297 0 0 1 .37.05 6.403 6.403 0 0 1 1.334 2.373c.05.125 0 .274-.123.35l-1.063.599a4.29 4.29 0 0 1 0 1.773Zm-6.62-.9c0 1.125.864 1.999 1.976 1.999a1.977 1.977 0 0 0 1.976-1.998c0-1.099-.89-1.998-1.976-1.998-1.112 0-1.976.899-1.976 1.998Z" fill="currentColor"/>',viewBox:"0 0 32 32"},expandAll:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M9.68417 2.5549H4.37292L12.2388 10.4544C12.7429 10.925 12.7429 11.7318 12.2388 12.236C11.7682 12.7401 10.9613 12.7401 10.4572 12.236L2.59113 4.36995L2.59136 9.64795C2.59136 10.354 2.01993 10.9254 1.31391 10.9254C0.607895 10.9254 0.036461 10.354 0.036461 9.64795V1.27768C0.036461 0.571668 0.607865 0.000234483 1.31391 0.000234483L9.68417 0C10.3902 0 10.9616 0.571434 10.9616 1.27745C10.9616 1.98347 10.3902 2.5549 9.68417 2.5549ZM29.4102 22.3173C29.4102 21.6113 29.9816 21.0399 30.6877 21.0399L30.6874 21.0399C31.3934 21.0399 31.9648 21.6114 31.9648 22.3174L31.9651 30.7213C31.9651 31.4273 31.3936 31.9987 30.6876 31.9987H22.3173C21.6113 31.9987 21.0399 31.4273 21.0399 30.7213C21.0399 30.0153 21.6113 29.4438 22.3173 29.4438H27.6286L19.7962 21.5778C19.292 21.1072 19.292 20.3003 19.7962 19.7962C20.2668 19.292 21.0737 19.292 21.5778 19.7962L29.4102 27.6286V22.3173ZM10.4209 19.8008L2.5549 27.6332V22.322C2.5549 21.6159 1.98347 21.0445 1.27745 21.0445C0.571434 21.0445 0 21.6159 0 22.322V30.6922C0 31.3983 0.571434 31.9697 1.27745 31.9697H9.64771C10.3538 31.9697 10.9252 31.3982 10.9252 30.6922C10.9252 29.9862 10.3537 29.4148 9.64771 29.4148H4.36996L12.236 21.5487C12.7401 21.0446 12.7401 20.2377 12.236 19.7671C11.7319 19.2963 10.9252 19.2963 10.4209 19.8007L10.4209 19.8008ZM22.3173 0.036461H30.6876L30.6875 0.036521C31.3935 0.036521 31.965 0.607925 31.9985 1.31397L31.9987 9.68423C31.9987 10.3903 31.4273 10.9617 30.7213 10.9617C30.0153 10.9617 29.4438 10.3903 29.4438 9.68423V4.37298L21.5778 12.2054C21.1072 12.7095 20.3003 12.7095 19.7962 12.2054C19.292 11.7348 19.292 10.9279 19.7962 10.4238L27.6286 2.59136H22.3173C21.6113 2.59136 21.0399 2.01993 21.0399 1.31391C21.0399 0.607895 21.6113 0.036461 22.3173 0.036461Z" fill="currentColor" />',viewBox:"0 0 32 32"},collapseAll:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M12.3566 2.8512L12.3566 11.0827L12.3565 11.0826C12.3565 11.7769 11.7938 12.3389 11.0984 12.3719L2.85525 12.3721C2.15995 12.3721 1.59719 11.8101 1.59719 11.1158C1.59719 10.4215 2.15992 9.85955 2.85525 9.85955H8.08587L0.372362 2.12392C-0.124121 1.66111 -0.124121 0.867614 0.372362 0.371834C0.835835 -0.123945 1.63045 -0.123945 2.12694 0.371835L9.84044 8.07441V2.8512C9.84044 2.15689 10.4032 1.59493 11.0985 1.59493C11.7938 1.59493 12.3566 2.15686 12.3566 2.8512ZM12.3566 29.1507L12.3566 20.9192L12.3565 20.9194C12.3565 20.225 11.7938 19.6631 11.0984 19.6301L2.85525 19.6299C2.15995 19.6299 1.59719 20.1918 1.59719 20.8861C1.59719 21.5804 2.15992 22.1424 2.85525 22.1424H8.08587L0.372362 29.878C-0.124121 30.3408 -0.124121 31.1343 0.372362 31.6301C0.835835 32.1259 1.63045 32.1259 2.12694 31.6301L9.84044 23.9275V29.1507C9.84044 29.8451 10.4032 30.407 11.0985 30.407C11.7938 30.407 12.3566 29.8451 12.3566 29.1507ZM19.6423 11.0827V2.8512C19.6423 2.15686 20.205 1.59493 20.9003 1.59493C21.5956 1.59493 22.1584 2.15689 22.1584 2.8512V8.07441L29.8719 0.371835C30.3684 -0.123945 31.163 -0.123945 31.6265 0.371834C32.1229 0.867614 32.1229 1.66111 31.6265 2.12392L23.913 9.85955H29.1436C29.8389 9.85955 30.4016 10.4215 30.4016 11.1158C30.4016 11.8101 29.8389 12.3721 29.1436 12.3721L20.9004 12.3719C20.2051 12.3389 19.6423 11.7769 19.6423 11.0826L19.6423 11.0827ZM19.6423 29.1507V20.9192L19.6423 20.9194C19.6423 20.225 20.2051 19.6631 20.9004 19.6301L29.1436 19.6299C29.8389 19.6299 30.4016 20.1918 30.4016 20.8861C30.4016 21.5804 29.8389 22.1424 29.1436 22.1424H23.913L31.6265 29.878C32.1229 30.3408 32.1229 31.1343 31.6265 31.6301C31.163 32.1259 30.3684 32.1259 29.8719 31.6301L22.1584 23.9275V29.1507C22.1584 29.8451 21.5956 30.407 20.9003 30.407C20.205 30.407 19.6423 29.8451 19.6423 29.1507Z" fill="currentColor" />',viewBox:"0 0 32 32"},roundedCorner:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M0 4.85393C0 2.17318 2.17318 0 4.85393 0H27.1461C29.8268 0 32 2.17318 32 4.85393V27.1461C32 29.8268 29.8268 32 27.1461 32H4.85393C2.17318 32 0 29.8268 0 27.1461V4.85393ZM4.85393 3.23595C3.96035 3.23595 3.23595 3.96035 3.23595 4.85393V27.1461C3.23595 28.0397 3.96035 28.764 4.85393 28.764H27.1461C28.0397 28.764 28.764 28.0397 28.764 27.1461V4.85393C28.764 3.96035 28.0397 3.23595 27.1461 3.23595H4.85393Z" fill="#4E5487" fill="currentColor"/>',viewBox:"0 0 32 32"},ellipsisDoubleX:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M5.6 14.2a2.6 2.6 0 100-5.2 2.6 2.6 0 000 5.2zm0 8.667a2.6 2.6 0 100-5.2 2.6 2.6 0 000 5.2zm13-11.267a2.6 2.6 0 11-5.2 0 2.6 2.6 0 015.2 0zM16 22.867a2.6 2.6 0 100-5.2 2.6 2.6 0 000 5.2zM29 11.6a2.6 2.6 0 11-5.2 0 2.6 2.6 0 015.2 0zm-2.6 11.267a2.6 2.6 0 100-5.2 2.6 2.6 0 000 5.2z" fill="currentColor"/>',viewBox:"0 0 32 32"},ellipsisDoubleY:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M17.8 5.6a2.6 2.6 0 105.2 0 2.6 2.6 0 00-5.2 0zm-8.667 0a2.6 2.6 0 105.2 0 2.6 2.6 0 00-5.2 0zm11.267 13a2.6 2.6 0 110-5.2 2.6 2.6 0 010 5.2zM9.133 16a2.6 2.6 0 105.2 0 2.6 2.6 0 00-5.2 0zM20.4 29a2.6 2.6 0 110-5.2 2.6 2.6 0 010 5.2zM9.133 26.4a2.6 2.6 0 105.2 0 2.6 2.6 0 00-5.2 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},ellipsisX:{icon:'<path d="M19.484 16.484C19.484 14.597 17.887 13 16 13c-1.935 0-3.484 1.597-3.484 3.484A3.47 3.47 0 0016 19.968c1.887 0 3.484-1.549 3.484-3.484zM24.516 13c-1.935 0-3.484 1.597-3.484 3.484a3.47 3.47 0 003.484 3.484c1.887 0 3.484-1.549 3.484-3.484C28 14.597 26.403 13 24.516 13zM7.484 13C5.548 13 4 14.597 4 16.484a3.47 3.47 0 003.484 3.484c1.887 0 3.484-1.549 3.484-3.484C10.968 14.597 9.37 13 7.484 13z" fill="currentColor"/>',viewBox:"0 0 32 32"},ellipsisY:{icon:'<path d="M16.516 19.484C18.403 19.484 20 17.887 20 16c0-1.935-1.597-3.484-3.484-3.484A3.47 3.47 0 0013.032 16c0 1.887 1.549 3.484 3.484 3.484zM20 24.516c0-1.935-1.597-3.484-3.484-3.484a3.47 3.47 0 00-3.484 3.484c0 1.887 1.549 3.484 3.484 3.484C18.403 28 20 26.403 20 24.516zm0-17.032C20 5.548 18.403 4 16.516 4a3.47 3.47 0 00-3.484 3.484c0 1.887 1.549 3.484 3.484 3.484C18.403 10.968 20 9.37 20 7.484z" fill="currentColor"/>',viewBox:"0 0 32 32"},angleLeft:{icon:'<path d="M8.91 16.007c0 .345.133.69.387.926l10.615 10.694c.227.235.522.373.857.373.696 0 1.231-.539 1.231-1.257 0-.346-.134-.664-.348-.898l-9.745-9.838 9.745-9.852c.214-.22.348-.538.348-.898C22 4.54 21.465 4 20.768 4c-.334 0-.629.138-.87.373l-10.6 10.694c-.255.263-.389.58-.389.94z" fill="currentColor"/>',viewBox:"0 0 32 32"},angleLeftBold:{icon:'<path d="M4.63832 0.15601C4.68859 0.105907 4.74845 0.0664547 4.81432 0.0400107C4.88314 0.0131341 4.95643 -0.000439239 5.03031 1.08367e-05C5.0989 0.000663456 5.16675 0.0142335 5.23031 0.0400107C5.29642 0.0659993 5.35637 0.10551 5.40631 0.15601L5.91431 0.664009C5.9652 0.714884 6.00653 0.7745 6.03631 0.840008C6.06713 0.907479 6.08543 0.979991 6.09031 1.05401C6.0907 1.12737 6.07922 1.20031 6.05631 1.27001C6.0321 1.33606 5.99389 1.3961 5.94431 1.44601L2.38232 4.99999L5.93831 8.55398C5.99267 8.60187 6.03454 8.66228 6.06031 8.72998C6.08322 8.79968 6.0947 8.87262 6.09431 8.94598C6.08943 9.02 6.07113 9.09251 6.04031 9.15998C6.01053 9.22549 5.9692 9.2851 5.91831 9.33598L5.41031 9.84398C5.36036 9.89448 5.30042 9.93399 5.23431 9.95998C5.16624 9.98703 5.09356 10.0006 5.02031 9.99998C4.95175 9.99909 4.88394 9.98553 4.82032 9.95998C4.75445 9.93353 4.69459 9.89408 4.64432 9.84398L0.18633 5.39999C0.125378 5.35376 0.0766339 5.29334 0.0443302 5.22399C0.0125869 5.15372 -0.00247217 5.07705 0.000330366 4.99999C-0.000619339 4.92589 0.0158206 4.85259 0.0483302 4.786C0.0824329 4.7189 0.12931 4.65912 0.18633 4.61L4.63832 0.15601Z" fill="#3366FF"/>',viewBox:"0 0 7 10"},angleRight:{icon:'<path d="M22.09 15.993c0-.345-.133-.69-.387-.926L11.088 4.373A1.176 1.176 0 0010.232 4C9.535 4 9 4.539 9 5.257c0 .346.134.664.348.898l9.745 9.838-9.745 9.852a1.284 1.284 0 00-.348.898C9 27.46 9.535 28 10.232 28c.334 0 .629-.138.87-.373l10.6-10.694c.255-.263.389-.58.389-.94z" fill="currentColor"/>',viewBox:"0 0 32 32"},angleUp:{icon:'<path d="M15.993 8.91c-.345 0-.69.133-.926.387L4.373 19.912a1.176 1.176 0 00-.373.857C4 21.465 4.539 22 5.257 22c.346 0 .664-.134.898-.348l9.838-9.745 9.852 9.745c.22.214.538.348.898.348.718 0 1.257-.535 1.257-1.232 0-.334-.138-.629-.373-.87l-10.694-10.6a1.317 1.317 0 00-.94-.389z" fill="currentColor"/>',viewBox:"0 0 32 32"},angleDown:{icon:'<path d="M16.007 22.09c.345 0 .69-.133.926-.387l10.694-10.615c.235-.227.373-.522.373-.856C28 9.535 27.461 9 26.743 9c-.346 0-.664.134-.898.348l-9.838 9.745-9.852-9.745A1.284 1.284 0 005.257 9C4.54 9 4 9.535 4 10.232c0 .334.138.629.373.87l10.694 10.6c.263.255.58.389.94.389z" fill="currentColor"/>',viewBox:"0 0 32 32"},times:{icon:'<path d="M18.565 16L29.468 5.097c.71-.71.71-1.856 0-2.565a1.812 1.812 0 00-2.565 0L16 13.435 5.097 2.532a1.812 1.812 0 00-2.565 0c-.71.71-.71 1.856 0 2.565L13.435 16 2.532 26.903a1.812 1.812 0 001.283 3.096c.464 0 .928-.177 1.282-.531L16 18.565l10.903 10.903a1.81 1.81 0 002.565 0c.71-.71.71-1.856 0-2.565L18.565 16z" fill="currentColor"/>',viewBox:"0 0 32 32"},timesAlt:{icon:'<path d="M20.17 16l6.254-6.254a1.966 1.966 0 000-2.78l-1.39-1.39a1.966 1.966 0 00-2.78 0L16 11.83 9.746 5.576a1.966 1.966 0 00-2.78 0l-1.39 1.39a1.966 1.966 0 000 2.78L11.83 16l-6.254 6.254a1.966 1.966 0 000 2.78l1.39 1.39a1.966 1.966 0 002.78 0L16 20.17l6.254 6.254a1.966 1.966 0 002.78 0l1.39-1.39a1.966 1.966 0 000-2.78L20.17 16z" fill="currentColor"/>',viewBox:"0 0 32 32"},check:{icon:'<path d="M11.19 26.568L1.44 16.98a1.458 1.458 0 010-2.086l2.12-2.087a1.518 1.518 0 012.122 0l6.568 6.46L26.318 5.431a1.518 1.518 0 012.121 0l2.122 2.086c.585.576.585 1.51 0 2.086L13.31 26.568a1.518 1.518 0 01-2.122 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},checkAlt:{icon:'<path d="M12.495 30.407c.898 0 1.592-.372 2.083-1.1L30.492 4.521c.356-.558.508-1.032.508-1.49C31 1.83 30.154 1 28.934 1c-.829 0-1.337.305-1.845 1.1L12.411 25.38l-7.534-9.668c-.508-.66-1.033-.931-1.778-.931C1.88 14.781 1 15.645 1 16.83c0 .524.186 1.032.626 1.557l8.77 10.937c.593.745 1.22 1.083 2.1 1.083z" fill="currentColor"/>',viewBox:"0 0 32 32"},checkCircle:{icon:'<path d="M16 1C7.714 1 1 7.774 1 16c0 8.286 6.714 15 15 15 8.226 0 15-6.714 15-15 0-8.226-6.774-15-15-15zm0 2.903c6.653 0 12.097 5.444 12.097 12.097 0 6.714-5.444 12.097-12.097 12.097A12.055 12.055 0 013.903 16C3.903 9.347 9.286 3.903 16 3.903zm8.468 7.924l-1.391-1.392c-.242-.302-.726-.302-1.029 0l-8.528 8.468-3.629-3.629c-.302-.302-.726-.302-1.028 0l-1.391 1.33c-.242.303-.242.787 0 1.03l5.504 5.564c.302.302.726.302 1.028 0l10.464-10.343c.242-.303.242-.787 0-1.028z" fill="currentColor"/>',viewBox:"0 0 32 32"},plus:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M16 2a2.333 2.333 0 00-2.333 2.333v9.334H4.333a2.333 2.333 0 000 4.666h9.334v9.334a2.333 2.333 0 004.667 0v-9.334h9.333a2.333 2.333 0 000-4.666h-9.334V4.333A2.333 2.333 0 0016 2z" fill="currentColor"/>',viewBox:"0 0 32 32"},plusCircle:{icon:'<path d="M16.008 32C24.768 32 32 24.768 32 16.008 32 7.232 24.752 0 15.992 0 7.232 0 0 7.232 0 16.008 0 24.768 7.232 32 16.008 32zm-.032-8.37c-.976 0-1.593-.715-1.593-1.706V17.6h-4.55C8.824 17.6 8.11 17 8.11 16.024c0-.991.682-1.609 1.722-1.609h4.55v-4.55c0-.991.619-1.707 1.594-1.707.975 0 1.625.7 1.625 1.707v4.55h4.567c1.04 0 1.706.618 1.706 1.61 0 .975-.699 1.576-1.706 1.576H17.6v4.323c0 1.024-.65 1.706-1.625 1.706z" fill="currentColor"/>',viewBox:"0 0 32 32"},plusSquare:{icon:'<path d="M24.571 14.929c0-.402-.401-.804-.803-.804h-5.893V8.232c0-.402-.402-.803-.804-.803H14.93a.814.814 0 00-.804.803v5.893H8.232a.814.814 0 00-.803.804v2.142c0 .47.334.804.803.804h5.893v5.893c0 .469.335.803.804.803h2.142a.814.814 0 00.804-.803v-5.893h5.893a.814.814 0 00.803-.804V14.93zM31 4.214C31 2.474 29.527 1 27.786 1H4.214A3.215 3.215 0 001 4.214v23.572C1 29.594 2.406 31 4.214 31h23.572A3.215 3.215 0 0031 27.786V4.214zm-3.214 23.17c0 .268-.201.402-.402.402H4.616c-.268 0-.402-.134-.402-.402V4.616c0-.2.134-.402.402-.402h22.768c.2 0 .402.201.402.402v22.768z" fill="currentColor"/>',viewBox:"0 0 32 32"},minus:{icon:'<rect x="30" y="14" width="4.667" height="28" rx="2" transform="rotate(90 30 14)" fill="currentColor"/>',viewBox:"0 0 32 32"},minusCircle:{icon:'<path d="M16.008 32C24.768 32 32 24.768 32 16.008 32 7.232 24.752 0 15.992 0 7.232 0 0 7.232 0 16.008 0 24.768 7.232 32 16.008 32zm-.032-14.4H9.832c-1.007 0-1.722-.6-1.722-1.576 0-.991.682-1.609 1.722-1.609h12.336c1.04 0 1.706.618 1.706 1.61 0 .975-.699 1.576-1.706 1.576h-5.239-.953z" fill="currentColor"/>',viewBox:"0 0 32 32"},playCircle:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M16 3.097C8.874 3.097 3.097 8.874 3.097 16S8.874 28.903 16 28.903 28.903 23.126 28.903 16 23.126 3.097 16 3.097zM0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z" fill="currentColor"/><path d="M11.871 10.655c0-.815.9-1.309 1.586-.871l8.4 5.345a1.032 1.032 0 010 1.742l-8.4 5.345a1.032 1.032 0 01-1.586-.87V10.654z" fill="currentColor"/>',viewBox:"0 0 32 32"},info:{icon:'<path d="M32 16c0-8.774-7.226-16-16-16C7.161 0 0 7.226 0 16c0 8.839 7.161 16 16 16 8.774 0 16-7.161 16-16zm-16 3.226c1.613 0 2.968 1.355 2.968 2.968A2.96 2.96 0 0116 25.16c-1.677 0-2.968-1.29-2.968-2.968A2.96 2.96 0 0116 19.227zM13.161 8.58c-.064-.452.323-.84.774-.84H18c.452 0 .839.388.774.84l-.451 8.774c-.065.451-.387.71-.775.71h-3.16c-.388 0-.71-.259-.775-.71L13.16 8.58z" fill="currentColor"/>',viewBox:"0 0 32 32"},undo:{icon:'<path d="M16.697 10c-3.962 0-7.55 1.459-10.315 3.83l-2.826-2.784C2.615 10.118 1 10.766 1 12.077v8.236c0 .81.673 1.473 1.495 1.473h8.357c1.33 0 2.003-1.591 1.061-2.52l-2.855-2.813c2.078-1.71 4.724-2.77 7.654-2.77 4.724 0 8.805 2.71 10.748 6.63a1.848 1.848 0 002.243.942c1.061-.338 1.6-1.532 1.121-2.534A15.77 15.77 0 0016.697 10z" fill="currentColor"/>',viewBox:"0 0 32 32"},redo:{icon:'<path d="M15.303 10c3.962 0 7.55 1.459 10.315 3.83l2.826-2.784c.942-.928 2.556-.28 2.556 1.031v8.236c0 .81-.673 1.473-1.495 1.473h-8.357c-1.33 0-2.003-1.591-1.061-2.52l2.855-2.813c-2.078-1.71-4.724-2.77-7.654-2.77-4.724 0-8.805 2.71-10.748 6.63a1.848 1.848 0 01-2.243.942c-1.061-.338-1.6-1.532-1.121-2.534A15.77 15.77 0 0115.303 10z" fill="currentColor"/>',viewBox:"0 0 32 32"},lock:{icon:'<path d="M27 14h-1.5V9.5C25.5 4.312 21.187 0 16 0c-5.25 0-9.5 4.313-9.5 9.5V14H5a3 3 0 00-3 3v12c0 1.688 1.313 3 3 3h22a3 3 0 003-3V17c0-1.625-1.375-3-3-3zm-6.5 0h-9V9.5c0-2.438 2-4.5 4.5-4.5 2.438 0 4.5 2.063 4.5 4.5V14z" fill="currentColor"/>',viewBox:"0 0 32 32"},unlock:{icon:'<path d="M23.5 2c-4.667.056-8.389 3.889-8.389 8.556v3.888H2.667A2.667 2.667 0 000 17.111v10.667c0 1.5 1.167 2.666 2.667 2.666h19.555a2.667 2.667 0 002.667-2.666V17.11c0-1.444-1.222-2.667-2.667-2.667h-2.666V10.5c0-2.167 1.722-4 3.944-4.056 2.222 0 4.056 1.834 4.056 4v4.445c0 .778.555 1.333 1.333 1.333h1.778c.722 0 1.333-.555 1.333-1.333v-4.445C32 5.778 28.167 2 23.5 2z" fill="currentColor"/>',viewBox:"0 0 32 32"},arrowsX:{icon:'<path d="M31.564 16.948l-5.38 5.38c-.945.944-2.563.275-2.563-1.062v-2.881H8.384v2.881c0 1.337-1.619 2.006-2.562 1.063L.44 16.947a1.494 1.494 0 010-2.12l5.38-5.38c.944-.944 2.563-.275 2.563 1.062v2.881h15.243v-2.887c0-1.337 1.619-2.006 2.562-1.062l5.375 5.38a1.513 1.513 0 010 2.126z" fill="currentColor"/>',viewBox:"0 0 32 32"},arrowsY:{icon:'<path d="M21.483 23.594h-2.916V8.406h2.916c1.33 0 2.028-1.625 1.077-2.562L17.046.469a1.401 1.401 0 00-2.092 0L9.44 5.844c-.951.937-.254 2.562 1.077 2.562h2.98v15.188h-2.98c-1.33 0-2.028 1.625-1.077 2.562l5.514 5.375c.57.625 1.521.625 2.092 0l5.514-5.375c.951-.937.254-2.562-1.077-2.562z" fill="currentColor"/>',viewBox:"0 0 32 32"},download:{icon:'<path d="M13.5 0c-.875 0-1.5.688-1.5 1.5V12H6.5c-1.125 0-1.688 1.375-.875 2.188l9.5 9.5c.438.437 1.25.437 1.688 0l9.5-9.5c.812-.813.25-2.188-.875-2.188H20V1.5c0-.813-.688-1.5-1.5-1.5h-5zM32 23.5c0-.813-.688-1.5-1.5-1.5h-9.188l-3.062 3.063a3.136 3.136 0 01-4.563 0L10.626 22H1.5c-.875 0-1.5.688-1.5 1.5v7c0 .875.625 1.5 1.5 1.5h29c.813 0 1.5-.625 1.5-1.5v-7zM24.25 29c0 .688-.563 1.25-1.25 1.25-.688 0-1.25-.563-1.25-1.25 0-.688.563-1.25 1.25-1.25.688 0 1.25.563 1.25 1.25zm4 0c0 .688-.563 1.25-1.25 1.25-.688 0-1.25-.563-1.25-1.25 0-.688.563-1.25 1.25-1.25.688 0 1.25.563 1.25 1.25z" fill="currentColor"/>',viewBox:"0 0 32 32"},upload:{icon:'<path d="M18.5 23.988c.813 0 1.5-.626 1.5-1.502V11.971h5.438a1.234 1.234 0 00.875-2.128l-9.5-9.514c-.438-.439-1.25-.439-1.688 0l-9.5 9.514A1.234 1.234 0 006.5 11.97H12v10.515c0 .876.625 1.502 1.5 1.502h5zm13.5-.5c0-.814-.688-1.503-1.5-1.503H22v.501c0 1.94-1.625 3.505-3.5 3.505h-5a3.497 3.497 0 01-3.5-3.505v-.5H1.5c-.875 0-1.5.688-1.5 1.502v7.01C0 31.374.625 32 1.5 32h29c.813 0 1.5-.626 1.5-1.502v-7.01zm-7.75 5.508c0 .688-.563 1.251-1.25 1.251-.688 0-1.25-.563-1.25-1.251 0-.689.563-1.252 1.25-1.252.688 0 1.25.563 1.25 1.252zm4 0c0 .688-.563 1.251-1.25 1.251-.688 0-1.25-.563-1.25-1.251 0-.689.563-1.252 1.25-1.252.688 0 1.25.563 1.25 1.252z" fill="currentColor"/>',viewBox:"0 0 32 32"},cloudUpload:{icon:'<path d="M16.645 12.951a.868.868 0 00-1.228 0l-5.258 5.258a1.247 1.247 0 101.764 1.765l2.86-2.86V28.26a1.247 1.247 0 102.496 0V17.113l2.86 2.86a1.248 1.248 0 101.765-1.764l-5.259-5.258z" fill="currentColor"/><path d="M26.008 11.828C25.86 6.384 21.386 2 15.906 2c-2.517 0-4.928.931-6.79 2.622a10.087 10.087 0 00-3.114 5.47 7.589 7.589 0 00-3.973 2.266A7.586 7.586 0 000 17.532c0 4.196 3.414 7.61 7.61 7.61h.063a1.248 1.248 0 100-2.495h-.07a5.12 5.12 0 01-5.108-5.115c0-2.648 2.065-4.887 4.7-5.098.6-.048 1.08-.518 1.142-1.116a7.584 7.584 0 017.57-6.823c4.196 0 7.61 3.414 7.61 7.61v.374c0 1 .81 1.81 1.809 1.81a4.184 4.184 0 014.179 4.179 4.184 4.184 0 01-4.18 4.18l-.935-.001a1.247 1.247 0 100 2.495h.935A6.682 6.682 0 0032 18.468c0-3.45-2.63-6.297-5.992-6.64z" fill="currentColor"/>',viewBox:"0 0 32 32"},emptyBox:{icon:'<path d="M20.943 15.97c-.797 0-1.547-.401-1.923-1.027l-3-4.78-3.047 4.78c-.375.67-1.125 1.072-1.922 1.072-.235 0-.422-.044-.61-.089L4.02 14.14v7.952c0 .67.469 1.25 1.125 1.385l10.126 2.457c.469.09.985.09 1.453 0l10.127-2.457c.703-.134 1.172-.715 1.172-1.385v-7.952l-6.423 1.787a3.25 3.25 0 01-.656.045zm9.985-5.003L28.49 6.366c-.14-.268-.422-.402-.75-.358L16.02 7.393l4.266 6.835a.846.846 0 00.891.313l9.282-2.546a.733.733 0 00.47-1.028zM3.503 6.366l-2.438 4.601c-.187.402.047.894.47 1.028l9.281 2.546a.801.801 0 00.891-.357l4.313-6.79L4.253 6.007c-.328-.044-.61.09-.75.358z" fill="currentColor"/>',viewBox:"0 0 32 32"},star:{icon:'<path d="M14.294 1.101l-3.89 8.31-8.797 1.312c-1.556.25-2.154 2.249-1.017 3.436l6.283 6.435-1.496 9.059c-.24 1.624 1.437 2.874 2.813 2.124l7.84-4.31 7.78 4.31c1.376.75 3.052-.5 2.813-2.124l-1.497-9.06 6.284-6.434c1.137-1.187.539-3.187-1.017-3.436L21.655 9.41l-3.95-8.31a1.871 1.871 0 00-3.41 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},pencil:{icon:'<path d="M18.157 5.834L.764 23.228.013 30.36a1.455 1.455 0 001.626 1.627l7.133-.75 17.394-17.394-8.009-8.009zm12.951-1.188L27.354.892c-1.126-1.19-3.065-1.19-4.254 0l-3.504 3.503 8.009 8.009L31.108 8.9c1.19-1.189 1.19-3.128 0-4.254z" fill="currentColor"/>',viewBox:"0 0 32 32"},move:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M13.178 5.793l1.591-1.59v3.182a1.23 1.23 0 002.462 0V4.202l1.591 1.591a1.23 1.23 0 001.74-1.74L16.872.36a1.23 1.23 0 00-.188-.154c-.02-.013-.042-.024-.064-.035a1.171 1.171 0 01-.033-.017 1.24 1.24 0 00-.115-.06 1.227 1.227 0 00-.127-.04l-.036-.011a.571.571 0 00-.067-.02 1.209 1.209 0 00-.482 0c-.023.005-.045.012-.068.02l-.036.011c-.042.01-.085.024-.126.04a1.22 1.22 0 00-.115.06 1.053 1.053 0 01-.034.017c-.021.011-.043.022-.063.035-.067.045-.13.096-.187.154l-3.692 3.692a1.23 1.23 0 001.74 1.74zM16 20.307a4.308 4.308 0 100-8.615 4.308 4.308 0 000 8.615zm-.87 3.438a1.23 1.23 0 012.1.87v3.183l1.592-1.591a1.23 1.23 0 011.74 1.74l-3.69 3.692h-.002c-.057.058-.12.109-.187.154a.576.576 0 01-.062.034l-.016.008a.714.714 0 01-.26.11.929.929 0 00-.035.01.563.563 0 01-.069.02c-.159.033-.323.033-.482 0a.563.563 0 01-.069-.02l-.036-.01a.714.714 0 01-.241-.1 1.055 1.055 0 00-.034-.018c-.02-.01-.042-.021-.061-.034a1.232 1.232 0 01-.188-.154l-3.692-3.692a1.23 1.23 0 011.74-1.74l1.591 1.59v-3.182c0-.326.13-.64.36-.87zm16.814-8.092a1.248 1.248 0 00-.039-.124c-.018-.04-.039-.08-.062-.118a1.204 1.204 0 01-.017-.034c-.01-.02-.021-.04-.034-.06a1.233 1.233 0 00-.153-.188h-.001l-3.692-3.692a1.23 1.23 0 00-1.74 1.74l1.591 1.592h-3.182a1.23 1.23 0 000 2.461h3.182l-1.59 1.592a1.232 1.232 0 00.87 2.1 1.23 1.23 0 00.87-.36l3.691-3.691v-.001c.058-.058.11-.12.154-.188.013-.019.023-.04.034-.06a1.18 1.18 0 01.017-.034 1.25 1.25 0 00.062-.118 1.25 1.25 0 00.039-.124l.011-.036a.587.587 0 00.02-.07 1.207 1.207 0 000-.481.587.587 0 00-.02-.07l-.011-.036zm-31.85.818a1.224 1.224 0 01-.038-.125 1.062 1.062 0 00-.012-.036c-.007-.023-.015-.045-.02-.069a1.207 1.207 0 010-.482.593.593 0 01.02-.07l.012-.035c.01-.043.023-.084.038-.125.019-.04.04-.08.062-.117a1.08 1.08 0 00.018-.034c.01-.02.02-.041.033-.06.045-.068.096-.13.154-.188v-.001l3.692-3.691a1.231 1.231 0 011.74 1.74l-1.59 1.591h3.182a1.23 1.23 0 110 2.462H4.202l1.591 1.591a1.23 1.23 0 01-1.74 1.74L.36 16.872a1.232 1.232 0 01-.154-.188.553.553 0 01-.033-.06.963.963 0 00-.018-.034 1.246 1.246 0 01-.062-.118z" fill="currentColor"/>',viewBox:"0 0 32 32"},save:{icon:'<path d="M29.121 8.121L23.88 2.88A3 3 0 0021.757 2H5a3 3 0 00-3 3v22a3 3 0 003 3h22a3 3 0 003-3V10.243a3 3 0 00-.879-2.122zM16 26a4 4 0 110-8 4 4 0 010 8zm6-19.032v6.282a.75.75 0 01-.75.75H6.75a.75.75 0 01-.75-.75v-6.5A.75.75 0 016.75 6h14.282a.75.75 0 01.53.22l.218.217a.749.749 0 01.22.53z" fill="currentColor"/>',viewBox:"0 0 32 32"},saveLine:{icon:'<path d="M29.063 8.125l-5.188-5.188c-.5-.5-1.438-.937-2.125-.937H5a3 3 0 00-3 3v22c0 1.688 1.313 3 3 3h22a3 3 0 003-3V10.25c0-.688-.438-1.625-.938-2.125zM19 5v5h-8V5h8zm7.625 22H5.375c-.25 0-.375-.125-.375-.375V5.375C5 5.187 5.125 5 5.375 5H8v6.5c0 .875.625 1.5 1.5 1.5h11c.813 0 1.5-.625 1.5-1.5V5.25l4.875 4.938c.063.062.125.124.125.25v16.187c0 .25-.188.375-.375.375zM16 14.5c-3.063 0-5.5 2.5-5.5 5.5 0 3.063 2.438 5.5 5.5 5.5 3 0 5.5-2.438 5.5-5.5 0-3-2.5-5.5-5.5-5.5zm0 8c-1.438 0-2.5-1.063-2.5-2.5 0-1.375 1.063-2.5 2.5-2.5 1.375 0 2.5 1.125 2.5 2.5 0 1.438-1.125 2.5-2.5 2.5z" fill="currentColor"/>',viewBox:"0 0 32 32"},social:{icon:'<path d="M11.938 1.875H2.312A1.313 1.313 0 001 3.188v9.624a1.313 1.313 0 001.313 1.313h3.752V9.96H4.343V8h1.722V6.506c0-1.7 1.012-2.638 2.562-2.638.742 0 1.518.132 1.518.132v1.668H9.29c-.843 0-1.105.523-1.105 1.06V8h1.88l-.3 1.96h-1.58v4.165h3.752a1.313 1.313 0 001.313-1.313V3.188a1.313 1.313 0 00-1.313-1.313zM29.56 5.148c.01.125.01.25.01.374 0 3.793-2.887 8.163-8.164 8.163A8.108 8.108 0 0117 12.397c.231.027.453.036.693.036a5.747 5.747 0 003.562-1.226 2.874 2.874 0 01-2.683-1.99c.178.027.356.044.542.044.258 0 .515-.035.755-.097a2.87 2.87 0 01-2.3-2.816v-.036a2.89 2.89 0 001.296.364 2.867 2.867 0 01-1.279-2.39c0-.532.142-1.02.391-1.447a8.156 8.156 0 005.916 3.002 3.24 3.24 0 01-.07-.657c0-1.581 1.279-2.87 2.869-2.87.826 0 1.572.347 2.096.907a5.65 5.65 0 001.821-.693 2.862 2.862 0 01-1.261 1.581A5.752 5.752 0 0031 3.665a6.168 6.168 0 01-1.44 1.483zM3.742 29.25h-2.54v-8.178h2.54v8.178zm-1.271-9.294a1.483 1.483 0 01-1.04-2.525 1.47 1.47 0 012.51 1.04c0 .812-.658 1.485-1.47 1.485zm8.242 9.294v-3.981c0-.95-.02-2.166-1.32-2.166-1.32 0-1.523 1.031-1.523 2.097v4.05H5.333v-8.178h2.436v1.115h.035c.34-.643 1.168-1.32 2.403-1.32 2.57 0 3.043 1.692 3.043 3.89v4.493h-2.537zM30.956 21.15c-.16-.6-.63-1.073-1.226-1.233-1.081-.292-5.418-.292-5.418-.292s-4.336 0-5.417.292a1.743 1.743 0 00-1.226 1.233c-.29 1.089-.29 3.36-.29 3.36s0 2.27.29 3.36c.16.6.63 1.053 1.226 1.213 1.081.292 5.418.292 5.418.292s4.336 0 5.417-.292a1.717 1.717 0 001.226-1.214c.29-1.088.29-3.36.29-3.36s0-2.27-.29-3.358zm-8.062 5.422v-4.124l3.625 2.062-3.625 2.062z" fill="currentColor"/>',viewBox:"0 0 32 32"},share:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M22.571 1.151a6.167 6.167 0 11-1.92 9.533l-7.965 3.982a6.185 6.185 0 010 2.667l7.964 3.982A6.167 6.167 0 1119.31 24l-7.964-3.982a6.166 6.166 0 110-8.034L19.309 8a6.166 6.166 0 013.262-6.85zm3.76 2.511a3.167 3.167 0 10-2.003 6.01 3.167 3.167 0 002.003-6.01zm-18.323 9.47a3.167 3.167 0 101.49 1.451m-1.49-1.451a3.166 3.166 0 011.49 1.451zm17.547 9.04a3.17 3.17 0 00-3.058 1.744 3.167 3.167 0 103.058-1.743z" fill="currentColor"/>',viewBox:"0 0 32 32"},canvas:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.1h2.9V2.9h2.2V0H0v5.1z" fill="currentColor"/><path d="M19.7 0h-7.3v2.9h7.3V0z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M26.9 0v2.9h2.2v2.2H32V0h-5.1z" fill="currentColor"/><path d="M2.9 12.4H0v7.3h2.9v-7.3zM32 12.4h-2.9v7.3H32v-7.3z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.9 26.9H0V32h5.1v-2.9H2.9v-2.2zM29.1 29.1h-2.2V32H32v-5.1h-2.9v2.2z" fill="currentColor"/><path d="M19.7 29.1h-7.3V32h7.3v-2.9z" fill="currentColor"/>',viewBox:"0 0 32 32"},rowsAlt:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M3 28.857h26v-8.571H3v8.571zM1 29.93C1 30.52 1.448 31 2 31h28c.552 0 1-.48 1-1.071V19.214c0-.591-.448-1.071-1-1.071H2c-.552 0-1 .48-1 1.071V29.93zM3 11.714h26V3.143H3v8.571zm-2 1.072c0 .591.448 1.071 1 1.071h28c.552 0 1-.48 1-1.071V2.07C31 1.48 30.552 1 30 1H2c-.552 0-1 .48-1 1.071v10.715z" fill="currentColor"/>',viewBox:"0 0 32 32"},columns:{icon:'<path d="M29 2H3a3 3 0 00-3 3v22c0 1.688 1.313 3 3 3h26a3 3 0 003-3V5c0-1.625-1.375-3-3-3zM14 26H4V10h10v16zm14 0H18V10h10v16z" fill="currentColor"/>',viewBox:"0 0 32 32"},columnsAlt:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M3.143 3v26h8.571V3H3.143zM2.07 1C1.48 1 1 1.448 1 2v28c0 .552.48 1 1.071 1h10.715c.591 0 1.071-.448 1.071-1V2c0-.552-.48-1-1.071-1H2.07zM20.286 3v26h8.571V3h-8.571zm-1.072-2c-.591 0-1.071.448-1.071 1v28c0 .552.48 1 1.071 1H29.93C30.52 31 31 30.552 31 30V2c0-.552-.48-1-1.072-1H19.215z" fill="currentColor"/>',viewBox:"0 0 32 32"},trash:{icon:'<path d="M18.75 26h1.5a.75.75 0 00.75-.75v-13.5a.75.75 0 00-.75-.75h-1.5a.75.75 0 00-.75.75v13.5a.75.75 0 00.75.75zM29 5h-5.15l-2.126-3.544A3 3 0 0019.151 0h-6.302a3 3 0 00-2.572 1.456L8.15 5H3a1 1 0 00-1 1v1a1 1 0 001 1h1v21a3 3 0 003 3h18a3 3 0 003-3V8h1a1 1 0 001-1V6a1 1 0 00-1-1zM12.74 3.182A.375.375 0 0113.062 3h5.876a.375.375 0 01.321.182L20.351 5h-8.702l1.091-1.818zM25 29H7V8h18v21zm-13.25-3h1.5a.75.75 0 00.75-.75v-13.5a.75.75 0 00-.75-.75h-1.5a.75.75 0 00-.75.75v13.5a.75.75 0 00.75.75z" fill="currentColor"/>',viewBox:"0 0 32 32"},ban:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M29 16.5C29 23.404 23.404 29 16.5 29c-2.88 0-5.533-.974-7.647-2.61L26.39 8.852A12.446 12.446 0 0 1 29 16.5ZM6.718 24.282 24.282 6.718A12.447 12.447 0 0 0 16.5 4C9.596 4 4 9.596 4 16.5c0 2.942 1.017 5.647 2.718 7.782ZM32 16.5C32 25.06 25.06 32 16.5 32 7.94 32 1 25.06 1 16.5 1 7.94 7.94 1 16.5 1 25.06 1 32 7.94 32 16.5Z" fill="currentColor"/>',viewBox:"0 0 32 32"},bold:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M7 17.999V4h9a7 7 0 015.704 11.058A7 7 0 0118 27.998h-7V28H7V17.999zm4 6V18h5l.125-.001H18a3 3 0 010 6h-7zm0-10V8h5a3 3 0 01.082 5.999H11z" fill="currentColor"/>',viewBox:"0 0 32 32"},italic:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M23.975 7.975V4h-12v3.975h3.6l-3.225 16.05H8V28h12v-3.975h-3.525l3.15-16.05h4.35z" fill="currentColor"/>',viewBox:"0 0 32 32"},underline:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4 24.55h24V28H4v-3.45zM10.975 12.55c0 2.85 2.175 5.175 5.025 5.175a5.185 5.185 0 005.175-5.175V4h3.45v8.55a8.546 8.546 0 01-8.55 8.55 8.546 8.546 0 01-8.55-8.55V4h3.45v8.55z" fill="currentColor"/>',viewBox:"0 0 32 32"},strikethrough:{icon:'<path d="M24.865 18.224c.273.653.412 1.403.412 2.256 0 2.231-.805 4.043-2.414 5.434C21.255 27.304 19.104 28 16.416 28c-3.136 0-5.507-.66-7.117-1.98-1.61-1.32-2.428-3.308-2.455-5.963h3.636c.056 1.567.567 2.732 1.536 3.495.968.762 2.421 1.144 4.357 1.144 1.575 0 2.825-.318 3.752-.953.927-.636 1.39-1.518 1.39-2.648 0-.805-.3-1.448-.898-1.928-.414-.33-1.113-.645-2.083-.942h6.331zm-8.73-4.448l-.868-.223c-1.714-.437-2.83-.85-3.344-1.239-.516-.388-.774-.992-.774-1.811 0-1.03.436-1.822 1.307-2.373.87-.55 1.919-.825 3.145-.825 1.686 0 2.978.296 3.877.89.898.592 1.376 1.567 1.432 2.922h3.636c-.083-2.075-.846-3.78-2.289-5.115C20.815 4.667 18.743 4 16.04 4c-2.535 0-4.59.65-6.165 1.949-1.574 1.3-2.361 3.065-2.361 5.296 0 .966.198 1.808.585 2.532l8.037-.001zm10.779 1.1H5.086c-.6 0-1.086.494-1.086 1.102 0 .608.486 1.101 1.086 1.101h21.828c.6 0 1.086-.493 1.086-1.101s-.486-1.101-1.086-1.101z" fill="currentColor"/>',viewBox:"0 0 32 32"},ul:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.778 4a1 1 0 011-1h22a1 1 0 011 1v2a1 1 0 01-1 1h-22a1 1 0 01-1-1V4zM7.778 15a1 1 0 011-1h22a1 1 0 011 1v2a1 1 0 01-1 1h-22a1 1 0 01-1-1v-2zM7.778 26a1 1 0 011-1h22a1 1 0 011 1v2a1 1 0 01-1 1h-22a1 1 0 01-1-1v-2zM0 5c0-1.105.893-2 1.995-2h.01C3.107 3 4 3.895 4 5s-.893 2-1.995 2h-.01A1.998 1.998 0 010 5zM0 16c0-1.105.893-2 1.995-2h.01C3.107 14 4 14.895 4 16s-.893 2-1.995 2h-.01A1.998 1.998 0 010 16zM0 27c0-1.105.893-2 1.995-2h.01C3.107 25 4 25.895 4 27s-.893 2-1.995 2h-.01A1.998 1.998 0 010 27z" fill="currentColor"/>',viewBox:"0 0 32 32"},ol:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.778 4a1 1 0 011-1h22a1 1 0 011 1v2a1 1 0 01-1 1h-22a1 1 0 01-1-1V4zM7.778 15a1 1 0 011-1h22a1 1 0 011 1v2a1 1 0 01-1 1h-22a1 1 0 01-1-1v-2zM7.778 26a1 1 0 011-1h22a1 1 0 011 1v2a1 1 0 01-1 1h-22a1 1 0 01-1-1v-2z" fill="currentColor"/><path d="M3.129 8H2V3.648l-1.348.418v-.918l2.356-.843h.12V8zM4.285 19H.387v-.773l1.84-1.961c.252-.276.438-.517.558-.723.123-.206.184-.401.184-.586 0-.253-.064-.45-.192-.594-.127-.146-.31-.218-.547-.218a.748.748 0 00-.605.265c-.146.175-.219.405-.219.692H.273c0-.347.082-.663.247-.95.166-.286.4-.51.703-.671a2.117 2.117 0 011.027-.247c.586 0 1.04.141 1.363.422.326.281.489.679.489 1.192 0 .28-.073.567-.22.859-.145.292-.395.631-.75 1.02L1.84 18.09h2.445V19zM1.535 26.656h.602c.286 0 .498-.071.636-.215.138-.143.207-.333.207-.57 0-.23-.069-.407-.207-.535-.135-.128-.322-.191-.562-.191a.827.827 0 00-.543.18.563.563 0 00-.219.46H.32c0-.297.08-.562.239-.797.161-.237.385-.422.671-.554.29-.133.607-.2.954-.2.601 0 1.073.145 1.414.434.34.286.511.682.511 1.188 0 .26-.079.5-.238.718a1.548 1.548 0 01-.625.504c.32.115.559.287.715.516.159.229.238.5.238.812 0 .506-.185.91-.554 1.215-.368.305-.855.457-1.461.457-.568 0-1.033-.15-1.395-.45-.36-.299-.539-.694-.539-1.187h1.129c0 .214.08.388.238.524.162.135.36.203.594.203.268 0 .478-.07.629-.211a.738.738 0 00.23-.566c0-.568-.312-.852-.937-.852h-.598v-.883z" fill="currentColor"/>',viewBox:"0 0 32 32"},quote:{icon:'<path d="M2.592 26.063c-.792.332-.773 1.196-.415 1.965.357.768.632 1.234.632 1.234.652.711 1.227.915 1.994.582 2.147-.922 3.987-2.126 5.495-3.56 1.815-1.742 3.067-3.715 3.732-5.892.665-2.151.997-5.149.997-8.991V3.537A1.54 1.54 0 0013.493 2H5.409a1.54 1.54 0 00-1.534 1.537v10.067c0 .846.69 1.537 1.534 1.537h5.23c-.05 2.587-.225 4.928-2.186 6.893-.92 1.255-3.995 3.234-5.86 4.029zM17.506 26.063c-.793.332-.773 1.196-.416 1.965.358.768.633 1.234.633 1.234.652.711 1.227.915 1.993.582 2.147-.922 3.988-2.126 5.496-3.56 1.815-1.742 3.067-3.715 3.732-5.892.664-2.151.996-5.149.996-8.991V3.537A1.54 1.54 0 0028.407 2h-8.084a1.54 1.54 0 00-1.534 1.537v10.067c0 .846.69 1.537 1.534 1.537h5.23c-.05 2.587-.226 4.928-2.187 6.893-.92 1.255-3.994 3.234-5.86 4.029z" fill="currentColor"/>',viewBox:"0 0 32 32"},code:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M31.204 14.378l-2.982-3.148V5.667c0-3.043-2.385-5.562-5.266-5.562H20.57c-1.094 0-1.889.945-1.889 2.099 0 1.154.895 2.099 1.889 2.099h2.385c.795 0 1.39.63 1.39 1.47v6.401c0 .525.2 1.05.597 1.47l2.186 2.309-2.186 2.308a2.13 2.13 0 00-.596 1.47v6.402c0 .84-.596 1.469-1.391 1.469H20.57c-1.094 0-1.889.945-1.889 2.099 0 1.154.895 2.099 1.889 2.099h2.385c2.881 0 5.267-2.519 5.267-5.562v-5.563l2.98-3.148c.796-1.05.796-2.31 0-3.149zM7.354 12.07V5.666c0-.84.596-1.469 1.391-1.469h2.385c1.093 0 1.888-.945 1.888-2.099C13.018.945 12.124 0 11.13 0H8.745C5.863.105 3.578 2.624 3.578 5.667v5.563L.596 14.378a2.108 2.108 0 000 2.939l2.982 3.148v5.563c0 3.043 2.385 5.562 5.266 5.562h2.385c1.094 0 1.889-.945 1.889-2.099 0-1.154-.895-2.099-1.889-2.099H8.745c-.795 0-1.391-.63-1.391-1.47v-6.401a2.13 2.13 0 00-.596-1.47L4.57 15.849l2.187-2.31a2.13 2.13 0 00.596-1.469z" fill="currentColor"/>',viewBox:"0 0 32 32"},copy:{icon:'<path d="M29.063 4.125L25.875.937C25.375.438 24.437 0 23.75 0H13a3 3 0 00-3 3v3H5a3 3 0 00-3 3v20c0 1.688 1.313 3 3 3h14a3 3 0 003-3v-3h5a3 3 0 003-3V6.25c0-.688-.438-1.625-.938-2.125zM18.624 29H5.375c-.25 0-.375-.125-.375-.375V9.375C5 9.187 5.125 9 5.375 9H10v14c0 1.688 1.313 3 3 3h6v2.625c0 .25-.188.375-.375.375zm8-6h-13.25c-.25 0-.375-.125-.375-.375V3.375c0-.188.125-.375.375-.375H20v5.5c0 .875.625 1.5 1.5 1.5H27v12.625c0 .25-.188.375-.375.375zM27 7h-4V3h.563c.125 0 .187.063.25.125l3.062 3.063c.063.062.125.125.125.25V7z" fill="currentColor"/>',viewBox:"0 0 32 32"},textAlignLeft:{icon:'<path d="M29 14H3a1 1 0 01-1-1v-2a1 1 0 011-1h26a1 1 0 011 1v2a1 1 0 01-1 1zM3 26h26a1 1 0 011 1v2a1 1 0 01-1 1H3a1 1 0 01-1-1v-2a1 1 0 011-1zM2.802 2h16.396a.801.801 0 01.802.802v2.396a.8.8 0 01-.802.802H2.802A.801.801 0 012 5.198V2.802A.801.801 0 012.802 2zm0 16h16.396a.8.8 0 01.802.802v2.396a.8.8 0 01-.802.802H2.802A.8.8 0 012 21.198v-2.396A.801.801 0 012.802 18z" fill="currentColor"/>',viewBox:"0 0 32 32"},textAlignCenter:{icon:'<path d="M29 10H3a1 1 0 00-1 1v2a1 1 0 001 1h26a1 1 0 001-1v-2a1 1 0 00-1-1zm0 16H3a1 1 0 00-1 1v2a1 1 0 001 1h26a1 1 0 001-1v-2a1 1 0 00-1-1zM8.756 6h14.488A.756.756 0 0024 5.244V2.756A.755.755 0 0023.244 2H8.756A.756.756 0 008 2.756v2.488A.756.756 0 008.756 6zm14.488 16a.756.756 0 00.756-.756v-2.488a.756.756 0 00-.756-.756H8.756a.756.756 0 00-.756.756v2.488a.756.756 0 00.756.756h14.488z" fill="currentColor"/>',viewBox:"0 0 32 32"},textAlignRight:{icon:'<path d="M3 14h26a1 1 0 001-1v-2a1 1 0 00-1-1H3a1 1 0 00-1 1v2a1 1 0 001 1zm26 12H3a1 1 0 00-1 1v2a1 1 0 001 1h26a1 1 0 001-1v-2a1 1 0 00-1-1zm.198-24H12.802a.801.801 0 00-.802.802v2.396a.8.8 0 00.802.802h16.396A.801.801 0 0030 5.198V2.802A.8.8 0 0029.198 2zm0 16H12.802a.8.8 0 00-.802.802v2.396a.8.8 0 00.802.802h16.396a.8.8 0 00.802-.802v-2.396a.8.8 0 00-.802-.802z" fill="currentColor"/>',viewBox:"0 0 32 32"},textAlignJustify:{icon:'<path d="M29 26H3a1 1 0 00-1 1v2a1 1 0 001 1h26a1 1 0 001-1v-2a1 1 0 00-1-1zm0-8H3a1 1 0 00-1 1v2a1 1 0 001 1h26a1 1 0 001-1v-2a1 1 0 00-1-1zm0-8H3a1 1 0 00-1 1v2a1 1 0 001 1h26a1 1 0 001-1v-2a1 1 0 00-1-1zm0-8H3a1 1 0 00-1 1v2a1 1 0 001 1h26a1 1 0 001-1V3a1 1 0 00-1-1z" fill="currentColor"/>',viewBox:"0 0 32 32"},verticalAlignStart:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M.625 2c0 .76.616 1.375 1.375 1.375h28a1.375 1.375 0 100-2.75H2C1.24.625.625 1.241.625 2z" fill="currentColor"/><rect width="24" height="6" rx="1" transform="matrix(0 1 1 0 7 8)" fill="currentColor"/><rect width="16" height="6" rx="1" transform="matrix(0 1 1 0 19 8)" fill="currentColor"/>',viewBox:"0 0 32 32"},verticalAlignCenter:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M.625 16c0-.76.616-1.375 1.375-1.375h28a1.375 1.375 0 110 2.75H2c-.76 0-1.375-.616-1.375-1.375z" fill="currentColor"/><rect x="7" y="28" width="24" height="6" rx="1" transform="rotate(-90 7 28)" fill="currentColor"/><rect x="19" y="24" width="16" height="6" rx="1" transform="rotate(-90 19 24)" fill="currentColor"/>',viewBox:"0 0 32 32"},verticalAlignEnd:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M31.375 30c0-.76-.616-1.375-1.375-1.375H2a1.375 1.375 0 100 2.75h28c.76 0 1.375-.616 1.375-1.375z" fill="currentColor"/><path d="M24 24a1 1 0 001-1V1a1 1 0 00-1-1h-4a1 1 0 00-1 1v22a1 1 0 001 1h4z" fill="currentColor"/><rect width="16" height="6" rx="1" transform="matrix(0 -1 -1 0 13 24)" fill="currentColor"/>',viewBox:"0 0 32 32"},cog:{icon:'<path d="M30.462 19.731L27.8 18.194c.269-1.45.269-2.938 0-4.388l2.662-1.537a.755.755 0 00.344-.875 15.566 15.566 0 00-3.419-5.913.752.752 0 00-.925-.143L23.8 6.875A11.794 11.794 0 0020 4.681V1.612a.749.749 0 00-.587-.73 15.712 15.712 0 00-6.825 0 .749.749 0 00-.588.73v3.075a12.167 12.167 0 00-3.8 2.194L5.544 5.344a.743.743 0 00-.925.143A15.472 15.472 0 001.2 11.4c-.106.338.038.7.344.875l2.662 1.537a12.039 12.039 0 000 4.388l-2.662 1.538a.755.755 0 00-.344.875 15.566 15.566 0 003.419 5.912.752.752 0 00.925.144l2.662-1.538a11.795 11.795 0 003.8 2.194V30.4c0 .35.244.656.588.731 2.293.513 4.644.488 6.825 0a.749.749 0 00.587-.731v-3.075a12.167 12.167 0 003.8-2.194l2.663 1.538a.743.743 0 00.925-.144 15.472 15.472 0 003.419-5.912.772.772 0 00-.35-.882zM16 21c-2.756 0-5-2.244-5-5s2.244-5 5-5 5 2.244 5 5-2.244 5-5 5z" fill="currentColor"/>',viewBox:"0 0 32 32"},thunderBolt:{icon:'<path d="M24.515 10h-7.25l2.687-8.063c.25-1-.5-1.937-1.437-1.937h-9c-.75 0-1.438.563-1.5 1.313l-2 15C5.89 17.25 6.577 18 7.515 18h7.375l-2.875 12.188c-.188.937.5 1.812 1.437 1.812.563 0 1.063-.25 1.313-.75l11-19c.625-.938-.125-2.25-1.25-2.25z" fill="currentColor"/>',viewBox:"0 0 32 32"},link:{icon:'<path d="M20.41 11.59c-.375-.376-.813-.751-1.25-1.064-.439-.313-.94-.25-1.314.063l-1.314 1.313c-.5.563-.751 1.252-.751 1.877 0 .375.188.626.438.813.188.125.438.313.688.5 1.752 1.815 1.752 4.63 0 6.382l-4.254 4.192a4.421 4.421 0 01-6.381 0c-1.752-1.752-1.69-4.63.062-6.381l.814-.814c.312-.25.375-.688.25-1.063-.376-1.064-.563-2.19-.626-3.254 0-.875-1.063-1.313-1.689-.688l-2.315 2.315c-3.69 3.691-3.69 9.76 0 13.45 3.691 3.692 9.76 3.692 13.451 0l4.192-4.19v-.064c3.69-3.628 3.753-9.634 0-13.388zm8.822-8.822c-3.691-3.69-9.76-3.69-13.451 0L11.589 6.96v.062c-3.69 3.629-3.753 9.635 0 13.389.376.375.814.75 1.252 1.063.438.313.938.25 1.313-.063l1.314-1.313c.5-.563.751-1.252.751-1.877 0-.375-.188-.626-.438-.813a17.384 17.384 0 01-.688-.5c-1.752-1.815-1.752-4.63 0-6.382l4.254-4.192a4.421 4.421 0 016.381 0c1.752 1.752 1.69 4.63-.062 6.382l-.814.813c-.312.25-.375.688-.25 1.063.375 1.064.563 2.19.626 3.254 0 .875 1.063 1.313 1.689.688l2.315-2.315c3.69-3.691 3.69-9.76 0-13.45z" fill="currentColor"/>',viewBox:"0 0 32 32"},image:{icon:'<path d="M29 4H3a3 3 0 00-3 3v18c0 1.688 1.313 3 3 3h26a3 3 0 003-3V7c0-1.625-1.375-3-3-3zm-.375 21H3.375c-.25 0-.375-.125-.375-.375V7.375C3 7.187 3.125 7 3.375 7h25.25c.188 0 .375.188.375.375v17.25c0 .25-.188.375-.375.375zM8 9.5c-1.438 0-2.5 1.125-2.5 2.5 0 1.438 1.063 2.5 2.5 2.5 1.375 0 2.5-1.063 2.5-2.5 0-1.375-1.125-2.5-2.5-2.5zM6 22h20v-5l-5.5-5.438c-.313-.312-.75-.312-1.063 0L12 19l-2.5-2.438c-.313-.312-.75-.312-1.063 0L6 19v3z" fill="currentColor"/>',viewBox:"0 0 32 32"},picture:{icon:'<path d="M25.884 2H5.046C3.366 2 2 3.406 2 5.139v19.726C2 26.595 3.366 28 5.046 28h20.838c1.68 0 3.045-1.405 3.045-3.135V5.139C28.929 3.406 27.564 2 25.884 2zm-6.47 4.668c1.624 0 2.941 1.357 2.941 3.03 0 1.673-1.317 3.03-2.942 3.03-1.624 0-2.941-1.357-2.941-3.03 0-1.673 1.317-3.03 2.941-3.03zM24.928 25.1H6.421c-.813 0-1.175-.605-.808-1.352l5.048-10.3c.366-.747 1.063-.813 1.557-.149l5.076 6.833c.494.665 1.357.722 1.928.126l1.242-1.295c.57-.596 1.412-.522 1.877.163l3.216 4.732c.465.686.185 1.242-.628 1.242z" fill="currentColor"/>',viewBox:"0 0 32 32"},music:{icon:'<path d="M29.668 2.254a1.015 1.015 0 00-.777-.249l-18 2A1 1 0 0010 5v17.822A5.787 5.787 0 007 22C4.242 22 2 23.794 2 26s2.243 4 5 4 5-1.793 5-4V10.9l16-1.782v11.7A5.786 5.786 0 0025 20c-2.757 0-5 1.794-5 4s2.243 4 5 4 5-1.793 5-4V3a1 1 0 00-.332-.746z" fill="currentColor"/>',viewBox:"0 0 32 32"},zip:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M8.193 1h12.05l7.583 7.557v19.25A3.197 3.197 0 0124.634 31H8.193A3.197 3.197 0 015 27.807V4.193A3.197 3.197 0 018.193 1zm0 28.044h16.44c.682 0 1.236-.555 1.236-1.237l-.046-18.475-4.098.011a2.215 2.215 0 01-2.214-2.215V2.946l-6.024.006V4.87h1.886a.5.5 0 01.499.5v1.092a.5.5 0 01-.5.5h-1.885v2.091h1.886a.5.5 0 01.499.5v1.093a.5.5 0 01-.5.5h-1.885v2.09h1.886a.5.5 0 01.499.5v1.093a.5.5 0 01-.5.5h-2.756a.5.5 0 01-.5-.5v-1.592h-1.885a.5.5 0 01-.5-.5v-1.092a.5.5 0 01.5-.5h1.886V9.053H10.23a.5.5 0 01-.5-.5V7.462a.5.5 0 01.5-.5h1.886v-2.09H10.23a.5.5 0 01-.5-.5V2.955l-1.538.001c-.682 0-1.237.554-1.237 1.236v23.614c0 .683.555 1.237 1.237 1.237zm5.8-11.823v2.556l.772 2.266a2.078 2.078 0 01-.277 1.877 2.08 2.08 0 01-1.687.867 2.08 2.08 0 01-1.687-.867 2.078 2.078 0 01-.277-1.877l.772-2.266V17.22a.5.5 0 01.499-.5h1.386a.5.5 0 01.5.5zm-2.062 6.114c.4.56 1.34.56 1.74 0 .201-.28.255-.642.144-.968l-.26-.76h-1.508l-.26.76c-.11.326-.057.688.144.968z" fill="currentColor"/>',viewBox:"0 0 32 32"},paperclip:{icon:'<path d="M28.191 4.804c-3.739-3.739-9.823-3.739-13.563 0L3.003 16.43a6.858 6.858 0 000 9.687 6.827 6.827 0 004.844 2.003 6.83 6.83 0 004.844-2.003l10.656-10.656a4.083 4.083 0 001.204-2.906c0-1.098-.427-2.13-1.204-2.907a4.115 4.115 0 00-5.812 0l-6.97 6.969a1.37 1.37 0 001.938 1.938l6.97-6.97a1.372 1.372 0 012.338.97c0 .365-.142.71-.401.968L10.753 24.18a4.115 4.115 0 01-5.812 0 4.115 4.115 0 010-5.813L16.565 6.742a6.858 6.858 0 019.687 0 6.805 6.805 0 012.007 4.844c0 1.83-.713 3.55-2.007 4.843L14.628 28.055a1.37 1.37 0 101.938 1.938L28.19 18.367A9.527 9.527 0 0031 11.586c0-2.562-.998-4.97-2.809-6.782z" fill="currentColor"/>',viewBox:"0 0 32 32"},frame:{icon:'<path d="M0 10.571c0 .5.357.858.857.858h2.857a.869.869 0 00.857-.858v-6h6a.869.869 0 00.858-.857V.857C11.429.43 11 0 10.57 0H1.714C.714 0 0 .786 0 1.714v8.857zM20.571.857v2.857c0 .5.358.857.858.857h6v6c0 .5.357.858.857.858h2.857A.869.869 0 0032 10.57V1.714C32 .786 31.214 0 30.286 0h-8.857c-.5 0-.858.429-.858.857zm10.572 19.714h-2.857c-.5 0-.857.429-.857.858v6h-6c-.5 0-.858.428-.858.857v2.857c0 .5.358.857.858.857h8.857c.928 0 1.714-.714 1.714-1.714v-8.857c0-.429-.429-.858-.857-.858zM11.429 31.143v-2.857c0-.429-.429-.857-.858-.857h-6v-6c0-.429-.428-.858-.857-.858H.857c-.5 0-.857.429-.857.858v8.857C0 31.286.714 32 1.714 32h8.857a.869.869 0 00.858-.857z" fill="currentColor"/>',viewBox:"0 0 32 32"},crop:{icon:'<path d="M30.5 22H28V6c0-1.063-.938-2-2-2H12v6h10v20.5c0 .875.625 1.5 1.5 1.5h3c.813 0 1.5-.625 1.5-1.5V28h2.5c.813 0 1.5-.625 1.5-1.5v-3c0-.813-.688-1.5-1.5-1.5zM10 1.5C10 .687 9.312 0 8.5 0h-3C4.625 0 4 .688 4 1.5V4H1.5C.625 4 0 4.688 0 5.5v3C0 9.375.625 10 1.5 10H4v16c0 1.125.875 2 2 2h14v-6H10V1.5z" fill="currentColor"/>',viewBox:"0 0 32 32"},eye:{icon:'<path d="M31.807 14.856C28.794 8.977 22.83 5 16 5S3.204 8.98.193 14.856a1.797 1.797 0 000 1.622C3.206 22.356 9.171 26.333 16 26.333c6.83 0 12.796-3.98 15.807-9.856a1.797 1.797 0 000-1.621zM16 23.666a8 8 0 110-16 8 8 0 010 16zm0-13.333a5.296 5.296 0 00-1.406.21 2.658 2.658 0 01-3.717 3.718A5.321 5.321 0 1016 10.333z" fill="currentColor"/>',viewBox:"0 0 32 32"},eyeSlash:{icon:'<path d="M17.299 22.869l2.595 2.005c-1.25.325-2.55.525-3.895.525-6.145 0-11.515-3.58-14.225-8.87-.23-.46-.23-1 0-1.46.51-1 1.145-1.915 1.835-2.78l5.245 4.055c.28 3.72 3.35 6.655 7.145 6.655.435-.005.87-.05 1.3-.13zm14.53 4.16l-.98 1.26a.803.803 0 01-1.125.14L.31 5.694a.803.803 0 01-.14-1.125l.98-1.26a.803.803 0 011.125-.14l6.36 4.915a15.412 15.412 0 017.365-1.885c6.145 0 11.515 3.58 14.225 8.87.23.46.23 1 0 1.46-1 1.955-2.385 3.69-4.06 5.105l5.525 4.27c.35.27.415.775.14 1.125zM23.2 15.79a7.19 7.19 0 00-7.2-7.19c-1.665 0-3.28.585-4.56 1.655l3.68 2.845c.045-.165.07-.33.075-.5 0-.51-.165-1-.465-1.41a4.74 4.74 0 015.805 6.095l1.965 1.52c.43-.915.695-1.925.695-3.005.005-.005.005-.005.005-.01z" fill="currentColor"/>',viewBox:"0 0 32 32"},clipboard:{icon:'<path d="M25 4h-5c0-2.188-1.813-4-4-4-2.25 0-4 1.813-4 4H7a3 3 0 00-3 3v22c0 1.688 1.313 3 3 3h18a3 3 0 003-3V7c0-1.625-1.375-3-3-3zm-9-1.5c.813 0 1.5.688 1.5 1.5 0 .875-.688 1.5-1.5 1.5-.875 0-1.5-.625-1.5-1.5 0-.813.625-1.5 1.5-1.5zm9 26.125c0 .25-.188.375-.375.375H7.375c-.25 0-.375-.125-.375-.375V7.375C7 7.187 7.125 7 7.375 7H10v2.25c0 .438.313.75.75.75h10.5a.76.76 0 00.75-.75V7h2.625c.188 0 .375.188.375.375v21.25z" fill="currentColor"/>',viewBox:"0 0 32 32"},clipboardBelow:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M14 4h4.375C19.797 4 21 5.203 21 6.625v19.25a2.626 2.626 0 0 1-2.625 2.625H2.625A2.591 2.591 0 0 1 0 25.875V6.625A2.626 2.626 0 0 1 2.625 4H7A3.49 3.49 0 0 1 10.5.5C12.414.5 14 2.086 14 4Zm-2.188 0A1.33 1.33 0 0 0 10.5 2.687c-.766 0-1.313.602-1.313 1.313 0 .766.547 1.313 1.313 1.313.71 0 1.313-.547 1.313-1.313ZM2.626 16.015V6.953c0-.164.11-.328.328-.328H5.25v1.969c0 .383.273.656.656.656h9.188a.665.665 0 0 0 .656-.656V6.625h2.297c.164 0 .328.164.328.328v9.062H2.625Zm8.293 8.592a.625.625 0 0 1-.837 0l-2.746-2.472a.625.625 0 1 1 .836-.929l1.704 1.533v-4.09a.625.625 0 1 1 1.25 0v4.09l1.703-1.533a.625.625 0 0 1 .836.93l-2.746 2.471Z" clip-rule="evenodd"/>',viewBox:"0 0 21 29"},clipboardAbove:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M14 4h4.375C19.797 4 21 5.203 21 6.625v19.25a2.626 2.626 0 0 1-2.625 2.625H2.625A2.591 2.591 0 0 1 0 25.875V6.625A2.626 2.626 0 0 1 2.625 4H7A3.49 3.49 0 0 1 10.5.5C12.414.5 14 2.086 14 4Zm-2.188 0A1.33 1.33 0 0 0 10.5 2.687c-.766 0-1.313.602-1.313 1.313 0 .766.547 1.313 1.313 1.313.71 0 1.313-.547 1.313-1.313Zm6.235 21.875c.164 0 .328-.11.328-.328v-9.064H2.625v9.064c0 .219.11.328.328.328h15.094Zm-7.13-17.984a.625.625 0 0 0-.836 0l-2.746 2.472a.625.625 0 0 0 .836.93l1.704-1.534v4.09a.625.625 0 1 0 1.25 0V9.76l1.703 1.533a.625.625 0 1 0 .836-.929l-2.746-2.472Z" clip-rule="evenodd"/>',viewBox:"0 0 21 29"},paste:{icon:'<path d="M10 11.5C10 9.625 11.563 8 13.5 8H22V3.5c0-.813-.688-1.5-1.5-1.5h-5.063c-.687-1.188-2-2-3.437-2-1.5 0-2.813.813-3.5 2h-5C2.625 2 2 2.688 2 3.5v21c0 .875.625 1.5 1.5 1.5H10V11.5zm2-9c.813 0 1.5.688 1.5 1.5 0 .875-.688 1.5-1.5 1.5-.875 0-1.5-.625-1.5-1.5 0-.813.625-1.5 1.5-1.5zM23.5 18c-.875 0-1.5-.625-1.5-1.5V10h-8.5c-.875 0-1.5.688-1.5 1.5v19c0 .875.625 1.5 1.5 1.5h15c.813 0 1.5-.625 1.5-1.5V18h-6.5zm6.5-2.375c0-.313-.25-.813-.5-1.063L25.437 10.5c-.25-.25-.75-.5-1.062-.5H24v6h6v-.375z" fill="currentColor"/>',viewBox:"0 0 32 32"},clone:{icon:'<path d="M29 0H11a3 3 0 00-3 3v18c0 1.688 1.313 3 3 3h18a3 3 0 003-3V3c0-1.625-1.375-3-3-3zM11 26c-2.813 0-5-2.188-5-5V8H3a3 3 0 00-3 3v18c0 1.688 1.313 3 3 3h18a3 3 0 003-3v-3H11z" fill="currentColor"/>',viewBox:"0 0 32 32"},cloneLine:{icon:'<path d="M29 0H9a3 3 0 00-3 3v3H3a3 3 0 00-3 3v20c0 1.688 1.313 3 3 3h20a3 3 0 003-3v-3h3a3 3 0 003-3V3c0-1.625-1.375-3-3-3zm-6.375 29H3.375c-.25 0-.375-.125-.375-.375V9.375C3 9.187 3.125 9 3.375 9H6v14c0 1.688 1.313 3 3 3h14v2.625c0 .25-.188.375-.375.375zm6-6H9.375c-.25 0-.375-.125-.375-.375V3.375C9 3.187 9.125 3 9.375 3h19.25c.188 0 .375.188.375.375v19.25c0 .25-.188.375-.375.375z" fill="currentColor"/>',viewBox:"0 0 32 32"},filter:{icon:'<path d="M29.56 0H2.44C1.153 0 .509 1.624 1.446 2.56L12.28 14.116v12.866c0 .5.175 1 .585 1.25l4.686 3.497c.937.687 2.226 0 2.226-1.25V14.116L30.555 2.561C31.492 1.624 30.848 0 29.56 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},search:{icon:'<path d="M31.532 27.66l-6.244-6.243c-.312-.25-.687-.438-1.062-.438h-.999c1.686-2.185 2.748-4.932 2.748-7.992C25.975 5.87 20.105 0 12.987 0 5.807 0 0 5.87 0 12.987c0 7.18 5.807 12.988 12.987 12.988 2.997 0 5.745-1 7.993-2.748v1.062c0 .374.124.749.437 1.061l6.181 6.182c.624.624 1.561.624 2.123 0l1.748-1.749c.625-.562.625-1.498.063-2.123zm-18.545-6.68a7.968 7.968 0 01-7.992-7.993c0-4.37 3.56-7.992 7.992-7.992 4.371 0 7.993 3.622 7.993 7.992 0 4.434-3.622 7.993-7.993 7.993z" fill="currentColor"/>',viewBox:"0 0 32 32"},caretDown:{icon:'<path d="M8.213 11h15.574c1.079 0 1.619 1.277.856 2.024l-7.787 7.629a1.228 1.228 0 01-1.712 0l-7.787-7.629C6.594 12.277 7.134 11 8.213 11z" fill="currentColor"/>',viewBox:"0 0 32 32"},caretUp:{icon:'<path d="M23.787 21H8.213c-1.079 0-1.619-1.277-.856-2.024l7.787-7.629a1.228 1.228 0 011.712 0l7.787 7.629c.763.747.223 2.024-.856 2.024z" fill="currentColor"/>',viewBox:"0 0 32 32"},caretRight:{icon:'<path d="M11 23.787V8.213c0-1.079 1.277-1.619 2.024-.856l7.629 7.787c.463.473.463 1.24 0 1.712l-7.629 7.787c-.747.763-2.024.223-2.024-.856z" fill="currentColor"/>',viewBox:"0 0 32 32"},caretLeft:{icon:'<path d="M21 8.213v15.574c0 1.079-1.277 1.619-2.024.856l-7.629-7.787a1.228 1.228 0 010-1.712l7.629-7.787c.747-.763 2.024-.223 2.024.856z" fill="currentColor"/>',viewBox:"0 0 32 32"},typography:{icon:'<path d="M27.143 24.571h-1.447L18.732 4.59A.87.87 0 0017.93 4h-3.911a.87.87 0 00-.804.59L6.25 24.57H4.857c-.482 0-.857.429-.857.858v1.714c0 .482.375.857.857.857h7.286c.428 0 .857-.375.857-.857v-1.714c0-.429-.429-.858-.857-.858h-1.286l1.393-4.285h7.393l1.446 4.285h-1.232c-.482 0-.857.429-.857.858v1.714c0 .482.375.857.857.857h7.286c.428 0 .857-.375.857-.857v-1.714c0-.429-.429-.858-.857-.858zM13.32 16.696l2.25-6.642c.215-.858.375-1.554.429-1.875 0 .375.107 1.071.375 1.875l2.25 6.642h-5.304z" fill="currentColor"/>',viewBox:"0 0 32 32"},typographyAlt:{icon:'<path d="M16.03 4h9.901c1.387 0 2.064.688 2.064 2.076 0 1.071.011 2.143 0 3.203-.011 1.117-.744 1.907-1.77 1.918-1.038.012-1.805-.79-1.827-1.94a16.555 16.555 0 010-1.297c.01-.305-.113-.373-.395-.373a496.45 496.45 0 01-5.797 0c-.327 0-.406.113-.406.418.012 5.324.012 10.649 0 15.973 0 .316.102.43.418.418.394-.012.79-.034 1.172.056.891.214 1.455.982 1.388 1.918-.068.868-.767 1.59-1.658 1.613-2.086.023-4.161.023-6.248 0-.902-.011-1.624-.767-1.68-1.658-.056-.903.541-1.704 1.444-1.861.35-.068.71-.08 1.06-.057.394.023.507-.113.507-.508-.022-1.951-.011-3.903-.011-5.854 0-3.306-.011-6.6.011-9.905 0-.451-.124-.564-.564-.564-1.86.023-3.71.023-5.57 0-.395 0-.53.09-.497.496.034.43.011.858 0 1.298 0 1.06-.79 1.85-1.793 1.839-.981-.012-1.76-.79-1.77-1.805a179.536 179.536 0 010-3.486c0-1.173.744-1.907 1.905-1.918H16.03z" fill="currentColor"/>',viewBox:"0 0 32 32"},th:{icon:'<path d="M18.344 3c-.82 0-1.407.638-1.407 1.393v9.286c0 .812.586 1.392 1.407 1.392h11.25c.761 0 1.406-.58 1.406-1.392V4.393C31 3.638 30.355 3 29.594 3h-11.25zm-4.688 0H2.406C1.586 3 1 3.638 1 4.393v9.286c0 .812.586 1.392 1.406 1.392h11.25c.762 0 1.406-.58 1.406-1.392V4.393c0-.755-.644-1.393-1.406-1.393zM1 18.321v9.286C1 28.42 1.586 29 2.406 29h11.25c.762 0 1.406-.58 1.406-1.393v-9.286c0-.754-.644-1.392-1.406-1.392H2.406c-.82 0-1.406.638-1.406 1.392zM18.344 29h11.25c.761 0 1.406-.58 1.406-1.393v-9.286c0-.754-.645-1.392-1.406-1.392h-11.25c-.82 0-1.407.638-1.407 1.392v9.286c0 .813.586 1.393 1.407 1.393z" fill="currentColor"/>',viewBox:"0 0 32 32"},plug:{icon:'<path d="M24 2c0-1.063-.938-2-2-2-1.125 0-2 .938-2 2v6h4V2zm3 8H5c-.563 0-1 .5-1 1v2c0 .563.438 1 1 1h1v2a9.998 9.998 0 008 9.813V32h4v-6.188c4.5-.937 7.938-4.937 8-9.812v-2h1c.5 0 1-.438 1-1v-2c0-.5-.5-1-1-1zM12 2c0-1.063-.938-2-2-2-1.125 0-2 .938-2 2v6h4V2z" fill="currentColor"/>',viewBox:"0 0 32 32"},sliders:{icon:'<path d="M27.25 4.502H15.145a8.655 8.655 0 010 7.5H27.25a3.707 3.707 0 002.654-1.096 3.754 3.754 0 00-2.654-6.404zM7.252 2A6.254 6.254 0 001 8.252c0 3.451 2.8 6.252 6.252 6.252 3.451 0 6.252-2.8 6.252-6.252 0-3.451-2.8-6.252-6.252-6.252zM4.75 19.502A3.753 3.753 0 001 23.252c0 1.008.387 1.951 1.096 2.654a3.731 3.731 0 002.654 1.096h12.105a8.654 8.654 0 010-7.5H4.75zM24.748 17a6.254 6.254 0 00-6.252 6.252c0 3.451 2.8 6.252 6.252 6.252 3.451 0 6.252-2.8 6.252-6.252C31 19.801 28.2 17 24.748 17z" fill="currentColor"/>',viewBox:"0 0 32 32"},equalizer:{icon:'<path d="M5.333 2.667c.737 0 1.334.597 1.334 1.333v9.333a1.333 1.333 0 11-2.667 0V4c0-.736.597-1.333 1.333-1.333zM6.667 20h2.666a1.333 1.333 0 000-2.667h-8a1.333 1.333 0 000 2.667H4v8a1.333 1.333 0 102.667 0v-8zM17.333 16a1.333 1.333 0 10-2.666 0v12a1.333 1.333 0 102.666 0V16zM16 2.667c.736 0 1.333.597 1.333 1.333v5.333H20A1.333 1.333 0 0120 12h-8a1.333 1.333 0 010-2.667h2.667V4c0-.736.597-1.333 1.333-1.333zM30.667 20a1.333 1.333 0 010 2.667H28V28a1.333 1.333 0 01-2.667 0v-5.333h-2.666a1.333 1.333 0 010-2.667h8zM26.667 2.667C27.403 2.667 28 3.264 28 4v12a1.333 1.333 0 01-2.667 0V4c0-.736.597-1.333 1.334-1.333z" fill="currentColor"/>',viewBox:"0 0 32 32"},click:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M16 31c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C7.716 1 1 7.716 1 16c0 8.284 6.716 15 15 15zm0 1c8.837 0 16-7.163 16-16S24.837 0 16 0 0 7.163 0 16s7.163 16 16 16z" fill="currentColor"/><path d="M21 16a5 5 0 11-10 0 5 5 0 0110 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},hover:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M31.1 15.7c2.4 6.6-.2 11.7-5.9 13.8-4.8 1.7-9.1.4-12.7-4l-5.2-6.3c-1.2-1.4-1.1-2.9 0-3.9 1.1-.9 2.5-.8 3.6.4l2.3 2.5c.1.1.1.1.2.1s.1-.1.1-.2L9.9 8c-5 1.9-8.2 6.7-8.4 13 0 .5-.3.8-.7.8-.4 0-.8-.4-.8-.8C0 14.1 3.8 8.6 9.3 6.5L9 5.7C8.4 4 9.2 2.6 10.7 2c1.5-.5 3 .1 3.6 1.8l1.8 4.9c.3-.3.7-.5 1-.6 1.2-.4 2.3-.1 3 .9.4-.3.8-.5 1.2-.7 1.2-.4 2.2-.1 2.9.8 2.5-.9 4.7.4 5.9 3.7l1 2.9zM8.5 18.2l5.2 6.3c3.3 4 7 4.9 11 3.4 4.9-1.8 7-6 4.9-11.8l-.9-2.5c-.9-2.5-2.2-3.5-3.6-3l.6 1.7c.2.5-.1.9-.4 1-.4.1-.8 0-1-.5l-.7-2.1c-.3-.9-1-1.2-1.8-.9-.3.1-.6.3-.9.6l1 2.7c.2.5-.1.9-.4 1-.4.1-.8 0-1-.5l-1.1-3c-.3-.9-1-1.2-1.8-.9-.3.1-.6.3-.9.6l1.4 3.7c.2.4 0 .9-.4 1-.4.2-.9-.1-1-.5L12.8 4.3c-.3-.7-.9-1.1-1.6-.8-.7.2-1 .9-.7 1.6l5.2 14.3c.2.6 0 1.1-.6 1.3-.5.2-.9.1-1.4-.4l-3.5-3.7c-.5-.6-1.2-.7-1.7-.3-.6.5-.5 1.2 0 1.9z" fill="currentColor"/>',viewBox:"0 0 32 32"},button:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M0 8a4 4 0 014-4h24a4 4 0 014 4v9a4 4 0 01-4 4h-.5a1 1 0 110-2h.5a2 2 0 002-2V8a2 2 0 00-2-2H4a2 2 0 00-2 2v9a2 2 0 002 2h9a1 1 0 110 2H4a4 4 0 01-4-4V8z" fill="currentColor"/><path opacity="0.5" fill-rule="evenodd" clip-rule="evenodd" d="M16.004 12.669l1.526 9.46c.05.408.508.611.864.408l2.645-1.882 3.612 5.137c.508.661 2.034-.407 1.577-1.068l-3.612-5.188 2.696-1.832c.305-.254.305-.762-.05-.966l-8.393-4.68a.604.604 0 00-.865.611z" fill="currentColor"/>',viewBox:"0 0 32 32"},recycleAlt:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M5.333 4c.737 0 1.334.597 1.334 1.333v3.124A11.976 11.976 0 0116 4c6.12 0 11.169 4.58 11.907 10.502a1.333 1.333 0 01-2.646.33C24.687 10.229 20.76 6.667 16 6.667a9.323 9.323 0 00-7.66 4H12a1.333 1.333 0 110 2.666H5.333A1.333 1.333 0 014 12V5.333C4 4.597 4.597 4 5.333 4zm-.082 12.01a1.333 1.333 0 011.488 1.158 9.335 9.335 0 0016.922 4.165H20a1.333 1.333 0 110-2.666h6.667c.736 0 1.333.597 1.333 1.333v6.667a1.333 1.333 0 01-2.667 0v-3.124A11.976 11.976 0 0116 28C9.88 28 4.831 23.42 4.093 17.498A1.333 1.333 0 015.25 16.01z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagH1:{icon:'<path d="M19.04 7v18h-3.408v-7.827H8.384V25H5V7h3.384v7.292h7.248V7h3.408zM20.861 10.365V7h6.096v18h-3.552V10.365h-2.544z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagH2:{icon:'<path d="M16.04 7.374V25h-3.408v-7.664H5.384V25H2V7.374h3.384v7.14h7.248v-7.14h3.408zM18.461 22.229c5.424-3.911 8.136-7.157 8.136-9.737 0-.782-.184-1.398-.552-1.847-.352-.45-.912-.674-1.68-.674-1.584 0-2.424 1.123-2.52 3.37h-3.288c.096-2.08.704-3.653 1.824-4.718C21.501 7.54 22.917 7 24.63 7c1.744 0 3.08.474 4.008 1.423.944.932 1.416 2.18 1.416 3.745 0 1.231-.352 2.471-1.056 3.72a15.037 15.037 0 01-2.64 3.42 21.308 21.308 0 01-3.384 2.671h7.416v2.871H18.461V22.23z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagH3:{icon:'<path d="M16.04 7.657V24.83h-3.408v-7.468H5.384v7.468H2V7.657h3.384v6.957h7.248V7.657h3.408zM24.797 7c1.152 0 2.136.203 2.952.608.832.406 1.456.965 1.872 1.678.432.714.648 1.509.648 2.384 0 1.103-.296 2.011-.888 2.725-.592.697-1.376 1.127-2.352 1.289v.121c2.368.714 3.552 2.125 3.552 4.233 0 1.476-.488 2.675-1.464 3.6-.976.908-2.352 1.362-4.128 1.362-1.888 0-3.392-.47-4.512-1.41-1.12-.958-1.744-2.393-1.872-4.306h3.312c.08.876.36 1.573.84 2.092.496.502 1.192.754 2.088.754.768 0 1.368-.211 1.8-.633.432-.438.648-1.005.648-1.702 0-.827-.312-1.46-.936-1.898-.624-.438-1.544-.656-2.76-.656h-.696v-2.798h.696c2.24.033 3.36-.754 3.36-2.36 0-.697-.2-1.24-.6-1.629-.4-.405-.944-.608-1.632-.608-.72 0-1.312.235-1.776.705-.464.454-.728 1.095-.792 1.922h-3.312c.096-1.751.656-3.097 1.68-4.038C21.55 7.478 22.973 7 24.797 7z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagH4:{icon:'<path d="M15.04 7.202V25h-3.408v-7.74H4.384V25H1V7.202h3.384v7.21h7.248v-7.21h3.408zM17.51 21.42v-2.95L25.62 7h3.624v11.345h2.208v3.075h-2.208V25h-3.408v-3.58H17.51zM26.1 11.16l-5.136 7.184h5.136V11.16z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagH5:{icon:'<path d="M15.04 7.349v17.576h-3.408v-7.643H4.384v7.643H1V7.35h3.384v7.12h7.248v-7.12h3.408zM29.821 10.087h-8.04v4.432c.368-.449.872-.805 1.512-1.07a5.41 5.41 0 012.16-.424c1.168 0 2.136.265 2.904.797a4.537 4.537 0 011.728 2.09c.384.864.576 1.827.576 2.889 0 1.875-.512 3.377-1.536 4.506C28.117 24.436 26.67 25 24.781 25c-1.232 0-2.304-.224-3.216-.672-.912-.465-1.624-1.104-2.136-1.917-.512-.83-.792-1.793-.84-2.888h3.288c.128.747.424 1.344.888 1.792.464.432 1.08.648 1.848.648.928 0 1.616-.29 2.064-.872.464-.597.696-1.386.696-2.365 0-.93-.24-1.651-.72-2.166-.48-.514-1.16-.772-2.04-.772-.64 0-1.184.15-1.632.448a2.496 2.496 0 00-.984 1.146H18.71V7h11.112v3.087z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagH6:{icon:'<path d="M15.04 7.61v17.22h-3.408v-7.488H4.384v7.487H1V7.61h3.384v6.976h7.248V7.61h3.408zM26.677 12.293c-.256-1.691-1.104-2.537-2.544-2.537-1.12 0-1.936.504-2.448 1.512-.512.992-.736 2.553-.672 4.683.256-.78.752-1.398 1.488-1.853.752-.472 1.624-.708 2.616-.708 1.632 0 2.912.504 3.84 1.512.944.992 1.416 2.407 1.416 4.244 0 1.139-.224 2.147-.672 3.025-.448.878-1.12 1.569-2.016 2.073-.88.504-1.952.756-3.216.756-2.464 0-4.16-.772-5.088-2.317-.928-1.561-1.392-3.707-1.392-6.44 0-3.137.496-5.462 1.488-6.975C20.485 7.756 22.11 7 24.35 7c1.712 0 3.024.496 3.936 1.488.912.992 1.432 2.26 1.56 3.805h-3.168zm-5.376 6.61c0 .91.256 1.666.768 2.268.528.585 1.296.878 2.304.878.864 0 1.552-.26 2.064-.78.512-.521.768-1.245.768-2.171 0-.976-.264-1.724-.792-2.244-.512-.52-1.208-.78-2.088-.78-.832 0-1.544.243-2.136.73-.592.489-.888 1.188-.888 2.098z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagDiv:{icon:'<path d="M31.567 13.822l-6.682-7.079a1.647 1.647 0 00-2.312-.072 1.647 1.647 0 00-.072 2.311l5.634 5.96-5.634 5.96a1.647 1.647 0 00.072 2.31c.29.29.687.434 1.12.434a1.7 1.7 0 001.192-.506l6.682-7.079a1.663 1.663 0 000-2.239zM17.796 1.462a1.5 1.5 0 012.924.669L14.26 30.4a1.5 1.5 0 11-2.925-.668l6.462-28.27zM9.427 6.67a1.704 1.704 0 00-1.156-.432c-.434 0-.83.18-1.12.505l-6.718 7.08c-.577.613-.577 1.588 0 2.238l6.682 7.08c.29.325.722.505 1.192.505.433 0 .795-.144 1.12-.433.65-.614.686-1.662.072-2.312l-5.634-5.96 5.634-5.959a1.647 1.647 0 00-.072-2.311z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagP:{icon:'<path d="M27.286 4.857v1.714a.86.86 0 01-.857.858h-2.572v19.714A.86.86 0 0123 28h-1.714a.86.86 0 01-.857-.857V7.429h-1.715v19.714a.86.86 0 01-.857.857h-1.714a.86.86 0 01-.857-.857v-6H13.57A8.57 8.57 0 015 12.57 8.569 8.569 0 0113.571 4H26.43a.86.86 0 01.857.857z" fill="currentColor"/>',viewBox:"0 0 32 32"},tagSpan:{icon:'<path d="M4.576 12.764c.296.296.625.428 1.053.428.428 0 .79-.132 1.053-.428.297-.296.461-.691.428-1.086 0-.395-.164-.757-.46-.988L3.554 7.596 6.65 4.502c.297-.297.461-.692.428-1.087 0-.395-.164-.757-.46-.987A1.515 1.515 0 005.53 2c-.395 0-.757.165-.987.46L.46 6.544c-.296.296-.461.69-.428 1.086 0 .395.165.757.46.987l4.083 4.148zM15.307 13.093h11.225a5.437 5.437 0 005.43-5.431 5.437 5.437 0 00-5.43-5.432H15.307a5.437 5.437 0 00-5.432 5.432 5.437 5.437 0 005.432 5.431zm0-8.196h11.225a2.796 2.796 0 012.797 2.798 2.796 2.796 0 01-2.797 2.798H15.307a2.796 2.796 0 01-2.798-2.798 2.796 2.796 0 012.798-2.798zM27.387 19.142c-.296-.296-.625-.428-1.053-.428-.428 0-.79.132-1.053.428-.297.296-.461.691-.428 1.086 0 .395.164.757.46.988l3.095 3.094-3.094 3.094c-.297.297-.461.692-.428 1.087 0 .395.164.757.46.987.264.263.659.428 1.054.428h.033c.395 0 .757-.165.987-.46l4.148-4.115c.296-.297.46-.692.428-1.087 0-.395-.165-.757-.461-.987l-4.148-4.115zM16.656 18.78H5.431A5.437 5.437 0 000 24.211a5.437 5.437 0 005.431 5.432h11.225a5.437 5.437 0 005.432-5.432c0-2.995-2.47-5.431-5.432-5.431zm0 8.196H5.431a2.796 2.796 0 01-2.798-2.797 2.796 2.796 0 012.798-2.798h11.225a2.796 2.796 0 012.798 2.797c0 1.548-1.284 2.798-2.798 2.798z" fill="currentColor"/>',viewBox:"0 0 32 32"},fontawesome:{icon:'<path d="M29.587 22.467c0 .45-.382.638-.832.831-1.794.77-3.713 1.476-5.763 1.476-2.882 0-4.226-1.794-7.683-1.794-2.494 0-5.12.893-7.233 1.856-.125.063-.256.063-.381.125v4.864C7.695 31.162 6.688 32 5.582 32a2.157 2.157 0 01-2.175-2.175V6.4A3.573 3.573 0 012 3.582C2 1.6 3.6 0 5.582 0c1.982 0 3.582 1.6 3.582 3.582 0 1.15-.513 2.175-1.407 2.82v1.98c.257-.087 3.676-1.793 7.17-1.793 4.083 0 6.108 1.725 7.94 1.725 2.431 0 5.12-1.725 5.763-1.725.513 0 .963.381.963.831l-.006 15.047z" fill="currentColor"/>',viewBox:"0 0 32 32"},icofont:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M25.306 9.57c2.578 0 4.769-2.223 4.769-4.801C30.107 2.159 27.948 0 25.305 0c-2.577 0-4.8 2.191-4.8 4.769 0 2.545 2.255 4.8 4.8 4.8zm3.093-4.833c0 1.643-1.385 3.028-3.06 3.028-1.709 0-2.997-1.288-2.997-3.028 0-1.644 1.353-3.061 2.996-3.061 1.579 0 3.061 1.45 3.061 3.06zm-.611 13.792c-1.032-5.64-4.64-8.958-10.183-8.926-.128 0-.74 0-1.256.194A880.864 880.864 0 003.235 13.76c-1.386.419-1.547 1.03-.774 2.255.554.859 1.191 1.658 1.83 2.459.847 1.062 1.697 2.128 2.359 3.341 1.353 2.513 3.834 3.577 6.605 3.061.464-.077.928-.19 1.393-.301.309-.075.618-.15.927-.214.774-.161 1.064.064.838.902-.134.539-.234 1.091-.335 1.648-.116.642-.233 1.29-.406 1.929-.847 3.261.138 3.226 2.747 3.133l.218-.008c.118 0 .248-.036.376-.072.081-.022.16-.044.236-.057 5.993-1.289 9.666-7.024 8.539-13.307zm-18.206-.774c-2.288.645-3.705 0-4.994-2.287 1.292-.392 2.566-.809 3.835-1.223 2.591-.846 5.158-1.684 7.797-2.29 4.189-.902 8.957 2.61 9.376 6.831.025.145-.006.29-.036.435-.01.049-.02.097-.028.145-.052 0-.093.006-.126.01-.05.006-.08.01-.1-.01-2.964-4.382-6.927-4.64-11.47-2.9-1.308.487-2.672.858-4.013 1.224l-.24.065zm2.123 1.583c2.37-.738 4.738-1.474 7.222-1.776 1.643-.065 2.867.644 3.834 1.933.29.355.644.902-.258.967-2.111.13-4.122.72-6.127 1.308-.995.292-1.988.584-2.992.819-1.74.419-3.254-.097-4.478-1.386l-.072-.07c-.283-.272-.753-.725.104-.961.928-.261 1.848-.548 2.768-.834zm10.25 3.412c1.29.354 2.191 1.063 2.095 2.642.16 1.128-.58 1.837-1.29 2.513a6.101 6.101 0 01-2.158 1.354c-.123.045-.25.096-.381.148-.792.315-1.69.672-2.326.174-.475-.367-.27-.951-.063-1.54.101-.289.203-.579.224-.845.06-.861.338-1.723.609-2.56l.068-.21c.42-1.225 1.901-2.03 3.222-1.676z" fill="currentColor"/>',viewBox:"0 0 32 32"},ionicons:{icon:'<path d="M15.933 22.226a6.159 6.159 0 100-12.318 6.159 6.159 0 000 12.318z" fill="currentColor"/><path d="M28.787 6.56c.134-.401.267-.803.267-1.204 0-1.473-1.205-2.544-2.543-2.544-.402 0-.804.134-1.206.268C22.628 1.07 19.415 0 15.933 0 11.65 0 7.632 1.74 4.686 4.686 1.606 7.766 0 11.782 0 16.066c0 4.286 1.607 8.302 4.686 11.248C7.766 30.259 11.65 32 15.933 32c4.285 0 8.301-1.607 11.247-4.686 2.945-3.08 4.686-6.962 4.686-11.247 0-3.481-1.071-6.829-3.08-9.506zm-2.678 19.683c-2.678 2.678-6.293 4.284-10.176 4.284s-7.498-1.473-10.176-4.284C3.08 23.565 1.473 19.95 1.473 16.067S2.946 8.569 5.757 5.89c2.678-2.678 6.293-4.284 10.176-4.284 2.946 0 5.891.937 8.167 2.544-.134.401-.267.803-.267 1.205 0 1.472 1.205 2.544 2.544 2.544.401 0 .803-.134 1.205-.268 1.74 2.41 2.677 5.355 2.677 8.435.134 3.749-1.472 7.364-4.15 10.176z" fill="currentColor"/>',viewBox:"0 0 32 32"},octicons:{icon:'<path d="M32 17.077c-.056.215-.038.433-.056.651-.278 3.339-1.431 6.318-3.472 8.932-1.931 2.476-4.372 4.22-7.288 5.272-.159.058-.325.08-.493.061-.416-.048-.688-.352-.688-.789-.003-.866.01-1.728.013-2.594.003-.805.037-1.613-.016-2.418-.05-.719-.219-1.398-.603-2.011a3.54 3.54 0 00-.44-.532c.234-.036.443-.065.652-.097 1.075-.17 2.122-.433 3.1-.94 1.65-.852 2.678-2.225 3.17-4.037a10.8 10.8 0 00.337-3.662 6.29 6.29 0 00-1.522-3.676c-.047-.054-.097-.099-.066-.192.45-1.321.36-2.633-.066-3.938-.118-.366-.121-.372-.506-.363-.656.016-1.268.222-1.865.481-.713.312-1.378.706-2.016 1.149-.094.064-.172.086-.284.057a14.434 14.434 0 00-4.157-.513 14.197 14.197 0 00-3.5.5.39.39 0 01-.359-.057c-.762-.513-1.553-.975-2.416-1.293-.525-.192-1.062-.343-1.63-.31-.132.006-.204.044-.25.179-.466 1.315-.595 2.646-.173 3.999.05.157.032.25-.075.375-.956 1.145-1.453 2.48-1.487 3.983-.028 1.184.081 2.354.418 3.496.597 1.995 1.857 3.355 3.741 4.124.85.346 1.74.536 2.644.67.119.02.237.032.356.052.025.003.05.013.09.022-.174.19-.34.372-.468.587a3.925 3.925 0 00-.506 1.45c-.013.07-.01.144-.097.183-.825.352-1.675.516-2.56.285-.853-.225-1.465-.783-1.925-1.53-.33-.535-.718-1.023-1.23-1.385-.523-.37-1.091-.51-1.72-.401a.81.81 0 00-.15.041c-.193.084-.24.228-.134.411.138.23.338.4.563.52.397.211.68.538.934.9.366.52.672 1.078.91 1.675.374.933 1.084 1.475 2.009 1.741.847.244 1.71.228 2.572.116.197-.026.393-.045.587-.087.128-.029.147.013.147.132 0 .914.006 1.824.01 2.738 0 .106.006.215-.01.321a.729.729 0 01-.625.625c-.19.03-.384.02-.569-.048-2.647-.93-4.903-2.466-6.765-4.602-2-2.296-3.26-4.955-3.807-7.97a14.98 14.98 0 01-.23-2.08c-.004-.058-.02-.116-.029-.174V15.41c.01-.052.025-.103.028-.154.04-.66.125-1.315.25-1.966.74-3.8 2.553-6.963 5.444-9.454C8.312 1.604 11.316.353 14.694.058c.247-.023.5-.003.743-.058h1.126c.053.029.112.026.168.026a14.32 14.32 0 012.247.263 15.439 15.439 0 015.594 2.27c2.497 1.639 4.416 3.813 5.74 6.533a16.383 16.383 0 011.635 6.196c.019.276-.006.555.053.827v.962z" fill="currentColor"/>',viewBox:"0 0 32 32"},iconjar:{icon:'<path d="M7.343 7.833c-.656 0-1.248-.604-1.248-1.272 0-1.54 3.81-2.68 8.146-2.68.394 0 .656 0 .656-.333 0-.603-1.313-.803-1.313-1.807C13.584.67 14.832 0 16.408 0c1.577 0 2.825.67 2.825 1.741 0 1.004-1.313 1.138-1.313 1.807 0 .201.197.335.656.335 4.336 0 8.213 1.07 8.213 2.678a1.258 1.258 0 01-1.25 1.271H7.345l-.001.001zm19.642 6.091c1.578 1.004 2.168 2.812 1.907 4.487l-1.84 10.106C26.657 30.53 24.948 32 22.91 32H10.036C8 32 6.292 30.528 5.897 28.519L4.057 18.41a4.41 4.41 0 011.972-4.42c.92-.668 1.116-1.807 0-2.208-1.577-.603-1.25-2.544.328-2.544h9.59c1.512 0 3.353 1.137 3.353 4.82 0 3.682-1.71 3.346-1.71 5.957 0 1.139.92 2.344 2.037 2.479 1.906.2 3.022-.536 3.022-3.214 0-2.746-1.576-4.017-1.576-6.293 0-2.745 1.707-3.817 2.824-3.817h2.76c1.576 0 1.906 1.942.328 2.545-1.116.467-.92 1.607 0 2.208z" fill="currentColor"/>',viewBox:"0 0 32 32"},materialicon:{icon:'<path d="M28.2 5.5c-.2.1-.2.2-.2.3v4.3s.1 0 .1-.1.1 0 .1-.1c.6-.4 1.2-.7 1.9-1.1.6-.4 1.2-.7 1.9-1.1V3.3c-1.3.7-2.5 1.5-3.8 2.2z" fill="currentColor"/><path d="M31.9 12.6c-.3.2-.6.3-.8.5-1 .6-1.9 1.1-2.9 1.7-.2 0-.2.1-.2.3v4.1c0 .2-.1.3-.2.4l-5.7 3.3-2.1 1.2c-1.3-.7-2.5-1.4-3.7-2.2h-.1c-.1 0-.1-.1-.1-.1l2.1-1.2c1.8-1.1 3.7-2.1 5.5-3.2.2-.1.2-.2.2-.3V3.8v-.1-.2l-12 6.9C10.5 9.6 9.2 8.8 7.8 8 5.3 6.4 2.6 4.8 0 3.3V17c0 .2.1.3.2.3l3.6 2.1c.1 0 .1.1.2.1v-9.3h.1c.1 0 .1.1.1.1 2.3 1.3 4.6 2.6 6.8 4 .1 0 .2.1.2.1.2.1.4.3.7.4.1 0 .2 0 .2-.1 0 0 .1 0 .1-.1 1.2-.7 2.5-1.4 3.7-2.1 1.2-.7 2.5-1.4 3.7-2.1h.1c.1 0 .1-.1.2-.1v4.4c0 .1-.1.2-.2.2-1.6.9-3.2 1.9-4.8 2.8-1 .6-1.9 1.1-2.9 1.7v4.4c0 .3.1.4.3.6 2.5 1.4 4.9 2.8 7.4 4.3h.1c.1 0 .1.1.2.1s.2-.1.2-.1.1 0 .1-.1l5.7-3.3 5.7-3.3c.1 0 .1-.1.2-.1v-9.3c.1 0 .1 0 0 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},icomoon:{icon:'<path d="M16 0c-2.267 0-4.267.4-6.267 1.2-1.866.8-3.6 2-5.066 3.467C3.2 6.133 2 7.867 1.2 9.733c-.8 2-1.2 4-1.2 6.267 0 2.267.4 4.267 1.2 6.267.8 1.866 2 3.6 3.467 5.066C6.133 28.8 7.867 30 9.733 30.8c1.867.8 4 1.2 6.267 1.2 2.267 0 4.267-.4 6.267-1.2 1.866-.8 3.6-2 5.066-3.467 1.467-1.466 2.667-3.2 3.467-5.066.8-1.867 1.2-4 1.2-6.267 0-2.267-.4-4.267-1.2-6.267-.8-1.866-2-3.6-3.467-5.066C25.867 3.2 24.133 2 22.267 1.2c-2-.8-4-1.2-6.267-1.2zm-4.133 2c1.2.667 2.4 1.6 3.333 2.533a19.077 19.077 0 012.533 3.2c.667 1.2 1.2 2.534 1.6 3.867.4 1.333.534 2.8.534 4.267 0 1.466-.267 2.933-.534 4.266-.4 1.334-.933 2.667-1.6 3.867-.666 1.2-1.6 2.267-2.533 3.333a14.706 14.706 0 01-3.333 2.534c-1.2-.534-2.267-1.467-3.334-2.4C7.6 26.4 6.667 25.333 6 24.133c-.667-1.2-1.2-2.533-1.6-3.866-.4-1.334-.533-2.8-.533-4.267 0-1.467.133-2.933.666-4.267.4-1.333.934-2.666 1.6-3.866.534-1.2 1.467-2.267 2.4-3.334C9.6 3.6 10.667 2.667 11.867 2zm0 10.267c-1.067 0-1.867.4-2.667 1.066-.667.667-1.067 1.6-1.067 2.667 0 1.067.4 1.867 1.067 2.667.667.8 1.6 1.066 2.667 1.066 1.066 0 1.866-.4 2.666-1.066.8-.667 1.067-1.6 1.067-2.667 0-1.067-.4-1.867-1.067-2.667-.8-.666-1.733-1.066-2.666-1.066z" fill="currentColor"/>',viewBox:"0 0 32 32"},fontello:{icon:'<path d="M30.6 13.1c.4 1.2-.1 2.2-1.3 2.6-.5.2-.5.2-.5-.4 0-.6-.1-1.2-.5-1.6-.3-.4-.7-.5-1.1-.4-.4.1-.6.4-.7.8-.2.8.3 1.7 1.1 2.1.1.1.3.1.3.3-.1.4-.2.9-.6 1.2-.3.3-.7.2-.9-.1-.2-.4-.3-.7-.2-1.1.1-.4.2-.8.2-1.3 0-.3 0-.6-.4-.6s-.5.2-.6.6c-.1.5 0 .9 0 1.3s-.2.7-.4.9c-.2.2-.4.2-.6 0-.4-.4-.7-1.5-.5-2 .5-1.4.9-2.9.9-4.4 0-.6-.1-1.2-.5-1.7-.4-.6-1.2-.6-1.6.1-.2.3-.3.7-.3 1.1-.3 1.8-.1 3.7.2 5.5.1.6-.2 1.1-.5 1.5-.1.2-.3.2-.5 0-.4-.3-.8-1.5-.6-2 .4-1 .6-2 .8-3.1.1-1 .2-2-.3-3-.2-.3-.4-.6-.8-.6s-.6.2-.8.6c-.2.4-.3.8-.4 1.2-.2 1.9-.1 3.8.3 5.6.1.4-.4 1.4-.7 1.6-.1.1-.3.1-.4 0-.2-.1 0-.3 0-.4.3-.6.5-1.3.5-2 0-.6-.1-1.3-.5-1.8-.5-.5-1.1-.4-1.4.2-.3.6-.4 1.2-.4 1.9.1.6.3 1.2.6 1.8-.6.1-1-.2-1.2-1-.4-1.3-.2-2.7-.1-4 .1-.5.1-.5.8-.5.8 0 1.4-.3 1.6-.9.2-.6.1-1.1-.1-1.7-.6.8-.9 1-1.5 1.2-.3.1-.4.1-.3-.3.2-.5.3-1 .4-1.6.1-.2.1-.5-.2-.6-.6-.1-1.4.4-1.5.9-.1.4-.1.8-.2 1.2 0 .2-.1.3-.3.2-.4-.1-.9-.2-1.3-.3-1.4-.4-2.8-.6-4.2-.3-.3.1-.2-.1-.2-.3.1-.7 0-1.4-.3-2-.4-.9-1.3-1.5-2.2-1.4-.9 0-1.6.6-2 1.6-.3.7-.4 1.5-.4 2.3 0 1.5.3 3 .6 4.5.1.5 0 .8-.3 1.1-.3.3-.4.3-.6 0-.8-.9-1.8-.9-2.6-.1-.4.4-.7.9-.8 1.5-.6 1.8-.5 3.7 0 5.5.3 1.4.9 2.6 2 3.5 1.8 1.6 3.9.9 4.4-1.4.3-1.3.3-2.6 0-3.8-.3-1.6-.6-3.3-.9-4.9 0-.2-.1-.5.2-.5.3 0 .1.3.1.5.1.9.2 1.8.9 2.6.9.9 1.9.7 2.4-.4.1-.3.2-.7.3-1 0-.3.3-.3.5-.3s.1.2.2.3c.1.5.1 1 .4 1.5.1.2.2.5.6.4.3-.1.5-.3.5-.7.1-.8.3-1.5.6-2.3.1.2.1.4.1.6.1.7.3 1.4.8 2 .5.6 1.2.6 1.7 0 .1-.2.2-.3.4-.5.7.9 1.3 1 2.3.5.2-.1.3 0 .4.1.6.4 1.1.2 1.5-.3.1-.1.2-.4.4-.5.5.9.9 1.2 1.5 1.1.7-.2.9-.9 1.3-1.4.3.6.5 1.3 1.2 1.4.8.1 1.1-.5 1.5-1 .2.2.3.4.4.6.7.8 1.5.7 2-.2.2-.4.3-.8.4-1.2 0-.3.1-.4.5-.5 1-.1 2-.4 2.6-1.3.5-1.2-.1-2.2-1.2-2.3zM4.3 17.4c.3.5.4.9.3 1.4 0 .1 0 .2-.1.2s-.1-.1-.2-.2c-.1-.5-.1-.9 0-1.4zm2 4.4c0 .7 0 1.5-.2 2.2-.4 1-1.2 1.3-2 .5-.6-.5-1-1.1-1.3-1.8-.7-1.7-1-3.5-.8-5.4 0-.3.1-.6.2-.8.4-.7 1-.7 1.5-.2.1.2.1.3 0 .4-.2.6-.4 1.2-.4 1.8v.4c.1.6.6 1 1 .9.5 0 .8-.5.8-1.1 0-.6-.1-1.2-.3-1.7-.3-.5 0-.8.4-1.1.5 2.1 1 4 1.1 5.9zm8.6-4c-.2.1-.5 0-.6-.2-.3-.4-.4-.8-.4-1.2-.1-.8-.1-1.6.1-2.4.1-.4 0-.5-.4-.5s-.7.2-.8.6c-.4.9-.7 1.7-1 2.6.1-.9.1-1.8.5-2.7.3-.6.2-.7-.5-.7-.5 0-.7.2-.8.7-.1.4-.2.9-.3 1.3-.1.3-.2.5-.6.7 0-.4 0-.8-.1-1.1-.1-.3-.2-.7-.5-.9-.3-.3-.7-.4-1.1-.2-.4.1-.5.5-.6.9 0 .8.2 1.4.9 1.8.3 0 .4.1.3.4-.1.3-.1.6-.3.8-.1.2-.2.4-.5.4s-.4-.2-.5-.4c-.4-.9-.4-1.9-.1-2.9 0-.1.1-.2.1-.2.1-.2 0-.4-.1-.6-.1-.2-.3-.1-.4 0-.4.1-.8.3-1.3.5-.2-1.8-.5-3.5-.2-5.3.2-.5.3-1 .6-1.3.6-.7 1.4-.6 1.8.2.3.6.3 1.3.2 2 0 .2-.2.2-.3.3-.4.3-.8.6-1.1 1-.1.2-.2.4-.2.6 0 .4.1.6.4.8.3.2.6 0 .8-.2.5-.4.7-1 .9-1.5.1-.5.4-.7.9-.8 1-.2 2 0 2.9.3.8.3 1.5.6 2.3.9.2.1.2.2.2.4-.1.9-.1 1.9-.1 2.8 0 .8.1 1.6.3 2.3.1.5-.1.6-.4.8zm-5.8-2c-.4-.4-.4-.7-.3-1.1.3.3.3.6.3 1.1zM8 11.1c-.1.5-.2.8-.5 1-.1.1-.1.2-.3.1-.1-.1-.1-.2 0-.3.2-.3.4-.6.8-.8zm10.1 6.2c-.3-.8-.3-1.6-.2-2.4 0-.2.1-.5.4-.5.3 0 .4.3.4.5.1.8-.1 1.6-.6 2.4zm2.4-5.3c0-.3 0-.6.1-.9 0-.2 0-.6.3-.6s.2.4.3.6c.1.6.1 1.1 0 1.7-.1.5-.2 1.1-.4 1.6-.2-.8-.3-1.6-.3-2.4zm3.1 2.4c-.2-1.2-.2-2.3-.1-3.4 0-.1 0-.2.1-.3 0-.1 0-.2.2-.2s.2.1.2.2c.2.6.2 1.1.1 1.7-.1.7-.2 1.4-.5 2zm4.4 1.3c-.5-.3-.7-.6-.7-1.1 0-.2.1-.3.2-.3.2 0 .3.1.3.2.2.4.2.7.2 1.2z" fill="currentColor"/><path d="M8.3 22c0-.4.2-.5.4-.6.8-.5 1.7-.8 2.6-1 2.4-.5 4.8-.6 7.2-.6 2.3 0 4.6.3 6.7 1 .5.2 1 .3 1.4.6.1.1.2.1.3.2.1.1.1.3 0 .5s-.2.1-.4.1c-1.4-.4-2.7-.7-4.1-.8-2.3-.3-4.6-.3-6.9-.1-1.9.2-3.7.6-5.5 1.3-.2.1-.4.2-.5.2-.2.1-.4.4-.7.2-.3-.4-.5-.7-.5-1z" fill="currentColor"/>',viewBox:"0 0 32 32"},videoCameraDuo:{icon:'<rect y="5" width="21.192" height="21.192" rx="2" fill="currentColor"/><path opacity=".4" fill-rule="evenodd" clip-rule="evenodd" d="M30.288 9.016c.627-.637 1.712-.193 1.712.702v11.756c0 .895-1.085 1.34-1.712.702l-5.791-5.878a1 1 0 010-1.404l5.79-5.878z" fill="currentColor"/>',viewBox:"0 0 32 32"},folderPlusDuo:{icon:'<path opacity=".3" fill-rule="evenodd" clip-rule="evenodd" d="M0 27.2a2 2 0 002 2h28a2 2 0 002-2V8.8a2 2 0 00-2-2H13.628a2 2 0 01-1.414-.586L8.586 2.586A2 2 0 007.172 2H2a2 2 0 00-2 2v23.2z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.822 11.245c.472 0 .854.382.854.853v4.693h4.693a.853.853 0 010 1.707h-4.693v4.693a.853.853 0 01-1.707 0v-4.693h-4.693a.853.853 0 010-1.707h4.693v-4.693c0-.471.382-.853.853-.853z" fill="currentColor"/>',viewBox:"0 0 32 32"},foldersDuo:{icon:'<path opacity=".4" fill-rule="evenodd" clip-rule="evenodd" d="M4.572 27.886a2 2 0 002 2H30a2 2 0 002-2v-15.2a2 2 0 00-2-2H16.371a2 2 0 01-1.414-.586l-2.943-2.943a2 2 0 00-1.414-.586H6.572a2 2 0 00-2 2v19.315z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M0 23.314a2 2 0 002 2h23.428a2 2 0 002-2v-15.2a2 2 0 00-2-2H11.8a2 2 0 01-1.414-.586L7.443 2.586A2 2 0 006.029 2H2a2 2 0 00-2 2v19.314z" fill="currentColor"/>',viewBox:"0 0 32 32"},plusCircleDuo:{icon:'<path opacity=".4" fill-rule="evenodd" clip-rule="evenodd" d="M32 16c0-8.832-7.168-16-16-16S0 7.168 0 16s7.168 16 16 16 16-7.168 16-16zM3.2 16C3.2 8.944 8.944 3.2 16 3.2c7.056 0 12.8 5.744 12.8 12.8 0 7.056-5.744 12.8-12.8 12.8-7.056 0-12.8-5.744-12.8-12.8z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16 8.533c.55 0 .995.446.995.996v5.476h5.476a.996.996 0 010 1.99h-5.476v5.476a.995.995 0 11-1.99 0v-5.475H9.528a.996.996 0 110-1.991l5.475-.002V9.53c0-.55.446-.996.996-.996z" fill="currentColor"/>',viewBox:"0 0 32 32"},layersDuo:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M27.605 20.035l4.129 2.14c.325.169.352.433.081.617l-.081.049-15.092 7.821c-.31.161-.79.181-1.142.06l-.142-.06L.266 22.841c-.325-.169-.352-.433-.081-.618l.081-.048 4.128-2.139 10.86 5.628c.365.19.933.211 1.344.064l.146-.064 10.861-5.629z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M27.605 13.733l4.129 2.14c.325.169.352.433.081.618l-.081.048-15.092 7.821c-.31.161-.79.181-1.142.06l-.142-.06L.266 16.54c-.325-.169-.352-.433-.081-.618l.081-.048 4.128-2.139 10.86 5.628c.365.19.933.211 1.344.064l.146-.064 10.861-5.629z" fill="currentColor"/><path opacity=".4" fill-rule="evenodd" clip-rule="evenodd" d="M.266 9.679l15.092-7.546c.31-.155.79-.175 1.142-.058l.142.058 15.092 7.546c.325.162.352.418.081.595l-.081.047-15.092 7.546c-.31.155-.79.175-1.142.058l-.142-.058L.266 10.321c-.325-.162-.352-.418-.081-.596l.081-.046 15.092-7.546L.266 9.679z" fill="currentColor"/>',viewBox:"0 0 32 32"},layoutsDuo:{icon:'<path d="M1 5a2 2 0 012-2h26a2 2 0 012 2v3.806H1V5z" fill="currentColor"/><path opacity=".4" d="M1 10.742h8.71v17.42H3a2 2 0 01-2-2v-15.42z" fill="currentColor"/><path d="M11.646 10.742H31v15.42a2 2 0 01-2 2H11.645v-17.42z" fill="currentColor"/>',viewBox:"0 0 32 32"},mediaDuo:{icon:' <path d="M11.174 11.037h9.507c.835 0 1.347.336 1.611 1.059.053.14.083.306.083.458.006 4.84.006 9.678 0 14.517 0 .817-.682 1.5-1.511 1.535H1.643c-.805 0-1.405-.447-1.605-1.194-.03-.1-.035-.211-.035-.317 0-4.851-.006-9.702 0-14.546 0-.812.646-1.488 1.464-1.494 2.698-.012 5.397-.012 8.096-.012.535-.006 1.07-.006 1.61-.006zm-4.821 9.537c-.1.094-.183.165-.26.241-.687.682-1.369 1.364-2.051 2.052-.312.312-.723.588-.882.964-.153.365-.024.847-.053 1.276-.018.294.07.383.37.383 5.133-.012 10.272-.006 15.405 0 .276 0 .37-.071.37-.36a251.726 251.726 0 010-4.22.666.666 0 00-.211-.512c-1.476-1.476-2.94-2.952-4.41-4.428-.07-.07-.159-.135-.258-.223-2.147 2.14-4.263 4.263-6.403 6.403-.541-.535-1.07-1.047-1.617-1.576zm-1.611-6.403c-.9 0-1.623.718-1.63 1.611 0 .918.73 1.664 1.641 1.67.9 0 1.635-.735 1.64-1.634.007-.935-.71-1.647-1.651-1.647z" fill="currentColor"/><path opacity=".4" d="M19.218 3.012h11.206c.765 0 1.352.458 1.54 1.193.03.112.036.23.036.347v16.105c0 .829-.653 1.493-1.488 1.499-2.052.012-4.11.006-6.162.012-.247 0-.288-.1-.288-.318.006-1.576.006-3.145.006-4.721V6.539c0-.405 0-.405-.417-.405h-8.86c-.442 0-.442 0-.442.458 0 .812-.006 1.623.006 2.435.006.247-.059.34-.33.34a756.983 756.983 0 00-7.308 0c-.27 0-.323-.093-.323-.34.012-1.447.006-2.893.006-4.34C6.394 3.654 7.176 2.994 8.064 3c3.722.024 7.438.012 11.154.012zM11.62 7.357v-.618c-.006-.429-.176-.605-.6-.611-.429-.006-.858-.006-1.293 0-.388 0-.582.17-.6.559-.023.458-.012.917 0 1.375.006.283.147.512.453.524.535.023 1.07.03 1.605 0 .288-.018.44-.224.435-.53-.006-.229 0-.464 0-.7zM29.289 12.6v-.646-.06c-.017-.364-.188-.534-.552-.54a49.44 49.44 0 00-1.323 0c-.424 0-.612.17-.623.594-.012.43-.012.858 0 1.287.011.383.17.577.54.6.477.03.959.03 1.435 0 .359-.023.506-.223.518-.588.011-.217.005-.435.005-.646zm0-5.209c0-.235.006-.47 0-.705-.011-.37-.2-.553-.57-.559-.44-.006-.882-.006-1.317 0-.376 0-.576.159-.594.535-.023.476-.017.958-.006 1.435.012.27.153.482.447.494.535.017 1.07.023 1.605.005.283-.011.424-.223.435-.5.006-.234 0-.47 0-.705zm-1.264 11.642h.73c.329-.006.517-.165.529-.494.017-.488.011-.976 0-1.464-.012-.312-.194-.494-.5-.5-.5-.012-.994-.006-1.494 0-.252.006-.452.147-.464.4-.024.553-.03 1.105 0 1.658.012.259.212.4.488.394.24 0 .476.006.711.006z" fill="currentColor"/>',viewBox:"0 0 32 32"},toolsDuo:{icon:'<path d="M30.401 4.5a.879.879 0 00-1.414-.243l-2.274 2.274a.898.898 0 01-1.243 0 .88.88 0 010-1.243l2.274-2.274A.88.88 0 0027.5 1.6a6.159 6.159 0 00-7.003 1.202 6.164 6.164 0 00-1.446 6.417L9.219 19.05a6.165 6.165 0 00-6.417 1.447A6.162 6.162 0 001.6 27.5a.88.88 0 001.414.243l2.274-2.273a.88.88 0 011.243 1.242l-2.274 2.274a.88.88 0 00.243 1.415 6.157 6.157 0 007.002-1.203 6.162 6.162 0 001.446-6.417l9.833-9.832a6.17 6.17 0 006.418-1.446A6.162 6.162 0 0030.4 4.5z" fill="currentColor"/><path opacity=".4" fill-rule="evenodd" clip-rule="evenodd" d="M10.618 5.647l-.62.621 4.75 4.752-3.724 3.724-4.755-4.748-.622.622a.88.88 0 01-1.375-.17L1.447 5.743a3.125 3.125 0 01.471-3.824 3.125 3.125 0 013.824-.471l4.708 2.825a.88.88 0 01.168 1.375zm12.103 11.928c2.755 2.134 4.34 3.361 6.98 5.992a4.39 4.39 0 011.273 3.463 4.417 4.417 0 01-1.831 3.228c-.727.522-1.592.73-2.469.73-1.193 0-2.407-.426-3.32-1.339-2.446-2.446-3.891-4.312-5.865-6.858l-.874-1.126 4.97-4.971c.402.312.778.604 1.136.88zm3.22 9.552c.334.335.88.365 1.23.047a.879.879 0 00.03-1.272l-3.516-3.516a.879.879 0 00-1.272.03c-.319.35-.288.896.047 1.23l3.48 3.481z" fill="currentColor"/>',viewBox:"0 0 32 32"},triggersDuo:{icon:'<ellipse cx="6.9466" cy="6.44802" rx="6.29267" ry="6.29409" fill="#C9CCDA"/><rect x="3.87848" y="3.24072" rx="3.0903" fill="white"/><path d="M15.8006 13.5485V16.7451C15.8006 17.6779 15.617 18.6016 15.2601 19.4634C14.9032 20.3252 14.3802 21.1083 13.7208 21.7679C13.0614 22.4275 12.2785 22.9507 11.417 23.3077C10.5554 23.6647 9.63203 23.8484 8.6995 23.8484C4.7779 23.8484 3.74557 21.7174 0.416025 15.8571C0.184321 15.4495 0.123216 14.9667 0.246044 14.5141C0.368872 14.0616 0.665662 13.676 1.07165 13.4415C1.47763 13.207 1.95985 13.1427 2.41307 13.2626C2.8663 13.3824 3.25373 13.6767 3.49082 14.0813L5.14893 16.7451V7.15548C5.14893 6.6845 5.33597 6.23281 5.6689 5.89977C6.00183 5.56674 6.45338 5.37964 6.92421 5.37964C7.39505 5.37964 7.8466 5.56674 8.17953 5.89977C8.51246 6.23281 8.6995 6.6845 8.6995 7.15548V12.1279C8.6995 11.6569 8.88653 11.2052 9.21946 10.8721C9.55239 10.5391 10.0039 10.352 10.4748 10.352C10.9456 10.352 11.3972 10.5391 11.7301 10.8721C12.063 11.2052 12.2501 11.6569 12.2501 12.1279V13.5485C12.2501 13.0775 12.4371 12.6259 12.77 12.2928C13.103 11.9598 13.5545 11.7727 14.0253 11.7727C14.4962 11.7727 14.9477 11.9598 15.2807 12.2928C15.6136 12.6259 15.8006 13.0775 15.8006 13.5485Z" fill="currentColor"/>',viewBox:"0 0 16 24"},blocksDuo:{icon:'<path opacity=".4" fill-rule="evenodd" clip-rule="evenodd" d="M2 1a1 1 0 00-1 1v7a1 1 0 001 1h11.636a1 1 0 001-1V2a1 1 0 00-1-1H2zm16.364 21a1 1 0 00-1 1v7a1 1 0 001 1H30a1 1 0 001-1v-7a1 1 0 00-1-1H18.364z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.364 1a1 1 0 00-1 1v16a1 1 0 001 1H30a1 1 0 001-1V2a1 1 0 00-1-1H18.364zM2 13a1 1 0 00-1 1v16a1 1 0 001 1h11.636a1 1 0 001-1V14a1 1 0 00-1-1H2z" fill="currentColor"/>',viewBox:"0 0 32 32"},zipDuo:{icon:'<path opacity=".4" d="M27.563 6.563L21.442.438A1.499 1.499 0 0020.382 0H20v8h8v-.381c0-.394-.156-.775-.438-1.056z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18 8.5c0 .825.675 1.5 1.5 1.5H28v20.5c0 .831-.669 1.5-1.5 1.5h-21c-.831 0-1.5-.669-1.5-1.5v-29C4 .669 4.669 0 5.5 0h6.525v2h2V0H18v8.5zM11.994 2h-2v2h2V2zM8.8 22.069a3.277 3.277 0 106.425.018l-1.081-5.48a.756.756 0 00-.738-.607h-1.381v-2h2v-2h-2v-2h2V8h-2V6h2V4h-2v2h-2v2h2v2h-2v2h2v2h-2v2L8.8 22.069zm1.2.619c0-.932.906-1.688 2.025-1.688 1.119 0 2.031.756 2.031 1.688 0 .93-.906 1.687-2.025 1.687-1.119 0-2.031-.75-2.031-1.688z" fill="currentColor"/>',viewBox:"0 0 32 32"},cubeDuo:{icon:'<path opacity=".4" fill-rule="evenodd" clip-rule="evenodd" d="M16 13.3L31.1 7c-.3-.3-.6-.5-.9-.7L17.4.3c-.9-.4-2-.4-2.8 0l-12.8 6c-.4.2-.7.4-.9.7L16 13.3z" fill="currentColor"/><path d="M0 23.3c0 1.1.7 2.2 1.8 2.7l12.8 6h.2V15.7L0 9.5v13.8zM17.3 15.7V32h.1l12.8-6c1.1-.5 1.8-1.5 1.8-2.7V9.5l-14.7 6.2z" fill="currentColor"/>',viewBox:"0 0 32 32"},filesDuo:{icon:'<path d="M25.572 5.577a.938.938 0 01-.938-.938V0H11.698c-1.036 0-1.876.84-1.876 1.877v25.331h18.512c1.037 0 1.877-.84 1.877-1.877V5.577h-4.639zm.259 17.758H15.98a.938.938 0 010-1.877h9.85a.938.938 0 010 1.877zm0-3.682H15.98a.938.938 0 010-1.877h9.85a.938.938 0 010 1.877zm0-3.683H15.98a.938.938 0 010-1.877h9.85a.938.938 0 010 1.877zm0-3.682H15.98a.938.938 0 010-1.877h9.85a.938.938 0 010 1.877z" fill="currentColor"/><path opacity=".4" fill-rule="evenodd" clip-rule="evenodd" d="M26.51 3.7V.17l3.53 3.53h-3.53zM6.166 28.147c0 .518.42.939.938.939h13.508v1.037c0 1.037-.84 1.877-1.877 1.877H3.877A1.877 1.877 0 012 30.123V6.668c0-1.036.84-1.877 1.877-1.877h2.289v23.356z" fill="currentColor"/>',viewBox:"0 0 32 32"},popsDuo:{icon:'<path fill="currentColor" d="M3 4h-.133C1.836 4 1 4.836 1 5.867v7.466c0 1.031.836 1.867 1.867 1.867h7.466a1.867 1.867 0 0 0 1.867-1.867V13.2H4.867A1.867 1.867 0 0 1 3 11.333V4Z" opacity=".4"/><path fill="currentColor" fill-rule="evenodd" d="M6.867 1C5.836 1 5 1.836 5 2.867v6.466c0 1.031.836 1.867 1.867 1.867h6.466A1.867 1.867 0 0 0 15.2 9.333V2.867C15.2 1.836 14.364 1 13.333 1H6.867ZM10 2.5a.5.5 0 0 0 0 1h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0V4A1.5 1.5 0 0 0 12 2.5h-2Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},wordDuo:{icon:'<path d="M19.5 10c-.825 0-1.5-.675-1.5-1.5V0H5.5C4.669 0 4 .669 4 1.5v29c0 .831.669 1.5 1.5 1.5h21c.831 0 1.5-.669 1.5-1.5V10h-8.5zm4.294 6.919l-2.375 10.5a.743.743 0 01-.732.581h-2.375a.749.749 0 01-.725-.569c-1.612-6.469-1.3-5.075-1.6-6.906h-.03c-.07.894-.15 1.088-1.6 6.906a.749.749 0 01-.726.569h-2.319a.749.749 0 01-.73-.587l-2.363-10.5A.747.747 0 018.95 16h1.531a.75.75 0 01.738.606c.975 4.875 1.256 6.844 1.312 7.638.1-.638.457-2.044 1.838-7.669a.744.744 0 01.731-.569h1.819c.35 0 .65.238.731.575 1.5 6.275 1.8 7.75 1.85 8.088-.012-.7-.163-1.113 1.35-8.075a.725.725 0 01.719-.594h1.494a.75.75 0 01.73.919z" fill="currentColor"/><path opacity=".4" d="M28 7.619V8h-8V0h.381c.4 0 .782.156 1.063.438l6.119 6.125c.28.28.437.662.437 1.056z" fill="currentColor"/>',viewBox:"0 0 32 32"},pdfDuo:{icon:'<path opacity=".4" d="M27.563 6.563L21.438.438A1.499 1.499 0 0020.375 0H20v8h8v-.381c0-.394-.156-.775-.438-1.056z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19.5 10c-.825 0-1.5-.675-1.5-1.5V0H5.5C4.669 0 4 .669 4 1.5v29c0 .831.669 1.5 1.5 1.5h21c.831 0 1.5-.669 1.5-1.5V10h-8.5zm2.869 13.9c-1.056 0-2.644-.481-4-1.219-1.261.208-2.661.682-4.005 1.137-.315.107-.627.212-.933.313-1.587 2.738-2.7 3.863-3.818 3.863-.344 0-.994-.194-1.344-.625-1.194-1.469 1.712-3.381 3.406-4.25.003 0 .005-.002.006-.003.002-.002.003-.003.007-.003.756-1.325 1.824-3.638 2.55-5.363-.532-2.056-.82-3.669-.507-4.813.338-1.23 2.694-1.412 2.988.426.329 1.071-.084 2.766-.366 3.922l-.022.09c.588 1.55 1.419 2.6 2.669 3.363 1.206-.157 3.731-.4 4.6.45.719.712.594 2.712-1.231 2.712zm-7.125-10.825c-.181 0-.188 1.931.125 2.931.35-.625.4-2.931-.125-2.931zm.018 5.881c-.48 1.263-1.08 2.707-1.774 3.919.28-.107.569-.226.867-.35.922-.38 1.936-.797 3.064-1.019-.794-.6-1.556-1.462-2.157-2.55zm-3.7 5.288c-1.356 2.175-2.18 2.562-2.18 2.512.308-.837 1.372-1.787 1.938-2.293.098-.087.18-.161.242-.22zm8.694-2.288c2.319.988 2.675.563 2.675.563.256-.169-.156-.744-2.675-.563z" fill="currentColor"/>',viewBox:"0 0 32 32"},powerpointDuo:{icon:'<path opacity=".4" d="M27.563 6.563L21.438.438A1.499 1.499 0 0020.375 0H20v8h8v-.381c0-.394-.156-.775-.438-1.056z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18 8.5c0 .825.675 1.5 1.5 1.5H28v20.5c0 .831-.669 1.5-1.5 1.5h-21c-.831 0-1.5-.669-1.5-1.5v-29C4 .669 4.669 0 5.5 0H18v8.5zm-3.631 18.75v-3.575c.127 0 .289.007.478.014 1.883.077 6.466.265 6.466-4.864 0-2.762-1.775-4.813-4.557-4.813h-5.062a.752.752 0 00-.75.75V27.25c0 .413.337.75.75.75h1.925c.412 0 .75-.337.75-.75zm-.006-10.3h1.743c.55 0 .969.169 1.269.506.6.681.613 2.044-.012 2.756-.307.35-.744.532-1.32.532h-1.68V16.95z" fill="currentColor"',viewBox:"0 0 32 32"},excelDuo:{icon:'<path d="M19.5 10c-.825 0-1.5-.675-1.5-1.5V0H5.5C4.669 0 4 .669 4 1.5v29c0 .831.669 1.5 1.5 1.5h21c.831 0 1.5-.669 1.5-1.5V10h-8.5zm2.256 16.844A.751.751 0 0121.125 28h-2.181a.753.753 0 01-.663-.394C17.056 25.344 16 23.312 16 23.312c-.4.925-.625 1.25-2.287 4.3a.743.743 0 01-.657.394h-2.181a.751.751 0 01-.631-1.156l3.768-5.844-3.768-5.844a.75.75 0 01.631-1.156h2.175c.275 0 .531.15.662.394 1.632 3.05 1.25 2.1 2.288 4.281 0 0 .381-.731 2.288-4.281a.753.753 0 01.662-.394h2.175c.594-.006.95.65.631 1.15L18 21l3.756 5.844z" fill="currentColor"/><path opacity=".4" d="M28 7.619V8h-8V0h.381c.4 0 .782.156 1.063.438l6.119 6.125c.28.28.437.662.437 1.056z" fill="currentColor"/>',viewBox:"0 0 32 32"},animationDuo:{icon:'<path opacity="0.2" d="M32 7.9C32 3.6 28.4 0 24.1 0c-4.3 0-7.9 3.5-7.9 7.8h.1c4.4 0 7.9 3.6 7.9 7.9v.1c4.3 0 7.8-3.5 7.8-7.9z" fill="currentColor"/><path opacity="0.4" d="M23.9 16c0-4.4-3.6-7.9-7.9-7.9-4.3 0-7.9 3.5-7.9 7.8h.1c4.4 0 7.9 3.6 7.9 7.9v.1c4.3 0 7.8-3.5 7.8-7.9z" fill="currentColor"/><path d="M7.9 32a7.9 7.9 0 100-15.8 7.9 7.9 0 000 15.8z" fill="currentColor"/>',viewBox:"0 0 32 32"},addonDuo:{icon:'<path d="M8.026 12.2h.9c.8 0 1.6.6 1.7 1.4.1.4 0 .7-.2 1l-.1.2c-.1.2-.2.4-.2.6v.4c0 .6.5 1.2 1.1 1.2h4.9v4.8h-.5c-.1-.1-.3-.2-.5-.3-.5-.2-1-.3-1.5-.2-1.3.2-2.2 1.3-2.3 2.6v1c0 1.4 1 2.5 2.3 2.8.6.1 1.2 0 1.8-.3l.2-.1h.5v4.3h-12c-1.5 0-2.6-1.1-2.7-2.5v-12h4.2c.3 0 .7-.1.9-.4.2-.2.3-.5.4-.7v-.4c0-.2-.1-.4-.2-.6l-.2-.2c-.2-.3-.3-.8-.3-1.2.2-.8.8-1.3 1.6-1.4h.2z" fill="currentColor"/><path opacity=".4" d="M21.526 17.117c.02.083 0 0 0 .083v.5c-.4.6-.6 1.3-.5 2 .2 1.3 1.3 2.2 2.6 2.3h1.1c2.2.1 3.6-2.5 2.3-4.3v-.4c0-.1 0-.1.1-.2h4.8v11.8c0 1.4-1.1 2.6-2.6 2.7h-12.2v-4.2c0-.6-.5-1.2-1.1-1.2h-.4c-.2 0-.4.1-.6.2l-.1.1c-.3.2-.8.3-1.2.3-.8-.2-1.3-.8-1.4-1.6v-1c0-.8.6-1.6 1.4-1.7.4-.1.7 0 1 .2l.2.1c.2.1.4.2.6.2h.5c.7 0 1.2-.5 1.3-1.1V17h4.2" fill="currentColor"/><path opacity=".2" fill-rule="evenodd" clip-rule="evenodd" d="M14.226 0l.7 4.7c.1.6.7 1.1 1.3 1.1h.4c.2 0 .4-.1.6-.2l.1-.1c1-1.1 2.5-.5 2.8.8v.2l.1.8c.2.7-.3 1.5-1.1 1.8-.3.1-.7.1-1 0l-.2-.2c-.2-.1-.4-.1-.6-.1h-.5c-.6.1-1.1.6-1.1 1.3v.1l.6 4.1-4.7.7h-.1l-.1-.1v-.4c.3-.6.4-1.3.2-2-.4-1.2-1.6-2-2.9-1.9h-.1l-.8.1c-1.4.2-2.4 1.3-2.5 2.7 0 .6.2 1.2.6 1.7l.2.2.1.1v.4l-.1.1-4.2.6-1.9-11.8c-.2-1.4.8-2.7 2.1-3h.2l11.9-1.7z" fill="currentColor"/>',viewBox:"0 0 32 32"},integrationsDuo:{icon:'<path d="M9.412 10.412a1 1 0 011-1h11.176a1 1 0 011 1v11.176a1 1 0 01-1 1H10.412a1 1 0 01-1-1V10.412z" fill="currentColor"/><path opacity=".4" d="M20.706 1a1 1 0 00-1-1H1a1 1 0 00-1 1v18.706a1 1 0 001 1h4.588a1 1 0 001-1V7.588a1 1 0 011-1h12.118a1 1 0 001-1V1zM26.412 11.294a1 1 0 00-1 1v12.118a1 1 0 01-1 1H12.294a1 1 0 00-1 1V31a1 1 0 001 1H31a1 1 0 001-1V12.294a1 1 0 00-1-1h-4.588z" fill="currentColor"/>',viewBox:"0 0 32 32"},languagesDuo:{icon:'<path d="M28.4 13h-12c-1.9 0-3.4 1.5-3.4 3.4V23l-3.1 2.2c-.2.2-.4.5-.4.8 0 .3.1.6.4.8L13 29c.2 1.7 1.7 2.9 3.4 2.9h12c1.9 0 3.4-1.5 3.4-3.4v-12c.1-2-1.5-3.5-3.4-3.5zm-4 13.2c-.2 0-.4-.1-.4-.3l-.4-1.3h-2.3l-.4 1.3c-.1.2-.2.3-.4.3-.4 0-.8-.2-.8-.5v-.1l1.9-6.3c.1-.3.5-.4.8-.4.4 0 .8.1.8.4l1.9 6.3v.1c.1.2-.4.5-.7.5z" fill="currentColor"/><path d="M21.5 23.5h1.8l-.9-3-.9 3z" fill="currentColor"/><path opacity=".4" d="M22.6 6.1c0-.3-.1-.6-.4-.8L19 3C18.8 1.3 17.3.1 15.6.1h-12C1.7.1.2 1.6.2 3.5v12.1c0 1.9 1.5 3.4 3.4 3.4h7.7v-2.4c0-1.3.4-2.4 1.2-3.3-1.1 0-2.1-.3-2.9-.9-.8.6-1.8.9-2.9.9-.3 0-.5-.2-.5-.5s.2-.5.5-.5c.7 0 1.5-.2 2.1-.6-.8-.8-1.2-1.8-1.3-3h-.8c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h2.4V6.4c0-.3.2-.5.5-.5s.5.2.5.5v1.3h2.4c.3 0 .5.2.5.5s-.2.5-.5.5h-.7c-.1 1.1-.6 2.1-1.3 2.9.6.4 1.3.6 2.1.6.3 0 .5.2.5.5 1-.9 2.2-1.4 3.6-1.4h2.4V9l3.1-2.2c.2-.2.4-.4.4-.7z" fill="currentColor"/><path opacity=".4" d="M9.6 11c.6-.6 1-1.4 1.1-2.2H8.5c.1.8.5 1.6 1.1 2.2z" fill="currentColor"/>',viewBox:"0 0 32 32"},iconsDuo:{icon:'<path d="M24 16.97c-.057.675-.482.952-.963 1.229-1.899 1.044-3.769 2.09-5.668 3.104-.708.368-1.19.89-1.53 1.66a344.392 344.392 0 01-2.606 5.746c-.255.584-.454 1.291-1.219 1.291-.765 0-.963-.676-1.247-1.26-.935-1.998-1.87-3.995-2.748-6.024-.312-.676-.737-1.137-1.36-1.444-1.87-.984-3.684-1.998-5.554-3.012C.595 17.983 0 17.768 0 17.03c0-.737.567-1.014 1.077-1.29 1.842-1.014 3.683-2.028 5.553-3.012.68-.338 1.134-.83 1.446-1.567.878-2.029 1.813-4.026 2.748-6.024.255-.553.482-1.137 1.19-1.137.709 0 .935.584 1.19 1.137.397.86.907 1.69 1.162 2.612.992 3.535 3.287 5.594 6.404 6.823.822.338 1.615.83 2.408 1.29.425.216.794.523.822 1.107z" fill="currentColor"/><path opacity="0.4" d="M25.24 31.93a.489.489 0 01-.413-.292c-.088-.204-.205-.38-.264-.584-.383-1.575-1.382-2.51-2.94-2.918-.353-.087-.883-.204-.883-.671 0-.496.53-.555.883-.642 1.587-.438 2.587-1.4 2.999-3.035.088-.321.176-.759.617-.788.441 0 .559.438.647.759.382 1.663 1.44 2.655 3.087 3.064.324.087.765.175.794.613 0 .438-.44.554-.764.642-1.676.438-2.735 1.459-3.146 3.152-.118.32-.236.642-.618.7zM32 6.04c-.03.322-.235.468-.441.555-.353.175-.706.35-1.088.438-2 .496-3.117 1.78-3.646 3.706-.147.526-.265 1.284-.97 1.284-.735 0-.824-.817-.941-1.313-.5-2.13-1.97-3.21-3.94-3.794-.47-.146-1.176-.233-1.176-.904 0-.584.617-.73 1.058-.847 2.294-.583 3.646-2.013 4.205-4.29.088-.408.294-.875.852-.875.471 0 .647.409.736.788.529 2.422 2.087 3.823 4.44 4.436.352.175.823.32.911.817z" fill="currentColor"/>',viewBox:"0 0 32 32"},popupsDuo:{icon:'<path opacity="0.4" d="M4 24h24v4a2 2 0 01-2 2H6a2 2 0 01-2-2v-4z" fill="currentColor"/><rect opacity="0.4" x="4" y="2" width="24" height="14.4" rx="2" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2 9.778a2 2 0 00-2 2v8.19a2 2 0 002 2h12.06l2.16 2.496a.5.5 0 00.756 0l2.161-2.496H30a2 2 0 002-2v-8.19a2 2 0 00-2-2H2z" fill="currentColor"/>',viewBox:"0 0 32 32"},uppercaseDuo:{icon:'<path d="M13.393 23.63h-6.85l-1.329 5.009H0L7.668 4h4.6l7.77 24.639h-5.316l-1.329-5.01zm-5.725-4.192h4.6l-2.351-8.793-2.25 8.793z" fill="currentColor"/><path d="M28.013 25.572H23.82l-.818 3.067h-3.271l4.703-15.131h2.76L32 28.639h-3.272l-.715-3.067zm-3.476-2.556h2.862l-1.43-5.419-1.432 5.419z" fill="currentColor"/>',viewBox:"0 0 32 32"},desktop:{icon:'<path d="M26.25 6h-20C5.56 6 5 6.56 5 7.25v12.5c0 .69.56 1.25 1.25 1.25h20c.69 0 1.25-.56 1.25-1.25V7.25c0-.69-.56-1.25-1.25-1.25z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6.25 6.8a.45.45 0 00-.45.45v12.5c0 .248.201.45.45.45h20a.45.45 0 00.45-.45V7.25a.45.45 0 00-.45-.45h-20zm-2.05.45A2.05 2.05 0 016.25 5.2h20a2.05 2.05 0 012.05 2.05v12.5a2.05 2.05 0 01-2.05 2.05h-20a2.05 2.05 0 01-2.05-2.05V7.25zM9.2 26a.8.8 0 01.8-.8h12.5a.8.8 0 010 1.6H10a.8.8 0 01-.8-.8z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5 20.2a.8.8 0 01.8.8v5a.8.8 0 01-1.6 0v-5a.8.8 0 01.8-.8zM20 20.2a.8.8 0 01.8.8v5a.8.8 0 01-1.6 0v-5a.8.8 0 01.8-.8z" fill="currentColor"/>',viewBox:"0 0 32 32"},desktopLine:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M6.25 6.8a.45.45 0 00-.45.45v12.5c0 .248.201.45.45.45h20a.45.45 0 00.45-.45V7.25a.45.45 0 00-.45-.45h-20zm-2.05.45A2.05 2.05 0 016.25 5.2h20a2.05 2.05 0 012.05 2.05v12.5a2.05 2.05 0 01-2.05 2.05h-20a2.05 2.05 0 01-2.05-2.05V7.25zM9.2 26a.8.8 0 01.8-.8h12.5a.8.8 0 010 1.6H10a.8.8 0 01-.8-.8z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5 20.2a.8.8 0 01.8.8v5a.8.8 0 01-1.6 0v-5a.8.8 0 01.8-.8zM20 20.2a.8.8 0 01.8.8v5a.8.8 0 01-1.6 0v-5a.8.8 0 01.8-.8z" fill="currentColor"/>',viewBox:"0 0 32 32"},laptop:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M28 19.818c0 1.51-.74 2.23-2.23 2.23H6.23c-1.48 0-2.23-.72-2.23-2.23V9.231C4 7.71 4.75 7 6.23 7h19.54C27.26 7 28 7.711 28 9.23v10.588zm-5.367 4.88c0 .448-.35.809-.789.809H10.127a.804.804 0 01-.8-.809c0-.448.361-.808.8-.808h11.717c.438 0 .79.36.79.808z" fill="currentColor"/>',viewBox:"0 0 32 32"},laptopLine:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.139 7.118c.527-.52 1.265-.718 2.092-.718H25.77c.83 0 1.57.198 2.096.72.527.522.734 1.262.734 2.11v10.588c0 .845-.207 1.584-.734 2.107-.525.523-1.264.724-2.096.724H6.23c-.828 0-1.566-.202-2.092-.723-.527-.522-.738-1.261-.738-2.108V9.231c0-.85.21-1.591.739-2.113zm.843.855c-.217.213-.382.588-.382 1.258v10.587c0 .664.164 1.04.382 1.255.22.217.597.376 1.249.376H25.77c.657 0 1.034-.16 1.25-.375.217-.215.38-.59.38-1.256V9.231c0-.672-.163-1.046-.379-1.26-.216-.213-.592-.371-1.252-.371H6.232c-.654 0-1.031.157-1.25.373z" fill="currentColor"/><path d="M21.844 25.507c.438 0 .79-.36.79-.809a.796.796 0 00-.79-.808H10.127a.804.804 0 00-.8.808c0 .448.361.809.8.809h11.717z" fill="currentColor"/>',viewBox:"0 0 32 32"},tabletLandscape:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.663 9.368v13.264c0 1.128.942 2.03 2.09 2.03h17.82c1.148 0 2.09-.902 2.09-2.03V9.368c0-1.128-.942-2.03-2.09-2.03H6.753c-1.148 0-2.09.902-2.09 2.03zm16.5.445a.55.55 0 10-1.1 0v12.1a.55.55 0 001.1 0v-12.1zm2.2 7.15a1.1 1.1 0 11-.001-2.2 1.1 1.1 0 010 2.2z" fill="currentColor"/>',viewBox:"0 0 32 32"},tabletLandscapeLine:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.663 22.632V9.368c0-1.128.942-2.03 2.09-2.03h17.82c1.148 0 2.09.902 2.09 2.03v13.264c0 1.128-.942 2.03-2.09 2.03H6.753c-1.148 0-2.09-.902-2.09-2.03zm1.965-14.05c-.488.057-.865.448-.865.921v12.994l.007.116c.061.458.477.812.983.812h17.82l.124-.007c.489-.058.866-.448.866-.921V9.503l-.008-.116c-.061-.458-.477-.812-.982-.812H6.753l-.125.007zm14.534 1.23a.55.55 0 10-1.1 0v12.1a.55.55 0 001.1 0v-12.1zm2.2 7.15a1.1 1.1 0 110-2.199 1.1 1.1 0 010 2.2z" fill="currentColor"/>',viewBox:"0 0 32 32"},tablet:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M22.295 5H9.03C7.902 5 7 5.942 7 7.09v17.82C7 26.058 7.902 27 9.03 27h13.265c1.128 0 2.03-.942 2.03-2.09V7.09c0-1.148-.902-2.09-2.03-2.09zm-.445 16.5a.55.55 0 000-1.1H9.75a.55.55 0 000 1.1h12.1zm-7.15 2.2a1.1 1.1 0 112.2 0 1.1 1.1 0 01-2.2 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},tabletLine:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M9.03 5h13.265c1.128 0 2.03.942 2.03 2.09v17.82c0 1.148-.902 2.09-2.03 2.09H9.03C7.902 27 7 26.058 7 24.91V7.09C7 5.942 7.902 5 9.03 5zm14.05 1.966c-.057-.489-.448-.866-.92-.866H9.166l-.117.008c-.457.06-.811.477-.811.982v17.82l.007.125c.057.488.448.865.92.865H22.16l.116-.008c.457-.06.812-.476.812-.982V7.09l-.008-.124zM21.85 21.5a.55.55 0 000-1.1H9.75a.55.55 0 000 1.1h12.1zm-7.15 2.2a1.1 1.1 0 112.2 0 1.1 1.1 0 01-2.2 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},mobile:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.19 6.212H11.084c-.973 0-1.685.853-1.685 1.829v15.592c0 .976.712 1.829 1.685 1.829H21.19c.973 0 1.684-.853 1.684-1.829V8.041c0-.976-.711-1.83-1.684-1.83zm-3.61 3.85a.481.481 0 000-.963h-2.887a.481.481 0 100 .963h2.888zm-2.405 11.55a.962.962 0 111.924 0 .962.962 0 01-1.924 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},mobileLine:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M11.084 6.212H21.19c.973 0 1.684.853 1.684 1.829v15.592c0 .976-.711 1.829-1.684 1.829H11.084c-.973 0-1.685-.853-1.685-1.829V8.041c0-.976.712-1.83 1.685-1.83zm10.823 1.72c-.045-.428-.349-.758-.717-.758H11.084l-.09.007c-.356.053-.632.417-.632.86v15.592l.006.109c.044.427.348.757.716.757H21.19l.09-.006c.357-.054.632-.418.632-.86V8.041l-.005-.11zm-4.326 2.13a.481.481 0 100-.963h-2.888a.481.481 0 100 .963h2.888zm-2.406 11.55a.962.962 0 111.924 0 .962.962 0 01-1.924 0z" fill="currentColor"/>',viewBox:"0 0 32 32"},mobileLandscape:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M6 10.21v10.106C6 21.289 6.853 22 7.829 22H23.42c.976 0 1.829-.712 1.829-1.684V10.209c0-.973-.853-1.684-1.829-1.684H7.83C6.853 8.525 6 9.236 6 10.209zm3.85 3.609a.481.481 0 10-.963 0v2.887a.481.481 0 10.963 0V13.82zm11.55 2.406a.962.962 0 110-1.924.962.962 0 010 1.924z" fill="currentColor"/>',viewBox:"0 0 32 32"},mobileLandscapeLine:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M6 20.316V10.209c0-.973.853-1.684 1.829-1.684H23.42c.976 0 1.829.711 1.829 1.684v10.107c0 .973-.853 1.684-1.829 1.684H7.83C6.853 22 6 21.288 6 20.316zM7.72 9.493c-.428.045-.758.349-.758.716v10.107l.007.09c.054.356.417.632.86.632H23.42l.109-.006c.427-.045.757-.349.757-.716V10.21l-.006-.091c-.054-.356-.418-.631-.86-.631H7.83l-.11.005zm2.13 4.326a.481.481 0 10-.963 0v2.887a.481.481 0 10.963 0V13.82zm11.55 2.406a.962.962 0 110-1.924.962.962 0 010 1.924z" fill="currentColor"/>',viewBox:"0 0 32 32"},justifyStart:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 13C5.05228 13 5.5 12.5523 5.5 12L5.5 4C5.5 3.44772 5.05229 3 4.5 3C3.94772 3 3.5 3.44771 3.5 4L3.5 12C3.5 12.5523 3.94772 13 4.5 13ZM13 1C13.2761 1 13.5 0.776143 13.5 0.500001C13.5 0.223858 13.2761 9.53674e-07 13 9.53674e-07L1 0C0.723858 0 0.5 0.223858 0.5 0.5C0.5 0.776142 0.723858 1 1 1L13 1ZM10.5 8C10.5 8.55229 10.0523 9 9.5 9C8.94771 9 8.5 8.55228 8.5 8L8.5 4C8.5 3.44772 8.94772 3 9.5 3C10.0523 3 10.5 3.44772 10.5 4L10.5 8Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},justifyEnd:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 0a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V1a1 1 0 0 1 1-1ZM13 12a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h12Zm-2.5-7a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0V5Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},justifyCenter:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M.5.5A.5.5 0 0 1 1 0h12a.5.5 0 0 1 0 1H1A.5.5 0 0 1 .5.5Zm3 5.5a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1ZM1 11a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H1Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},justifySpaceAround:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 0a.5.5 0 0 1 0 1H.5a.5.5 0 1 1 0-1h13ZM4 5a1 1 0 0 1 0-2h6a1 1 0 1 1 0 2H4Zm0 5a1 1 0 1 1 0-2h6a1 1 0 1 1 0 2H4Zm10 2.5a.5.5 0 0 0-.5-.5H.5a.5.5 0 0 0 0 1h13a.5.5 0 0 0 .5-.5Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},justifySpaceBetween:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 0a.5.5 0 0 1 0 1H.5a.5.5 0 1 1 0-1h13ZM4 5a1 1 0 0 1 0-2h6a1 1 0 1 1 0 2H4Zm0 5a1 1 0 1 1 0-2h6a1 1 0 1 1 0 2H4Zm10 2.5a.5.5 0 0 0-.5-.5H.5a.5.5 0 0 0 0 1h13a.5.5 0 0 0 .5-.5Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},justifySpaceEvenly:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M.5.5C.5.22.72 0 1 0h12a.5.5 0 0 1 0 1H1A.5.5 0 0 1 .5.5Zm3 5.5a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1ZM1 11a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H1Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},alignStart:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 13a1 1 0 0 0 1-1V4a1 1 0 1 0-2 0v8a1 1 0 0 0 1 1ZM13 1a.5.5 0 0 0 0-1H1a.5.5 0 0 0 0 1h12Zm-2.5 7a1 1 0 1 1-2 0V4a1 1 0 0 1 2 0v4Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},alignEnd:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 0a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V1a1 1 0 0 1 1-1ZM13 12a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h12Zm-2.5-7a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0V5Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},alignCenter:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 11.5a1 1 0 0 1-1-1v-4H1a.5.5 0 0 1 0-1h2.5v-4a1 1 0 0 1 2 0v4h3v-2a1 1 0 1 1 2 0v2H13a.5.5 0 0 1 0 1h-2.5v2a1 1 0 1 1-2 0v-2h-3v4a1 1 0 0 1-1 1Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},alignStretch:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M.5 14a.5.5 0 0 1-.5-.5V.5a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5Zm10-8a1 1 0 1 0 0-2h-7a1 1 0 0 0 0 2h7Zm-1 4a1 1 0 1 0 0-2h-5a1 1 0 1 0 0 2h5Zm3.5 3.5a.5.5 0 0 0 1 0V.5a.5.5 0 0 0-1 0v13Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},flexWrap:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M0 .5a.5.5 0 0 1 1 0v13a.5.5 0 0 1-1 0V.5ZM13.5 0a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 1 0V.5a.5.5 0 0 0-.5-.5ZM7.36 3.03C9.7 3.03 11.5 4.22 11.5 6s-1.22 3.01-3.3 3.01H4.7l-1.11-.04.94.83.55.55c.07.07.1.15.1.25 0 .21-.14.36-.36.36a.4.4 0 0 1-.26-.11L2.62 8.93a.37.37 0 0 1-.12-.27c0-.1.04-.2.12-.27l1.94-1.93a.4.4 0 0 1 .26-.11c.22 0 .37.15.37.36 0 .1-.04.19-.1.25l-.56.55-.94.83 1.1-.04h3.56c1.62 0 2.52-.92 2.52-2.25s-1.29-2.3-3.41-2.3h-4.2a.35.35 0 0 1-.37-.36c0-.2.15-.36.37-.36h4.2Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},flexNoWrap:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.88 1a.5.5 0 0 1 .87.5L7.15 4.3C8.54 4.73 9.5 5.7 9.5 7c0 1.79-1.22 3.01-3.3 3.01H3.83l-.76 1.32.02.02c.06.07.1.15.1.25 0 .21-.15.36-.37.36-.03 0-.07 0-.1-.02L1.25 14.5a.5.5 0 1 1-.87-.5l1.58-2.74L.62 9.93a.37.37 0 0 1-.12-.27c0-.1.04-.2.12-.27l1.94-1.93a.4.4 0 0 1 .26-.11c.22 0 .37.15.37.36 0 .1-.04.19-.1.25l-.56.55-.94.83 1.1-.04h.4l2.63-4.54H1.16a.35.35 0 0 1-.37-.37c0-.2.15-.36.37-.36h4.2c.26 0 .51.01.75.04L7.88 1Zm-1.1 3.92L4.25 9.3h2c1.62 0 2.52-.92 2.52-2.25 0-1-.73-1.8-2-2.13Zm-4.1 5.1-1.1-.04.75.65.35-.6Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},flexWrapReverse:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M0 4.84c0 1.74 1.8 2.9 4.14 2.9h4.2c.22 0 .37-.16.37-.35 0-.2-.15-.35-.37-.35h-4.2C2.02 7.04.73 6.1.73 4.8c0-1.3.9-2.2 2.52-2.2H6.8l1.11-.03-.94.8-.55.54a.32.32 0 0 0-.1.25c0 .2.14.35.36.35a.4.4 0 0 0 .26-.11l1.94-1.88a.35.35 0 0 0 0-.53L6.94.1A.4.4 0 0 0 6.68 0c-.22 0-.37.15-.37.35 0 .1.04.18.1.25l.56.54.94.8-1.1-.04H3.3C1.21 1.9 0 3.1 0 4.84Zm11 3.32c0-1.74-1.8-2.9-4.14-2.9h-4.2c-.22 0-.37.16-.37.35 0 .2.15.35.37.35h4.2c2.12 0 3.41.94 3.41 2.24 0 1.3-.9 2.2-2.52 2.2H4.2l-1.11.03.94-.8.55-.54c.07-.06.1-.15.1-.25 0-.2-.14-.35-.36-.35a.4.4 0 0 0-.26.11l-1.94 1.88a.35.35 0 0 0 0 .53l1.94 1.88a.4.4 0 0 0 .26.11c.22 0 .37-.15.37-.35 0-.1-.04-.18-.1-.25l-.56-.54-.94-.8 1.1.04h3.5C9.79 11.1 11 9.9 11 8.16Z" fill="currentColor" fill-opacity="1"/>',viewBox:"0 0 14 13"},dockLeft:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 0a.83.83 0 0 0-.83.83v8.34c0 .46.37.83.83.83h10c.46 0 .83-.37.83-.83V.83A.83.83 0 0 0 11.5 0h-10Zm9.17 1.67H4.83v6.66h5.84V1.67Z" fill="currentColor"/>',viewBox:"0 0 12 10"},dockRight:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M11.1647 0C11.6253 0 11.998 0.373077 11.998 0.833333V9.16667C11.998 9.62692 11.6253 10 11.1647 10H1.16471C0.704101 10 0.331379 9.62692 0.331379 9.16667V0.833333C0.331379 0.373077 0.704101 0 1.16471 0H11.1647ZM1.99805 1.66667H7.83138V8.33333H1.99805V1.66667Z" fill="currentColor"/>',viewBox:"0 0 12 10"},dockFloat:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M3.5 0a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1h7.17a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1H3.5ZM10 1.67H4.17v4.16H10V1.67ZM0 2.5h1.67V10H0V2.5Zm9.17 5.83V10h-7.5V8.33h7.5Z" fill="currentColor"/>',viewBox:"0 0 12 10"},giftBox:{icon:'<path fill-rule="evenodd" d="M5 5a3 3 0 015-2.236A3 3 0 0114.83 6H16a2 2 0 110 4h-5V9a1 1 0 10-2 0v1H4a2 2 0 110-4h1.17C5.06 5.687 5 5.35 5 5zm4 1V5a1 1 0 10-1 1h1zm3 0a1 1 0 10-1-1v1h1z" clip-rule="evenodd" />  <path d="M9 11H3v5a2 2 0 002 2h4v-7zM11 18h4a2 2 0 002-2v-5h-6v7z" />',viewBox:"0 0 20 20"},premium:{icon:'<rect opacity="0.7" x="2.41504" y="10.5635" width="10.9714" height="2.4" fill="white" /> <path opacity="0.4" d="M8.07202 2.16406L13.2149 9.87834H2.75781L8.07202 2.16406Z" fill="white" /> <g filter="url(#filter0_d_5080_949)"> <path d="M13.8313 4.24902L5.08691 9.90613L13.348 9.91754L13.8313 4.24902Z" fill="#FDF1DF" /> </g> <g filter="url(#filter1_d_5080_949)"> <path d="M2 4.24902L10.7444 9.90613L2.48335 9.91754L2 4.24902Z" fill="#FFFAF4" /> </g> <defs> <filter id="filter0_d_5080_949" x="3.28691" y="0.649023" width="12.3441" height="9.26846" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" > <feFlood flood-opacity="0" result="BackgroundImageFix" /> <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" /> <feOffset dy="-1.8" /> <feGaussianBlur stdDeviation="0.9" /> <feComposite in2="hardAlpha" operator="out" /> <feColorMatrix type="matrix" values="0 0 0 0 0.911683 0 0 0 0 0.680468 0 0 0 0 0.301132 0 0 0 0.1 0" /> <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5080_949" /> <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5080_949" result="shape" /> </filter> <filter id="filter1_d_5080_949" x="0.2" y="0.649023" width="12.3441" height="9.26846" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" > <feFlood flood-opacity="0" result="BackgroundImageFix" /> <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" /> <feOffset dy="-1.8" /> <feGaussianBlur stdDeviation="0.9" /> <feComposite in2="hardAlpha" operator="out" /> <feColorMatrix type="matrix" values="0 0 0 0 0.911683 0 0 0 0 0.680468 0 0 0 0 0.301132 0 0 0 0.1 0" /> <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_5080_949" /> <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_5080_949" result="shape" /> </filter> </defs>',viewBox:"0 0 16 13"},bars:{icon:'<path d="M0.6 3.4V0.6H15.4V3.4H0.6ZM0.6 8.9V6.1H15.4V8.9H0.6ZM0.6 14.4V11.6H15.4V14.4H0.6Z" stroke="#676D98" stroke-width="1.2" stroke-linejoin="round" fill="none" />',viewBox:"0 0 16 15"},verticalBars:{icon:'<path d="M16.8748 3.1C16.8886 3.1 16.8998 3.11119 16.8998 3.125L16.8998 17.875C16.8998 17.8888 16.8886 17.9 16.8748 17.9L14.1248 17.9C14.1109 17.9 14.0998 17.8888 14.0998 17.875L14.0998 3.125C14.0998 3.11119 14.111 3.1 14.1248 3.1L16.8748 3.1ZM11.3743 3.1C11.3881 3.1 11.3993 3.11119 11.3993 3.125L11.3993 17.875C11.3993 17.8888 11.3881 17.9 11.3743 17.9H8.62427C8.61046 17.9 8.59927 17.8888 8.59927 17.875L8.59927 3.125C8.59927 3.11119 8.61046 3.1 8.62427 3.1L11.3743 3.1ZM5.875 3.1C5.88881 3.1 5.9 3.11119 5.9 3.125L5.9 17.875C5.9 17.8888 5.88881 17.9 5.875 17.9H3.125C3.11119 17.9 3.1 17.8888 3.1 17.875L3.1 3.125C3.1 3.11119 3.11119 3.1 3.125 3.1L5.875 3.1Z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" fill="none"/>',viewBox:"0 0 20 20"},exit:{icon:'<path d="M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 24 24"},settings:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M13.75 5.669V3.5a.5.5 0 0 0-1 0v2.198a2.188 2.188 0 0 0 0 4.229V16.5a.5.5 0 0 0 1 0V9.956a2.188 2.188 0 0 0 0-4.287Zm.75 2.144a1.188 1.188 0 1 0-2.375 0 1.188 1.188 0 0 0 2.375 0ZM7.125 3a.5.5 0 0 0-.5.5v6.573a2.188 2.188 0 0 0 0 4.229V16.5a.5.5 0 0 0 1 0v-2.169a2.188 2.188 0 0 0 0-4.287V3.5a.5.5 0 0 0-.5-.5Zm1.25 9.188a1.188 1.188 0 1 1-2.375 0 1.188 1.188 0 0 1 2.375 0Z" clip-rule="evenodd"/>',viewBox:"0 0 20 20"},generate:{icon:'<path d="M14 7.5C14 7.63261 13.9473 7.75979 13.8535 7.85355C13.7598 7.94732 13.6326 8 13.5 8H12.5V9C12.5 9.13261 12.4473 9.25979 12.3535 9.35355C12.2598 9.44732 12.1326 9.5 12 9.5C11.8674 9.5 11.7402 9.44732 11.6464 9.35355C11.5527 9.25979 11.5 9.13261 11.5 9V8H10.5C10.3674 8 10.2402 7.94732 10.1464 7.85355C10.0527 7.75979 9.99999 7.63261 9.99999 7.5C9.99999 7.36739 10.0527 7.24021 10.1464 7.14645C10.2402 7.05268 10.3674 7 10.5 7H11.5V6C11.5 5.86739 11.5527 5.74021 11.6464 5.64645C11.7402 5.55268 11.8674 5.5 12 5.5C12.1326 5.5 12.2598 5.55268 12.3535 5.64645C12.4473 5.74021 12.5 5.86739 12.5 6V7H13.5C13.6326 7 13.7598 7.05268 13.8535 7.14645C13.9473 7.24021 14 7.36739 14 7.5ZM1.99999 2.5H2.99999V3.5C2.99999 3.63261 3.05266 3.75979 3.14643 3.85355C3.2402 3.94732 3.36738 4 3.49999 4C3.63259 4 3.75977 3.94732 3.85354 3.85355C3.94731 3.75979 3.99999 3.63261 3.99999 3.5V2.5H4.99999C5.13259 2.5 5.25977 2.44732 5.35354 2.35355C5.44731 2.25979 5.49999 2.13261 5.49999 2C5.49999 1.86739 5.44731 1.74021 5.35354 1.64645C5.25977 1.55268 5.13259 1.5 4.99999 1.5H3.99999V0.5C3.99999 0.367392 3.94731 0.240215 3.85354 0.146447C3.75977 0.0526785 3.63259 0 3.49999 0C3.36738 0 3.2402 0.0526785 3.14643 0.146447C3.05266 0.240215 2.99999 0.367392 2.99999 0.5V1.5H1.99999C1.86738 1.5 1.7402 1.55268 1.64643 1.64645C1.55266 1.74021 1.49999 1.86739 1.49999 2C1.49999 2.13261 1.55266 2.25979 1.64643 2.35355C1.7402 2.44732 1.86738 2.5 1.99999 2.5ZM9.99999 10H9.49999V9.5C9.49999 9.36739 9.44731 9.24021 9.35354 9.14645C9.25977 9.05268 9.13259 9 8.99999 9C8.86738 9 8.7402 9.05268 8.64643 9.14645C8.55266 9.24021 8.49999 9.36739 8.49999 9.5V10H7.99999C7.86738 10 7.7402 10.0527 7.64643 10.1464C7.55266 10.2402 7.49999 10.3674 7.49999 10.5C7.49999 10.6326 7.55266 10.7598 7.64643 10.8536C7.7402 10.9473 7.86738 11 7.99999 11H8.49999V11.5C8.49999 11.6326 8.55266 11.7598 8.64643 11.8536C8.7402 11.9473 8.86738 12 8.99999 12C9.13259 12 9.25977 11.9473 9.35354 11.8536C9.44731 11.7598 9.49999 11.6326 9.49999 11.5V11H9.99999C10.1326 11 10.2598 10.9473 10.3535 10.8536C10.4473 10.7598 10.5 10.6326 10.5 10.5C10.5 10.3674 10.4473 10.2402 10.3535 10.1464C10.2598 10.0527 10.1326 10 9.99999 10ZM12.2069 3L3.49999 11.7069C3.31247 11.8943 3.05821 11.9995 2.79311 11.9995C2.52801 11.9995 2.27375 11.8943 2.08624 11.7069L0.792486 10.4144C0.699603 10.3215 0.625923 10.2113 0.575654 10.0899C0.525385 9.96858 0.499512 9.83853 0.499512 9.70719C0.499512 9.57585 0.525385 9.44579 0.575654 9.32445C0.625923 9.20311 0.699603 9.09286 0.792486 9L9.49999 0.293125C9.59285 0.200242 9.7031 0.126562 9.82444 0.0762935C9.94578 0.0260245 10.0758 0.000151157 10.2072 0.000151157C10.3385 0.000151157 10.4686 0.0260245 10.5899 0.0762935C10.7113 0.126562 10.8215 0.200242 10.9144 0.293125L12.2069 1.58562C12.2997 1.67849 12.3734 1.78874 12.4237 1.91008C12.474 2.03142 12.4998 2.16147 12.4998 2.29281C12.4998 2.42415 12.474 2.55421 12.4237 2.67555C12.3734 2.79689 12.2997 2.90714 12.2069 3ZM11.5 2.29313L10.2069 1L8.20686 3L9.49999 4.29313L11.5 2.29313Z" fill="currentColor"/>',viewBox:"0 0 14 12"},update:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M1.333 0c.737 0 1.334.597 1.334 1.333v3.124A11.976 11.976 0 0 1 12 0c6.12 0 11.169 4.58 11.907 10.502a1.333 1.333 0 0 1-2.646.33C20.687 6.229 16.76 2.667 12 2.667a9.323 9.323 0 0 0-7.66 4H8a1.333 1.333 0 1 1 0 2.666H1.333A1.333 1.333 0 0 1 0 8V1.333C0 .597.597 0 1.333 0Zm-.082 12.01a1.333 1.333 0 0 1 1.488 1.158 9.335 9.335 0 0 0 16.922 4.165H16a1.333 1.333 0 1 1 0-2.666h6.667c.736 0 1.333.597 1.333 1.333v6.667a1.333 1.333 0 0 1-2.667 0v-3.124A11.976 11.976 0 0 1 12 24C5.88 24 .831 19.42.093 13.498A1.333 1.333 0 0 1 1.25 12.01Z" clip-rule="evenodd"/></svg>',viewBox:"0 0 24 24"},recycle:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M13.025 5.378c0 .76.617 1.378 1.378 1.378h4.127a4.131 4.131 0 0 1 4.137 4.139v8.242h2.755v-8.242A6.887 6.887 0 0 0 18.53 4h-4.127c-.761 0-1.378.617-1.378 1.378Zm5.505 22.044c0-.76-.617-1.378-1.377-1.378h-4.128a4.142 4.142 0 0 1-4.136-4.133v-6.889H6.133v6.89c0 3.796 3.09 6.888 6.892 6.888h4.128c.76 0 1.377-.617 1.377-1.378Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M8.485 12.67a1.378 1.378 0 0 0-1.948 0l-4.133 4.134a1.378 1.378 0 0 0 1.948 1.949l3.16-3.041 3.158 3.04a1.378 1.378 0 0 0 1.949-1.948l-4.134-4.133ZM24.044 17.09l-3.159-3.042a1.378 1.378 0 1 0-1.948 1.949l4.133 4.133c.538.538 1.41.538 1.949 0l4.133-4.133a1.378 1.378 0 1 0-1.949-1.949l-3.159 3.041Z" clip-rule="evenodd"/>',viewBox:"0 0 32 32"},variations:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M10.48 5.127H8.682V15h-1.36V5.127H5.527L8.004 1l2.477 4.127Zm-7.986 2.62L1.325 8.914.5 4.788l4.127.825-1.17 1.171L5.93 9.26l.2.2V15H4.77v-4.978L2.494 7.746Zm11.012 0 1.169 1.168.825-4.127-4.127.825 1.17 1.171L10.07 9.26l-.2.2V15h1.361v-4.978l2.276-2.276Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},arrowLeft:{icon:'<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.5 12h-15m0 0 6.75 6.75M4.5 12l6.75-6.75"/>',viewBox:"0 0 24 24"},magicFill:{icon:'<path fill="currentColor" d="M9.45 4.459 3.19 10.81l-.187 1.783A.364.364 0 0 0 3.41 13l1.783-.188 6.259-6.351-2.003-2.002Zm3.237-.298-.938-.938a.746.746 0 0 0-1.064 0l-.876.876L11.811 6.1l.876-.876a.746.746 0 0 0 0-1.064ZM4 1l.81 2.19L7 4l-2.19.81L4 7l-.81-2.19L1 4l2.19-.81L4 1ZM12 8l1.08 2.92L16 12l-2.92 1.08L12 16l-1.08-2.92L8 12l2.92-1.08L12 8Z"/>',viewBox:"0 0 16 16"},insert:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M8.551 2.2a.55.55 0 1 0-1.1 0v6.55L5.597 7.266a.55.55 0 0 0-.687.86l2.748 2.198c.2.16.486.16.687 0l2.748-2.199a.55.55 0 0 0-.688-.859L8.551 8.75V2.2ZM3.055 9.894a.55.55 0 0 0-1.1 0v3.298c0 .303.246.55.55.55h10.992a.55.55 0 0 0 .55-.55V9.894a.55.55 0 1 0-1.1 0v2.748H3.055V9.894Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},chevronLeft:{icon:'<path d="M15.75 19.5 8.25 12l7.5-7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" />',viewBox:"0 0 24 24"},chevronRight:{icon:'<path d="m8.25 4.5 7.5 7.5-7.5 7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" />',viewBox:"0 0 24 24"},command:{icon:'<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.5 4.5 15 8l-3.5 3.5m-7 0L1 8l3.5-3.5m5-2-3 11" fill="none"/>',viewBox:"0 0 16 16"},fixingIcon:{icon:'<path fill="#F2B300" d="m66.582 45.818-4.506-1.536a18.64 18.64 0 0 0-1.317-6.665l3.583-3.135a1.17 1.17 0 0 0 .26-1.432 24.102 24.102 0 0 0-6.968-7.955 1.164 1.164 0 0 0-1.449.06l-3.582 3.134a18.263 18.263 0 0 0-6.431-2.192l-.921-4.661a1.16 1.16 0 0 0-1.112-.934c-3.638-.09-7.2.653-10.367 2.048a1.16 1.16 0 0 0-.673 1.287l.923 4.671a18.839 18.839 0 0 0-5.114 4.473l-4.496-1.538a1.15 1.15 0 0 0-1.362.496 23.957 23.957 0 0 0-3.419 10.008c-.06.544.267 1.052.785 1.225l4.506 1.537a18.642 18.642 0 0 0 1.317 6.664l-3.583 3.135a1.17 1.17 0 0 0-.26 1.432 24.1 24.1 0 0 0 6.969 7.955 1.164 1.164 0 0 0 1.448-.06l3.583-3.134a18.263 18.263 0 0 0 6.43 2.192l.923 4.67a1.16 1.16 0 0 0 1.112.935c3.639.09 7.2-.653 10.368-2.048.5-.218.778-.756.673-1.288l-.924-4.67a18.84 18.84 0 0 0 5.114-4.473l4.506 1.536a1.15 1.15 0 0 0 1.362-.496 23.96 23.96 0 0 0 3.418-10.008c.04-.55-.278-1.06-.796-1.233Zm-21.588 6.268c-4.186.828-8.268-1.907-9.096-6.094-.827-4.186 1.908-8.268 6.095-9.096 4.186-.827 8.268 1.908 9.096 6.094.827 4.187-1.908 8.269-6.095 9.096Z"/>',viewBox:"0 0 87 89"},arrowPath:{icon:'<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M16.023 9.348h4.992l-3.18-3.183a8.25 8.25 0 0 0-13.804 3.7m-1.046 9.779v-4.992m0 0h4.992m-4.992 0 3.18 3.183a8.25 8.25 0 0 0 13.803-3.7m1.047-9.78v4.99" fill="none"/>',viewBox:"0 0 24 24"},openBook:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M11.5 6.982c-4.268-3.644-9-1.146-9-1.146v10.57c5.012 0 7.863 1.712 9 2.594V6.982Z" clip-rule="evenodd"/><path fill="#7784A8" d="M21.5 16.407c-5.012 0-7.864 1.71-9 2.593V6.982c4.268-3.645 9-1.147 9-1.147v10.572Z" opacity=".6"/>',viewBox:"0 0 24 24"},broom:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M20.0215 40.1489C31.0672 40.1489 40.0215 31.1946 40.0215 20.1489C40.0215 9.10323 31.0672 0.148926 20.0215 0.148926C8.97579 0.148926 0.0214844 9.10323 0.0214844 20.1489C0.0214844 31.1946 8.97579 40.1489 20.0215 40.1489ZM15.7985 18.1171H14.5373V16.8559H13.2761V18.1171H12.0149V19.3783H13.2761V20.6395H14.5373V19.3783H15.7985V18.1171ZM13.2761 23.1619H12.0149V21.9007H10.7537V23.1619H9.49247V24.4231H10.7537V25.6844H12.0149V24.4231H13.2761V23.1619ZM17.6903 20.0089H27.1494V19.3783C27.1494 19.0438 27.0166 18.723 26.78 18.4865C26.5435 18.25 26.2227 18.1171 25.8882 18.1171H23.3658V10.5498H21.474V18.1171H18.9516C18.6171 18.1171 18.2963 18.25 18.0597 18.4865C17.8232 18.723 17.6903 19.0438 17.6903 19.3783V20.0089ZM24.0046 27.5762H26.5188C27.2037 25.1604 27.1789 23.2247 27.1567 21.4976C27.1557 21.4214 27.1548 21.3456 27.1539 21.2701H17.6721C17.5838 23.4835 17.0534 25.5992 16.4291 27.5762H18.8431C19.2902 26.687 19.5822 25.3016 19.5822 24.4231C19.5822 24.2559 19.6486 24.0955 19.7669 23.9772C19.8851 23.859 20.0455 23.7925 20.2128 23.7925C20.38 23.7925 20.5404 23.859 20.6587 23.9772C20.7769 24.0955 20.8434 24.2559 20.8434 24.4231C20.8434 25.178 20.646 26.4745 20.221 27.5762H22.6267C23.0738 26.687 23.3658 25.3016 23.3658 24.4231C23.3658 24.2559 23.4322 24.0955 23.5505 23.9772C23.6688 23.859 23.8292 23.7925 23.9964 23.7925C24.1637 23.7925 24.3241 23.859 24.4423 23.9772C24.5606 24.0955 24.627 24.2559 24.627 24.4231C24.627 25.178 24.4296 26.4745 24.0046 27.5762Z" fill="currentColor"/>',viewBox:"0 0 40 40"},wand:{icon:'<path fill="url(#a)" d="M18.407 11.781a.594.594 0 0 1-.594.594h-1.187v1.188a.594.594 0 0 1-1.188 0v-1.188h-1.187a.594.594 0 0 1 0-1.188h1.187V10a.594.594 0 1 1 1.188 0v1.188h1.187a.594.594 0 0 1 .594.593ZM4.157 5.844h1.187V7.03a.594.594 0 0 0 1.188 0V5.844h1.187a.594.594 0 0 0 0-1.188H6.532V3.47a.594.594 0 1 0-1.188 0v1.187H4.157a.594.594 0 0 0 0 1.188Zm9.5 8.906h-.594v-.594a.594.594 0 0 0-1.187 0v.594h-.594a.594.594 0 0 0 0 1.188h.594v.593a.594.594 0 1 0 1.187 0v-.593h.594a.594.594 0 0 0 0-1.188Zm2.62-8.313L5.938 16.777a1.188 1.188 0 0 1-1.679 0l-1.536-1.535a1.188 1.188 0 0 1 0-1.68l10.34-10.339a1.187 1.187 0 0 1 1.68 0l1.534 1.535a1.187 1.187 0 0 1 0 1.68Zm-.839-.839-1.536-1.535-2.374 2.375 1.535 1.535 2.375-2.375Z"/><defs><linearGradient id="a" x1="1.23" x2="23.351" y1="19.797" y2="13.966" gradientUnits="userSpaceOnUse"><stop stop-color="#FF9645"/><stop offset=".239" stop-color="#FF6471"/><stop offset=".465" stop-color="#CF6EBD"/><stop offset=".746" stop-color="#A477D1"/><stop offset="1" stop-color="#268DDA"/></linearGradient></defs>',viewBox:"0 0 19 20"},editorHeading1:{icon:'<path fill="currentColor" d="M19.061 7v18h-3.408v-7.827H8.405V25H5.021V7h3.384v7.292h7.248V7h3.408ZM20.883 10.365V7h6.096v18h-3.552V10.365h-2.544Z"/>',viewBox:"0 0 32 32"},editorHeading2:{icon:'<path fill="currentColor" d="M15.847 7.374V25h-3.408v-7.664H5.19V25H1.807V7.374H5.19v7.14h7.248v-7.14h3.408ZM18.268 22.229c5.424-3.911 8.136-7.157 8.136-9.737 0-.782-.184-1.398-.552-1.847-.352-.45-.912-.674-1.68-.674-1.584 0-2.424 1.123-2.52 3.37h-3.288c.096-2.08.704-3.653 1.824-4.718C21.308 7.54 22.724 7 24.436 7c1.744 0 3.08.474 4.008 1.423.944.932 1.416 2.18 1.416 3.745 0 1.231-.352 2.471-1.056 3.72a15.037 15.037 0 0 1-2.64 3.42 21.308 21.308 0 0 1-3.384 2.671h7.416v2.871H18.268V22.23Z"/>',viewBox:"0 0 32 32"},editorHeading3:{icon:'<path fill="currentColor" d="M15.749 7.657V24.83h-3.408v-7.468H5.093v7.468H1.709V7.657h3.384v6.957h7.248V7.657h3.408ZM24.506 7c1.152 0 2.136.203 2.952.608.832.406 1.456.965 1.872 1.678.432.714.648 1.509.648 2.384 0 1.103-.296 2.011-.888 2.725-.592.697-1.376 1.127-2.352 1.289v.121c2.368.714 3.552 2.125 3.552 4.233 0 1.476-.488 2.675-1.464 3.6-.976.908-2.352 1.362-4.128 1.362-1.888 0-3.392-.47-4.512-1.41-1.12-.958-1.744-2.393-1.872-4.306h3.312c.08.876.36 1.573.84 2.092.496.502 1.192.754 2.088.754.768 0 1.368-.211 1.8-.633.432-.438.648-1.005.648-1.702 0-.827-.312-1.46-.936-1.898-.624-.438-1.544-.656-2.76-.656h-.696v-2.798h.696c2.24.033 3.36-.754 3.36-2.36 0-.697-.2-1.24-.6-1.629-.4-.405-.944-.608-1.632-.608-.72 0-1.312.235-1.776.705-.464.454-.728 1.095-.792 1.922h-3.312c.096-1.751.656-3.097 1.68-4.038C21.258 7.478 22.682 7 24.506 7Z"/>',viewBox:"0 0 32 32"},editorHeading4:{icon:'<path fill="currentColor" d="M14.813 7.202V25h-3.408v-7.74H4.157V25H.773V7.202h3.384v7.21h7.248v-7.21h3.408ZM17.283 21.42v-2.95L25.395 7h3.624v11.345h2.208v3.075h-2.208V25H25.61v-3.58h-8.328Zm8.592-10.26-5.136 7.184h5.136V11.16Z"/>',viewBox:"0 0 32 32"},editorHeading5:{icon:'<path fill="currentColor" d="M15.208 7.349v17.576H11.8v-7.643H4.552v7.643H1.168V7.35h3.384v7.12H11.8v-7.12h3.408ZM29.99 10.087h-8.04v4.432c.367-.449.871-.805 1.511-1.07a5.41 5.41 0 0 1 2.16-.424c1.168 0 2.136.265 2.904.797a4.537 4.537 0 0 1 1.728 2.09c.384.864.576 1.827.576 2.889 0 1.875-.512 3.377-1.536 4.506C28.285 24.436 26.837 25 24.95 25c-1.232 0-2.304-.224-3.216-.672-.912-.465-1.624-1.104-2.136-1.917-.512-.83-.792-1.793-.84-2.888h3.288c.128.747.424 1.344.888 1.792.464.432 1.08.648 1.848.648.928 0 1.616-.29 2.064-.872.464-.597.696-1.386.696-2.365 0-.93-.24-1.651-.72-2.166-.48-.514-1.16-.772-2.04-.772-.64 0-1.184.15-1.632.448a2.496 2.496 0 0 0-.984 1.146h-3.288V7H29.99v3.087Z"/>',viewBox:"0 0 32 32"},editorHeading6:{icon:'<path fill="currentColor" d="M15.352 7.61v17.22h-3.408v-7.488H4.696v7.487H1.314V7.61h3.384v6.976h7.247V7.61h3.408ZM26.99 12.293c-.256-1.691-1.104-2.537-2.544-2.537-1.12 0-1.936.504-2.448 1.512-.512.992-.736 2.553-.672 4.683.256-.78.752-1.398 1.488-1.853.752-.472 1.624-.708 2.616-.708 1.632 0 2.912.504 3.84 1.512.944.992 1.416 2.407 1.416 4.244 0 1.139-.224 2.147-.672 3.025-.448.878-1.12 1.569-2.016 2.073-.88.504-1.952.756-3.216.756-2.464 0-4.16-.772-5.088-2.317-.928-1.561-1.392-3.707-1.392-6.44 0-3.137.496-5.462 1.488-6.975C20.798 7.756 22.422 7 24.662 7c1.712 0 3.024.496 3.936 1.488.912.992 1.432 2.26 1.56 3.805H26.99Zm-5.376 6.61c0 .91.256 1.666.768 2.268.528.585 1.296.878 2.304.878.864 0 1.552-.26 2.064-.78.512-.521.768-1.245.768-2.171 0-.976-.264-1.724-.792-2.244-.512-.52-1.208-.78-2.088-.78-.832 0-1.544.243-2.136.73-.592.489-.888 1.188-.888 2.098Z"/>',viewBox:"0 0 32 32"},editorList:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M9.188 5.322c0-.48.388-.867.867-.867H29.13c.48 0 .868.388.868.867v1.734a.867.867 0 0 1-.868.867H10.055a.867.867 0 0 1-.867-.867V5.322ZM9.188 14.86c0-.479.388-.867.867-.867H29.13c.48 0 .868.388.868.867v1.735a.867.867 0 0 1-.868.867H10.055a.867.867 0 0 1-.867-.867V14.86ZM9.188 24.399c0-.48.388-.867.867-.867H29.13c.48 0 .868.388.868.867v1.734a.867.867 0 0 1-.868.867H10.055a.867.867 0 0 1-.867-.867v-1.734ZM2.445 6.189c0-.958.775-1.734 1.73-1.734h.009c.955 0 1.73.776 1.73 1.734s-.775 1.734-1.73 1.734h-.009c-.955 0-1.73-.776-1.73-1.734ZM2.445 15.727c0-.957.775-1.734 1.73-1.734h.009c.955 0 1.73.777 1.73 1.734 0 .958-.775 1.735-1.73 1.735h-.009c-.955 0-1.73-.777-1.73-1.735ZM2.445 25.266c0-.958.775-1.734 1.73-1.734h.009c.955 0 1.73.776 1.73 1.734S5.139 27 4.184 27h-.009c-.955 0-1.73-.776-1.73-1.734Z" clip-rule="evenodd"/>',viewBox:"0 0 32 32"},editorOrderedList:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M8.54 5.343c0-.48.388-.868.868-.868H28.52c.48 0 .87.389.87.868v1.738c0 .48-.39.869-.87.869H9.408a.869.869 0 0 1-.869-.869V5.343ZM8.54 14.9c0-.48.388-.869.868-.869H28.52c.48 0 .87.39.87.869v1.738c0 .48-.39.868-.87.868H9.408a.869.869 0 0 1-.869-.868V14.9ZM8.54 24.457c0-.48.388-.87.868-.87H28.52c.48 0 .87.39.87.87v1.737c0 .48-.39.87-.87.87H9.408a.869.869 0 0 1-.869-.87v-1.737Z" clip-rule="evenodd"/><path fill="#6F7CA3" d="M4.501 8.819h-.98V5.038l-1.171.363v-.797l2.046-.733h.105v4.948ZM5.507 18.375H2.12v-.672L3.718 16c.22-.24.382-.45.486-.628a1 1 0 0 0 .16-.51c0-.219-.056-.39-.167-.515-.111-.127-.27-.19-.475-.19a.65.65 0 0 0-.526.23c-.127.152-.19.352-.19.601H2.02c0-.3.072-.575.214-.824a1.52 1.52 0 0 1 .611-.584 1.84 1.84 0 0 1 .893-.214c.509 0 .904.122 1.184.367.283.244.424.59.424 1.035 0 .244-.063.493-.19.746-.126.254-.344.55-.651.886l-1.124 1.185h2.125v.79ZM3.117 25.027h.522c.249 0 .433-.062.553-.187.12-.124.18-.29.18-.495 0-.2-.06-.354-.18-.465-.117-.111-.28-.166-.488-.166a.718.718 0 0 0-.472.156.489.489 0 0 0-.19.4h-.98c0-.258.068-.488.206-.692a1.4 1.4 0 0 1 .584-.482 1.96 1.96 0 0 1 .828-.173c.523 0 .932.125 1.228.377.297.248.445.592.445 1.031 0 .227-.069.435-.207.625-.138.19-.319.336-.543.438.278.099.485.248.621.448.138.199.207.434.207.705 0 .44-.16.791-.482 1.056-.319.264-.742.397-1.27.397-.492 0-.896-.13-1.21-.39-.313-.26-.469-.604-.469-1.032h.98a.57.57 0 0 0 .208.455c.14.117.312.176.516.176.233 0 .415-.061.546-.183a.641.641 0 0 0 .2-.492c0-.493-.271-.74-.814-.74h-.52v-.767Z"/>',viewBox:"0 0 32 32"},editorBold:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M7 17.999V4h9a7 7 0 0 1 5.704 11.058A7 7 0 0 1 18 27.998h-7V28H7V17.999Zm4 6V18h5l.125-.001H18a3 3 0 0 1 0 6h-7Zm0-10V8h5a3 3 0 0 1 .082 5.999H11Z" clip-rule="evenodd"/>',viewBox:"0 0 32 32"},editorQuote:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M12.57 6.077c-5.02 3.224-7.81 6.976-8.367 11.258-.869 6.665 5.091 9.927 8.111 6.996 3.02-2.931 1.21-6.651-.977-7.668-2.186-1.017-3.524-.663-3.29-2.022.233-1.359 3.344-5.127 6.077-6.882a.5.5 0 0 0 .076-.68l-.676-.879c-.293-.381-.575-.367-.955-.123Zm13.217 0c-5.02 3.224-7.81 6.977-8.367 11.258-.869 6.665 5.091 9.927 8.111 6.996 3.02-2.931 1.21-6.651-.977-7.668-2.187-1.017-3.524-.663-3.29-2.022.233-1.359 3.344-5.127 6.077-6.882a.5.5 0 0 0 .076-.68L26.74 6.2c-.294-.381-.575-.367-.954-.123Z" clip-rule="evenodd"/>',viewBox:"0 0 32 32"},editorItalic:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M11.988 3.987V2h-6v1.987h1.8l-1.613 8.025H4V14h6v-1.988H8.238l1.575-8.024h2.175Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},editorUppercase:{icon:'<path fill="currentColor" d="M6.94 11.069H4.159L3.618 13H1.5l3.115-9.5h1.869L9.641 13H7.48l-.54-1.931ZM4.616 9.451h1.869l-.955-3.39-.914 3.39Z"/><path fill="#6F7CA3" d="M12.88 11.817h-1.703L10.845 13H9.516l1.91-5.834h1.122L14.5 13h-1.33l-.29-1.183Zm-1.412-.985h1.163l-.582-2.09-.58 2.09Z"/>',viewBox:"0 0 16 16"},editorUnderline:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M2 12.275h12V14H2v-1.725ZM5.487 6.275c0 1.425 1.087 2.588 2.512 2.588a2.593 2.593 0 0 0 2.588-2.588V2h1.725v4.275a4.273 4.273 0 0 1-4.275 4.275 4.273 4.273 0 0 1-4.275-4.275V2h1.725v4.275Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},editorTable:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M2.793 3.828A2.652 2.652 0 0 1 4.708 3h14.583c.718 0 1.407.298 1.915.828a2.89 2.89 0 0 1 .793 1.998v12.348a2.89 2.89 0 0 1-.793 1.998A2.652 2.652 0 0 1 19.29 21H4.708a2.652 2.652 0 0 1-1.915-.828A2.89 2.89 0 0 1 2 18.174V5.826c0-.75.285-1.468.793-1.998Zm.457 6.128v3.696h8.125V9.957H3.25Zm9.374 0v3.696h8.125V9.957h-8.124Zm8.125-1.304V5.826c0-.404-.153-.79-.427-1.076a1.428 1.428 0 0 0-1.031-.446H4.708c-.387 0-.757.16-1.03.446a1.556 1.556 0 0 0-.428 1.076v2.826h17.5Zm0 6.305h-8.124v4.738h6.666c.387 0 .758-.16 1.031-.445.274-.285.427-.672.427-1.076v-3.217Zm-9.374 4.738v-4.739H3.25v3.218c0 .404.154.79.427 1.076.274.285.644.446 1.031.446h6.667Z" clip-rule="evenodd"/>',viewBox:"0 0 24 24"},editorLink:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M5.164 5.914a2.086 2.086 0 1 0 0 4.172h1.418a.75.75 0 0 1 0 1.5H5.164a3.586 3.586 0 1 1 0-7.172h1.418a.75.75 0 0 1 0 1.5H5.164Zm.312 1.783a.75.75 0 0 1 .75-.75h3.844a.75.75 0 0 1 0 1.5H6.226a.75.75 0 0 1-.75-.75ZM12.922 8a2.086 2.086 0 0 0-2.086-2.086H9.418a.75.75 0 1 1 0-1.5h1.418a3.586 3.586 0 0 1 0 7.172H9.418a.75.75 0 0 1 0-1.5h1.418A2.086 2.086 0 0 0 12.922 8Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},editorSourceCode:{icon:'<path fill="currentColor" d="M27.947 14.38 22.82 8.949a1.264 1.264 0 0 0-1.774-.056 1.264 1.264 0 0 0-.055 1.774l4.324 4.574-4.324 4.574a1.264 1.264 0 0 0 .055 1.774c.222.221.527.332.86.332.332 0 .665-.138.914-.388l5.128-5.433a1.276 1.276 0 0 0 0-1.718ZM17.378 4.895a1.151 1.151 0 0 1 2.245.513l-4.96 21.697a1.151 1.151 0 1 1-2.244-.513l4.96-21.697ZM10.955 8.892a1.308 1.308 0 0 0-.887-.332c-.332 0-.637.138-.859.388L4.053 14.38c-.443.471-.443 1.22 0 1.718l5.128 5.433c.222.25.555.388.915.388.333 0 .61-.11.86-.332a1.264 1.264 0 0 0 .055-1.774L6.687 15.24l4.324-4.574a1.264 1.264 0 0 0-.056-1.774Z"/>',viewBox:"0 0 32 32"},editorExpand:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M7.268 6.494 4.37 3.595h1.963a.548.548 0 1 0 0-1.095H3.048a.548.548 0 0 0-.548.548v3.285a.548.548 0 1 0 1.095 0V4.37l2.899 2.898a.548.548 0 1 0 .774-.774Zm-.774 2.738L3.595 12.13v-1.963a.548.548 0 1 0-1.095 0v3.285c0 .303.245.548.548.548h3.285a.548.548 0 0 0 0-1.095H4.37l2.898-2.899a.548.548 0 0 0-.774-.774Zm5.636 3.673-2.898-2.899a.548.548 0 0 1 .774-.774l2.899 2.898v-1.963a.548.548 0 1 1 1.095 0v3.285a.548.548 0 0 1-.548.548h-3.285a.548.548 0 1 1 0-1.095h1.963ZM9.232 7.268c.214.214.56.214.774 0l2.899-2.898v1.963a.548.548 0 1 0 1.095 0V3.048a.548.548 0 0 0-.548-.548h-3.285a.548.548 0 1 0 0 1.095h1.963L9.232 6.494a.548.548 0 0 0 0 .774Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},chevronDown:{icon:'<path d="M19.5 8.25L12 15.75L4.5 8.25" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>',viewBox:"0 0 24 24"},crossCircled:{icon:'<path fill="currentColor" d="M16.25 10a6.25 6.25 0 1 1-12.5 0 6.25 6.25 0 0 1 12.5 0Z"/><path fill="#fff" d="M12.521 7.478a.535.535 0 0 0-.756 0L10.003 9.24 8.24 7.478a.535.535 0 0 0-.757.757l1.762 1.762-1.762 1.761a.535.535 0 1 0 .757.757l1.762-1.762 1.762 1.762a.535.535 0 0 0 .756-.757L10.76 9.998l1.762-1.762a.535.535 0 0 0 0-.757Z"/>',viewBox:"0 0 20 20"},ellipsisXAlt:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 5.25a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5Zm9-2.25a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0ZM18 3a2.25 2.25 0 1 1-4.5 0A2.25 2.25 0 0 1 18 3Z" fill="currentColor"/>',viewBox:"0 0 18 6"},dragger:{icon:'<path d="M17.4708 8.75929C17.4708 9.73092 18.2608 10.5186 19.2354 10.5186C20.21 10.5186 21 9.73092 21 8.75929C21 7.78766 20.21 7 19.2354 7C18.2608 7 17.4708 7.78766 17.4708 8.75929Z" fill="currentColor"/><path d="M11 8.75929C11 9.73092 11.79 10.5186 12.7646 10.5186C13.7392 10.5186 14.5292 9.73092 14.5292 8.75929C14.5292 7.78766 13.7392 7 12.7646 7C11.79 7 11 7.78766 11 8.75929Z" fill="currentColor"/><path d="M19.2354 18.2595C18.2608 18.2595 17.4708 17.4718 17.4708 16.5002C17.4708 15.5285 18.2608 14.7409 19.2354 14.7409C20.21 14.7409 21 15.5285 21 16.5002C21 17.4718 20.21 18.2595 19.2354 18.2595Z" fill="currentColor"/><path d="M11 16.5C11 17.4716 11.79 18.2593 12.7646 18.2593C13.7392 18.2593 14.5292 17.4716 14.5292 16.5C14.5292 15.5284 13.7392 14.7407 12.7646 14.7407C11.79 14.7407 11 15.5284 11 16.5Z" fill="currentColor"/><path d="M19.2354 26C18.2608 26 17.4708 25.2123 17.4708 24.2407C17.4708 23.2691 18.2608 22.4814 19.2354 22.4814C20.21 22.4814 21 23.2691 21 24.2407C21 25.2123 20.21 26 19.2354 26Z" fill="currentColor"/><path d="M11 24.2407C11 25.2123 11.79 26 12.7646 26C13.7392 26 14.5292 25.2123 14.5292 24.2407C14.5292 23.2691 13.7392 22.4814 12.7646 22.4814C11.79 22.4814 11 23.2691 11 24.2407Z" fill="currentColor"/>',viewBox:"0 0 32 32"}}),{},{times:{icon:'<path d="m8.22 7.003 5.192-5.192A.863.863 0 1 0 12.191.589L6.999 5.781 1.807.59A.863.863 0 1 0 .585 1.811l5.192 5.192-5.192 5.192a.863.863 0 1 0 1.222 1.221l5.192-5.192 5.192 5.192a.861.861 0 0 0 1.221 0 .863.863 0 0 0 0-1.221L8.22 7.003Z" fill="currentColor"/>',viewBox:"0 0 14 14"},parmaLink:{icon:'<path d="M9 4H3.5C3.10218 4 2.72064 4.15804 2.43934 4.43934C2.15804 4.72064 2 5.10218 2 5.5V12.5C2 12.8978 2.15804 13.2794 2.43934 13.5607C2.72064 13.842 3.10218 14 3.5 14H10.5C10.8978 14 11.2794 13.842 11.5607 13.5607C11.842 13.2794 12 12.8978 12 12.5V7M5 11L14 2M14 2H10.5M14 2V5.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 16 16"},pencilOnBox:{icon:'<path d="m10.241 2.991 1.125-1.125a1.25 1.25 0 0 1 1.768 1.768l-7.08 7.08a3 3 0 0 1-1.264.753L3 12l.533-1.79a3 3 0 0 1 .754-1.265l5.954-5.954Zm0 0L12 4.75m-1 4.583V12.5A1.5 1.5 0 0 1 9.5 14h-7A1.5 1.5 0 0 1 1 12.5v-7A1.5 1.5 0 0 1 2.5 4h3.167" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/>',viewBox:"0 0 15 15"},menu:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M8 10a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm16 6a1 1 0 0 0-1-1H9a1 1 0 1 0 0 2h14a1 1 0 0 0 1-1Z" clip-rule="evenodd"/>',viewBox:"0 0 32 32"},openBook:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M11.5 6.982c-4.268-3.644-9-1.146-9-1.146v10.57c5.012 0 7.863 1.712 9 2.594V6.982Z" clip-rule="evenodd"/><path fill="#7784A8" d="M21.5 16.407c-5.012 0-7.864 1.71-9 2.593V6.982c4.268-3.645 9-1.147 9-1.147v10.572Z" opacity=".6"/>',viewBox:"0 0 24 24"},desktop:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M3.125 3.4c-.124 0-.225.1-.225.225v6.25c0 .124.1.225.225.225h10c.124 0 .225-.1.225-.225v-6.25c0-.124-.1-.225-.225-.225h-10ZM2.1 3.625C2.1 3.06 2.56 2.6 3.125 2.6h10c.566 0 1.025.459 1.025 1.025v6.25c0 .566-.459 1.025-1.025 1.025h-10A1.025 1.025 0 0 1 2.1 9.875v-6.25ZM4.6 13c0-.22.18-.4.4-.4h6.25a.4.4 0 0 1 0 .8H5a.4.4 0 0 1-.4-.4Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M6.25 10.1c.221 0 .4.18.4.4V13a.4.4 0 0 1-.8 0v-2.5c0-.22.18-.4.4-.4ZM10 10.1c.221 0 .4.18.4.4V13a.4.4 0 0 1-.8 0v-2.5c0-.22.18-.4.4-.4Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},laptop:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M13.157 10.182c.011-.019.043-.09.043-.273V4.615c0-.18-.03-.253-.042-.273-.02-.011-.091-.042-.273-.042h-9.77c-.183 0-.254.032-.272.042-.012.02-.043.091-.043.273V9.91c0 .184.032.254.043.272.018.01.088.043.272.043h9.77c.183 0 .254-.031.272-.042Zm-.003.005.002-.002-.002.002Zm.006-.007a.013.013 0 0 1 .003-.002l-.003.002ZM2.84 10.178l.002.002a.012.012 0 0 1-.002-.002Zm.006.005a.01.01 0 0 1 .002.003l-.002-.003Zm.001-5.846-.002.003a.011.011 0 0 1 .002-.003Zm-.006.007a.011.011 0 0 1-.002.002l.002-.002Zm10.324.002-.002-.002a.016.016 0 0 1 .002.002Zm-.008-.008a.016.016 0 0 1-.002-.002l.002.002ZM14 9.91c0 .755-.37 1.115-1.115 1.115h-9.77c-.74 0-1.115-.36-1.115-1.115V4.615c0-.76.375-1.115 1.115-1.115h9.77C13.63 3.5 14 3.856 14 4.615V9.91Z" clip-rule="evenodd"/><path fill="currentColor" d="M10.922 12.753c.22 0 .394-.18.394-.404a.398.398 0 0 0-.394-.404H5.063c-.219 0-.4.18-.4.404 0 .224.181.404.4.404h5.859Z"/>',viewBox:"0 0 16 16"},tabletHorizontal:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M2.331 11.316V4.684c0-.564.471-1.015 1.045-1.015h8.91c.574 0 1.045.45 1.045 1.015v6.632c0 .564-.47 1.015-1.045 1.015h-8.91c-.574 0-1.045-.451-1.045-1.015Zm.983-7.025a.476.476 0 0 0-.433.46v6.497l.004.058c.03.23.239.406.492.406h8.91l.062-.003a.476.476 0 0 0 .432-.46V4.75l-.003-.058a.485.485 0 0 0-.492-.406h-8.91l-.062.004Zm7.267.615a.275.275 0 1 0-.55 0v6.05a.275.275 0 1 0 .55 0v-6.05Zm1.1 3.575a.55.55 0 1 1 0-1.1.55.55 0 0 1 0 1.1Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},tabletVertical:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M4.515 2.5h6.632c.564 0 1.015.471 1.015 1.045v8.91c0 .574-.45 1.045-1.015 1.045H4.515c-.564 0-1.015-.471-1.015-1.045v-8.91c0-.574.451-1.045 1.015-1.045Zm7.025.983a.476.476 0 0 0-.46-.433H4.583l-.058.004a.485.485 0 0 0-.406.491v8.91l.003.062a.475.475 0 0 0 .46.433h6.498l.058-.004a.485.485 0 0 0 .406-.49v-8.91l-.004-.063Zm-.615 7.267a.275.275 0 1 0 0-.55h-6.05a.275.275 0 1 0 0 .55h6.05Zm-3.575 1.1a.55.55 0 1 1 1.1 0 .55.55 0 0 1-1.1 0Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},mobileHorizontal:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M3 10.158V5.105c0-.487.427-.843.914-.843h7.797c.487 0 .914.356.914.843v5.053c0 .486-.427.842-.914.842H3.914C3.427 11 3 10.644 3 10.158Zm.86-5.411c-.214.022-.379.174-.379.358v5.053l.003.045c.027.178.21.316.43.316h7.796l.055-.003c.214-.022.379-.174.379-.358V5.105l-.004-.046c-.026-.177-.208-.315-.43-.315H3.914l-.054.003Zm1.065 2.162a.24.24 0 0 0-.481 0v1.444a.24.24 0 1 0 .481 0V6.91ZM10.7 8.113a.481.481 0 1 1 0-.963.481.481 0 0 1 0 .963Z" clip-rule="evenodd"/>',viewBox:"0 0 16 16"},mobileVertical:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M1.156.33h3.79c.365 0 .632.32.632.685v5.848c0 .365-.267.685-.632.685h-3.79c-.365 0-.632-.32-.632-.685V1.015C.524.65.791.33 1.156.33Zm4.059.645C5.198.815 5.084.69 4.946.69h-3.79l-.034.003C.99.713.885.85.885 1.015v5.848l.003.04c.016.16.13.284.268.284h3.79l.034-.002c.133-.02.237-.157.237-.322V1.015l-.002-.04Zm-1.623.798a.18.18 0 1 0 0-.36H2.51a.18.18 0 0 0 0 .36h1.082ZM2.69 6.105a.36.36 0 1 1 .722 0 .36.36 0 0 1-.722 0Z" fill="currentColor"/>',viewBox:"0 0 10 10"},fadeIn:{icon:'<path fill="currentColor" fill-rule="evenodd" d="m0 8.7 16 8.4V34L0 25.6V8.7Z" clip-rule="evenodd" opacity=".4"/><path fill="currentColor" fill-rule="evenodd" d="m32 8.7-16 8.4V34l16-8.4V8.7Z" clip-rule="evenodd" opacity=".6"/><path fill="currentColor" fill-rule="evenodd" d="m0 8.7 16 8.4 16-8.4L16 0 0 8.7Z" clip-rule="evenodd" opacity=".1"/><path fill="currentColor" fill-rule="evenodd" d="M4.4 11 16 17.1v12.3L4.4 23.2V11Z" clip-rule="evenodd" opacity=".4"/><path fill="currentColor" fill-rule="evenodd" d="M27.6 11 16 17.1v12.3l11.6-6.1V11Z" clip-rule="evenodd" opacity=".8"/><path fill="currentColor" fill-rule="evenodd" d="M4.4 11 16 17.1 27.6 11 16 4.6 4.4 11Z" clip-rule="evenodd" opacity=".2"/><path fill="currentColor" fill-rule="evenodd" d="m8.8 13.3 7.2 3.8v7.6l-7.2-3.8v-7.6Z" clip-rule="evenodd" opacity=".5"/><path fill="currentColor" fill-rule="evenodd" d="M23.2 13.3 16 17.1v7.6l7.2-3.8v-7.6Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="m8.8 13.3 7.2 3.8 7.2-3.8L16 9.4l-7.2 3.9Z" clip-rule="evenodd" opacity=".2"/>',viewBox:"0 0 32 34"},spinIn:{icon:'<path fill="currentColor" d="M5.501 49.776c-2.354-1.36-2.998-3.798-3.172-4.92l2.182 1.503a.286.286 0 1 0 .325-.472L2.141 44.03a.288.288 0 0 0-.395.07v.001l-.002.002-1.693 2.433a.286.286 0 0 0 .47.327l1.255-1.803c.207 1.27.93 3.763 3.438 5.212a7.722 7.722 0 0 0 10.537-2.824.286.286 0 0 0-.422-.37.288.288 0 0 0-.074.084 7.15 7.15 0 0 1-9.754 2.614Zm15.471-45.53a.286.286 0 0 0 .39-.106 7.149 7.149 0 0 1 9.755-2.614c2.354 1.36 2.998 3.798 3.172 4.92l-2.182-1.502a.287.287 0 0 0-.325.471l2.694 1.857a.29.29 0 0 0 .396-.07h.001l.001-.003 1.693-2.433a.287.287 0 0 0-.072-.399.29.29 0 0 0-.398.072l-1.255 1.803c-.207-1.27-.929-3.763-3.438-5.212a7.722 7.722 0 0 0-10.537 2.824.286.286 0 0 0 .104.39l.001.001Z"/><path fill="currentColor" fill-rule="evenodd" d="m6.47 14.038 13.093 12.24-4.366 16.293-13.093-12.24L6.47 14.036l.001.001Z" clip-rule="evenodd" opacity=".5"/><path fill="currentColor" fill-rule="evenodd" d="m37.02 22.223-17.458 4.054-4.367 16.293 17.458-4.053 4.366-16.294Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="m6.469 14.039 13.093 12.24 17.458-4.055L23.996 9.73 6.469 14.04Z" clip-rule="evenodd" opacity=".2"/>',viewBox:"0 0 38 52"},flipIn:{icon:'<path fill="currentColor" fill-rule="evenodd" d="m0 8.697 14.5 8.434v16.87L0 25.565V8.697Z" clip-rule="evenodd" opacity=".5"/><path fill="currentColor" fill-rule="evenodd" d="m29 8.697-14.5 8.434v16.87L29 25.565V8.697Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="m0 8.698 14.5 8.434L29 8.698 14.5 0 0 8.698Z" clip-rule="evenodd" opacity=".2"/><path fill="currentColor" d="M32.967 21.205a.415.415 0 0 0-.192.244.389.389 0 0 0 .036.3c2.705 4.698.964 10.775-3.89 13.585-3.35 1.934-6.77 1.066-8.258.519l3.4-1.628a.404.404 0 0 0 .2-.533.4.4 0 0 0-.536-.18l-4.199 2.01a.407.407 0 0 0-.2.528v.004l1.724 3.694.015.03a.4.4 0 0 0 .52.153.409.409 0 0 0 .201-.532l-1.277-2.738c1.688.607 5.232 1.417 8.803-.645 5.244-3.036 7.125-9.6 4.203-14.674a.386.386 0 0 0-.242-.181.414.414 0 0 0-.308.044Z"/>',viewBox:"0 0 35 40"},bounceIn:{icon:'<path fill="currentColor" fill-rule="evenodd" d="m21.1 8.7 16 8.4V34l-16-8.4V8.7Z" clip-rule="evenodd" opacity=".5"/><path fill="currentColor" fill-rule="evenodd" d="m53.1 8.7-16 8.4V34l16-8.4V8.7Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="m21.1 8.7 16 8.4 16-8.4-16-8.7-16 8.7Z" clip-rule="evenodd" opacity=".2"/><path fill="currentColor" d="M18.9 14.3c0-.1-.1-.2-.1-.2 0-.1 0-.2-.1-.3 0-.2-.1-.4-.1-.5 0-.1-.2-.2-.3-.1-.1 0-.2.2-.1.3.1.1.1.3.1.5 0 .1 0 .2.1.3v.1c-2.1-1.3-3.7-1.7-5.2-.8-2.7 1.6-3.5 6.6-3.7 9.5-.4-1-1-2.2-1.8-3.1-.8-.9-1.8-1.4-2.8-1.5-.7-.1-1.4.1-2 .5C.5 20.6.1 25.7 0 26c0 .1.1.2.3.2l-.1.2c.2 0 .4-.3.4-.4 0-.1.4-5.2 2.7-6.6.5-.3 1-.4 1.5-.4 3.4.4 4.7 5.7 4.7 6.1v.1c0 .1.2.2.3.1.1 0 .2-.1.3-.2v-.3c0-1.5.4-9.5 3.9-11 1.1-.5 2.4-.1 4 .9-.2 0-.5-.1-.7-.2-.1 0-.2 0-.2.2 0 .1 0 .2.1.3.5.1 1.1.3 1.6.3.1 0 .1 0 .2-.1 0-.1.1-.1 0-.2.1-.3 0-.5-.1-.7Z"/>',viewBox:"0 0 54 34"},zoomIn:{icon:'<path fill="currentColor" fill-rule="evenodd" d="m5.454 11.063 12 6.495v12.99l-12-6.495v-12.99Z" clip-rule="evenodd" opacity=".5"/><path fill="currentColor" fill-rule="evenodd" d="m29.456 11.063-12 6.495v12.99l12-6.495v-12.99Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="m5.454 11.06 12 6.496 12-6.495-12-6.698-12 6.698Z" clip-rule="evenodd" opacity=".2"/><path fill="currentColor" fill-rule="evenodd" d="M31.731 3.804 34.816.718l-1.901.17c-.423.042-.508-.592-.043-.635L35.62 0c.21 0 .38.169.38.38l-.254 2.747c-.042.423-.676.38-.634-.042l.17-1.902-3.086 3.086c-.296.295-.76-.17-.465-.465Zm.465 27.927 3.086 3.085-.17-1.901c-.042-.423.592-.508.634-.043L36 35.62c0 .21-.17.38-.38.38l-2.748-.254c-.465-.042-.38-.676.043-.634l1.901.17-3.085-3.086c-.296-.296.17-.76.465-.465Zm-27.927.465-3.086 3.086 1.902-.17c.423-.042.465.592.042.634L.38 36a.379.379 0 0 1-.38-.38l.253-2.748c.043-.465.677-.38.634.043l-.169 1.901 3.086-3.085c.295-.296.76.17.465.465ZM3.804 4.269.718 1.183l.17 1.902c.042.423-.592.465-.635.042L0 .38C0 .169.169 0 .38 0l2.747.253c.423.043.38.677-.042.634L1.183.718 4.27 3.804c.295.295-.17.76-.465.465h-.001Z" clip-rule="evenodd"/>',viewBox:"0 0 36 36"},reveal:{icon:'<path fill="currentColor" d="M32.3 8.6C27 5.7 21.8 2.9 16.5 0H15.9C10.7 2.8 5.5 5.7.3 8.5c-.1 0-.1.1-.2.2s-.1.2-.1.4v16.8c0 .2.1.4.3.5 4.7 2.5 9.3 5 14 7.5.5.3 1.1.7 1.6.9.6.2 1.1-.3 1.7-.6 2.7-1.5 5.4-2.9 8.1-4.4 2.2-1.2 4.4-2.4 6.6-3.5.2-.1.3-.3.3-.5V9.3c.1-.3 0-.6-.3-.7Zm-16 8.1C11.5 14.1 6.7 11.6 1.9 9c4.8-2.6 9.5-5.2 14.3-7.8 4.8 2.6 9.6 5.2 14.5 7.9-4.8 2.5-9.6 5.1-14.4 7.6ZM1.2 25.5V10.2c4.3 2.3 8.7 4.6 13 7 .4.2.8.5 1.3.7v15.3C10.8 30.6 6 28 1.2 25.5Zm15.6 7.7V17.9c.3-.1.6-.3.9-.5 2.7-1.4 5.3-2.8 8-4.2l5.7-3v15.2c-4.9 2.6-9.8 5.2-14.6 7.8Z"/>',viewBox:"0 0 33 35"},cross:{icon:'<path d="M5 15L15 5M5 5L15 15" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 20 20"},layout:{icon:'<rect x="1" y="1" width="6.36331" height="4.19978" rx="2" fill="#C9D8ED"/><rect x="8.63626" y="10.7982" width="6.36331" height="4.19978" rx="2" fill="#C9D8ED"/><rect x="9.13626" y="1.5" width="5.36331" height="7.39956" rx="1.5" fill="#446EF5" stroke="#446EF5"/><rect x="1.5" y="7.10049" width="5.36331" height="7.39956" rx="1.5" fill="#446EF5" stroke="#446EF5"/>',viewBox:"0 0 16 16"},layoutDesign1:{icon:'<rect width="50" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign2:{icon:'<rect width="24" height="20" rx="2" fill="currentColor"/><rect x="26" width="24" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign3:{icon:'<rect width="15.3" height="20" rx="2" fill="currentColor"/><rect x="17.3" width="15.3" height="20" rx="2" fill="currentColor"/><rect x="34.6001" width="15.3" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign4:{icon:'<rect x="0.899902" width="11" height="20" rx="2" fill="currentColor"/><rect x="13.8999" width="11" height="20" rx="2" fill="currentColor"/><rect x="26.8999" width="11" height="20" rx="2" fill="currentColor"/><rect x="39.8999" width="11" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign5:{icon:'<rect x="0.899902" width="19" height="20" rx="2" fill="currentColor"/><rect x="21.8999" width="29" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign6:{icon:'<rect width="11" height="20" rx="2" fill="currentColor"/><rect x="13" width="37" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign7:{icon:'<rect width="11.3" height="20" rx="2" fill="currentColor"/><rect x="13.3" width="23.4" height="20" rx="2" fill="currentColor"/><rect x="38.7" width="11.3" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign8:{icon:'<rect width="8" height="20" rx="2" fill="currentColor"/><rect x="10" width="22" height="20" rx="2" fill="currentColor"/><rect x="34" width="16" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign9:{icon:'<rect width="8" height="20" rx="2" fill="currentColor"/><rect x="10" width="40" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},layoutDesign10:{icon:'<rect width="8" height="20" rx="2" fill="currentColor"/><rect x="10" width="11" height="20" rx="2" fill="currentColor"/><rect x="23" width="27" height="20" rx="2" fill="currentColor"/>',viewBox:"0 0 50 20"},cornerRadius:{icon:'<path d="M6.91257 2H4.40012C3.07457 2 2 3.07449 2 4.39994V6.89876M9.08743 2H11.5999C12.9254 2 14 3.07449 14 4.39994V6.89876M6.91257 14H4.40012C3.07457 14 2 12.9255 2 11.6001V9.10124M9.08743 14H11.5999C12.9254 14 14 12.9255 14 11.6001V9.10124" stroke="currentColor" stroke-width="1.25" fill="none" />',viewBox:"0 0 16 16"},roundedCorner:{icon:'<rect x="2" y="2" width="12" height="12" rx="2" stroke="currentColor" stroke-width="1.25" fill="none" />',viewBox:"0 0 16 16"},asterisk:{icon:'<path d="m13.879 9.91-3.691-2.16 3.69-2.133c.22-.11.302-.383.165-.601l-.875-1.504a.418.418 0 0 0-.602-.164L8.875 5.48V1.187A.47.47 0 0 0 8.437.75H6.66a.47.47 0 0 0-.437.438V5.48L2.53 3.348c-.219-.11-.492-.055-.601.164l-.875 1.504a.418.418 0 0 0 .164.601L4.91 7.75 1.22 9.91a.418.418 0 0 0-.164.602l.875 1.504c.11.218.383.273.601.164l3.692-2.133v4.265a.45.45 0 0 0 .437.438h1.777a.45.45 0 0 0 .438-.438v-4.265l3.691 2.133c.22.11.493.054.602-.164l.875-1.504a.418.418 0 0 0-.164-.602Z" fill="currentColor"/>',viewBox:"0 0 15 15"},timesCircle:{icon:'<path d="M13.25 7A6.25 6.25 0 1 1 .75 7a6.25 6.25 0 0 1 12.5 0Z" fill="#6F7CA3"/><path d="M9.521 4.478a.535.535 0 0 0-.756 0L7.003 6.24 5.24 4.478a.535.535 0 0 0-.757.757l1.762 1.762-1.762 1.762a.535.535 0 1 0 .757.756l1.762-1.762 1.762 1.762a.535.535 0 0 0 .756-.756L7.76 6.997l1.762-1.762a.535.535 0 0 0 0-.757Z" fill="#fff"/>',viewBox:"0 0 14 14"},settings:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M13.75 5.669V3.5a.5.5 0 0 0-1 0v2.198a2.188 2.188 0 0 0 0 4.229V16.5a.5.5 0 0 0 1 0V9.956a2.188 2.188 0 0 0 0-4.287Zm.75 2.144a1.188 1.188 0 1 0-2.375 0 1.188 1.188 0 0 0 2.375 0ZM7.125 3a.5.5 0 0 0-.5.5v6.573a2.188 2.188 0 0 0 0 4.229V16.5a.5.5 0 0 0 1 0v-2.169a2.188 2.188 0 0 0 0-4.287V3.5a.5.5 0 0 0-.5-.5Zm1.25 9.188a1.188 1.188 0 1 1-2.375 0 1.188 1.188 0 0 1 2.375 0Z" clip-rule="evenodd"/>',viewBox:"0 0 20 20"},lock:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M12.2857 4C11.2248 4 10.2074 4.42143 9.45729 5.17157C8.70714 5.92172 8.28571 6.93913 8.28571 8V10.2857C7.67951 10.2857 7.09812 10.5265 6.66947 10.9552C6.24082 11.3838 6 11.9652 6 12.5714V17.7143C6 18.3205 6.24082 18.9019 6.66947 19.3305C7.09812 19.7592 7.67951 20 8.28571 20H16.2857C16.8919 20 17.4733 19.7592 17.902 19.3305C18.3306 18.9019 18.5714 18.3205 18.5714 17.7143V12.5714C18.5714 11.9652 18.3306 11.3838 17.902 10.9552C17.4733 10.5265 16.8919 10.2857 16.2857 10.2857V8C16.2857 5.79048 14.4952 4 12.2857 4ZM15.1429 10.2857V8C15.1429 7.24224 14.8418 6.51551 14.306 5.97969C13.7702 5.44388 13.0435 5.14286 12.2857 5.14286C11.528 5.14286 10.8012 5.44388 10.2654 5.97969C9.72959 6.51551 9.42857 7.24224 9.42857 8V10.2857H15.1429Z" fill="currentColor"/>',viewBox:"0 0 24 24"},unLock:{icon:'<path d="M19.1429 4C21.3524 4 23.1429 5.79048 23.1429 8V10.8571C23.1429 11.0087 23.0827 11.154 22.9755 11.2612C22.8683 11.3684 22.723 11.4286 22.5714 11.4286C22.4199 11.4286 22.2745 11.3684 22.1674 11.2612C22.0602 11.154 22 11.0087 22 10.8571V8C22 7.24224 21.699 6.51551 21.1632 5.97969C20.6273 5.44388 19.9006 5.14286 19.1429 5.14286C18.3851 5.14286 17.6584 5.44388 17.1226 5.97969C16.5867 6.51551 16.2857 7.24224 16.2857 8V10.2857C16.8919 10.2857 17.4733 10.5265 17.902 10.9552C18.3306 11.3838 18.5714 11.9652 18.5714 12.5714V17.7143C18.5714 18.3205 18.3306 18.9019 17.902 19.3305C17.4733 19.7592 16.8919 20 16.2857 20H8.28571C7.67951 20 7.09812 19.7592 6.66947 19.3305C6.24082 18.9019 6 18.3205 6 17.7143V12.5714C6 11.9652 6.24082 11.3838 6.66947 10.9552C7.09812 10.5265 7.67951 10.2857 8.28571 10.2857H15.1429V8C15.1429 5.79048 16.9333 4 19.1429 4Z" fill="currentColor"/>',viewBox:"0 0 24 24"},link:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M13.7409 8C13.7409 6.59405 12.6011 5.4543 11.1952 5.4543H9.59733C9.23835 5.4543 8.94733 5.16328 8.94733 4.8043C8.94733 4.44531 9.23835 4.1543 9.59733 4.1543H11.1952C13.3191 4.1543 15.0409 5.87607 15.0409 8C15.0409 10.1239 13.3191 11.8457 11.1952 11.8457H9.59733C9.23835 11.8457 8.94733 11.5547 8.94733 11.1957C8.94733 10.8367 9.23835 10.5457 9.59733 10.5457H11.1952C12.6011 10.5457 13.7409 9.40595 13.7409 8ZM4.80481 5.45445C3.39886 5.45445 2.25911 6.5942 2.25911 8.00015C2.25911 9.4061 3.39886 10.5459 4.80481 10.5459H6.40266C6.76164 10.5459 7.05266 10.8369 7.05266 11.1959C7.05266 11.5548 6.76164 11.8459 6.40266 11.8459H4.80481C2.68089 11.8459 0.959106 10.1241 0.959106 8.00015C0.959106 5.87623 2.68089 4.15445 4.80481 4.15445H6.40266C6.76164 4.15445 7.05266 4.44547 7.05266 4.80445C7.05266 5.16344 6.76164 5.45445 6.40266 5.45445H4.80481ZM5.15794 7.85424C5.15794 7.49526 5.44895 7.20424 5.80794 7.20424H10.5295C10.8885 7.20424 11.1795 7.49526 11.1795 7.85424C11.1795 8.21323 10.8885 8.50424 10.5295 8.50424H5.80794C5.44895 8.50424 5.15794 8.21323 5.15794 7.85424Z" fill="currentColor"/>',viewBox:"0 0 16 16"},pageLink:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M0 1.07393C0 0.480812 0.480813 0 1.07393 0H4.96877V2.81967C4.96877 3.06785 5.16996 3.26904 5.41814 3.26904H8.28129L8.28129 6.44356H5.28067C3.46881 6.44356 2 7.91236 2 9.72423C2 10.3539 2.17738 10.9421 2.4849 11.4416H1.07393C0.480813 11.4416 0 10.9608 0 10.3677V1.07393ZM6.24727 0.134256L8.14556 2.01384C8.23273 2.10015 8.28116 2.21715 8.28116 2.33798V2.45497H5.80175V0H5.91797C6.04194 0 6.1601 0.0479487 6.24727 0.134256ZM3.78886 9.66533C3.78886 8.79111 4.49756 8.08242 5.37178 8.08242H6.71413C6.92171 8.08242 7.09 7.91413 7.09 7.70654C7.09 7.49895 6.92171 7.33067 6.71413 7.33067H5.37178C4.08238 7.33067 3.03711 8.37593 3.03711 9.66533C3.03711 10.9547 4.08238 12 5.37178 12H6.71413C6.92171 12 7.09 11.8317 7.09 11.6241C7.09 11.4165 6.92171 11.2482 6.71413 11.2482H5.37178C4.49756 11.2482 3.78886 10.5396 3.78886 9.66533ZM6.15239 9.22221C5.9448 9.22221 5.77652 9.39049 5.77652 9.59808C5.77652 9.80567 5.9448 9.97395 6.15239 9.97395H9.40064C9.60823 9.97395 9.77652 9.80567 9.77652 9.59808C9.77652 9.39049 9.60823 9.22221 9.40064 9.22221H6.15239ZM9.65229 8.08242C10.5265 8.08242 11.2352 8.79111 11.2352 9.66533C11.2352 10.5396 10.5265 11.2482 9.65229 11.2482H8.31413C8.10654 11.2482 7.93825 11.4165 7.93825 11.6241C7.93825 11.8317 8.10654 12 8.31413 12H9.65229C10.9417 12 11.987 10.9547 11.987 9.66533C11.987 8.37593 10.9417 7.33067 9.65229 7.33067H8.31413C8.10654 7.33067 7.93825 7.49895 7.93825 7.70654C7.93825 7.91413 8.10654 8.08242 8.31413 8.08242H9.65229Z" fill="currentColor"/>',viewBox:"0 0 12 12"},menuLink:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M1.87927 2.37939C1.87927 2.10325 2.10313 1.87939 2.37927 1.87939H11.4828C11.7589 1.87939 11.9828 2.10325 11.9828 2.37939C11.9828 2.65554 11.7589 2.87939 11.4828 2.87939H2.37927C2.10313 2.87939 1.87927 2.65554 1.87927 2.37939ZM1.87927 7.02177C1.87927 6.74562 2.10313 6.52177 2.37927 6.52177H11.4828C11.7589 6.52177 11.9828 6.74562 11.9828 7.02177C11.9828 7.29791 11.7589 7.52177 11.4828 7.52177H2.37927C2.10313 7.52177 1.87927 7.29791 1.87927 7.02177ZM1.87927 11.6641C1.87927 11.388 2.10313 11.1641 2.37927 11.1641H4.84323C4.80771 11.3391 4.78906 11.5201 4.78906 11.7055C4.78906 11.8618 4.80232 12.0151 4.82777 12.1641H2.37927C2.10313 12.1641 1.87927 11.9403 1.87927 11.6641ZM11.7428 10.2458C12.5697 10.2458 13.24 10.9161 13.24 11.7429C13.24 12.5698 12.5697 13.2401 11.7428 13.2401H10.4605C10.2506 13.2401 10.0805 13.4102 10.0805 13.6201C10.0805 13.8299 10.2506 14.0001 10.4605 14.0001H11.7428C12.9894 14.0001 14 12.9895 14 11.7429C14 10.4964 12.9894 9.48583 11.7428 9.48583H10.4605C10.2506 9.48583 10.0805 9.65596 10.0805 9.86583C10.0805 10.0757 10.2506 10.2458 10.4605 10.2458H11.7428ZM6.14367 11.743C6.14367 10.9161 6.81395 10.2458 7.64079 10.2458H8.92717C9.13704 10.2458 9.30717 10.0757 9.30717 9.86583C9.30717 9.65597 9.13704 9.48583 8.92717 9.48583H7.64079C6.39421 9.48583 5.38367 10.4964 5.38367 11.743C5.38367 12.9895 6.39421 14.0001 7.64079 14.0001H8.92717C9.13704 14.0001 9.30717 13.8299 9.30717 13.6201C9.30717 13.4102 9.13704 13.2401 8.92717 13.2401H7.64079C6.81395 13.2401 6.14367 12.5698 6.14367 11.743ZM8.14596 11.2669C7.93609 11.2669 7.76596 11.4371 7.76596 11.6469C7.76596 11.8568 7.93609 12.0269 8.14596 12.0269H11.2192C11.4291 12.0269 11.5992 11.8568 11.5992 11.6469C11.5992 11.4371 11.4291 11.2669 11.2192 11.2669H8.14596Z" fill="currentColor"/>',viewBox:"0 0 16 16"},chevronUp:{icon:'<path d="M5.997.955a.632.632 0 0 0-.463.194L.187 6.456A.588.588 0 0 0 0 6.884c0 .348.27.616.629.616a.667.667 0 0 0 .449-.174l4.919-4.872 4.925 4.872c.11.107.27.174.45.174a.61.61 0 0 0 .441-1.05L6.466 1.148a.659.659 0 0 0-.47-.194Z" fill="currentColor"/>',viewBox:"0 0 12 8"},markCircle:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99992 13.6668C11.1295 13.6668 13.6666 11.1298 13.6666 8.00016C13.6666 4.87055 11.1295 2.3335 7.99992 2.3335C4.87031 2.3335 2.33325 4.87055 2.33325 8.00016C2.33325 11.1298 4.87031 13.6668 7.99992 13.6668ZM5.1887 8.28534C5.20349 8.32108 5.22483 8.35372 5.25164 8.3816L7.25948 10.382C7.28598 10.4129 7.31881 10.4378 7.35574 10.4549C7.43478 10.4875 7.52352 10.4875 7.60256 10.4549C7.63949 10.4378 7.67232 10.4129 7.69881 10.382L11.2542 6.84517C11.281 6.8173 11.3023 6.78465 11.3171 6.74891C11.3466 6.66928 11.3466 6.58173 11.3171 6.5021C11.3026 6.46621 11.2813 6.43351 11.2542 6.40584L10.8075 5.97144C10.7813 5.94142 10.7491 5.9173 10.7129 5.9007C10.6768 5.88411 10.6375 5.87541 10.5977 5.87519C10.5553 5.87467 10.5132 5.88308 10.4743 5.89987C10.4367 5.91714 10.4028 5.94143 10.3743 5.97144L7.48162 8.86412L6.134 7.51404C6.10476 7.48385 6.06999 7.45955 6.03157 7.44247C5.99272 7.42538 5.95061 7.41696 5.90817 7.41778C5.869 7.41791 5.83031 7.42632 5.79463 7.44247C5.75757 7.45878 5.72466 7.48324 5.69837 7.51404L5.25164 7.94227C5.22457 7.96993 5.20319 8.00264 5.1887 8.03853C5.15921 8.11816 5.15921 8.20571 5.1887 8.28534Z" fill="currentColor"/>',viewBox:"0 0 16 16"},marksTotal:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M5.33333 3.55551C5.08787 3.55551 4.88889 3.7545 4.88889 3.99996V12C4.88889 12.2454 5.08787 12.4444 5.33333 12.4444H10.6667C10.9121 12.4444 11.1111 12.2454 11.1111 12V6.66663H9.33333C8.59695 6.66663 8 6.06967 8 5.33329V3.55551H5.33333ZM8.88889 4.18405L10.4826 5.77774H9.33333C9.08787 5.77774 8.88889 5.57875 8.88889 5.33329V4.18405ZM4 3.99996C4 3.26358 4.59695 2.66663 5.33333 2.66663H8.44444C8.56232 2.66663 8.67536 2.71345 8.75871 2.7968L11.8698 5.90791C11.9532 5.99126 12 6.10431 12 6.22218V12C12 12.7363 11.403 13.3333 10.6667 13.3333H5.33333C4.59695 13.3333 4 12.7363 4 12V3.99996ZM6.22222 8.88885C6.22222 8.64339 6.42121 8.4444 6.66667 8.4444H8C8.24546 8.4444 8.44444 8.64339 8.44444 8.88885C8.44444 9.13431 8.24546 9.33329 8 9.33329H6.66667C6.42121 9.33329 6.22222 9.13431 6.22222 8.88885ZM6.22222 10.6666C6.22222 10.4212 6.42121 10.2222 6.66667 10.2222H9.33333C9.57879 10.2222 9.77778 10.4212 9.77778 10.6666C9.77778 10.9121 9.57879 11.1111 9.33333 11.1111H6.66667C6.42121 11.1111 6.22222 10.9121 6.22222 10.6666Z" fill="currentColor"/>',viewBox:"0 0 16 16"},crossCircle:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M8.00016 13.6667C11.1298 13.6667 13.6668 11.1297 13.6668 8.00004C13.6668 4.87043 11.1298 2.33337 8.00016 2.33337C4.87055 2.33337 2.3335 4.87043 2.3335 8.00004C2.3335 11.1297 4.87055 13.6667 8.00016 13.6667ZM10.8219 9.96066C10.8226 9.8938 10.8112 9.82736 10.7883 9.76454C10.7634 9.70414 10.7268 9.6493 10.6806 9.60323L9.07431 7.99946L10.6864 6.39684C10.7335 6.3501 10.7707 6.2944 10.796 6.23302C10.8212 6.17163 10.834 6.10581 10.8335 6.03941C10.8347 5.90044 10.782 5.76643 10.6864 5.66574L10.3297 5.30831C10.2798 5.2614 10.2211 5.22474 10.1571 5.20039C10.0947 5.17809 10.0289 5.16671 9.96257 5.16674C9.89585 5.16607 9.82954 5.17747 9.76685 5.20039C9.70643 5.22502 9.65165 5.26174 9.60588 5.30831L8.00537 6.91789L6.39907 5.30831C6.35293 5.2611 6.29726 5.22431 6.23578 5.20039C6.17416 5.17797 6.10909 5.16658 6.04353 5.16674C5.97607 5.16631 5.90905 5.1777 5.8455 5.20039C5.78249 5.22534 5.72474 5.26195 5.67525 5.30831L5.31971 5.66574C5.27197 5.71595 5.23528 5.77565 5.21201 5.84097C5.18981 5.90477 5.17845 5.97185 5.17843 6.03941C5.17767 6.10591 5.18905 6.17198 5.21201 6.23437C5.23602 6.29556 5.27274 6.35094 5.31971 6.39684L6.91443 7.99946L5.31392 9.60323C5.26686 9.64997 5.2296 9.70567 5.20434 9.76706C5.17909 9.82844 5.16634 9.89427 5.16684 9.96066C5.16708 10.0278 5.17964 10.0942 5.2039 10.1568C5.22871 10.2226 5.26608 10.2829 5.31392 10.3343L5.67062 10.6918C5.72015 10.7386 5.77838 10.7753 5.84202 10.7997C5.90484 10.8221 5.97106 10.8335 6.03774 10.8333C6.1041 10.8341 6.17004 10.8227 6.23231 10.7997C6.29308 10.7751 6.34824 10.7384 6.39444 10.6918L7.99379 9.07638L9.60009 10.6894C9.64672 10.7366 9.70276 10.7734 9.76454 10.7974C9.82613 10.8199 9.89122 10.8313 9.95679 10.831C10.0243 10.8314 10.0913 10.8201 10.1548 10.7974C10.2176 10.7727 10.275 10.736 10.3239 10.6894L10.6806 10.332C10.728 10.2815 10.7646 10.2219 10.7883 10.1568C10.8101 10.0937 10.8214 10.0274 10.8219 9.96066Z" fill="currentColor"/>',viewBox:"0 0 16 16"},sortBy:{icon:'<path d="M14.1667 16.6668L10.8333 13.3335M5.83333 13.3335V3.3335V13.3335ZM5.83333 3.3335L2.5 6.66683L5.83333 3.3335ZM5.83333 3.3335L9.16667 6.66683L5.83333 3.3335ZM14.1667 6.66683V16.6668V6.66683ZM14.1667 16.6668L17.5 13.3335L14.1667 16.6668Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 20 20"},chevronLeft:{icon:'<path d="M15.75 19.5 8.25 12l7.5-7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" />',viewBox:"0 0 24 24"},chevronRight:{icon:'<path d="m8.25 4.5 7.5 7.5-7.5 7.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" />',viewBox:"0 0 24 24"},primary:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M2.91699 10.0004C2.91699 6.09462 6.09458 2.91699 10.0003 2.91699C13.9061 2.91699 17.0837 6.09462 17.0837 10.0004C17.0837 13.9061 13.9061 17.0837 10.0003 17.0837C6.09458 17.0837 2.91699 13.9061 2.91699 10.0004ZM4.20448 10.0006C4.20448 13.1962 6.80428 15.796 9.99993 15.796C13.1955 15.796 15.7954 13.1962 15.7954 10.0006C15.7954 6.80501 13.1956 4.20513 9.99993 4.20513C6.80428 4.20513 4.20448 6.80501 4.20448 10.0006ZM10.0001 5.92213C9.52679 5.92213 9.14171 6.30747 9.14171 6.78111C9.14171 7.25432 9.52679 7.63931 10.0001 7.63931C10.4735 7.63931 10.8585 7.25432 10.8585 6.78111C10.8585 6.30747 10.4735 5.92213 10.0001 5.92213ZM9.35615 9.571C9.35615 9.21537 9.64446 8.92706 10.0001 8.92706C10.3557 8.92706 10.644 9.21537 10.644 9.571V13.4346C10.644 13.7903 10.3557 14.0786 10.0001 14.0786C9.64446 14.0786 9.35615 13.7903 9.35615 13.4346V9.571Z" fill="currentColor"/>',viewBox:"0 0 20 20"},warning:{icon:'<g clip-path="url(#clip0_33239_17064)"><path d="M14.4 18V18.6C14.5591 18.6 14.7117 18.5368 14.8243 18.4243C14.9368 18.3117 15 18.1591 15 18H14.4ZM9.6 18H9C9 18.1591 9.06321 18.3117 9.17574 18.4243C9.28826 18.5368 9.44087 18.6 9.6 18.6V18ZM10.2 20.4C10.2 20.7314 10.4686 21 10.8 21H13.2C13.5314 21 13.8 20.7314 13.8 20.4C13.8 20.0686 13.5314 19.8 13.2 19.8H10.8C10.4686 19.8 10.2 20.0686 10.2 20.4ZM7.296 10.68L7.284 10.764L8.472 10.932L8.4852 10.848L7.296 10.68ZM12 6.6C10.8561 6.59981 9.75052 7.01236 8.88637 7.76188C8.02222 8.5114 7.45752 9.54755 7.296 10.68L8.4852 10.848C8.60624 10.0018 9.02726 9.22771 9.67315 8.6678C10.319 8.10789 11.1452 7.79976 12 7.8V6.6ZM16.704 10.68C16.5425 9.54755 15.9778 8.5114 15.1136 7.76188C14.2495 7.01236 13.1439 6.59981 12 6.6V7.8C12.8547 7.80001 13.6808 8.10823 14.3266 8.66809C14.9724 9.22796 15.3947 10.0019 15.516 10.848L16.704 10.68ZM16.716 10.764L16.704 10.68L15.516 10.848L15.5268 10.932L16.716 10.764ZM15.768 14.3508C16.524 13.374 16.9056 12.102 16.716 10.764L15.528 10.9332C15.5967 11.4051 15.5694 11.886 15.4478 12.347C15.3261 12.8081 15.1126 13.2399 14.82 13.6164L15.768 14.3508ZM13.8 16.08V18H15V16.0812L13.8 16.08ZM14.4 17.4H9.6V18.6H14.4V17.4ZM10.2 18V16.0812H9V18H10.2ZM7.284 10.764C7.19278 11.3949 7.22972 12.0377 7.3926 12.654C7.55549 13.2703 7.84098 13.8474 8.232 14.3508L9.1812 13.6164C8.88861 13.2399 8.67388 12.8081 8.55222 12.347C8.43056 11.886 8.40328 11.4039 8.472 10.932L7.284 10.764ZM10.2 16.08C10.2 15.0924 9.6744 14.2524 9.18 13.6152L8.232 14.3508C8.6916 14.9448 9 15.5112 9 16.08H10.2ZM14.82 13.6152C14.3244 14.2536 13.8 15.0924 13.8 16.08H15C15 15.5112 15.3084 14.9448 15.768 14.3508L14.82 13.6152ZM12 3C11.6686 3 11.4 3.26863 11.4 3.6V4.8C11.4 5.13137 11.6686 5.4 12 5.4C12.3314 5.4 12.6 5.13137 12.6 4.8V3.6C12.6 3.26863 12.3314 3 12 3ZM3 12C3 12.3314 3.26863 12.6 3.6 12.6H4.8C5.13137 12.6 5.4 12.3314 5.4 12C5.4 11.6686 5.13137 11.4 4.8 11.4H3.6C3.26863 11.4 3 11.6686 3 12ZM18.6 12C18.6 12.3314 18.8686 12.6 19.2 12.6H20.4C20.7314 12.6 21 12.3314 21 12C21 11.6686 20.7314 11.4 20.4 11.4H19.2C18.8686 11.4 18.6 11.6686 18.6 12ZM6.6 7.8C6.83461 7.56539 6.83461 7.18501 6.6 6.9504L5.6496 6C5.41499 5.76539 5.03461 5.76539 4.8 6C4.56539 6.23461 4.56539 6.61499 4.8 6.8496L5.7504 7.8C5.98501 8.03461 6.36539 8.03461 6.6 7.8ZM17.4 7.8C17.6346 8.03461 18.015 8.03461 18.2496 7.8L19.2 6.8496C19.4346 6.61499 19.4346 6.23461 19.2 6C18.9654 5.76539 18.585 5.76539 18.3504 6L17.4 6.9504C17.1654 7.18501 17.1654 7.56539 17.4 7.8Z" fill="currentColor"/></g><defs><clipPath id="clip0_33239_17064"><rect width="18" height="18" fill="white" transform="translate(3 3)"/></clipPath></defs>',viewBox:"0 0 24 24"},arrowUpDown:{icon:'<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m14.667 16.667-3.334-3.334m-5 0v-10 10Zm0-10L3 6.668l3.333-3.333Zm0 0 3.334 3.334-3.334-3.333Zm8.334 3.334v10-10Zm0 10L18 13.333l-3.333 3.334Z"/>',viewBox:"0 0 24 24"},bars:{icon:'<path d="M0.6 3.4V0.6H15.4V3.4H0.6ZM0.6 8.9V6.1H15.4V8.9H0.6ZM0.6 14.4V11.6H15.4V14.4H0.6Z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" fill="none" />',viewBox:"0 0 16 15"},verticalBars:{icon:'<path d="M16.8748 3.1C16.8886 3.1 16.8998 3.11119 16.8998 3.125L16.8998 17.875C16.8998 17.8888 16.8886 17.9 16.8748 17.9L14.1248 17.9C14.1109 17.9 14.0998 17.8888 14.0998 17.875L14.0998 3.125C14.0998 3.11119 14.111 3.1 14.1248 3.1L16.8748 3.1ZM11.3743 3.1C11.3881 3.1 11.3993 3.11119 11.3993 3.125L11.3993 17.875C11.3993 17.8888 11.3881 17.9 11.3743 17.9H8.62427C8.61046 17.9 8.59927 17.8888 8.59927 17.875L8.59927 3.125C8.59927 3.11119 8.61046 3.1 8.62427 3.1L11.3743 3.1ZM5.875 3.1C5.88881 3.1 5.9 3.11119 5.9 3.125L5.9 17.875C5.9 17.8888 5.88881 17.9 5.875 17.9H3.125C3.11119 17.9 3.1 17.8888 3.1 17.875L3.1 3.125C3.1 3.11119 3.11119 3.1 3.125 3.1L5.875 3.1Z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" fill="none"/>',viewBox:"0 0 20 20"},upload:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.50052 2.5C6.94744 2.49995 6.40036 2.61464 5.89385 2.83683C5.38734 3.05902 4.93241 3.38388 4.55782 3.79087C4.18322 4.19786 3.89711 4.67814 3.71754 5.20137C3.53798 5.72459 3.46887 6.27937 3.5146 6.83067C2.79373 7.1685 2.20958 7.74207 1.85856 8.45672C1.50754 9.17136 1.41063 9.98435 1.58383 10.7615C1.75704 11.5386 2.18999 12.2335 2.81125 12.7314C3.4325 13.2292 4.20491 13.5004 5.00099 13.5H12.4996C13.1629 13.5002 13.8076 13.2805 14.3328 12.8752C14.858 12.4699 15.2341 11.9019 15.4021 11.2601C15.5702 10.6182 15.5208 9.93881 15.2617 9.32806C15.0025 8.71731 14.5483 8.2097 13.97 7.88467C14.0293 7.50429 13.9999 7.11535 13.8842 6.74819C13.7685 6.38102 13.5696 6.04554 13.303 5.76789C13.0363 5.49025 12.7092 5.27794 12.3471 5.14752C11.9849 5.0171 11.5976 4.97209 11.2152 5.016C10.9184 4.27328 10.4059 3.63658 9.74371 3.18809C9.08156 2.73961 8.30021 2.49993 7.50052 2.5ZM8.8536 6.14667C8.75987 6.05303 8.63281 6.00044 8.50034 6.00044C8.36786 6.00044 8.2408 6.05303 8.14707 6.14667L6.14744 8.14667C6.09833 8.19244 6.05893 8.24764 6.03161 8.30897C6.00428 8.37031 5.98959 8.43652 5.98841 8.50365C5.98722 8.57079 5.99957 8.63747 6.02471 8.69973C6.04986 8.76199 6.08728 8.81855 6.13475 8.86602C6.18222 8.9135 6.23877 8.95093 6.30101 8.97608C6.36326 9.00123 6.42993 9.01358 6.49706 9.01239C6.56418 9.01121 6.63038 8.99652 6.6917 8.96919C6.75302 8.94186 6.80821 8.90246 6.85398 8.85333L8.00043 7.70667V11C8.00043 11.1326 8.0531 11.2598 8.14685 11.3536C8.2406 11.4473 8.36775 11.5 8.50034 11.5C8.63292 11.5 8.76007 11.4473 8.85382 11.3536C8.94757 11.2598 9.00024 11.1326 9.00024 11V7.70667L10.1467 8.85333C10.1925 8.90246 10.2477 8.94186 10.309 8.96919C10.3703 8.99652 10.4365 9.01121 10.5036 9.01239C10.5707 9.01358 10.6374 9.00123 10.6997 8.97608C10.7619 8.95093 10.8185 8.9135 10.8659 8.86602C10.9134 8.81855 10.9508 8.76199 10.976 8.69973C11.0011 8.63747 11.0134 8.57079 11.0123 8.50365C11.0111 8.43652 10.9964 8.37031 10.9691 8.30897C10.9417 8.24764 10.9023 8.19244 10.8532 8.14667L8.8536 6.14667Z" fill="currentColor"/>',viewBox:"0 0 16 16"},downloadCloud:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M14 5a8 8 0 0 0-7.974 8.661A7 7 0 0 0 8.999 27h15a6 6 0 0 0 2.942-11.23 5 5 0 0 0-5.511-5.738A8.001 8.001 0 0 0 14 5Zm3 8a1 1 0 0 0-2 0v6.587l-2.294-2.294a1 1 0 0 0-1.413 1.414l4 4a1 1 0 0 0 1.413 0l4-4a1 1 0 1 0-1.413-1.414l-2.294 2.294V13Z" fill="currentColor"/>',viewBox:"0 0 32 32"},circleCross:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M8.5 13.667a5.667 5.667 0 1 0 0-11.334 5.667 5.667 0 0 0 0 11.334ZM11.32 9.96a.556.556 0 0 0-.033-.197.492.492 0 0 0-.108-.16L9.574 7.998l1.612-1.602a.498.498 0 0 0 .147-.358.535.535 0 0 0-.147-.373l-.357-.358a.524.524 0 0 0-.367-.141.479.479 0 0 0-.357.142l-1.6 1.609-1.606-1.61a.463.463 0 0 0-.164-.108.578.578 0 0 0-.39 0 .54.54 0 0 0-.17.108l-.356.358a.496.496 0 0 0-.107.175.605.605 0 0 0 0 .393c.024.061.06.117.107.163l1.595 1.602-1.6 1.604a.498.498 0 0 0-.148.358.548.548 0 0 0 .147.373l.357.358a.52.52 0 0 0 .367.141c.067.001.133-.01.195-.033a.484.484 0 0 0 .162-.108l1.6-1.616L10.1 10.69a.47.47 0 0 0 .164.108.578.578 0 0 0 .39 0 .522.522 0 0 0 .17-.108l.356-.357a.512.512 0 0 0 .108-.175.615.615 0 0 0 .033-.196Z" clip-rule="evenodd" opacity=".9"/>',viewBox:"0 0 17 16"},search:{icon:'<path d="M17.8178 16.9381L13.913 13.0334C14.8836 11.8662 15.4683 10.3674 15.4683 8.73438C15.4683 5.02103 12.4474 2 8.7342 2C5.02094 2 2 5.02103 2 8.73438C2 12.4475 5.02094 15.4683 8.7342 15.4683C10.3672 15.4683 11.866 14.8836 13.0332 13.913L16.9381 17.8178C17.0595 17.9393 17.2187 18 17.3779 18C17.5371 18 17.6963 17.9393 17.8178 17.8178C18.0608 17.5748 18.0608 17.181 17.8178 16.9381ZM3.24414 8.73438C3.24414 5.70705 5.70696 3.24414 8.7342 3.24414C11.7614 3.24414 14.2241 5.70705 14.2241 8.73438C14.2241 11.7615 11.7614 14.2241 8.7342 14.2241C5.70696 14.2241 3.24414 11.7615 3.24414 8.73438Z" fill="currentColor"/>',viewBox:"0 0 20 20"},key:{icon:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.695 5.15a2.155 2.155 0 0 1 2.154 2.155m2.155 0a4.31 4.31 0 0 1-5.048 4.246c-.404-.07-.832.018-1.122.309l-1.91 1.908H7.31v1.616H5.693V17H3v-2.024c0-.428.17-.84.473-1.142L8.14 9.167c.29-.29.379-.719.31-1.123a4.309 4.309 0 1 1 8.554-.739Z"/>',viewBox:"0 0 20 20"},questionCircle:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M.875 9A8.125 8.125 0 0 1 9 .875 8.125 8.125 0 0 1 17.125 9 8.125 8.125 0 0 1 9 17.125 8.125 8.125 0 0 1 .875 9Zm9.482-3.264c-.742-.648-1.972-.648-2.713 0a.625.625 0 0 1-.823-.941c1.212-1.06 3.146-1.06 4.358 0 1.261 1.103 1.261 2.932 0 4.035-.21.184-.445.339-.697.46-.564.273-.857.645-.857.96v.625a.625.625 0 1 1-1.25 0v-.625c0-1.066.883-1.756 1.563-2.085a1.9 1.9 0 0 0 .419-.276c.691-.606.691-1.547 0-2.153ZM9 14a.625.625 0 1 0 0-1.25A.625.625 0 0 0 9 14Z" fill="currentColor"/>',viewBox:"0 0 18 18"},colorBrush:{icon:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M7.942 13.435a2.5 2.5 0 0 0-4.817.94 1.875 1.875 0 0 1-2 1.871 3.75 3.75 0 0 0 7-1.87c0-.333-.065-.65-.183-.94Zm0 0c.99-.337 1.938-.79 2.823-1.35m-4.203-.02c.338-.994.792-1.943 1.352-2.83m2.85 2.85a13.328 13.328 0 0 0 3.97-3.873l3.23-4.845a.96.96 0 0 0-1.33-1.33l-4.846 3.23a13.33 13.33 0 0 0-3.874 3.97 5.647 5.647 0 0 1 2.85 2.85"/>',viewBox:"0 0 20 20"},plus:{icon:'<path d="M8.5 3V13V3ZM13.5 8H3.5H13.5Z" fill="currentColor"/><path d="M8.5 3V13M13.5 8H3.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 16 16"},broom:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M20.0215 40.1489C31.0672 40.1489 40.0215 31.1946 40.0215 20.1489C40.0215 9.10323 31.0672 0.148926 20.0215 0.148926C8.97579 0.148926 0.0214844 9.10323 0.0214844 20.1489C0.0214844 31.1946 8.97579 40.1489 20.0215 40.1489ZM15.7985 18.1171H14.5373V16.8559H13.2761V18.1171H12.0149V19.3783H13.2761V20.6395H14.5373V19.3783H15.7985V18.1171ZM13.2761 23.1619H12.0149V21.9007H10.7537V23.1619H9.49247V24.4231H10.7537V25.6844H12.0149V24.4231H13.2761V23.1619ZM17.6903 20.0089H27.1494V19.3783C27.1494 19.0438 27.0166 18.723 26.78 18.4865C26.5435 18.25 26.2227 18.1171 25.8882 18.1171H23.3658V10.5498H21.474V18.1171H18.9516C18.6171 18.1171 18.2963 18.25 18.0597 18.4865C17.8232 18.723 17.6903 19.0438 17.6903 19.3783V20.0089ZM24.0046 27.5762H26.5188C27.2037 25.1604 27.1789 23.2247 27.1567 21.4976C27.1557 21.4214 27.1548 21.3456 27.1539 21.2701H17.6721C17.5838 23.4835 17.0534 25.5992 16.4291 27.5762H18.8431C19.2902 26.687 19.5822 25.3016 19.5822 24.4231C19.5822 24.2559 19.6486 24.0955 19.7669 23.9772C19.8851 23.859 20.0455 23.7925 20.2128 23.7925C20.38 23.7925 20.5404 23.859 20.6587 23.9772C20.7769 24.0955 20.8434 24.2559 20.8434 24.4231C20.8434 25.178 20.646 26.4745 20.221 27.5762H22.6267C23.0738 26.687 23.3658 25.3016 23.3658 24.4231C23.3658 24.2559 23.4322 24.0955 23.5505 23.9772C23.6688 23.859 23.8292 23.7925 23.9964 23.7925C24.1637 23.7925 24.3241 23.859 24.4423 23.9772C24.5606 24.0955 24.627 24.2559 24.627 24.4231C24.627 25.178 24.4296 26.4745 24.0046 27.5762Z" fill="currentColor"/>',viewBox:"0 0 40 40"},media:{icon:'<g fill="currentColor" clip-path="url(#a)"><path d="M6.087 5.519h4.754c.417 0 .673.167.805.529.027.07.041.153.041.229.003 2.42.003 4.839 0 7.258 0 .41-.34.75-.755.768h-9.61c-.403 0-.703-.224-.803-.597a.573.573 0 0 1-.018-.159c0-2.425-.003-4.85 0-7.273 0-.406.324-.744.732-.747 1.35-.006 2.7-.006 4.048-.006.268-.002.535-.002.806-.002Zm-2.41 4.768c-.05.047-.092.082-.13.12-.344.341-.685.682-1.026 1.027-.156.155-.362.293-.441.482-.076.182-.012.423-.026.637-.01.147.035.192.185.192 2.566-.006 5.136-.003 7.702 0 .138 0 .185-.036.185-.18-.006-.702-.006-1.408 0-2.11a.333.333 0 0 0-.106-.256c-.737-.738-1.47-1.476-2.204-2.214-.036-.035-.08-.068-.13-.112-1.073 1.07-2.131 2.132-3.201 3.202-.27-.268-.535-.523-.809-.788ZM2.87 7.085a.81.81 0 0 0-.815.806.83.83 0 0 0 .82.835c.45 0 .818-.368.82-.817a.806.806 0 0 0-.825-.824Z"/><path d="M10.109 1.506h5.603a.765.765 0 0 1 .788.77v8.052a.744.744 0 0 1-.744.75c-1.026.006-2.055.003-3.08.006-.124 0-.145-.05-.145-.159.003-.788.003-1.573.003-2.36V3.27c0-.203 0-.203-.208-.203h-4.43c-.221 0-.221 0-.221.23 0 .405-.003.81.003 1.216.003.124-.03.17-.165.17a379.136 379.136 0 0 0-3.654 0c-.135 0-.162-.046-.162-.17.006-.723.003-1.446.003-2.17a.812.812 0 0 1 .832-.843c1.861.012 3.719.006 5.577.006ZM6.311 3.678V3.37c-.003-.215-.088-.303-.3-.306-.215-.003-.43-.003-.647 0-.194 0-.29.085-.3.28-.011.229-.006.458 0 .687.003.141.074.256.227.262.267.012.535.015.802 0 .144-.009.22-.112.218-.265-.003-.114 0-.232 0-.35Zm8.834 2.623V5.948c-.009-.182-.094-.268-.276-.27-.22-.003-.441-.003-.662 0-.212 0-.306.085-.312.296-.005.215-.005.43 0 .644.006.191.086.288.271.3.238.015.48.015.717 0 .18-.012.253-.112.259-.294.006-.109.003-.217.003-.323Zm0-2.605c0-.118.003-.235 0-.353-.006-.185-.1-.276-.285-.279a24.59 24.59 0 0 0-.659 0c-.188 0-.288.08-.297.268-.011.238-.008.479-.003.717.006.135.077.24.224.247.267.009.535.012.802.003.142-.006.212-.112.218-.25.003-.118 0-.235 0-.353Zm-.632 5.82h.364c.165-.002.26-.081.265-.246.009-.244.006-.488 0-.732-.006-.156-.097-.247-.25-.25-.25-.006-.497-.003-.747 0-.126.003-.226.074-.232.2a8.683 8.683 0 0 0 0 .829c.006.13.106.2.244.197.12 0 .238.003.356.003Z" opacity=".4"/></g><defs><clipPath id="a"><path fill="#fff" d="M.5 0h16v16H.5z"/></clipPath></defs>',viewBox:"0 0 17 16"},mediaJson:{icon:'<g fill="currentColor" clip-path="url(#b)"><path fill-rule="evenodd" d="M59.33 39.682a3.111 3.111 0 0 1-3.103-3.102V19H30.375a3.095 3.095 0 0 0-3.102 3.102V63h-.003v1.3h.003v17.78a3.095 3.095 0 0 0 3.102 3.102h43.431a3.095 3.095 0 0 0 3.103-3.103V64.3h.001V63h-.001V39.682h-17.58ZM76.908 63H27.272v1.3H76.91V63Zm-30.69-5c-2.157 0-3.171-1.015-3.171-3.145v-2.039c0-1.207-.339-1.737-1.298-1.902-.567-.1-.75-.375-.75-.923 0-.512.21-.814.75-.905.96-.174 1.298-.695 1.298-1.902v-2.039c0-2.13 1.014-3.145 3.172-3.145.155 0 .292.027.402.073.256.11.393.33.393.594 0 .311-.137.494-.43.576a2.131 2.131 0 0 1-.274.046c-1.243.119-1.764.594-1.764 2.057v2.405c0 1.316-.658 2.002-2.002 2.14v.219c1.344.137 2.002.823 2.002 2.14v2.404c0 1.463.52 1.938 1.764 2.057.1.009.192.027.274.046.293.082.43.265.43.576a.622.622 0 0 1-.393.594c-.11.046-.247.073-.402.073Zm5.794-11.067c0 .54-.448.987-.996.987a.995.995 0 0 1-.988-.987.99.99 0 0 1 .987-.987c.549 0 .997.438.997.987Zm-.201 6.417c0 .503-.33.85-.795.85-.467 0-.796-.347-.796-.85v-3.144c0-.503.33-.85.796-.85s.795.347.795.85v3.144Zm7.14 1.505v-2.039c0-1.207.339-1.737 1.298-1.902.567-.1.75-.375.75-.923 0-.512-.21-.814-.75-.905-.96-.174-1.298-.695-1.298-1.902v-2.039c0-2.13-1.014-3.145-3.172-3.145-.155 0-.292.027-.402.073a.622.622 0 0 0-.393.594c0 .311.137.494.43.576.082.019.173.037.274.046 1.243.119 1.764.594 1.764 2.057v2.405c0 1.316.658 2.002 2.002 2.14v.219c-1.344.137-2.002.823-2.002 2.14v2.404c0 1.463-.52 1.938-1.764 2.057-.1.009-.192.027-.274.046-.293.082-.43.265-.43.576 0 .265.137.484.393.594.11.046.247.073.402.073 2.158 0 3.172-1.015 3.172-3.145ZM40 76.755c0 1.94-1.142 3.082-3.077 3.082-1.825 0-2.891-1.114-2.973-2.686l-.007-.082h1.51l.008.061c.061.752.533 1.34 1.449 1.34 1.011 0 1.558-.602 1.558-1.73V69.81H40v6.945Zm5.702 3.082c2.338 0 3.76-1.141 3.76-2.94v-.006c0-1.525-.876-2.352-2.913-2.782l-1.08-.226c-1.23-.266-1.79-.718-1.79-1.456v-.007c0-.861.779-1.442 2.002-1.45 1.17 0 1.962.555 2.099 1.47l.007.096h1.49l-.007-.116c-.102-1.654-1.51-2.775-3.568-2.775-2.085 0-3.569 1.155-3.575 2.837v.007c0 1.462.936 2.351 2.87 2.761l1.074.226c1.306.287 1.846.718 1.846 1.51v.007c0 .923-.834 1.518-2.154 1.518-1.32 0-2.228-.567-2.365-1.477l-.014-.088h-1.49l.007.102c.123 1.736 1.586 2.79 3.8 2.79Zm14.527-5.093c0 3.131-1.77 5.093-4.621 5.093-2.844 0-4.621-1.955-4.621-5.093v-.013c0-3.131 1.784-5.086 4.62-5.086 2.845 0 4.622 1.962 4.622 5.086v.013Zm-7.684 0c0 2.297 1.19 3.74 3.063 3.74 1.894 0 3.056-1.463 3.056-3.74v-.013c0-2.29-1.183-3.733-3.056-3.733-1.866 0-3.063 1.436-3.063 3.733v.013Zm9.647 4.93h1.517v-7.309h.041l5.08 7.308h1.408V69.81h-1.518v7.294h-.04l-5.073-7.294h-1.415v9.864Z" clip-rule="evenodd"/><path d="M76.818 34.666v.789H60.273V18.909h.788a3.1 3.1 0 0 1 2.197.905l12.655 12.668c.582.581.905 1.37.905 2.184Z" opacity=".4"/></g><defs><clipPath id="b"><path fill="#fff" d="M18.91 18.91H85.09V85.09H18.91z"/></clipPath>',viewBox:"0 0 104 104"},mediaVideo:{icon:'<rect width="51.212" height="47.273" x="13" y="28.363" fill="currentColor" rx="4"/><path fill="currentColor" fill-rule="evenodd" d="M88.374 31.777c1.26-1.26 3.414-.367 3.414 1.414v37.616c0 1.782-2.154 2.674-3.414 1.414L69.566 53.413a2 2 0 0 1 0-2.828l18.808-18.808Z" clip-rule="evenodd" opacity=".4"/>',viewBox:"0 0 104 104"},mediaMusic:{icon:'<g clip-path="url(#c)"><path fill="currentColor" d="M78.535 25.312a1.97 1.97 0 0 0-1.508-.483l-34.948 3.883a1.941 1.941 0 0 0-1.728 1.93v34.6a11.234 11.234 0 0 0-5.825-1.594c-5.353 0-9.708 3.484-9.708 7.767s4.355 7.766 9.708 7.766 9.708-3.481 9.708-7.766V42.097l31.065-3.46v22.717a11.234 11.234 0 0 0-5.825-1.589c-5.353 0-9.708 3.483-9.708 7.767 0 4.283 4.355 7.766 9.708 7.766s9.708-3.481 9.708-7.766V26.759c0-.552-.235-1.078-.647-1.447Z"/></g><defs><clipPath id="c"><path fill="#fff" d="M24.818 24.818h54.364v54.364H24.818z"/></clipPath>',viewBox:"0 0 104 104"},mediaZip:{icon:'<g fill="currentColor" clip-path="url(#d)"><path d="M75.06 33.178 62.857 20.963a2.99 2.99 0 0 0-2.12-.872h-.76v15.954h15.955v-.76c0-.785-.311-1.546-.872-2.106Z" opacity=".4"/><path fill-rule="evenodd" d="M55.989 37.042a3 3 0 0 0 2.991 2.992h16.952v40.884a2.984 2.984 0 0 1-2.992 2.991H31.06a2.984 2.984 0 0 1-2.992-2.992V23.083a2.984 2.984 0 0 1 2.992-2.991h13.013v3.988h3.988v-3.988h7.928v16.951ZM44.01 24.08h-3.988v3.99h3.988v-3.99Zm-6.369 40.024c-.823 4.05 2.269 7.84 6.407 7.84 4.113 0 7.204-3.764 6.407-7.803L48.298 53.21a1.507 1.507 0 0 0-1.47-1.21h-2.755v-3.988h3.988v-3.988h-3.988v-3.989h3.988v-3.989h-3.988v-3.988h3.988v-3.989h-3.988v3.989h-3.989v3.988h3.989v3.989h-3.989v3.989h3.989v3.988h-3.989V52l-2.443 12.103Zm2.393 1.234c0-1.857 1.808-3.366 4.039-3.366 2.23 0 4.05 1.509 4.05 3.366 0 1.857-1.807 3.365-4.038 3.365-2.23 0-4.05-1.495-4.05-3.365Z" clip-rule="evenodd"/></g><defs><clipPath id="d"><path fill="#fff" d="M20.09 20.09H83.91V83.91H20.09z"/></clipPath>',viewBox:"0 0 104 104"},mediaPdf:{icon:'<path fill="currentColor" d="M75.355 33.178 63.139 20.963a2.99 2.99 0 0 0-2.119-.872h-.748v15.954h15.955v-.76c0-.785-.312-1.546-.873-2.106Z" opacity=".4"/><path fill="currentColor" fill-rule="evenodd" d="M59.275 40.034a3 3 0 0 1-2.991-2.992V20.091h-24.93a2.984 2.984 0 0 0-2.99 2.991v57.835a2.984 2.984 0 0 0 2.99 2.992h41.881a2.984 2.984 0 0 0 2.992-2.992V40.035H59.275Zm5.721 27.721c-2.106 0-5.272-.96-7.977-2.43-2.514.413-5.307 1.36-7.987 2.267-.628.213-1.25.423-1.86.624-3.166 5.46-5.384 7.703-7.616 7.703-.685 0-1.981-.386-2.68-1.246-2.38-2.93 3.416-6.743 6.794-8.476.006 0 .009-.003.012-.006.003-.003.006-.007.013-.007 1.508-2.642 3.64-7.254 5.085-10.694-1.06-4.1-1.633-7.317-1.01-9.598.674-2.455 5.373-2.817 5.958.848.656 2.137-.167 5.518-.729 7.823l-.043.18c1.171 3.09 2.83 5.184 5.322 6.705 2.406-.312 7.441-.798 9.174.897 1.433 1.421 1.184 5.41-2.456 5.41Zm-14.21-21.589c-.36 0-.373 3.852.25 5.846.698-1.246.798-5.846-.25-5.846Zm.038 11.73c-.96 2.517-2.156 5.397-3.54 7.815a73.51 73.51 0 0 0 1.73-.696h.001c1.838-.758 3.86-1.591 6.11-2.034-1.583-1.196-3.104-2.916-4.3-5.085ZM43.445 68.44c-2.705 4.338-4.35 5.11-4.35 5.011.616-1.669 2.738-3.564 3.867-4.573l.001-.002c.195-.173.36-.32.482-.436Zm17.338-4.561C65.407 65.849 66.118 65 66.118 65c.511-.337-.312-1.484-5.335-1.122Z" clip-rule="evenodd"/>',viewBox:"0 0 104 104"},mediaWord:{icon:'<path fill="currentColor" d="M59.239 39.591a3.111 3.111 0 0 1-3.103-3.102v-17.58H30.284a3.095 3.095 0 0 0-3.102 3.103v59.977a3.095 3.095 0 0 0 3.102 3.102h43.432a3.095 3.095 0 0 0 3.102-3.102V39.59h-17.58Zm8.88 14.31-4.912 21.715a1.537 1.537 0 0 1-1.513 1.202h-4.912c-.71 0-1.33-.49-1.499-1.176-3.335-13.379-2.689-10.496-3.309-14.283h-.065c-.142 1.848-.31 2.249-3.309 14.283a1.549 1.549 0 0 1-1.5 1.176h-4.795a1.549 1.549 0 0 1-1.512-1.215l-4.886-21.716A1.546 1.546 0 0 1 37.419 52h3.167a1.55 1.55 0 0 1 1.525 1.254c2.017 10.082 2.599 14.154 2.715 15.796.207-1.319.943-4.227 3.8-15.86a1.539 1.539 0 0 1 1.513-1.177H53.9a1.55 1.55 0 0 1 1.512 1.19c3.103 12.977 3.723 16.028 3.827 16.726-.026-1.448-.337-2.301 2.792-16.7A1.498 1.498 0 0 1 63.517 52h3.09c.995 0 1.731.918 1.512 1.9Z"/><path fill="#36F" d="M76.818 34.666v.789H60.273V18.909h.788a3.1 3.1 0 0 1 2.197.905l12.655 12.668c.582.581.905 1.37.905 2.184Z" opacity=".4"/>',viewBox:"0 0 104 104"},mediaPowerPoint:{icon:'<g fill="currentColor" clip-path="url(#e)"><path d="M75.913 32.482 63.246 19.814a3.1 3.1 0 0 0-2.198-.905h-.776v16.546h16.546v-.789c0-.814-.323-1.603-.905-2.184Z" opacity=".4"/><path fill-rule="evenodd" d="M56.136 36.489a3.111 3.111 0 0 0 3.102 3.102h17.58v42.398a3.095 3.095 0 0 1-3.102 3.102H30.284a3.095 3.095 0 0 1-3.102-3.102V22.01a3.095 3.095 0 0 1 3.102-3.102h25.852v17.58Zm-7.51 38.778v-7.394c.263 0 .598.014.99.03 3.893.16 13.371.546 13.371-10.06 0-5.714-3.671-9.953-9.423-9.953h-10.47c-.853 0-1.551.698-1.551 1.55v25.827c0 .853.698 1.551 1.55 1.551h3.982c.853 0 1.551-.698 1.551-1.55Zm-.013-21.302h3.607c1.137 0 2.003.349 2.624 1.047 1.24 1.409 1.266 4.227-.026 5.7-.634.724-1.538 1.099-2.728 1.099h-3.477v-7.846Z" clip-rule="evenodd"/></g><defs><clipPath id="e"><path fill="#fff" d="M18.91 18.91H85.09V85.09H18.91z"/></clipPath>',viewBox:"0 0 104 104"},mediaExcel:{icon:'<g fill="currentColor" clip-path="url(#f)"><path d="M59.239 39.591a3.111 3.111 0 0 1-3.103-3.102v-17.58H30.284a3.095 3.095 0 0 0-3.102 3.103v59.977a3.095 3.095 0 0 0 3.102 3.102h43.432a3.095 3.095 0 0 0 3.102-3.102V39.59h-17.58Zm4.666 34.836c.659 1.034-.078 2.391-1.306 2.391h-4.511c-.569 0-1.099-.31-1.37-.814-2.534-4.68-4.718-8.88-4.718-8.88-.828 1.913-1.293 2.585-4.731 8.893a1.537 1.537 0 0 1-1.357.814H41.4c-1.228 0-1.964-1.357-1.305-2.391l7.794-12.086-7.794-12.086c-.672-1.034.077-2.391 1.305-2.391H45.9c.568 0 1.098.31 1.37.814 3.374 6.308 2.585 4.343 4.73 8.854 0 0 .79-1.512 4.732-8.854a1.557 1.557 0 0 1 1.37-.814h4.498c1.228-.013 1.965 1.344 1.306 2.378l-7.769 12.086 7.769 12.086Z"/><path d="M76.818 34.666v.789H60.273V18.909h.788a3.1 3.1 0 0 1 2.197.905l12.655 12.668c.582.581.905 1.37.905 2.184Z" opacity=".4"/></g><defs><clipPath id="f"><path fill="#fff" d="M18.91 18.91H85.09V85.09H18.91z"/></clipPath>',viewBox:"0 0 104 104"},mediaPicture:{icon:'<path fill="currentColor" d="M74.166 24.818H29.048a6.6 6.6 0 0 0-6.594 6.598v41.466a6.597 6.597 0 0 0 6.594 6.59h45.118a6.594 6.594 0 0 0 6.59-6.59V31.416c.001-3.642-2.953-6.598-6.59-6.598Zm-14.01 9.812a6.37 6.37 0 1 1-.002 12.74 6.37 6.37 0 0 1 .002-12.74Zm11.942 38.746H32.025c-1.759 0-2.542-1.273-1.75-2.843l10.931-21.65c.792-1.57 2.302-1.71 3.37-.313l10.992 14.364c1.069 1.397 2.937 1.516 4.174.264l2.689-2.723c1.235-1.252 3.056-1.097 4.064.344l6.963 9.946c1.006 1.442.4 2.611-1.36 2.611Z"/>',viewBox:"0 0 104 104"},uTurnLeft:{icon:'<path d="m6.5 10-4-4m0 0 4-4m-4 4h8a4 4 0 1 1 0 8h-2" stroke="#6F7CA3" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 17 16"},comment:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M8 2.938c1.62 0 3.211.119 4.768.347C14.087 3.48 15 4.635 15 5.932v4.012c0 1.297-.913 2.453-2.232 2.647-.585.086-1.174.156-1.768.21v2.637a.5.5 0 0 1-.853.353l-2.79-2.788a.26.26 0 0 0-.177-.075 32.642 32.642 0 0 1-3.948-.337C1.913 12.397 1 11.242 1 9.944V5.932c0-1.298.913-2.453 2.232-2.647A32.764 32.764 0 0 1 8 2.938Zm2.5 4.25a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Zm-1.75.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Zm-3.25-.75a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5Z" fill="currentColor"/>',viewBox:"0 0 16 17"},exportAlt:{icon:'<path d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 24 24"},importAlt:{icon:'<path d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',viewBox:"0 0 24 24"},folders:{icon:'<path fill="#62C5E8" d="M83.254 78.666h-59.79c-1.142 0-2.18-.935-2.18-2.18V32.993c0-1.142.934-2.18 2.18-2.18h29.791c.83 0 1.557-.415 1.869-1.142l1.764-3.53C57.304 25.416 58.03 25 58.757 25H83.15c1.142 0 2.18.934 2.18 2.18v49.306c.104 1.142-.83 2.18-2.076 2.18Z"/><path fill="#29BAE3" d="M82.32 79.6H23.464c-1.142 0-2.18-.934-2.18-2.18V33.927c0-1.142.934-2.18 2.18-2.18h29.791c.83 0 1.557-.415 1.869-1.142l1.764-3.529c.416-.727 1.142-1.142 1.869-1.142H83.15c1.142 0 2.18.934 2.18 2.18v48.372c.104 1.66-1.246 3.114-3.01 3.114Z"/><path fill="#70CEEA" d="M19 38.39v37.162c0 1.764 1.35 3.114 3.114 3.114H82.32c1.765 0 3.114-1.35 3.114-3.114V43.373c0-1.764-1.35-3.114-3.114-3.114H52.01c-.83 0-1.66-.311-2.18-.934l-3.114-3.114c-.623-.623-1.35-.934-2.18-.934h-22.42C20.348 35.277 19 36.73 19 38.39Z"/><path fill="#62C5E8" d="M19 39.325v37.16c0 1.766 1.35 3.115 3.114 3.115H82.32c1.765 0 3.114-1.35 3.114-3.114V44.307c0-1.764-1.35-3.114-3.114-3.114H52.01c-.83 0-1.66-.311-2.18-.934l-3.114-3.114c-.623-.623-1.35-.934-2.18-.934h-22.42c-1.766 0-3.115 1.453-3.115 3.114Z"/>',viewBox:"0 0 104 104"},addFolder:{icon:'<path fill="currentColor" fill-rule="evenodd" d="M22.18 78.666h58.856c1.764 0 3.114-1.454 3.01-3.114V27.18c0-1.246-1.038-2.18-2.18-2.18H57.472c-.726 0-1.453.415-1.868 1.142l-1.764 3.53c-.312.726-1.039 1.14-1.869 1.14H22.18c-1.246 0-2.18 1.039-2.18 2.18v43.494c0 1.245 1.038 2.18 2.18 2.18Zm31.07-33.041a1.25 1.25 0 1 0-2.5 0v8.125h-8.125a1.25 1.25 0 1 0 0 2.5h8.125v8.125a1.25 1.25 0 1 0 2.5 0V56.25h8.125a1.25 1.25 0 1 0 0-2.5H53.25v-8.125Z" clip-rule="evenodd"/>',viewBox:"0 0 104 104"},exclamationTriangle:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.05 2.252c.867-1.5 3.033-1.5 3.898 0l5.517 9.561c.865 1.5-.218 3.375-1.95 3.375H3.484c-1.732 0-2.814-1.875-1.949-3.375l5.515-9.56ZM9 6.188a.562.562 0 0 1 .563.562v2.813a.562.562 0 1 1-1.125 0V6.75A.563.563 0 0 1 9 6.188Zm0 6.187a.562.562 0 1 0 0-1.125.562.562 0 0 0 0 1.125Z" fill="currentColor"/>',viewBox:"0 0 18 18"},exclamationCircle:{icon:'<g clip-path="url(#exclamationCircle)"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.947 9.935a9.512 9.512 0 1 1-19.025 0 9.512 9.512 0 0 1 19.025 0Zm-9.513-5.946a.892.892 0 0 1 .892.892v5.351a.892.892 0 1 1-1.784 0v-5.35a.892.892 0 0 1 .892-.892Zm0 11.89a1.189 1.189 0 1 0 0-2.377 1.189 1.189 0 0 0 0 2.378Z" fill="currentColor"/></g><defs><clipPath id="exclamationCircle"><path fill="#fff" d="M.5 0h20v20H.5z"/></clipPath></defs>',viewBox:"0 0 20 20"},fontBook:{icon:'<g fill="currentColor" clip-path="url(#g)"><path d="m5.037 3 3.384 8.733c.14.334.288.566.446.696.167.12.32.186.46.195v.278a11.686 11.686 0 0 0-.878-.027 43.505 43.505 0 0 0-2.173 0c-.352 0-.64.009-.863.027v-.278c.474-.019.775-.098.905-.237.13-.148.102-.46-.083-.933L3.783 4.838l.251-.306-2.228 5.78c-.177.464-.283.845-.32 1.142-.038.297-.015.53.07.696a.738.738 0 0 0 .417.362c.195.066.436.103.724.112v.278a13.827 13.827 0 0 0-.863-.027c-.279-.01-.558-.014-.836-.014-.204 0-.4.004-.585.014-.176 0-.334.009-.474.027v-.278c.205-.046.404-.167.6-.362.204-.195.399-.534.584-1.017L4.313 3a4.379 4.379 0 0 0 .724 0Zm1.212 5.891v.279h-4.15l.138-.279H6.25Z"/><path d="M11.198 12.902c-.401 0-.742-.074-1.022-.224a1.573 1.573 0 0 1-.63-.63 1.92 1.92 0 0 1-.21-.896c0-.401.093-.728.28-.98a1.98 1.98 0 0 1 .714-.616 5.53 5.53 0 0 1 .938-.392c.327-.112.635-.215.924-.308.29-.103.527-.22.714-.35a.604.604 0 0 0 .28-.518V6.966c0-.299-.047-.541-.14-.728a.851.851 0 0 0-.392-.434c-.168-.103-.383-.154-.644-.154a2.44 2.44 0 0 0-.616.084 1.043 1.043 0 0 0-.532.322c.243.065.43.187.56.364.14.177.21.392.21.644 0 .29-.098.518-.294.686-.187.159-.425.238-.714.238-.308 0-.541-.098-.7-.294a1.058 1.058 0 0 1-.238-.686c0-.261.065-.476.196-.644.13-.177.313-.336.546-.476.233-.159.532-.285.896-.378.364-.093.76-.14 1.19-.14.41 0 .775.047 1.092.14.317.084.588.238.812.462.224.215.369.48.434.798.065.317.098.705.098 1.162v3.836c0 .233.028.401.084.504.056.094.145.14.266.14a.54.54 0 0 0 .266-.07 1.94 1.94 0 0 0 .28-.196l.154.238c-.205.159-.42.285-.644.378-.224.093-.495.14-.812.14-.327 0-.588-.046-.784-.14a.932.932 0 0 1-.42-.406 1.607 1.607 0 0 1-.14-.63c-.224.373-.5.663-.826.868-.327.206-.719.308-1.176.308Zm.84-.784c.224 0 .43-.06.616-.182.196-.121.373-.303.532-.546V8.562c-.093.14-.229.266-.406.378-.168.112-.35.224-.546.336a3.783 3.783 0 0 0-.56.392 1.9 1.9 0 0 0-.434.532c-.112.206-.168.472-.168.798 0 .364.089.644.266.84.177.187.41.28.7.28Z" opacity=".4"/></g><defs><clipPath id="g"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs>',viewBox:"0 0 16 16"},googleFont:{icon:'<path fill="#FBBC04" d="M.172 13.074 7.872.987l4.127 2.63-6.025 9.457H.172Z"/><path fill="#1A73E8" d="M7.707.925h4.74v12.15h-4.74V.925Z"/><path fill="#EA4335" d="M2.795 5.826a2.35 2.35 0 1 0 0-4.7 2.35 2.35 0 0 0 0 4.7Z"/><path fill="#34A853" d="M15.829 9.699a3.376 3.376 0 0 1-3.376 3.376V6.323A3.376 3.376 0 0 1 15.83 9.7Z"/><path fill="#0D652D" d="M12.449 6.323v6.752a3.375 3.375 0 0 1 0-6.752Z"/><path fill="#1A73E8" d="M15.051 3.725a2.598 2.598 0 0 1-2.598 2.598V1.127a2.599 2.599 0 0 1 2.598 2.598Z"/><path fill="#174EA6" d="M12.449 1.127v5.196a2.598 2.598 0 0 1 0-5.196Z"/>',viewBox:"0 0 16 14"},expand:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M5.56831 2.95802H3.57674L6.52622 5.9201C6.71526 6.09657 6.71526 6.39912 6.52622 6.58816C6.34975 6.7772 6.0472 6.7772 5.85816 6.58816L2.90861 3.63861L2.9087 5.61772C2.9087 5.88246 2.69443 6.09673 2.42969 6.09673C2.16496 6.09673 1.95068 5.88247 1.95068 5.61772V2.4791C1.95068 2.21436 2.16494 2.00009 2.42969 2.00009L5.56831 2C5.83305 2 6.04732 2.21427 6.04732 2.47901C6.04732 2.74375 5.83306 2.95802 5.56831 2.95802ZM12.966 10.3689C12.966 10.1041 13.1803 9.88986 13.445 9.88986L13.4449 9.88989C13.7096 9.88989 13.9239 10.1041 13.9239 10.3689L13.924 13.5201C13.924 13.7849 13.7097 13.9991 13.445 13.9991H10.3064C10.0416 13.9991 9.82736 13.7849 9.82736 13.5201C9.82736 13.2554 10.0416 13.0411 10.3064 13.0411H12.2979L9.36101 10.0916C9.17197 9.9151 9.17197 9.61254 9.36101 9.42351C9.53747 9.23447 9.84003 9.23447 10.0291 9.42351L12.966 12.3604V10.3689ZM5.84507 9.42524L2.89552 12.3622V10.3706C2.89552 10.1059 2.68125 9.8916 2.41651 9.8916C2.15177 9.8916 1.9375 10.1059 1.9375 10.3706V13.5092C1.9375 13.774 2.15177 13.9882 2.41651 13.9882H5.55513C5.81988 13.9882 6.03414 13.774 6.03414 13.5092C6.03414 13.2445 5.81987 13.0302 5.55513 13.0302H3.57612L6.52566 10.0807C6.7147 9.89163 6.7147 9.58908 6.52566 9.41261C6.33663 9.23606 6.03416 9.23606 5.84504 9.42519L5.84507 9.42524ZM10.3064 2.01318H13.445L13.445 2.01321C13.7097 2.01321 13.924 2.22747 13.9365 2.49222L13.9366 5.63084C13.9366 5.89557 13.7224 6.10985 13.4576 6.10985C13.1929 6.10985 12.9786 5.89558 12.9786 5.63084V3.63926L10.0291 6.5762C9.8526 6.76524 9.55004 6.76524 9.36101 6.5762C9.17197 6.39974 9.17197 6.09718 9.36101 5.90814L12.2979 2.9712H10.3064C10.0416 2.9712 9.82736 2.75693 9.82736 2.49219C9.82736 2.22746 10.0416 2.01318 10.3064 2.01318Z" fill="currentColor"/>',viewBox:"0 0 16 16"},collapse:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M10.2935 6.15572V3.06913C10.2935 2.80877 10.5042 2.59806 10.7645 2.59806C11.0249 2.59806 11.2356 2.80878 11.2356 3.06913V5.02769L14.1238 2.13943C14.3098 1.95352 14.6073 1.95352 14.7808 2.13943C14.9667 2.32533 14.9667 2.62287 14.7808 2.79641L11.8926 5.69707H13.8511C14.1115 5.69707 14.3222 5.90779 14.3222 6.16814C14.3222 6.42849 14.1115 6.63921 13.8511 6.63921L10.7645 6.63912C10.5042 6.62676 10.2935 6.41604 10.2935 6.15568L10.2935 6.15572ZM7.56431 3.06913V6.15572L7.56429 6.15568C7.56429 6.41604 7.35358 6.62676 7.09322 6.63912L4.00662 6.63921C3.74628 6.63921 3.53556 6.42849 3.53556 6.16814C3.53556 5.90779 3.74627 5.69707 4.00662 5.69707H5.96519L3.07693 2.79641C2.89102 2.62287 2.89102 2.32533 3.07693 2.13943C3.25047 1.95352 3.54801 1.95352 3.73391 2.13943L6.62217 5.02769L6.62217 3.06913C6.62217 2.80878 6.83289 2.59806 7.09324 2.59806C7.35359 2.59806 7.56431 2.80877 7.56431 3.06913ZM7.56431 12.93V9.84343L7.56429 9.84347C7.56429 9.58311 7.35358 9.37239 7.09322 9.36002L4.00662 9.35994C3.74628 9.35994 3.53556 9.57066 3.53556 9.83101C3.53556 10.0914 3.74627 10.3021 4.00662 10.3021H5.96519L3.07693 13.2027C2.89102 13.3763 2.89102 13.6738 3.07693 13.8597C3.25047 14.0456 3.54801 14.0456 3.73391 13.8597L6.62217 10.9715L6.62217 12.93C6.62217 13.1904 6.83289 13.4011 7.09324 13.4011C7.35359 13.4011 7.56431 13.1904 7.56431 12.93ZM10.2935 12.93V9.84343L10.2935 9.84347C10.2935 9.58311 10.5042 9.37239 10.7645 9.36002L13.8511 9.35994C14.1115 9.35994 14.3222 9.57066 14.3222 9.83101C14.3222 10.0914 14.1115 10.3021 13.8511 10.3021H11.8926L14.7808 13.2027C14.9667 13.3763 14.9667 13.6738 14.7808 13.8597C14.6073 14.0456 14.3098 14.0456 14.1238 13.8597L11.2356 10.9715V12.93C11.2356 13.1904 11.0249 13.4011 10.7645 13.4011C10.5042 13.4011 10.2935 13.1904 10.2935 12.93Z" fill="currentColor"/>',viewBox:"0 0 16 16"},minus:{icon:'<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.5 8h-10"/>',viewBox:"0 0 16 16"},starAlt:{icon:'<path d="m25.49 13.223-4.229 3.69 1.267 5.494a1.5 1.5 0 0 1-2.235 1.625L15.5 21.126l-4.781 2.906a1.5 1.5 0 0 1-2.235-1.625l1.264-5.488-4.229-3.696a1.5 1.5 0 0 1 .854-2.63l5.575-.483 2.176-5.19a1.495 1.495 0 0 1 2.76 0l2.182 5.19 5.573.482a1.5 1.5 0 0 1 .854 2.63h-.005Z" fill="currentColor"/>',viewBox:"0 0 32 32"},startEmpty:{icon:'<path d="M25.477 12.356c-.045.163-.13.31-.248.43l-.069.06-4.228 3.69-.226.197.068.292 1.266 5.494v.001a1 1 0 0 1-1.489 1.084L15.76 20.7l-.26-.158-.26.158-4.78 2.905a1 1 0 0 1-1.49-1.084v-.001l1.266-5.488.067-.292-.226-.197-4.229-3.696-.002-.002a1 1 0 0 1 .57-1.753l5.575-.483.301-.026.117-.28 2.176-5.19a.995.995 0 0 1 1.47-.445l.278-.416-.277.416a.996.996 0 0 1 .366.445v.001l2.183 5.19.117.279.301.026 5.572.482h.002a1 1 0 0 1 .867.688l.476-.154-.476.154a1 1 0 0 1 .012.578Z" stroke="currentColor"/>',viewBox:"0 0 32 32"},statusOff:{icon:'<path d="M22.9135 14.227C22.9993 14.376 23.0224 14.553 22.9777 14.719C22.933 14.885 22.8242 15.0265 22.6752 15.1123C22.5262 15.1981 22.3492 15.2212 22.1832 15.1765C22.0172 15.1318 21.8757 15.023 21.7899 14.874L19.6333 11.0913C18.358 11.9853 16.9341 12.6458 15.4279 13.0419L16.0932 17.0317C16.1073 17.1155 16.1047 17.2013 16.0856 17.2841C16.0665 17.3669 16.0312 17.4452 15.9818 17.5144C15.9325 17.5836 15.8699 17.6424 15.7978 17.6874C15.7257 17.7324 15.6455 17.7628 15.5616 17.7768C15.526 17.7823 15.4899 17.7852 15.4538 17.7854C15.301 17.7852 15.1532 17.731 15.0366 17.6323C14.9199 17.5337 14.842 17.3969 14.8165 17.2462L14.1566 13.304C12.7276 13.5285 11.2724 13.5285 9.84339 13.304L9.18778 17.2462C9.16229 17.3971 9.08418 17.534 8.96731 17.6327C8.85045 17.7314 8.70239 17.7855 8.54943 17.7854C8.51332 17.7852 8.47728 17.7823 8.4416 17.7768C8.35774 17.7627 8.27749 17.7322 8.20543 17.687C8.13337 17.6419 8.07092 17.583 8.02165 17.5137C7.97238 17.4444 7.93725 17.366 7.91828 17.2831C7.8993 17.2002 7.89685 17.1144 7.91107 17.0306L8.57638 13.0409C7.07017 12.6447 5.64627 11.9842 4.371 11.0902L2.21007 14.874C2.12428 15.023 1.98281 15.1318 1.81679 15.1765C1.65076 15.2212 1.47378 15.1981 1.32479 15.1123C1.17579 15.0265 1.06698 14.885 1.02228 14.719C0.977594 14.553 1.00069 14.376 1.08648 14.227L3.33475 10.2933C2.53491 9.61843 1.80155 8.86845 1.14471 8.0537C1.03689 7.92015 0.986548 7.74923 1.00475 7.57856C1.02295 7.40788 1.1082 7.25143 1.24176 7.14361C1.37531 7.0358 1.54623 6.98545 1.7169 7.00365C1.88758 7.02185 2.04403 7.10711 2.15185 7.24066C3.97095 9.49432 7.15518 12.1782 12 12.1782C16.8448 12.1782 20.0291 9.49432 21.8482 7.24282C21.956 7.10926 22.1124 7.02401 22.2831 7.00581C22.4538 6.98761 22.6247 7.03795 22.7582 7.14577C22.8918 7.25359 22.9771 7.41004 22.9953 7.58071C23.0135 7.75139 22.9631 7.9223 22.8553 8.05586C22.1985 8.87061 21.4651 9.62058 20.6653 10.2955L22.9135 14.227Z" fill="currentColor"/>',viewBox:"0 0 24 24"},statusOn:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M2.04498 13.0033C7.04114 6.52168 16.9589 6.52168 21.955 13.0033C22.1488 13.2548 22.5135 13.3043 22.7695 13.1139C23.0255 12.9235 23.0759 12.5654 22.8821 12.3139C17.4207 5.22869 6.57934 5.22869 1.11789 12.3139C0.924074 12.5654 0.974489 12.9235 1.2305 13.1139C1.48651 13.3043 1.85116 13.2548 2.04498 13.0033ZM11.9474 10.7251C13.2196 10.7251 14.2509 11.7381 14.2509 12.9876C14.2509 14.2371 13.2196 15.25 11.9474 15.25C10.6752 15.25 9.64389 14.2371 9.64389 12.9876C9.64389 11.7381 10.6752 10.7251 11.9474 10.7251Z" fill="currentColor"/>',viewBox:"0 0 24 24"},generate:{icon:'<path d="M14 7.5C14 7.63261 13.9473 7.75979 13.8535 7.85355C13.7598 7.94732 13.6326 8 13.5 8H12.5V9C12.5 9.13261 12.4473 9.25979 12.3535 9.35355C12.2598 9.44732 12.1326 9.5 12 9.5C11.8674 9.5 11.7402 9.44732 11.6464 9.35355C11.5527 9.25979 11.5 9.13261 11.5 9V8H10.5C10.3674 8 10.2402 7.94732 10.1464 7.85355C10.0527 7.75979 9.99999 7.63261 9.99999 7.5C9.99999 7.36739 10.0527 7.24021 10.1464 7.14645C10.2402 7.05268 10.3674 7 10.5 7H11.5V6C11.5 5.86739 11.5527 5.74021 11.6464 5.64645C11.7402 5.55268 11.8674 5.5 12 5.5C12.1326 5.5 12.2598 5.55268 12.3535 5.64645C12.4473 5.74021 12.5 5.86739 12.5 6V7H13.5C13.6326 7 13.7598 7.05268 13.8535 7.14645C13.9473 7.24021 14 7.36739 14 7.5ZM1.99999 2.5H2.99999V3.5C2.99999 3.63261 3.05266 3.75979 3.14643 3.85355C3.2402 3.94732 3.36738 4 3.49999 4C3.63259 4 3.75977 3.94732 3.85354 3.85355C3.94731 3.75979 3.99999 3.63261 3.99999 3.5V2.5H4.99999C5.13259 2.5 5.25977 2.44732 5.35354 2.35355C5.44731 2.25979 5.49999 2.13261 5.49999 2C5.49999 1.86739 5.44731 1.74021 5.35354 1.64645C5.25977 1.55268 5.13259 1.5 4.99999 1.5H3.99999V0.5C3.99999 0.367392 3.94731 0.240215 3.85354 0.146447C3.75977 0.0526785 3.63259 0 3.49999 0C3.36738 0 3.2402 0.0526785 3.14643 0.146447C3.05266 0.240215 2.99999 0.367392 2.99999 0.5V1.5H1.99999C1.86738 1.5 1.7402 1.55268 1.64643 1.64645C1.55266 1.74021 1.49999 1.86739 1.49999 2C1.49999 2.13261 1.55266 2.25979 1.64643 2.35355C1.7402 2.44732 1.86738 2.5 1.99999 2.5ZM9.99999 10H9.49999V9.5C9.49999 9.36739 9.44731 9.24021 9.35354 9.14645C9.25977 9.05268 9.13259 9 8.99999 9C8.86738 9 8.7402 9.05268 8.64643 9.14645C8.55266 9.24021 8.49999 9.36739 8.49999 9.5V10H7.99999C7.86738 10 7.7402 10.0527 7.64643 10.1464C7.55266 10.2402 7.49999 10.3674 7.49999 10.5C7.49999 10.6326 7.55266 10.7598 7.64643 10.8536C7.7402 10.9473 7.86738 11 7.99999 11H8.49999V11.5C8.49999 11.6326 8.55266 11.7598 8.64643 11.8536C8.7402 11.9473 8.86738 12 8.99999 12C9.13259 12 9.25977 11.9473 9.35354 11.8536C9.44731 11.7598 9.49999 11.6326 9.49999 11.5V11H9.99999C10.1326 11 10.2598 10.9473 10.3535 10.8536C10.4473 10.7598 10.5 10.6326 10.5 10.5C10.5 10.3674 10.4473 10.2402 10.3535 10.1464C10.2598 10.0527 10.1326 10 9.99999 10ZM12.2069 3L3.49999 11.7069C3.31247 11.8943 3.05821 11.9995 2.79311 11.9995C2.52801 11.9995 2.27375 11.8943 2.08624 11.7069L0.792486 10.4144C0.699603 10.3215 0.625923 10.2113 0.575654 10.0899C0.525385 9.96858 0.499512 9.83853 0.499512 9.70719C0.499512 9.57585 0.525385 9.44579 0.575654 9.32445C0.625923 9.20311 0.699603 9.09286 0.792486 9L9.49999 0.293125C9.59285 0.200242 9.7031 0.126562 9.82444 0.0762935C9.94578 0.0260245 10.0758 0.000151157 10.2072 0.000151157C10.3385 0.000151157 10.4686 0.0260245 10.5899 0.0762935C10.7113 0.126562 10.8215 0.200242 10.9144 0.293125L12.2069 1.58562C12.2997 1.67849 12.3734 1.78874 12.4237 1.91008C12.474 2.03142 12.4998 2.16147 12.4998 2.29281C12.4998 2.42415 12.474 2.55421 12.4237 2.67555C12.3734 2.79689 12.2997 2.90714 12.2069 3ZM11.5 2.29313L10.2069 1L8.20686 3L9.49999 4.29313L11.5 2.29313Z" fill="currentColor"/>',viewBox:"0 0 14 12"},easystore:{icon:'<rect width="17.23" height="3.93" x="9.4" y="13.72" opacity="0.4" stroke-width="0" fill="currentColor" rx="1.97" ry="1.97"/><circle cx="22.21" cy="30.08" r="1.92" stroke-width="0" opacity="0.4" fill="currentColor"/><circle cx="11.32" cy="30.08" r="1.92" stroke-width="0" opacity="0.4" fill="currentColor"/><path fill="currentColor" stroke-width="0" d="M27.44.11c-1.04-.18-2.04.51-2.22 1.55 0 .03 0 .06-.01.08l-.61 3.37H10.48c-4.96 0-9 4.73-9 10.53s4.04 10.53 9 10.53h12.7c.65 0 1.25-.33 1.6-.87.82-1.27-.09-2.94-1.6-2.94h-12.7c-3.24 0-5.88-3.01-5.88-6.72s2.64-6.72 5.88-6.72h15.75c.65 0 1.25-.33 1.6-.87.19-.3.24-.63.3-.93l.09-.52.75-4.18s.01-.06.02-.09c.18-1.04-.51-2.04-1.55-2.22Z"/>',viewBox:"0 0 32 32"},storefront:{icon:'<path fill="currentColor" d="M5.98 18.54h.05c1.04-.16 1.95-.65 2.76-1.43 1.01.95 2.19 1.47 3.58 1.49 1.4.02 2.59-.49 3.63-1.46 1.02.92 2.21 1.45 3.6 1.46 1.4 0 2.58-.53 3.61-1.49 1.09 1.04 2.37 1.58 3.91 1.48 0 0 2.54-.42 3.43-1.72 1.19-1.34 1.59-2.91 1.21-4.64-.52-2.37-1.1-4.73-1.7-7.09-.32-1.26-1.13-2.08-2.42-2.38 0 0-.13-.04-.18-.05H5c-.31 0-.62.03-.91.13l-.1.03c-.98.28-1.73 1.06-1.98 2.04C1.36 7.46.72 10.01.2 12.58c-.33 1.63.18 3.12 1.32 4.36.03.03.09.1.09.1.91.69 2.64 1.78 4.39 1.49Z"/><path fill="currentColor" opacity="0.4" d="M29.78 19.25c-1.1.69-2.57.94-2.57.94-1.54.1-2.82-.44-3.91-1.48-1.03.96-2.21 1.5-3.61 1.49-1.39 0-2.58-.54-3.6-1.46-1.04.97-2.23 1.48-3.63 1.46-1.39-.02-2.58-.54-3.58-1.49-.81.77-1.72 1.26-2.76 1.43h-.05c-1.46.24-2.89-.47-3.86-1.11a.333.333 0 0 0-.52.28V27.53c0 1.89 1.53 3.42 3.42 3.42h6.51c.24 0 .43-.19.43-.43v-5.21c0-.98.8-1.78 1.78-1.78h4.34c.98 0 1.78.8 1.78 1.78v5.21c0 .24.19.43.43.43h6.51c2.11 0 3.43-1.33 3.43-3.45v-7.95c0-.28-.3-.44-.54-.29Z"/>',viewBox:"0 0 32 32"},single:{icon:'<path fill="currentColor" stroke-width="0" d="M25.52 19.06c2.61 0 4.9 1.31 6.28 3.31V2.73c0-1.01-.82-1.84-1.84-1.84H2.04C1.03.9.2 1.72.2 2.73v25.63c0 1.02.82 1.84 1.84 1.84h16.73c-.55-1.05-.89-2.24-.89-3.51 0-4.22 3.42-7.63 7.63-7.63Z" opacity=".4"/><rect width="11.97" height="21.03" x="3.46" y="4.62" fill="currentColor" stroke-width="0" class="cls-1" rx="2.54" ry="2.54"/><rect width="10.21" height="4" x="18.87" y="4.81" fill="currentColor" stroke-width="0" class="cls-1" rx="1.14" ry="1.14"/><rect width="10.21" height="1.32" x="18.87" y="11.73" fill="currentColor" stroke-width="0" class="cls-1" rx=".62" ry=".62"/><rect width="10.21" height="1.32" x="18.87" y="15.67" fill="currentColor" stroke-width="0" class="cls-1" rx=".62" ry=".62"/><path fill="currentColor" stroke-width="0" d="M26.45 22.1h-1.87v3.56h-3.57v1.88h3.57v3.56h1.87v-3.56h3.57v-1.88h-3.57V22.1z" opacity=".4"/>',viewBox:"0 0 32 32"},collection:{icon:'<path fill-rule="evenodd" clip-rule="evenodd" d="M14.507 16c.6-7.299 5.53-12.554 10.993-12.554 5.462 0 10.393 5.255 10.993 12.554H14.507Zm-2.898 0C12.225 7.593 17.967.554 25.5.554S38.775 7.593 39.391 16h2.607c1.687 0 3.303 1.523 3.615 3.456l5.28 32.662c.518 3.196-.892 5.882-3.17 5.882H3.276c-2.273 0-3.684-2.686-3.17-5.882L5.39 19.456C5.7 17.523 7.317 16 9.004 16h2.605Z" fill="currentColor" opacity=".4"/><path fill-rule="evenodd" clip-rule="evenodd" d="M25.471 20C25.87 12.124 30.94 6.446 36.5 6.446S47.13 12.124 47.529 20H25.47Zm-2.894 0c.408-8.861 6.198-16.446 13.923-16.446S50.015 11.139 50.423 20h2.574c1.688 0 3.303 1.523 3.616 3.456l5.28 32.662C62.41 59.314 61 62 58.723 62H14.276c-2.273 0-3.684-2.686-3.17-5.882l5.28-32.662C16.7 21.523 18.316 20 20.002 20h2.576Z" fill="currentColor"/><rect x="23" y="26" width="26" height="5" rx="2.5" fill="currentColor"/>',viewBox:"0 0 62 62"}}),u=r(6214),s=r(8721);function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(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 p(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){return y="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},y(e)}var m=function(){},g=function(){return(0,s.Z)()},E=function(e){return Array.from(Array(e).keys())},_=function(e,t){return void 0!==e.find((function(e){return e===t}))};function O(e,t){if(null==e)throw new Error(t)}var w=function(e){return null!=e};function S(e){return"string"==typeof e||e instanceof String}function I(e){return"number"==typeof e||e instanceof Number}function x(e){return"boolean"==typeof e||e instanceof Boolean}function C(e){return"object"===y(e)&&null!==e&&!Array.isArray(e)}function P(e){return"object"===y(e)&&null!==e&&e instanceof Array&&Array.isArray(e)}var A=function(e){return e%1==0},L=function(e){var t=/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/;"image"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"url")&&(t=/(https?:\/\/[^"']*\.(?:png|jpg|jpeg|gif|svg|webp))/i);var r=new RegExp(t);return!!e.match(r)};function T(e){return e instanceof Error}var D=function(e,t){return t in e};function Z(e){return!!e&&Array.isArray(e)&&(!e.length||"object"!==y(e[0]))}var j=function(e){return e.isAxiosError},R=function(e){return e instanceof Blob||e instanceof File};function B(e){return Z(e)&&(!e.length||"string"==typeof e[0]||e[0]instanceof String)}function M(e){return"object"===y(e)&&null!==e&&!Array.isArray(e)&&(D(e,"xl")||D(e,"md"))&&!D(e,"unit")}function k(e){return"object"===y(e)&&null!==e&&!Array.isArray(e)&&(D(e,"xl")||D(e,"md"))&&"unit"in e}var G=function(e){return c[e]},N=h({},null!==(l=window.Joomla)&&void 0!==l?l:{}),W=function(e){return w(e)&&C(e)?Object.keys(e):[]},U=function(e){return Object.values(e)},H=function(e){return Object.entries(e)},F=function(e){return e.split("_").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")},V=function(e){var t=e.split("_");return{name:t.slice(2).map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" "),category:t[1].charAt(0).toUpperCase()+t[1].slice(1)}},q=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){return h(h({},e),{},{value:String(e.value)})}))},z=function(e,t){return Math.floor(Math.random()*(t-e))+e},K=function(e){return e.map((function(e){return e.id}))},$=function(e){var t=e.itemId,r=e.isShiftHolding,n=e.lastSelectedIndex,o=e.currentIndex,i=e.isChecked,a=e.selectedItemIds,l=e.selectedItemsIndex,c=e.totalItemsList;if(!r||-1===n)return i?{updatedItemIds:[].concat(d(a),[t]),updatedItemIndexes:[].concat(d(l),[o])}:{updatedItemIds:a.filter((function(e){return e!==t})),updatedItemIndexes:l.filter((function(e){return e!==o}))};var u=Math.min(n,o),s=Math.max(n,o),p=c.slice(u,s+1).map((function(e){return e.id})),f=E(s+1).filter((function(e){return e>=u}));return i?{updatedItemIds:d(new Set([].concat(d(a),d(p)))),updatedItemIndexes:d(new Set([].concat(d(l),d(f))))}:{updatedItemIds:a.filter((function(e){return!p.includes(e)})),updatedItemIndexes:l.filter((function(e){return!f.includes(e)}))}},X=function(e){var t,r,n="desc"===(null===(t=e.sort)||void 0===t?void 0:t.direction)?"-":"";return h({limit:e.limit,offset:e.offset,sort:(null===(r=e.sort)||void 0===r?void 0:r.property)&&"".concat(n).concat(e.sort.property),page_type:e.page_type},e.filter)},Y=function(e){try{return JSON.parse(e)}catch(e){return null}},Q=function(e){var t=new Blob([e],{type:"application/json"}),r=URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.target="_blank",n.rel="noreferrer noopener nofollow",n.download="template-".concat(g(),".json"),n.click()},J=function(e){return{name:e.name,rows:e.sections,addon:e.addons}},ee=function(e){return D(e,"rows")&&D(e,"addon")},te=function(e){var t={background_image:"image",background_color:"color",background_gradient:"gradient",background_video:"video",background_video_mp4:"video",background_video_ogv:"video",background_external_video:"video"};if(!w(e.background_type)){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=p(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(W(t));try{for(n.s();!(r=n.n()).done;){var o=r.value;if(e[o]){e.background_type=t[o];break}}}catch(e){n.e(e)}finally{n.f()}}return e},re=function(e){return e.map((function(e){return h(h({},e),{},{settings:te(e.settings)})}))},ne=function(e){return W(e).map((function(t){return{label:e[t],value:t}}))},oe=!0,ie=function(e){var t=e.toLocaleLowerCase(),r=t.startsWith("var(--")&&t.endsWith(")");if(r){var n=t.replace(/^var\(/,"").replace(/\)$/,"");t=getComputedStyle(document.documentElement).getPropertyValue(n)}var o=new u.C(t),i=e;return o.isValid&&o.format.startsWith("hex")&&!e.startsWith("#")&&!r&&(i="#".concat(e)),{validColor:o,isCssVariable:r,color:i}},ae=function(e){var t="".concat(N.pagebuilderBase).concat(e),r=window.document,n=r.createElement("link");n.href=t,n.rel="stylesheet",r.head.appendChild(n)},le=function(e,t){if(0===e)return"0 Bytes";var r=t||2,n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(r))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},ce=function(e){return!!("object"===y(e)&&e&&"isMultiSelect"in e&&e.isMultiSelect)},ue=function(e){if(!/<svg\s+.*?>[\s\S]*?<\/svg>/i.test(e))return!1;try{return"parsererror"!==(new DOMParser).parseFromString(e,"text/xml").documentElement.nodeName||(console.error("Invalid SVG string:",e),!1)}catch(e){return console.error("Error parsing SVG string:",e),!1}}},1030:(e,t,r)=>{"use strict";r.d(t,{n:()=>o});var n=r(1234),o=function(){return{required:{value:!0,message:(0,n.O)("COM_SPPAGEBUILDER_EDITOR_REQUIRED_FIELD")}}}},4693:(e,t,r)=>{"use strict";e.exports=r.p+"images/2dc90216f51e02a2bfe8.svg"},2137:(e,t,r)=>{"use strict";e.exports=r.p+"images/f057f8b31082c0ecd133.svg"},4654:()=>{},5574:()=>{},6152:()=>{}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,l),r.loaded=!0,r.exports}l.m=i,e=[],l.O=(t,r,n,o)=>{if(!r){var i=1/0;for(s=0;s<e.length;s++){for(var[r,n,o]=e[s],a=!0,c=0;c<r.length;c++)(!1&o||i>=o)&&Object.keys(l.O).every((e=>l.O[e](r[c])))?r.splice(c--,1):(a=!1,o<i&&(i=o));if(a){e.splice(s--,1);var u=n();void 0!==u&&(t=u)}}return t}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[r,n,o]},l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);l.r(o);var i={};t=t||[null,r({}),r([]),r(r)];for(var a=2&n&&e;"object"==typeof a&&!~t.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,l.d(o,i),o},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((t,r)=>(l.f[r](e,t),t)),[])),l.u=e=>"./js/"+e+".min.js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},o="react-typescript-webpack-backend-editor:",l.l=(e,t,r,i)=>{if(n[e])n[e].push(t);else{var a,c;if(void 0!==r)for(var u=document.getElementsByTagName("script"),s=0;s<u.length;s++){var d=u[s];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+r){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,l.nc&&a.setAttribute("nonce",l.nc),a.setAttribute("data-webpack",o+r),a.src=e),n[e]=[t];var p=(t,r)=>{a.onerror=a.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;l.g.importScripts&&(e=l.g.location+"");var t=l.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),l.p=e+"../"})(),(()=>{var e={296:0};l.f.j=(t,r)=>{var n=l.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=l.p+l.u(t),a=new Error;l.l(i,(r=>{if(l.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+t,t)}},l.O.j=t=>0===e[t];var t=(t,r)=>{var n,o,[i,a,c]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in a)l.o(a,n)&&(l.m[n]=a[n]);if(c)var s=c(l)}for(t&&t(r);u<i.length;u++)o=i[u],l.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return l.O(s)},r=self.webpackChunkreact_typescript_webpack_backend_editor=self.webpackChunkreact_typescript_webpack_backend_editor||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),l.nc=void 0;var c=l.O(void 0,[216],(()=>l(1062)));c=l.O(c)})();

Copyright © 2019 by b0y-101